1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for sablevm-classpath 1.13.
4#
5# Report bugs to <http://sablevm.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
16DUALCASE=1; export DUALCASE # for MKS sh
17if 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
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if 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
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
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.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
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.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if 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; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for 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
109do
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
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo 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
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$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  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
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
234done
235IFS=$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
242if 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
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
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
263if 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
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $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
338fi
339
340fi
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+"$@"}
350fi
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; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$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
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `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';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if 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'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
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  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_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.
550as_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.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
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
593if test -z "$ECHO"; then
594if 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
605fi
606
607if 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  :
611else
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
691fi
692fi
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.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706tagnames=${tagnames+${tagnames},}F77
707
708exec 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.
713ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
715#
716# Initializations.
717#
718ac_default_prefix=/usr/local
719ac_clean_files=
720ac_config_libobj_dir=.
721LIBOBJS=
722cross_compiling=no
723subdirs=
724MFLAGS=
725MAKEFLAGS=
726SHELL=${CONFIG_SHELL-/bin/sh}
727
728# Identity of this package.
729PACKAGE_NAME='sablevm-classpath'
730PACKAGE_TARNAME='sablevm-classpath'
731PACKAGE_VERSION='1.13'
732PACKAGE_STRING='sablevm-classpath 1.13'
733PACKAGE_BUGREPORT='http://sablevm.org/'
734
735ac_unique_file="java/lang/System.java"
736ac_default_prefix=/usr/local
737# Factoring default headers for most tests.
738ac_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
773ac_subst_vars='SHELL
774PATH_SEPARATOR
775PACKAGE_NAME
776PACKAGE_TARNAME
777PACKAGE_VERSION
778PACKAGE_STRING
779PACKAGE_BUGREPORT
780exec_prefix
781prefix
782program_transform_name
783bindir
784sbindir
785libexecdir
786datarootdir
787datadir
788sysconfdir
789sharedstatedir
790localstatedir
791includedir
792oldincludedir
793docdir
794infodir
795htmldir
796dvidir
797pdfdir
798psdir
799libdir
800localedir
801mandir
802DEFS
803ECHO_C
804ECHO_N
805ECHO_T
806LIBS
807build_alias
808host_alias
809target_alias
810build
811build_cpu
812build_vendor
813build_os
814host
815host_cpu
816host_vendor
817host_os
818target
819target_cpu
820target_vendor
821target_os
822LIBRELEASE
823CLASSPATH_MODULE
824INSTALL_PROGRAM
825INSTALL_SCRIPT
826INSTALL_DATA
827CYGPATH_W
828PACKAGE
829VERSION
830ACLOCAL
831AUTOCONF
832AUTOMAKE
833AUTOHEADER
834MAKEINFO
835install_sh
836STRIP
837INSTALL_STRIP_PROGRAM
838mkdir_p
839AWK
840SET_MAKE
841am__leading_dot
842AMTAR
843am__tar
844am__untar
845JIKES_FLAGS
846INSTALL_CLASS_FILES_TRUE
847INSTALL_CLASS_FILES_FALSE
848CREATE_JNI_LIBRARIES_TRUE
849CREATE_JNI_LIBRARIES_FALSE
850CREATE_CORE_JNI_LIBRARIES_TRUE
851CREATE_CORE_JNI_LIBRARIES_FALSE
852default_toolkit
853CREATE_XMLJ_LIBRARY_TRUE
854CREATE_XMLJ_LIBRARY_FALSE
855CC
856CFLAGS
857LDFLAGS
858CPPFLAGS
859ac_ct_CC
860EXEEXT
861OBJEXT
862DEPDIR
863am__include
864am__quote
865AMDEP_TRUE
866AMDEP_FALSE
867AMDEPBACKSLASH
868CCDEPMODE
869am__fastdepCC_TRUE
870am__fastdepCC_FALSE
871CPP
872GREP
873EGREP
874CREATE_ALSA_LIBRARIES_TRUE
875CREATE_ALSA_LIBRARIES_FALSE
876CREATE_DSSI_LIBRARIES_TRUE
877CREATE_DSSI_LIBRARIES_FALSE
878CREATE_GTK_PEER_LIBRARIES_TRUE
879CREATE_GTK_PEER_LIBRARIES_FALSE
880GTK_CAIRO_ENABLED
881GTK_CAIRO_TRUE
882GTK_CAIRO_FALSE
883CREATE_QT_PEER_LIBRARIES_TRUE
884CREATE_QT_PEER_LIBRARIES_FALSE
885nativelibdir
886glibjdir
887CREATE_JNI_HEADERS_TRUE
888CREATE_JNI_HEADERS_FALSE
889LN_S
890CXX
891CXXFLAGS
892ac_ct_CXX
893CXXDEPMODE
894am__fastdepCXX_TRUE
895am__fastdepCXX_FALSE
896ECHO
897AR
898RANLIB
899CXXCPP
900F77
901FFLAGS
902ac_ct_F77
903LIBTOOL
904LIBICONV
905LTLIBICONV
906WARNING_CFLAGS
907STRICT_WARNING_CFLAGS
908AM_CPPFLAGS
909ERROR_CFLAGS
910PKG_CONFIG
911XML_CFLAGS
912XML_LIBS
913XSLT_CFLAGS
914XSLT_LIBS
915XMKMF
916X_CFLAGS
917X_PRE_LIBS
918X_LIBS
919X_EXTRA_LIBS
920GTK_CFLAGS
921GTK_LIBS
922CAIRO_CFLAGS
923CAIRO_LIBS
924PANGOFT2_CFLAGS
925PANGOFT2_LIBS
926FREETYPE2_CFLAGS
927FREETYPE2_LIBS
928QT_CFLAGS
929QT_LIBS
930MOC
931USER_JAVAH
932USER_SPECIFIED_JAVAH_TRUE
933USER_SPECIFIED_JAVAH_FALSE
934CLASSPATH_INCLUDES
935JIKES
936JIKESENCODING
937GCJX
938ECJ
939FOUND_GCJ_TRUE
940FOUND_GCJ_FALSE
941FOUND_JIKES_TRUE
942FOUND_JIKES_FALSE
943FOUND_ECJ_TRUE
944FOUND_ECJ_FALSE
945FOUND_KJC_TRUE
946FOUND_KJC_FALSE
947FOUND_GCJX_TRUE
948FOUND_GCJX_FALSE
949USER_CLASSLIB
950USER_SPECIFIED_CLASSLIB_TRUE
951USER_SPECIFIED_CLASSLIB_FALSE
952vm_classes
953MAINTAINER_MODE_TRUE
954MAINTAINER_MODE_FALSE
955MAINT
956LIBDEBUG
957INIT_LOAD_LIBRARY
958JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
959REMOVE
960MKDIR
961CP
962DATE
963FIND
964FASTJAR
965ZIP
966INSTALL_COMPRESSED_CLASS_FILES_TRUE
967INSTALL_COMPRESSED_CLASS_FILES_FALSE
968EXAMPLESDIR
969FASTJAR_COMPRESSION_FLAGS
970ZIP_COMPRESSION_FLAGS
971GJDOC
972CREATE_API_DOCS_TRUE
973CREATE_API_DOCS_FALSE
974JAY
975JAY_SKELETON
976REGEN_PARSERS_TRUE
977REGEN_PARSERS_FALSE
978LIBOBJS
979LTLIBOBJS'
980ac_subst_files=''
981      ac_precious_vars='build_alias
982host_alias
983target_alias
984CC
985CFLAGS
986LDFLAGS
987LIBS
988CPPFLAGS
989CPP
990CXX
991CXXFLAGS
992CCC
993CXXCPP
994F77
995FFLAGS
996XMKMF'
997
998
999# Initialize some variables set by options.
1000ac_init_help=
1001ac_init_version=false
1002# The variables have the same names as the options, with
1003# dashes changed to underlines.
1004cache_file=/dev/null
1005exec_prefix=NONE
1006no_create=
1007no_recursion=
1008prefix=NONE
1009program_prefix=NONE
1010program_suffix=NONE
1011program_transform_name=s,x,x,
1012silent=
1013site=
1014srcdir=
1015verbose=
1016x_includes=NONE
1017x_libraries=NONE
1018
1019# Installation directory options.
1020# These are left unexpanded so users can "make install exec_prefix=/foo"
1021# and all the variables that are supposed to be based on exec_prefix
1022# by default will actually change.
1023# Use braces instead of parens because sh, perl, etc. also accept them.
1024# (The list follows the same order as the GNU Coding Standards.)
1025bindir='${exec_prefix}/bin'
1026sbindir='${exec_prefix}/sbin'
1027libexecdir='${exec_prefix}/libexec'
1028datarootdir='${prefix}/share'
1029datadir='${datarootdir}'
1030sysconfdir='${prefix}/etc'
1031sharedstatedir='${prefix}/com'
1032localstatedir='${prefix}/var'
1033includedir='${prefix}/include'
1034oldincludedir='/usr/include'
1035docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1036infodir='${datarootdir}/info'
1037htmldir='${docdir}'
1038dvidir='${docdir}'
1039pdfdir='${docdir}'
1040psdir='${docdir}'
1041libdir='${exec_prefix}/lib'
1042localedir='${datarootdir}/locale'
1043mandir='${datarootdir}/man'
1044
1045ac_prev=
1046ac_dashdash=
1047for ac_option
1048do
1049  # If the previous option needs an argument, assign it.
1050  if test -n "$ac_prev"; then
1051    eval $ac_prev=\$ac_option
1052    ac_prev=
1053    continue
1054  fi
1055
1056  case $ac_option in
1057  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1058  *)	ac_optarg=yes ;;
1059  esac
1060
1061  # Accept the important Cygnus configure options, so we can diagnose typos.
1062
1063  case $ac_dashdash$ac_option in
1064  --)
1065    ac_dashdash=yes ;;
1066
1067  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1068    ac_prev=bindir ;;
1069  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1070    bindir=$ac_optarg ;;
1071
1072  -build | --build | --buil | --bui | --bu)
1073    ac_prev=build_alias ;;
1074  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1075    build_alias=$ac_optarg ;;
1076
1077  -cache-file | --cache-file | --cache-fil | --cache-fi \
1078  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1079    ac_prev=cache_file ;;
1080  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1081  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1082    cache_file=$ac_optarg ;;
1083
1084  --config-cache | -C)
1085    cache_file=config.cache ;;
1086
1087  -datadir | --datadir | --datadi | --datad)
1088    ac_prev=datadir ;;
1089  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1090    datadir=$ac_optarg ;;
1091
1092  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1093  | --dataroo | --dataro | --datar)
1094    ac_prev=datarootdir ;;
1095  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1096  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1097    datarootdir=$ac_optarg ;;
1098
1099  -disable-* | --disable-*)
1100    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1101    # Reject names that are not valid shell variable names.
1102    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1104   { (exit 1); exit 1; }; }
1105    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1106    eval enable_$ac_feature=no ;;
1107
1108  -docdir | --docdir | --docdi | --doc | --do)
1109    ac_prev=docdir ;;
1110  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1111    docdir=$ac_optarg ;;
1112
1113  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1114    ac_prev=dvidir ;;
1115  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1116    dvidir=$ac_optarg ;;
1117
1118  -enable-* | --enable-*)
1119    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1120    # Reject names that are not valid shell variable names.
1121    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1123   { (exit 1); exit 1; }; }
1124    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1125    eval enable_$ac_feature=\$ac_optarg ;;
1126
1127  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1128  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1129  | --exec | --exe | --ex)
1130    ac_prev=exec_prefix ;;
1131  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1132  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1133  | --exec=* | --exe=* | --ex=*)
1134    exec_prefix=$ac_optarg ;;
1135
1136  -gas | --gas | --ga | --g)
1137    # Obsolete; use --with-gas.
1138    with_gas=yes ;;
1139
1140  -help | --help | --hel | --he | -h)
1141    ac_init_help=long ;;
1142  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1143    ac_init_help=recursive ;;
1144  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1145    ac_init_help=short ;;
1146
1147  -host | --host | --hos | --ho)
1148    ac_prev=host_alias ;;
1149  -host=* | --host=* | --hos=* | --ho=*)
1150    host_alias=$ac_optarg ;;
1151
1152  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1153    ac_prev=htmldir ;;
1154  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1155  | --ht=*)
1156    htmldir=$ac_optarg ;;
1157
1158  -includedir | --includedir | --includedi | --included | --include \
1159  | --includ | --inclu | --incl | --inc)
1160    ac_prev=includedir ;;
1161  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1162  | --includ=* | --inclu=* | --incl=* | --inc=*)
1163    includedir=$ac_optarg ;;
1164
1165  -infodir | --infodir | --infodi | --infod | --info | --inf)
1166    ac_prev=infodir ;;
1167  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1168    infodir=$ac_optarg ;;
1169
1170  -libdir | --libdir | --libdi | --libd)
1171    ac_prev=libdir ;;
1172  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1173    libdir=$ac_optarg ;;
1174
1175  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1176  | --libexe | --libex | --libe)
1177    ac_prev=libexecdir ;;
1178  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1179  | --libexe=* | --libex=* | --libe=*)
1180    libexecdir=$ac_optarg ;;
1181
1182  -localedir | --localedir | --localedi | --localed | --locale)
1183    ac_prev=localedir ;;
1184  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1185    localedir=$ac_optarg ;;
1186
1187  -localstatedir | --localstatedir | --localstatedi | --localstated \
1188  | --localstate | --localstat | --localsta | --localst | --locals)
1189    ac_prev=localstatedir ;;
1190  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1191  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1192    localstatedir=$ac_optarg ;;
1193
1194  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1195    ac_prev=mandir ;;
1196  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1197    mandir=$ac_optarg ;;
1198
1199  -nfp | --nfp | --nf)
1200    # Obsolete; use --without-fp.
1201    with_fp=no ;;
1202
1203  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1204  | --no-cr | --no-c | -n)
1205    no_create=yes ;;
1206
1207  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1208  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1209    no_recursion=yes ;;
1210
1211  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1212  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1213  | --oldin | --oldi | --old | --ol | --o)
1214    ac_prev=oldincludedir ;;
1215  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1216  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1217  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1218    oldincludedir=$ac_optarg ;;
1219
1220  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1221    ac_prev=prefix ;;
1222  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1223    prefix=$ac_optarg ;;
1224
1225  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1226  | --program-pre | --program-pr | --program-p)
1227    ac_prev=program_prefix ;;
1228  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1229  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1230    program_prefix=$ac_optarg ;;
1231
1232  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1233  | --program-suf | --program-su | --program-s)
1234    ac_prev=program_suffix ;;
1235  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1236  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1237    program_suffix=$ac_optarg ;;
1238
1239  -program-transform-name | --program-transform-name \
1240  | --program-transform-nam | --program-transform-na \
1241  | --program-transform-n | --program-transform- \
1242  | --program-transform | --program-transfor \
1243  | --program-transfo | --program-transf \
1244  | --program-trans | --program-tran \
1245  | --progr-tra | --program-tr | --program-t)
1246    ac_prev=program_transform_name ;;
1247  -program-transform-name=* | --program-transform-name=* \
1248  | --program-transform-nam=* | --program-transform-na=* \
1249  | --program-transform-n=* | --program-transform-=* \
1250  | --program-transform=* | --program-transfor=* \
1251  | --program-transfo=* | --program-transf=* \
1252  | --program-trans=* | --program-tran=* \
1253  | --progr-tra=* | --program-tr=* | --program-t=*)
1254    program_transform_name=$ac_optarg ;;
1255
1256  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1257    ac_prev=pdfdir ;;
1258  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1259    pdfdir=$ac_optarg ;;
1260
1261  -psdir | --psdir | --psdi | --psd | --ps)
1262    ac_prev=psdir ;;
1263  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1264    psdir=$ac_optarg ;;
1265
1266  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1267  | -silent | --silent | --silen | --sile | --sil)
1268    silent=yes ;;
1269
1270  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1271    ac_prev=sbindir ;;
1272  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1273  | --sbi=* | --sb=*)
1274    sbindir=$ac_optarg ;;
1275
1276  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1277  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1278  | --sharedst | --shareds | --shared | --share | --shar \
1279  | --sha | --sh)
1280    ac_prev=sharedstatedir ;;
1281  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1282  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1283  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1284  | --sha=* | --sh=*)
1285    sharedstatedir=$ac_optarg ;;
1286
1287  -site | --site | --sit)
1288    ac_prev=site ;;
1289  -site=* | --site=* | --sit=*)
1290    site=$ac_optarg ;;
1291
1292  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1293    ac_prev=srcdir ;;
1294  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1295    srcdir=$ac_optarg ;;
1296
1297  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1298  | --syscon | --sysco | --sysc | --sys | --sy)
1299    ac_prev=sysconfdir ;;
1300  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1301  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1302    sysconfdir=$ac_optarg ;;
1303
1304  -target | --target | --targe | --targ | --tar | --ta | --t)
1305    ac_prev=target_alias ;;
1306  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1307    target_alias=$ac_optarg ;;
1308
1309  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1310    verbose=yes ;;
1311
1312  -version | --version | --versio | --versi | --vers | -V)
1313    ac_init_version=: ;;
1314
1315  -with-* | --with-*)
1316    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1317    # Reject names that are not valid shell variable names.
1318    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319      { echo "$as_me: error: invalid package name: $ac_package" >&2
1320   { (exit 1); exit 1; }; }
1321    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1322    eval with_$ac_package=\$ac_optarg ;;
1323
1324  -without-* | --without-*)
1325    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1326    # Reject names that are not valid shell variable names.
1327    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1328      { echo "$as_me: error: invalid package name: $ac_package" >&2
1329   { (exit 1); exit 1; }; }
1330    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1331    eval with_$ac_package=no ;;
1332
1333  --x)
1334    # Obsolete; use --with-x.
1335    with_x=yes ;;
1336
1337  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338  | --x-incl | --x-inc | --x-in | --x-i)
1339    ac_prev=x_includes ;;
1340  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1342    x_includes=$ac_optarg ;;
1343
1344  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346    ac_prev=x_libraries ;;
1347  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1349    x_libraries=$ac_optarg ;;
1350
1351  -*) { echo "$as_me: error: unrecognized option: $ac_option
1352Try \`$0 --help' for more information." >&2
1353   { (exit 1); exit 1; }; }
1354    ;;
1355
1356  *=*)
1357    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1358    # Reject names that are not valid shell variable names.
1359    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1360      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1361   { (exit 1); exit 1; }; }
1362    eval $ac_envvar=\$ac_optarg
1363    export $ac_envvar ;;
1364
1365  *)
1366    # FIXME: should be removed in autoconf 3.0.
1367    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1368    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1370    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1371    ;;
1372
1373  esac
1374done
1375
1376if test -n "$ac_prev"; then
1377  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1378  { echo "$as_me: error: missing argument to $ac_option" >&2
1379   { (exit 1); exit 1; }; }
1380fi
1381
1382# Be sure to have absolute directory names.
1383for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384		datadir sysconfdir sharedstatedir localstatedir includedir \
1385		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386		libdir localedir mandir
1387do
1388  eval ac_val=\$$ac_var
1389  case $ac_val in
1390    [\\/$]* | ?:[\\/]* )  continue;;
1391    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392  esac
1393  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1394   { (exit 1); exit 1; }; }
1395done
1396
1397# There might be people who depend on the old broken behavior: `$host'
1398# used to hold the argument of --host etc.
1399# FIXME: To remove some day.
1400build=$build_alias
1401host=$host_alias
1402target=$target_alias
1403
1404# FIXME: To remove some day.
1405if test "x$host_alias" != x; then
1406  if test "x$build_alias" = x; then
1407    cross_compiling=maybe
1408    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1409    If a cross compiler is detected then cross compile mode will be used." >&2
1410  elif test "x$build_alias" != "x$host_alias"; then
1411    cross_compiling=yes
1412  fi
1413fi
1414
1415ac_tool_prefix=
1416test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417
1418test "$silent" = yes && exec 6>/dev/null
1419
1420
1421ac_pwd=`pwd` && test -n "$ac_pwd" &&
1422ac_ls_di=`ls -di .` &&
1423ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1424  { echo "$as_me: error: Working directory cannot be determined" >&2
1425   { (exit 1); exit 1; }; }
1426test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1427  { echo "$as_me: error: pwd does not report name of working directory" >&2
1428   { (exit 1); exit 1; }; }
1429
1430
1431# Find the source files, if location was not specified.
1432if test -z "$srcdir"; then
1433  ac_srcdir_defaulted=yes
1434  # Try the directory containing this script, then the parent directory.
1435  ac_confdir=`$as_dirname -- "$0" ||
1436$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1437	 X"$0" : 'X\(//\)[^/]' \| \
1438	 X"$0" : 'X\(//\)$' \| \
1439	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1440echo X"$0" |
1441    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1442	    s//\1/
1443	    q
1444	  }
1445	  /^X\(\/\/\)[^/].*/{
1446	    s//\1/
1447	    q
1448	  }
1449	  /^X\(\/\/\)$/{
1450	    s//\1/
1451	    q
1452	  }
1453	  /^X\(\/\).*/{
1454	    s//\1/
1455	    q
1456	  }
1457	  s/.*/./; q'`
1458  srcdir=$ac_confdir
1459  if test ! -r "$srcdir/$ac_unique_file"; then
1460    srcdir=..
1461  fi
1462else
1463  ac_srcdir_defaulted=no
1464fi
1465if test ! -r "$srcdir/$ac_unique_file"; then
1466  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1467  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1468   { (exit 1); exit 1; }; }
1469fi
1470ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1471ac_abs_confdir=`(
1472	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1473   { (exit 1); exit 1; }; }
1474	pwd)`
1475# When building in place, set srcdir=.
1476if test "$ac_abs_confdir" = "$ac_pwd"; then
1477  srcdir=.
1478fi
1479# Remove unnecessary trailing slashes from srcdir.
1480# Double slashes in file names in object file debugging info
1481# mess up M-x gdb in Emacs.
1482case $srcdir in
1483*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484esac
1485for ac_var in $ac_precious_vars; do
1486  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487  eval ac_env_${ac_var}_value=\$${ac_var}
1488  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490done
1491
1492#
1493# Report the --help message.
1494#
1495if test "$ac_init_help" = "long"; then
1496  # Omit some internal or obsolete options to make the list less imposing.
1497  # This message is too long to be a string in the A/UX 3.1 sh.
1498  cat <<_ACEOF
1499\`configure' configures sablevm-classpath 1.13 to adapt to many kinds of systems.
1500
1501Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504VAR=VALUE.  See below for descriptions of some of the useful variables.
1505
1506Defaults for the options are specified in brackets.
1507
1508Configuration:
1509  -h, --help              display this help and exit
1510      --help=short        display options specific to this package
1511      --help=recursive    display the short help of all the included packages
1512  -V, --version           display version information and exit
1513  -q, --quiet, --silent   do not print \`checking...' messages
1514      --cache-file=FILE   cache test results in FILE [disabled]
1515  -C, --config-cache      alias for \`--cache-file=config.cache'
1516  -n, --no-create         do not create output files
1517      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1518
1519Installation directories:
1520  --prefix=PREFIX         install architecture-independent files in PREFIX
1521			  [$ac_default_prefix]
1522  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1523			  [PREFIX]
1524
1525By default, \`make install' will install all the files in
1526\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1527an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528for instance \`--prefix=\$HOME'.
1529
1530For better control, use the options below.
1531
1532Fine tuning of the installation directories:
1533  --bindir=DIR           user executables [EPREFIX/bin]
1534  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1535  --libexecdir=DIR       program executables [EPREFIX/libexec]
1536  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1537  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1538  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1539  --libdir=DIR           object code libraries [EPREFIX/lib]
1540  --includedir=DIR       C header files [PREFIX/include]
1541  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1542  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1543  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1544  --infodir=DIR          info documentation [DATAROOTDIR/info]
1545  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1546  --mandir=DIR           man documentation [DATAROOTDIR/man]
1547  --docdir=DIR           documentation root [DATAROOTDIR/doc/sablevm-classpath]
1548  --htmldir=DIR          html documentation [DOCDIR]
1549  --dvidir=DIR           dvi documentation [DOCDIR]
1550  --pdfdir=DIR           pdf documentation [DOCDIR]
1551  --psdir=DIR            ps documentation [DOCDIR]
1552_ACEOF
1553
1554  cat <<\_ACEOF
1555
1556Program names:
1557  --program-prefix=PREFIX            prepend PREFIX to installed program names
1558  --program-suffix=SUFFIX            append SUFFIX to installed program names
1559  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1560
1561X features:
1562  --x-includes=DIR    X include files are in DIR
1563  --x-libraries=DIR   X library files are in DIR
1564
1565System types:
1566  --build=BUILD     configure for building on BUILD [guessed]
1567  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1568  --target=TARGET   configure for building compilers for TARGET [HOST]
1569_ACEOF
1570fi
1571
1572if test -n "$ac_init_help"; then
1573  case $ac_init_help in
1574     short | recursive ) echo "Configuration of sablevm-classpath 1.13:";;
1575   esac
1576  cat <<\_ACEOF
1577
1578Optional Features:
1579  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1580  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1581  --enable-compilation-warnings
1582                          compilation warnings default=no
1583  --enable-java           compile Java source default=yes
1584  --enable-jni            compile JNI source default=yes
1585  --enable-core-jni       compile JNI sources for core default=yes
1586  --enable-Werror         whether to compile C code with -Werror which turns
1587                          any compiler warning into a compilation failure
1588                          default=no
1589  --enable-default-toolkit
1590                          fully qualified class name of default AWT toolkit
1591  --enable-xmlj           compile native libxml/xslt library default=no
1592  --disable-alsa          compile ALSA providers (enable by --enable-alsa)
1593                          default=yes
1594  --disable-dependency-tracking  speeds up one-time build
1595  --enable-dependency-tracking   do not reject slow dependency extractors
1596  --disable-dssi          compile DSSI providers (enable by --enable-dssi)
1597                          default=yes
1598  --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
1599                          default=yes
1600
1601  --enable-gtk-cairo      build the cairo Graphics2D implementation on GTK
1602                          default=no
1603  --enable-qt-peer        compile Qt4 native peers (disabled by --disable-jni)
1604                          default=no
1605  --enable-regen-headers  automatically regenerate JNI headers default=no
1606  --enable-static[=PKGS]  build static libraries [default=no]
1607  --enable-shared[=PKGS]  build shared libraries [default=yes]
1608  --enable-fast-install[=PKGS]
1609                          optimize for fast installation [default=yes]
1610  --disable-libtool-lock  avoid locking (might break parallel builds)
1611  --disable-rpath         do not hardcode runtime library paths
1612  --enable-maintainer-mode  enable make rules and dependencies not useful
1613			  (and sometimes confusing) to the casual installer
1614  --enable-debug          enable runtime debugging code
1615  --enable-load-library   enable to use JNI native methods default=yes
1616  --enable-java-lang-system-explicit-initialization
1617                          will the VM explicitly invoke java.lang.System's
1618                          static initialization methods default=no
1619  --enable-examples       enable build of the examples default=yes
1620  --enable-portable-native-sync
1621                          synchronize VM threads portably
1622
1623Optional Packages:
1624  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1625  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1626  --with-native-libdir    sets the installation directore for native libraries
1627                          default='${libdir}/${PACKAGE}'
1628  --with-glibj-dir        sets the installation directory for glibj.zip
1629                          default='${libdir}/${PACKAGE}'
1630  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631  --with-pic              try to use only PIC/non-PIC objects [default=use
1632                          both]
1633  --with-tags[=TAGS]      include additional configurations [automatic]
1634  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1635  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1636  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1637  --with-x                use the X Window System
1638  --with-qt4dir=DIR       Qt4 installation directory used for OS-X. For other
1639                          systems use pkg-config.
1640  --with-javah            specify path or name of a javah-like program
1641  --with-jikes            bytecode compilation with jikes
1642  --with-gcjx             bytecode compilation with gcjx
1643  --with-ecj              bytecode compilation with ecj
1644  --with-classpath        specify path to a classes.zip like file
1645  --with-vm-classes       specify path to VM override source files
1646  --with-compressed-classes
1647                          define how to install the class library
1648                          (storeonly[default]|fastjar|zip|none|no)
1649  --with-gjdoc            generate documentation using gjdoc (default is NO)
1650  --with-jay              Regenerate the parsers with jay must be given the
1651                          path to the jay executable
1652
1653Some influential environment variables:
1654  CC          C compiler command
1655  CFLAGS      C compiler flags
1656  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1657              nonstandard directory <lib dir>
1658  LIBS        libraries to pass to the linker, e.g. -l<library>
1659  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1660              you have headers in a nonstandard directory <include dir>
1661  CPP         C preprocessor
1662  CXX         C++ compiler command
1663  CXXFLAGS    C++ compiler flags
1664  CXXCPP      C++ preprocessor
1665  F77         Fortran 77 compiler command
1666  FFLAGS      Fortran 77 compiler flags
1667  XMKMF       Path to xmkmf, Makefile generator for X Window System
1668
1669Use these variables to override the choices made by `configure' or to help
1670it to find libraries and programs with nonstandard names/locations.
1671
1672Report bugs to <http://sablevm.org/>.
1673_ACEOF
1674ac_status=$?
1675fi
1676
1677if test "$ac_init_help" = "recursive"; then
1678  # If there are subdirs, report their specific --help.
1679  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1680    test -d "$ac_dir" || continue
1681    ac_builddir=.
1682
1683case "$ac_dir" in
1684.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1685*)
1686  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1687  # A ".." for each directory in $ac_dir_suffix.
1688  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1689  case $ac_top_builddir_sub in
1690  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1691  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1692  esac ;;
1693esac
1694ac_abs_top_builddir=$ac_pwd
1695ac_abs_builddir=$ac_pwd$ac_dir_suffix
1696# for backward compatibility:
1697ac_top_builddir=$ac_top_build_prefix
1698
1699case $srcdir in
1700  .)  # We are building in place.
1701    ac_srcdir=.
1702    ac_top_srcdir=$ac_top_builddir_sub
1703    ac_abs_top_srcdir=$ac_pwd ;;
1704  [\\/]* | ?:[\\/]* )  # Absolute name.
1705    ac_srcdir=$srcdir$ac_dir_suffix;
1706    ac_top_srcdir=$srcdir
1707    ac_abs_top_srcdir=$srcdir ;;
1708  *) # Relative name.
1709    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1710    ac_top_srcdir=$ac_top_build_prefix$srcdir
1711    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1712esac
1713ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1714
1715    cd "$ac_dir" || { ac_status=$?; continue; }
1716    # Check for guested configure.
1717    if test -f "$ac_srcdir/configure.gnu"; then
1718      echo &&
1719      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1720    elif test -f "$ac_srcdir/configure"; then
1721      echo &&
1722      $SHELL "$ac_srcdir/configure" --help=recursive
1723    else
1724      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1725    fi || ac_status=$?
1726    cd "$ac_pwd" || { ac_status=$?; break; }
1727  done
1728fi
1729
1730test -n "$ac_init_help" && exit $ac_status
1731if $ac_init_version; then
1732  cat <<\_ACEOF
1733sablevm-classpath configure 1.13
1734generated by GNU Autoconf 2.61
1735
1736Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
17372002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1738This configure script is free software; the Free Software Foundation
1739gives unlimited permission to copy, distribute and modify it.
1740_ACEOF
1741  exit
1742fi
1743cat >config.log <<_ACEOF
1744This file contains any messages produced by compilers while
1745running configure, to aid debugging if configure makes a mistake.
1746
1747It was created by sablevm-classpath $as_me 1.13, which was
1748generated by GNU Autoconf 2.61.  Invocation command line was
1749
1750  $ $0 $@
1751
1752_ACEOF
1753exec 5>>config.log
1754{
1755cat <<_ASUNAME
1756## --------- ##
1757## Platform. ##
1758## --------- ##
1759
1760hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1761uname -m = `(uname -m) 2>/dev/null || echo unknown`
1762uname -r = `(uname -r) 2>/dev/null || echo unknown`
1763uname -s = `(uname -s) 2>/dev/null || echo unknown`
1764uname -v = `(uname -v) 2>/dev/null || echo unknown`
1765
1766/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1767/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1768
1769/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1770/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1771/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1772/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1773/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1774/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1775/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1776
1777_ASUNAME
1778
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782  IFS=$as_save_IFS
1783  test -z "$as_dir" && as_dir=.
1784  echo "PATH: $as_dir"
1785done
1786IFS=$as_save_IFS
1787
1788} >&5
1789
1790cat >&5 <<_ACEOF
1791
1792
1793## ----------- ##
1794## Core tests. ##
1795## ----------- ##
1796
1797_ACEOF
1798
1799
1800# Keep a trace of the command line.
1801# Strip out --no-create and --no-recursion so they do not pile up.
1802# Strip out --silent because we don't want to record it for future runs.
1803# Also quote any args containing shell meta-characters.
1804# Make two passes to allow for proper duplicate-argument suppression.
1805ac_configure_args=
1806ac_configure_args0=
1807ac_configure_args1=
1808ac_must_keep_next=false
1809for ac_pass in 1 2
1810do
1811  for ac_arg
1812  do
1813    case $ac_arg in
1814    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816    | -silent | --silent | --silen | --sile | --sil)
1817      continue ;;
1818    *\'*)
1819      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820    esac
1821    case $ac_pass in
1822    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1823    2)
1824      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1825      if test $ac_must_keep_next = true; then
1826	ac_must_keep_next=false # Got value, back to normal.
1827      else
1828	case $ac_arg in
1829	  *=* | --config-cache | -C | -disable-* | --disable-* \
1830	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832	  | -with-* | --with-* | -without-* | --without-* | --x)
1833	    case "$ac_configure_args0 " in
1834	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835	    esac
1836	    ;;
1837	  -* ) ac_must_keep_next=true ;;
1838	esac
1839      fi
1840      ac_configure_args="$ac_configure_args '$ac_arg'"
1841      ;;
1842    esac
1843  done
1844done
1845$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1846$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1847
1848# When interrupted or exit'd, cleanup temporary files, and complete
1849# config.log.  We remove comments because anyway the quotes in there
1850# would cause problems or look ugly.
1851# WARNING: Use '\'' to represent an apostrophe within the trap.
1852# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853trap 'exit_status=$?
1854  # Save into config.log some information that might help in debugging.
1855  {
1856    echo
1857
1858    cat <<\_ASBOX
1859## ---------------- ##
1860## Cache variables. ##
1861## ---------------- ##
1862_ASBOX
1863    echo
1864    # The following way of writing the cache mishandles newlines in values,
1865(
1866  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867    eval ac_val=\$$ac_var
1868    case $ac_val in #(
1869    *${as_nl}*)
1870      case $ac_var in #(
1871      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1872echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1873      esac
1874      case $ac_var in #(
1875      _ | IFS | as_nl) ;; #(
1876      *) $as_unset $ac_var ;;
1877      esac ;;
1878    esac
1879  done
1880  (set) 2>&1 |
1881    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1882    *${as_nl}ac_space=\ *)
1883      sed -n \
1884	"s/'\''/'\''\\\\'\'''\''/g;
1885	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1886      ;; #(
1887    *)
1888      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1889      ;;
1890    esac |
1891    sort
1892)
1893    echo
1894
1895    cat <<\_ASBOX
1896## ----------------- ##
1897## Output variables. ##
1898## ----------------- ##
1899_ASBOX
1900    echo
1901    for ac_var in $ac_subst_vars
1902    do
1903      eval ac_val=\$$ac_var
1904      case $ac_val in
1905      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1906      esac
1907      echo "$ac_var='\''$ac_val'\''"
1908    done | sort
1909    echo
1910
1911    if test -n "$ac_subst_files"; then
1912      cat <<\_ASBOX
1913## ------------------- ##
1914## File substitutions. ##
1915## ------------------- ##
1916_ASBOX
1917      echo
1918      for ac_var in $ac_subst_files
1919      do
1920	eval ac_val=\$$ac_var
1921	case $ac_val in
1922	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1923	esac
1924	echo "$ac_var='\''$ac_val'\''"
1925      done | sort
1926      echo
1927    fi
1928
1929    if test -s confdefs.h; then
1930      cat <<\_ASBOX
1931## ----------- ##
1932## confdefs.h. ##
1933## ----------- ##
1934_ASBOX
1935      echo
1936      cat confdefs.h
1937      echo
1938    fi
1939    test "$ac_signal" != 0 &&
1940      echo "$as_me: caught signal $ac_signal"
1941    echo "$as_me: exit $exit_status"
1942  } >&5
1943  rm -f core *.core core.conftest.* &&
1944    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1945    exit $exit_status
1946' 0
1947for ac_signal in 1 2 13 15; do
1948  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1949done
1950ac_signal=0
1951
1952# confdefs.h avoids OS command line length limits that DEFS can exceed.
1953rm -f -r conftest* confdefs.h
1954
1955# Predefined preprocessor variables.
1956
1957cat >>confdefs.h <<_ACEOF
1958#define PACKAGE_NAME "$PACKAGE_NAME"
1959_ACEOF
1960
1961
1962cat >>confdefs.h <<_ACEOF
1963#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1964_ACEOF
1965
1966
1967cat >>confdefs.h <<_ACEOF
1968#define PACKAGE_VERSION "$PACKAGE_VERSION"
1969_ACEOF
1970
1971
1972cat >>confdefs.h <<_ACEOF
1973#define PACKAGE_STRING "$PACKAGE_STRING"
1974_ACEOF
1975
1976
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1979_ACEOF
1980
1981
1982# Let the site file select an alternate cache file if it wants to.
1983# Prefer explicitly selected file to automatically selected ones.
1984if test -n "$CONFIG_SITE"; then
1985  set x "$CONFIG_SITE"
1986elif test "x$prefix" != xNONE; then
1987  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1988else
1989  set x "$ac_default_prefix/share/config.site" \
1990	"$ac_default_prefix/etc/config.site"
1991fi
1992shift
1993for ac_site_file
1994do
1995  if test -r "$ac_site_file"; then
1996    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1997echo "$as_me: loading site script $ac_site_file" >&6;}
1998    sed 's/^/| /' "$ac_site_file" >&5
1999    . "$ac_site_file"
2000  fi
2001done
2002
2003if test -r "$cache_file"; then
2004  # Some versions of bash will fail to source /dev/null (special
2005  # files actually), so we avoid doing that.
2006  if test -f "$cache_file"; then
2007    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2008echo "$as_me: loading cache $cache_file" >&6;}
2009    case $cache_file in
2010      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2011      *)                      . "./$cache_file";;
2012    esac
2013  fi
2014else
2015  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2016echo "$as_me: creating cache $cache_file" >&6;}
2017  >$cache_file
2018fi
2019
2020# Check that the precious variables saved in the cache have kept the same
2021# value.
2022ac_cache_corrupted=false
2023for ac_var in $ac_precious_vars; do
2024  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2025  eval ac_new_set=\$ac_env_${ac_var}_set
2026  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2027  eval ac_new_val=\$ac_env_${ac_var}_value
2028  case $ac_old_set,$ac_new_set in
2029    set,)
2030      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2031echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2032      ac_cache_corrupted=: ;;
2033    ,set)
2034      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2035echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2036      ac_cache_corrupted=: ;;
2037    ,);;
2038    *)
2039      if test "x$ac_old_val" != "x$ac_new_val"; then
2040	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2041echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2042	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2043echo "$as_me:   former value:  $ac_old_val" >&2;}
2044	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2045echo "$as_me:   current value: $ac_new_val" >&2;}
2046	ac_cache_corrupted=:
2047      fi;;
2048  esac
2049  # Pass precious variables to config.status.
2050  if test "$ac_new_set" = set; then
2051    case $ac_new_val in
2052    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2053    *) ac_arg=$ac_var=$ac_new_val ;;
2054    esac
2055    case " $ac_configure_args " in
2056      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2057      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2058    esac
2059  fi
2060done
2061if $ac_cache_corrupted; then
2062  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2063echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2064  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2065echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2066   { (exit 1); exit 1; }; }
2067fi
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093ac_ext=c
2094ac_cpp='$CPP $CPPFLAGS'
2095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2097ac_compiler_gnu=$ac_cv_c_compiler_gnu
2098
2099
2100if test -d .svn ; then
2101  SVN_URL=`svn info | grep ^URL\: | cut -c6- | grep -v '/sablevm-classpath/trunk$' | grep -v '/tags/'`
2102  if test "x$SVN_URL" != "x" ; then
2103    case $PACKAGE_VERSION in
2104      trunk+*) echo "$PACKAGE_VERSION is not an appropriate branch version"
2105               echo "Please uncomment appropatiate AC INIT macro in configure.ac"
2106               exit 1 ;;
2107      *+*)     ;;
2108      *)       echo "$PACKAGE_VERSION is not an appropriate branch version"
2109               echo "Please uncomment appropatiate AC INIT macro in configure.ac"
2110               exit 1 ;;
2111    esac
2112  fi
2113fi
2114
2115
2116
2117ac_aux_dir=
2118for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2119  if test -f "$ac_dir/install-sh"; then
2120    ac_aux_dir=$ac_dir
2121    ac_install_sh="$ac_aux_dir/install-sh -c"
2122    break
2123  elif test -f "$ac_dir/install.sh"; then
2124    ac_aux_dir=$ac_dir
2125    ac_install_sh="$ac_aux_dir/install.sh -c"
2126    break
2127  elif test -f "$ac_dir/shtool"; then
2128    ac_aux_dir=$ac_dir
2129    ac_install_sh="$ac_aux_dir/shtool install -c"
2130    break
2131  fi
2132done
2133if test -z "$ac_aux_dir"; then
2134  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2135echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2136   { (exit 1); exit 1; }; }
2137fi
2138
2139# These three variables are undocumented and unsupported,
2140# and are intended to be withdrawn in a future Autoconf release.
2141# They can cause serious problems if a builder's source tree is in a directory
2142# whose full name contains unusual characters.
2143ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2144ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2145ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2146
2147
2148# Make sure we can run config.sub.
2149$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2150  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2151echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2152   { (exit 1); exit 1; }; }
2153
2154{ echo "$as_me:$LINENO: checking build system type" >&5
2155echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2156if test "${ac_cv_build+set}" = set; then
2157  echo $ECHO_N "(cached) $ECHO_C" >&6
2158else
2159  ac_build_alias=$build_alias
2160test "x$ac_build_alias" = x &&
2161  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2162test "x$ac_build_alias" = x &&
2163  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2164echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2165   { (exit 1); exit 1; }; }
2166ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2167  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2168echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2169   { (exit 1); exit 1; }; }
2170
2171fi
2172{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2173echo "${ECHO_T}$ac_cv_build" >&6; }
2174case $ac_cv_build in
2175*-*-*) ;;
2176*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2177echo "$as_me: error: invalid value of canonical build" >&2;}
2178   { (exit 1); exit 1; }; };;
2179esac
2180build=$ac_cv_build
2181ac_save_IFS=$IFS; IFS='-'
2182set x $ac_cv_build
2183shift
2184build_cpu=$1
2185build_vendor=$2
2186shift; shift
2187# Remember, the first character of IFS is used to create $*,
2188# except with old shells:
2189build_os=$*
2190IFS=$ac_save_IFS
2191case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2192
2193
2194{ echo "$as_me:$LINENO: checking host system type" >&5
2195echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2196if test "${ac_cv_host+set}" = set; then
2197  echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199  if test "x$host_alias" = x; then
2200  ac_cv_host=$ac_cv_build
2201else
2202  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2203    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2204echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2205   { (exit 1); exit 1; }; }
2206fi
2207
2208fi
2209{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2210echo "${ECHO_T}$ac_cv_host" >&6; }
2211case $ac_cv_host in
2212*-*-*) ;;
2213*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2214echo "$as_me: error: invalid value of canonical host" >&2;}
2215   { (exit 1); exit 1; }; };;
2216esac
2217host=$ac_cv_host
2218ac_save_IFS=$IFS; IFS='-'
2219set x $ac_cv_host
2220shift
2221host_cpu=$1
2222host_vendor=$2
2223shift; shift
2224# Remember, the first character of IFS is used to create $*,
2225# except with old shells:
2226host_os=$*
2227IFS=$ac_save_IFS
2228case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2229
2230
2231{ echo "$as_me:$LINENO: checking target system type" >&5
2232echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2233if test "${ac_cv_target+set}" = set; then
2234  echo $ECHO_N "(cached) $ECHO_C" >&6
2235else
2236  if test "x$target_alias" = x; then
2237  ac_cv_target=$ac_cv_host
2238else
2239  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2240    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2241echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2242   { (exit 1); exit 1; }; }
2243fi
2244
2245fi
2246{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2247echo "${ECHO_T}$ac_cv_target" >&6; }
2248case $ac_cv_target in
2249*-*-*) ;;
2250*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2251echo "$as_me: error: invalid value of canonical target" >&2;}
2252   { (exit 1); exit 1; }; };;
2253esac
2254target=$ac_cv_target
2255ac_save_IFS=$IFS; IFS='-'
2256set x $ac_cv_target
2257shift
2258target_cpu=$1
2259target_vendor=$2
2260shift; shift
2261# Remember, the first character of IFS is used to create $*,
2262# except with old shells:
2263target_os=$*
2264IFS=$ac_save_IFS
2265case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2266
2267
2268# The aliases save the names the user supplied, while $host etc.
2269# will get canonicalized.
2270test -n "$target_alias" &&
2271  test "$program_prefix$program_suffix$program_transform_name" = \
2272    NONENONEs,x,x, &&
2273  program_prefix=${target_alias}-
2274
2275LIBRELEASE="1.13"
2276
2277
2278if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
2279
2280case "$host_os" in
2281     darwin*)
2282	cp_module=""
2283	;;
2284	*)
2285	cp_module="-module"
2286	;;
2287esac
2288
2289CLASSPATH_MODULE="${cp_module} -release ${LIBRELEASE} -no-undefined"
2290
2291
2292
2293am__api_version="1.9"
2294# Find a good install program.  We prefer a C program (faster),
2295# so one script is as good as another.  But avoid the broken or
2296# incompatible versions:
2297# SysV /etc/install, /usr/sbin/install
2298# SunOS /usr/etc/install
2299# IRIX /sbin/install
2300# AIX /bin/install
2301# AmigaOS /C/install, which installs bootblocks on floppy discs
2302# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2303# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2304# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2305# OS/2's system install, which has a completely different semantic
2306# ./install, which can be erroneously created by make from ./install.sh.
2307{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2308echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2309if test -z "$INSTALL"; then
2310if test "${ac_cv_path_install+set}" = set; then
2311  echo $ECHO_N "(cached) $ECHO_C" >&6
2312else
2313  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316  IFS=$as_save_IFS
2317  test -z "$as_dir" && as_dir=.
2318  # Account for people who put trailing slashes in PATH elements.
2319case $as_dir/ in
2320  ./ | .// | /cC/* | \
2321  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2322  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2323  /usr/ucb/* ) ;;
2324  *)
2325    # OSF1 and SCO ODT 3.0 have their own names for install.
2326    # Don't use installbsd from OSF since it installs stuff as root
2327    # by default.
2328    for ac_prog in ginstall scoinst install; do
2329      for ac_exec_ext in '' $ac_executable_extensions; do
2330	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2331	  if test $ac_prog = install &&
2332	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2333	    # AIX install.  It has an incompatible calling convention.
2334	    :
2335	  elif test $ac_prog = install &&
2336	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337	    # program-specific install script used by HP pwplus--don't use.
2338	    :
2339	  else
2340	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2341	    break 3
2342	  fi
2343	fi
2344      done
2345    done
2346    ;;
2347esac
2348done
2349IFS=$as_save_IFS
2350
2351
2352fi
2353  if test "${ac_cv_path_install+set}" = set; then
2354    INSTALL=$ac_cv_path_install
2355  else
2356    # As a last resort, use the slow shell script.  Don't cache a
2357    # value for INSTALL within a source directory, because that will
2358    # break other packages using the cache if that directory is
2359    # removed, or if the value is a relative name.
2360    INSTALL=$ac_install_sh
2361  fi
2362fi
2363{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2364echo "${ECHO_T}$INSTALL" >&6; }
2365
2366# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2367# It thinks the first close brace ends the variable substitution.
2368test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2369
2370test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2371
2372test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2373
2374{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2375echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2376# Just in case
2377sleep 1
2378echo timestamp > conftest.file
2379# Do `set' in a subshell so we don't clobber the current shell's
2380# arguments.  Must try -L first in case configure is actually a
2381# symlink; some systems play weird games with the mod time of symlinks
2382# (eg FreeBSD returns the mod time of the symlink's containing
2383# directory).
2384if (
2385   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2386   if test "$*" = "X"; then
2387      # -L didn't work.
2388      set X `ls -t $srcdir/configure conftest.file`
2389   fi
2390   rm -f conftest.file
2391   if test "$*" != "X $srcdir/configure conftest.file" \
2392      && test "$*" != "X conftest.file $srcdir/configure"; then
2393
2394      # If neither matched, then we have a broken ls.  This can happen
2395      # if, for instance, CONFIG_SHELL is bash and it inherits a
2396      # broken ls alias from the environment.  This has actually
2397      # happened.  Such a system could not be considered "sane".
2398      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2399alias in your environment" >&5
2400echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2401alias in your environment" >&2;}
2402   { (exit 1); exit 1; }; }
2403   fi
2404
2405   test "$2" = conftest.file
2406   )
2407then
2408   # Ok.
2409   :
2410else
2411   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2412Check your system clock" >&5
2413echo "$as_me: error: newly created file is older than distributed files!
2414Check your system clock" >&2;}
2415   { (exit 1); exit 1; }; }
2416fi
2417{ echo "$as_me:$LINENO: result: yes" >&5
2418echo "${ECHO_T}yes" >&6; }
2419test "$program_prefix" != NONE &&
2420  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2421# Use a double $ so make ignores it.
2422test "$program_suffix" != NONE &&
2423  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2424# Double any \ or $.  echo might interpret backslashes.
2425# By default was `s,x,x', remove it if useless.
2426cat <<\_ACEOF >conftest.sed
2427s/[\\$]/&&/g;s/;s,x,x,$//
2428_ACEOF
2429program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2430rm -f conftest.sed
2431
2432# expand $ac_aux_dir to an absolute path
2433am_aux_dir=`cd $ac_aux_dir && pwd`
2434
2435test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2436# Use eval to expand $SHELL
2437if eval "$MISSING --run true"; then
2438  am_missing_run="$MISSING --run "
2439else
2440  am_missing_run=
2441  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2442echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2443fi
2444
2445if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2446  # We used to keeping the `.' as first argument, in order to
2447  # allow $(mkdir_p) to be used without argument.  As in
2448  #   $(mkdir_p) $(somedir)
2449  # where $(somedir) is conditionally defined.  However this is wrong
2450  # for two reasons:
2451  #  1. if the package is installed by a user who cannot write `.'
2452  #     make install will fail,
2453  #  2. the above comment should most certainly read
2454  #     $(mkdir_p) $(DESTDIR)$(somedir)
2455  #     so it does not work when $(somedir) is undefined and
2456  #     $(DESTDIR) is not.
2457  #  To support the latter case, we have to write
2458  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2459  #  so the `.' trick is pointless.
2460  mkdir_p='mkdir -p --'
2461else
2462  # On NextStep and OpenStep, the `mkdir' command does not
2463  # recognize any option.  It will interpret all options as
2464  # directories to create, and then abort because `.' already
2465  # exists.
2466  for d in ./-p ./--version;
2467  do
2468    test -d $d && rmdir $d
2469  done
2470  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2471  if test -f "$ac_aux_dir/mkinstalldirs"; then
2472    mkdir_p='$(mkinstalldirs)'
2473  else
2474    mkdir_p='$(install_sh) -d'
2475  fi
2476fi
2477
2478for ac_prog in gawk mawk nawk awk
2479do
2480  # Extract the first word of "$ac_prog", so it can be a program name with args.
2481set dummy $ac_prog; ac_word=$2
2482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2484if test "${ac_cv_prog_AWK+set}" = set; then
2485  echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487  if test -n "$AWK"; then
2488  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493  IFS=$as_save_IFS
2494  test -z "$as_dir" && as_dir=.
2495  for ac_exec_ext in '' $ac_executable_extensions; do
2496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2497    ac_cv_prog_AWK="$ac_prog"
2498    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499    break 2
2500  fi
2501done
2502done
2503IFS=$as_save_IFS
2504
2505fi
2506fi
2507AWK=$ac_cv_prog_AWK
2508if test -n "$AWK"; then
2509  { echo "$as_me:$LINENO: result: $AWK" >&5
2510echo "${ECHO_T}$AWK" >&6; }
2511else
2512  { echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6; }
2514fi
2515
2516
2517  test -n "$AWK" && break
2518done
2519
2520{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2521echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2522set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2523if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2524  echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526  cat >conftest.make <<\_ACEOF
2527SHELL = /bin/sh
2528all:
2529	@echo '@@@%%%=$(MAKE)=@@@%%%'
2530_ACEOF
2531# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2532case `${MAKE-make} -f conftest.make 2>/dev/null` in
2533  *@@@%%%=?*=@@@%%%*)
2534    eval ac_cv_prog_make_${ac_make}_set=yes;;
2535  *)
2536    eval ac_cv_prog_make_${ac_make}_set=no;;
2537esac
2538rm -f conftest.make
2539fi
2540if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2541  { echo "$as_me:$LINENO: result: yes" >&5
2542echo "${ECHO_T}yes" >&6; }
2543  SET_MAKE=
2544else
2545  { echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6; }
2547  SET_MAKE="MAKE=${MAKE-make}"
2548fi
2549
2550rm -rf .tst 2>/dev/null
2551mkdir .tst 2>/dev/null
2552if test -d .tst; then
2553  am__leading_dot=.
2554else
2555  am__leading_dot=_
2556fi
2557rmdir .tst 2>/dev/null
2558
2559# test to see if srcdir already configured
2560if test "`cd $srcdir && pwd`" != "`pwd`" &&
2561   test -f $srcdir/config.status; then
2562  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2563echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2564   { (exit 1); exit 1; }; }
2565fi
2566
2567# test whether we have cygpath
2568if test -z "$CYGPATH_W"; then
2569  if (cygpath --version) >/dev/null 2>/dev/null; then
2570    CYGPATH_W='cygpath -w'
2571  else
2572    CYGPATH_W=echo
2573  fi
2574fi
2575
2576
2577# Define the identity of the package.
2578 PACKAGE='sablevm-classpath'
2579 VERSION='1.13'
2580
2581
2582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE "$PACKAGE"
2584_ACEOF
2585
2586
2587cat >>confdefs.h <<_ACEOF
2588#define VERSION "$VERSION"
2589_ACEOF
2590
2591# Some tools Automake needs.
2592
2593ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2594
2595
2596AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2597
2598
2599AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2600
2601
2602AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2603
2604
2605MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2606
2607install_sh=${install_sh-"$am_aux_dir/install-sh"}
2608
2609# Installed binaries are usually stripped using `strip' when the user
2610# run `make install-strip'.  However `strip' might not be the right
2611# tool to use in cross-compilation environments, therefore Automake
2612# will honor the `STRIP' environment variable to overrule this program.
2613if test "$cross_compiling" != no; then
2614  if test -n "$ac_tool_prefix"; then
2615  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2616set dummy ${ac_tool_prefix}strip; ac_word=$2
2617{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2619if test "${ac_cv_prog_STRIP+set}" = set; then
2620  echo $ECHO_N "(cached) $ECHO_C" >&6
2621else
2622  if test -n "$STRIP"; then
2623  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2624else
2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626for as_dir in $PATH
2627do
2628  IFS=$as_save_IFS
2629  test -z "$as_dir" && as_dir=.
2630  for ac_exec_ext in '' $ac_executable_extensions; do
2631  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2632    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2634    break 2
2635  fi
2636done
2637done
2638IFS=$as_save_IFS
2639
2640fi
2641fi
2642STRIP=$ac_cv_prog_STRIP
2643if test -n "$STRIP"; then
2644  { echo "$as_me:$LINENO: result: $STRIP" >&5
2645echo "${ECHO_T}$STRIP" >&6; }
2646else
2647  { echo "$as_me:$LINENO: result: no" >&5
2648echo "${ECHO_T}no" >&6; }
2649fi
2650
2651
2652fi
2653if test -z "$ac_cv_prog_STRIP"; then
2654  ac_ct_STRIP=$STRIP
2655  # Extract the first word of "strip", so it can be a program name with args.
2656set dummy strip; ac_word=$2
2657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2659if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2660  echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662  if test -n "$ac_ct_STRIP"; then
2663  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2664else
2665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666for as_dir in $PATH
2667do
2668  IFS=$as_save_IFS
2669  test -z "$as_dir" && as_dir=.
2670  for ac_exec_ext in '' $ac_executable_extensions; do
2671  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672    ac_cv_prog_ac_ct_STRIP="strip"
2673    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2674    break 2
2675  fi
2676done
2677done
2678IFS=$as_save_IFS
2679
2680fi
2681fi
2682ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2683if test -n "$ac_ct_STRIP"; then
2684  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2685echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2686else
2687  { echo "$as_me:$LINENO: result: no" >&5
2688echo "${ECHO_T}no" >&6; }
2689fi
2690
2691  if test "x$ac_ct_STRIP" = x; then
2692    STRIP=":"
2693  else
2694    case $cross_compiling:$ac_tool_warned in
2695yes:)
2696{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2697whose name does not start with the host triplet.  If you think this
2698configuration is useful to you, please write to autoconf@gnu.org." >&5
2699echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2700whose name does not start with the host triplet.  If you think this
2701configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2702ac_tool_warned=yes ;;
2703esac
2704    STRIP=$ac_ct_STRIP
2705  fi
2706else
2707  STRIP="$ac_cv_prog_STRIP"
2708fi
2709
2710fi
2711INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2712
2713# We need awk for the "check" target.  The system "awk" is bad on
2714# some platforms.
2715# Always define AMTAR for backward compatibility.
2716
2717AMTAR=${AMTAR-"${am_missing_run}tar"}
2718
2719
2720{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2721echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
2722# Loop over all known methods to create a tar archive until one works.
2723_am_tools='gnutar plaintar pax cpio none'
2724_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2725# Do not fold the above two line into one, because Tru64 sh and
2726# Solaris sh will not grok spaces in the rhs of `-'.
2727for _am_tool in $_am_tools
2728do
2729  case $_am_tool in
2730  gnutar)
2731    for _am_tar in tar gnutar gtar;
2732    do
2733      { echo "$as_me:$LINENO: $_am_tar --version" >&5
2734   ($_am_tar --version) >&5 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } && break
2738    done
2739    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2740    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2741    am__untar="$_am_tar -xf -"
2742    ;;
2743  plaintar)
2744    # Must skip GNU tar: if it does not support --format= it doesn't create
2745    # ustar tarball either.
2746    (tar --version) >/dev/null 2>&1 && continue
2747    am__tar='tar chf - "$$tardir"'
2748    am__tar_='tar chf - "$tardir"'
2749    am__untar='tar xf -'
2750    ;;
2751  pax)
2752    am__tar='pax -L -x ustar -w "$$tardir"'
2753    am__tar_='pax -L -x ustar -w "$tardir"'
2754    am__untar='pax -r'
2755    ;;
2756  cpio)
2757    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2758    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2759    am__untar='cpio -i -H ustar -d'
2760    ;;
2761  none)
2762    am__tar=false
2763    am__tar_=false
2764    am__untar=false
2765    ;;
2766  esac
2767
2768  # If the value was cached, stop now.  We just wanted to have am__tar
2769  # and am__untar set.
2770  test -n "${am_cv_prog_tar_ustar}" && break
2771
2772  # tar/untar a dummy directory, and stop if the command works
2773  rm -rf conftest.dir
2774  mkdir conftest.dir
2775  echo GrepMe > conftest.dir/file
2776  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2777   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }
2781  rm -rf conftest.dir
2782  if test -s conftest.tar; then
2783    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2784   ($am__untar <conftest.tar) >&5 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }
2788    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2789  fi
2790done
2791rm -rf conftest.dir
2792
2793if test "${am_cv_prog_tar_ustar+set}" = set; then
2794  echo $ECHO_N "(cached) $ECHO_C" >&6
2795else
2796  am_cv_prog_tar_ustar=$_am_tool
2797fi
2798
2799{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2800echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
2801
2802
2803
2804
2805
2806ac_config_headers="$ac_config_headers include/config.h"
2807
2808
2809
2810# Check whether --enable-compilation-warnings was given.
2811if test "${enable_compilation_warnings+set}" = set; then
2812  enableval=$enable_compilation_warnings; case "${enableval}" in
2813                 yes) COMPILATION_WARNINGS=yes ;;
2814                 no) COMPILATION_WARNINGS=no ;;
2815                 *) COMPILATION_WARNINGS=no ;;
2816               esac
2817else
2818  COMPILATION_WARNINGS=no
2819fi
2820
2821
2822case "${COMPILATION_WARNINGS}" in
2823     no) JIKES_FLAGS="$JIKES_FLAGS -q" ;;
2824     *) ;;
2825esac
2826
2827
2828# Check whether --enable-java was given.
2829if test "${enable_java+set}" = set; then
2830  enableval=$enable_java; case "${enableval}" in
2831                 yes) COMPILE_JAVA=yes ;;
2832                 no) COMPILE_JAVA=no ;;
2833                 *) COMPILE_JAVA=yes ;;
2834               esac
2835else
2836  COMPILE_JAVA=yes
2837fi
2838
2839
2840
2841if test "x${COMPILE_JAVA}" = xyes; then
2842  INSTALL_CLASS_FILES_TRUE=
2843  INSTALL_CLASS_FILES_FALSE='#'
2844else
2845  INSTALL_CLASS_FILES_TRUE='#'
2846  INSTALL_CLASS_FILES_FALSE=
2847fi
2848
2849
2850# Check whether --enable-jni was given.
2851if test "${enable_jni+set}" = set; then
2852  enableval=$enable_jni; case "${enableval}" in
2853                yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2854                no) COMPILE_JNI=no ;;
2855                *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
2856              esac
2857else
2858  COMPILE_JNI=yes
2859fi
2860
2861
2862
2863if test "x${COMPILE_JNI}" = xyes; then
2864  CREATE_JNI_LIBRARIES_TRUE=
2865  CREATE_JNI_LIBRARIES_FALSE='#'
2866else
2867  CREATE_JNI_LIBRARIES_TRUE='#'
2868  CREATE_JNI_LIBRARIES_FALSE=
2869fi
2870
2871
2872# Check whether --enable-core-jni was given.
2873if test "${enable_core_jni+set}" = set; then
2874  enableval=$enable_core_jni; case "${enableval}" in
2875                yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2876                no) COMPILE_CORE_JNI=no ;;
2877                *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
2878              esac
2879else
2880  COMPILE_CORE_JNI=yes
2881fi
2882
2883
2884
2885if test "x${COMPILE_CORE_JNI}" = xyes; then
2886  CREATE_CORE_JNI_LIBRARIES_TRUE=
2887  CREATE_CORE_JNI_LIBRARIES_FALSE='#'
2888else
2889  CREATE_CORE_JNI_LIBRARIES_TRUE='#'
2890  CREATE_CORE_JNI_LIBRARIES_FALSE=
2891fi
2892
2893
2894# Check whether --enable-Werror was given.
2895if test "${enable_Werror+set}" = set; then
2896  enableval=$enable_Werror; case "${enableval}" in
2897                yes) ENABLE_WERROR=yes ;;
2898                no) ENABLE_WERROR=no ;;
2899                *) ENABLE_WERROR=no ;;
2900              esac
2901else
2902  ENABLE_WERROR=no
2903fi
2904
2905
2906# Check whether --enable-default-toolkit was given.
2907if test "${enable_default_toolkit+set}" = set; then
2908  enableval=$enable_default_toolkit;
2909fi
2910
2911default_toolkit=$enable_default_toolkit
2912if test "$default_toolkit" = ""; then
2913   default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
2914fi
2915
2916
2917# Check whether --enable-xmlj was given.
2918if test "${enable_xmlj+set}" = set; then
2919  enableval=$enable_xmlj; case "${enableval}" in
2920                yes) COMPILE_XMLJ=yes ;;
2921                no) COMPILE_XMLJ=no ;;
2922                *) COMPILE_XMLJ=no ;;
2923              esac
2924else
2925  COMPILE_XMLJ=no
2926fi
2927
2928
2929
2930if test "x${COMPILE_XMLJ}" = xyes; then
2931  CREATE_XMLJ_LIBRARY_TRUE=
2932  CREATE_XMLJ_LIBRARY_FALSE='#'
2933else
2934  CREATE_XMLJ_LIBRARY_TRUE='#'
2935  CREATE_XMLJ_LIBRARY_FALSE=
2936fi
2937
2938
2939DEPDIR="${am__leading_dot}deps"
2940
2941ac_config_commands="$ac_config_commands depfiles"
2942
2943
2944am_make=${MAKE-make}
2945cat > confinc << 'END'
2946am__doit:
2947	@echo done
2948.PHONY: am__doit
2949END
2950# If we don't find an include directive, just comment out the code.
2951{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2952echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2953am__include="#"
2954am__quote=
2955_am_result=none
2956# First try GNU make style include.
2957echo "include confinc" > confmf
2958# We grep out `Entering directory' and `Leaving directory'
2959# messages which can occur if `w' ends up in MAKEFLAGS.
2960# In particular we don't look at `^make:' because GNU make might
2961# be invoked under some other name (usually "gmake"), in which
2962# case it prints its new name instead of `make'.
2963if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2964   am__include=include
2965   am__quote=
2966   _am_result=GNU
2967fi
2968# Now try BSD make style include.
2969if test "$am__include" = "#"; then
2970   echo '.include "confinc"' > confmf
2971   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2972      am__include=.include
2973      am__quote="\""
2974      _am_result=BSD
2975   fi
2976fi
2977
2978
2979{ echo "$as_me:$LINENO: result: $_am_result" >&5
2980echo "${ECHO_T}$_am_result" >&6; }
2981rm -f confinc confmf
2982
2983# Check whether --enable-dependency-tracking was given.
2984if test "${enable_dependency_tracking+set}" = set; then
2985  enableval=$enable_dependency_tracking;
2986fi
2987
2988if test "x$enable_dependency_tracking" != xno; then
2989  am_depcomp="$ac_aux_dir/depcomp"
2990  AMDEPBACKSLASH='\'
2991fi
2992
2993
2994if test "x$enable_dependency_tracking" != xno; then
2995  AMDEP_TRUE=
2996  AMDEP_FALSE='#'
2997else
2998  AMDEP_TRUE='#'
2999  AMDEP_FALSE=
3000fi
3001
3002
3003
3004ac_ext=c
3005ac_cpp='$CPP $CPPFLAGS'
3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009if test -n "$ac_tool_prefix"; then
3010  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3011set dummy ${ac_tool_prefix}gcc; ac_word=$2
3012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3014if test "${ac_cv_prog_CC+set}" = set; then
3015  echo $ECHO_N "(cached) $ECHO_C" >&6
3016else
3017  if test -n "$CC"; then
3018  ac_cv_prog_CC="$CC" # Let the user override the test.
3019else
3020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023  IFS=$as_save_IFS
3024  test -z "$as_dir" && as_dir=.
3025  for ac_exec_ext in '' $ac_executable_extensions; do
3026  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3029    break 2
3030  fi
3031done
3032done
3033IFS=$as_save_IFS
3034
3035fi
3036fi
3037CC=$ac_cv_prog_CC
3038if test -n "$CC"; then
3039  { echo "$as_me:$LINENO: result: $CC" >&5
3040echo "${ECHO_T}$CC" >&6; }
3041else
3042  { echo "$as_me:$LINENO: result: no" >&5
3043echo "${ECHO_T}no" >&6; }
3044fi
3045
3046
3047fi
3048if test -z "$ac_cv_prog_CC"; then
3049  ac_ct_CC=$CC
3050  # Extract the first word of "gcc", so it can be a program name with args.
3051set dummy gcc; ac_word=$2
3052{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3054if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3055  echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057  if test -n "$ac_ct_CC"; then
3058  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059else
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063  IFS=$as_save_IFS
3064  test -z "$as_dir" && as_dir=.
3065  for ac_exec_ext in '' $ac_executable_extensions; do
3066  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067    ac_cv_prog_ac_ct_CC="gcc"
3068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069    break 2
3070  fi
3071done
3072done
3073IFS=$as_save_IFS
3074
3075fi
3076fi
3077ac_ct_CC=$ac_cv_prog_ac_ct_CC
3078if test -n "$ac_ct_CC"; then
3079  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3080echo "${ECHO_T}$ac_ct_CC" >&6; }
3081else
3082  { echo "$as_me:$LINENO: result: no" >&5
3083echo "${ECHO_T}no" >&6; }
3084fi
3085
3086  if test "x$ac_ct_CC" = x; then
3087    CC=""
3088  else
3089    case $cross_compiling:$ac_tool_warned in
3090yes:)
3091{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3092whose name does not start with the host triplet.  If you think this
3093configuration is useful to you, please write to autoconf@gnu.org." >&5
3094echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3095whose name does not start with the host triplet.  If you think this
3096configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3097ac_tool_warned=yes ;;
3098esac
3099    CC=$ac_ct_CC
3100  fi
3101else
3102  CC="$ac_cv_prog_CC"
3103fi
3104
3105if test -z "$CC"; then
3106          if test -n "$ac_tool_prefix"; then
3107    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3108set dummy ${ac_tool_prefix}cc; ac_word=$2
3109{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3111if test "${ac_cv_prog_CC+set}" = set; then
3112  echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114  if test -n "$CC"; then
3115  ac_cv_prog_CC="$CC" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122  for ac_exec_ext in '' $ac_executable_extensions; do
3123  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124    ac_cv_prog_CC="${ac_tool_prefix}cc"
3125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129done
3130IFS=$as_save_IFS
3131
3132fi
3133fi
3134CC=$ac_cv_prog_CC
3135if test -n "$CC"; then
3136  { echo "$as_me:$LINENO: result: $CC" >&5
3137echo "${ECHO_T}$CC" >&6; }
3138else
3139  { echo "$as_me:$LINENO: result: no" >&5
3140echo "${ECHO_T}no" >&6; }
3141fi
3142
3143
3144  fi
3145fi
3146if test -z "$CC"; then
3147  # Extract the first word of "cc", so it can be a program name with args.
3148set dummy cc; ac_word=$2
3149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3151if test "${ac_cv_prog_CC+set}" = set; then
3152  echo $ECHO_N "(cached) $ECHO_C" >&6
3153else
3154  if test -n "$CC"; then
3155  ac_cv_prog_CC="$CC" # Let the user override the test.
3156else
3157  ac_prog_rejected=no
3158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159for as_dir in $PATH
3160do
3161  IFS=$as_save_IFS
3162  test -z "$as_dir" && as_dir=.
3163  for ac_exec_ext in '' $ac_executable_extensions; do
3164  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3165    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3166       ac_prog_rejected=yes
3167       continue
3168     fi
3169    ac_cv_prog_CC="cc"
3170    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171    break 2
3172  fi
3173done
3174done
3175IFS=$as_save_IFS
3176
3177if test $ac_prog_rejected = yes; then
3178  # We found a bogon in the path, so make sure we never use it.
3179  set dummy $ac_cv_prog_CC
3180  shift
3181  if test $# != 0; then
3182    # We chose a different compiler from the bogus one.
3183    # However, it has the same basename, so the bogon will be chosen
3184    # first if we set CC to just the basename; use the full file name.
3185    shift
3186    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187  fi
3188fi
3189fi
3190fi
3191CC=$ac_cv_prog_CC
3192if test -n "$CC"; then
3193  { echo "$as_me:$LINENO: result: $CC" >&5
3194echo "${ECHO_T}$CC" >&6; }
3195else
3196  { echo "$as_me:$LINENO: result: no" >&5
3197echo "${ECHO_T}no" >&6; }
3198fi
3199
3200
3201fi
3202if test -z "$CC"; then
3203  if test -n "$ac_tool_prefix"; then
3204  for ac_prog in cl.exe
3205  do
3206    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3208{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3210if test "${ac_cv_prog_CC+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213  if test -n "$CC"; then
3214  ac_cv_prog_CC="$CC" # Let the user override the test.
3215else
3216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217for as_dir in $PATH
3218do
3219  IFS=$as_save_IFS
3220  test -z "$as_dir" && as_dir=.
3221  for ac_exec_ext in '' $ac_executable_extensions; do
3222  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3224    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225    break 2
3226  fi
3227done
3228done
3229IFS=$as_save_IFS
3230
3231fi
3232fi
3233CC=$ac_cv_prog_CC
3234if test -n "$CC"; then
3235  { echo "$as_me:$LINENO: result: $CC" >&5
3236echo "${ECHO_T}$CC" >&6; }
3237else
3238  { echo "$as_me:$LINENO: result: no" >&5
3239echo "${ECHO_T}no" >&6; }
3240fi
3241
3242
3243    test -n "$CC" && break
3244  done
3245fi
3246if test -z "$CC"; then
3247  ac_ct_CC=$CC
3248  for ac_prog in cl.exe
3249do
3250  # Extract the first word of "$ac_prog", so it can be a program name with args.
3251set dummy $ac_prog; ac_word=$2
3252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3254if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3255  echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257  if test -n "$ac_ct_CC"; then
3258  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263  IFS=$as_save_IFS
3264  test -z "$as_dir" && as_dir=.
3265  for ac_exec_ext in '' $ac_executable_extensions; do
3266  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267    ac_cv_prog_ac_ct_CC="$ac_prog"
3268    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269    break 2
3270  fi
3271done
3272done
3273IFS=$as_save_IFS
3274
3275fi
3276fi
3277ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278if test -n "$ac_ct_CC"; then
3279  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3280echo "${ECHO_T}$ac_ct_CC" >&6; }
3281else
3282  { echo "$as_me:$LINENO: result: no" >&5
3283echo "${ECHO_T}no" >&6; }
3284fi
3285
3286
3287  test -n "$ac_ct_CC" && break
3288done
3289
3290  if test "x$ac_ct_CC" = x; then
3291    CC=""
3292  else
3293    case $cross_compiling:$ac_tool_warned in
3294yes:)
3295{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3296whose name does not start with the host triplet.  If you think this
3297configuration is useful to you, please write to autoconf@gnu.org." >&5
3298echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3299whose name does not start with the host triplet.  If you think this
3300configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3301ac_tool_warned=yes ;;
3302esac
3303    CC=$ac_ct_CC
3304  fi
3305fi
3306
3307fi
3308
3309
3310test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3311See \`config.log' for more details." >&5
3312echo "$as_me: error: no acceptable C compiler found in \$PATH
3313See \`config.log' for more details." >&2;}
3314   { (exit 1); exit 1; }; }
3315
3316# Provide some information about the compiler.
3317echo "$as_me:$LINENO: checking for C compiler version" >&5
3318ac_compiler=`set X $ac_compile; echo $2`
3319{ (ac_try="$ac_compiler --version >&5"
3320case "(($ac_try" in
3321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322  *) ac_try_echo=$ac_try;;
3323esac
3324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3325  (eval "$ac_compiler --version >&5") 2>&5
3326  ac_status=$?
3327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328  (exit $ac_status); }
3329{ (ac_try="$ac_compiler -v >&5"
3330case "(($ac_try" in
3331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332  *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335  (eval "$ac_compiler -v >&5") 2>&5
3336  ac_status=$?
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); }
3339{ (ac_try="$ac_compiler -V >&5"
3340case "(($ac_try" in
3341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342  *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345  (eval "$ac_compiler -V >&5") 2>&5
3346  ac_status=$?
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); }
3349
3350cat >conftest.$ac_ext <<_ACEOF
3351/* confdefs.h.  */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h.  */
3356
3357int
3358main ()
3359{
3360
3361  ;
3362  return 0;
3363}
3364_ACEOF
3365ac_clean_files_save=$ac_clean_files
3366ac_clean_files="$ac_clean_files a.out a.exe b.out"
3367# Try to create an executable without -o first, disregard a.out.
3368# It will help us diagnose broken compilers, and finding out an intuition
3369# of exeext.
3370{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3371echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3372ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3373#
3374# List of possible output files, starting from the most likely.
3375# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3376# only as a last resort.  b.out is created by i960 compilers.
3377ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3378#
3379# The IRIX 6 linker writes into existing files which may not be
3380# executable, retaining their permissions.  Remove them first so a
3381# subsequent execution test works.
3382ac_rmfiles=
3383for ac_file in $ac_files
3384do
3385  case $ac_file in
3386    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3387    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3388  esac
3389done
3390rm -f $ac_rmfiles
3391
3392if { (ac_try="$ac_link_default"
3393case "(($ac_try" in
3394  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395  *) ac_try_echo=$ac_try;;
3396esac
3397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398  (eval "$ac_link_default") 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; then
3402  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3403# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3404# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3405# so that the user can short-circuit this test for compilers unknown to
3406# Autoconf.
3407for ac_file in $ac_files ''
3408do
3409  test -f "$ac_file" || continue
3410  case $ac_file in
3411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3412	;;
3413    [ab].out )
3414	# We found the default executable, but exeext='' is most
3415	# certainly right.
3416	break;;
3417    *.* )
3418        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3419	then :; else
3420	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3421	fi
3422	# We set ac_cv_exeext here because the later test for it is not
3423	# safe: cross compilers may not add the suffix if given an `-o'
3424	# argument, so we may need to know it at that point already.
3425	# Even if this section looks crufty: it has the advantage of
3426	# actually working.
3427	break;;
3428    * )
3429	break;;
3430  esac
3431done
3432test "$ac_cv_exeext" = no && ac_cv_exeext=
3433
3434else
3435  ac_file=''
3436fi
3437
3438{ echo "$as_me:$LINENO: result: $ac_file" >&5
3439echo "${ECHO_T}$ac_file" >&6; }
3440if test -z "$ac_file"; then
3441  echo "$as_me: failed program was:" >&5
3442sed 's/^/| /' conftest.$ac_ext >&5
3443
3444{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3445See \`config.log' for more details." >&5
3446echo "$as_me: error: C compiler cannot create executables
3447See \`config.log' for more details." >&2;}
3448   { (exit 77); exit 77; }; }
3449fi
3450
3451ac_exeext=$ac_cv_exeext
3452
3453# Check that the compiler produces executables we can run.  If not, either
3454# the compiler is broken, or we cross compile.
3455{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3456echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3457# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3458# If not cross compiling, check that we can run a simple program.
3459if test "$cross_compiling" != yes; then
3460  if { ac_try='./$ac_file'
3461  { (case "(($ac_try" in
3462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463  *) ac_try_echo=$ac_try;;
3464esac
3465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466  (eval "$ac_try") 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; }; then
3470    cross_compiling=no
3471  else
3472    if test "$cross_compiling" = maybe; then
3473	cross_compiling=yes
3474    else
3475	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3476If you meant to cross compile, use \`--host'.
3477See \`config.log' for more details." >&5
3478echo "$as_me: error: cannot run C compiled programs.
3479If you meant to cross compile, use \`--host'.
3480See \`config.log' for more details." >&2;}
3481   { (exit 1); exit 1; }; }
3482    fi
3483  fi
3484fi
3485{ echo "$as_me:$LINENO: result: yes" >&5
3486echo "${ECHO_T}yes" >&6; }
3487
3488rm -f a.out a.exe conftest$ac_cv_exeext b.out
3489ac_clean_files=$ac_clean_files_save
3490# Check that the compiler produces executables we can run.  If not, either
3491# the compiler is broken, or we cross compile.
3492{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3493echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3494{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3495echo "${ECHO_T}$cross_compiling" >&6; }
3496
3497{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3498echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3499if { (ac_try="$ac_link"
3500case "(($ac_try" in
3501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502  *) ac_try_echo=$ac_try;;
3503esac
3504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505  (eval "$ac_link") 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }; then
3509  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3510# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3511# work properly (i.e., refer to `conftest.exe'), while it won't with
3512# `rm'.
3513for ac_file in conftest.exe conftest conftest.*; do
3514  test -f "$ac_file" || continue
3515  case $ac_file in
3516    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3517    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3518	  break;;
3519    * ) break;;
3520  esac
3521done
3522else
3523  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3524See \`config.log' for more details." >&5
3525echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3526See \`config.log' for more details." >&2;}
3527   { (exit 1); exit 1; }; }
3528fi
3529
3530rm -f conftest$ac_cv_exeext
3531{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3532echo "${ECHO_T}$ac_cv_exeext" >&6; }
3533
3534rm -f conftest.$ac_ext
3535EXEEXT=$ac_cv_exeext
3536ac_exeext=$EXEEXT
3537{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3538echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3539if test "${ac_cv_objext+set}" = set; then
3540  echo $ECHO_N "(cached) $ECHO_C" >&6
3541else
3542  cat >conftest.$ac_ext <<_ACEOF
3543/* confdefs.h.  */
3544_ACEOF
3545cat confdefs.h >>conftest.$ac_ext
3546cat >>conftest.$ac_ext <<_ACEOF
3547/* end confdefs.h.  */
3548
3549int
3550main ()
3551{
3552
3553  ;
3554  return 0;
3555}
3556_ACEOF
3557rm -f conftest.o conftest.obj
3558if { (ac_try="$ac_compile"
3559case "(($ac_try" in
3560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561  *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564  (eval "$ac_compile") 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; then
3568  for ac_file in conftest.o conftest.obj conftest.*; do
3569  test -f "$ac_file" || continue;
3570  case $ac_file in
3571    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3572    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573       break;;
3574  esac
3575done
3576else
3577  echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3581See \`config.log' for more details." >&5
3582echo "$as_me: error: cannot compute suffix of object files: cannot compile
3583See \`config.log' for more details." >&2;}
3584   { (exit 1); exit 1; }; }
3585fi
3586
3587rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588fi
3589{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3590echo "${ECHO_T}$ac_cv_objext" >&6; }
3591OBJEXT=$ac_cv_objext
3592ac_objext=$OBJEXT
3593{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3594echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3595if test "${ac_cv_c_compiler_gnu+set}" = set; then
3596  echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598  cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h.  */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h.  */
3604
3605int
3606main ()
3607{
3608#ifndef __GNUC__
3609       choke me
3610#endif
3611
3612  ;
3613  return 0;
3614}
3615_ACEOF
3616rm -f conftest.$ac_objext
3617if { (ac_try="$ac_compile"
3618case "(($ac_try" in
3619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620  *) ac_try_echo=$ac_try;;
3621esac
3622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3623  (eval "$ac_compile") 2>conftest.er1
3624  ac_status=$?
3625  grep -v '^ *+' conftest.er1 >conftest.err
3626  rm -f conftest.er1
3627  cat conftest.err >&5
3628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629  (exit $ac_status); } && {
3630	 test -z "$ac_c_werror_flag" ||
3631	 test ! -s conftest.err
3632       } && test -s conftest.$ac_objext; then
3633  ac_compiler_gnu=yes
3634else
3635  echo "$as_me: failed program was:" >&5
3636sed 's/^/| /' conftest.$ac_ext >&5
3637
3638	ac_compiler_gnu=no
3639fi
3640
3641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642ac_cv_c_compiler_gnu=$ac_compiler_gnu
3643
3644fi
3645{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3646echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3647GCC=`test $ac_compiler_gnu = yes && echo yes`
3648ac_test_CFLAGS=${CFLAGS+set}
3649ac_save_CFLAGS=$CFLAGS
3650{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3651echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3652if test "${ac_cv_prog_cc_g+set}" = set; then
3653  echo $ECHO_N "(cached) $ECHO_C" >&6
3654else
3655  ac_save_c_werror_flag=$ac_c_werror_flag
3656   ac_c_werror_flag=yes
3657   ac_cv_prog_cc_g=no
3658   CFLAGS="-g"
3659   cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h.  */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h.  */
3665
3666int
3667main ()
3668{
3669
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674rm -f conftest.$ac_objext
3675if { (ac_try="$ac_compile"
3676case "(($ac_try" in
3677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678  *) ac_try_echo=$ac_try;;
3679esac
3680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681  (eval "$ac_compile") 2>conftest.er1
3682  ac_status=$?
3683  grep -v '^ *+' conftest.er1 >conftest.err
3684  rm -f conftest.er1
3685  cat conftest.err >&5
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); } && {
3688	 test -z "$ac_c_werror_flag" ||
3689	 test ! -s conftest.err
3690       } && test -s conftest.$ac_objext; then
3691  ac_cv_prog_cc_g=yes
3692else
3693  echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696	CFLAGS=""
3697      cat >conftest.$ac_ext <<_ACEOF
3698/* confdefs.h.  */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h.  */
3703
3704int
3705main ()
3706{
3707
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712rm -f conftest.$ac_objext
3713if { (ac_try="$ac_compile"
3714case "(($ac_try" in
3715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716  *) ac_try_echo=$ac_try;;
3717esac
3718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3719  (eval "$ac_compile") 2>conftest.er1
3720  ac_status=$?
3721  grep -v '^ *+' conftest.er1 >conftest.err
3722  rm -f conftest.er1
3723  cat conftest.err >&5
3724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725  (exit $ac_status); } && {
3726	 test -z "$ac_c_werror_flag" ||
3727	 test ! -s conftest.err
3728       } && test -s conftest.$ac_objext; then
3729  :
3730else
3731  echo "$as_me: failed program was:" >&5
3732sed 's/^/| /' conftest.$ac_ext >&5
3733
3734	ac_c_werror_flag=$ac_save_c_werror_flag
3735	 CFLAGS="-g"
3736	 cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h.  */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h.  */
3742
3743int
3744main ()
3745{
3746
3747  ;
3748  return 0;
3749}
3750_ACEOF
3751rm -f conftest.$ac_objext
3752if { (ac_try="$ac_compile"
3753case "(($ac_try" in
3754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755  *) ac_try_echo=$ac_try;;
3756esac
3757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3758  (eval "$ac_compile") 2>conftest.er1
3759  ac_status=$?
3760  grep -v '^ *+' conftest.er1 >conftest.err
3761  rm -f conftest.er1
3762  cat conftest.err >&5
3763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764  (exit $ac_status); } && {
3765	 test -z "$ac_c_werror_flag" ||
3766	 test ! -s conftest.err
3767       } && test -s conftest.$ac_objext; then
3768  ac_cv_prog_cc_g=yes
3769else
3770  echo "$as_me: failed program was:" >&5
3771sed 's/^/| /' conftest.$ac_ext >&5
3772
3773
3774fi
3775
3776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777fi
3778
3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3780fi
3781
3782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783   ac_c_werror_flag=$ac_save_c_werror_flag
3784fi
3785{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3786echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3787if test "$ac_test_CFLAGS" = set; then
3788  CFLAGS=$ac_save_CFLAGS
3789elif test $ac_cv_prog_cc_g = yes; then
3790  if test "$GCC" = yes; then
3791    CFLAGS="-g -O2"
3792  else
3793    CFLAGS="-g"
3794  fi
3795else
3796  if test "$GCC" = yes; then
3797    CFLAGS="-O2"
3798  else
3799    CFLAGS=
3800  fi
3801fi
3802{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3803echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3804if test "${ac_cv_prog_cc_c89+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807  ac_cv_prog_cc_c89=no
3808ac_save_CC=$CC
3809cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h.  */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h.  */
3815#include <stdarg.h>
3816#include <stdio.h>
3817#include <sys/types.h>
3818#include <sys/stat.h>
3819/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3820struct buf { int x; };
3821FILE * (*rcsopen) (struct buf *, struct stat *, int);
3822static char *e (p, i)
3823     char **p;
3824     int i;
3825{
3826  return p[i];
3827}
3828static char *f (char * (*g) (char **, int), char **p, ...)
3829{
3830  char *s;
3831  va_list v;
3832  va_start (v,p);
3833  s = g (p, va_arg (v,int));
3834  va_end (v);
3835  return s;
3836}
3837
3838/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3839   function prototypes and stuff, but not '\xHH' hex character constants.
3840   These don't provoke an error unfortunately, instead are silently treated
3841   as 'x'.  The following induces an error, until -std is added to get
3842   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3843   array size at least.  It's necessary to write '\x00'==0 to get something
3844   that's true only with -std.  */
3845int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3846
3847/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3848   inside strings and character constants.  */
3849#define FOO(x) 'x'
3850int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3851
3852int test (int i, double x);
3853struct s1 {int (*f) (int a);};
3854struct s2 {int (*f) (double a);};
3855int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3856int argc;
3857char **argv;
3858int
3859main ()
3860{
3861return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3867	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3868do
3869  CC="$ac_save_CC $ac_arg"
3870  rm -f conftest.$ac_objext
3871if { (ac_try="$ac_compile"
3872case "(($ac_try" in
3873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874  *) ac_try_echo=$ac_try;;
3875esac
3876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877  (eval "$ac_compile") 2>conftest.er1
3878  ac_status=$?
3879  grep -v '^ *+' conftest.er1 >conftest.err
3880  rm -f conftest.er1
3881  cat conftest.err >&5
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); } && {
3884	 test -z "$ac_c_werror_flag" ||
3885	 test ! -s conftest.err
3886       } && test -s conftest.$ac_objext; then
3887  ac_cv_prog_cc_c89=$ac_arg
3888else
3889  echo "$as_me: failed program was:" >&5
3890sed 's/^/| /' conftest.$ac_ext >&5
3891
3892
3893fi
3894
3895rm -f core conftest.err conftest.$ac_objext
3896  test "x$ac_cv_prog_cc_c89" != "xno" && break
3897done
3898rm -f conftest.$ac_ext
3899CC=$ac_save_CC
3900
3901fi
3902# AC_CACHE_VAL
3903case "x$ac_cv_prog_cc_c89" in
3904  x)
3905    { echo "$as_me:$LINENO: result: none needed" >&5
3906echo "${ECHO_T}none needed" >&6; } ;;
3907  xno)
3908    { echo "$as_me:$LINENO: result: unsupported" >&5
3909echo "${ECHO_T}unsupported" >&6; } ;;
3910  *)
3911    CC="$CC $ac_cv_prog_cc_c89"
3912    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3913echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3914esac
3915
3916
3917ac_ext=c
3918ac_cpp='$CPP $CPPFLAGS'
3919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3921ac_compiler_gnu=$ac_cv_c_compiler_gnu
3922
3923depcc="$CC"   am_compiler_list=
3924
3925{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3926echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3927if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3928  echo $ECHO_N "(cached) $ECHO_C" >&6
3929else
3930  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3931  # We make a subdir and do the tests there.  Otherwise we can end up
3932  # making bogus files that we don't know about and never remove.  For
3933  # instance it was reported that on HP-UX the gcc test will end up
3934  # making a dummy file named `D' -- because `-MD' means `put the output
3935  # in D'.
3936  mkdir conftest.dir
3937  # Copy depcomp to subdir because otherwise we won't find it if we're
3938  # using a relative directory.
3939  cp "$am_depcomp" conftest.dir
3940  cd conftest.dir
3941  # We will build objects and dependencies in a subdirectory because
3942  # it helps to detect inapplicable dependency modes.  For instance
3943  # both Tru64's cc and ICC support -MD to output dependencies as a
3944  # side effect of compilation, but ICC will put the dependencies in
3945  # the current directory while Tru64 will put them in the object
3946  # directory.
3947  mkdir sub
3948
3949  am_cv_CC_dependencies_compiler_type=none
3950  if test "$am_compiler_list" = ""; then
3951     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3952  fi
3953  for depmode in $am_compiler_list; do
3954    # Setup a source with many dependencies, because some compilers
3955    # like to wrap large dependency lists on column 80 (with \), and
3956    # we should not choose a depcomp mode which is confused by this.
3957    #
3958    # We need to recreate these files for each test, as the compiler may
3959    # overwrite some of them when testing with obscure command lines.
3960    # This happens at least with the AIX C compiler.
3961    : > sub/conftest.c
3962    for i in 1 2 3 4 5 6; do
3963      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3964      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3965      # Solaris 8's {/usr,}/bin/sh.
3966      touch sub/conftst$i.h
3967    done
3968    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3969
3970    case $depmode in
3971    nosideeffect)
3972      # after this tag, mechanisms are not by side-effect, so they'll
3973      # only be used when explicitly requested
3974      if test "x$enable_dependency_tracking" = xyes; then
3975	continue
3976      else
3977	break
3978      fi
3979      ;;
3980    none) break ;;
3981    esac
3982    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3983    # mode.  It turns out that the SunPro C++ compiler does not properly
3984    # handle `-M -o', and we need to detect this.
3985    if depmode=$depmode \
3986       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3987       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3988       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3989         >/dev/null 2>conftest.err &&
3990       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3991       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3992       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3993      # icc doesn't choke on unknown options, it will just issue warnings
3994      # or remarks (even with -Werror).  So we grep stderr for any message
3995      # that says an option was ignored or not supported.
3996      # When given -MP, icc 7.0 and 7.1 complain thusly:
3997      #   icc: Command line warning: ignoring option '-M'; no argument required
3998      # The diagnosis changed in icc 8.0:
3999      #   icc: Command line remark: option '-MP' not supported
4000      if (grep 'ignoring option' conftest.err ||
4001          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4002        am_cv_CC_dependencies_compiler_type=$depmode
4003        break
4004      fi
4005    fi
4006  done
4007
4008  cd ..
4009  rm -rf conftest.dir
4010else
4011  am_cv_CC_dependencies_compiler_type=none
4012fi
4013
4014fi
4015{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4016echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4017CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4018
4019
4020
4021if
4022  test "x$enable_dependency_tracking" != xno \
4023  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4024  am__fastdepCC_TRUE=
4025  am__fastdepCC_FALSE='#'
4026else
4027  am__fastdepCC_TRUE='#'
4028  am__fastdepCC_FALSE=
4029fi
4030
4031
4032
4033ac_ext=c
4034ac_cpp='$CPP $CPPFLAGS'
4035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4039echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4040# On Suns, sometimes $CPP names a directory.
4041if test -n "$CPP" && test -d "$CPP"; then
4042  CPP=
4043fi
4044if test -z "$CPP"; then
4045  if test "${ac_cv_prog_CPP+set}" = set; then
4046  echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048      # Double quotes because CPP needs to be expanded
4049    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4050    do
4051      ac_preproc_ok=false
4052for ac_c_preproc_warn_flag in '' yes
4053do
4054  # Use a header file that comes with gcc, so configuring glibc
4055  # with a fresh cross-compiler works.
4056  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057  # <limits.h> exists even on freestanding compilers.
4058  # On the NeXT, cc -E runs the code through the compiler's parser,
4059  # not just through cpp. "Syntax error" is here to catch this case.
4060  cat >conftest.$ac_ext <<_ACEOF
4061/* confdefs.h.  */
4062_ACEOF
4063cat confdefs.h >>conftest.$ac_ext
4064cat >>conftest.$ac_ext <<_ACEOF
4065/* end confdefs.h.  */
4066#ifdef __STDC__
4067# include <limits.h>
4068#else
4069# include <assert.h>
4070#endif
4071		     Syntax error
4072_ACEOF
4073if { (ac_try="$ac_cpp conftest.$ac_ext"
4074case "(($ac_try" in
4075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076  *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4080  ac_status=$?
4081  grep -v '^ *+' conftest.er1 >conftest.err
4082  rm -f conftest.er1
4083  cat conftest.err >&5
4084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085  (exit $ac_status); } >/dev/null && {
4086	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087	 test ! -s conftest.err
4088       }; then
4089  :
4090else
4091  echo "$as_me: failed program was:" >&5
4092sed 's/^/| /' conftest.$ac_ext >&5
4093
4094  # Broken: fails on valid input.
4095continue
4096fi
4097
4098rm -f conftest.err conftest.$ac_ext
4099
4100  # OK, works on sane cases.  Now check whether nonexistent headers
4101  # can be detected and how.
4102  cat >conftest.$ac_ext <<_ACEOF
4103/* confdefs.h.  */
4104_ACEOF
4105cat confdefs.h >>conftest.$ac_ext
4106cat >>conftest.$ac_ext <<_ACEOF
4107/* end confdefs.h.  */
4108#include <ac_nonexistent.h>
4109_ACEOF
4110if { (ac_try="$ac_cpp conftest.$ac_ext"
4111case "(($ac_try" in
4112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113  *) ac_try_echo=$ac_try;;
4114esac
4115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4117  ac_status=$?
4118  grep -v '^ *+' conftest.er1 >conftest.err
4119  rm -f conftest.er1
4120  cat conftest.err >&5
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); } >/dev/null && {
4123	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4124	 test ! -s conftest.err
4125       }; then
4126  # Broken: success on invalid input.
4127continue
4128else
4129  echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132  # Passes both tests.
4133ac_preproc_ok=:
4134break
4135fi
4136
4137rm -f conftest.err conftest.$ac_ext
4138
4139done
4140# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4141rm -f conftest.err conftest.$ac_ext
4142if $ac_preproc_ok; then
4143  break
4144fi
4145
4146    done
4147    ac_cv_prog_CPP=$CPP
4148
4149fi
4150  CPP=$ac_cv_prog_CPP
4151else
4152  ac_cv_prog_CPP=$CPP
4153fi
4154{ echo "$as_me:$LINENO: result: $CPP" >&5
4155echo "${ECHO_T}$CPP" >&6; }
4156ac_preproc_ok=false
4157for ac_c_preproc_warn_flag in '' yes
4158do
4159  # Use a header file that comes with gcc, so configuring glibc
4160  # with a fresh cross-compiler works.
4161  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4162  # <limits.h> exists even on freestanding compilers.
4163  # On the NeXT, cc -E runs the code through the compiler's parser,
4164  # not just through cpp. "Syntax error" is here to catch this case.
4165  cat >conftest.$ac_ext <<_ACEOF
4166/* confdefs.h.  */
4167_ACEOF
4168cat confdefs.h >>conftest.$ac_ext
4169cat >>conftest.$ac_ext <<_ACEOF
4170/* end confdefs.h.  */
4171#ifdef __STDC__
4172# include <limits.h>
4173#else
4174# include <assert.h>
4175#endif
4176		     Syntax error
4177_ACEOF
4178if { (ac_try="$ac_cpp conftest.$ac_ext"
4179case "(($ac_try" in
4180  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181  *) ac_try_echo=$ac_try;;
4182esac
4183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4185  ac_status=$?
4186  grep -v '^ *+' conftest.er1 >conftest.err
4187  rm -f conftest.er1
4188  cat conftest.err >&5
4189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190  (exit $ac_status); } >/dev/null && {
4191	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4192	 test ! -s conftest.err
4193       }; then
4194  :
4195else
4196  echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199  # Broken: fails on valid input.
4200continue
4201fi
4202
4203rm -f conftest.err conftest.$ac_ext
4204
4205  # OK, works on sane cases.  Now check whether nonexistent headers
4206  # can be detected and how.
4207  cat >conftest.$ac_ext <<_ACEOF
4208/* confdefs.h.  */
4209_ACEOF
4210cat confdefs.h >>conftest.$ac_ext
4211cat >>conftest.$ac_ext <<_ACEOF
4212/* end confdefs.h.  */
4213#include <ac_nonexistent.h>
4214_ACEOF
4215if { (ac_try="$ac_cpp conftest.$ac_ext"
4216case "(($ac_try" in
4217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218  *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4222  ac_status=$?
4223  grep -v '^ *+' conftest.er1 >conftest.err
4224  rm -f conftest.er1
4225  cat conftest.err >&5
4226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227  (exit $ac_status); } >/dev/null && {
4228	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4229	 test ! -s conftest.err
4230       }; then
4231  # Broken: success on invalid input.
4232continue
4233else
4234  echo "$as_me: failed program was:" >&5
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
4237  # Passes both tests.
4238ac_preproc_ok=:
4239break
4240fi
4241
4242rm -f conftest.err conftest.$ac_ext
4243
4244done
4245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4246rm -f conftest.err conftest.$ac_ext
4247if $ac_preproc_ok; then
4248  :
4249else
4250  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4251See \`config.log' for more details." >&5
4252echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4253See \`config.log' for more details." >&2;}
4254   { (exit 1); exit 1; }; }
4255fi
4256
4257ac_ext=c
4258ac_cpp='$CPP $CPPFLAGS'
4259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4261ac_compiler_gnu=$ac_cv_c_compiler_gnu
4262
4263
4264{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4265echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4266if test "${ac_cv_path_GREP+set}" = set; then
4267  echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269  # Extract the first word of "grep ggrep" to use in msg output
4270if test -z "$GREP"; then
4271set dummy grep ggrep; ac_prog_name=$2
4272if test "${ac_cv_path_GREP+set}" = set; then
4273  echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275  ac_path_GREP_found=false
4276# Loop through the user's path and test for each of PROGNAME-LIST
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4279do
4280  IFS=$as_save_IFS
4281  test -z "$as_dir" && as_dir=.
4282  for ac_prog in grep ggrep; do
4283  for ac_exec_ext in '' $ac_executable_extensions; do
4284    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4285    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4286    # Check for GNU ac_path_GREP and select it if it is found.
4287  # Check for GNU $ac_path_GREP
4288case `"$ac_path_GREP" --version 2>&1` in
4289*GNU*)
4290  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4291*)
4292  ac_count=0
4293  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4294  while :
4295  do
4296    cat "conftest.in" "conftest.in" >"conftest.tmp"
4297    mv "conftest.tmp" "conftest.in"
4298    cp "conftest.in" "conftest.nl"
4299    echo 'GREP' >> "conftest.nl"
4300    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4301    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4302    ac_count=`expr $ac_count + 1`
4303    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4304      # Best one so far, save it but keep looking for a better one
4305      ac_cv_path_GREP="$ac_path_GREP"
4306      ac_path_GREP_max=$ac_count
4307    fi
4308    # 10*(2^10) chars as input seems more than enough
4309    test $ac_count -gt 10 && break
4310  done
4311  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4312esac
4313
4314
4315    $ac_path_GREP_found && break 3
4316  done
4317done
4318
4319done
4320IFS=$as_save_IFS
4321
4322
4323fi
4324
4325GREP="$ac_cv_path_GREP"
4326if test -z "$GREP"; then
4327  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4328echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4329   { (exit 1); exit 1; }; }
4330fi
4331
4332else
4333  ac_cv_path_GREP=$GREP
4334fi
4335
4336
4337fi
4338{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4339echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4340 GREP="$ac_cv_path_GREP"
4341
4342
4343{ echo "$as_me:$LINENO: checking for egrep" >&5
4344echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4345if test "${ac_cv_path_EGREP+set}" = set; then
4346  echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
4348  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4349   then ac_cv_path_EGREP="$GREP -E"
4350   else
4351     # Extract the first word of "egrep" to use in msg output
4352if test -z "$EGREP"; then
4353set dummy egrep; ac_prog_name=$2
4354if test "${ac_cv_path_EGREP+set}" = set; then
4355  echo $ECHO_N "(cached) $ECHO_C" >&6
4356else
4357  ac_path_EGREP_found=false
4358# Loop through the user's path and test for each of PROGNAME-LIST
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4361do
4362  IFS=$as_save_IFS
4363  test -z "$as_dir" && as_dir=.
4364  for ac_prog in egrep; do
4365  for ac_exec_ext in '' $ac_executable_extensions; do
4366    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4367    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4368    # Check for GNU ac_path_EGREP and select it if it is found.
4369  # Check for GNU $ac_path_EGREP
4370case `"$ac_path_EGREP" --version 2>&1` in
4371*GNU*)
4372  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4373*)
4374  ac_count=0
4375  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4376  while :
4377  do
4378    cat "conftest.in" "conftest.in" >"conftest.tmp"
4379    mv "conftest.tmp" "conftest.in"
4380    cp "conftest.in" "conftest.nl"
4381    echo 'EGREP' >> "conftest.nl"
4382    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4383    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4384    ac_count=`expr $ac_count + 1`
4385    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4386      # Best one so far, save it but keep looking for a better one
4387      ac_cv_path_EGREP="$ac_path_EGREP"
4388      ac_path_EGREP_max=$ac_count
4389    fi
4390    # 10*(2^10) chars as input seems more than enough
4391    test $ac_count -gt 10 && break
4392  done
4393  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4394esac
4395
4396
4397    $ac_path_EGREP_found && break 3
4398  done
4399done
4400
4401done
4402IFS=$as_save_IFS
4403
4404
4405fi
4406
4407EGREP="$ac_cv_path_EGREP"
4408if test -z "$EGREP"; then
4409  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4410echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4411   { (exit 1); exit 1; }; }
4412fi
4413
4414else
4415  ac_cv_path_EGREP=$EGREP
4416fi
4417
4418
4419   fi
4420fi
4421{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4422echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4423 EGREP="$ac_cv_path_EGREP"
4424
4425
4426{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4427echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4428if test "${ac_cv_header_stdc+set}" = set; then
4429  echo $ECHO_N "(cached) $ECHO_C" >&6
4430else
4431  cat >conftest.$ac_ext <<_ACEOF
4432/* confdefs.h.  */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h.  */
4437#include <stdlib.h>
4438#include <stdarg.h>
4439#include <string.h>
4440#include <float.h>
4441
4442int
4443main ()
4444{
4445
4446  ;
4447  return 0;
4448}
4449_ACEOF
4450rm -f conftest.$ac_objext
4451if { (ac_try="$ac_compile"
4452case "(($ac_try" in
4453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454  *) ac_try_echo=$ac_try;;
4455esac
4456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4457  (eval "$ac_compile") 2>conftest.er1
4458  ac_status=$?
4459  grep -v '^ *+' conftest.er1 >conftest.err
4460  rm -f conftest.er1
4461  cat conftest.err >&5
4462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463  (exit $ac_status); } && {
4464	 test -z "$ac_c_werror_flag" ||
4465	 test ! -s conftest.err
4466       } && test -s conftest.$ac_objext; then
4467  ac_cv_header_stdc=yes
4468else
4469  echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472	ac_cv_header_stdc=no
4473fi
4474
4475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476
4477if test $ac_cv_header_stdc = yes; then
4478  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4479  cat >conftest.$ac_ext <<_ACEOF
4480/* confdefs.h.  */
4481_ACEOF
4482cat confdefs.h >>conftest.$ac_ext
4483cat >>conftest.$ac_ext <<_ACEOF
4484/* end confdefs.h.  */
4485#include <string.h>
4486
4487_ACEOF
4488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4489  $EGREP "memchr" >/dev/null 2>&1; then
4490  :
4491else
4492  ac_cv_header_stdc=no
4493fi
4494rm -f conftest*
4495
4496fi
4497
4498if test $ac_cv_header_stdc = yes; then
4499  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4500  cat >conftest.$ac_ext <<_ACEOF
4501/* confdefs.h.  */
4502_ACEOF
4503cat confdefs.h >>conftest.$ac_ext
4504cat >>conftest.$ac_ext <<_ACEOF
4505/* end confdefs.h.  */
4506#include <stdlib.h>
4507
4508_ACEOF
4509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4510  $EGREP "free" >/dev/null 2>&1; then
4511  :
4512else
4513  ac_cv_header_stdc=no
4514fi
4515rm -f conftest*
4516
4517fi
4518
4519if test $ac_cv_header_stdc = yes; then
4520  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4521  if test "$cross_compiling" = yes; then
4522  :
4523else
4524  cat >conftest.$ac_ext <<_ACEOF
4525/* confdefs.h.  */
4526_ACEOF
4527cat confdefs.h >>conftest.$ac_ext
4528cat >>conftest.$ac_ext <<_ACEOF
4529/* end confdefs.h.  */
4530#include <ctype.h>
4531#include <stdlib.h>
4532#if ((' ' & 0x0FF) == 0x020)
4533# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4534# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4535#else
4536# define ISLOWER(c) \
4537		   (('a' <= (c) && (c) <= 'i') \
4538		     || ('j' <= (c) && (c) <= 'r') \
4539		     || ('s' <= (c) && (c) <= 'z'))
4540# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4541#endif
4542
4543#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4544int
4545main ()
4546{
4547  int i;
4548  for (i = 0; i < 256; i++)
4549    if (XOR (islower (i), ISLOWER (i))
4550	|| toupper (i) != TOUPPER (i))
4551      return 2;
4552  return 0;
4553}
4554_ACEOF
4555rm -f conftest$ac_exeext
4556if { (ac_try="$ac_link"
4557case "(($ac_try" in
4558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559  *) ac_try_echo=$ac_try;;
4560esac
4561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562  (eval "$ac_link") 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4566  { (case "(($ac_try" in
4567  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4568  *) ac_try_echo=$ac_try;;
4569esac
4570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4571  (eval "$ac_try") 2>&5
4572  ac_status=$?
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); }; }; then
4575  :
4576else
4577  echo "$as_me: program exited with status $ac_status" >&5
4578echo "$as_me: failed program was:" >&5
4579sed 's/^/| /' conftest.$ac_ext >&5
4580
4581( exit $ac_status )
4582ac_cv_header_stdc=no
4583fi
4584rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4585fi
4586
4587
4588fi
4589fi
4590{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4591echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4592if test $ac_cv_header_stdc = yes; then
4593
4594cat >>confdefs.h <<\_ACEOF
4595#define STDC_HEADERS 1
4596_ACEOF
4597
4598fi
4599
4600# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4611		  inttypes.h stdint.h unistd.h
4612do
4613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4614{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4617  echo $ECHO_N "(cached) $ECHO_C" >&6
4618else
4619  cat >conftest.$ac_ext <<_ACEOF
4620/* confdefs.h.  */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h.  */
4625$ac_includes_default
4626
4627#include <$ac_header>
4628_ACEOF
4629rm -f conftest.$ac_objext
4630if { (ac_try="$ac_compile"
4631case "(($ac_try" in
4632  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4633  *) ac_try_echo=$ac_try;;
4634esac
4635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4636  (eval "$ac_compile") 2>conftest.er1
4637  ac_status=$?
4638  grep -v '^ *+' conftest.er1 >conftest.err
4639  rm -f conftest.er1
4640  cat conftest.err >&5
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); } && {
4643	 test -z "$ac_c_werror_flag" ||
4644	 test ! -s conftest.err
4645       } && test -s conftest.$ac_objext; then
4646  eval "$as_ac_Header=yes"
4647else
4648  echo "$as_me: failed program was:" >&5
4649sed 's/^/| /' conftest.$ac_ext >&5
4650
4651	eval "$as_ac_Header=no"
4652fi
4653
4654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4655fi
4656ac_res=`eval echo '${'$as_ac_Header'}'`
4657	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4658echo "${ECHO_T}$ac_res" >&6; }
4659if test `eval echo '${'$as_ac_Header'}'` = yes; then
4660  cat >>confdefs.h <<_ACEOF
4661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4662_ACEOF
4663
4664fi
4665
4666done
4667
4668
4669# Check whether --enable-alsa was given.
4670if test "${enable_alsa+set}" = set; then
4671  enableval=$enable_alsa; case "${enableval}" in
4672                yes) COMPILE_ALSA=yes ;;
4673                no) COMPILE_ALSA=no ;;
4674                *) COMPILE_ALSA=yes ;;
4675              esac
4676else
4677
4678for ac_header in alsa/asoundlib.h
4679do
4680as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4681if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4682  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4683echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4684if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4685  echo $ECHO_N "(cached) $ECHO_C" >&6
4686fi
4687ac_res=`eval echo '${'$as_ac_Header'}'`
4688	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4689echo "${ECHO_T}$ac_res" >&6; }
4690else
4691  # Is the header compilable?
4692{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4693echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4694cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h.  */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h.  */
4700$ac_includes_default
4701#include <$ac_header>
4702_ACEOF
4703rm -f conftest.$ac_objext
4704if { (ac_try="$ac_compile"
4705case "(($ac_try" in
4706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707  *) ac_try_echo=$ac_try;;
4708esac
4709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710  (eval "$ac_compile") 2>conftest.er1
4711  ac_status=$?
4712  grep -v '^ *+' conftest.er1 >conftest.err
4713  rm -f conftest.er1
4714  cat conftest.err >&5
4715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716  (exit $ac_status); } && {
4717	 test -z "$ac_c_werror_flag" ||
4718	 test ! -s conftest.err
4719       } && test -s conftest.$ac_objext; then
4720  ac_header_compiler=yes
4721else
4722  echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725	ac_header_compiler=no
4726fi
4727
4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4730echo "${ECHO_T}$ac_header_compiler" >&6; }
4731
4732# Is the header present?
4733{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4734echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4735cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h.  */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h.  */
4741#include <$ac_header>
4742_ACEOF
4743if { (ac_try="$ac_cpp conftest.$ac_ext"
4744case "(($ac_try" in
4745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746  *) ac_try_echo=$ac_try;;
4747esac
4748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4750  ac_status=$?
4751  grep -v '^ *+' conftest.er1 >conftest.err
4752  rm -f conftest.er1
4753  cat conftest.err >&5
4754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755  (exit $ac_status); } >/dev/null && {
4756	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4757	 test ! -s conftest.err
4758       }; then
4759  ac_header_preproc=yes
4760else
4761  echo "$as_me: failed program was:" >&5
4762sed 's/^/| /' conftest.$ac_ext >&5
4763
4764  ac_header_preproc=no
4765fi
4766
4767rm -f conftest.err conftest.$ac_ext
4768{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4769echo "${ECHO_T}$ac_header_preproc" >&6; }
4770
4771# So?  What about this header?
4772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4773  yes:no: )
4774    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4775echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4776    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4777echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4778    ac_header_preproc=yes
4779    ;;
4780  no:yes:* )
4781    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4782echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4783    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4784echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4785    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4786echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4787    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4788echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4789    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4790echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4791    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4792echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4793    ( cat <<\_ASBOX
4794## ---------------------------------- ##
4795## Report this to http://sablevm.org/ ##
4796## ---------------------------------- ##
4797_ASBOX
4798     ) | sed "s/^/$as_me: WARNING:     /" >&2
4799    ;;
4800esac
4801{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4803if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4804  echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806  eval "$as_ac_Header=\$ac_header_preproc"
4807fi
4808ac_res=`eval echo '${'$as_ac_Header'}'`
4809	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4810echo "${ECHO_T}$ac_res" >&6; }
4811
4812fi
4813if test `eval echo '${'$as_ac_Header'}'` = yes; then
4814  cat >>confdefs.h <<_ACEOF
4815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4816_ACEOF
4817 COMPILE_ALSA=yes
4818else
4819  COMPILE_ALSA=no
4820fi
4821
4822done
4823
4824fi
4825
4826
4827
4828if test "x${COMPILE_ALSA}" = xyes; then
4829  CREATE_ALSA_LIBRARIES_TRUE=
4830  CREATE_ALSA_LIBRARIES_FALSE='#'
4831else
4832  CREATE_ALSA_LIBRARIES_TRUE='#'
4833  CREATE_ALSA_LIBRARIES_FALSE=
4834fi
4835
4836
4837# Check whether --enable-alsa was given.
4838if test "${enable_alsa+set}" = set; then
4839  enableval=$enable_alsa; case "${enableval}" in
4840                yes) COMPILE_DSSI=yes ;;
4841                no) COMPILE_DSSI=no ;;
4842                *) COMPILE_DSSI=yes ;;
4843              esac
4844else
4845
4846for ac_header in dssi.h
4847do
4848as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4850  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4853  echo $ECHO_N "(cached) $ECHO_C" >&6
4854fi
4855ac_res=`eval echo '${'$as_ac_Header'}'`
4856	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4857echo "${ECHO_T}$ac_res" >&6; }
4858else
4859  # Is the header compilable?
4860{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4862cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h.  */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h.  */
4868$ac_includes_default
4869#include <$ac_header>
4870_ACEOF
4871rm -f conftest.$ac_objext
4872if { (ac_try="$ac_compile"
4873case "(($ac_try" in
4874  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875  *) ac_try_echo=$ac_try;;
4876esac
4877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878  (eval "$ac_compile") 2>conftest.er1
4879  ac_status=$?
4880  grep -v '^ *+' conftest.er1 >conftest.err
4881  rm -f conftest.er1
4882  cat conftest.err >&5
4883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884  (exit $ac_status); } && {
4885	 test -z "$ac_c_werror_flag" ||
4886	 test ! -s conftest.err
4887       } && test -s conftest.$ac_objext; then
4888  ac_header_compiler=yes
4889else
4890  echo "$as_me: failed program was:" >&5
4891sed 's/^/| /' conftest.$ac_ext >&5
4892
4893	ac_header_compiler=no
4894fi
4895
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4898echo "${ECHO_T}$ac_header_compiler" >&6; }
4899
4900# Is the header present?
4901{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4902echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4903cat >conftest.$ac_ext <<_ACEOF
4904/* confdefs.h.  */
4905_ACEOF
4906cat confdefs.h >>conftest.$ac_ext
4907cat >>conftest.$ac_ext <<_ACEOF
4908/* end confdefs.h.  */
4909#include <$ac_header>
4910_ACEOF
4911if { (ac_try="$ac_cpp conftest.$ac_ext"
4912case "(($ac_try" in
4913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4914  *) ac_try_echo=$ac_try;;
4915esac
4916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4917  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4918  ac_status=$?
4919  grep -v '^ *+' conftest.er1 >conftest.err
4920  rm -f conftest.er1
4921  cat conftest.err >&5
4922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923  (exit $ac_status); } >/dev/null && {
4924	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4925	 test ! -s conftest.err
4926       }; then
4927  ac_header_preproc=yes
4928else
4929  echo "$as_me: failed program was:" >&5
4930sed 's/^/| /' conftest.$ac_ext >&5
4931
4932  ac_header_preproc=no
4933fi
4934
4935rm -f conftest.err conftest.$ac_ext
4936{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4937echo "${ECHO_T}$ac_header_preproc" >&6; }
4938
4939# So?  What about this header?
4940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4941  yes:no: )
4942    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4944    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4946    ac_header_preproc=yes
4947    ;;
4948  no:yes:* )
4949    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4951    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4952echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4953    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4955    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4956echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4957    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4959    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4961    ( cat <<\_ASBOX
4962## ---------------------------------- ##
4963## Report this to http://sablevm.org/ ##
4964## ---------------------------------- ##
4965_ASBOX
4966     ) | sed "s/^/$as_me: WARNING:     /" >&2
4967    ;;
4968esac
4969{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4972  echo $ECHO_N "(cached) $ECHO_C" >&6
4973else
4974  eval "$as_ac_Header=\$ac_header_preproc"
4975fi
4976ac_res=`eval echo '${'$as_ac_Header'}'`
4977	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4978echo "${ECHO_T}$ac_res" >&6; }
4979
4980fi
4981if test `eval echo '${'$as_ac_Header'}'` = yes; then
4982  cat >>confdefs.h <<_ACEOF
4983#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4984_ACEOF
4985 COMPILE_DSSI=yes
4986else
4987  COMPILE_DSSI=no
4988fi
4989
4990done
4991
4992fi
4993
4994
4995
4996if test "x${COMPILE_DSSI}" = xyes; then
4997  CREATE_DSSI_LIBRARIES_TRUE=
4998  CREATE_DSSI_LIBRARIES_FALSE='#'
4999else
5000  CREATE_DSSI_LIBRARIES_TRUE='#'
5001  CREATE_DSSI_LIBRARIES_FALSE=
5002fi
5003
5004
5005# Check whether --enable-gtk-peer was given.
5006if test "${enable_gtk_peer+set}" = set; then
5007  enableval=$enable_gtk_peer; case "${enableval}" in
5008                yes) COMPILE_GTK_PEER=yes ;;
5009                no) COMPILE_GTK_PEER=no ;;
5010                *) COMPILE_GTK_PEER=yes ;;
5011              esac
5012else
5013  COMPILE_GTK_PEER=yes
5014fi
5015
5016
5017
5018if test "x${COMPILE_GTK_PEER}" = xyes; then
5019  CREATE_GTK_PEER_LIBRARIES_TRUE=
5020  CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5021else
5022  CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5023  CREATE_GTK_PEER_LIBRARIES_FALSE=
5024fi
5025
5026
5027# Check whether --enable-gtk-peers was given.
5028if test "${enable_gtk_peers+set}" = set; then
5029  enableval=$enable_gtk_peers; { { echo "$as_me:$LINENO: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&5
5030echo "$as_me: error: No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" >&2;}
5031   { (exit 1); exit 1; }; }
5032fi
5033
5034
5035# Check whether --enable-gtk-cairo was given.
5036if test "${enable_gtk_cairo+set}" = set; then
5037  enableval=$enable_gtk_cairo; case "${enableval}" in
5038                yes) GTK_CAIRO_ENABLED=true ;;
5039                no) GTK_CAIRO_ENABLED=false ;;
5040                *) GTK_CAIRO_ENABLED=true ;;
5041              esac
5042else
5043  GTK_CAIRO_ENABLED=false
5044fi
5045
5046
5047if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
5048
5049cat >>confdefs.h <<\_ACEOF
5050#define GTK_CAIRO 1
5051_ACEOF
5052
5053fi
5054
5055
5056if test "x${GTK_CAIRO_ENABLED}" = xtrue; then
5057  GTK_CAIRO_TRUE=
5058  GTK_CAIRO_FALSE='#'
5059else
5060  GTK_CAIRO_TRUE='#'
5061  GTK_CAIRO_FALSE=
5062fi
5063
5064
5065# Check whether --enable-qt-peer was given.
5066if test "${enable_qt_peer+set}" = set; then
5067  enableval=$enable_qt_peer; case "${enableval}" in
5068                yes) COMPILE_QT_PEER=yes ;;
5069                no) COMPILE_QT_PEER=no ;;
5070                *) COMPILE_QT_PEER=yes ;;
5071              esac
5072else
5073  COMPILE_QT_PEER=no
5074fi
5075
5076
5077
5078if test "x${COMPILE_QT_PEER}" = xyes; then
5079  CREATE_QT_PEER_LIBRARIES_TRUE=
5080  CREATE_QT_PEER_LIBRARIES_FALSE='#'
5081else
5082  CREATE_QT_PEER_LIBRARIES_TRUE='#'
5083  CREATE_QT_PEER_LIBRARIES_FALSE=
5084fi
5085
5086
5087
5088
5089# Check whether --with-native-libdir was given.
5090if test "${with_native_libdir+set}" = set; then
5091  withval=$with_native_libdir;
5092	     nativelibdir=${withval}
5093
5094else
5095
5096	     nativelibdir='${libdir}/${PACKAGE}'
5097
5098fi
5099
5100
5101
5102
5103
5104# Check whether --with-glibj-dir was given.
5105if test "${with_glibj_dir+set}" = set; then
5106  withval=$with_glibj_dir;
5107	     glibjdir=${withval}
5108
5109else
5110
5111	     glibjdir='${datadir}/${PACKAGE}'
5112
5113fi
5114
5115
5116
5117
5118# Check whether --enable-regen-headers was given.
5119if test "${enable_regen_headers+set}" = set; then
5120  enableval=$enable_regen_headers; case "${enableval}" in
5121                yes) REGENERATE_JNI_HEADERS=yes ;;
5122                no) REGENERATE_JNI_HEADERS=no ;;
5123                *) REGENERATE_JNI_HEADERS=no ;;
5124              esac
5125else
5126  REGENERATE_JNI_HEADERS=no
5127fi
5128
5129
5130
5131if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5132  CREATE_JNI_HEADERS_TRUE=
5133  CREATE_JNI_HEADERS_FALSE='#'
5134else
5135  CREATE_JNI_HEADERS_TRUE='#'
5136  CREATE_JNI_HEADERS_FALSE=
5137fi
5138
5139
5140{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5141echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5142LN_S=$as_ln_s
5143if test "$LN_S" = "ln -s"; then
5144  { echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6; }
5146else
5147  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5148echo "${ECHO_T}no, using $LN_S" >&6; }
5149fi
5150
5151# Find a good install program.  We prefer a C program (faster),
5152# so one script is as good as another.  But avoid the broken or
5153# incompatible versions:
5154# SysV /etc/install, /usr/sbin/install
5155# SunOS /usr/etc/install
5156# IRIX /sbin/install
5157# AIX /bin/install
5158# AmigaOS /C/install, which installs bootblocks on floppy discs
5159# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5160# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5161# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5162# OS/2's system install, which has a completely different semantic
5163# ./install, which can be erroneously created by make from ./install.sh.
5164{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5165echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5166if test -z "$INSTALL"; then
5167if test "${ac_cv_path_install+set}" = set; then
5168  echo $ECHO_N "(cached) $ECHO_C" >&6
5169else
5170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173  IFS=$as_save_IFS
5174  test -z "$as_dir" && as_dir=.
5175  # Account for people who put trailing slashes in PATH elements.
5176case $as_dir/ in
5177  ./ | .// | /cC/* | \
5178  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5179  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5180  /usr/ucb/* ) ;;
5181  *)
5182    # OSF1 and SCO ODT 3.0 have their own names for install.
5183    # Don't use installbsd from OSF since it installs stuff as root
5184    # by default.
5185    for ac_prog in ginstall scoinst install; do
5186      for ac_exec_ext in '' $ac_executable_extensions; do
5187	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5188	  if test $ac_prog = install &&
5189	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5190	    # AIX install.  It has an incompatible calling convention.
5191	    :
5192	  elif test $ac_prog = install &&
5193	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5194	    # program-specific install script used by HP pwplus--don't use.
5195	    :
5196	  else
5197	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5198	    break 3
5199	  fi
5200	fi
5201      done
5202    done
5203    ;;
5204esac
5205done
5206IFS=$as_save_IFS
5207
5208
5209fi
5210  if test "${ac_cv_path_install+set}" = set; then
5211    INSTALL=$ac_cv_path_install
5212  else
5213    # As a last resort, use the slow shell script.  Don't cache a
5214    # value for INSTALL within a source directory, because that will
5215    # break other packages using the cache if that directory is
5216    # removed, or if the value is a relative name.
5217    INSTALL=$ac_install_sh
5218  fi
5219fi
5220{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5221echo "${ECHO_T}$INSTALL" >&6; }
5222
5223# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5224# It thinks the first close brace ends the variable substitution.
5225test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5226
5227test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5228
5229test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5230
5231
5232ac_ext=cpp
5233ac_cpp='$CXXCPP $CPPFLAGS'
5234ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5235ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5236ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5237if test -z "$CXX"; then
5238  if test -n "$CCC"; then
5239    CXX=$CCC
5240  else
5241    if test -n "$ac_tool_prefix"; then
5242  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5243  do
5244    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5246{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5248if test "${ac_cv_prog_CXX+set}" = set; then
5249  echo $ECHO_N "(cached) $ECHO_C" >&6
5250else
5251  if test -n "$CXX"; then
5252  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5253else
5254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255for as_dir in $PATH
5256do
5257  IFS=$as_save_IFS
5258  test -z "$as_dir" && as_dir=.
5259  for ac_exec_ext in '' $ac_executable_extensions; do
5260  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5263    break 2
5264  fi
5265done
5266done
5267IFS=$as_save_IFS
5268
5269fi
5270fi
5271CXX=$ac_cv_prog_CXX
5272if test -n "$CXX"; then
5273  { echo "$as_me:$LINENO: result: $CXX" >&5
5274echo "${ECHO_T}$CXX" >&6; }
5275else
5276  { echo "$as_me:$LINENO: result: no" >&5
5277echo "${ECHO_T}no" >&6; }
5278fi
5279
5280
5281    test -n "$CXX" && break
5282  done
5283fi
5284if test -z "$CXX"; then
5285  ac_ct_CXX=$CXX
5286  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5287do
5288  # Extract the first word of "$ac_prog", so it can be a program name with args.
5289set dummy $ac_prog; ac_word=$2
5290{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5291echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5292if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5293  echo $ECHO_N "(cached) $ECHO_C" >&6
5294else
5295  if test -n "$ac_ct_CXX"; then
5296  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5297else
5298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299for as_dir in $PATH
5300do
5301  IFS=$as_save_IFS
5302  test -z "$as_dir" && as_dir=.
5303  for ac_exec_ext in '' $ac_executable_extensions; do
5304  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5305    ac_cv_prog_ac_ct_CXX="$ac_prog"
5306    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307    break 2
5308  fi
5309done
5310done
5311IFS=$as_save_IFS
5312
5313fi
5314fi
5315ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5316if test -n "$ac_ct_CXX"; then
5317  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5318echo "${ECHO_T}$ac_ct_CXX" >&6; }
5319else
5320  { echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6; }
5322fi
5323
5324
5325  test -n "$ac_ct_CXX" && break
5326done
5327
5328  if test "x$ac_ct_CXX" = x; then
5329    CXX="g++"
5330  else
5331    case $cross_compiling:$ac_tool_warned in
5332yes:)
5333{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5334whose name does not start with the host triplet.  If you think this
5335configuration is useful to you, please write to autoconf@gnu.org." >&5
5336echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5337whose name does not start with the host triplet.  If you think this
5338configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5339ac_tool_warned=yes ;;
5340esac
5341    CXX=$ac_ct_CXX
5342  fi
5343fi
5344
5345  fi
5346fi
5347# Provide some information about the compiler.
5348echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5349ac_compiler=`set X $ac_compile; echo $2`
5350{ (ac_try="$ac_compiler --version >&5"
5351case "(($ac_try" in
5352  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353  *) ac_try_echo=$ac_try;;
5354esac
5355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356  (eval "$ac_compiler --version >&5") 2>&5
5357  ac_status=$?
5358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359  (exit $ac_status); }
5360{ (ac_try="$ac_compiler -v >&5"
5361case "(($ac_try" in
5362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363  *) ac_try_echo=$ac_try;;
5364esac
5365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366  (eval "$ac_compiler -v >&5") 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }
5370{ (ac_try="$ac_compiler -V >&5"
5371case "(($ac_try" in
5372  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5373  *) ac_try_echo=$ac_try;;
5374esac
5375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5376  (eval "$ac_compiler -V >&5") 2>&5
5377  ac_status=$?
5378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379  (exit $ac_status); }
5380
5381{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5382echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5383if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5384  echo $ECHO_N "(cached) $ECHO_C" >&6
5385else
5386  cat >conftest.$ac_ext <<_ACEOF
5387/* confdefs.h.  */
5388_ACEOF
5389cat confdefs.h >>conftest.$ac_ext
5390cat >>conftest.$ac_ext <<_ACEOF
5391/* end confdefs.h.  */
5392
5393int
5394main ()
5395{
5396#ifndef __GNUC__
5397       choke me
5398#endif
5399
5400  ;
5401  return 0;
5402}
5403_ACEOF
5404rm -f conftest.$ac_objext
5405if { (ac_try="$ac_compile"
5406case "(($ac_try" in
5407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408  *) ac_try_echo=$ac_try;;
5409esac
5410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411  (eval "$ac_compile") 2>conftest.er1
5412  ac_status=$?
5413  grep -v '^ *+' conftest.er1 >conftest.err
5414  rm -f conftest.er1
5415  cat conftest.err >&5
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); } && {
5418	 test -z "$ac_cxx_werror_flag" ||
5419	 test ! -s conftest.err
5420       } && test -s conftest.$ac_objext; then
5421  ac_compiler_gnu=yes
5422else
5423  echo "$as_me: failed program was:" >&5
5424sed 's/^/| /' conftest.$ac_ext >&5
5425
5426	ac_compiler_gnu=no
5427fi
5428
5429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5431
5432fi
5433{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5434echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5435GXX=`test $ac_compiler_gnu = yes && echo yes`
5436ac_test_CXXFLAGS=${CXXFLAGS+set}
5437ac_save_CXXFLAGS=$CXXFLAGS
5438{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5439echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5440if test "${ac_cv_prog_cxx_g+set}" = set; then
5441  echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5444   ac_cxx_werror_flag=yes
5445   ac_cv_prog_cxx_g=no
5446   CXXFLAGS="-g"
5447   cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h.  */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h.  */
5453
5454int
5455main ()
5456{
5457
5458  ;
5459  return 0;
5460}
5461_ACEOF
5462rm -f conftest.$ac_objext
5463if { (ac_try="$ac_compile"
5464case "(($ac_try" in
5465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466  *) ac_try_echo=$ac_try;;
5467esac
5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469  (eval "$ac_compile") 2>conftest.er1
5470  ac_status=$?
5471  grep -v '^ *+' conftest.er1 >conftest.err
5472  rm -f conftest.er1
5473  cat conftest.err >&5
5474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475  (exit $ac_status); } && {
5476	 test -z "$ac_cxx_werror_flag" ||
5477	 test ! -s conftest.err
5478       } && test -s conftest.$ac_objext; then
5479  ac_cv_prog_cxx_g=yes
5480else
5481  echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484	CXXFLAGS=""
5485      cat >conftest.$ac_ext <<_ACEOF
5486/* confdefs.h.  */
5487_ACEOF
5488cat confdefs.h >>conftest.$ac_ext
5489cat >>conftest.$ac_ext <<_ACEOF
5490/* end confdefs.h.  */
5491
5492int
5493main ()
5494{
5495
5496  ;
5497  return 0;
5498}
5499_ACEOF
5500rm -f conftest.$ac_objext
5501if { (ac_try="$ac_compile"
5502case "(($ac_try" in
5503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504  *) ac_try_echo=$ac_try;;
5505esac
5506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507  (eval "$ac_compile") 2>conftest.er1
5508  ac_status=$?
5509  grep -v '^ *+' conftest.er1 >conftest.err
5510  rm -f conftest.er1
5511  cat conftest.err >&5
5512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513  (exit $ac_status); } && {
5514	 test -z "$ac_cxx_werror_flag" ||
5515	 test ! -s conftest.err
5516       } && test -s conftest.$ac_objext; then
5517  :
5518else
5519  echo "$as_me: failed program was:" >&5
5520sed 's/^/| /' conftest.$ac_ext >&5
5521
5522	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5523	 CXXFLAGS="-g"
5524	 cat >conftest.$ac_ext <<_ACEOF
5525/* confdefs.h.  */
5526_ACEOF
5527cat confdefs.h >>conftest.$ac_ext
5528cat >>conftest.$ac_ext <<_ACEOF
5529/* end confdefs.h.  */
5530
5531int
5532main ()
5533{
5534
5535  ;
5536  return 0;
5537}
5538_ACEOF
5539rm -f conftest.$ac_objext
5540if { (ac_try="$ac_compile"
5541case "(($ac_try" in
5542  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543  *) ac_try_echo=$ac_try;;
5544esac
5545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546  (eval "$ac_compile") 2>conftest.er1
5547  ac_status=$?
5548  grep -v '^ *+' conftest.er1 >conftest.err
5549  rm -f conftest.er1
5550  cat conftest.err >&5
5551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552  (exit $ac_status); } && {
5553	 test -z "$ac_cxx_werror_flag" ||
5554	 test ! -s conftest.err
5555       } && test -s conftest.$ac_objext; then
5556  ac_cv_prog_cxx_g=yes
5557else
5558  echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
5560
5561
5562fi
5563
5564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565fi
5566
5567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568fi
5569
5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5571   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5572fi
5573{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5574echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5575if test "$ac_test_CXXFLAGS" = set; then
5576  CXXFLAGS=$ac_save_CXXFLAGS
5577elif test $ac_cv_prog_cxx_g = yes; then
5578  if test "$GXX" = yes; then
5579    CXXFLAGS="-g -O2"
5580  else
5581    CXXFLAGS="-g"
5582  fi
5583else
5584  if test "$GXX" = yes; then
5585    CXXFLAGS="-O2"
5586  else
5587    CXXFLAGS=
5588  fi
5589fi
5590ac_ext=c
5591ac_cpp='$CPP $CPPFLAGS'
5592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5594ac_compiler_gnu=$ac_cv_c_compiler_gnu
5595
5596depcc="$CXX"  am_compiler_list=
5597
5598{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5599echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5600if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5601  echo $ECHO_N "(cached) $ECHO_C" >&6
5602else
5603  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5604  # We make a subdir and do the tests there.  Otherwise we can end up
5605  # making bogus files that we don't know about and never remove.  For
5606  # instance it was reported that on HP-UX the gcc test will end up
5607  # making a dummy file named `D' -- because `-MD' means `put the output
5608  # in D'.
5609  mkdir conftest.dir
5610  # Copy depcomp to subdir because otherwise we won't find it if we're
5611  # using a relative directory.
5612  cp "$am_depcomp" conftest.dir
5613  cd conftest.dir
5614  # We will build objects and dependencies in a subdirectory because
5615  # it helps to detect inapplicable dependency modes.  For instance
5616  # both Tru64's cc and ICC support -MD to output dependencies as a
5617  # side effect of compilation, but ICC will put the dependencies in
5618  # the current directory while Tru64 will put them in the object
5619  # directory.
5620  mkdir sub
5621
5622  am_cv_CXX_dependencies_compiler_type=none
5623  if test "$am_compiler_list" = ""; then
5624     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5625  fi
5626  for depmode in $am_compiler_list; do
5627    # Setup a source with many dependencies, because some compilers
5628    # like to wrap large dependency lists on column 80 (with \), and
5629    # we should not choose a depcomp mode which is confused by this.
5630    #
5631    # We need to recreate these files for each test, as the compiler may
5632    # overwrite some of them when testing with obscure command lines.
5633    # This happens at least with the AIX C compiler.
5634    : > sub/conftest.c
5635    for i in 1 2 3 4 5 6; do
5636      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5637      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5638      # Solaris 8's {/usr,}/bin/sh.
5639      touch sub/conftst$i.h
5640    done
5641    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5642
5643    case $depmode in
5644    nosideeffect)
5645      # after this tag, mechanisms are not by side-effect, so they'll
5646      # only be used when explicitly requested
5647      if test "x$enable_dependency_tracking" = xyes; then
5648	continue
5649      else
5650	break
5651      fi
5652      ;;
5653    none) break ;;
5654    esac
5655    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5656    # mode.  It turns out that the SunPro C++ compiler does not properly
5657    # handle `-M -o', and we need to detect this.
5658    if depmode=$depmode \
5659       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5660       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5661       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5662         >/dev/null 2>conftest.err &&
5663       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5664       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5665       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5666      # icc doesn't choke on unknown options, it will just issue warnings
5667      # or remarks (even with -Werror).  So we grep stderr for any message
5668      # that says an option was ignored or not supported.
5669      # When given -MP, icc 7.0 and 7.1 complain thusly:
5670      #   icc: Command line warning: ignoring option '-M'; no argument required
5671      # The diagnosis changed in icc 8.0:
5672      #   icc: Command line remark: option '-MP' not supported
5673      if (grep 'ignoring option' conftest.err ||
5674          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5675        am_cv_CXX_dependencies_compiler_type=$depmode
5676        break
5677      fi
5678    fi
5679  done
5680
5681  cd ..
5682  rm -rf conftest.dir
5683else
5684  am_cv_CXX_dependencies_compiler_type=none
5685fi
5686
5687fi
5688{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5689echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5690CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5691
5692
5693
5694if
5695  test "x$enable_dependency_tracking" != xno \
5696  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5697  am__fastdepCXX_TRUE=
5698  am__fastdepCXX_FALSE='#'
5699else
5700  am__fastdepCXX_TRUE='#'
5701  am__fastdepCXX_FALSE=
5702fi
5703
5704
5705# Check whether --enable-static was given.
5706if test "${enable_static+set}" = set; then
5707  enableval=$enable_static; p=${PACKAGE-default}
5708    case $enableval in
5709    yes) enable_static=yes ;;
5710    no) enable_static=no ;;
5711    *)
5712     enable_static=no
5713      # Look at the argument we got.  We use all the common list separators.
5714      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5715      for pkg in $enableval; do
5716	IFS="$lt_save_ifs"
5717	if test "X$pkg" = "X$p"; then
5718	  enable_static=yes
5719	fi
5720      done
5721      IFS="$lt_save_ifs"
5722      ;;
5723    esac
5724else
5725  enable_static=no
5726fi
5727
5728
5729
5730# Check whether --enable-shared was given.
5731if test "${enable_shared+set}" = set; then
5732  enableval=$enable_shared; p=${PACKAGE-default}
5733    case $enableval in
5734    yes) enable_shared=yes ;;
5735    no) enable_shared=no ;;
5736    *)
5737      enable_shared=no
5738      # Look at the argument we got.  We use all the common list separators.
5739      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5740      for pkg in $enableval; do
5741	IFS="$lt_save_ifs"
5742	if test "X$pkg" = "X$p"; then
5743	  enable_shared=yes
5744	fi
5745      done
5746      IFS="$lt_save_ifs"
5747      ;;
5748    esac
5749else
5750  enable_shared=yes
5751fi
5752
5753
5754# Check whether --enable-fast-install was given.
5755if test "${enable_fast_install+set}" = set; then
5756  enableval=$enable_fast_install; p=${PACKAGE-default}
5757    case $enableval in
5758    yes) enable_fast_install=yes ;;
5759    no) enable_fast_install=no ;;
5760    *)
5761      enable_fast_install=no
5762      # Look at the argument we got.  We use all the common list separators.
5763      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5764      for pkg in $enableval; do
5765	IFS="$lt_save_ifs"
5766	if test "X$pkg" = "X$p"; then
5767	  enable_fast_install=yes
5768	fi
5769      done
5770      IFS="$lt_save_ifs"
5771      ;;
5772    esac
5773else
5774  enable_fast_install=yes
5775fi
5776
5777
5778{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5779echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5780if test "${lt_cv_path_SED+set}" = set; then
5781  echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783  # Loop through the user's path and test for sed and gsed.
5784# Then use that list of sed's as ones to test for truncation.
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  test -z "$as_dir" && as_dir=.
5790  for lt_ac_prog in sed gsed; do
5791    for ac_exec_ext in '' $ac_executable_extensions; do
5792      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5793        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5794      fi
5795    done
5796  done
5797done
5798lt_ac_max=0
5799lt_ac_count=0
5800# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5801# along with /bin/sed that truncates output.
5802for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5803  test ! -f $lt_ac_sed && continue
5804  cat /dev/null > conftest.in
5805  lt_ac_count=0
5806  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5807  # Check for GNU sed and select it if it is found.
5808  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5809    lt_cv_path_SED=$lt_ac_sed
5810    break
5811  fi
5812  while true; do
5813    cat conftest.in conftest.in >conftest.tmp
5814    mv conftest.tmp conftest.in
5815    cp conftest.in conftest.nl
5816    echo >>conftest.nl
5817    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5818    cmp -s conftest.out conftest.nl || break
5819    # 10000 chars as input seems more than enough
5820    test $lt_ac_count -gt 10 && break
5821    lt_ac_count=`expr $lt_ac_count + 1`
5822    if test $lt_ac_count -gt $lt_ac_max; then
5823      lt_ac_max=$lt_ac_count
5824      lt_cv_path_SED=$lt_ac_sed
5825    fi
5826  done
5827done
5828
5829fi
5830
5831SED=$lt_cv_path_SED
5832{ echo "$as_me:$LINENO: result: $SED" >&5
5833echo "${ECHO_T}$SED" >&6; }
5834
5835
5836# Check whether --with-gnu-ld was given.
5837if test "${with_gnu_ld+set}" = set; then
5838  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5839else
5840  with_gnu_ld=no
5841fi
5842
5843ac_prog=ld
5844if test "$GCC" = yes; then
5845  # Check if gcc -print-prog-name=ld gives a path.
5846  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5847echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5848  case $host in
5849  *-*-mingw*)
5850    # gcc leaves a trailing carriage return which upsets mingw
5851    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5852  *)
5853    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5854  esac
5855  case $ac_prog in
5856    # Accept absolute paths.
5857    [\\/]* | ?:[\\/]*)
5858      re_direlt='/[^/][^/]*/\.\./'
5859      # Canonicalize the pathname of ld
5860      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5861      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5862	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5863      done
5864      test -z "$LD" && LD="$ac_prog"
5865      ;;
5866  "")
5867    # If it fails, then pretend we aren't using GCC.
5868    ac_prog=ld
5869    ;;
5870  *)
5871    # If it is relative, then search for the first ld in PATH.
5872    with_gnu_ld=unknown
5873    ;;
5874  esac
5875elif test "$with_gnu_ld" = yes; then
5876  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5877echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5878else
5879  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5880echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5881fi
5882if test "${lt_cv_path_LD+set}" = set; then
5883  echo $ECHO_N "(cached) $ECHO_C" >&6
5884else
5885  if test -z "$LD"; then
5886  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5887  for ac_dir in $PATH; do
5888    IFS="$lt_save_ifs"
5889    test -z "$ac_dir" && ac_dir=.
5890    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5891      lt_cv_path_LD="$ac_dir/$ac_prog"
5892      # Check to see if the program is GNU ld.  I'd rather use --version,
5893      # but apparently some variants of GNU ld only accept -v.
5894      # Break only if it was the GNU/non-GNU ld that we prefer.
5895      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5896      *GNU* | *'with BFD'*)
5897	test "$with_gnu_ld" != no && break
5898	;;
5899      *)
5900	test "$with_gnu_ld" != yes && break
5901	;;
5902      esac
5903    fi
5904  done
5905  IFS="$lt_save_ifs"
5906else
5907  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5908fi
5909fi
5910
5911LD="$lt_cv_path_LD"
5912if test -n "$LD"; then
5913  { echo "$as_me:$LINENO: result: $LD" >&5
5914echo "${ECHO_T}$LD" >&6; }
5915else
5916  { echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6; }
5918fi
5919test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5920echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5921   { (exit 1); exit 1; }; }
5922{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5923echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5924if test "${lt_cv_prog_gnu_ld+set}" = set; then
5925  echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5928case `$LD -v 2>&1 </dev/null` in
5929*GNU* | *'with BFD'*)
5930  lt_cv_prog_gnu_ld=yes
5931  ;;
5932*)
5933  lt_cv_prog_gnu_ld=no
5934  ;;
5935esac
5936fi
5937{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5938echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5939with_gnu_ld=$lt_cv_prog_gnu_ld
5940
5941
5942{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5943echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5944if test "${lt_cv_ld_reload_flag+set}" = set; then
5945  echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947  lt_cv_ld_reload_flag='-r'
5948fi
5949{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5950echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5951reload_flag=$lt_cv_ld_reload_flag
5952case $reload_flag in
5953"" | " "*) ;;
5954*) reload_flag=" $reload_flag" ;;
5955esac
5956reload_cmds='$LD$reload_flag -o $output$reload_objs'
5957case $host_os in
5958  darwin*)
5959    if test "$GCC" = yes; then
5960      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5961    else
5962      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5963    fi
5964    ;;
5965esac
5966
5967{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5968echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5969if test "${lt_cv_path_NM+set}" = set; then
5970  echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972  if test -n "$NM"; then
5973  # Let the user override the test.
5974  lt_cv_path_NM="$NM"
5975else
5976  lt_nm_to_check="${ac_tool_prefix}nm"
5977  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5978    lt_nm_to_check="$lt_nm_to_check nm"
5979  fi
5980  for lt_tmp_nm in $lt_nm_to_check; do
5981    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5982    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5983      IFS="$lt_save_ifs"
5984      test -z "$ac_dir" && ac_dir=.
5985      tmp_nm="$ac_dir/$lt_tmp_nm"
5986      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5987	# Check to see if the nm accepts a BSD-compat flag.
5988	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5989	#   nm: unknown option "B" ignored
5990	# Tru64's nm complains that /dev/null is an invalid object file
5991	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5992	*/dev/null* | *'Invalid file or object type'*)
5993	  lt_cv_path_NM="$tmp_nm -B"
5994	  break
5995	  ;;
5996	*)
5997	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5998	  */dev/null*)
5999	    lt_cv_path_NM="$tmp_nm -p"
6000	    break
6001	    ;;
6002	  *)
6003	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6004	    continue # so that we can try to find one that supports BSD flags
6005	    ;;
6006	  esac
6007	  ;;
6008	esac
6009      fi
6010    done
6011    IFS="$lt_save_ifs"
6012  done
6013  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6014fi
6015fi
6016{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6017echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6018NM="$lt_cv_path_NM"
6019
6020{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6021echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6022if test "${lt_cv_deplibs_check_method+set}" = set; then
6023  echo $ECHO_N "(cached) $ECHO_C" >&6
6024else
6025  lt_cv_file_magic_cmd='$MAGIC_CMD'
6026lt_cv_file_magic_test_file=
6027lt_cv_deplibs_check_method='unknown'
6028# Need to set the preceding variable on all platforms that support
6029# interlibrary dependencies.
6030# 'none' -- dependencies not supported.
6031# `unknown' -- same as none, but documents that we really don't know.
6032# 'pass_all' -- all dependencies passed with no checks.
6033# 'test_compile' -- check by making test program.
6034# 'file_magic [[regex]]' -- check by looking for files in library path
6035# which responds to the $file_magic_cmd with a given extended regex.
6036# If you have `file' or equivalent on your system and you're not sure
6037# whether `pass_all' will *always* work, you probably want this one.
6038
6039case $host_os in
6040aix4* | aix5*)
6041  lt_cv_deplibs_check_method=pass_all
6042  ;;
6043
6044beos*)
6045  lt_cv_deplibs_check_method=pass_all
6046  ;;
6047
6048bsdi[45]*)
6049  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6050  lt_cv_file_magic_cmd='/usr/bin/file -L'
6051  lt_cv_file_magic_test_file=/shlib/libc.so
6052  ;;
6053
6054cygwin*)
6055  # func_win32_libid is a shell function defined in ltmain.sh
6056  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6057  lt_cv_file_magic_cmd='func_win32_libid'
6058  ;;
6059
6060mingw* | pw32*)
6061  # Base MSYS/MinGW do not provide the 'file' command needed by
6062  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6063  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6064  lt_cv_file_magic_cmd='$OBJDUMP -f'
6065  ;;
6066
6067darwin* | rhapsody*)
6068  lt_cv_deplibs_check_method=pass_all
6069  ;;
6070
6071freebsd* | dragonfly*)
6072  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6073    case $host_cpu in
6074    i*86 )
6075      # Not sure whether the presence of OpenBSD here was a mistake.
6076      # Let's accept both of them until this is cleared up.
6077      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6078      lt_cv_file_magic_cmd=/usr/bin/file
6079      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6080      ;;
6081    esac
6082  else
6083    lt_cv_deplibs_check_method=pass_all
6084  fi
6085  ;;
6086
6087gnu*)
6088  lt_cv_deplibs_check_method=pass_all
6089  ;;
6090
6091hpux10.20* | hpux11*)
6092  lt_cv_file_magic_cmd=/usr/bin/file
6093  case $host_cpu in
6094  ia64*)
6095    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6096    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6097    ;;
6098  hppa*64*)
6099    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]'
6100    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6101    ;;
6102  *)
6103    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6104    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6105    ;;
6106  esac
6107  ;;
6108
6109interix3*)
6110  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6111  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6112  ;;
6113
6114irix5* | irix6* | nonstopux*)
6115  case $LD in
6116  *-32|*"-32 ") libmagic=32-bit;;
6117  *-n32|*"-n32 ") libmagic=N32;;
6118  *-64|*"-64 ") libmagic=64-bit;;
6119  *) libmagic=never-match;;
6120  esac
6121  lt_cv_deplibs_check_method=pass_all
6122  ;;
6123
6124# This must be Linux ELF.
6125linux* | k*bsd*-gnu)
6126  lt_cv_deplibs_check_method=pass_all
6127  ;;
6128
6129netbsd* | netbsdelf*-gnu)
6130  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6131    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6132  else
6133    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6134  fi
6135  ;;
6136
6137newos6*)
6138  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6139  lt_cv_file_magic_cmd=/usr/bin/file
6140  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6141  ;;
6142
6143nto-qnx*)
6144  lt_cv_deplibs_check_method=unknown
6145  ;;
6146
6147openbsd*)
6148  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6149    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6150  else
6151    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6152  fi
6153  ;;
6154
6155osf3* | osf4* | osf5*)
6156  lt_cv_deplibs_check_method=pass_all
6157  ;;
6158
6159solaris*)
6160  lt_cv_deplibs_check_method=pass_all
6161  ;;
6162
6163sysv4 | sysv4.3*)
6164  case $host_vendor in
6165  motorola)
6166    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]'
6167    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6168    ;;
6169  ncr)
6170    lt_cv_deplibs_check_method=pass_all
6171    ;;
6172  sequent)
6173    lt_cv_file_magic_cmd='/bin/file'
6174    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6175    ;;
6176  sni)
6177    lt_cv_file_magic_cmd='/bin/file'
6178    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6179    lt_cv_file_magic_test_file=/lib/libc.so
6180    ;;
6181  siemens)
6182    lt_cv_deplibs_check_method=pass_all
6183    ;;
6184  pc)
6185    lt_cv_deplibs_check_method=pass_all
6186    ;;
6187  esac
6188  ;;
6189
6190sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6191  lt_cv_deplibs_check_method=pass_all
6192  ;;
6193esac
6194
6195fi
6196{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6197echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6198file_magic_cmd=$lt_cv_file_magic_cmd
6199deplibs_check_method=$lt_cv_deplibs_check_method
6200test -z "$deplibs_check_method" && deplibs_check_method=unknown
6201
6202
6203
6204
6205# If no C compiler was specified, use CC.
6206LTCC=${LTCC-"$CC"}
6207
6208# If no C compiler flags were specified, use CFLAGS.
6209LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6210
6211# Allow CC to be a program name with arguments.
6212compiler=$CC
6213
6214# Check whether --enable-libtool-lock was given.
6215if test "${enable_libtool_lock+set}" = set; then
6216  enableval=$enable_libtool_lock;
6217fi
6218
6219test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6220
6221# Some flags need to be propagated to the compiler or linker for good
6222# libtool support.
6223case $host in
6224ia64-*-hpux*)
6225  # Find out which ABI we are using.
6226  echo 'int i;' > conftest.$ac_ext
6227  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6228  (eval $ac_compile) 2>&5
6229  ac_status=$?
6230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231  (exit $ac_status); }; then
6232    case `/usr/bin/file conftest.$ac_objext` in
6233    *ELF-32*)
6234      HPUX_IA64_MODE="32"
6235      ;;
6236    *ELF-64*)
6237      HPUX_IA64_MODE="64"
6238      ;;
6239    esac
6240  fi
6241  rm -rf conftest*
6242  ;;
6243*-*-irix6*)
6244  # Find out which ABI we are using.
6245  echo '#line 6245 "configure"' > conftest.$ac_ext
6246  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247  (eval $ac_compile) 2>&5
6248  ac_status=$?
6249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250  (exit $ac_status); }; then
6251   if test "$lt_cv_prog_gnu_ld" = yes; then
6252    case `/usr/bin/file conftest.$ac_objext` in
6253    *32-bit*)
6254      LD="${LD-ld} -melf32bsmip"
6255      ;;
6256    *N32*)
6257      LD="${LD-ld} -melf32bmipn32"
6258      ;;
6259    *64-bit*)
6260      LD="${LD-ld} -melf64bmip"
6261      ;;
6262    esac
6263   else
6264    case `/usr/bin/file conftest.$ac_objext` in
6265    *32-bit*)
6266      LD="${LD-ld} -32"
6267      ;;
6268    *N32*)
6269      LD="${LD-ld} -n32"
6270      ;;
6271    *64-bit*)
6272      LD="${LD-ld} -64"
6273      ;;
6274    esac
6275   fi
6276  fi
6277  rm -rf conftest*
6278  ;;
6279
6280x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6281  # Find out which ABI we are using.
6282  echo 'int i;' > conftest.$ac_ext
6283  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6284  (eval $ac_compile) 2>&5
6285  ac_status=$?
6286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287  (exit $ac_status); }; then
6288    case `/usr/bin/file conftest.o` in
6289    *32-bit*)
6290      case $host in
6291        x86_64-*linux*)
6292          LD="${LD-ld} -m elf_i386"
6293          ;;
6294        ppc64-*linux*|powerpc64-*linux*)
6295          LD="${LD-ld} -m elf32ppclinux"
6296          ;;
6297        s390x-*linux*)
6298          LD="${LD-ld} -m elf_s390"
6299          ;;
6300        sparc64-*linux*)
6301          LD="${LD-ld} -m elf32_sparc"
6302          ;;
6303      esac
6304      ;;
6305    *64-bit*)
6306      case $host in
6307        x86_64-*linux*)
6308          LD="${LD-ld} -m elf_x86_64"
6309          ;;
6310        ppc*-*linux*|powerpc*-*linux*)
6311          LD="${LD-ld} -m elf64ppc"
6312          ;;
6313        s390*-*linux*)
6314          LD="${LD-ld} -m elf64_s390"
6315          ;;
6316        sparc*-*linux*)
6317          LD="${LD-ld} -m elf64_sparc"
6318          ;;
6319      esac
6320      ;;
6321    esac
6322  fi
6323  rm -rf conftest*
6324  ;;
6325
6326*-*-sco3.2v5*)
6327  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6328  SAVE_CFLAGS="$CFLAGS"
6329  CFLAGS="$CFLAGS -belf"
6330  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6331echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6332if test "${lt_cv_cc_needs_belf+set}" = set; then
6333  echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335  ac_ext=c
6336ac_cpp='$CPP $CPPFLAGS'
6337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340
6341     cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h.  */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h.  */
6347
6348int
6349main ()
6350{
6351
6352  ;
6353  return 0;
6354}
6355_ACEOF
6356rm -f conftest.$ac_objext conftest$ac_exeext
6357if { (ac_try="$ac_link"
6358case "(($ac_try" in
6359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360  *) ac_try_echo=$ac_try;;
6361esac
6362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6363  (eval "$ac_link") 2>conftest.er1
6364  ac_status=$?
6365  grep -v '^ *+' conftest.er1 >conftest.err
6366  rm -f conftest.er1
6367  cat conftest.err >&5
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); } && {
6370	 test -z "$ac_c_werror_flag" ||
6371	 test ! -s conftest.err
6372       } && test -s conftest$ac_exeext &&
6373       $as_test_x conftest$ac_exeext; then
6374  lt_cv_cc_needs_belf=yes
6375else
6376  echo "$as_me: failed program was:" >&5
6377sed 's/^/| /' conftest.$ac_ext >&5
6378
6379	lt_cv_cc_needs_belf=no
6380fi
6381
6382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6383      conftest$ac_exeext conftest.$ac_ext
6384     ac_ext=c
6385ac_cpp='$CPP $CPPFLAGS'
6386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388ac_compiler_gnu=$ac_cv_c_compiler_gnu
6389
6390fi
6391{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6392echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6393  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6394    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6395    CFLAGS="$SAVE_CFLAGS"
6396  fi
6397  ;;
6398sparc*-*solaris*)
6399  # Find out which ABI we are using.
6400  echo 'int i;' > conftest.$ac_ext
6401  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402  (eval $ac_compile) 2>&5
6403  ac_status=$?
6404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405  (exit $ac_status); }; then
6406    case `/usr/bin/file conftest.o` in
6407    *64-bit*)
6408      case $lt_cv_prog_gnu_ld in
6409      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6410      *)    LD="${LD-ld} -64" ;;
6411      esac
6412      ;;
6413    esac
6414  fi
6415  rm -rf conftest*
6416  ;;
6417
6418
6419esac
6420
6421need_locks="$enable_libtool_lock"
6422
6423
6424
6425for ac_header in dlfcn.h
6426do
6427as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6429  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6432  echo $ECHO_N "(cached) $ECHO_C" >&6
6433fi
6434ac_res=`eval echo '${'$as_ac_Header'}'`
6435	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6436echo "${ECHO_T}$ac_res" >&6; }
6437else
6438  # Is the header compilable?
6439{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6440echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6441cat >conftest.$ac_ext <<_ACEOF
6442/* confdefs.h.  */
6443_ACEOF
6444cat confdefs.h >>conftest.$ac_ext
6445cat >>conftest.$ac_ext <<_ACEOF
6446/* end confdefs.h.  */
6447$ac_includes_default
6448#include <$ac_header>
6449_ACEOF
6450rm -f conftest.$ac_objext
6451if { (ac_try="$ac_compile"
6452case "(($ac_try" in
6453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454  *) ac_try_echo=$ac_try;;
6455esac
6456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457  (eval "$ac_compile") 2>conftest.er1
6458  ac_status=$?
6459  grep -v '^ *+' conftest.er1 >conftest.err
6460  rm -f conftest.er1
6461  cat conftest.err >&5
6462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463  (exit $ac_status); } && {
6464	 test -z "$ac_c_werror_flag" ||
6465	 test ! -s conftest.err
6466       } && test -s conftest.$ac_objext; then
6467  ac_header_compiler=yes
6468else
6469  echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472	ac_header_compiler=no
6473fi
6474
6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6477echo "${ECHO_T}$ac_header_compiler" >&6; }
6478
6479# Is the header present?
6480{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6481echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6482cat >conftest.$ac_ext <<_ACEOF
6483/* confdefs.h.  */
6484_ACEOF
6485cat confdefs.h >>conftest.$ac_ext
6486cat >>conftest.$ac_ext <<_ACEOF
6487/* end confdefs.h.  */
6488#include <$ac_header>
6489_ACEOF
6490if { (ac_try="$ac_cpp conftest.$ac_ext"
6491case "(($ac_try" in
6492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493  *) ac_try_echo=$ac_try;;
6494esac
6495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6497  ac_status=$?
6498  grep -v '^ *+' conftest.er1 >conftest.err
6499  rm -f conftest.er1
6500  cat conftest.err >&5
6501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502  (exit $ac_status); } >/dev/null && {
6503	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6504	 test ! -s conftest.err
6505       }; then
6506  ac_header_preproc=yes
6507else
6508  echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511  ac_header_preproc=no
6512fi
6513
6514rm -f conftest.err conftest.$ac_ext
6515{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6516echo "${ECHO_T}$ac_header_preproc" >&6; }
6517
6518# So?  What about this header?
6519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6520  yes:no: )
6521    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6523    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6525    ac_header_preproc=yes
6526    ;;
6527  no:yes:* )
6528    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6530    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6531echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6532    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6534    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6535echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6536    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6538    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6540    ( cat <<\_ASBOX
6541## ---------------------------------- ##
6542## Report this to http://sablevm.org/ ##
6543## ---------------------------------- ##
6544_ASBOX
6545     ) | sed "s/^/$as_me: WARNING:     /" >&2
6546    ;;
6547esac
6548{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6550if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6551  echo $ECHO_N "(cached) $ECHO_C" >&6
6552else
6553  eval "$as_ac_Header=\$ac_header_preproc"
6554fi
6555ac_res=`eval echo '${'$as_ac_Header'}'`
6556	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6557echo "${ECHO_T}$ac_res" >&6; }
6558
6559fi
6560if test `eval echo '${'$as_ac_Header'}'` = yes; then
6561  cat >>confdefs.h <<_ACEOF
6562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6563_ACEOF
6564
6565fi
6566
6567done
6568
6569
6570
6571if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6572    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6573    (test "X$CXX" != "Xg++"))) ; then
6574  ac_ext=cpp
6575ac_cpp='$CXXCPP $CPPFLAGS'
6576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6579{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6580echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6581if test -z "$CXXCPP"; then
6582  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6583  echo $ECHO_N "(cached) $ECHO_C" >&6
6584else
6585      # Double quotes because CXXCPP needs to be expanded
6586    for CXXCPP in "$CXX -E" "/lib/cpp"
6587    do
6588      ac_preproc_ok=false
6589for ac_cxx_preproc_warn_flag in '' yes
6590do
6591  # Use a header file that comes with gcc, so configuring glibc
6592  # with a fresh cross-compiler works.
6593  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6594  # <limits.h> exists even on freestanding compilers.
6595  # On the NeXT, cc -E runs the code through the compiler's parser,
6596  # not just through cpp. "Syntax error" is here to catch this case.
6597  cat >conftest.$ac_ext <<_ACEOF
6598/* confdefs.h.  */
6599_ACEOF
6600cat confdefs.h >>conftest.$ac_ext
6601cat >>conftest.$ac_ext <<_ACEOF
6602/* end confdefs.h.  */
6603#ifdef __STDC__
6604# include <limits.h>
6605#else
6606# include <assert.h>
6607#endif
6608		     Syntax error
6609_ACEOF
6610if { (ac_try="$ac_cpp conftest.$ac_ext"
6611case "(($ac_try" in
6612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613  *) ac_try_echo=$ac_try;;
6614esac
6615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6617  ac_status=$?
6618  grep -v '^ *+' conftest.er1 >conftest.err
6619  rm -f conftest.er1
6620  cat conftest.err >&5
6621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622  (exit $ac_status); } >/dev/null && {
6623	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6624	 test ! -s conftest.err
6625       }; then
6626  :
6627else
6628  echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631  # Broken: fails on valid input.
6632continue
6633fi
6634
6635rm -f conftest.err conftest.$ac_ext
6636
6637  # OK, works on sane cases.  Now check whether nonexistent headers
6638  # can be detected and how.
6639  cat >conftest.$ac_ext <<_ACEOF
6640/* confdefs.h.  */
6641_ACEOF
6642cat confdefs.h >>conftest.$ac_ext
6643cat >>conftest.$ac_ext <<_ACEOF
6644/* end confdefs.h.  */
6645#include <ac_nonexistent.h>
6646_ACEOF
6647if { (ac_try="$ac_cpp conftest.$ac_ext"
6648case "(($ac_try" in
6649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6650  *) ac_try_echo=$ac_try;;
6651esac
6652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6653  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6654  ac_status=$?
6655  grep -v '^ *+' conftest.er1 >conftest.err
6656  rm -f conftest.er1
6657  cat conftest.err >&5
6658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); } >/dev/null && {
6660	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6661	 test ! -s conftest.err
6662       }; then
6663  # Broken: success on invalid input.
6664continue
6665else
6666  echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669  # Passes both tests.
6670ac_preproc_ok=:
6671break
6672fi
6673
6674rm -f conftest.err conftest.$ac_ext
6675
6676done
6677# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6678rm -f conftest.err conftest.$ac_ext
6679if $ac_preproc_ok; then
6680  break
6681fi
6682
6683    done
6684    ac_cv_prog_CXXCPP=$CXXCPP
6685
6686fi
6687  CXXCPP=$ac_cv_prog_CXXCPP
6688else
6689  ac_cv_prog_CXXCPP=$CXXCPP
6690fi
6691{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6692echo "${ECHO_T}$CXXCPP" >&6; }
6693ac_preproc_ok=false
6694for ac_cxx_preproc_warn_flag in '' yes
6695do
6696  # Use a header file that comes with gcc, so configuring glibc
6697  # with a fresh cross-compiler works.
6698  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6699  # <limits.h> exists even on freestanding compilers.
6700  # On the NeXT, cc -E runs the code through the compiler's parser,
6701  # not just through cpp. "Syntax error" is here to catch this case.
6702  cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h.  */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h.  */
6708#ifdef __STDC__
6709# include <limits.h>
6710#else
6711# include <assert.h>
6712#endif
6713		     Syntax error
6714_ACEOF
6715if { (ac_try="$ac_cpp conftest.$ac_ext"
6716case "(($ac_try" in
6717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718  *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } >/dev/null && {
6728	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6729	 test ! -s conftest.err
6730       }; then
6731  :
6732else
6733  echo "$as_me: failed program was:" >&5
6734sed 's/^/| /' conftest.$ac_ext >&5
6735
6736  # Broken: fails on valid input.
6737continue
6738fi
6739
6740rm -f conftest.err conftest.$ac_ext
6741
6742  # OK, works on sane cases.  Now check whether nonexistent headers
6743  # can be detected and how.
6744  cat >conftest.$ac_ext <<_ACEOF
6745/* confdefs.h.  */
6746_ACEOF
6747cat confdefs.h >>conftest.$ac_ext
6748cat >>conftest.$ac_ext <<_ACEOF
6749/* end confdefs.h.  */
6750#include <ac_nonexistent.h>
6751_ACEOF
6752if { (ac_try="$ac_cpp conftest.$ac_ext"
6753case "(($ac_try" in
6754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6755  *) ac_try_echo=$ac_try;;
6756esac
6757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6758  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6759  ac_status=$?
6760  grep -v '^ *+' conftest.er1 >conftest.err
6761  rm -f conftest.er1
6762  cat conftest.err >&5
6763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764  (exit $ac_status); } >/dev/null && {
6765	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6766	 test ! -s conftest.err
6767       }; then
6768  # Broken: success on invalid input.
6769continue
6770else
6771  echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
6774  # Passes both tests.
6775ac_preproc_ok=:
6776break
6777fi
6778
6779rm -f conftest.err conftest.$ac_ext
6780
6781done
6782# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6783rm -f conftest.err conftest.$ac_ext
6784if $ac_preproc_ok; then
6785  :
6786else
6787  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6788See \`config.log' for more details." >&5
6789echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6790See \`config.log' for more details." >&2;}
6791   { (exit 1); exit 1; }; }
6792fi
6793
6794ac_ext=cpp
6795ac_cpp='$CXXCPP $CPPFLAGS'
6796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6799
6800fi
6801
6802
6803ac_ext=f
6804ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6805ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6807if test -n "$ac_tool_prefix"; then
6808  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
6809  do
6810    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6811set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6812{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6814if test "${ac_cv_prog_F77+set}" = set; then
6815  echo $ECHO_N "(cached) $ECHO_C" >&6
6816else
6817  if test -n "$F77"; then
6818  ac_cv_prog_F77="$F77" # Let the user override the test.
6819else
6820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821for as_dir in $PATH
6822do
6823  IFS=$as_save_IFS
6824  test -z "$as_dir" && as_dir=.
6825  for ac_exec_ext in '' $ac_executable_extensions; do
6826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6827    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829    break 2
6830  fi
6831done
6832done
6833IFS=$as_save_IFS
6834
6835fi
6836fi
6837F77=$ac_cv_prog_F77
6838if test -n "$F77"; then
6839  { echo "$as_me:$LINENO: result: $F77" >&5
6840echo "${ECHO_T}$F77" >&6; }
6841else
6842  { echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6; }
6844fi
6845
6846
6847    test -n "$F77" && break
6848  done
6849fi
6850if test -z "$F77"; then
6851  ac_ct_F77=$F77
6852  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
6853do
6854  # Extract the first word of "$ac_prog", so it can be a program name with args.
6855set dummy $ac_prog; ac_word=$2
6856{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6859  echo $ECHO_N "(cached) $ECHO_C" >&6
6860else
6861  if test -n "$ac_ct_F77"; then
6862  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6863else
6864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865for as_dir in $PATH
6866do
6867  IFS=$as_save_IFS
6868  test -z "$as_dir" && as_dir=.
6869  for ac_exec_ext in '' $ac_executable_extensions; do
6870  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871    ac_cv_prog_ac_ct_F77="$ac_prog"
6872    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873    break 2
6874  fi
6875done
6876done
6877IFS=$as_save_IFS
6878
6879fi
6880fi
6881ac_ct_F77=$ac_cv_prog_ac_ct_F77
6882if test -n "$ac_ct_F77"; then
6883  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6884echo "${ECHO_T}$ac_ct_F77" >&6; }
6885else
6886  { echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6; }
6888fi
6889
6890
6891  test -n "$ac_ct_F77" && break
6892done
6893
6894  if test "x$ac_ct_F77" = x; then
6895    F77=""
6896  else
6897    case $cross_compiling:$ac_tool_warned in
6898yes:)
6899{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6900whose name does not start with the host triplet.  If you think this
6901configuration is useful to you, please write to autoconf@gnu.org." >&5
6902echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6903whose name does not start with the host triplet.  If you think this
6904configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6905ac_tool_warned=yes ;;
6906esac
6907    F77=$ac_ct_F77
6908  fi
6909fi
6910
6911
6912# Provide some information about the compiler.
6913echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6914ac_compiler=`set X $ac_compile; echo $2`
6915{ (ac_try="$ac_compiler --version >&5"
6916case "(($ac_try" in
6917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918  *) ac_try_echo=$ac_try;;
6919esac
6920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921  (eval "$ac_compiler --version >&5") 2>&5
6922  ac_status=$?
6923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); }
6925{ (ac_try="$ac_compiler -v >&5"
6926case "(($ac_try" in
6927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928  *) ac_try_echo=$ac_try;;
6929esac
6930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931  (eval "$ac_compiler -v >&5") 2>&5
6932  ac_status=$?
6933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934  (exit $ac_status); }
6935{ (ac_try="$ac_compiler -V >&5"
6936case "(($ac_try" in
6937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938  *) ac_try_echo=$ac_try;;
6939esac
6940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6941  (eval "$ac_compiler -V >&5") 2>&5
6942  ac_status=$?
6943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944  (exit $ac_status); }
6945rm -f a.out
6946
6947# If we don't use `.F' as extension, the preprocessor is not run on the
6948# input file.  (Note that this only needs to work for GNU compilers.)
6949ac_save_ext=$ac_ext
6950ac_ext=F
6951{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6952echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6953if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6954  echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956  cat >conftest.$ac_ext <<_ACEOF
6957      program main
6958#ifndef __GNUC__
6959       choke me
6960#endif
6961
6962      end
6963_ACEOF
6964rm -f conftest.$ac_objext
6965if { (ac_try="$ac_compile"
6966case "(($ac_try" in
6967  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968  *) ac_try_echo=$ac_try;;
6969esac
6970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971  (eval "$ac_compile") 2>conftest.er1
6972  ac_status=$?
6973  grep -v '^ *+' conftest.er1 >conftest.err
6974  rm -f conftest.er1
6975  cat conftest.err >&5
6976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977  (exit $ac_status); } && {
6978	 test -z "$ac_f77_werror_flag" ||
6979	 test ! -s conftest.err
6980       } && test -s conftest.$ac_objext; then
6981  ac_compiler_gnu=yes
6982else
6983  echo "$as_me: failed program was:" >&5
6984sed 's/^/| /' conftest.$ac_ext >&5
6985
6986	ac_compiler_gnu=no
6987fi
6988
6989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6990ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6991
6992fi
6993{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6994echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6995ac_ext=$ac_save_ext
6996ac_test_FFLAGS=${FFLAGS+set}
6997ac_save_FFLAGS=$FFLAGS
6998FFLAGS=
6999{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7000echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
7001if test "${ac_cv_prog_f77_g+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  FFLAGS=-g
7005cat >conftest.$ac_ext <<_ACEOF
7006      program main
7007
7008      end
7009_ACEOF
7010rm -f conftest.$ac_objext
7011if { (ac_try="$ac_compile"
7012case "(($ac_try" in
7013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014  *) ac_try_echo=$ac_try;;
7015esac
7016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017  (eval "$ac_compile") 2>conftest.er1
7018  ac_status=$?
7019  grep -v '^ *+' conftest.er1 >conftest.err
7020  rm -f conftest.er1
7021  cat conftest.err >&5
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); } && {
7024	 test -z "$ac_f77_werror_flag" ||
7025	 test ! -s conftest.err
7026       } && test -s conftest.$ac_objext; then
7027  ac_cv_prog_f77_g=yes
7028else
7029  echo "$as_me: failed program was:" >&5
7030sed 's/^/| /' conftest.$ac_ext >&5
7031
7032	ac_cv_prog_f77_g=no
7033fi
7034
7035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036
7037fi
7038{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7039echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
7040if test "$ac_test_FFLAGS" = set; then
7041  FFLAGS=$ac_save_FFLAGS
7042elif test $ac_cv_prog_f77_g = yes; then
7043  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7044    FFLAGS="-g -O2"
7045  else
7046    FFLAGS="-g"
7047  fi
7048else
7049  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7050    FFLAGS="-O2"
7051  else
7052    FFLAGS=
7053  fi
7054fi
7055
7056G77=`test $ac_compiler_gnu = yes && echo yes`
7057ac_ext=c
7058ac_cpp='$CPP $CPPFLAGS'
7059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7061ac_compiler_gnu=$ac_cv_c_compiler_gnu
7062
7063
7064
7065# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7066
7067# find the maximum length of command line arguments
7068{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7069echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7070if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073    i=0
7074  teststring="ABCD"
7075
7076  case $build_os in
7077  msdosdjgpp*)
7078    # On DJGPP, this test can blow up pretty badly due to problems in libc
7079    # (any single argument exceeding 2000 bytes causes a buffer overrun
7080    # during glob expansion).  Even if it were fixed, the result of this
7081    # check would be larger than it should be.
7082    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7083    ;;
7084
7085  gnu*)
7086    # Under GNU Hurd, this test is not required because there is
7087    # no limit to the length of command line arguments.
7088    # Libtool will interpret -1 as no limit whatsoever
7089    lt_cv_sys_max_cmd_len=-1;
7090    ;;
7091
7092  cygwin* | mingw*)
7093    # On Win9x/ME, this test blows up -- it succeeds, but takes
7094    # about 5 minutes as the teststring grows exponentially.
7095    # Worse, since 9x/ME are not pre-emptively multitasking,
7096    # you end up with a "frozen" computer, even though with patience
7097    # the test eventually succeeds (with a max line length of 256k).
7098    # Instead, let's just punt: use the minimum linelength reported by
7099    # all of the supported platforms: 8192 (on NT/2K/XP).
7100    lt_cv_sys_max_cmd_len=8192;
7101    ;;
7102
7103  amigaos*)
7104    # On AmigaOS with pdksh, this test takes hours, literally.
7105    # So we just punt and use a minimum line length of 8192.
7106    lt_cv_sys_max_cmd_len=8192;
7107    ;;
7108
7109  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7110    # This has been around since 386BSD, at least.  Likely further.
7111    if test -x /sbin/sysctl; then
7112      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7113    elif test -x /usr/sbin/sysctl; then
7114      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7115    else
7116      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7117    fi
7118    # And add a safety zone
7119    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7120    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7121    ;;
7122
7123  interix*)
7124    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7125    lt_cv_sys_max_cmd_len=196608
7126    ;;
7127
7128  osf*)
7129    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7130    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7131    # nice to cause kernel panics so lets avoid the loop below.
7132    # First set a reasonable default.
7133    lt_cv_sys_max_cmd_len=16384
7134    #
7135    if test -x /sbin/sysconfig; then
7136      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7137        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7138      esac
7139    fi
7140    ;;
7141  sco3.2v5*)
7142    lt_cv_sys_max_cmd_len=102400
7143    ;;
7144  sysv5* | sco5v6* | sysv4.2uw2*)
7145    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7146    if test -n "$kargmax"; then
7147      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7148    else
7149      lt_cv_sys_max_cmd_len=32768
7150    fi
7151    ;;
7152  *)
7153    # If test is not a shell built-in, we'll probably end up computing a
7154    # maximum length that is only half of the actual maximum length, but
7155    # we can't tell.
7156    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7157    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7158	       = "XX$teststring") >/dev/null 2>&1 &&
7159	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7160	    lt_cv_sys_max_cmd_len=$new_result &&
7161	    test $i != 17 # 1/2 MB should be enough
7162    do
7163      i=`expr $i + 1`
7164      teststring=$teststring$teststring
7165    done
7166    teststring=
7167    # Add a significant safety factor because C++ compilers can tack on massive
7168    # amounts of additional arguments before passing them to the linker.
7169    # It appears as though 1/2 is a usable value.
7170    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7171    ;;
7172  esac
7173
7174fi
7175
7176if test -n $lt_cv_sys_max_cmd_len ; then
7177  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7178echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7179else
7180  { echo "$as_me:$LINENO: result: none" >&5
7181echo "${ECHO_T}none" >&6; }
7182fi
7183
7184
7185
7186
7187# Check for command to grab the raw symbol name followed by C symbol from nm.
7188{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7189echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7190if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193
7194# These are sane defaults that work on at least a few old systems.
7195# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7196
7197# Character class describing NM global symbol codes.
7198symcode='[BCDEGRST]'
7199
7200# Regexp to match symbols that can be accessed directly from C.
7201sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7202
7203# Transform an extracted symbol line into a proper C declaration
7204lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7205
7206# Transform an extracted symbol line into symbol name and symbol address
7207lt_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'"
7208
7209# Define system-specific variables.
7210case $host_os in
7211aix*)
7212  symcode='[BCDT]'
7213  ;;
7214cygwin* | mingw* | pw32*)
7215  symcode='[ABCDGISTW]'
7216  ;;
7217hpux*) # Its linker distinguishes data from code symbols
7218  if test "$host_cpu" = ia64; then
7219    symcode='[ABCDEGRST]'
7220  fi
7221  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7222  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'"
7223  ;;
7224linux* | k*bsd*-gnu)
7225  if test "$host_cpu" = ia64; then
7226    symcode='[ABCDGIRSTW]'
7227    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7228    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'"
7229  fi
7230  ;;
7231irix* | nonstopux*)
7232  symcode='[BCDEGRST]'
7233  ;;
7234osf*)
7235  symcode='[BCDEGQRST]'
7236  ;;
7237solaris*)
7238  symcode='[BDRT]'
7239  ;;
7240sco3.2v5*)
7241  symcode='[DT]'
7242  ;;
7243sysv4.2uw2*)
7244  symcode='[DT]'
7245  ;;
7246sysv5* | sco5v6* | unixware* | OpenUNIX*)
7247  symcode='[ABDT]'
7248  ;;
7249sysv4)
7250  symcode='[DFNSTU]'
7251  ;;
7252esac
7253
7254# Handle CRLF in mingw tool chain
7255opt_cr=
7256case $build_os in
7257mingw*)
7258  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7259  ;;
7260esac
7261
7262# If we're using GNU nm, then use its standard symbol codes.
7263case `$NM -V 2>&1` in
7264*GNU* | *'with BFD'*)
7265  symcode='[ABCDGIRSTW]' ;;
7266esac
7267
7268# Try without a prefix undercore, then with it.
7269for ac_symprfx in "" "_"; do
7270
7271  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7272  symxfrm="\\1 $ac_symprfx\\2 \\2"
7273
7274  # Write the raw and C identifiers.
7275  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7276
7277  # Check to see that the pipe works correctly.
7278  pipe_works=no
7279
7280  rm -f conftest*
7281  cat > conftest.$ac_ext <<EOF
7282#ifdef __cplusplus
7283extern "C" {
7284#endif
7285char nm_test_var;
7286void nm_test_func(){}
7287#ifdef __cplusplus
7288}
7289#endif
7290int main(){nm_test_var='a';nm_test_func();return(0);}
7291EOF
7292
7293  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7294  (eval $ac_compile) 2>&5
7295  ac_status=$?
7296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297  (exit $ac_status); }; then
7298    # Now try to grab the symbols.
7299    nlist=conftest.nm
7300    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7301  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7302  ac_status=$?
7303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304  (exit $ac_status); } && test -s "$nlist"; then
7305      # Try sorting and uniquifying the output.
7306      if sort "$nlist" | uniq > "$nlist"T; then
7307	mv -f "$nlist"T "$nlist"
7308      else
7309	rm -f "$nlist"T
7310      fi
7311
7312      # Make sure that we snagged all the symbols we need.
7313      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7314	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7315	  cat <<EOF > conftest.$ac_ext
7316#ifdef __cplusplus
7317extern "C" {
7318#endif
7319
7320EOF
7321	  # Now generate the symbol file.
7322	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7323
7324	  cat <<EOF >> conftest.$ac_ext
7325#if defined (__STDC__) && __STDC__
7326# define lt_ptr_t void *
7327#else
7328# define lt_ptr_t char *
7329# define const
7330#endif
7331
7332/* The mapping between symbol names and symbols. */
7333const struct {
7334  const char *name;
7335  lt_ptr_t address;
7336}
7337lt_preloaded_symbols[] =
7338{
7339EOF
7340	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7341	  cat <<\EOF >> conftest.$ac_ext
7342  {0, (lt_ptr_t) 0}
7343};
7344
7345#ifdef __cplusplus
7346}
7347#endif
7348EOF
7349	  # Now try linking the two files.
7350	  mv conftest.$ac_objext conftstm.$ac_objext
7351	  lt_save_LIBS="$LIBS"
7352	  lt_save_CFLAGS="$CFLAGS"
7353	  LIBS="conftstm.$ac_objext"
7354	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7355	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7356  (eval $ac_link) 2>&5
7357  ac_status=$?
7358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7360	    pipe_works=yes
7361	  fi
7362	  LIBS="$lt_save_LIBS"
7363	  CFLAGS="$lt_save_CFLAGS"
7364	else
7365	  echo "cannot find nm_test_func in $nlist" >&5
7366	fi
7367      else
7368	echo "cannot find nm_test_var in $nlist" >&5
7369      fi
7370    else
7371      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7372    fi
7373  else
7374    echo "$progname: failed program was:" >&5
7375    cat conftest.$ac_ext >&5
7376  fi
7377  rm -f conftest* conftst*
7378
7379  # Do not use the global_symbol_pipe unless it works.
7380  if test "$pipe_works" = yes; then
7381    break
7382  else
7383    lt_cv_sys_global_symbol_pipe=
7384  fi
7385done
7386
7387fi
7388
7389if test -z "$lt_cv_sys_global_symbol_pipe"; then
7390  lt_cv_sys_global_symbol_to_cdecl=
7391fi
7392if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7393  { echo "$as_me:$LINENO: result: failed" >&5
7394echo "${ECHO_T}failed" >&6; }
7395else
7396  { echo "$as_me:$LINENO: result: ok" >&5
7397echo "${ECHO_T}ok" >&6; }
7398fi
7399
7400{ echo "$as_me:$LINENO: checking for objdir" >&5
7401echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7402if test "${lt_cv_objdir+set}" = set; then
7403  echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405  rm -f .libs 2>/dev/null
7406mkdir .libs 2>/dev/null
7407if test -d .libs; then
7408  lt_cv_objdir=.libs
7409else
7410  # MS-DOS does not allow filenames that begin with a dot.
7411  lt_cv_objdir=_libs
7412fi
7413rmdir .libs 2>/dev/null
7414fi
7415{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7416echo "${ECHO_T}$lt_cv_objdir" >&6; }
7417objdir=$lt_cv_objdir
7418
7419
7420
7421
7422
7423case $host_os in
7424aix3*)
7425  # AIX sometimes has problems with the GCC collect2 program.  For some
7426  # reason, if we set the COLLECT_NAMES environment variable, the problems
7427  # vanish in a puff of smoke.
7428  if test "X${COLLECT_NAMES+set}" != Xset; then
7429    COLLECT_NAMES=
7430    export COLLECT_NAMES
7431  fi
7432  ;;
7433esac
7434
7435# Sed substitution that helps us do robust quoting.  It backslashifies
7436# metacharacters that are still active within double-quoted strings.
7437Xsed='sed -e 1s/^X//'
7438sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7439
7440# Same as above, but do not quote variable references.
7441double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7442
7443# Sed substitution to delay expansion of an escaped shell variable in a
7444# double_quote_subst'ed string.
7445delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7446
7447# Sed substitution to avoid accidental globbing in evaled expressions
7448no_glob_subst='s/\*/\\\*/g'
7449
7450# Constants:
7451rm="rm -f"
7452
7453# Global variables:
7454default_ofile=libtool
7455can_build_shared=yes
7456
7457# All known linkers require a `.a' archive for static linking (except MSVC,
7458# which needs '.lib').
7459libext=a
7460ltmain="$ac_aux_dir/ltmain.sh"
7461ofile="$default_ofile"
7462with_gnu_ld="$lt_cv_prog_gnu_ld"
7463
7464if test -n "$ac_tool_prefix"; then
7465  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7466set dummy ${ac_tool_prefix}ar; ac_word=$2
7467{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7469if test "${ac_cv_prog_AR+set}" = set; then
7470  echo $ECHO_N "(cached) $ECHO_C" >&6
7471else
7472  if test -n "$AR"; then
7473  ac_cv_prog_AR="$AR" # Let the user override the test.
7474else
7475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478  IFS=$as_save_IFS
7479  test -z "$as_dir" && as_dir=.
7480  for ac_exec_ext in '' $ac_executable_extensions; do
7481  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7482    ac_cv_prog_AR="${ac_tool_prefix}ar"
7483    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484    break 2
7485  fi
7486done
7487done
7488IFS=$as_save_IFS
7489
7490fi
7491fi
7492AR=$ac_cv_prog_AR
7493if test -n "$AR"; then
7494  { echo "$as_me:$LINENO: result: $AR" >&5
7495echo "${ECHO_T}$AR" >&6; }
7496else
7497  { echo "$as_me:$LINENO: result: no" >&5
7498echo "${ECHO_T}no" >&6; }
7499fi
7500
7501
7502fi
7503if test -z "$ac_cv_prog_AR"; then
7504  ac_ct_AR=$AR
7505  # Extract the first word of "ar", so it can be a program name with args.
7506set dummy ar; ac_word=$2
7507{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7509if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7510  echo $ECHO_N "(cached) $ECHO_C" >&6
7511else
7512  if test -n "$ac_ct_AR"; then
7513  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7514else
7515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516for as_dir in $PATH
7517do
7518  IFS=$as_save_IFS
7519  test -z "$as_dir" && as_dir=.
7520  for ac_exec_ext in '' $ac_executable_extensions; do
7521  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7522    ac_cv_prog_ac_ct_AR="ar"
7523    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7524    break 2
7525  fi
7526done
7527done
7528IFS=$as_save_IFS
7529
7530fi
7531fi
7532ac_ct_AR=$ac_cv_prog_ac_ct_AR
7533if test -n "$ac_ct_AR"; then
7534  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7535echo "${ECHO_T}$ac_ct_AR" >&6; }
7536else
7537  { echo "$as_me:$LINENO: result: no" >&5
7538echo "${ECHO_T}no" >&6; }
7539fi
7540
7541  if test "x$ac_ct_AR" = x; then
7542    AR="false"
7543  else
7544    case $cross_compiling:$ac_tool_warned in
7545yes:)
7546{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7547whose name does not start with the host triplet.  If you think this
7548configuration is useful to you, please write to autoconf@gnu.org." >&5
7549echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7550whose name does not start with the host triplet.  If you think this
7551configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7552ac_tool_warned=yes ;;
7553esac
7554    AR=$ac_ct_AR
7555  fi
7556else
7557  AR="$ac_cv_prog_AR"
7558fi
7559
7560if test -n "$ac_tool_prefix"; then
7561  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7562set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7565if test "${ac_cv_prog_RANLIB+set}" = set; then
7566  echo $ECHO_N "(cached) $ECHO_C" >&6
7567else
7568  if test -n "$RANLIB"; then
7569  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7570else
7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572for as_dir in $PATH
7573do
7574  IFS=$as_save_IFS
7575  test -z "$as_dir" && as_dir=.
7576  for ac_exec_ext in '' $ac_executable_extensions; do
7577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7578    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7579    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7580    break 2
7581  fi
7582done
7583done
7584IFS=$as_save_IFS
7585
7586fi
7587fi
7588RANLIB=$ac_cv_prog_RANLIB
7589if test -n "$RANLIB"; then
7590  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7591echo "${ECHO_T}$RANLIB" >&6; }
7592else
7593  { echo "$as_me:$LINENO: result: no" >&5
7594echo "${ECHO_T}no" >&6; }
7595fi
7596
7597
7598fi
7599if test -z "$ac_cv_prog_RANLIB"; then
7600  ac_ct_RANLIB=$RANLIB
7601  # Extract the first word of "ranlib", so it can be a program name with args.
7602set dummy ranlib; ac_word=$2
7603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7605if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7606  echo $ECHO_N "(cached) $ECHO_C" >&6
7607else
7608  if test -n "$ac_ct_RANLIB"; then
7609  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7610else
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614  IFS=$as_save_IFS
7615  test -z "$as_dir" && as_dir=.
7616  for ac_exec_ext in '' $ac_executable_extensions; do
7617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7618    ac_cv_prog_ac_ct_RANLIB="ranlib"
7619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620    break 2
7621  fi
7622done
7623done
7624IFS=$as_save_IFS
7625
7626fi
7627fi
7628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7629if test -n "$ac_ct_RANLIB"; then
7630  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7631echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7632else
7633  { echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6; }
7635fi
7636
7637  if test "x$ac_ct_RANLIB" = x; then
7638    RANLIB=":"
7639  else
7640    case $cross_compiling:$ac_tool_warned in
7641yes:)
7642{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7643whose name does not start with the host triplet.  If you think this
7644configuration is useful to you, please write to autoconf@gnu.org." >&5
7645echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7646whose name does not start with the host triplet.  If you think this
7647configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7648ac_tool_warned=yes ;;
7649esac
7650    RANLIB=$ac_ct_RANLIB
7651  fi
7652else
7653  RANLIB="$ac_cv_prog_RANLIB"
7654fi
7655
7656if test -n "$ac_tool_prefix"; then
7657  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7658set dummy ${ac_tool_prefix}strip; ac_word=$2
7659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7661if test "${ac_cv_prog_STRIP+set}" = set; then
7662  echo $ECHO_N "(cached) $ECHO_C" >&6
7663else
7664  if test -n "$STRIP"; then
7665  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7666else
7667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670  IFS=$as_save_IFS
7671  test -z "$as_dir" && as_dir=.
7672  for ac_exec_ext in '' $ac_executable_extensions; do
7673  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676    break 2
7677  fi
7678done
7679done
7680IFS=$as_save_IFS
7681
7682fi
7683fi
7684STRIP=$ac_cv_prog_STRIP
7685if test -n "$STRIP"; then
7686  { echo "$as_me:$LINENO: result: $STRIP" >&5
7687echo "${ECHO_T}$STRIP" >&6; }
7688else
7689  { echo "$as_me:$LINENO: result: no" >&5
7690echo "${ECHO_T}no" >&6; }
7691fi
7692
7693
7694fi
7695if test -z "$ac_cv_prog_STRIP"; then
7696  ac_ct_STRIP=$STRIP
7697  # Extract the first word of "strip", so it can be a program name with args.
7698set dummy strip; ac_word=$2
7699{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7701if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7702  echo $ECHO_N "(cached) $ECHO_C" >&6
7703else
7704  if test -n "$ac_ct_STRIP"; then
7705  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710  IFS=$as_save_IFS
7711  test -z "$as_dir" && as_dir=.
7712  for ac_exec_ext in '' $ac_executable_extensions; do
7713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7714    ac_cv_prog_ac_ct_STRIP="strip"
7715    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7716    break 2
7717  fi
7718done
7719done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7725if test -n "$ac_ct_STRIP"; then
7726  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7727echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7728else
7729  { echo "$as_me:$LINENO: result: no" >&5
7730echo "${ECHO_T}no" >&6; }
7731fi
7732
7733  if test "x$ac_ct_STRIP" = x; then
7734    STRIP=":"
7735  else
7736    case $cross_compiling:$ac_tool_warned in
7737yes:)
7738{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7739whose name does not start with the host triplet.  If you think this
7740configuration is useful to you, please write to autoconf@gnu.org." >&5
7741echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7742whose name does not start with the host triplet.  If you think this
7743configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7744ac_tool_warned=yes ;;
7745esac
7746    STRIP=$ac_ct_STRIP
7747  fi
7748else
7749  STRIP="$ac_cv_prog_STRIP"
7750fi
7751
7752
7753old_CC="$CC"
7754old_CFLAGS="$CFLAGS"
7755
7756# Set sane defaults for various variables
7757test -z "$AR" && AR=ar
7758test -z "$AR_FLAGS" && AR_FLAGS=cru
7759test -z "$AS" && AS=as
7760test -z "$CC" && CC=cc
7761test -z "$LTCC" && LTCC=$CC
7762test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7763test -z "$DLLTOOL" && DLLTOOL=dlltool
7764test -z "$LD" && LD=ld
7765test -z "$LN_S" && LN_S="ln -s"
7766test -z "$MAGIC_CMD" && MAGIC_CMD=file
7767test -z "$NM" && NM=nm
7768test -z "$SED" && SED=sed
7769test -z "$OBJDUMP" && OBJDUMP=objdump
7770test -z "$RANLIB" && RANLIB=:
7771test -z "$STRIP" && STRIP=:
7772test -z "$ac_objext" && ac_objext=o
7773
7774# Determine commands to create old-style static archives.
7775old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7776old_postinstall_cmds='chmod 644 $oldlib'
7777old_postuninstall_cmds=
7778
7779if test -n "$RANLIB"; then
7780  case $host_os in
7781  openbsd*)
7782    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7783    ;;
7784  *)
7785    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7786    ;;
7787  esac
7788  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7789fi
7790
7791for cc_temp in $compiler""; do
7792  case $cc_temp in
7793    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7794    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7795    \-*) ;;
7796    *) break;;
7797  esac
7798done
7799cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7800
7801
7802# Only perform the check for file, if the check method requires it
7803case $deplibs_check_method in
7804file_magic*)
7805  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7806    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7807echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7808if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7809  echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811  case $MAGIC_CMD in
7812[\\/*] |  ?:[\\/]*)
7813  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7814  ;;
7815*)
7816  lt_save_MAGIC_CMD="$MAGIC_CMD"
7817  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7818  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7819  for ac_dir in $ac_dummy; do
7820    IFS="$lt_save_ifs"
7821    test -z "$ac_dir" && ac_dir=.
7822    if test -f $ac_dir/${ac_tool_prefix}file; then
7823      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7824      if test -n "$file_magic_test_file"; then
7825	case $deplibs_check_method in
7826	"file_magic "*)
7827	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7828	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7829	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7830	    $EGREP "$file_magic_regex" > /dev/null; then
7831	    :
7832	  else
7833	    cat <<EOF 1>&2
7834
7835*** Warning: the command libtool uses to detect shared libraries,
7836*** $file_magic_cmd, produces output that libtool cannot recognize.
7837*** The result is that libtool may fail to recognize shared libraries
7838*** as such.  This will affect the creation of libtool libraries that
7839*** depend on shared libraries, but programs linked with such libtool
7840*** libraries will work regardless of this problem.  Nevertheless, you
7841*** may want to report the problem to your system manager and/or to
7842*** bug-libtool@gnu.org
7843
7844EOF
7845	  fi ;;
7846	esac
7847      fi
7848      break
7849    fi
7850  done
7851  IFS="$lt_save_ifs"
7852  MAGIC_CMD="$lt_save_MAGIC_CMD"
7853  ;;
7854esac
7855fi
7856
7857MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7858if test -n "$MAGIC_CMD"; then
7859  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7860echo "${ECHO_T}$MAGIC_CMD" >&6; }
7861else
7862  { echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6; }
7864fi
7865
7866if test -z "$lt_cv_path_MAGIC_CMD"; then
7867  if test -n "$ac_tool_prefix"; then
7868    { echo "$as_me:$LINENO: checking for file" >&5
7869echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7870if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7871  echo $ECHO_N "(cached) $ECHO_C" >&6
7872else
7873  case $MAGIC_CMD in
7874[\\/*] |  ?:[\\/]*)
7875  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7876  ;;
7877*)
7878  lt_save_MAGIC_CMD="$MAGIC_CMD"
7879  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7880  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7881  for ac_dir in $ac_dummy; do
7882    IFS="$lt_save_ifs"
7883    test -z "$ac_dir" && ac_dir=.
7884    if test -f $ac_dir/file; then
7885      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7886      if test -n "$file_magic_test_file"; then
7887	case $deplibs_check_method in
7888	"file_magic "*)
7889	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7890	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7891	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7892	    $EGREP "$file_magic_regex" > /dev/null; then
7893	    :
7894	  else
7895	    cat <<EOF 1>&2
7896
7897*** Warning: the command libtool uses to detect shared libraries,
7898*** $file_magic_cmd, produces output that libtool cannot recognize.
7899*** The result is that libtool may fail to recognize shared libraries
7900*** as such.  This will affect the creation of libtool libraries that
7901*** depend on shared libraries, but programs linked with such libtool
7902*** libraries will work regardless of this problem.  Nevertheless, you
7903*** may want to report the problem to your system manager and/or to
7904*** bug-libtool@gnu.org
7905
7906EOF
7907	  fi ;;
7908	esac
7909      fi
7910      break
7911    fi
7912  done
7913  IFS="$lt_save_ifs"
7914  MAGIC_CMD="$lt_save_MAGIC_CMD"
7915  ;;
7916esac
7917fi
7918
7919MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7920if test -n "$MAGIC_CMD"; then
7921  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7922echo "${ECHO_T}$MAGIC_CMD" >&6; }
7923else
7924  { echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6; }
7926fi
7927
7928  else
7929    MAGIC_CMD=:
7930  fi
7931fi
7932
7933  fi
7934  ;;
7935esac
7936
7937enable_dlopen=no
7938enable_win32_dll=no
7939
7940# Check whether --enable-libtool-lock was given.
7941if test "${enable_libtool_lock+set}" = set; then
7942  enableval=$enable_libtool_lock;
7943fi
7944
7945test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7946
7947
7948# Check whether --with-pic was given.
7949if test "${with_pic+set}" = set; then
7950  withval=$with_pic; pic_mode="$withval"
7951else
7952  pic_mode=default
7953fi
7954
7955test -z "$pic_mode" && pic_mode=default
7956
7957# Use C for the default configuration in the libtool script
7958tagname=
7959lt_save_CC="$CC"
7960ac_ext=c
7961ac_cpp='$CPP $CPPFLAGS'
7962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7964ac_compiler_gnu=$ac_cv_c_compiler_gnu
7965
7966
7967# Source file extension for C test sources.
7968ac_ext=c
7969
7970# Object file extension for compiled C test sources.
7971objext=o
7972objext=$objext
7973
7974# Code to be used in simple compile tests
7975lt_simple_compile_test_code="int some_variable = 0;\n"
7976
7977# Code to be used in simple link tests
7978lt_simple_link_test_code='int main(){return(0);}\n'
7979
7980
7981# If no C compiler was specified, use CC.
7982LTCC=${LTCC-"$CC"}
7983
7984# If no C compiler flags were specified, use CFLAGS.
7985LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7986
7987# Allow CC to be a program name with arguments.
7988compiler=$CC
7989
7990
7991# save warnings/boilerplate of simple test code
7992ac_outfile=conftest.$ac_objext
7993printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7994eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7995_lt_compiler_boilerplate=`cat conftest.err`
7996$rm conftest*
7997
7998ac_outfile=conftest.$ac_objext
7999printf "$lt_simple_link_test_code" >conftest.$ac_ext
8000eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8001_lt_linker_boilerplate=`cat conftest.err`
8002$rm conftest*
8003
8004
8005
8006lt_prog_compiler_no_builtin_flag=
8007
8008if test "$GCC" = yes; then
8009  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8010
8011
8012{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8013echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8014if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8015  echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017  lt_cv_prog_compiler_rtti_exceptions=no
8018  ac_outfile=conftest.$ac_objext
8019   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8020   lt_compiler_flag="-fno-rtti -fno-exceptions"
8021   # Insert the option either (1) after the last *FLAGS variable, or
8022   # (2) before a word containing "conftest.", or (3) at the end.
8023   # Note that $ac_compile itself does not contain backslashes and begins
8024   # with a dollar sign (not a hyphen), so the echo should work correctly.
8025   # The option is referenced via a variable to avoid confusing sed.
8026   lt_compile=`echo "$ac_compile" | $SED \
8027   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8028   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8029   -e 's:$: $lt_compiler_flag:'`
8030   (eval echo "\"\$as_me:8030: $lt_compile\"" >&5)
8031   (eval "$lt_compile" 2>conftest.err)
8032   ac_status=$?
8033   cat conftest.err >&5
8034   echo "$as_me:8034: \$? = $ac_status" >&5
8035   if (exit $ac_status) && test -s "$ac_outfile"; then
8036     # The compiler can only warn and ignore the option if not recognized
8037     # So say no if there are warnings other than the usual output.
8038     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8039     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8040     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8041       lt_cv_prog_compiler_rtti_exceptions=yes
8042     fi
8043   fi
8044   $rm conftest*
8045
8046fi
8047{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8048echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8049
8050if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8051    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8052else
8053    :
8054fi
8055
8056fi
8057
8058lt_prog_compiler_wl=
8059lt_prog_compiler_pic=
8060lt_prog_compiler_static=
8061
8062{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8063echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8064
8065  if test "$GCC" = yes; then
8066    lt_prog_compiler_wl='-Wl,'
8067    lt_prog_compiler_static='-static'
8068
8069    case $host_os in
8070      aix*)
8071      # All AIX code is PIC.
8072      if test "$host_cpu" = ia64; then
8073	# AIX 5 now supports IA64 processor
8074	lt_prog_compiler_static='-Bstatic'
8075      fi
8076      ;;
8077
8078    amigaos*)
8079      # FIXME: we need at least 68020 code to build shared libraries, but
8080      # adding the `-m68020' flag to GCC prevents building anything better,
8081      # like `-m68040'.
8082      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8083      ;;
8084
8085    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8086      # PIC is the default for these OSes.
8087      ;;
8088
8089    mingw* | pw32* | os2*)
8090      # This hack is so that the source file can tell whether it is being
8091      # built for inclusion in a dll (and should export symbols for example).
8092      lt_prog_compiler_pic='-DDLL_EXPORT'
8093      ;;
8094
8095    darwin* | rhapsody*)
8096      # PIC is the default on this platform
8097      # Common symbols not allowed in MH_DYLIB files
8098      lt_prog_compiler_pic='-fno-common'
8099      ;;
8100
8101    interix3*)
8102      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8103      # Instead, we relocate shared libraries at runtime.
8104      ;;
8105
8106    msdosdjgpp*)
8107      # Just because we use GCC doesn't mean we suddenly get shared libraries
8108      # on systems that don't support them.
8109      lt_prog_compiler_can_build_shared=no
8110      enable_shared=no
8111      ;;
8112
8113    sysv4*MP*)
8114      if test -d /usr/nec; then
8115	lt_prog_compiler_pic=-Kconform_pic
8116      fi
8117      ;;
8118
8119    hpux*)
8120      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8121      # not for PA HP-UX.
8122      case $host_cpu in
8123      hppa*64*|ia64*)
8124	# +Z the default
8125	;;
8126      *)
8127	lt_prog_compiler_pic='-fPIC'
8128	;;
8129      esac
8130      ;;
8131
8132    *)
8133      lt_prog_compiler_pic='-fPIC'
8134      ;;
8135    esac
8136  else
8137    # PORTME Check for flag to pass linker flags through the system compiler.
8138    case $host_os in
8139    aix*)
8140      lt_prog_compiler_wl='-Wl,'
8141      if test "$host_cpu" = ia64; then
8142	# AIX 5 now supports IA64 processor
8143	lt_prog_compiler_static='-Bstatic'
8144      else
8145	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8146      fi
8147      ;;
8148      darwin*)
8149        # PIC is the default on this platform
8150        # Common symbols not allowed in MH_DYLIB files
8151       case $cc_basename in
8152         xlc*)
8153         lt_prog_compiler_pic='-qnocommon'
8154         lt_prog_compiler_wl='-Wl,'
8155         ;;
8156       esac
8157       ;;
8158
8159    mingw* | pw32* | os2*)
8160      # This hack is so that the source file can tell whether it is being
8161      # built for inclusion in a dll (and should export symbols for example).
8162      lt_prog_compiler_pic='-DDLL_EXPORT'
8163      ;;
8164
8165    hpux9* | hpux10* | hpux11*)
8166      lt_prog_compiler_wl='-Wl,'
8167      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8168      # not for PA HP-UX.
8169      case $host_cpu in
8170      hppa*64*|ia64*)
8171	# +Z the default
8172	;;
8173      *)
8174	lt_prog_compiler_pic='+Z'
8175	;;
8176      esac
8177      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8178      lt_prog_compiler_static='${wl}-a ${wl}archive'
8179      ;;
8180
8181    irix5* | irix6* | nonstopux*)
8182      lt_prog_compiler_wl='-Wl,'
8183      # PIC (with -KPIC) is the default.
8184      lt_prog_compiler_static='-non_shared'
8185      ;;
8186
8187    newsos6)
8188      lt_prog_compiler_pic='-KPIC'
8189      lt_prog_compiler_static='-Bstatic'
8190      ;;
8191
8192    linux* | k*bsd*-gnu)
8193      case $cc_basename in
8194      icc* | ecc*)
8195	lt_prog_compiler_wl='-Wl,'
8196	lt_prog_compiler_pic='-KPIC'
8197	lt_prog_compiler_static='-static'
8198        ;;
8199      pgcc* | pgf77* | pgf90* | pgf95*)
8200        # Portland Group compilers (*not* the Pentium gcc compiler,
8201	# which looks to be a dead project)
8202	lt_prog_compiler_wl='-Wl,'
8203	lt_prog_compiler_pic='-fpic'
8204	lt_prog_compiler_static='-Bstatic'
8205        ;;
8206      ccc*)
8207        lt_prog_compiler_wl='-Wl,'
8208        # All Alpha code is PIC.
8209        lt_prog_compiler_static='-non_shared'
8210        ;;
8211      esac
8212      ;;
8213
8214    osf3* | osf4* | osf5*)
8215      lt_prog_compiler_wl='-Wl,'
8216      # All OSF/1 code is PIC.
8217      lt_prog_compiler_static='-non_shared'
8218      ;;
8219
8220    solaris*)
8221      lt_prog_compiler_pic='-KPIC'
8222      lt_prog_compiler_static='-Bstatic'
8223      case $cc_basename in
8224      f77* | f90* | f95*)
8225	lt_prog_compiler_wl='-Qoption ld ';;
8226      *)
8227	lt_prog_compiler_wl='-Wl,';;
8228      esac
8229      ;;
8230
8231    sunos4*)
8232      lt_prog_compiler_wl='-Qoption ld '
8233      lt_prog_compiler_pic='-PIC'
8234      lt_prog_compiler_static='-Bstatic'
8235      ;;
8236
8237    sysv4 | sysv4.2uw2* | sysv4.3*)
8238      lt_prog_compiler_wl='-Wl,'
8239      lt_prog_compiler_pic='-KPIC'
8240      lt_prog_compiler_static='-Bstatic'
8241      ;;
8242
8243    sysv4*MP*)
8244      if test -d /usr/nec ;then
8245	lt_prog_compiler_pic='-Kconform_pic'
8246	lt_prog_compiler_static='-Bstatic'
8247      fi
8248      ;;
8249
8250    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8251      lt_prog_compiler_wl='-Wl,'
8252      lt_prog_compiler_pic='-KPIC'
8253      lt_prog_compiler_static='-Bstatic'
8254      ;;
8255
8256    unicos*)
8257      lt_prog_compiler_wl='-Wl,'
8258      lt_prog_compiler_can_build_shared=no
8259      ;;
8260
8261    uts4*)
8262      lt_prog_compiler_pic='-pic'
8263      lt_prog_compiler_static='-Bstatic'
8264      ;;
8265
8266    *)
8267      lt_prog_compiler_can_build_shared=no
8268      ;;
8269    esac
8270  fi
8271
8272{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8273echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8274
8275#
8276# Check to make sure the PIC flag actually works.
8277#
8278if test -n "$lt_prog_compiler_pic"; then
8279
8280{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8281echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8282if test "${lt_prog_compiler_pic_works+set}" = set; then
8283  echo $ECHO_N "(cached) $ECHO_C" >&6
8284else
8285  lt_prog_compiler_pic_works=no
8286  ac_outfile=conftest.$ac_objext
8287   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8288   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8289   # Insert the option either (1) after the last *FLAGS variable, or
8290   # (2) before a word containing "conftest.", or (3) at the end.
8291   # Note that $ac_compile itself does not contain backslashes and begins
8292   # with a dollar sign (not a hyphen), so the echo should work correctly.
8293   # The option is referenced via a variable to avoid confusing sed.
8294   lt_compile=`echo "$ac_compile" | $SED \
8295   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8296   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8297   -e 's:$: $lt_compiler_flag:'`
8298   (eval echo "\"\$as_me:8298: $lt_compile\"" >&5)
8299   (eval "$lt_compile" 2>conftest.err)
8300   ac_status=$?
8301   cat conftest.err >&5
8302   echo "$as_me:8302: \$? = $ac_status" >&5
8303   if (exit $ac_status) && test -s "$ac_outfile"; then
8304     # The compiler can only warn and ignore the option if not recognized
8305     # So say no if there are warnings other than the usual output.
8306     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8307     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8308     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8309       lt_prog_compiler_pic_works=yes
8310     fi
8311   fi
8312   $rm conftest*
8313
8314fi
8315{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8316echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8317
8318if test x"$lt_prog_compiler_pic_works" = xyes; then
8319    case $lt_prog_compiler_pic in
8320     "" | " "*) ;;
8321     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8322     esac
8323else
8324    lt_prog_compiler_pic=
8325     lt_prog_compiler_can_build_shared=no
8326fi
8327
8328fi
8329case $host_os in
8330  # For platforms which do not support PIC, -DPIC is meaningless:
8331  *djgpp*)
8332    lt_prog_compiler_pic=
8333    ;;
8334  *)
8335    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8336    ;;
8337esac
8338
8339#
8340# Check to make sure the static flag actually works.
8341#
8342wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8343{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8344echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8345if test "${lt_prog_compiler_static_works+set}" = set; then
8346  echo $ECHO_N "(cached) $ECHO_C" >&6
8347else
8348  lt_prog_compiler_static_works=no
8349   save_LDFLAGS="$LDFLAGS"
8350   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8351   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8352   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8353     # The linker can only warn and ignore the option if not recognized
8354     # So say no if there are warnings
8355     if test -s conftest.err; then
8356       # Append any errors to the config.log.
8357       cat conftest.err 1>&5
8358       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8359       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8360       if diff conftest.exp conftest.er2 >/dev/null; then
8361         lt_prog_compiler_static_works=yes
8362       fi
8363     else
8364       lt_prog_compiler_static_works=yes
8365     fi
8366   fi
8367   $rm conftest*
8368   LDFLAGS="$save_LDFLAGS"
8369
8370fi
8371{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8372echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8373
8374if test x"$lt_prog_compiler_static_works" = xyes; then
8375    :
8376else
8377    lt_prog_compiler_static=
8378fi
8379
8380
8381{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8382echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8383if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8384  echo $ECHO_N "(cached) $ECHO_C" >&6
8385else
8386  lt_cv_prog_compiler_c_o=no
8387   $rm -r conftest 2>/dev/null
8388   mkdir conftest
8389   cd conftest
8390   mkdir out
8391   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8392
8393   lt_compiler_flag="-o out/conftest2.$ac_objext"
8394   # Insert the option either (1) after the last *FLAGS variable, or
8395   # (2) before a word containing "conftest.", or (3) at the end.
8396   # Note that $ac_compile itself does not contain backslashes and begins
8397   # with a dollar sign (not a hyphen), so the echo should work correctly.
8398   lt_compile=`echo "$ac_compile" | $SED \
8399   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8400   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8401   -e 's:$: $lt_compiler_flag:'`
8402   (eval echo "\"\$as_me:8402: $lt_compile\"" >&5)
8403   (eval "$lt_compile" 2>out/conftest.err)
8404   ac_status=$?
8405   cat out/conftest.err >&5
8406   echo "$as_me:8406: \$? = $ac_status" >&5
8407   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8408   then
8409     # The compiler can only warn and ignore the option if not recognized
8410     # So say no if there are warnings
8411     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8412     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8413     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8414       lt_cv_prog_compiler_c_o=yes
8415     fi
8416   fi
8417   chmod u+w . 2>&5
8418   $rm conftest*
8419   # SGI C++ compiler will create directory out/ii_files/ for
8420   # template instantiation
8421   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8422   $rm out/* && rmdir out
8423   cd ..
8424   rmdir conftest
8425   $rm conftest*
8426
8427fi
8428{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8429echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8430
8431
8432hard_links="nottested"
8433if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8434  # do not overwrite the value of need_locks provided by the user
8435  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8436echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8437  hard_links=yes
8438  $rm conftest*
8439  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8440  touch conftest.a
8441  ln conftest.a conftest.b 2>&5 || hard_links=no
8442  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8443  { echo "$as_me:$LINENO: result: $hard_links" >&5
8444echo "${ECHO_T}$hard_links" >&6; }
8445  if test "$hard_links" = no; then
8446    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8447echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8448    need_locks=warn
8449  fi
8450else
8451  need_locks=no
8452fi
8453
8454{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8455echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8456
8457  runpath_var=
8458  allow_undefined_flag=
8459  enable_shared_with_static_runtimes=no
8460  archive_cmds=
8461  archive_expsym_cmds=
8462  old_archive_From_new_cmds=
8463  old_archive_from_expsyms_cmds=
8464  export_dynamic_flag_spec=
8465  whole_archive_flag_spec=
8466  thread_safe_flag_spec=
8467  hardcode_libdir_flag_spec=
8468  hardcode_libdir_flag_spec_ld=
8469  hardcode_libdir_separator=
8470  hardcode_direct=no
8471  hardcode_minus_L=no
8472  hardcode_shlibpath_var=unsupported
8473  link_all_deplibs=unknown
8474  hardcode_automatic=no
8475  module_cmds=
8476  module_expsym_cmds=
8477  always_export_symbols=no
8478  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8479  # include_expsyms should be a list of space-separated symbols to be *always*
8480  # included in the symbol list
8481  include_expsyms=
8482  # exclude_expsyms can be an extended regexp of symbols to exclude
8483  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8484  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8485  # as well as any symbol that contains `d'.
8486  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8487  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8488  # platforms (ab)use it in PIC code, but their linkers get confused if
8489  # the symbol is explicitly referenced.  Since portable code cannot
8490  # rely on this symbol name, it's probably fine to never include it in
8491  # preloaded symbol tables.
8492  extract_expsyms_cmds=
8493  # Just being paranoid about ensuring that cc_basename is set.
8494  for cc_temp in $compiler""; do
8495  case $cc_temp in
8496    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8497    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8498    \-*) ;;
8499    *) break;;
8500  esac
8501done
8502cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8503
8504  case $host_os in
8505  cygwin* | mingw* | pw32*)
8506    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8507    # When not using gcc, we currently assume that we are using
8508    # Microsoft Visual C++.
8509    if test "$GCC" != yes; then
8510      with_gnu_ld=no
8511    fi
8512    ;;
8513  interix*)
8514    # we just hope/assume this is gcc and not c89 (= MSVC++)
8515    with_gnu_ld=yes
8516    ;;
8517  openbsd*)
8518    with_gnu_ld=no
8519    ;;
8520  esac
8521
8522  ld_shlibs=yes
8523  if test "$with_gnu_ld" = yes; then
8524    # If archive_cmds runs LD, not CC, wlarc should be empty
8525    wlarc='${wl}'
8526
8527    # Set some defaults for GNU ld with shared library support. These
8528    # are reset later if shared libraries are not supported. Putting them
8529    # here allows them to be overridden if necessary.
8530    runpath_var=LD_RUN_PATH
8531    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8532    export_dynamic_flag_spec='${wl}--export-dynamic'
8533    # ancient GNU ld didn't support --whole-archive et. al.
8534    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8535	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8536      else
8537  	whole_archive_flag_spec=
8538    fi
8539    supports_anon_versioning=no
8540    case `$LD -v 2>/dev/null` in
8541      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8542      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8543      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8544      *\ 2.11.*) ;; # other 2.11 versions
8545      *) supports_anon_versioning=yes ;;
8546    esac
8547
8548    # See if GNU ld supports shared libraries.
8549    case $host_os in
8550    aix3* | aix4* | aix5*)
8551      # On AIX/PPC, the GNU linker is very broken
8552      if test "$host_cpu" != ia64; then
8553	ld_shlibs=no
8554	cat <<EOF 1>&2
8555
8556*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8557*** to be unable to reliably create shared libraries on AIX.
8558*** Therefore, libtool is disabling shared libraries support.  If you
8559*** really care for shared libraries, you may want to modify your PATH
8560*** so that a non-GNU linker is found, and then restart.
8561
8562EOF
8563      fi
8564      ;;
8565
8566    amigaos*)
8567      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)'
8568      hardcode_libdir_flag_spec='-L$libdir'
8569      hardcode_minus_L=yes
8570
8571      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8572      # that the semantics of dynamic libraries on AmigaOS, at least up
8573      # to version 4, is to share data among multiple programs linked
8574      # with the same dynamic library.  Since this doesn't match the
8575      # behavior of shared libraries on other platforms, we can't use
8576      # them.
8577      ld_shlibs=no
8578      ;;
8579
8580    beos*)
8581      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8582	allow_undefined_flag=unsupported
8583	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8584	# support --undefined.  This deserves some investigation.  FIXME
8585	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8586      else
8587	ld_shlibs=no
8588      fi
8589      ;;
8590
8591    cygwin* | mingw* | pw32*)
8592      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8593      # as there is no search path for DLLs.
8594      hardcode_libdir_flag_spec='-L$libdir'
8595      allow_undefined_flag=unsupported
8596      always_export_symbols=no
8597      enable_shared_with_static_runtimes=yes
8598      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8599
8600      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8601        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8602	# If the export-symbols file already is a .def file (1st line
8603	# is EXPORTS), use it as is; otherwise, prepend...
8604	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8605	  cp $export_symbols $output_objdir/$soname.def;
8606	else
8607	  echo EXPORTS > $output_objdir/$soname.def;
8608	  cat $export_symbols >> $output_objdir/$soname.def;
8609	fi~
8610	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8611      else
8612	ld_shlibs=no
8613      fi
8614      ;;
8615
8616    interix3*)
8617      hardcode_direct=no
8618      hardcode_shlibpath_var=no
8619      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8620      export_dynamic_flag_spec='${wl}-E'
8621      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8622      # Instead, shared libraries are loaded at an image base (0x10000000 by
8623      # default) and relocated if they conflict, which is a slow very memory
8624      # consuming and fragmenting process.  To avoid this, we pick a random,
8625      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8626      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8627      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8628      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'
8629      ;;
8630
8631    linux* | k*bsd*-gnu)
8632      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8633	tmp_addflag=
8634	case $cc_basename,$host_cpu in
8635	pgcc*)				# Portland Group C compiler
8636	  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'
8637	  tmp_addflag=' $pic_flag'
8638	  ;;
8639	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8640	  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'
8641	  tmp_addflag=' $pic_flag -Mnomain' ;;
8642	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8643	  tmp_addflag=' -i_dynamic' ;;
8644	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8645	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8646	ifc* | ifort*)			# Intel Fortran compiler
8647	  tmp_addflag=' -nofor_main' ;;
8648	esac
8649	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650
8651	if test $supports_anon_versioning = yes; then
8652	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8653  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8654  $echo "local: *; };" >> $output_objdir/$libname.ver~
8655	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8656	fi
8657	link_all_deplibs=no
8658      else
8659	ld_shlibs=no
8660      fi
8661      ;;
8662
8663    netbsd* | netbsdelf*-gnu)
8664      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8665	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8666	wlarc=
8667      else
8668	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8670      fi
8671      ;;
8672
8673    solaris*)
8674      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8675	ld_shlibs=no
8676	cat <<EOF 1>&2
8677
8678*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8679*** create shared libraries on Solaris systems.  Therefore, libtool
8680*** is disabling shared libraries support.  We urge you to upgrade GNU
8681*** binutils to release 2.9.1 or newer.  Another option is to modify
8682*** your PATH or compiler configuration so that the native linker is
8683*** used, and then restart.
8684
8685EOF
8686      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8687	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8688	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8689      else
8690	ld_shlibs=no
8691      fi
8692      ;;
8693
8694    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8695      case `$LD -v 2>&1` in
8696        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8697	ld_shlibs=no
8698	cat <<_LT_EOF 1>&2
8699
8700*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8701*** reliably create shared libraries on SCO systems.  Therefore, libtool
8702*** is disabling shared libraries support.  We urge you to upgrade GNU
8703*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8704*** your PATH or compiler configuration so that the native linker is
8705*** used, and then restart.
8706
8707_LT_EOF
8708	;;
8709	*)
8710	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8711	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8712	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8713	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8714	  else
8715	    ld_shlibs=no
8716	  fi
8717	;;
8718      esac
8719      ;;
8720
8721    sunos4*)
8722      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8723      wlarc=
8724      hardcode_direct=yes
8725      hardcode_shlibpath_var=no
8726      ;;
8727
8728    *)
8729      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8730	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732      else
8733	ld_shlibs=no
8734      fi
8735      ;;
8736    esac
8737
8738    if test "$ld_shlibs" = no; then
8739      runpath_var=
8740      hardcode_libdir_flag_spec=
8741      export_dynamic_flag_spec=
8742      whole_archive_flag_spec=
8743    fi
8744  else
8745    # PORTME fill in a description of your system's linker (not GNU ld)
8746    case $host_os in
8747    aix3*)
8748      allow_undefined_flag=unsupported
8749      always_export_symbols=yes
8750      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'
8751      # Note: this linker hardcodes the directories in LIBPATH if there
8752      # are no directories specified by -L.
8753      hardcode_minus_L=yes
8754      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8755	# Neither direct hardcoding nor static linking is supported with a
8756	# broken collect2.
8757	hardcode_direct=unsupported
8758      fi
8759      ;;
8760
8761    aix4* | aix5*)
8762      if test "$host_cpu" = ia64; then
8763	# On IA64, the linker does run time linking by default, so we don't
8764	# have to do anything special.
8765	aix_use_runtimelinking=no
8766	exp_sym_flag='-Bexport'
8767	no_entry_flag=""
8768      else
8769	# If we're using GNU nm, then we don't want the "-C" option.
8770	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8771	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8772	  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'
8773	else
8774	  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'
8775	fi
8776	aix_use_runtimelinking=no
8777
8778	# Test if we are trying to use run time linking or normal
8779	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8780	# need to do runtime linking.
8781	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8782	  for ld_flag in $LDFLAGS; do
8783  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8784  	    aix_use_runtimelinking=yes
8785  	    break
8786  	  fi
8787	  done
8788	  ;;
8789	esac
8790
8791	exp_sym_flag='-bexport'
8792	no_entry_flag='-bnoentry'
8793      fi
8794
8795      # When large executables or shared objects are built, AIX ld can
8796      # have problems creating the table of contents.  If linking a library
8797      # or program results in "error TOC overflow" add -mminimal-toc to
8798      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8799      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8800
8801      archive_cmds=''
8802      hardcode_direct=yes
8803      hardcode_libdir_separator=':'
8804      link_all_deplibs=yes
8805
8806      if test "$GCC" = yes; then
8807	case $host_os in aix4.[012]|aix4.[012].*)
8808	# We only want to do this on AIX 4.2 and lower, the check
8809	# below for broken collect2 doesn't work under 4.3+
8810	  collect2name=`${CC} -print-prog-name=collect2`
8811	  if test -f "$collect2name" && \
8812  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8813	  then
8814  	  # We have reworked collect2
8815  	  hardcode_direct=yes
8816	  else
8817  	  # We have old collect2
8818  	  hardcode_direct=unsupported
8819  	  # It fails to find uninstalled libraries when the uninstalled
8820  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8821  	  # to unsupported forces relinking
8822  	  hardcode_minus_L=yes
8823  	  hardcode_libdir_flag_spec='-L$libdir'
8824  	  hardcode_libdir_separator=
8825	  fi
8826	  ;;
8827	esac
8828	shared_flag='-shared'
8829	if test "$aix_use_runtimelinking" = yes; then
8830	  shared_flag="$shared_flag "'${wl}-G'
8831	fi
8832      else
8833	# not using gcc
8834	if test "$host_cpu" = ia64; then
8835  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8836  	# chokes on -Wl,-G. The following line is correct:
8837	  shared_flag='-G'
8838	else
8839	  if test "$aix_use_runtimelinking" = yes; then
8840	    shared_flag='${wl}-G'
8841	  else
8842	    shared_flag='${wl}-bM:SRE'
8843	  fi
8844	fi
8845      fi
8846
8847      # It seems that -bexpall does not export symbols beginning with
8848      # underscore (_), so it is better to generate a list of symbols to export.
8849      always_export_symbols=yes
8850      if test "$aix_use_runtimelinking" = yes; then
8851	# Warning - without using the other runtime loading flags (-brtl),
8852	# -berok will link without error, but may produce a broken library.
8853	allow_undefined_flag='-berok'
8854       # Determine the default libpath from the value encoded in an empty executable.
8855       cat >conftest.$ac_ext <<_ACEOF
8856/* confdefs.h.  */
8857_ACEOF
8858cat confdefs.h >>conftest.$ac_ext
8859cat >>conftest.$ac_ext <<_ACEOF
8860/* end confdefs.h.  */
8861
8862int
8863main ()
8864{
8865
8866  ;
8867  return 0;
8868}
8869_ACEOF
8870rm -f conftest.$ac_objext conftest$ac_exeext
8871if { (ac_try="$ac_link"
8872case "(($ac_try" in
8873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874  *) ac_try_echo=$ac_try;;
8875esac
8876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877  (eval "$ac_link") 2>conftest.er1
8878  ac_status=$?
8879  grep -v '^ *+' conftest.er1 >conftest.err
8880  rm -f conftest.er1
8881  cat conftest.err >&5
8882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883  (exit $ac_status); } && {
8884	 test -z "$ac_c_werror_flag" ||
8885	 test ! -s conftest.err
8886       } && test -s conftest$ac_exeext &&
8887       $as_test_x conftest$ac_exeext; then
8888
8889aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8890}'`
8891# Check for a 64-bit object if we didn't find anything.
8892if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8893}'`; fi
8894else
8895  echo "$as_me: failed program was:" >&5
8896sed 's/^/| /' conftest.$ac_ext >&5
8897
8898
8899fi
8900
8901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8902      conftest$ac_exeext conftest.$ac_ext
8903if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8904
8905       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8906	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"
8907       else
8908	if test "$host_cpu" = ia64; then
8909	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8910	  allow_undefined_flag="-z nodefs"
8911	  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"
8912	else
8913	 # Determine the default libpath from the value encoded in an empty executable.
8914	 cat >conftest.$ac_ext <<_ACEOF
8915/* confdefs.h.  */
8916_ACEOF
8917cat confdefs.h >>conftest.$ac_ext
8918cat >>conftest.$ac_ext <<_ACEOF
8919/* end confdefs.h.  */
8920
8921int
8922main ()
8923{
8924
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929rm -f conftest.$ac_objext conftest$ac_exeext
8930if { (ac_try="$ac_link"
8931case "(($ac_try" in
8932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933  *) ac_try_echo=$ac_try;;
8934esac
8935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936  (eval "$ac_link") 2>conftest.er1
8937  ac_status=$?
8938  grep -v '^ *+' conftest.er1 >conftest.err
8939  rm -f conftest.er1
8940  cat conftest.err >&5
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); } && {
8943	 test -z "$ac_c_werror_flag" ||
8944	 test ! -s conftest.err
8945       } && test -s conftest$ac_exeext &&
8946       $as_test_x conftest$ac_exeext; then
8947
8948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8949}'`
8950# Check for a 64-bit object if we didn't find anything.
8951if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8952}'`; fi
8953else
8954  echo "$as_me: failed program was:" >&5
8955sed 's/^/| /' conftest.$ac_ext >&5
8956
8957
8958fi
8959
8960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8961      conftest$ac_exeext conftest.$ac_ext
8962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8963
8964	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8965	  # Warning - without using the other run time loading flags,
8966	  # -berok will link without error, but may produce a broken library.
8967	  no_undefined_flag=' ${wl}-bernotok'
8968	  allow_undefined_flag=' ${wl}-berok'
8969	  # Exported symbols can be pulled into shared objects from archives
8970	  whole_archive_flag_spec='$convenience'
8971	  archive_cmds_need_lc=yes
8972	  # This is similar to how AIX traditionally builds its shared libraries.
8973	  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'
8974	fi
8975      fi
8976      ;;
8977
8978    amigaos*)
8979      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)'
8980      hardcode_libdir_flag_spec='-L$libdir'
8981      hardcode_minus_L=yes
8982      # see comment about different semantics on the GNU ld section
8983      ld_shlibs=no
8984      ;;
8985
8986    bsdi[45]*)
8987      export_dynamic_flag_spec=-rdynamic
8988      ;;
8989
8990    cygwin* | mingw* | pw32*)
8991      # When not using gcc, we currently assume that we are using
8992      # Microsoft Visual C++.
8993      # hardcode_libdir_flag_spec is actually meaningless, as there is
8994      # no search path for DLLs.
8995      hardcode_libdir_flag_spec=' '
8996      allow_undefined_flag=unsupported
8997      # Tell ltmain to make .lib files, not .a files.
8998      libext=lib
8999      # Tell ltmain to make .dll files, not .so files.
9000      shrext_cmds=".dll"
9001      # FIXME: Setting linknames here is a bad hack.
9002      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9003      # The linker will automatically build a .lib file if we build a DLL.
9004      old_archive_From_new_cmds='true'
9005      # FIXME: Should let the user specify the lib program.
9006      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9007      fix_srcfile_path='`cygpath -w "$srcfile"`'
9008      enable_shared_with_static_runtimes=yes
9009      ;;
9010
9011    darwin* | rhapsody*)
9012      case $host_os in
9013        rhapsody* | darwin1.[012])
9014         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9015         ;;
9016       *) # Darwin 1.3 on
9017         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9018           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9019         else
9020           case ${MACOSX_DEPLOYMENT_TARGET} in
9021             10.[012])
9022               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9023               ;;
9024             10.*)
9025               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9026               ;;
9027           esac
9028         fi
9029         ;;
9030      esac
9031      archive_cmds_need_lc=no
9032      hardcode_direct=no
9033      hardcode_automatic=yes
9034      hardcode_shlibpath_var=unsupported
9035      whole_archive_flag_spec=''
9036      link_all_deplibs=yes
9037    if test "$GCC" = yes ; then
9038    	output_verbose_link_cmd='echo'
9039        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9040      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9041      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9042      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9043      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}'
9044    else
9045      case $cc_basename in
9046        xlc*)
9047         output_verbose_link_cmd='echo'
9048         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9049         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9050          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9051         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9052          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}'
9053          ;;
9054       *)
9055         ld_shlibs=no
9056          ;;
9057      esac
9058    fi
9059      ;;
9060
9061    dgux*)
9062      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9063      hardcode_libdir_flag_spec='-L$libdir'
9064      hardcode_shlibpath_var=no
9065      ;;
9066
9067    freebsd1*)
9068      ld_shlibs=no
9069      ;;
9070
9071    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9072    # support.  Future versions do this automatically, but an explicit c++rt0.o
9073    # does not break anything, and helps significantly (at the cost of a little
9074    # extra space).
9075    freebsd2.2*)
9076      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9077      hardcode_libdir_flag_spec='-R$libdir'
9078      hardcode_direct=yes
9079      hardcode_shlibpath_var=no
9080      ;;
9081
9082    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9083    freebsd2*)
9084      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9085      hardcode_direct=yes
9086      hardcode_minus_L=yes
9087      hardcode_shlibpath_var=no
9088      ;;
9089
9090    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9091    freebsd* | dragonfly*)
9092      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9093      hardcode_libdir_flag_spec='-R$libdir'
9094      hardcode_direct=yes
9095      hardcode_shlibpath_var=no
9096      ;;
9097
9098    hpux9*)
9099      if test "$GCC" = yes; then
9100	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'
9101      else
9102	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'
9103      fi
9104      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9105      hardcode_libdir_separator=:
9106      hardcode_direct=yes
9107
9108      # hardcode_minus_L: Not really in the search PATH,
9109      # but as the default location of the library.
9110      hardcode_minus_L=yes
9111      export_dynamic_flag_spec='${wl}-E'
9112      ;;
9113
9114    hpux10*)
9115      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9116	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9117      else
9118	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9119      fi
9120      if test "$with_gnu_ld" = no; then
9121	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9122	hardcode_libdir_separator=:
9123
9124	hardcode_direct=yes
9125	export_dynamic_flag_spec='${wl}-E'
9126
9127	# hardcode_minus_L: Not really in the search PATH,
9128	# but as the default location of the library.
9129	hardcode_minus_L=yes
9130      fi
9131      ;;
9132
9133    hpux11*)
9134      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9135	case $host_cpu in
9136	hppa*64*)
9137	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9138	  ;;
9139	ia64*)
9140	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9141	  ;;
9142	*)
9143	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9144	  ;;
9145	esac
9146      else
9147	case $host_cpu in
9148	hppa*64*)
9149	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9150	  ;;
9151	ia64*)
9152	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9153	  ;;
9154	*)
9155	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9156	  ;;
9157	esac
9158      fi
9159      if test "$with_gnu_ld" = no; then
9160	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9161	hardcode_libdir_separator=:
9162
9163	case $host_cpu in
9164	hppa*64*|ia64*)
9165	  hardcode_libdir_flag_spec_ld='+b $libdir'
9166	  hardcode_direct=no
9167	  hardcode_shlibpath_var=no
9168	  ;;
9169	*)
9170	  hardcode_direct=yes
9171	  export_dynamic_flag_spec='${wl}-E'
9172
9173	  # hardcode_minus_L: Not really in the search PATH,
9174	  # but as the default location of the library.
9175	  hardcode_minus_L=yes
9176	  ;;
9177	esac
9178      fi
9179      ;;
9180
9181    irix5* | irix6* | nonstopux*)
9182      if test "$GCC" = yes; then
9183	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'
9184      else
9185	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'
9186	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9187      fi
9188      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189      hardcode_libdir_separator=:
9190      link_all_deplibs=yes
9191      ;;
9192
9193    netbsd* | netbsdelf*-gnu)
9194      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9195	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9196      else
9197	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9198      fi
9199      hardcode_libdir_flag_spec='-R$libdir'
9200      hardcode_direct=yes
9201      hardcode_shlibpath_var=no
9202      ;;
9203
9204    newsos6)
9205      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9206      hardcode_direct=yes
9207      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9208      hardcode_libdir_separator=:
9209      hardcode_shlibpath_var=no
9210      ;;
9211
9212    openbsd*)
9213      hardcode_direct=yes
9214      hardcode_shlibpath_var=no
9215      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9216	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9217	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9218	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9219	export_dynamic_flag_spec='${wl}-E'
9220      else
9221       case $host_os in
9222	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9223	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9224	   hardcode_libdir_flag_spec='-R$libdir'
9225	   ;;
9226	 *)
9227	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9228	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9229	   ;;
9230       esac
9231      fi
9232      ;;
9233
9234    os2*)
9235      hardcode_libdir_flag_spec='-L$libdir'
9236      hardcode_minus_L=yes
9237      allow_undefined_flag=unsupported
9238      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'
9239      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9240      ;;
9241
9242    osf3*)
9243      if test "$GCC" = yes; then
9244	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9245	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'
9246      else
9247	allow_undefined_flag=' -expect_unresolved \*'
9248	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'
9249      fi
9250      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9251      hardcode_libdir_separator=:
9252      ;;
9253
9254    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9255      if test "$GCC" = yes; then
9256	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9257	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'
9258	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9259      else
9260	allow_undefined_flag=' -expect_unresolved \*'
9261	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'
9262	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9263	$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'
9264
9265	# Both c and cxx compiler support -rpath directly
9266	hardcode_libdir_flag_spec='-rpath $libdir'
9267      fi
9268      hardcode_libdir_separator=:
9269      ;;
9270
9271    solaris*)
9272      no_undefined_flag=' -z text'
9273      if test "$GCC" = yes; then
9274	wlarc='${wl}'
9275	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9276	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9277	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9278      else
9279	wlarc=''
9280	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9281	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9282  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9283      fi
9284      hardcode_libdir_flag_spec='-R$libdir'
9285      hardcode_shlibpath_var=no
9286      case $host_os in
9287      solaris2.[0-5] | solaris2.[0-5].*) ;;
9288      *)
9289 	# The compiler driver will combine linker options so we
9290 	# cannot just pass the convience library names through
9291 	# without $wl, iff we do not link with $LD.
9292 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9293 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9294 	case $wlarc in
9295 	'')
9296 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9297 	*)
9298 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9299 	esac ;;
9300      esac
9301      link_all_deplibs=yes
9302      ;;
9303
9304    sunos4*)
9305      if test "x$host_vendor" = xsequent; then
9306	# Use $CC to link under sequent, because it throws in some extra .o
9307	# files that make .init and .fini sections work.
9308	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309      else
9310	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9311      fi
9312      hardcode_libdir_flag_spec='-L$libdir'
9313      hardcode_direct=yes
9314      hardcode_minus_L=yes
9315      hardcode_shlibpath_var=no
9316      ;;
9317
9318    sysv4)
9319      case $host_vendor in
9320	sni)
9321	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322	  hardcode_direct=yes # is this really true???
9323	;;
9324	siemens)
9325	  ## LD is ld it makes a PLAMLIB
9326	  ## CC just makes a GrossModule.
9327	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9328	  reload_cmds='$CC -r -o $output$reload_objs'
9329	  hardcode_direct=no
9330        ;;
9331	motorola)
9332	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9334	;;
9335      esac
9336      runpath_var='LD_RUN_PATH'
9337      hardcode_shlibpath_var=no
9338      ;;
9339
9340    sysv4.3*)
9341      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342      hardcode_shlibpath_var=no
9343      export_dynamic_flag_spec='-Bexport'
9344      ;;
9345
9346    sysv4*MP*)
9347      if test -d /usr/nec; then
9348	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349	hardcode_shlibpath_var=no
9350	runpath_var=LD_RUN_PATH
9351	hardcode_runpath_var=yes
9352	ld_shlibs=yes
9353      fi
9354      ;;
9355
9356    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9357      no_undefined_flag='${wl}-z,text'
9358      archive_cmds_need_lc=no
9359      hardcode_shlibpath_var=no
9360      runpath_var='LD_RUN_PATH'
9361
9362      if test "$GCC" = yes; then
9363	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365      else
9366	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368      fi
9369      ;;
9370
9371    sysv5* | sco3.2v5* | sco5v6*)
9372      # Note: We can NOT use -z defs as we might desire, because we do not
9373      # link with -lc, and that would cause any symbols used from libc to
9374      # always be unresolved, which means just about no library would
9375      # ever link correctly.  If we're not using GNU ld we use -z text
9376      # though, which does catch some bad symbols but isn't as heavy-handed
9377      # as -z defs.
9378      no_undefined_flag='${wl}-z,text'
9379      allow_undefined_flag='${wl}-z,nodefs'
9380      archive_cmds_need_lc=no
9381      hardcode_shlibpath_var=no
9382      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9383      hardcode_libdir_separator=':'
9384      link_all_deplibs=yes
9385      export_dynamic_flag_spec='${wl}-Bexport'
9386      runpath_var='LD_RUN_PATH'
9387
9388      if test "$GCC" = yes; then
9389	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9390	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391      else
9392	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394      fi
9395      ;;
9396
9397    uts4*)
9398      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399      hardcode_libdir_flag_spec='-L$libdir'
9400      hardcode_shlibpath_var=no
9401      ;;
9402
9403    *)
9404      ld_shlibs=no
9405      ;;
9406    esac
9407  fi
9408
9409{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9410echo "${ECHO_T}$ld_shlibs" >&6; }
9411test "$ld_shlibs" = no && can_build_shared=no
9412
9413#
9414# Do we need to explicitly link libc?
9415#
9416case "x$archive_cmds_need_lc" in
9417x|xyes)
9418  # Assume -lc should be added
9419  archive_cmds_need_lc=yes
9420
9421  if test "$enable_shared" = yes && test "$GCC" = yes; then
9422    case $archive_cmds in
9423    *'~'*)
9424      # FIXME: we may have to deal with multi-command sequences.
9425      ;;
9426    '$CC '*)
9427      # Test whether the compiler implicitly links with -lc since on some
9428      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9429      # to ld, don't add -lc before -lgcc.
9430      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9431echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9432      $rm conftest*
9433      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9434
9435      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9436  (eval $ac_compile) 2>&5
9437  ac_status=$?
9438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439  (exit $ac_status); } 2>conftest.err; then
9440        soname=conftest
9441        lib=conftest
9442        libobjs=conftest.$ac_objext
9443        deplibs=
9444        wl=$lt_prog_compiler_wl
9445	pic_flag=$lt_prog_compiler_pic
9446        compiler_flags=-v
9447        linker_flags=-v
9448        verstring=
9449        output_objdir=.
9450        libname=conftest
9451        lt_save_allow_undefined_flag=$allow_undefined_flag
9452        allow_undefined_flag=
9453        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9454  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9455  ac_status=$?
9456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457  (exit $ac_status); }
9458        then
9459	  archive_cmds_need_lc=no
9460        else
9461	  archive_cmds_need_lc=yes
9462        fi
9463        allow_undefined_flag=$lt_save_allow_undefined_flag
9464      else
9465        cat conftest.err 1>&5
9466      fi
9467      $rm conftest*
9468      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9469echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9470      ;;
9471    esac
9472  fi
9473  ;;
9474esac
9475
9476{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9477echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9478library_names_spec=
9479libname_spec='lib$name'
9480soname_spec=
9481shrext_cmds=".so"
9482postinstall_cmds=
9483postuninstall_cmds=
9484finish_cmds=
9485finish_eval=
9486shlibpath_var=
9487shlibpath_overrides_runpath=unknown
9488version_type=none
9489dynamic_linker="$host_os ld.so"
9490sys_lib_dlsearch_path_spec="/lib /usr/lib"
9491if test "$GCC" = yes; then
9492  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9493  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9494    # if the path contains ";" then we assume it to be the separator
9495    # otherwise default to the standard path separator (i.e. ":") - it is
9496    # assumed that no part of a normal pathname contains ";" but that should
9497    # okay in the real world where ";" in dirpaths is itself problematic.
9498    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9499  else
9500    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9501  fi
9502else
9503  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9504fi
9505need_lib_prefix=unknown
9506hardcode_into_libs=no
9507
9508# when you set need_version to no, make sure it does not cause -set_version
9509# flags to be left without arguments
9510need_version=unknown
9511
9512case $host_os in
9513aix3*)
9514  version_type=linux
9515  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9516  shlibpath_var=LIBPATH
9517
9518  # AIX 3 has no versioning support, so we append a major version to the name.
9519  soname_spec='${libname}${release}${shared_ext}$major'
9520  ;;
9521
9522aix4* | aix5*)
9523  version_type=linux
9524  need_lib_prefix=no
9525  need_version=no
9526  hardcode_into_libs=yes
9527  if test "$host_cpu" = ia64; then
9528    # AIX 5 supports IA64
9529    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9530    shlibpath_var=LD_LIBRARY_PATH
9531  else
9532    # With GCC up to 2.95.x, collect2 would create an import file
9533    # for dependence libraries.  The import file would start with
9534    # the line `#! .'.  This would cause the generated library to
9535    # depend on `.', always an invalid library.  This was fixed in
9536    # development snapshots of GCC prior to 3.0.
9537    case $host_os in
9538      aix4 | aix4.[01] | aix4.[01].*)
9539      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9540	   echo ' yes '
9541	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9542	:
9543      else
9544	can_build_shared=no
9545      fi
9546      ;;
9547    esac
9548    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9549    # soname into executable. Probably we can add versioning support to
9550    # collect2, so additional links can be useful in future.
9551    if test "$aix_use_runtimelinking" = yes; then
9552      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9553      # instead of lib<name>.a to let people know that these are not
9554      # typical AIX shared libraries.
9555      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9556    else
9557      # We preserve .a as extension for shared libraries through AIX4.2
9558      # and later when we are not doing run time linking.
9559      library_names_spec='${libname}${release}.a $libname.a'
9560      soname_spec='${libname}${release}${shared_ext}$major'
9561    fi
9562    shlibpath_var=LIBPATH
9563  fi
9564  ;;
9565
9566amigaos*)
9567  library_names_spec='$libname.ixlibrary $libname.a'
9568  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9569  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'
9570  ;;
9571
9572beos*)
9573  library_names_spec='${libname}${shared_ext}'
9574  dynamic_linker="$host_os ld.so"
9575  shlibpath_var=LIBRARY_PATH
9576  ;;
9577
9578bsdi[45]*)
9579  version_type=linux
9580  need_version=no
9581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582  soname_spec='${libname}${release}${shared_ext}$major'
9583  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9584  shlibpath_var=LD_LIBRARY_PATH
9585  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9586  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9587  # the default ld.so.conf also contains /usr/contrib/lib and
9588  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9589  # libtool to hard-code these into programs
9590  ;;
9591
9592cygwin* | mingw* | pw32*)
9593  version_type=windows
9594  shrext_cmds=".dll"
9595  need_version=no
9596  need_lib_prefix=no
9597
9598  case $GCC,$host_os in
9599  yes,cygwin* | yes,mingw* | yes,pw32*)
9600    library_names_spec='$libname.dll.a'
9601    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9602    postinstall_cmds='base_file=`basename \${file}`~
9603      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9604      dldir=$destdir/`dirname \$dlpath`~
9605      test -d \$dldir || mkdir -p \$dldir~
9606      $install_prog $dir/$dlname \$dldir/$dlname~
9607      chmod a+x \$dldir/$dlname'
9608    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9609      dlpath=$dir/\$dldll~
9610       $rm \$dlpath'
9611    shlibpath_overrides_runpath=yes
9612
9613    case $host_os in
9614    cygwin*)
9615      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9616      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9617      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9618      ;;
9619    mingw*)
9620      # MinGW DLLs use traditional 'lib' prefix
9621      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9622      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9623      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9624        # It is most probably a Windows format PATH printed by
9625        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9626        # path with ; separators, and with drive letters. We can handle the
9627        # drive letters (cygwin fileutils understands them), so leave them,
9628        # especially as we might pass files found there to a mingw objdump,
9629        # which wouldn't understand a cygwinified path. Ahh.
9630        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9631      else
9632        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9633      fi
9634      ;;
9635    pw32*)
9636      # pw32 DLLs use 'pw' prefix rather than 'lib'
9637      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9638      ;;
9639    esac
9640    ;;
9641
9642  *)
9643    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9644    ;;
9645  esac
9646  dynamic_linker='Win32 ld.exe'
9647  # FIXME: first we should search . and the directory the executable is in
9648  shlibpath_var=PATH
9649  ;;
9650
9651darwin* | rhapsody*)
9652  dynamic_linker="$host_os dyld"
9653  version_type=darwin
9654  need_lib_prefix=no
9655  need_version=no
9656  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9657  soname_spec='${libname}${release}${major}$shared_ext'
9658  shlibpath_overrides_runpath=yes
9659  shlibpath_var=DYLD_LIBRARY_PATH
9660  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9661  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9662  if test "$GCC" = yes; then
9663    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9664  else
9665    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9666  fi
9667  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9668  ;;
9669
9670dgux*)
9671  version_type=linux
9672  need_lib_prefix=no
9673  need_version=no
9674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9675  soname_spec='${libname}${release}${shared_ext}$major'
9676  shlibpath_var=LD_LIBRARY_PATH
9677  ;;
9678
9679freebsd1*)
9680  dynamic_linker=no
9681  ;;
9682
9683freebsd* | dragonfly*)
9684  # DragonFly does not have aout.  When/if they implement a new
9685  # versioning mechanism, adjust this.
9686  if test -x /usr/bin/objformat; then
9687    objformat=`/usr/bin/objformat`
9688  else
9689    case $host_os in
9690    freebsd[123]*) objformat=aout ;;
9691    *) objformat=elf ;;
9692    esac
9693  fi
9694  version_type=freebsd-$objformat
9695  case $version_type in
9696    freebsd-elf*)
9697      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9698      need_version=no
9699      need_lib_prefix=no
9700      ;;
9701    freebsd-*)
9702      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9703      need_version=yes
9704      ;;
9705  esac
9706  shlibpath_var=LD_LIBRARY_PATH
9707  case $host_os in
9708  freebsd2*)
9709    shlibpath_overrides_runpath=yes
9710    ;;
9711  freebsd3.[01]* | freebsdelf3.[01]*)
9712    shlibpath_overrides_runpath=yes
9713    hardcode_into_libs=yes
9714    ;;
9715  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9716  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9717    shlibpath_overrides_runpath=no
9718    hardcode_into_libs=yes
9719    ;;
9720  freebsd*) # from 4.6 on
9721    shlibpath_overrides_runpath=yes
9722    hardcode_into_libs=yes
9723    ;;
9724  esac
9725  ;;
9726
9727gnu*)
9728  version_type=linux
9729  need_lib_prefix=no
9730  need_version=no
9731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9732  soname_spec='${libname}${release}${shared_ext}$major'
9733  shlibpath_var=LD_LIBRARY_PATH
9734  hardcode_into_libs=yes
9735  ;;
9736
9737hpux9* | hpux10* | hpux11*)
9738  # Give a soname corresponding to the major version so that dld.sl refuses to
9739  # link against other versions.
9740  version_type=sunos
9741  need_lib_prefix=no
9742  need_version=no
9743  case $host_cpu in
9744  ia64*)
9745    shrext_cmds='.so'
9746    hardcode_into_libs=yes
9747    dynamic_linker="$host_os dld.so"
9748    shlibpath_var=LD_LIBRARY_PATH
9749    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9750    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9751    soname_spec='${libname}${release}${shared_ext}$major'
9752    if test "X$HPUX_IA64_MODE" = X32; then
9753      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9754    else
9755      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9756    fi
9757    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9758    ;;
9759   hppa*64*)
9760     shrext_cmds='.sl'
9761     hardcode_into_libs=yes
9762     dynamic_linker="$host_os dld.sl"
9763     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9764     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9765     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766     soname_spec='${libname}${release}${shared_ext}$major'
9767     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9768     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9769     ;;
9770   *)
9771    shrext_cmds='.sl'
9772    dynamic_linker="$host_os dld.sl"
9773    shlibpath_var=SHLIB_PATH
9774    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776    soname_spec='${libname}${release}${shared_ext}$major'
9777    ;;
9778  esac
9779  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9780  postinstall_cmds='chmod 555 $lib'
9781  ;;
9782
9783interix3*)
9784  version_type=linux
9785  need_lib_prefix=no
9786  need_version=no
9787  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9788  soname_spec='${libname}${release}${shared_ext}$major'
9789  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9790  shlibpath_var=LD_LIBRARY_PATH
9791  shlibpath_overrides_runpath=no
9792  hardcode_into_libs=yes
9793  ;;
9794
9795irix5* | irix6* | nonstopux*)
9796  case $host_os in
9797    nonstopux*) version_type=nonstopux ;;
9798    *)
9799	if test "$lt_cv_prog_gnu_ld" = yes; then
9800		version_type=linux
9801	else
9802		version_type=irix
9803	fi ;;
9804  esac
9805  need_lib_prefix=no
9806  need_version=no
9807  soname_spec='${libname}${release}${shared_ext}$major'
9808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9809  case $host_os in
9810  irix5* | nonstopux*)
9811    libsuff= shlibsuff=
9812    ;;
9813  *)
9814    case $LD in # libtool.m4 will add one of these switches to LD
9815    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9816      libsuff= shlibsuff= libmagic=32-bit;;
9817    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9818      libsuff=32 shlibsuff=N32 libmagic=N32;;
9819    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9820      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9821    *) libsuff= shlibsuff= libmagic=never-match;;
9822    esac
9823    ;;
9824  esac
9825  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9826  shlibpath_overrides_runpath=no
9827  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9828  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9829  hardcode_into_libs=yes
9830  ;;
9831
9832# No shared lib support for Linux oldld, aout, or coff.
9833linux*oldld* | linux*aout* | linux*coff*)
9834  dynamic_linker=no
9835  ;;
9836
9837# This must be Linux ELF.
9838linux* | k*bsd*-gnu)
9839  version_type=linux
9840  need_lib_prefix=no
9841  need_version=no
9842  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9843  soname_spec='${libname}${release}${shared_ext}$major'
9844  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9845  shlibpath_var=LD_LIBRARY_PATH
9846  shlibpath_overrides_runpath=no
9847  # This implies no fast_install, which is unacceptable.
9848  # Some rework will be needed to allow for fast_install
9849  # before this can be enabled.
9850  hardcode_into_libs=yes
9851
9852  # Append ld.so.conf contents to the search path
9853  if test -f /etc/ld.so.conf; then
9854    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9855    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9856  fi
9857
9858  # We used to test for /lib/ld.so.1 and disable shared libraries on
9859  # powerpc, because MkLinux only supported shared libraries with the
9860  # GNU dynamic linker.  Since this was broken with cross compilers,
9861  # most powerpc-linux boxes support dynamic linking these days and
9862  # people can always --disable-shared, the test was removed, and we
9863  # assume the GNU/Linux dynamic linker is in use.
9864  dynamic_linker='GNU/Linux ld.so'
9865  ;;
9866
9867netbsdelf*-gnu)
9868  version_type=linux
9869  need_lib_prefix=no
9870  need_version=no
9871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9872  soname_spec='${libname}${release}${shared_ext}$major'
9873  shlibpath_var=LD_LIBRARY_PATH
9874  shlibpath_overrides_runpath=no
9875  hardcode_into_libs=yes
9876  dynamic_linker='NetBSD ld.elf_so'
9877  ;;
9878
9879netbsd*)
9880  version_type=sunos
9881  need_lib_prefix=no
9882  need_version=no
9883  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9884    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9885    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9886    dynamic_linker='NetBSD (a.out) ld.so'
9887  else
9888    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9889    soname_spec='${libname}${release}${shared_ext}$major'
9890    dynamic_linker='NetBSD ld.elf_so'
9891  fi
9892  shlibpath_var=LD_LIBRARY_PATH
9893  shlibpath_overrides_runpath=yes
9894  hardcode_into_libs=yes
9895  ;;
9896
9897newsos6)
9898  version_type=linux
9899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9900  shlibpath_var=LD_LIBRARY_PATH
9901  shlibpath_overrides_runpath=yes
9902  ;;
9903
9904nto-qnx*)
9905  version_type=linux
9906  need_lib_prefix=no
9907  need_version=no
9908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909  soname_spec='${libname}${release}${shared_ext}$major'
9910  shlibpath_var=LD_LIBRARY_PATH
9911  shlibpath_overrides_runpath=yes
9912  ;;
9913
9914openbsd*)
9915  version_type=sunos
9916  sys_lib_dlsearch_path_spec="/usr/lib"
9917  need_lib_prefix=no
9918  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9919  case $host_os in
9920    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9921    *)                         need_version=no  ;;
9922  esac
9923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9924  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9925  shlibpath_var=LD_LIBRARY_PATH
9926  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9927    case $host_os in
9928      openbsd2.[89] | openbsd2.[89].*)
9929	shlibpath_overrides_runpath=no
9930	;;
9931      *)
9932	shlibpath_overrides_runpath=yes
9933	;;
9934      esac
9935  else
9936    shlibpath_overrides_runpath=yes
9937  fi
9938  ;;
9939
9940os2*)
9941  libname_spec='$name'
9942  shrext_cmds=".dll"
9943  need_lib_prefix=no
9944  library_names_spec='$libname${shared_ext} $libname.a'
9945  dynamic_linker='OS/2 ld.exe'
9946  shlibpath_var=LIBPATH
9947  ;;
9948
9949osf3* | osf4* | osf5*)
9950  version_type=osf
9951  need_lib_prefix=no
9952  need_version=no
9953  soname_spec='${libname}${release}${shared_ext}$major'
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955  shlibpath_var=LD_LIBRARY_PATH
9956  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9957  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9958  ;;
9959
9960solaris*)
9961  version_type=linux
9962  need_lib_prefix=no
9963  need_version=no
9964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965  soname_spec='${libname}${release}${shared_ext}$major'
9966  shlibpath_var=LD_LIBRARY_PATH
9967  shlibpath_overrides_runpath=yes
9968  hardcode_into_libs=yes
9969  # ldd complains unless libraries are executable
9970  postinstall_cmds='chmod +x $lib'
9971  ;;
9972
9973sunos4*)
9974  version_type=sunos
9975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9976  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9977  shlibpath_var=LD_LIBRARY_PATH
9978  shlibpath_overrides_runpath=yes
9979  if test "$with_gnu_ld" = yes; then
9980    need_lib_prefix=no
9981  fi
9982  need_version=yes
9983  ;;
9984
9985sysv4 | sysv4.3*)
9986  version_type=linux
9987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988  soname_spec='${libname}${release}${shared_ext}$major'
9989  shlibpath_var=LD_LIBRARY_PATH
9990  case $host_vendor in
9991    sni)
9992      shlibpath_overrides_runpath=no
9993      need_lib_prefix=no
9994      export_dynamic_flag_spec='${wl}-Blargedynsym'
9995      runpath_var=LD_RUN_PATH
9996      ;;
9997    siemens)
9998      need_lib_prefix=no
9999      ;;
10000    motorola)
10001      need_lib_prefix=no
10002      need_version=no
10003      shlibpath_overrides_runpath=no
10004      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10005      ;;
10006  esac
10007  ;;
10008
10009sysv4*MP*)
10010  if test -d /usr/nec ;then
10011    version_type=linux
10012    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10013    soname_spec='$libname${shared_ext}.$major'
10014    shlibpath_var=LD_LIBRARY_PATH
10015  fi
10016  ;;
10017
10018sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10019  version_type=freebsd-elf
10020  need_lib_prefix=no
10021  need_version=no
10022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10023  soname_spec='${libname}${release}${shared_ext}$major'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  hardcode_into_libs=yes
10026  if test "$with_gnu_ld" = yes; then
10027    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10028    shlibpath_overrides_runpath=no
10029  else
10030    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10031    shlibpath_overrides_runpath=yes
10032    case $host_os in
10033      sco3.2v5*)
10034        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10035	;;
10036    esac
10037  fi
10038  sys_lib_dlsearch_path_spec='/usr/lib'
10039  ;;
10040
10041uts4*)
10042  version_type=linux
10043  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10044  soname_spec='${libname}${release}${shared_ext}$major'
10045  shlibpath_var=LD_LIBRARY_PATH
10046  ;;
10047
10048*)
10049  dynamic_linker=no
10050  ;;
10051esac
10052{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10053echo "${ECHO_T}$dynamic_linker" >&6; }
10054test "$dynamic_linker" = no && can_build_shared=no
10055
10056variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10057if test "$GCC" = yes; then
10058  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10059fi
10060
10061{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10062echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10063hardcode_action=
10064if test -n "$hardcode_libdir_flag_spec" || \
10065   test -n "$runpath_var" || \
10066   test "X$hardcode_automatic" = "Xyes" ; then
10067
10068  # We can hardcode non-existant directories.
10069  if test "$hardcode_direct" != no &&
10070     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10071     # have to relink, otherwise we might link with an installed library
10072     # when we should be linking with a yet-to-be-installed one
10073     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10074     test "$hardcode_minus_L" != no; then
10075    # Linking always hardcodes the temporary library directory.
10076    hardcode_action=relink
10077  else
10078    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10079    hardcode_action=immediate
10080  fi
10081else
10082  # We cannot hardcode anything, or else we can only hardcode existing
10083  # directories.
10084  hardcode_action=unsupported
10085fi
10086{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10087echo "${ECHO_T}$hardcode_action" >&6; }
10088
10089if test "$hardcode_action" = relink; then
10090  # Fast installation is not supported
10091  enable_fast_install=no
10092elif test "$shlibpath_overrides_runpath" = yes ||
10093     test "$enable_shared" = no; then
10094  # Fast installation is not necessary
10095  enable_fast_install=needless
10096fi
10097
10098striplib=
10099old_striplib=
10100{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10101echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10102if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10103  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10104  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10105  { echo "$as_me:$LINENO: result: yes" >&5
10106echo "${ECHO_T}yes" >&6; }
10107else
10108# FIXME - insert some real tests, host_os isn't really good enough
10109  case $host_os in
10110   darwin*)
10111       if test -n "$STRIP" ; then
10112         striplib="$STRIP -x"
10113         { echo "$as_me:$LINENO: result: yes" >&5
10114echo "${ECHO_T}yes" >&6; }
10115       else
10116  { echo "$as_me:$LINENO: result: no" >&5
10117echo "${ECHO_T}no" >&6; }
10118fi
10119       ;;
10120   *)
10121  { echo "$as_me:$LINENO: result: no" >&5
10122echo "${ECHO_T}no" >&6; }
10123    ;;
10124  esac
10125fi
10126
10127if test "x$enable_dlopen" != xyes; then
10128  enable_dlopen=unknown
10129  enable_dlopen_self=unknown
10130  enable_dlopen_self_static=unknown
10131else
10132  lt_cv_dlopen=no
10133  lt_cv_dlopen_libs=
10134
10135  case $host_os in
10136  beos*)
10137    lt_cv_dlopen="load_add_on"
10138    lt_cv_dlopen_libs=
10139    lt_cv_dlopen_self=yes
10140    ;;
10141
10142  mingw* | pw32*)
10143    lt_cv_dlopen="LoadLibrary"
10144    lt_cv_dlopen_libs=
10145   ;;
10146
10147  cygwin*)
10148    lt_cv_dlopen="dlopen"
10149    lt_cv_dlopen_libs=
10150   ;;
10151
10152  darwin*)
10153  # if libdl is installed we need to link against it
10154    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10155echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10156if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10157  echo $ECHO_N "(cached) $ECHO_C" >&6
10158else
10159  ac_check_lib_save_LIBS=$LIBS
10160LIBS="-ldl  $LIBS"
10161cat >conftest.$ac_ext <<_ACEOF
10162/* confdefs.h.  */
10163_ACEOF
10164cat confdefs.h >>conftest.$ac_ext
10165cat >>conftest.$ac_ext <<_ACEOF
10166/* end confdefs.h.  */
10167
10168/* Override any GCC internal prototype to avoid an error.
10169   Use char because int might match the return type of a GCC
10170   builtin and then its argument prototype would still apply.  */
10171#ifdef __cplusplus
10172extern "C"
10173#endif
10174char dlopen ();
10175int
10176main ()
10177{
10178return dlopen ();
10179  ;
10180  return 0;
10181}
10182_ACEOF
10183rm -f conftest.$ac_objext conftest$ac_exeext
10184if { (ac_try="$ac_link"
10185case "(($ac_try" in
10186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187  *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190  (eval "$ac_link") 2>conftest.er1
10191  ac_status=$?
10192  grep -v '^ *+' conftest.er1 >conftest.err
10193  rm -f conftest.er1
10194  cat conftest.err >&5
10195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196  (exit $ac_status); } && {
10197	 test -z "$ac_c_werror_flag" ||
10198	 test ! -s conftest.err
10199       } && test -s conftest$ac_exeext &&
10200       $as_test_x conftest$ac_exeext; then
10201  ac_cv_lib_dl_dlopen=yes
10202else
10203  echo "$as_me: failed program was:" >&5
10204sed 's/^/| /' conftest.$ac_ext >&5
10205
10206	ac_cv_lib_dl_dlopen=no
10207fi
10208
10209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10210      conftest$ac_exeext conftest.$ac_ext
10211LIBS=$ac_check_lib_save_LIBS
10212fi
10213{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10214echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10215if test $ac_cv_lib_dl_dlopen = yes; then
10216  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10217else
10218
10219    lt_cv_dlopen="dyld"
10220    lt_cv_dlopen_libs=
10221    lt_cv_dlopen_self=yes
10222
10223fi
10224
10225   ;;
10226
10227  *)
10228    { echo "$as_me:$LINENO: checking for shl_load" >&5
10229echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10230if test "${ac_cv_func_shl_load+set}" = set; then
10231  echo $ECHO_N "(cached) $ECHO_C" >&6
10232else
10233  cat >conftest.$ac_ext <<_ACEOF
10234/* confdefs.h.  */
10235_ACEOF
10236cat confdefs.h >>conftest.$ac_ext
10237cat >>conftest.$ac_ext <<_ACEOF
10238/* end confdefs.h.  */
10239/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10240   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10241#define shl_load innocuous_shl_load
10242
10243/* System header to define __stub macros and hopefully few prototypes,
10244    which can conflict with char shl_load (); below.
10245    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10246    <limits.h> exists even on freestanding compilers.  */
10247
10248#ifdef __STDC__
10249# include <limits.h>
10250#else
10251# include <assert.h>
10252#endif
10253
10254#undef shl_load
10255
10256/* Override any GCC internal prototype to avoid an error.
10257   Use char because int might match the return type of a GCC
10258   builtin and then its argument prototype would still apply.  */
10259#ifdef __cplusplus
10260extern "C"
10261#endif
10262char shl_load ();
10263/* The GNU C library defines this for functions which it implements
10264    to always fail with ENOSYS.  Some functions are actually named
10265    something starting with __ and the normal name is an alias.  */
10266#if defined __stub_shl_load || defined __stub___shl_load
10267choke me
10268#endif
10269
10270int
10271main ()
10272{
10273return shl_load ();
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278rm -f conftest.$ac_objext conftest$ac_exeext
10279if { (ac_try="$ac_link"
10280case "(($ac_try" in
10281  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282  *) ac_try_echo=$ac_try;;
10283esac
10284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285  (eval "$ac_link") 2>conftest.er1
10286  ac_status=$?
10287  grep -v '^ *+' conftest.er1 >conftest.err
10288  rm -f conftest.er1
10289  cat conftest.err >&5
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); } && {
10292	 test -z "$ac_c_werror_flag" ||
10293	 test ! -s conftest.err
10294       } && test -s conftest$ac_exeext &&
10295       $as_test_x conftest$ac_exeext; then
10296  ac_cv_func_shl_load=yes
10297else
10298  echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
10301	ac_cv_func_shl_load=no
10302fi
10303
10304rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10305      conftest$ac_exeext conftest.$ac_ext
10306fi
10307{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10308echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10309if test $ac_cv_func_shl_load = yes; then
10310  lt_cv_dlopen="shl_load"
10311else
10312  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10313echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10314if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10315  echo $ECHO_N "(cached) $ECHO_C" >&6
10316else
10317  ac_check_lib_save_LIBS=$LIBS
10318LIBS="-ldld  $LIBS"
10319cat >conftest.$ac_ext <<_ACEOF
10320/* confdefs.h.  */
10321_ACEOF
10322cat confdefs.h >>conftest.$ac_ext
10323cat >>conftest.$ac_ext <<_ACEOF
10324/* end confdefs.h.  */
10325
10326/* Override any GCC internal prototype to avoid an error.
10327   Use char because int might match the return type of a GCC
10328   builtin and then its argument prototype would still apply.  */
10329#ifdef __cplusplus
10330extern "C"
10331#endif
10332char shl_load ();
10333int
10334main ()
10335{
10336return shl_load ();
10337  ;
10338  return 0;
10339}
10340_ACEOF
10341rm -f conftest.$ac_objext conftest$ac_exeext
10342if { (ac_try="$ac_link"
10343case "(($ac_try" in
10344  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10345  *) ac_try_echo=$ac_try;;
10346esac
10347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10348  (eval "$ac_link") 2>conftest.er1
10349  ac_status=$?
10350  grep -v '^ *+' conftest.er1 >conftest.err
10351  rm -f conftest.er1
10352  cat conftest.err >&5
10353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354  (exit $ac_status); } && {
10355	 test -z "$ac_c_werror_flag" ||
10356	 test ! -s conftest.err
10357       } && test -s conftest$ac_exeext &&
10358       $as_test_x conftest$ac_exeext; then
10359  ac_cv_lib_dld_shl_load=yes
10360else
10361  echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
10364	ac_cv_lib_dld_shl_load=no
10365fi
10366
10367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10368      conftest$ac_exeext conftest.$ac_ext
10369LIBS=$ac_check_lib_save_LIBS
10370fi
10371{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10372echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10373if test $ac_cv_lib_dld_shl_load = yes; then
10374  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10375else
10376  { echo "$as_me:$LINENO: checking for dlopen" >&5
10377echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10378if test "${ac_cv_func_dlopen+set}" = set; then
10379  echo $ECHO_N "(cached) $ECHO_C" >&6
10380else
10381  cat >conftest.$ac_ext <<_ACEOF
10382/* confdefs.h.  */
10383_ACEOF
10384cat confdefs.h >>conftest.$ac_ext
10385cat >>conftest.$ac_ext <<_ACEOF
10386/* end confdefs.h.  */
10387/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10388   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10389#define dlopen innocuous_dlopen
10390
10391/* System header to define __stub macros and hopefully few prototypes,
10392    which can conflict with char dlopen (); below.
10393    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394    <limits.h> exists even on freestanding compilers.  */
10395
10396#ifdef __STDC__
10397# include <limits.h>
10398#else
10399# include <assert.h>
10400#endif
10401
10402#undef dlopen
10403
10404/* Override any GCC internal prototype to avoid an error.
10405   Use char because int might match the return type of a GCC
10406   builtin and then its argument prototype would still apply.  */
10407#ifdef __cplusplus
10408extern "C"
10409#endif
10410char dlopen ();
10411/* The GNU C library defines this for functions which it implements
10412    to always fail with ENOSYS.  Some functions are actually named
10413    something starting with __ and the normal name is an alias.  */
10414#if defined __stub_dlopen || defined __stub___dlopen
10415choke me
10416#endif
10417
10418int
10419main ()
10420{
10421return dlopen ();
10422  ;
10423  return 0;
10424}
10425_ACEOF
10426rm -f conftest.$ac_objext conftest$ac_exeext
10427if { (ac_try="$ac_link"
10428case "(($ac_try" in
10429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430  *) ac_try_echo=$ac_try;;
10431esac
10432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433  (eval "$ac_link") 2>conftest.er1
10434  ac_status=$?
10435  grep -v '^ *+' conftest.er1 >conftest.err
10436  rm -f conftest.er1
10437  cat conftest.err >&5
10438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439  (exit $ac_status); } && {
10440	 test -z "$ac_c_werror_flag" ||
10441	 test ! -s conftest.err
10442       } && test -s conftest$ac_exeext &&
10443       $as_test_x conftest$ac_exeext; then
10444  ac_cv_func_dlopen=yes
10445else
10446  echo "$as_me: failed program was:" >&5
10447sed 's/^/| /' conftest.$ac_ext >&5
10448
10449	ac_cv_func_dlopen=no
10450fi
10451
10452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10453      conftest$ac_exeext conftest.$ac_ext
10454fi
10455{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10456echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10457if test $ac_cv_func_dlopen = yes; then
10458  lt_cv_dlopen="dlopen"
10459else
10460  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10461echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10462if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10463  echo $ECHO_N "(cached) $ECHO_C" >&6
10464else
10465  ac_check_lib_save_LIBS=$LIBS
10466LIBS="-ldl  $LIBS"
10467cat >conftest.$ac_ext <<_ACEOF
10468/* confdefs.h.  */
10469_ACEOF
10470cat confdefs.h >>conftest.$ac_ext
10471cat >>conftest.$ac_ext <<_ACEOF
10472/* end confdefs.h.  */
10473
10474/* Override any GCC internal prototype to avoid an error.
10475   Use char because int might match the return type of a GCC
10476   builtin and then its argument prototype would still apply.  */
10477#ifdef __cplusplus
10478extern "C"
10479#endif
10480char dlopen ();
10481int
10482main ()
10483{
10484return dlopen ();
10485  ;
10486  return 0;
10487}
10488_ACEOF
10489rm -f conftest.$ac_objext conftest$ac_exeext
10490if { (ac_try="$ac_link"
10491case "(($ac_try" in
10492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493  *) ac_try_echo=$ac_try;;
10494esac
10495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496  (eval "$ac_link") 2>conftest.er1
10497  ac_status=$?
10498  grep -v '^ *+' conftest.er1 >conftest.err
10499  rm -f conftest.er1
10500  cat conftest.err >&5
10501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502  (exit $ac_status); } && {
10503	 test -z "$ac_c_werror_flag" ||
10504	 test ! -s conftest.err
10505       } && test -s conftest$ac_exeext &&
10506       $as_test_x conftest$ac_exeext; then
10507  ac_cv_lib_dl_dlopen=yes
10508else
10509  echo "$as_me: failed program was:" >&5
10510sed 's/^/| /' conftest.$ac_ext >&5
10511
10512	ac_cv_lib_dl_dlopen=no
10513fi
10514
10515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10516      conftest$ac_exeext conftest.$ac_ext
10517LIBS=$ac_check_lib_save_LIBS
10518fi
10519{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10520echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10521if test $ac_cv_lib_dl_dlopen = yes; then
10522  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10523else
10524  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10525echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10526if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10527  echo $ECHO_N "(cached) $ECHO_C" >&6
10528else
10529  ac_check_lib_save_LIBS=$LIBS
10530LIBS="-lsvld  $LIBS"
10531cat >conftest.$ac_ext <<_ACEOF
10532/* confdefs.h.  */
10533_ACEOF
10534cat confdefs.h >>conftest.$ac_ext
10535cat >>conftest.$ac_ext <<_ACEOF
10536/* end confdefs.h.  */
10537
10538/* Override any GCC internal prototype to avoid an error.
10539   Use char because int might match the return type of a GCC
10540   builtin and then its argument prototype would still apply.  */
10541#ifdef __cplusplus
10542extern "C"
10543#endif
10544char dlopen ();
10545int
10546main ()
10547{
10548return dlopen ();
10549  ;
10550  return 0;
10551}
10552_ACEOF
10553rm -f conftest.$ac_objext conftest$ac_exeext
10554if { (ac_try="$ac_link"
10555case "(($ac_try" in
10556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557  *) ac_try_echo=$ac_try;;
10558esac
10559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560  (eval "$ac_link") 2>conftest.er1
10561  ac_status=$?
10562  grep -v '^ *+' conftest.er1 >conftest.err
10563  rm -f conftest.er1
10564  cat conftest.err >&5
10565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566  (exit $ac_status); } && {
10567	 test -z "$ac_c_werror_flag" ||
10568	 test ! -s conftest.err
10569       } && test -s conftest$ac_exeext &&
10570       $as_test_x conftest$ac_exeext; then
10571  ac_cv_lib_svld_dlopen=yes
10572else
10573  echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576	ac_cv_lib_svld_dlopen=no
10577fi
10578
10579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580      conftest$ac_exeext conftest.$ac_ext
10581LIBS=$ac_check_lib_save_LIBS
10582fi
10583{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10584echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10585if test $ac_cv_lib_svld_dlopen = yes; then
10586  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10587else
10588  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10589echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10590if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10591  echo $ECHO_N "(cached) $ECHO_C" >&6
10592else
10593  ac_check_lib_save_LIBS=$LIBS
10594LIBS="-ldld  $LIBS"
10595cat >conftest.$ac_ext <<_ACEOF
10596/* confdefs.h.  */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h.  */
10601
10602/* Override any GCC internal prototype to avoid an error.
10603   Use char because int might match the return type of a GCC
10604   builtin and then its argument prototype would still apply.  */
10605#ifdef __cplusplus
10606extern "C"
10607#endif
10608char dld_link ();
10609int
10610main ()
10611{
10612return dld_link ();
10613  ;
10614  return 0;
10615}
10616_ACEOF
10617rm -f conftest.$ac_objext conftest$ac_exeext
10618if { (ac_try="$ac_link"
10619case "(($ac_try" in
10620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621  *) ac_try_echo=$ac_try;;
10622esac
10623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624  (eval "$ac_link") 2>conftest.er1
10625  ac_status=$?
10626  grep -v '^ *+' conftest.er1 >conftest.err
10627  rm -f conftest.er1
10628  cat conftest.err >&5
10629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630  (exit $ac_status); } && {
10631	 test -z "$ac_c_werror_flag" ||
10632	 test ! -s conftest.err
10633       } && test -s conftest$ac_exeext &&
10634       $as_test_x conftest$ac_exeext; then
10635  ac_cv_lib_dld_dld_link=yes
10636else
10637  echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640	ac_cv_lib_dld_dld_link=no
10641fi
10642
10643rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10644      conftest$ac_exeext conftest.$ac_ext
10645LIBS=$ac_check_lib_save_LIBS
10646fi
10647{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10648echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10649if test $ac_cv_lib_dld_dld_link = yes; then
10650  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10651fi
10652
10653
10654fi
10655
10656
10657fi
10658
10659
10660fi
10661
10662
10663fi
10664
10665
10666fi
10667
10668    ;;
10669  esac
10670
10671  if test "x$lt_cv_dlopen" != xno; then
10672    enable_dlopen=yes
10673  else
10674    enable_dlopen=no
10675  fi
10676
10677  case $lt_cv_dlopen in
10678  dlopen)
10679    save_CPPFLAGS="$CPPFLAGS"
10680    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10681
10682    save_LDFLAGS="$LDFLAGS"
10683    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10684
10685    save_LIBS="$LIBS"
10686    LIBS="$lt_cv_dlopen_libs $LIBS"
10687
10688    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10689echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10690if test "${lt_cv_dlopen_self+set}" = set; then
10691  echo $ECHO_N "(cached) $ECHO_C" >&6
10692else
10693  	  if test "$cross_compiling" = yes; then :
10694  lt_cv_dlopen_self=cross
10695else
10696  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10697  lt_status=$lt_dlunknown
10698  cat > conftest.$ac_ext <<EOF
10699#line 10699 "configure"
10700#include "confdefs.h"
10701
10702#if HAVE_DLFCN_H
10703#include <dlfcn.h>
10704#endif
10705
10706#include <stdio.h>
10707
10708#ifdef RTLD_GLOBAL
10709#  define LT_DLGLOBAL		RTLD_GLOBAL
10710#else
10711#  ifdef DL_GLOBAL
10712#    define LT_DLGLOBAL		DL_GLOBAL
10713#  else
10714#    define LT_DLGLOBAL		0
10715#  endif
10716#endif
10717
10718/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10719   find out it does not work in some platform. */
10720#ifndef LT_DLLAZY_OR_NOW
10721#  ifdef RTLD_LAZY
10722#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10723#  else
10724#    ifdef DL_LAZY
10725#      define LT_DLLAZY_OR_NOW		DL_LAZY
10726#    else
10727#      ifdef RTLD_NOW
10728#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10729#      else
10730#        ifdef DL_NOW
10731#          define LT_DLLAZY_OR_NOW	DL_NOW
10732#        else
10733#          define LT_DLLAZY_OR_NOW	0
10734#        endif
10735#      endif
10736#    endif
10737#  endif
10738#endif
10739
10740#ifdef __cplusplus
10741extern "C" void exit (int);
10742#endif
10743
10744void fnord() { int i=42;}
10745int main ()
10746{
10747  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10748  int status = $lt_dlunknown;
10749
10750  if (self)
10751    {
10752      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10753      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10754      /* dlclose (self); */
10755    }
10756  else
10757    puts (dlerror ());
10758
10759    exit (status);
10760}
10761EOF
10762  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10763  (eval $ac_link) 2>&5
10764  ac_status=$?
10765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10767    (./conftest; exit; ) >&5 2>/dev/null
10768    lt_status=$?
10769    case x$lt_status in
10770      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10771      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10772      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10773    esac
10774  else :
10775    # compilation failed
10776    lt_cv_dlopen_self=no
10777  fi
10778fi
10779rm -fr conftest*
10780
10781
10782fi
10783{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10784echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10785
10786    if test "x$lt_cv_dlopen_self" = xyes; then
10787      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10788      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10789echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10790if test "${lt_cv_dlopen_self_static+set}" = set; then
10791  echo $ECHO_N "(cached) $ECHO_C" >&6
10792else
10793  	  if test "$cross_compiling" = yes; then :
10794  lt_cv_dlopen_self_static=cross
10795else
10796  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10797  lt_status=$lt_dlunknown
10798  cat > conftest.$ac_ext <<EOF
10799#line 10799 "configure"
10800#include "confdefs.h"
10801
10802#if HAVE_DLFCN_H
10803#include <dlfcn.h>
10804#endif
10805
10806#include <stdio.h>
10807
10808#ifdef RTLD_GLOBAL
10809#  define LT_DLGLOBAL		RTLD_GLOBAL
10810#else
10811#  ifdef DL_GLOBAL
10812#    define LT_DLGLOBAL		DL_GLOBAL
10813#  else
10814#    define LT_DLGLOBAL		0
10815#  endif
10816#endif
10817
10818/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10819   find out it does not work in some platform. */
10820#ifndef LT_DLLAZY_OR_NOW
10821#  ifdef RTLD_LAZY
10822#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10823#  else
10824#    ifdef DL_LAZY
10825#      define LT_DLLAZY_OR_NOW		DL_LAZY
10826#    else
10827#      ifdef RTLD_NOW
10828#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10829#      else
10830#        ifdef DL_NOW
10831#          define LT_DLLAZY_OR_NOW	DL_NOW
10832#        else
10833#          define LT_DLLAZY_OR_NOW	0
10834#        endif
10835#      endif
10836#    endif
10837#  endif
10838#endif
10839
10840#ifdef __cplusplus
10841extern "C" void exit (int);
10842#endif
10843
10844void fnord() { int i=42;}
10845int main ()
10846{
10847  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10848  int status = $lt_dlunknown;
10849
10850  if (self)
10851    {
10852      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10853      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10854      /* dlclose (self); */
10855    }
10856  else
10857    puts (dlerror ());
10858
10859    exit (status);
10860}
10861EOF
10862  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10863  (eval $ac_link) 2>&5
10864  ac_status=$?
10865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10867    (./conftest; exit; ) >&5 2>/dev/null
10868    lt_status=$?
10869    case x$lt_status in
10870      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10871      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10872      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10873    esac
10874  else :
10875    # compilation failed
10876    lt_cv_dlopen_self_static=no
10877  fi
10878fi
10879rm -fr conftest*
10880
10881
10882fi
10883{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10884echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10885    fi
10886
10887    CPPFLAGS="$save_CPPFLAGS"
10888    LDFLAGS="$save_LDFLAGS"
10889    LIBS="$save_LIBS"
10890    ;;
10891  esac
10892
10893  case $lt_cv_dlopen_self in
10894  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10895  *) enable_dlopen_self=unknown ;;
10896  esac
10897
10898  case $lt_cv_dlopen_self_static in
10899  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10900  *) enable_dlopen_self_static=unknown ;;
10901  esac
10902fi
10903
10904
10905# Report which library types will actually be built
10906{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10907echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10908{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10909echo "${ECHO_T}$can_build_shared" >&6; }
10910
10911{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10912echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10913test "$can_build_shared" = "no" && enable_shared=no
10914
10915# On AIX, shared libraries and static libraries use the same namespace, and
10916# are all built from PIC.
10917case $host_os in
10918aix3*)
10919  test "$enable_shared" = yes && enable_static=no
10920  if test -n "$RANLIB"; then
10921    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10922    postinstall_cmds='$RANLIB $lib'
10923  fi
10924  ;;
10925
10926aix4* | aix5*)
10927  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10928    test "$enable_shared" = yes && enable_static=no
10929  fi
10930    ;;
10931esac
10932{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10933echo "${ECHO_T}$enable_shared" >&6; }
10934
10935{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10936echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10937# Make sure either enable_shared or enable_static is yes.
10938test "$enable_shared" = yes || enable_static=yes
10939{ echo "$as_me:$LINENO: result: $enable_static" >&5
10940echo "${ECHO_T}$enable_static" >&6; }
10941
10942# The else clause should only fire when bootstrapping the
10943# libtool distribution, otherwise you forgot to ship ltmain.sh
10944# with your package, and you will get complaints that there are
10945# no rules to generate ltmain.sh.
10946if test -f "$ltmain"; then
10947  # See if we are running on zsh, and set the options which allow our commands through
10948  # without removal of \ escapes.
10949  if test -n "${ZSH_VERSION+set}" ; then
10950    setopt NO_GLOB_SUBST
10951  fi
10952  # Now quote all the things that may contain metacharacters while being
10953  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10954  # variables and quote the copies for generation of the libtool script.
10955  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10956    SED SHELL STRIP \
10957    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10958    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10959    deplibs_check_method reload_flag reload_cmds need_locks \
10960    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10961    lt_cv_sys_global_symbol_to_c_name_address \
10962    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10963    old_postinstall_cmds old_postuninstall_cmds \
10964    compiler \
10965    CC \
10966    LD \
10967    lt_prog_compiler_wl \
10968    lt_prog_compiler_pic \
10969    lt_prog_compiler_static \
10970    lt_prog_compiler_no_builtin_flag \
10971    export_dynamic_flag_spec \
10972    thread_safe_flag_spec \
10973    whole_archive_flag_spec \
10974    enable_shared_with_static_runtimes \
10975    old_archive_cmds \
10976    old_archive_from_new_cmds \
10977    predep_objects \
10978    postdep_objects \
10979    predeps \
10980    postdeps \
10981    compiler_lib_search_path \
10982    archive_cmds \
10983    archive_expsym_cmds \
10984    postinstall_cmds \
10985    postuninstall_cmds \
10986    old_archive_from_expsyms_cmds \
10987    allow_undefined_flag \
10988    no_undefined_flag \
10989    export_symbols_cmds \
10990    hardcode_libdir_flag_spec \
10991    hardcode_libdir_flag_spec_ld \
10992    hardcode_libdir_separator \
10993    hardcode_automatic \
10994    module_cmds \
10995    module_expsym_cmds \
10996    lt_cv_prog_compiler_c_o \
10997    exclude_expsyms \
10998    include_expsyms; do
10999
11000    case $var in
11001    old_archive_cmds | \
11002    old_archive_from_new_cmds | \
11003    archive_cmds | \
11004    archive_expsym_cmds | \
11005    module_cmds | \
11006    module_expsym_cmds | \
11007    old_archive_from_expsyms_cmds | \
11008    export_symbols_cmds | \
11009    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11010    postinstall_cmds | postuninstall_cmds | \
11011    old_postinstall_cmds | old_postuninstall_cmds | \
11012    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11013      # Double-quote double-evaled strings.
11014      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11015      ;;
11016    *)
11017      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11018      ;;
11019    esac
11020  done
11021
11022  case $lt_echo in
11023  *'\$0 --fallback-echo"')
11024    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11025    ;;
11026  esac
11027
11028cfgfile="${ofile}T"
11029  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11030  $rm -f "$cfgfile"
11031  { echo "$as_me:$LINENO: creating $ofile" >&5
11032echo "$as_me: creating $ofile" >&6;}
11033
11034  cat <<__EOF__ >> "$cfgfile"
11035#! $SHELL
11036
11037# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11038# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11039# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11040#
11041# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11042# Free Software Foundation, Inc.
11043#
11044# This file is part of GNU Libtool:
11045# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11046#
11047# This program is free software; you can redistribute it and/or modify
11048# it under the terms of the GNU General Public License as published by
11049# the Free Software Foundation; either version 2 of the License, or
11050# (at your option) any later version.
11051#
11052# This program is distributed in the hope that it will be useful, but
11053# WITHOUT ANY WARRANTY; without even the implied warranty of
11054# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11055# General Public License for more details.
11056#
11057# You should have received a copy of the GNU General Public License
11058# along with this program; if not, write to the Free Software
11059# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11060#
11061# As a special exception to the GNU General Public License, if you
11062# distribute this file as part of a program that contains a
11063# configuration script generated by Autoconf, you may include it under
11064# the same distribution terms that you use for the rest of that program.
11065
11066# A sed program that does not truncate output.
11067SED=$lt_SED
11068
11069# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11070Xsed="$SED -e 1s/^X//"
11071
11072# The HP-UX ksh and POSIX shell print the target directory to stdout
11073# if CDPATH is set.
11074(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11075
11076# The names of the tagged configurations supported by this script.
11077available_tags=
11078
11079# ### BEGIN LIBTOOL CONFIG
11080
11081# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11082
11083# Shell to use when invoking shell scripts.
11084SHELL=$lt_SHELL
11085
11086# Whether or not to build shared libraries.
11087build_libtool_libs=$enable_shared
11088
11089# Whether or not to build static libraries.
11090build_old_libs=$enable_static
11091
11092# Whether or not to add -lc for building shared libraries.
11093build_libtool_need_lc=$archive_cmds_need_lc
11094
11095# Whether or not to disallow shared libs when runtime libs are static
11096allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11097
11098# Whether or not to optimize for fast installation.
11099fast_install=$enable_fast_install
11100
11101# The host system.
11102host_alias=$host_alias
11103host=$host
11104host_os=$host_os
11105
11106# The build system.
11107build_alias=$build_alias
11108build=$build
11109build_os=$build_os
11110
11111# An echo program that does not interpret backslashes.
11112echo=$lt_echo
11113
11114# The archiver.
11115AR=$lt_AR
11116AR_FLAGS=$lt_AR_FLAGS
11117
11118# A C compiler.
11119LTCC=$lt_LTCC
11120
11121# LTCC compiler flags.
11122LTCFLAGS=$lt_LTCFLAGS
11123
11124# A language-specific compiler.
11125CC=$lt_compiler
11126
11127# Is the compiler the GNU C compiler?
11128with_gcc=$GCC
11129
11130# An ERE matcher.
11131EGREP=$lt_EGREP
11132
11133# The linker used to build libraries.
11134LD=$lt_LD
11135
11136# Whether we need hard or soft links.
11137LN_S=$lt_LN_S
11138
11139# A BSD-compatible nm program.
11140NM=$lt_NM
11141
11142# A symbol stripping program
11143STRIP=$lt_STRIP
11144
11145# Used to examine libraries when file_magic_cmd begins "file"
11146MAGIC_CMD=$MAGIC_CMD
11147
11148# Used on cygwin: DLL creation program.
11149DLLTOOL="$DLLTOOL"
11150
11151# Used on cygwin: object dumper.
11152OBJDUMP="$OBJDUMP"
11153
11154# Used on cygwin: assembler.
11155AS="$AS"
11156
11157# The name of the directory that contains temporary libtool files.
11158objdir=$objdir
11159
11160# How to create reloadable object files.
11161reload_flag=$lt_reload_flag
11162reload_cmds=$lt_reload_cmds
11163
11164# How to pass a linker flag through the compiler.
11165wl=$lt_lt_prog_compiler_wl
11166
11167# Object file suffix (normally "o").
11168objext="$ac_objext"
11169
11170# Old archive suffix (normally "a").
11171libext="$libext"
11172
11173# Shared library suffix (normally ".so").
11174shrext_cmds='$shrext_cmds'
11175
11176# Executable file suffix (normally "").
11177exeext="$exeext"
11178
11179# Additional compiler flags for building library objects.
11180pic_flag=$lt_lt_prog_compiler_pic
11181pic_mode=$pic_mode
11182
11183# What is the maximum length of a command?
11184max_cmd_len=$lt_cv_sys_max_cmd_len
11185
11186# Does compiler simultaneously support -c and -o options?
11187compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11188
11189# Must we lock files when doing compilation?
11190need_locks=$lt_need_locks
11191
11192# Do we need the lib prefix for modules?
11193need_lib_prefix=$need_lib_prefix
11194
11195# Do we need a version for libraries?
11196need_version=$need_version
11197
11198# Whether dlopen is supported.
11199dlopen_support=$enable_dlopen
11200
11201# Whether dlopen of programs is supported.
11202dlopen_self=$enable_dlopen_self
11203
11204# Whether dlopen of statically linked programs is supported.
11205dlopen_self_static=$enable_dlopen_self_static
11206
11207# Compiler flag to prevent dynamic linking.
11208link_static_flag=$lt_lt_prog_compiler_static
11209
11210# Compiler flag to turn off builtin functions.
11211no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11212
11213# Compiler flag to allow reflexive dlopens.
11214export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11215
11216# Compiler flag to generate shared objects directly from archives.
11217whole_archive_flag_spec=$lt_whole_archive_flag_spec
11218
11219# Compiler flag to generate thread-safe objects.
11220thread_safe_flag_spec=$lt_thread_safe_flag_spec
11221
11222# Library versioning type.
11223version_type=$version_type
11224
11225# Format of library name prefix.
11226libname_spec=$lt_libname_spec
11227
11228# List of archive names.  First name is the real one, the rest are links.
11229# The last name is the one that the linker finds with -lNAME.
11230library_names_spec=$lt_library_names_spec
11231
11232# The coded name of the library, if different from the real name.
11233soname_spec=$lt_soname_spec
11234
11235# Commands used to build and install an old-style archive.
11236RANLIB=$lt_RANLIB
11237old_archive_cmds=$lt_old_archive_cmds
11238old_postinstall_cmds=$lt_old_postinstall_cmds
11239old_postuninstall_cmds=$lt_old_postuninstall_cmds
11240
11241# Create an old-style archive from a shared archive.
11242old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11243
11244# Create a temporary old-style archive to link instead of a shared archive.
11245old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11246
11247# Commands used to build and install a shared archive.
11248archive_cmds=$lt_archive_cmds
11249archive_expsym_cmds=$lt_archive_expsym_cmds
11250postinstall_cmds=$lt_postinstall_cmds
11251postuninstall_cmds=$lt_postuninstall_cmds
11252
11253# Commands used to build a loadable module (assumed same as above if empty)
11254module_cmds=$lt_module_cmds
11255module_expsym_cmds=$lt_module_expsym_cmds
11256
11257# Commands to strip libraries.
11258old_striplib=$lt_old_striplib
11259striplib=$lt_striplib
11260
11261# Dependencies to place before the objects being linked to create a
11262# shared library.
11263predep_objects=$lt_predep_objects
11264
11265# Dependencies to place after the objects being linked to create a
11266# shared library.
11267postdep_objects=$lt_postdep_objects
11268
11269# Dependencies to place before the objects being linked to create a
11270# shared library.
11271predeps=$lt_predeps
11272
11273# Dependencies to place after the objects being linked to create a
11274# shared library.
11275postdeps=$lt_postdeps
11276
11277# The library search path used internally by the compiler when linking
11278# a shared library.
11279compiler_lib_search_path=$lt_compiler_lib_search_path
11280
11281# Method to check whether dependent libraries are shared objects.
11282deplibs_check_method=$lt_deplibs_check_method
11283
11284# Command to use when deplibs_check_method == file_magic.
11285file_magic_cmd=$lt_file_magic_cmd
11286
11287# Flag that allows shared libraries with undefined symbols to be built.
11288allow_undefined_flag=$lt_allow_undefined_flag
11289
11290# Flag that forces no undefined symbols.
11291no_undefined_flag=$lt_no_undefined_flag
11292
11293# Commands used to finish a libtool library installation in a directory.
11294finish_cmds=$lt_finish_cmds
11295
11296# Same as above, but a single script fragment to be evaled but not shown.
11297finish_eval=$lt_finish_eval
11298
11299# Take the output of nm and produce a listing of raw symbols and C names.
11300global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11301
11302# Transform the output of nm in a proper C declaration
11303global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11304
11305# Transform the output of nm in a C name address pair
11306global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11307
11308# This is the shared library runtime path variable.
11309runpath_var=$runpath_var
11310
11311# This is the shared library path variable.
11312shlibpath_var=$shlibpath_var
11313
11314# Is shlibpath searched before the hard-coded library search path?
11315shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11316
11317# How to hardcode a shared library path into an executable.
11318hardcode_action=$hardcode_action
11319
11320# Whether we should hardcode library paths into libraries.
11321hardcode_into_libs=$hardcode_into_libs
11322
11323# Flag to hardcode \$libdir into a binary during linking.
11324# This must work even if \$libdir does not exist.
11325hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11326
11327# If ld is used when linking, flag to hardcode \$libdir into
11328# a binary during linking. This must work even if \$libdir does
11329# not exist.
11330hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11331
11332# Whether we need a single -rpath flag with a separated argument.
11333hardcode_libdir_separator=$lt_hardcode_libdir_separator
11334
11335# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11336# resulting binary.
11337hardcode_direct=$hardcode_direct
11338
11339# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11340# resulting binary.
11341hardcode_minus_L=$hardcode_minus_L
11342
11343# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11344# the resulting binary.
11345hardcode_shlibpath_var=$hardcode_shlibpath_var
11346
11347# Set to yes if building a shared library automatically hardcodes DIR into the library
11348# and all subsequent libraries and executables linked against it.
11349hardcode_automatic=$hardcode_automatic
11350
11351# Variables whose values should be saved in libtool wrapper scripts and
11352# restored at relink time.
11353variables_saved_for_relink="$variables_saved_for_relink"
11354
11355# Whether libtool must link a program against all its dependency libraries.
11356link_all_deplibs=$link_all_deplibs
11357
11358# Compile-time system search path for libraries
11359sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11360
11361# Run-time system search path for libraries
11362sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11363
11364# Fix the shell variable \$srcfile for the compiler.
11365fix_srcfile_path="$fix_srcfile_path"
11366
11367# Set to yes if exported symbols are required.
11368always_export_symbols=$always_export_symbols
11369
11370# The commands to list exported symbols.
11371export_symbols_cmds=$lt_export_symbols_cmds
11372
11373# The commands to extract the exported symbol list from a shared archive.
11374extract_expsyms_cmds=$lt_extract_expsyms_cmds
11375
11376# Symbols that should not be listed in the preloaded symbols.
11377exclude_expsyms=$lt_exclude_expsyms
11378
11379# Symbols that must always be exported.
11380include_expsyms=$lt_include_expsyms
11381
11382# ### END LIBTOOL CONFIG
11383
11384__EOF__
11385
11386
11387  case $host_os in
11388  aix3*)
11389    cat <<\EOF >> "$cfgfile"
11390
11391# AIX sometimes has problems with the GCC collect2 program.  For some
11392# reason, if we set the COLLECT_NAMES environment variable, the problems
11393# vanish in a puff of smoke.
11394if test "X${COLLECT_NAMES+set}" != Xset; then
11395  COLLECT_NAMES=
11396  export COLLECT_NAMES
11397fi
11398EOF
11399    ;;
11400  esac
11401
11402  # We use sed instead of cat because bash on DJGPP gets confused if
11403  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11404  # text mode, it properly converts lines to CR/LF.  This bash problem
11405  # is reportedly fixed, but why not run on old versions too?
11406  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11407
11408  mv -f "$cfgfile" "$ofile" || \
11409    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11410  chmod +x "$ofile"
11411
11412else
11413  # If there is no Makefile yet, we rely on a make rule to execute
11414  # `config.status --recheck' to rerun these tests and create the
11415  # libtool script then.
11416  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11417  if test -f "$ltmain_in"; then
11418    test -f Makefile && make "$ltmain"
11419  fi
11420fi
11421
11422
11423ac_ext=c
11424ac_cpp='$CPP $CPPFLAGS'
11425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428
11429CC="$lt_save_CC"
11430
11431
11432# Check whether --with-tags was given.
11433if test "${with_tags+set}" = set; then
11434  withval=$with_tags; tagnames="$withval"
11435fi
11436
11437
11438if test -f "$ltmain" && test -n "$tagnames"; then
11439  if test ! -f "${ofile}"; then
11440    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11441echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11442  fi
11443
11444  if test -z "$LTCC"; then
11445    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11446    if test -z "$LTCC"; then
11447      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11448echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11449    else
11450      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11451echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11452    fi
11453  fi
11454  if test -z "$LTCFLAGS"; then
11455    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11456  fi
11457
11458  # Extract list of available tagged configurations in $ofile.
11459  # Note that this assumes the entire list is on one line.
11460  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11461
11462  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11463  for tagname in $tagnames; do
11464    IFS="$lt_save_ifs"
11465    # Check whether tagname contains only valid characters
11466    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11467    "") ;;
11468    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11469echo "$as_me: error: invalid tag name: $tagname" >&2;}
11470   { (exit 1); exit 1; }; }
11471	;;
11472    esac
11473
11474    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11475    then
11476      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11477echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11478   { (exit 1); exit 1; }; }
11479    fi
11480
11481    # Update the list of available tags.
11482    if test -n "$tagname"; then
11483      echo appending configuration tag \"$tagname\" to $ofile
11484
11485      case $tagname in
11486      CXX)
11487	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11488	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11489	    (test "X$CXX" != "Xg++"))) ; then
11490	  ac_ext=cpp
11491ac_cpp='$CXXCPP $CPPFLAGS'
11492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11495
11496
11497
11498
11499archive_cmds_need_lc_CXX=no
11500allow_undefined_flag_CXX=
11501always_export_symbols_CXX=no
11502archive_expsym_cmds_CXX=
11503export_dynamic_flag_spec_CXX=
11504hardcode_direct_CXX=no
11505hardcode_libdir_flag_spec_CXX=
11506hardcode_libdir_flag_spec_ld_CXX=
11507hardcode_libdir_separator_CXX=
11508hardcode_minus_L_CXX=no
11509hardcode_shlibpath_var_CXX=unsupported
11510hardcode_automatic_CXX=no
11511module_cmds_CXX=
11512module_expsym_cmds_CXX=
11513link_all_deplibs_CXX=unknown
11514old_archive_cmds_CXX=$old_archive_cmds
11515no_undefined_flag_CXX=
11516whole_archive_flag_spec_CXX=
11517enable_shared_with_static_runtimes_CXX=no
11518
11519# Dependencies to place before and after the object being linked:
11520predep_objects_CXX=
11521postdep_objects_CXX=
11522predeps_CXX=
11523postdeps_CXX=
11524compiler_lib_search_path_CXX=
11525
11526# Source file extension for C++ test sources.
11527ac_ext=cpp
11528
11529# Object file extension for compiled C++ test sources.
11530objext=o
11531objext_CXX=$objext
11532
11533# Code to be used in simple compile tests
11534lt_simple_compile_test_code="int some_variable = 0;\n"
11535
11536# Code to be used in simple link tests
11537lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11538
11539# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11540
11541# If no C compiler was specified, use CC.
11542LTCC=${LTCC-"$CC"}
11543
11544# If no C compiler flags were specified, use CFLAGS.
11545LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11546
11547# Allow CC to be a program name with arguments.
11548compiler=$CC
11549
11550
11551# save warnings/boilerplate of simple test code
11552ac_outfile=conftest.$ac_objext
11553printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11554eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11555_lt_compiler_boilerplate=`cat conftest.err`
11556$rm conftest*
11557
11558ac_outfile=conftest.$ac_objext
11559printf "$lt_simple_link_test_code" >conftest.$ac_ext
11560eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11561_lt_linker_boilerplate=`cat conftest.err`
11562$rm conftest*
11563
11564
11565# Allow CC to be a program name with arguments.
11566lt_save_CC=$CC
11567lt_save_LD=$LD
11568lt_save_GCC=$GCC
11569GCC=$GXX
11570lt_save_with_gnu_ld=$with_gnu_ld
11571lt_save_path_LD=$lt_cv_path_LD
11572if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11573  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11574else
11575  $as_unset lt_cv_prog_gnu_ld
11576fi
11577if test -n "${lt_cv_path_LDCXX+set}"; then
11578  lt_cv_path_LD=$lt_cv_path_LDCXX
11579else
11580  $as_unset lt_cv_path_LD
11581fi
11582test -z "${LDCXX+set}" || LD=$LDCXX
11583CC=${CXX-"c++"}
11584compiler=$CC
11585compiler_CXX=$CC
11586for cc_temp in $compiler""; do
11587  case $cc_temp in
11588    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11589    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11590    \-*) ;;
11591    *) break;;
11592  esac
11593done
11594cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11595
11596
11597# We don't want -fno-exception wen compiling C++ code, so set the
11598# no_builtin_flag separately
11599if test "$GXX" = yes; then
11600  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11601else
11602  lt_prog_compiler_no_builtin_flag_CXX=
11603fi
11604
11605if test "$GXX" = yes; then
11606  # Set up default GNU C++ configuration
11607
11608
11609# Check whether --with-gnu-ld was given.
11610if test "${with_gnu_ld+set}" = set; then
11611  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11612else
11613  with_gnu_ld=no
11614fi
11615
11616ac_prog=ld
11617if test "$GCC" = yes; then
11618  # Check if gcc -print-prog-name=ld gives a path.
11619  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11620echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11621  case $host in
11622  *-*-mingw*)
11623    # gcc leaves a trailing carriage return which upsets mingw
11624    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11625  *)
11626    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11627  esac
11628  case $ac_prog in
11629    # Accept absolute paths.
11630    [\\/]* | ?:[\\/]*)
11631      re_direlt='/[^/][^/]*/\.\./'
11632      # Canonicalize the pathname of ld
11633      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11634      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11635	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11636      done
11637      test -z "$LD" && LD="$ac_prog"
11638      ;;
11639  "")
11640    # If it fails, then pretend we aren't using GCC.
11641    ac_prog=ld
11642    ;;
11643  *)
11644    # If it is relative, then search for the first ld in PATH.
11645    with_gnu_ld=unknown
11646    ;;
11647  esac
11648elif test "$with_gnu_ld" = yes; then
11649  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11650echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11651else
11652  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11653echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11654fi
11655if test "${lt_cv_path_LD+set}" = set; then
11656  echo $ECHO_N "(cached) $ECHO_C" >&6
11657else
11658  if test -z "$LD"; then
11659  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11660  for ac_dir in $PATH; do
11661    IFS="$lt_save_ifs"
11662    test -z "$ac_dir" && ac_dir=.
11663    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11664      lt_cv_path_LD="$ac_dir/$ac_prog"
11665      # Check to see if the program is GNU ld.  I'd rather use --version,
11666      # but apparently some variants of GNU ld only accept -v.
11667      # Break only if it was the GNU/non-GNU ld that we prefer.
11668      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11669      *GNU* | *'with BFD'*)
11670	test "$with_gnu_ld" != no && break
11671	;;
11672      *)
11673	test "$with_gnu_ld" != yes && break
11674	;;
11675      esac
11676    fi
11677  done
11678  IFS="$lt_save_ifs"
11679else
11680  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11681fi
11682fi
11683
11684LD="$lt_cv_path_LD"
11685if test -n "$LD"; then
11686  { echo "$as_me:$LINENO: result: $LD" >&5
11687echo "${ECHO_T}$LD" >&6; }
11688else
11689  { echo "$as_me:$LINENO: result: no" >&5
11690echo "${ECHO_T}no" >&6; }
11691fi
11692test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11693echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11694   { (exit 1); exit 1; }; }
11695{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11696echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11697if test "${lt_cv_prog_gnu_ld+set}" = set; then
11698  echo $ECHO_N "(cached) $ECHO_C" >&6
11699else
11700  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11701case `$LD -v 2>&1 </dev/null` in
11702*GNU* | *'with BFD'*)
11703  lt_cv_prog_gnu_ld=yes
11704  ;;
11705*)
11706  lt_cv_prog_gnu_ld=no
11707  ;;
11708esac
11709fi
11710{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11711echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11712with_gnu_ld=$lt_cv_prog_gnu_ld
11713
11714
11715
11716  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11717  # archiving commands below assume that GNU ld is being used.
11718  if test "$with_gnu_ld" = yes; then
11719    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11720    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'
11721
11722    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11723    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11724
11725    # If archive_cmds runs LD, not CC, wlarc should be empty
11726    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11727    #     investigate it a little bit more. (MM)
11728    wlarc='${wl}'
11729
11730    # ancient GNU ld didn't support --whole-archive et. al.
11731    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11732	grep 'no-whole-archive' > /dev/null; then
11733      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11734    else
11735      whole_archive_flag_spec_CXX=
11736    fi
11737  else
11738    with_gnu_ld=no
11739    wlarc=
11740
11741    # A generic and very simple default shared library creation
11742    # command for GNU C++ for the case where it uses the native
11743    # linker, instead of GNU ld.  If possible, this setting should
11744    # overridden to take advantage of the native linker features on
11745    # the platform it is being used on.
11746    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11747  fi
11748
11749  # Commands to make compiler produce verbose output that lists
11750  # what "hidden" libraries, object files and flags are used when
11751  # linking a shared library.
11752  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11753
11754else
11755  GXX=no
11756  with_gnu_ld=no
11757  wlarc=
11758fi
11759
11760# PORTME: fill in a description of your system's C++ link characteristics
11761{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11762echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11763ld_shlibs_CXX=yes
11764case $host_os in
11765  aix3*)
11766    # FIXME: insert proper C++ library support
11767    ld_shlibs_CXX=no
11768    ;;
11769  aix4* | aix5*)
11770    if test "$host_cpu" = ia64; then
11771      # On IA64, the linker does run time linking by default, so we don't
11772      # have to do anything special.
11773      aix_use_runtimelinking=no
11774      exp_sym_flag='-Bexport'
11775      no_entry_flag=""
11776    else
11777      aix_use_runtimelinking=no
11778
11779      # Test if we are trying to use run time linking or normal
11780      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11781      # need to do runtime linking.
11782      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11783	for ld_flag in $LDFLAGS; do
11784	  case $ld_flag in
11785	  *-brtl*)
11786	    aix_use_runtimelinking=yes
11787	    break
11788	    ;;
11789	  esac
11790	done
11791	;;
11792      esac
11793
11794      exp_sym_flag='-bexport'
11795      no_entry_flag='-bnoentry'
11796    fi
11797
11798    # When large executables or shared objects are built, AIX ld can
11799    # have problems creating the table of contents.  If linking a library
11800    # or program results in "error TOC overflow" add -mminimal-toc to
11801    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11802    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11803
11804    archive_cmds_CXX=''
11805    hardcode_direct_CXX=yes
11806    hardcode_libdir_separator_CXX=':'
11807    link_all_deplibs_CXX=yes
11808
11809    if test "$GXX" = yes; then
11810      case $host_os in aix4.[012]|aix4.[012].*)
11811      # We only want to do this on AIX 4.2 and lower, the check
11812      # below for broken collect2 doesn't work under 4.3+
11813	collect2name=`${CC} -print-prog-name=collect2`
11814	if test -f "$collect2name" && \
11815	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11816	then
11817	  # We have reworked collect2
11818	  hardcode_direct_CXX=yes
11819	else
11820	  # We have old collect2
11821	  hardcode_direct_CXX=unsupported
11822	  # It fails to find uninstalled libraries when the uninstalled
11823	  # path is not listed in the libpath.  Setting hardcode_minus_L
11824	  # to unsupported forces relinking
11825	  hardcode_minus_L_CXX=yes
11826	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11827	  hardcode_libdir_separator_CXX=
11828	fi
11829	;;
11830      esac
11831      shared_flag='-shared'
11832      if test "$aix_use_runtimelinking" = yes; then
11833	shared_flag="$shared_flag "'${wl}-G'
11834      fi
11835    else
11836      # not using gcc
11837      if test "$host_cpu" = ia64; then
11838	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11839	# chokes on -Wl,-G. The following line is correct:
11840	shared_flag='-G'
11841      else
11842	if test "$aix_use_runtimelinking" = yes; then
11843	  shared_flag='${wl}-G'
11844	else
11845	  shared_flag='${wl}-bM:SRE'
11846	fi
11847      fi
11848    fi
11849
11850    # It seems that -bexpall does not export symbols beginning with
11851    # underscore (_), so it is better to generate a list of symbols to export.
11852    always_export_symbols_CXX=yes
11853    if test "$aix_use_runtimelinking" = yes; then
11854      # Warning - without using the other runtime loading flags (-brtl),
11855      # -berok will link without error, but may produce a broken library.
11856      allow_undefined_flag_CXX='-berok'
11857      # Determine the default libpath from the value encoded in an empty executable.
11858      cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h.  */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h.  */
11864
11865int
11866main ()
11867{
11868
11869  ;
11870  return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext conftest$ac_exeext
11874if { (ac_try="$ac_link"
11875case "(($ac_try" in
11876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877  *) ac_try_echo=$ac_try;;
11878esac
11879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880  (eval "$ac_link") 2>conftest.er1
11881  ac_status=$?
11882  grep -v '^ *+' conftest.er1 >conftest.err
11883  rm -f conftest.er1
11884  cat conftest.err >&5
11885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886  (exit $ac_status); } && {
11887	 test -z "$ac_cxx_werror_flag" ||
11888	 test ! -s conftest.err
11889       } && test -s conftest$ac_exeext &&
11890       $as_test_x conftest$ac_exeext; then
11891
11892aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11893}'`
11894# Check for a 64-bit object if we didn't find anything.
11895if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11896}'`; fi
11897else
11898  echo "$as_me: failed program was:" >&5
11899sed 's/^/| /' conftest.$ac_ext >&5
11900
11901
11902fi
11903
11904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11905      conftest$ac_exeext conftest.$ac_ext
11906if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11907
11908      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11909
11910      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"
11911     else
11912      if test "$host_cpu" = ia64; then
11913	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11914	allow_undefined_flag_CXX="-z nodefs"
11915	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"
11916      else
11917	# Determine the default libpath from the value encoded in an empty executable.
11918	cat >conftest.$ac_ext <<_ACEOF
11919/* confdefs.h.  */
11920_ACEOF
11921cat confdefs.h >>conftest.$ac_ext
11922cat >>conftest.$ac_ext <<_ACEOF
11923/* end confdefs.h.  */
11924
11925int
11926main ()
11927{
11928
11929  ;
11930  return 0;
11931}
11932_ACEOF
11933rm -f conftest.$ac_objext conftest$ac_exeext
11934if { (ac_try="$ac_link"
11935case "(($ac_try" in
11936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937  *) ac_try_echo=$ac_try;;
11938esac
11939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940  (eval "$ac_link") 2>conftest.er1
11941  ac_status=$?
11942  grep -v '^ *+' conftest.er1 >conftest.err
11943  rm -f conftest.er1
11944  cat conftest.err >&5
11945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946  (exit $ac_status); } && {
11947	 test -z "$ac_cxx_werror_flag" ||
11948	 test ! -s conftest.err
11949       } && test -s conftest$ac_exeext &&
11950       $as_test_x conftest$ac_exeext; then
11951
11952aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11953}'`
11954# Check for a 64-bit object if we didn't find anything.
11955if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11956}'`; fi
11957else
11958  echo "$as_me: failed program was:" >&5
11959sed 's/^/| /' conftest.$ac_ext >&5
11960
11961
11962fi
11963
11964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11965      conftest$ac_exeext conftest.$ac_ext
11966if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11967
11968	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11969	# Warning - without using the other run time loading flags,
11970	# -berok will link without error, but may produce a broken library.
11971	no_undefined_flag_CXX=' ${wl}-bernotok'
11972	allow_undefined_flag_CXX=' ${wl}-berok'
11973	# Exported symbols can be pulled into shared objects from archives
11974	whole_archive_flag_spec_CXX='$convenience'
11975	archive_cmds_need_lc_CXX=yes
11976	# This is similar to how AIX traditionally builds its shared libraries.
11977	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'
11978      fi
11979    fi
11980    ;;
11981
11982  beos*)
11983    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11984      allow_undefined_flag_CXX=unsupported
11985      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11986      # support --undefined.  This deserves some investigation.  FIXME
11987      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11988    else
11989      ld_shlibs_CXX=no
11990    fi
11991    ;;
11992
11993  chorus*)
11994    case $cc_basename in
11995      *)
11996	# FIXME: insert proper C++ library support
11997	ld_shlibs_CXX=no
11998	;;
11999    esac
12000    ;;
12001
12002  cygwin* | mingw* | pw32*)
12003    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12004    # as there is no search path for DLLs.
12005    hardcode_libdir_flag_spec_CXX='-L$libdir'
12006    allow_undefined_flag_CXX=unsupported
12007    always_export_symbols_CXX=no
12008    enable_shared_with_static_runtimes_CXX=yes
12009
12010    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12011      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'
12012      # If the export-symbols file already is a .def file (1st line
12013      # is EXPORTS), use it as is; otherwise, prepend...
12014      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12015	cp $export_symbols $output_objdir/$soname.def;
12016      else
12017	echo EXPORTS > $output_objdir/$soname.def;
12018	cat $export_symbols >> $output_objdir/$soname.def;
12019      fi~
12020      $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'
12021    else
12022      ld_shlibs_CXX=no
12023    fi
12024  ;;
12025      darwin* | rhapsody*)
12026        case $host_os in
12027        rhapsody* | darwin1.[012])
12028         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12029         ;;
12030       *) # Darwin 1.3 on
12031         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12032           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12033         else
12034           case ${MACOSX_DEPLOYMENT_TARGET} in
12035             10.[012])
12036               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12037               ;;
12038             10.*)
12039               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12040               ;;
12041           esac
12042         fi
12043         ;;
12044        esac
12045      archive_cmds_need_lc_CXX=no
12046      hardcode_direct_CXX=no
12047      hardcode_automatic_CXX=yes
12048      hardcode_shlibpath_var_CXX=unsupported
12049      whole_archive_flag_spec_CXX=''
12050      link_all_deplibs_CXX=yes
12051
12052    if test "$GXX" = yes ; then
12053      lt_int_apple_cc_single_mod=no
12054      output_verbose_link_cmd='echo'
12055      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12056       lt_int_apple_cc_single_mod=yes
12057      fi
12058      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12059       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12060      else
12061          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'
12062        fi
12063        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12064        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12065          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12066            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12067          else
12068            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12069          fi
12070            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}'
12071      else
12072      case $cc_basename in
12073        xlc*)
12074         output_verbose_link_cmd='echo'
12075          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12076          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12077          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12078          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12079          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}'
12080          ;;
12081       *)
12082         ld_shlibs_CXX=no
12083          ;;
12084      esac
12085      fi
12086        ;;
12087
12088  dgux*)
12089    case $cc_basename in
12090      ec++*)
12091	# FIXME: insert proper C++ library support
12092	ld_shlibs_CXX=no
12093	;;
12094      ghcx*)
12095	# Green Hills C++ Compiler
12096	# FIXME: insert proper C++ library support
12097	ld_shlibs_CXX=no
12098	;;
12099      *)
12100	# FIXME: insert proper C++ library support
12101	ld_shlibs_CXX=no
12102	;;
12103    esac
12104    ;;
12105  freebsd[12]*)
12106    # C++ shared libraries reported to be fairly broken before switch to ELF
12107    ld_shlibs_CXX=no
12108    ;;
12109  freebsd-elf*)
12110    archive_cmds_need_lc_CXX=no
12111    ;;
12112  freebsd* | dragonfly*)
12113    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12114    # conventions
12115    ld_shlibs_CXX=yes
12116    ;;
12117  gnu*)
12118    ;;
12119  hpux9*)
12120    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12121    hardcode_libdir_separator_CXX=:
12122    export_dynamic_flag_spec_CXX='${wl}-E'
12123    hardcode_direct_CXX=yes
12124    hardcode_minus_L_CXX=yes # Not in the search PATH,
12125				# but as the default
12126				# location of the library.
12127
12128    case $cc_basename in
12129    CC*)
12130      # FIXME: insert proper C++ library support
12131      ld_shlibs_CXX=no
12132      ;;
12133    aCC*)
12134      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'
12135      # Commands to make compiler produce verbose output that lists
12136      # what "hidden" libraries, object files and flags are used when
12137      # linking a shared library.
12138      #
12139      # There doesn't appear to be a way to prevent this compiler from
12140      # explicitly linking system object files so we need to strip them
12141      # from the output so that they don't get included in the library
12142      # dependencies.
12143      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'
12144      ;;
12145    *)
12146      if test "$GXX" = yes; then
12147        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'
12148      else
12149        # FIXME: insert proper C++ library support
12150        ld_shlibs_CXX=no
12151      fi
12152      ;;
12153    esac
12154    ;;
12155  hpux10*|hpux11*)
12156    if test $with_gnu_ld = no; then
12157      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12158      hardcode_libdir_separator_CXX=:
12159
12160      case $host_cpu in
12161      hppa*64*|ia64*)
12162	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12163        ;;
12164      *)
12165	export_dynamic_flag_spec_CXX='${wl}-E'
12166        ;;
12167      esac
12168    fi
12169    case $host_cpu in
12170    hppa*64*|ia64*)
12171      hardcode_direct_CXX=no
12172      hardcode_shlibpath_var_CXX=no
12173      ;;
12174    *)
12175      hardcode_direct_CXX=yes
12176      hardcode_minus_L_CXX=yes # Not in the search PATH,
12177					      # but as the default
12178					      # location of the library.
12179      ;;
12180    esac
12181
12182    case $cc_basename in
12183      CC*)
12184	# FIXME: insert proper C++ library support
12185	ld_shlibs_CXX=no
12186	;;
12187      aCC*)
12188	case $host_cpu in
12189	hppa*64*)
12190	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12191	  ;;
12192	ia64*)
12193	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12194	  ;;
12195	*)
12196	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12197	  ;;
12198	esac
12199	# Commands to make compiler produce verbose output that lists
12200	# what "hidden" libraries, object files and flags are used when
12201	# linking a shared library.
12202	#
12203	# There doesn't appear to be a way to prevent this compiler from
12204	# explicitly linking system object files so we need to strip them
12205	# from the output so that they don't get included in the library
12206	# dependencies.
12207	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'
12208	;;
12209      *)
12210	if test "$GXX" = yes; then
12211	  if test $with_gnu_ld = no; then
12212	    case $host_cpu in
12213	    hppa*64*)
12214	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12215	      ;;
12216	    ia64*)
12217	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12218	      ;;
12219	    *)
12220	      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'
12221	      ;;
12222	    esac
12223	  fi
12224	else
12225	  # FIXME: insert proper C++ library support
12226	  ld_shlibs_CXX=no
12227	fi
12228	;;
12229    esac
12230    ;;
12231  interix3*)
12232    hardcode_direct_CXX=no
12233    hardcode_shlibpath_var_CXX=no
12234    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12235    export_dynamic_flag_spec_CXX='${wl}-E'
12236    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12237    # Instead, shared libraries are loaded at an image base (0x10000000 by
12238    # default) and relocated if they conflict, which is a slow very memory
12239    # consuming and fragmenting process.  To avoid this, we pick a random,
12240    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12241    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12242    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'
12243    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'
12244    ;;
12245  irix5* | irix6*)
12246    case $cc_basename in
12247      CC*)
12248	# SGI C++
12249	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'
12250
12251	# Archives containing C++ object files must be created using
12252	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12253	# necessary to make sure instantiated templates are included
12254	# in the archive.
12255	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12256	;;
12257      *)
12258	if test "$GXX" = yes; then
12259	  if test "$with_gnu_ld" = no; then
12260	    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'
12261	  else
12262	    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'
12263	  fi
12264	fi
12265	link_all_deplibs_CXX=yes
12266	;;
12267    esac
12268    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12269    hardcode_libdir_separator_CXX=:
12270    ;;
12271  linux* | k*bsd*-gnu)
12272    case $cc_basename in
12273      KCC*)
12274	# Kuck and Associates, Inc. (KAI) C++ Compiler
12275
12276	# KCC will only create a shared library if the output file
12277	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12278	# to its proper name (with version) after linking.
12279	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'
12280	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'
12281	# Commands to make compiler produce verbose output that lists
12282	# what "hidden" libraries, object files and flags are used when
12283	# linking a shared library.
12284	#
12285	# There doesn't appear to be a way to prevent this compiler from
12286	# explicitly linking system object files so we need to strip them
12287	# from the output so that they don't get included in the library
12288	# dependencies.
12289	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'
12290
12291	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12292	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12293
12294	# Archives containing C++ object files must be created using
12295	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12296	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12297	;;
12298      icpc*)
12299	# Intel C++
12300	with_gnu_ld=yes
12301	# version 8.0 and above of icpc choke on multiply defined symbols
12302	# if we add $predep_objects and $postdep_objects, however 7.1 and
12303	# earlier do not add the objects themselves.
12304	case `$CC -V 2>&1` in
12305	*"Version 7."*)
12306  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12307  	  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'
12308	  ;;
12309	*)  # Version 8.0 or newer
12310	  tmp_idyn=
12311	  case $host_cpu in
12312	    ia64*) tmp_idyn=' -i_dynamic';;
12313	  esac
12314  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12315	  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'
12316	  ;;
12317	esac
12318	archive_cmds_need_lc_CXX=no
12319	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12320	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12321	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12322	;;
12323      pgCC*)
12324        # Portland Group C++ compiler
12325	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12326  	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'
12327
12328	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12329	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12330	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'
12331        ;;
12332      cxx*)
12333	# Compaq C++
12334	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12335	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'
12336
12337	runpath_var=LD_RUN_PATH
12338	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12339	hardcode_libdir_separator_CXX=:
12340
12341	# Commands to make compiler produce verbose output that lists
12342	# what "hidden" libraries, object files and flags are used when
12343	# linking a shared library.
12344	#
12345	# There doesn't appear to be a way to prevent this compiler from
12346	# explicitly linking system object files so we need to strip them
12347	# from the output so that they don't get included in the library
12348	# dependencies.
12349	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'
12350	;;
12351    esac
12352    ;;
12353  lynxos*)
12354    # FIXME: insert proper C++ library support
12355    ld_shlibs_CXX=no
12356    ;;
12357  m88k*)
12358    # FIXME: insert proper C++ library support
12359    ld_shlibs_CXX=no
12360    ;;
12361  mvs*)
12362    case $cc_basename in
12363      cxx*)
12364	# FIXME: insert proper C++ library support
12365	ld_shlibs_CXX=no
12366	;;
12367      *)
12368	# FIXME: insert proper C++ library support
12369	ld_shlibs_CXX=no
12370	;;
12371    esac
12372    ;;
12373  netbsd* | netbsdelf*-gnu)
12374    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12375      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12376      wlarc=
12377      hardcode_libdir_flag_spec_CXX='-R$libdir'
12378      hardcode_direct_CXX=yes
12379      hardcode_shlibpath_var_CXX=no
12380    fi
12381    # Workaround some broken pre-1.5 toolchains
12382    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12383    ;;
12384  openbsd2*)
12385    # C++ shared libraries are fairly broken
12386    ld_shlibs_CXX=no
12387    ;;
12388  openbsd*)
12389    hardcode_direct_CXX=yes
12390    hardcode_shlibpath_var_CXX=no
12391    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12392    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12393    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12394      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12395      export_dynamic_flag_spec_CXX='${wl}-E'
12396      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12397    fi
12398    output_verbose_link_cmd='echo'
12399    ;;
12400  osf3*)
12401    case $cc_basename in
12402      KCC*)
12403	# Kuck and Associates, Inc. (KAI) C++ Compiler
12404
12405	# KCC will only create a shared library if the output file
12406	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12407	# to its proper name (with version) after linking.
12408	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'
12409
12410	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12411	hardcode_libdir_separator_CXX=:
12412
12413	# Archives containing C++ object files must be created using
12414	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12415	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12416
12417	;;
12418      RCC*)
12419	# Rational C++ 2.4.1
12420	# FIXME: insert proper C++ library support
12421	ld_shlibs_CXX=no
12422	;;
12423      cxx*)
12424	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12425	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'
12426
12427	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12428	hardcode_libdir_separator_CXX=:
12429
12430	# Commands to make compiler produce verbose output that lists
12431	# what "hidden" libraries, object files and flags are used when
12432	# linking a shared library.
12433	#
12434	# There doesn't appear to be a way to prevent this compiler from
12435	# explicitly linking system object files so we need to strip them
12436	# from the output so that they don't get included in the library
12437	# dependencies.
12438	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'
12439	;;
12440      *)
12441	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12442	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12443	  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'
12444
12445	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12446	  hardcode_libdir_separator_CXX=:
12447
12448	  # Commands to make compiler produce verbose output that lists
12449	  # what "hidden" libraries, object files and flags are used when
12450	  # linking a shared library.
12451	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12452
12453	else
12454	  # FIXME: insert proper C++ library support
12455	  ld_shlibs_CXX=no
12456	fi
12457	;;
12458    esac
12459    ;;
12460  osf4* | osf5*)
12461    case $cc_basename in
12462      KCC*)
12463	# Kuck and Associates, Inc. (KAI) C++ Compiler
12464
12465	# KCC will only create a shared library if the output file
12466	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12467	# to its proper name (with version) after linking.
12468	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'
12469
12470	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12471	hardcode_libdir_separator_CXX=:
12472
12473	# Archives containing C++ object files must be created using
12474	# the KAI C++ compiler.
12475	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12476	;;
12477      RCC*)
12478	# Rational C++ 2.4.1
12479	# FIXME: insert proper C++ library support
12480	ld_shlibs_CXX=no
12481	;;
12482      cxx*)
12483	allow_undefined_flag_CXX=' -expect_unresolved \*'
12484	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'
12485	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12486	  echo "-hidden">> $lib.exp~
12487	  $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~
12488	  $rm $lib.exp'
12489
12490	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12491	hardcode_libdir_separator_CXX=:
12492
12493	# Commands to make compiler produce verbose output that lists
12494	# what "hidden" libraries, object files and flags are used when
12495	# linking a shared library.
12496	#
12497	# There doesn't appear to be a way to prevent this compiler from
12498	# explicitly linking system object files so we need to strip them
12499	# from the output so that they don't get included in the library
12500	# dependencies.
12501	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'
12502	;;
12503      *)
12504	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12505	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12506	 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'
12507
12508	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12509	  hardcode_libdir_separator_CXX=:
12510
12511	  # Commands to make compiler produce verbose output that lists
12512	  # what "hidden" libraries, object files and flags are used when
12513	  # linking a shared library.
12514	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12515
12516	else
12517	  # FIXME: insert proper C++ library support
12518	  ld_shlibs_CXX=no
12519	fi
12520	;;
12521    esac
12522    ;;
12523  psos*)
12524    # FIXME: insert proper C++ library support
12525    ld_shlibs_CXX=no
12526    ;;
12527  sunos4*)
12528    case $cc_basename in
12529      CC*)
12530	# Sun C++ 4.x
12531	# FIXME: insert proper C++ library support
12532	ld_shlibs_CXX=no
12533	;;
12534      lcc*)
12535	# Lucid
12536	# FIXME: insert proper C++ library support
12537	ld_shlibs_CXX=no
12538	;;
12539      *)
12540	# FIXME: insert proper C++ library support
12541	ld_shlibs_CXX=no
12542	;;
12543    esac
12544    ;;
12545  solaris*)
12546    case $cc_basename in
12547      CC*)
12548	# Sun C++ 4.2, 5.x and Centerline C++
12549        archive_cmds_need_lc_CXX=yes
12550	no_undefined_flag_CXX=' -zdefs'
12551	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12552	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12553	$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'
12554
12555	hardcode_libdir_flag_spec_CXX='-R$libdir'
12556	hardcode_shlibpath_var_CXX=no
12557	case $host_os in
12558	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12559	  *)
12560	    # The C++ compiler is used as linker so we must use $wl
12561	    # flag to pass the commands to the underlying system
12562	    # linker. We must also pass each convience library through
12563	    # to the system linker between allextract/defaultextract.
12564	    # The C++ compiler will combine linker options so we
12565	    # cannot just pass the convience library names through
12566	    # without $wl.
12567	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12568	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12569	    ;;
12570	esac
12571	link_all_deplibs_CXX=yes
12572
12573	output_verbose_link_cmd='echo'
12574
12575	# Archives containing C++ object files must be created using
12576	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12577	# necessary to make sure instantiated templates are included
12578	# in the archive.
12579	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12580	;;
12581      gcx*)
12582	# Green Hills C++ Compiler
12583	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12584
12585	# The C++ compiler must be used to create the archive.
12586	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12587	;;
12588      *)
12589	# GNU C++ compiler with Solaris linker
12590	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12591	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12592	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12593	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12594	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12595		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12596
12597	    # Commands to make compiler produce verbose output that lists
12598	    # what "hidden" libraries, object files and flags are used when
12599	    # linking a shared library.
12600	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12601	  else
12602	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12603	    # platform.
12604	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12605	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12606		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12607
12608	    # Commands to make compiler produce verbose output that lists
12609	    # what "hidden" libraries, object files and flags are used when
12610	    # linking a shared library.
12611	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12612	  fi
12613
12614	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12615	fi
12616	;;
12617    esac
12618    ;;
12619  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12620    no_undefined_flag_CXX='${wl}-z,text'
12621    archive_cmds_need_lc_CXX=no
12622    hardcode_shlibpath_var_CXX=no
12623    runpath_var='LD_RUN_PATH'
12624
12625    case $cc_basename in
12626      CC*)
12627	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12628	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12629	;;
12630      *)
12631	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12632	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12633	;;
12634    esac
12635    ;;
12636  sysv5* | sco3.2v5* | sco5v6*)
12637    # Note: We can NOT use -z defs as we might desire, because we do not
12638    # link with -lc, and that would cause any symbols used from libc to
12639    # always be unresolved, which means just about no library would
12640    # ever link correctly.  If we're not using GNU ld we use -z text
12641    # though, which does catch some bad symbols but isn't as heavy-handed
12642    # as -z defs.
12643    # For security reasons, it is highly recommended that you always
12644    # use absolute paths for naming shared libraries, and exclude the
12645    # DT_RUNPATH tag from executables and libraries.  But doing so
12646    # requires that you compile everything twice, which is a pain.
12647    # So that behaviour is only enabled if SCOABSPATH is set to a
12648    # non-empty value in the environment.  Most likely only useful for
12649    # creating official distributions of packages.
12650    # This is a hack until libtool officially supports absolute path
12651    # names for shared libraries.
12652    no_undefined_flag_CXX='${wl}-z,text'
12653    allow_undefined_flag_CXX='${wl}-z,nodefs'
12654    archive_cmds_need_lc_CXX=no
12655    hardcode_shlibpath_var_CXX=no
12656    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12657    hardcode_libdir_separator_CXX=':'
12658    link_all_deplibs_CXX=yes
12659    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12660    runpath_var='LD_RUN_PATH'
12661
12662    case $cc_basename in
12663      CC*)
12664	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12665	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12666	;;
12667      *)
12668	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12669	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12670	;;
12671    esac
12672    ;;
12673  tandem*)
12674    case $cc_basename in
12675      NCC*)
12676	# NonStop-UX NCC 3.20
12677	# FIXME: insert proper C++ library support
12678	ld_shlibs_CXX=no
12679	;;
12680      *)
12681	# FIXME: insert proper C++ library support
12682	ld_shlibs_CXX=no
12683	;;
12684    esac
12685    ;;
12686  vxworks*)
12687    # FIXME: insert proper C++ library support
12688    ld_shlibs_CXX=no
12689    ;;
12690  *)
12691    # FIXME: insert proper C++ library support
12692    ld_shlibs_CXX=no
12693    ;;
12694esac
12695{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12696echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12697test "$ld_shlibs_CXX" = no && can_build_shared=no
12698
12699GCC_CXX="$GXX"
12700LD_CXX="$LD"
12701
12702
12703cat > conftest.$ac_ext <<EOF
12704class Foo
12705{
12706public:
12707  Foo (void) { a = 0; }
12708private:
12709  int a;
12710};
12711EOF
12712
12713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714  (eval $ac_compile) 2>&5
12715  ac_status=$?
12716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717  (exit $ac_status); }; then
12718  # Parse the compiler output and extract the necessary
12719  # objects, libraries and library flags.
12720
12721  # Sentinel used to keep track of whether or not we are before
12722  # the conftest object file.
12723  pre_test_object_deps_done=no
12724
12725  # The `*' in the case matches for architectures that use `case' in
12726  # $output_verbose_cmd can trigger glob expansion during the loop
12727  # eval without this substitution.
12728  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12729
12730  for p in `eval $output_verbose_link_cmd`; do
12731    case $p in
12732
12733    -L* | -R* | -l*)
12734       # Some compilers place space between "-{L,R}" and the path.
12735       # Remove the space.
12736       if test $p = "-L" \
12737	  || test $p = "-R"; then
12738	 prev=$p
12739	 continue
12740       else
12741	 prev=
12742       fi
12743
12744       if test "$pre_test_object_deps_done" = no; then
12745	 case $p in
12746	 -L* | -R*)
12747	   # Internal compiler library paths should come after those
12748	   # provided the user.  The postdeps already come after the
12749	   # user supplied libs so there is no need to process them.
12750	   if test -z "$compiler_lib_search_path_CXX"; then
12751	     compiler_lib_search_path_CXX="${prev}${p}"
12752	   else
12753	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12754	   fi
12755	   ;;
12756	 # The "-l" case would never come before the object being
12757	 # linked, so don't bother handling this case.
12758	 esac
12759       else
12760	 if test -z "$postdeps_CXX"; then
12761	   postdeps_CXX="${prev}${p}"
12762	 else
12763	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12764	 fi
12765       fi
12766       ;;
12767
12768    *.$objext)
12769       # This assumes that the test object file only shows up
12770       # once in the compiler output.
12771       if test "$p" = "conftest.$objext"; then
12772	 pre_test_object_deps_done=yes
12773	 continue
12774       fi
12775
12776       if test "$pre_test_object_deps_done" = no; then
12777	 if test -z "$predep_objects_CXX"; then
12778	   predep_objects_CXX="$p"
12779	 else
12780	   predep_objects_CXX="$predep_objects_CXX $p"
12781	 fi
12782       else
12783	 if test -z "$postdep_objects_CXX"; then
12784	   postdep_objects_CXX="$p"
12785	 else
12786	   postdep_objects_CXX="$postdep_objects_CXX $p"
12787	 fi
12788       fi
12789       ;;
12790
12791    *) ;; # Ignore the rest.
12792
12793    esac
12794  done
12795
12796  # Clean up.
12797  rm -f a.out a.exe
12798else
12799  echo "libtool.m4: error: problem compiling CXX test program"
12800fi
12801
12802$rm -f confest.$objext
12803
12804# PORTME: override above test on systems where it is broken
12805case $host_os in
12806interix3*)
12807  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12808  # hack all around it, let's just trust "g++" to DTRT.
12809  predep_objects_CXX=
12810  postdep_objects_CXX=
12811  postdeps_CXX=
12812  ;;
12813
12814solaris*)
12815  case $cc_basename in
12816  CC*)
12817    # Adding this requires a known-good setup of shared libraries for
12818    # Sun compiler versions before 5.6, else PIC objects from an old
12819    # archive will be linked into the output, leading to subtle bugs.
12820    postdeps_CXX='-lCstd -lCrun'
12821    ;;
12822  esac
12823  ;;
12824esac
12825
12826
12827case " $postdeps_CXX " in
12828*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12829esac
12830
12831lt_prog_compiler_wl_CXX=
12832lt_prog_compiler_pic_CXX=
12833lt_prog_compiler_static_CXX=
12834
12835{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12836echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12837
12838  # C++ specific cases for pic, static, wl, etc.
12839  if test "$GXX" = yes; then
12840    lt_prog_compiler_wl_CXX='-Wl,'
12841    lt_prog_compiler_static_CXX='-static'
12842
12843    case $host_os in
12844    aix*)
12845      # All AIX code is PIC.
12846      if test "$host_cpu" = ia64; then
12847	# AIX 5 now supports IA64 processor
12848	lt_prog_compiler_static_CXX='-Bstatic'
12849      fi
12850      ;;
12851    amigaos*)
12852      # FIXME: we need at least 68020 code to build shared libraries, but
12853      # adding the `-m68020' flag to GCC prevents building anything better,
12854      # like `-m68040'.
12855      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12856      ;;
12857    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12858      # PIC is the default for these OSes.
12859      ;;
12860    mingw* | os2* | pw32*)
12861      # This hack is so that the source file can tell whether it is being
12862      # built for inclusion in a dll (and should export symbols for example).
12863      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12864      ;;
12865    darwin* | rhapsody*)
12866      # PIC is the default on this platform
12867      # Common symbols not allowed in MH_DYLIB files
12868      lt_prog_compiler_pic_CXX='-fno-common'
12869      ;;
12870    *djgpp*)
12871      # DJGPP does not support shared libraries at all
12872      lt_prog_compiler_pic_CXX=
12873      ;;
12874    interix3*)
12875      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12876      # Instead, we relocate shared libraries at runtime.
12877      ;;
12878    sysv4*MP*)
12879      if test -d /usr/nec; then
12880	lt_prog_compiler_pic_CXX=-Kconform_pic
12881      fi
12882      ;;
12883    hpux*)
12884      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12885      # not for PA HP-UX.
12886      case $host_cpu in
12887      hppa*64*|ia64*)
12888	;;
12889      *)
12890	lt_prog_compiler_pic_CXX='-fPIC'
12891	;;
12892      esac
12893      ;;
12894    *)
12895      lt_prog_compiler_pic_CXX='-fPIC'
12896      ;;
12897    esac
12898  else
12899    case $host_os in
12900      aix4* | aix5*)
12901	# All AIX code is PIC.
12902	if test "$host_cpu" = ia64; then
12903	  # AIX 5 now supports IA64 processor
12904	  lt_prog_compiler_static_CXX='-Bstatic'
12905	else
12906	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12907	fi
12908	;;
12909      chorus*)
12910	case $cc_basename in
12911	cxch68*)
12912	  # Green Hills C++ Compiler
12913	  # _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"
12914	  ;;
12915	esac
12916	;;
12917       darwin*)
12918         # PIC is the default on this platform
12919         # Common symbols not allowed in MH_DYLIB files
12920         case $cc_basename in
12921           xlc*)
12922           lt_prog_compiler_pic_CXX='-qnocommon'
12923           lt_prog_compiler_wl_CXX='-Wl,'
12924           ;;
12925         esac
12926       ;;
12927      dgux*)
12928	case $cc_basename in
12929	  ec++*)
12930	    lt_prog_compiler_pic_CXX='-KPIC'
12931	    ;;
12932	  ghcx*)
12933	    # Green Hills C++ Compiler
12934	    lt_prog_compiler_pic_CXX='-pic'
12935	    ;;
12936	  *)
12937	    ;;
12938	esac
12939	;;
12940      freebsd* | dragonfly*)
12941	# FreeBSD uses GNU C++
12942	;;
12943      hpux9* | hpux10* | hpux11*)
12944	case $cc_basename in
12945	  CC*)
12946	    lt_prog_compiler_wl_CXX='-Wl,'
12947	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12948	    if test "$host_cpu" != ia64; then
12949	      lt_prog_compiler_pic_CXX='+Z'
12950	    fi
12951	    ;;
12952	  aCC*)
12953	    lt_prog_compiler_wl_CXX='-Wl,'
12954	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12955	    case $host_cpu in
12956	    hppa*64*|ia64*)
12957	      # +Z the default
12958	      ;;
12959	    *)
12960	      lt_prog_compiler_pic_CXX='+Z'
12961	      ;;
12962	    esac
12963	    ;;
12964	  *)
12965	    ;;
12966	esac
12967	;;
12968      interix*)
12969	# This is c89, which is MS Visual C++ (no shared libs)
12970	# Anyone wants to do a port?
12971	;;
12972      irix5* | irix6* | nonstopux*)
12973	case $cc_basename in
12974	  CC*)
12975	    lt_prog_compiler_wl_CXX='-Wl,'
12976	    lt_prog_compiler_static_CXX='-non_shared'
12977	    # CC pic flag -KPIC is the default.
12978	    ;;
12979	  *)
12980	    ;;
12981	esac
12982	;;
12983      linux* | k*bsd*-gnu)
12984	case $cc_basename in
12985	  KCC*)
12986	    # KAI C++ Compiler
12987	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12988	    lt_prog_compiler_pic_CXX='-fPIC'
12989	    ;;
12990	  icpc* | ecpc*)
12991	    # Intel C++
12992	    lt_prog_compiler_wl_CXX='-Wl,'
12993	    lt_prog_compiler_pic_CXX='-KPIC'
12994	    lt_prog_compiler_static_CXX='-static'
12995	    ;;
12996	  pgCC*)
12997	    # Portland Group C++ compiler.
12998	    lt_prog_compiler_wl_CXX='-Wl,'
12999	    lt_prog_compiler_pic_CXX='-fpic'
13000	    lt_prog_compiler_static_CXX='-Bstatic'
13001	    ;;
13002	  cxx*)
13003	    # Compaq C++
13004	    # Make sure the PIC flag is empty.  It appears that all Alpha
13005	    # Linux and Compaq Tru64 Unix objects are PIC.
13006	    lt_prog_compiler_pic_CXX=
13007	    lt_prog_compiler_static_CXX='-non_shared'
13008	    ;;
13009	  *)
13010	    ;;
13011	esac
13012	;;
13013      lynxos*)
13014	;;
13015      m88k*)
13016	;;
13017      mvs*)
13018	case $cc_basename in
13019	  cxx*)
13020	    lt_prog_compiler_pic_CXX='-W c,exportall'
13021	    ;;
13022	  *)
13023	    ;;
13024	esac
13025	;;
13026      netbsd* | netbsdelf*-gnu)
13027	;;
13028      osf3* | osf4* | osf5*)
13029	case $cc_basename in
13030	  KCC*)
13031	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13032	    ;;
13033	  RCC*)
13034	    # Rational C++ 2.4.1
13035	    lt_prog_compiler_pic_CXX='-pic'
13036	    ;;
13037	  cxx*)
13038	    # Digital/Compaq C++
13039	    lt_prog_compiler_wl_CXX='-Wl,'
13040	    # Make sure the PIC flag is empty.  It appears that all Alpha
13041	    # Linux and Compaq Tru64 Unix objects are PIC.
13042	    lt_prog_compiler_pic_CXX=
13043	    lt_prog_compiler_static_CXX='-non_shared'
13044	    ;;
13045	  *)
13046	    ;;
13047	esac
13048	;;
13049      psos*)
13050	;;
13051      solaris*)
13052	case $cc_basename in
13053	  CC*)
13054	    # Sun C++ 4.2, 5.x and Centerline C++
13055	    lt_prog_compiler_pic_CXX='-KPIC'
13056	    lt_prog_compiler_static_CXX='-Bstatic'
13057	    lt_prog_compiler_wl_CXX='-Qoption ld '
13058	    ;;
13059	  gcx*)
13060	    # Green Hills C++ Compiler
13061	    lt_prog_compiler_pic_CXX='-PIC'
13062	    ;;
13063	  *)
13064	    ;;
13065	esac
13066	;;
13067      sunos4*)
13068	case $cc_basename in
13069	  CC*)
13070	    # Sun C++ 4.x
13071	    lt_prog_compiler_pic_CXX='-pic'
13072	    lt_prog_compiler_static_CXX='-Bstatic'
13073	    ;;
13074	  lcc*)
13075	    # Lucid
13076	    lt_prog_compiler_pic_CXX='-pic'
13077	    ;;
13078	  *)
13079	    ;;
13080	esac
13081	;;
13082      tandem*)
13083	case $cc_basename in
13084	  NCC*)
13085	    # NonStop-UX NCC 3.20
13086	    lt_prog_compiler_pic_CXX='-KPIC'
13087	    ;;
13088	  *)
13089	    ;;
13090	esac
13091	;;
13092      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13093	case $cc_basename in
13094	  CC*)
13095	    lt_prog_compiler_wl_CXX='-Wl,'
13096	    lt_prog_compiler_pic_CXX='-KPIC'
13097	    lt_prog_compiler_static_CXX='-Bstatic'
13098	    ;;
13099	esac
13100	;;
13101      vxworks*)
13102	;;
13103      *)
13104	lt_prog_compiler_can_build_shared_CXX=no
13105	;;
13106    esac
13107  fi
13108
13109{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13110echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13111
13112#
13113# Check to make sure the PIC flag actually works.
13114#
13115if test -n "$lt_prog_compiler_pic_CXX"; then
13116
13117{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13118echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13119if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13120  echo $ECHO_N "(cached) $ECHO_C" >&6
13121else
13122  lt_prog_compiler_pic_works_CXX=no
13123  ac_outfile=conftest.$ac_objext
13124   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13125   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13126   # Insert the option either (1) after the last *FLAGS variable, or
13127   # (2) before a word containing "conftest.", or (3) at the end.
13128   # Note that $ac_compile itself does not contain backslashes and begins
13129   # with a dollar sign (not a hyphen), so the echo should work correctly.
13130   # The option is referenced via a variable to avoid confusing sed.
13131   lt_compile=`echo "$ac_compile" | $SED \
13132   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13133   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13134   -e 's:$: $lt_compiler_flag:'`
13135   (eval echo "\"\$as_me:13135: $lt_compile\"" >&5)
13136   (eval "$lt_compile" 2>conftest.err)
13137   ac_status=$?
13138   cat conftest.err >&5
13139   echo "$as_me:13139: \$? = $ac_status" >&5
13140   if (exit $ac_status) && test -s "$ac_outfile"; then
13141     # The compiler can only warn and ignore the option if not recognized
13142     # So say no if there are warnings other than the usual output.
13143     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13144     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13145     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13146       lt_prog_compiler_pic_works_CXX=yes
13147     fi
13148   fi
13149   $rm conftest*
13150
13151fi
13152{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13153echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13154
13155if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13156    case $lt_prog_compiler_pic_CXX in
13157     "" | " "*) ;;
13158     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13159     esac
13160else
13161    lt_prog_compiler_pic_CXX=
13162     lt_prog_compiler_can_build_shared_CXX=no
13163fi
13164
13165fi
13166case $host_os in
13167  # For platforms which do not support PIC, -DPIC is meaningless:
13168  *djgpp*)
13169    lt_prog_compiler_pic_CXX=
13170    ;;
13171  *)
13172    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13173    ;;
13174esac
13175
13176#
13177# Check to make sure the static flag actually works.
13178#
13179wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13180{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13181echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13182if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13183  echo $ECHO_N "(cached) $ECHO_C" >&6
13184else
13185  lt_prog_compiler_static_works_CXX=no
13186   save_LDFLAGS="$LDFLAGS"
13187   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13188   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13189   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13190     # The linker can only warn and ignore the option if not recognized
13191     # So say no if there are warnings
13192     if test -s conftest.err; then
13193       # Append any errors to the config.log.
13194       cat conftest.err 1>&5
13195       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13196       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13197       if diff conftest.exp conftest.er2 >/dev/null; then
13198         lt_prog_compiler_static_works_CXX=yes
13199       fi
13200     else
13201       lt_prog_compiler_static_works_CXX=yes
13202     fi
13203   fi
13204   $rm conftest*
13205   LDFLAGS="$save_LDFLAGS"
13206
13207fi
13208{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13209echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13210
13211if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13212    :
13213else
13214    lt_prog_compiler_static_CXX=
13215fi
13216
13217
13218{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13219echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13220if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13221  echo $ECHO_N "(cached) $ECHO_C" >&6
13222else
13223  lt_cv_prog_compiler_c_o_CXX=no
13224   $rm -r conftest 2>/dev/null
13225   mkdir conftest
13226   cd conftest
13227   mkdir out
13228   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13229
13230   lt_compiler_flag="-o out/conftest2.$ac_objext"
13231   # Insert the option either (1) after the last *FLAGS variable, or
13232   # (2) before a word containing "conftest.", or (3) at the end.
13233   # Note that $ac_compile itself does not contain backslashes and begins
13234   # with a dollar sign (not a hyphen), so the echo should work correctly.
13235   lt_compile=`echo "$ac_compile" | $SED \
13236   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13237   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13238   -e 's:$: $lt_compiler_flag:'`
13239   (eval echo "\"\$as_me:13239: $lt_compile\"" >&5)
13240   (eval "$lt_compile" 2>out/conftest.err)
13241   ac_status=$?
13242   cat out/conftest.err >&5
13243   echo "$as_me:13243: \$? = $ac_status" >&5
13244   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13245   then
13246     # The compiler can only warn and ignore the option if not recognized
13247     # So say no if there are warnings
13248     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13249     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13250     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13251       lt_cv_prog_compiler_c_o_CXX=yes
13252     fi
13253   fi
13254   chmod u+w . 2>&5
13255   $rm conftest*
13256   # SGI C++ compiler will create directory out/ii_files/ for
13257   # template instantiation
13258   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13259   $rm out/* && rmdir out
13260   cd ..
13261   rmdir conftest
13262   $rm conftest*
13263
13264fi
13265{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13266echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13267
13268
13269hard_links="nottested"
13270if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13271  # do not overwrite the value of need_locks provided by the user
13272  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13273echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13274  hard_links=yes
13275  $rm conftest*
13276  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13277  touch conftest.a
13278  ln conftest.a conftest.b 2>&5 || hard_links=no
13279  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13280  { echo "$as_me:$LINENO: result: $hard_links" >&5
13281echo "${ECHO_T}$hard_links" >&6; }
13282  if test "$hard_links" = no; then
13283    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13284echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13285    need_locks=warn
13286  fi
13287else
13288  need_locks=no
13289fi
13290
13291{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13292echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13293
13294  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13295  case $host_os in
13296  aix4* | aix5*)
13297    # If we're using GNU nm, then we don't want the "-C" option.
13298    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13299    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13300      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'
13301    else
13302      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'
13303    fi
13304    ;;
13305  pw32*)
13306    export_symbols_cmds_CXX="$ltdll_cmds"
13307  ;;
13308  cygwin* | mingw*)
13309    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'
13310  ;;
13311  linux* | k*bsd*-gnu)
13312    link_all_deplibs_CXX=no
13313  ;;
13314  *)
13315    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13316  ;;
13317  esac
13318
13319{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13320echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13321test "$ld_shlibs_CXX" = no && can_build_shared=no
13322
13323#
13324# Do we need to explicitly link libc?
13325#
13326case "x$archive_cmds_need_lc_CXX" in
13327x|xyes)
13328  # Assume -lc should be added
13329  archive_cmds_need_lc_CXX=yes
13330
13331  if test "$enable_shared" = yes && test "$GCC" = yes; then
13332    case $archive_cmds_CXX in
13333    *'~'*)
13334      # FIXME: we may have to deal with multi-command sequences.
13335      ;;
13336    '$CC '*)
13337      # Test whether the compiler implicitly links with -lc since on some
13338      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13339      # to ld, don't add -lc before -lgcc.
13340      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13341echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13342      $rm conftest*
13343      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13344
13345      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13346  (eval $ac_compile) 2>&5
13347  ac_status=$?
13348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349  (exit $ac_status); } 2>conftest.err; then
13350        soname=conftest
13351        lib=conftest
13352        libobjs=conftest.$ac_objext
13353        deplibs=
13354        wl=$lt_prog_compiler_wl_CXX
13355	pic_flag=$lt_prog_compiler_pic_CXX
13356        compiler_flags=-v
13357        linker_flags=-v
13358        verstring=
13359        output_objdir=.
13360        libname=conftest
13361        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13362        allow_undefined_flag_CXX=
13363        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13364  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13365  ac_status=$?
13366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367  (exit $ac_status); }
13368        then
13369	  archive_cmds_need_lc_CXX=no
13370        else
13371	  archive_cmds_need_lc_CXX=yes
13372        fi
13373        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13374      else
13375        cat conftest.err 1>&5
13376      fi
13377      $rm conftest*
13378      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13379echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13380      ;;
13381    esac
13382  fi
13383  ;;
13384esac
13385
13386{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13387echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13388library_names_spec=
13389libname_spec='lib$name'
13390soname_spec=
13391shrext_cmds=".so"
13392postinstall_cmds=
13393postuninstall_cmds=
13394finish_cmds=
13395finish_eval=
13396shlibpath_var=
13397shlibpath_overrides_runpath=unknown
13398version_type=none
13399dynamic_linker="$host_os ld.so"
13400sys_lib_dlsearch_path_spec="/lib /usr/lib"
13401if test "$GCC" = yes; then
13402  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13403  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13404    # if the path contains ";" then we assume it to be the separator
13405    # otherwise default to the standard path separator (i.e. ":") - it is
13406    # assumed that no part of a normal pathname contains ";" but that should
13407    # okay in the real world where ";" in dirpaths is itself problematic.
13408    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13409  else
13410    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13411  fi
13412else
13413  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13414fi
13415need_lib_prefix=unknown
13416hardcode_into_libs=no
13417
13418# when you set need_version to no, make sure it does not cause -set_version
13419# flags to be left without arguments
13420need_version=unknown
13421
13422case $host_os in
13423aix3*)
13424  version_type=linux
13425  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13426  shlibpath_var=LIBPATH
13427
13428  # AIX 3 has no versioning support, so we append a major version to the name.
13429  soname_spec='${libname}${release}${shared_ext}$major'
13430  ;;
13431
13432aix4* | aix5*)
13433  version_type=linux
13434  need_lib_prefix=no
13435  need_version=no
13436  hardcode_into_libs=yes
13437  if test "$host_cpu" = ia64; then
13438    # AIX 5 supports IA64
13439    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13440    shlibpath_var=LD_LIBRARY_PATH
13441  else
13442    # With GCC up to 2.95.x, collect2 would create an import file
13443    # for dependence libraries.  The import file would start with
13444    # the line `#! .'.  This would cause the generated library to
13445    # depend on `.', always an invalid library.  This was fixed in
13446    # development snapshots of GCC prior to 3.0.
13447    case $host_os in
13448      aix4 | aix4.[01] | aix4.[01].*)
13449      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13450	   echo ' yes '
13451	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13452	:
13453      else
13454	can_build_shared=no
13455      fi
13456      ;;
13457    esac
13458    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13459    # soname into executable. Probably we can add versioning support to
13460    # collect2, so additional links can be useful in future.
13461    if test "$aix_use_runtimelinking" = yes; then
13462      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13463      # instead of lib<name>.a to let people know that these are not
13464      # typical AIX shared libraries.
13465      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13466    else
13467      # We preserve .a as extension for shared libraries through AIX4.2
13468      # and later when we are not doing run time linking.
13469      library_names_spec='${libname}${release}.a $libname.a'
13470      soname_spec='${libname}${release}${shared_ext}$major'
13471    fi
13472    shlibpath_var=LIBPATH
13473  fi
13474  ;;
13475
13476amigaos*)
13477  library_names_spec='$libname.ixlibrary $libname.a'
13478  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13479  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'
13480  ;;
13481
13482beos*)
13483  library_names_spec='${libname}${shared_ext}'
13484  dynamic_linker="$host_os ld.so"
13485  shlibpath_var=LIBRARY_PATH
13486  ;;
13487
13488bsdi[45]*)
13489  version_type=linux
13490  need_version=no
13491  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13492  soname_spec='${libname}${release}${shared_ext}$major'
13493  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13494  shlibpath_var=LD_LIBRARY_PATH
13495  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13496  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13497  # the default ld.so.conf also contains /usr/contrib/lib and
13498  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13499  # libtool to hard-code these into programs
13500  ;;
13501
13502cygwin* | mingw* | pw32*)
13503  version_type=windows
13504  shrext_cmds=".dll"
13505  need_version=no
13506  need_lib_prefix=no
13507
13508  case $GCC,$host_os in
13509  yes,cygwin* | yes,mingw* | yes,pw32*)
13510    library_names_spec='$libname.dll.a'
13511    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13512    postinstall_cmds='base_file=`basename \${file}`~
13513      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13514      dldir=$destdir/`dirname \$dlpath`~
13515      test -d \$dldir || mkdir -p \$dldir~
13516      $install_prog $dir/$dlname \$dldir/$dlname~
13517      chmod a+x \$dldir/$dlname'
13518    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13519      dlpath=$dir/\$dldll~
13520       $rm \$dlpath'
13521    shlibpath_overrides_runpath=yes
13522
13523    case $host_os in
13524    cygwin*)
13525      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13526      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13527      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13528      ;;
13529    mingw*)
13530      # MinGW DLLs use traditional 'lib' prefix
13531      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13532      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13533      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13534        # It is most probably a Windows format PATH printed by
13535        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13536        # path with ; separators, and with drive letters. We can handle the
13537        # drive letters (cygwin fileutils understands them), so leave them,
13538        # especially as we might pass files found there to a mingw objdump,
13539        # which wouldn't understand a cygwinified path. Ahh.
13540        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13541      else
13542        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13543      fi
13544      ;;
13545    pw32*)
13546      # pw32 DLLs use 'pw' prefix rather than 'lib'
13547      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13548      ;;
13549    esac
13550    ;;
13551
13552  *)
13553    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13554    ;;
13555  esac
13556  dynamic_linker='Win32 ld.exe'
13557  # FIXME: first we should search . and the directory the executable is in
13558  shlibpath_var=PATH
13559  ;;
13560
13561darwin* | rhapsody*)
13562  dynamic_linker="$host_os dyld"
13563  version_type=darwin
13564  need_lib_prefix=no
13565  need_version=no
13566  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13567  soname_spec='${libname}${release}${major}$shared_ext'
13568  shlibpath_overrides_runpath=yes
13569  shlibpath_var=DYLD_LIBRARY_PATH
13570  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13571  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13572  if test "$GCC" = yes; then
13573    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13574  else
13575    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13576  fi
13577  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13578  ;;
13579
13580dgux*)
13581  version_type=linux
13582  need_lib_prefix=no
13583  need_version=no
13584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13585  soname_spec='${libname}${release}${shared_ext}$major'
13586  shlibpath_var=LD_LIBRARY_PATH
13587  ;;
13588
13589freebsd1*)
13590  dynamic_linker=no
13591  ;;
13592
13593freebsd* | dragonfly*)
13594  # DragonFly does not have aout.  When/if they implement a new
13595  # versioning mechanism, adjust this.
13596  if test -x /usr/bin/objformat; then
13597    objformat=`/usr/bin/objformat`
13598  else
13599    case $host_os in
13600    freebsd[123]*) objformat=aout ;;
13601    *) objformat=elf ;;
13602    esac
13603  fi
13604  version_type=freebsd-$objformat
13605  case $version_type in
13606    freebsd-elf*)
13607      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13608      need_version=no
13609      need_lib_prefix=no
13610      ;;
13611    freebsd-*)
13612      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13613      need_version=yes
13614      ;;
13615  esac
13616  shlibpath_var=LD_LIBRARY_PATH
13617  case $host_os in
13618  freebsd2*)
13619    shlibpath_overrides_runpath=yes
13620    ;;
13621  freebsd3.[01]* | freebsdelf3.[01]*)
13622    shlibpath_overrides_runpath=yes
13623    hardcode_into_libs=yes
13624    ;;
13625  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13626  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13627    shlibpath_overrides_runpath=no
13628    hardcode_into_libs=yes
13629    ;;
13630  freebsd*) # from 4.6 on
13631    shlibpath_overrides_runpath=yes
13632    hardcode_into_libs=yes
13633    ;;
13634  esac
13635  ;;
13636
13637gnu*)
13638  version_type=linux
13639  need_lib_prefix=no
13640  need_version=no
13641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13642  soname_spec='${libname}${release}${shared_ext}$major'
13643  shlibpath_var=LD_LIBRARY_PATH
13644  hardcode_into_libs=yes
13645  ;;
13646
13647hpux9* | hpux10* | hpux11*)
13648  # Give a soname corresponding to the major version so that dld.sl refuses to
13649  # link against other versions.
13650  version_type=sunos
13651  need_lib_prefix=no
13652  need_version=no
13653  case $host_cpu in
13654  ia64*)
13655    shrext_cmds='.so'
13656    hardcode_into_libs=yes
13657    dynamic_linker="$host_os dld.so"
13658    shlibpath_var=LD_LIBRARY_PATH
13659    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13660    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661    soname_spec='${libname}${release}${shared_ext}$major'
13662    if test "X$HPUX_IA64_MODE" = X32; then
13663      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13664    else
13665      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13666    fi
13667    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13668    ;;
13669   hppa*64*)
13670     shrext_cmds='.sl'
13671     hardcode_into_libs=yes
13672     dynamic_linker="$host_os dld.sl"
13673     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13674     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13675     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676     soname_spec='${libname}${release}${shared_ext}$major'
13677     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13678     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13679     ;;
13680   *)
13681    shrext_cmds='.sl'
13682    dynamic_linker="$host_os dld.sl"
13683    shlibpath_var=SHLIB_PATH
13684    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13685    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686    soname_spec='${libname}${release}${shared_ext}$major'
13687    ;;
13688  esac
13689  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13690  postinstall_cmds='chmod 555 $lib'
13691  ;;
13692
13693interix3*)
13694  version_type=linux
13695  need_lib_prefix=no
13696  need_version=no
13697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13698  soname_spec='${libname}${release}${shared_ext}$major'
13699  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13700  shlibpath_var=LD_LIBRARY_PATH
13701  shlibpath_overrides_runpath=no
13702  hardcode_into_libs=yes
13703  ;;
13704
13705irix5* | irix6* | nonstopux*)
13706  case $host_os in
13707    nonstopux*) version_type=nonstopux ;;
13708    *)
13709	if test "$lt_cv_prog_gnu_ld" = yes; then
13710		version_type=linux
13711	else
13712		version_type=irix
13713	fi ;;
13714  esac
13715  need_lib_prefix=no
13716  need_version=no
13717  soname_spec='${libname}${release}${shared_ext}$major'
13718  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13719  case $host_os in
13720  irix5* | nonstopux*)
13721    libsuff= shlibsuff=
13722    ;;
13723  *)
13724    case $LD in # libtool.m4 will add one of these switches to LD
13725    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13726      libsuff= shlibsuff= libmagic=32-bit;;
13727    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13728      libsuff=32 shlibsuff=N32 libmagic=N32;;
13729    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13730      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13731    *) libsuff= shlibsuff= libmagic=never-match;;
13732    esac
13733    ;;
13734  esac
13735  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13736  shlibpath_overrides_runpath=no
13737  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13738  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13739  hardcode_into_libs=yes
13740  ;;
13741
13742# No shared lib support for Linux oldld, aout, or coff.
13743linux*oldld* | linux*aout* | linux*coff*)
13744  dynamic_linker=no
13745  ;;
13746
13747# This must be Linux ELF.
13748linux* | k*bsd*-gnu)
13749  version_type=linux
13750  need_lib_prefix=no
13751  need_version=no
13752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13753  soname_spec='${libname}${release}${shared_ext}$major'
13754  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13755  shlibpath_var=LD_LIBRARY_PATH
13756  shlibpath_overrides_runpath=no
13757  # This implies no fast_install, which is unacceptable.
13758  # Some rework will be needed to allow for fast_install
13759  # before this can be enabled.
13760  hardcode_into_libs=yes
13761
13762  # Append ld.so.conf contents to the search path
13763  if test -f /etc/ld.so.conf; then
13764    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13765    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13766  fi
13767
13768  # We used to test for /lib/ld.so.1 and disable shared libraries on
13769  # powerpc, because MkLinux only supported shared libraries with the
13770  # GNU dynamic linker.  Since this was broken with cross compilers,
13771  # most powerpc-linux boxes support dynamic linking these days and
13772  # people can always --disable-shared, the test was removed, and we
13773  # assume the GNU/Linux dynamic linker is in use.
13774  dynamic_linker='GNU/Linux ld.so'
13775  ;;
13776
13777netbsdelf*-gnu)
13778  version_type=linux
13779  need_lib_prefix=no
13780  need_version=no
13781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13782  soname_spec='${libname}${release}${shared_ext}$major'
13783  shlibpath_var=LD_LIBRARY_PATH
13784  shlibpath_overrides_runpath=no
13785  hardcode_into_libs=yes
13786  dynamic_linker='NetBSD ld.elf_so'
13787  ;;
13788
13789netbsd*)
13790  version_type=sunos
13791  need_lib_prefix=no
13792  need_version=no
13793  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13795    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13796    dynamic_linker='NetBSD (a.out) ld.so'
13797  else
13798    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13799    soname_spec='${libname}${release}${shared_ext}$major'
13800    dynamic_linker='NetBSD ld.elf_so'
13801  fi
13802  shlibpath_var=LD_LIBRARY_PATH
13803  shlibpath_overrides_runpath=yes
13804  hardcode_into_libs=yes
13805  ;;
13806
13807newsos6)
13808  version_type=linux
13809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13810  shlibpath_var=LD_LIBRARY_PATH
13811  shlibpath_overrides_runpath=yes
13812  ;;
13813
13814nto-qnx*)
13815  version_type=linux
13816  need_lib_prefix=no
13817  need_version=no
13818  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819  soname_spec='${libname}${release}${shared_ext}$major'
13820  shlibpath_var=LD_LIBRARY_PATH
13821  shlibpath_overrides_runpath=yes
13822  ;;
13823
13824openbsd*)
13825  version_type=sunos
13826  sys_lib_dlsearch_path_spec="/usr/lib"
13827  need_lib_prefix=no
13828  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13829  case $host_os in
13830    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13831    *)                         need_version=no  ;;
13832  esac
13833  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13834  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13835  shlibpath_var=LD_LIBRARY_PATH
13836  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13837    case $host_os in
13838      openbsd2.[89] | openbsd2.[89].*)
13839	shlibpath_overrides_runpath=no
13840	;;
13841      *)
13842	shlibpath_overrides_runpath=yes
13843	;;
13844      esac
13845  else
13846    shlibpath_overrides_runpath=yes
13847  fi
13848  ;;
13849
13850os2*)
13851  libname_spec='$name'
13852  shrext_cmds=".dll"
13853  need_lib_prefix=no
13854  library_names_spec='$libname${shared_ext} $libname.a'
13855  dynamic_linker='OS/2 ld.exe'
13856  shlibpath_var=LIBPATH
13857  ;;
13858
13859osf3* | osf4* | osf5*)
13860  version_type=osf
13861  need_lib_prefix=no
13862  need_version=no
13863  soname_spec='${libname}${release}${shared_ext}$major'
13864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13865  shlibpath_var=LD_LIBRARY_PATH
13866  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13867  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13868  ;;
13869
13870solaris*)
13871  version_type=linux
13872  need_lib_prefix=no
13873  need_version=no
13874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13875  soname_spec='${libname}${release}${shared_ext}$major'
13876  shlibpath_var=LD_LIBRARY_PATH
13877  shlibpath_overrides_runpath=yes
13878  hardcode_into_libs=yes
13879  # ldd complains unless libraries are executable
13880  postinstall_cmds='chmod +x $lib'
13881  ;;
13882
13883sunos4*)
13884  version_type=sunos
13885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13886  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13887  shlibpath_var=LD_LIBRARY_PATH
13888  shlibpath_overrides_runpath=yes
13889  if test "$with_gnu_ld" = yes; then
13890    need_lib_prefix=no
13891  fi
13892  need_version=yes
13893  ;;
13894
13895sysv4 | sysv4.3*)
13896  version_type=linux
13897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13898  soname_spec='${libname}${release}${shared_ext}$major'
13899  shlibpath_var=LD_LIBRARY_PATH
13900  case $host_vendor in
13901    sni)
13902      shlibpath_overrides_runpath=no
13903      need_lib_prefix=no
13904      export_dynamic_flag_spec='${wl}-Blargedynsym'
13905      runpath_var=LD_RUN_PATH
13906      ;;
13907    siemens)
13908      need_lib_prefix=no
13909      ;;
13910    motorola)
13911      need_lib_prefix=no
13912      need_version=no
13913      shlibpath_overrides_runpath=no
13914      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13915      ;;
13916  esac
13917  ;;
13918
13919sysv4*MP*)
13920  if test -d /usr/nec ;then
13921    version_type=linux
13922    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13923    soname_spec='$libname${shared_ext}.$major'
13924    shlibpath_var=LD_LIBRARY_PATH
13925  fi
13926  ;;
13927
13928sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13929  version_type=freebsd-elf
13930  need_lib_prefix=no
13931  need_version=no
13932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13933  soname_spec='${libname}${release}${shared_ext}$major'
13934  shlibpath_var=LD_LIBRARY_PATH
13935  hardcode_into_libs=yes
13936  if test "$with_gnu_ld" = yes; then
13937    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13938    shlibpath_overrides_runpath=no
13939  else
13940    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13941    shlibpath_overrides_runpath=yes
13942    case $host_os in
13943      sco3.2v5*)
13944        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13945	;;
13946    esac
13947  fi
13948  sys_lib_dlsearch_path_spec='/usr/lib'
13949  ;;
13950
13951uts4*)
13952  version_type=linux
13953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13954  soname_spec='${libname}${release}${shared_ext}$major'
13955  shlibpath_var=LD_LIBRARY_PATH
13956  ;;
13957
13958*)
13959  dynamic_linker=no
13960  ;;
13961esac
13962{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13963echo "${ECHO_T}$dynamic_linker" >&6; }
13964test "$dynamic_linker" = no && can_build_shared=no
13965
13966variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13967if test "$GCC" = yes; then
13968  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13969fi
13970
13971{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13972echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13973hardcode_action_CXX=
13974if test -n "$hardcode_libdir_flag_spec_CXX" || \
13975   test -n "$runpath_var_CXX" || \
13976   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13977
13978  # We can hardcode non-existant directories.
13979  if test "$hardcode_direct_CXX" != no &&
13980     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13981     # have to relink, otherwise we might link with an installed library
13982     # when we should be linking with a yet-to-be-installed one
13983     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13984     test "$hardcode_minus_L_CXX" != no; then
13985    # Linking always hardcodes the temporary library directory.
13986    hardcode_action_CXX=relink
13987  else
13988    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13989    hardcode_action_CXX=immediate
13990  fi
13991else
13992  # We cannot hardcode anything, or else we can only hardcode existing
13993  # directories.
13994  hardcode_action_CXX=unsupported
13995fi
13996{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13997echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13998
13999if test "$hardcode_action_CXX" = relink; then
14000  # Fast installation is not supported
14001  enable_fast_install=no
14002elif test "$shlibpath_overrides_runpath" = yes ||
14003     test "$enable_shared" = no; then
14004  # Fast installation is not necessary
14005  enable_fast_install=needless
14006fi
14007
14008
14009# The else clause should only fire when bootstrapping the
14010# libtool distribution, otherwise you forgot to ship ltmain.sh
14011# with your package, and you will get complaints that there are
14012# no rules to generate ltmain.sh.
14013if test -f "$ltmain"; then
14014  # See if we are running on zsh, and set the options which allow our commands through
14015  # without removal of \ escapes.
14016  if test -n "${ZSH_VERSION+set}" ; then
14017    setopt NO_GLOB_SUBST
14018  fi
14019  # Now quote all the things that may contain metacharacters while being
14020  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14021  # variables and quote the copies for generation of the libtool script.
14022  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14023    SED SHELL STRIP \
14024    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14025    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14026    deplibs_check_method reload_flag reload_cmds need_locks \
14027    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14028    lt_cv_sys_global_symbol_to_c_name_address \
14029    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14030    old_postinstall_cmds old_postuninstall_cmds \
14031    compiler_CXX \
14032    CC_CXX \
14033    LD_CXX \
14034    lt_prog_compiler_wl_CXX \
14035    lt_prog_compiler_pic_CXX \
14036    lt_prog_compiler_static_CXX \
14037    lt_prog_compiler_no_builtin_flag_CXX \
14038    export_dynamic_flag_spec_CXX \
14039    thread_safe_flag_spec_CXX \
14040    whole_archive_flag_spec_CXX \
14041    enable_shared_with_static_runtimes_CXX \
14042    old_archive_cmds_CXX \
14043    old_archive_from_new_cmds_CXX \
14044    predep_objects_CXX \
14045    postdep_objects_CXX \
14046    predeps_CXX \
14047    postdeps_CXX \
14048    compiler_lib_search_path_CXX \
14049    archive_cmds_CXX \
14050    archive_expsym_cmds_CXX \
14051    postinstall_cmds_CXX \
14052    postuninstall_cmds_CXX \
14053    old_archive_from_expsyms_cmds_CXX \
14054    allow_undefined_flag_CXX \
14055    no_undefined_flag_CXX \
14056    export_symbols_cmds_CXX \
14057    hardcode_libdir_flag_spec_CXX \
14058    hardcode_libdir_flag_spec_ld_CXX \
14059    hardcode_libdir_separator_CXX \
14060    hardcode_automatic_CXX \
14061    module_cmds_CXX \
14062    module_expsym_cmds_CXX \
14063    lt_cv_prog_compiler_c_o_CXX \
14064    exclude_expsyms_CXX \
14065    include_expsyms_CXX; do
14066
14067    case $var in
14068    old_archive_cmds_CXX | \
14069    old_archive_from_new_cmds_CXX | \
14070    archive_cmds_CXX | \
14071    archive_expsym_cmds_CXX | \
14072    module_cmds_CXX | \
14073    module_expsym_cmds_CXX | \
14074    old_archive_from_expsyms_cmds_CXX | \
14075    export_symbols_cmds_CXX | \
14076    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14077    postinstall_cmds | postuninstall_cmds | \
14078    old_postinstall_cmds | old_postuninstall_cmds | \
14079    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14080      # Double-quote double-evaled strings.
14081      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14082      ;;
14083    *)
14084      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14085      ;;
14086    esac
14087  done
14088
14089  case $lt_echo in
14090  *'\$0 --fallback-echo"')
14091    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14092    ;;
14093  esac
14094
14095cfgfile="$ofile"
14096
14097  cat <<__EOF__ >> "$cfgfile"
14098# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14099
14100# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14101
14102# Shell to use when invoking shell scripts.
14103SHELL=$lt_SHELL
14104
14105# Whether or not to build shared libraries.
14106build_libtool_libs=$enable_shared
14107
14108# Whether or not to build static libraries.
14109build_old_libs=$enable_static
14110
14111# Whether or not to add -lc for building shared libraries.
14112build_libtool_need_lc=$archive_cmds_need_lc_CXX
14113
14114# Whether or not to disallow shared libs when runtime libs are static
14115allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14116
14117# Whether or not to optimize for fast installation.
14118fast_install=$enable_fast_install
14119
14120# The host system.
14121host_alias=$host_alias
14122host=$host
14123host_os=$host_os
14124
14125# The build system.
14126build_alias=$build_alias
14127build=$build
14128build_os=$build_os
14129
14130# An echo program that does not interpret backslashes.
14131echo=$lt_echo
14132
14133# The archiver.
14134AR=$lt_AR
14135AR_FLAGS=$lt_AR_FLAGS
14136
14137# A C compiler.
14138LTCC=$lt_LTCC
14139
14140# LTCC compiler flags.
14141LTCFLAGS=$lt_LTCFLAGS
14142
14143# A language-specific compiler.
14144CC=$lt_compiler_CXX
14145
14146# Is the compiler the GNU C compiler?
14147with_gcc=$GCC_CXX
14148
14149# An ERE matcher.
14150EGREP=$lt_EGREP
14151
14152# The linker used to build libraries.
14153LD=$lt_LD_CXX
14154
14155# Whether we need hard or soft links.
14156LN_S=$lt_LN_S
14157
14158# A BSD-compatible nm program.
14159NM=$lt_NM
14160
14161# A symbol stripping program
14162STRIP=$lt_STRIP
14163
14164# Used to examine libraries when file_magic_cmd begins "file"
14165MAGIC_CMD=$MAGIC_CMD
14166
14167# Used on cygwin: DLL creation program.
14168DLLTOOL="$DLLTOOL"
14169
14170# Used on cygwin: object dumper.
14171OBJDUMP="$OBJDUMP"
14172
14173# Used on cygwin: assembler.
14174AS="$AS"
14175
14176# The name of the directory that contains temporary libtool files.
14177objdir=$objdir
14178
14179# How to create reloadable object files.
14180reload_flag=$lt_reload_flag
14181reload_cmds=$lt_reload_cmds
14182
14183# How to pass a linker flag through the compiler.
14184wl=$lt_lt_prog_compiler_wl_CXX
14185
14186# Object file suffix (normally "o").
14187objext="$ac_objext"
14188
14189# Old archive suffix (normally "a").
14190libext="$libext"
14191
14192# Shared library suffix (normally ".so").
14193shrext_cmds='$shrext_cmds'
14194
14195# Executable file suffix (normally "").
14196exeext="$exeext"
14197
14198# Additional compiler flags for building library objects.
14199pic_flag=$lt_lt_prog_compiler_pic_CXX
14200pic_mode=$pic_mode
14201
14202# What is the maximum length of a command?
14203max_cmd_len=$lt_cv_sys_max_cmd_len
14204
14205# Does compiler simultaneously support -c and -o options?
14206compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14207
14208# Must we lock files when doing compilation?
14209need_locks=$lt_need_locks
14210
14211# Do we need the lib prefix for modules?
14212need_lib_prefix=$need_lib_prefix
14213
14214# Do we need a version for libraries?
14215need_version=$need_version
14216
14217# Whether dlopen is supported.
14218dlopen_support=$enable_dlopen
14219
14220# Whether dlopen of programs is supported.
14221dlopen_self=$enable_dlopen_self
14222
14223# Whether dlopen of statically linked programs is supported.
14224dlopen_self_static=$enable_dlopen_self_static
14225
14226# Compiler flag to prevent dynamic linking.
14227link_static_flag=$lt_lt_prog_compiler_static_CXX
14228
14229# Compiler flag to turn off builtin functions.
14230no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14231
14232# Compiler flag to allow reflexive dlopens.
14233export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14234
14235# Compiler flag to generate shared objects directly from archives.
14236whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14237
14238# Compiler flag to generate thread-safe objects.
14239thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14240
14241# Library versioning type.
14242version_type=$version_type
14243
14244# Format of library name prefix.
14245libname_spec=$lt_libname_spec
14246
14247# List of archive names.  First name is the real one, the rest are links.
14248# The last name is the one that the linker finds with -lNAME.
14249library_names_spec=$lt_library_names_spec
14250
14251# The coded name of the library, if different from the real name.
14252soname_spec=$lt_soname_spec
14253
14254# Commands used to build and install an old-style archive.
14255RANLIB=$lt_RANLIB
14256old_archive_cmds=$lt_old_archive_cmds_CXX
14257old_postinstall_cmds=$lt_old_postinstall_cmds
14258old_postuninstall_cmds=$lt_old_postuninstall_cmds
14259
14260# Create an old-style archive from a shared archive.
14261old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14262
14263# Create a temporary old-style archive to link instead of a shared archive.
14264old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14265
14266# Commands used to build and install a shared archive.
14267archive_cmds=$lt_archive_cmds_CXX
14268archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14269postinstall_cmds=$lt_postinstall_cmds
14270postuninstall_cmds=$lt_postuninstall_cmds
14271
14272# Commands used to build a loadable module (assumed same as above if empty)
14273module_cmds=$lt_module_cmds_CXX
14274module_expsym_cmds=$lt_module_expsym_cmds_CXX
14275
14276# Commands to strip libraries.
14277old_striplib=$lt_old_striplib
14278striplib=$lt_striplib
14279
14280# Dependencies to place before the objects being linked to create a
14281# shared library.
14282predep_objects=$lt_predep_objects_CXX
14283
14284# Dependencies to place after the objects being linked to create a
14285# shared library.
14286postdep_objects=$lt_postdep_objects_CXX
14287
14288# Dependencies to place before the objects being linked to create a
14289# shared library.
14290predeps=$lt_predeps_CXX
14291
14292# Dependencies to place after the objects being linked to create a
14293# shared library.
14294postdeps=$lt_postdeps_CXX
14295
14296# The library search path used internally by the compiler when linking
14297# a shared library.
14298compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14299
14300# Method to check whether dependent libraries are shared objects.
14301deplibs_check_method=$lt_deplibs_check_method
14302
14303# Command to use when deplibs_check_method == file_magic.
14304file_magic_cmd=$lt_file_magic_cmd
14305
14306# Flag that allows shared libraries with undefined symbols to be built.
14307allow_undefined_flag=$lt_allow_undefined_flag_CXX
14308
14309# Flag that forces no undefined symbols.
14310no_undefined_flag=$lt_no_undefined_flag_CXX
14311
14312# Commands used to finish a libtool library installation in a directory.
14313finish_cmds=$lt_finish_cmds
14314
14315# Same as above, but a single script fragment to be evaled but not shown.
14316finish_eval=$lt_finish_eval
14317
14318# Take the output of nm and produce a listing of raw symbols and C names.
14319global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14320
14321# Transform the output of nm in a proper C declaration
14322global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14323
14324# Transform the output of nm in a C name address pair
14325global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14326
14327# This is the shared library runtime path variable.
14328runpath_var=$runpath_var
14329
14330# This is the shared library path variable.
14331shlibpath_var=$shlibpath_var
14332
14333# Is shlibpath searched before the hard-coded library search path?
14334shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14335
14336# How to hardcode a shared library path into an executable.
14337hardcode_action=$hardcode_action_CXX
14338
14339# Whether we should hardcode library paths into libraries.
14340hardcode_into_libs=$hardcode_into_libs
14341
14342# Flag to hardcode \$libdir into a binary during linking.
14343# This must work even if \$libdir does not exist.
14344hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14345
14346# If ld is used when linking, flag to hardcode \$libdir into
14347# a binary during linking. This must work even if \$libdir does
14348# not exist.
14349hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14350
14351# Whether we need a single -rpath flag with a separated argument.
14352hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14353
14354# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14355# resulting binary.
14356hardcode_direct=$hardcode_direct_CXX
14357
14358# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14359# resulting binary.
14360hardcode_minus_L=$hardcode_minus_L_CXX
14361
14362# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14363# the resulting binary.
14364hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14365
14366# Set to yes if building a shared library automatically hardcodes DIR into the library
14367# and all subsequent libraries and executables linked against it.
14368hardcode_automatic=$hardcode_automatic_CXX
14369
14370# Variables whose values should be saved in libtool wrapper scripts and
14371# restored at relink time.
14372variables_saved_for_relink="$variables_saved_for_relink"
14373
14374# Whether libtool must link a program against all its dependency libraries.
14375link_all_deplibs=$link_all_deplibs_CXX
14376
14377# Compile-time system search path for libraries
14378sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14379
14380# Run-time system search path for libraries
14381sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14382
14383# Fix the shell variable \$srcfile for the compiler.
14384fix_srcfile_path="$fix_srcfile_path_CXX"
14385
14386# Set to yes if exported symbols are required.
14387always_export_symbols=$always_export_symbols_CXX
14388
14389# The commands to list exported symbols.
14390export_symbols_cmds=$lt_export_symbols_cmds_CXX
14391
14392# The commands to extract the exported symbol list from a shared archive.
14393extract_expsyms_cmds=$lt_extract_expsyms_cmds
14394
14395# Symbols that should not be listed in the preloaded symbols.
14396exclude_expsyms=$lt_exclude_expsyms_CXX
14397
14398# Symbols that must always be exported.
14399include_expsyms=$lt_include_expsyms_CXX
14400
14401# ### END LIBTOOL TAG CONFIG: $tagname
14402
14403__EOF__
14404
14405
14406else
14407  # If there is no Makefile yet, we rely on a make rule to execute
14408  # `config.status --recheck' to rerun these tests and create the
14409  # libtool script then.
14410  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14411  if test -f "$ltmain_in"; then
14412    test -f Makefile && make "$ltmain"
14413  fi
14414fi
14415
14416
14417ac_ext=c
14418ac_cpp='$CPP $CPPFLAGS'
14419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14421ac_compiler_gnu=$ac_cv_c_compiler_gnu
14422
14423CC=$lt_save_CC
14424LDCXX=$LD
14425LD=$lt_save_LD
14426GCC=$lt_save_GCC
14427with_gnu_ldcxx=$with_gnu_ld
14428with_gnu_ld=$lt_save_with_gnu_ld
14429lt_cv_path_LDCXX=$lt_cv_path_LD
14430lt_cv_path_LD=$lt_save_path_LD
14431lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14432lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14433
14434	else
14435	  tagname=""
14436	fi
14437	;;
14438
14439      F77)
14440	if test -n "$F77" && test "X$F77" != "Xno"; then
14441
14442ac_ext=f
14443ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14444ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14445ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14446
14447
14448archive_cmds_need_lc_F77=no
14449allow_undefined_flag_F77=
14450always_export_symbols_F77=no
14451archive_expsym_cmds_F77=
14452export_dynamic_flag_spec_F77=
14453hardcode_direct_F77=no
14454hardcode_libdir_flag_spec_F77=
14455hardcode_libdir_flag_spec_ld_F77=
14456hardcode_libdir_separator_F77=
14457hardcode_minus_L_F77=no
14458hardcode_automatic_F77=no
14459module_cmds_F77=
14460module_expsym_cmds_F77=
14461link_all_deplibs_F77=unknown
14462old_archive_cmds_F77=$old_archive_cmds
14463no_undefined_flag_F77=
14464whole_archive_flag_spec_F77=
14465enable_shared_with_static_runtimes_F77=no
14466
14467# Source file extension for f77 test sources.
14468ac_ext=f
14469
14470# Object file extension for compiled f77 test sources.
14471objext=o
14472objext_F77=$objext
14473
14474# Code to be used in simple compile tests
14475lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14476
14477# Code to be used in simple link tests
14478lt_simple_link_test_code="      program t\n      end\n"
14479
14480# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14481
14482# If no C compiler was specified, use CC.
14483LTCC=${LTCC-"$CC"}
14484
14485# If no C compiler flags were specified, use CFLAGS.
14486LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14487
14488# Allow CC to be a program name with arguments.
14489compiler=$CC
14490
14491
14492# save warnings/boilerplate of simple test code
14493ac_outfile=conftest.$ac_objext
14494printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14495eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14496_lt_compiler_boilerplate=`cat conftest.err`
14497$rm conftest*
14498
14499ac_outfile=conftest.$ac_objext
14500printf "$lt_simple_link_test_code" >conftest.$ac_ext
14501eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14502_lt_linker_boilerplate=`cat conftest.err`
14503$rm conftest*
14504
14505
14506# Allow CC to be a program name with arguments.
14507lt_save_CC="$CC"
14508CC=${F77-"f77"}
14509compiler=$CC
14510compiler_F77=$CC
14511for cc_temp in $compiler""; do
14512  case $cc_temp in
14513    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14514    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14515    \-*) ;;
14516    *) break;;
14517  esac
14518done
14519cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14520
14521
14522{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14523echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14524{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14525echo "${ECHO_T}$can_build_shared" >&6; }
14526
14527{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14528echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14529test "$can_build_shared" = "no" && enable_shared=no
14530
14531# On AIX, shared libraries and static libraries use the same namespace, and
14532# are all built from PIC.
14533case $host_os in
14534aix3*)
14535  test "$enable_shared" = yes && enable_static=no
14536  if test -n "$RANLIB"; then
14537    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14538    postinstall_cmds='$RANLIB $lib'
14539  fi
14540  ;;
14541aix4* | aix5*)
14542  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14543    test "$enable_shared" = yes && enable_static=no
14544  fi
14545  ;;
14546esac
14547{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14548echo "${ECHO_T}$enable_shared" >&6; }
14549
14550{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14551echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14552# Make sure either enable_shared or enable_static is yes.
14553test "$enable_shared" = yes || enable_static=yes
14554{ echo "$as_me:$LINENO: result: $enable_static" >&5
14555echo "${ECHO_T}$enable_static" >&6; }
14556
14557GCC_F77="$G77"
14558LD_F77="$LD"
14559
14560lt_prog_compiler_wl_F77=
14561lt_prog_compiler_pic_F77=
14562lt_prog_compiler_static_F77=
14563
14564{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14565echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14566
14567  if test "$GCC" = yes; then
14568    lt_prog_compiler_wl_F77='-Wl,'
14569    lt_prog_compiler_static_F77='-static'
14570
14571    case $host_os in
14572      aix*)
14573      # All AIX code is PIC.
14574      if test "$host_cpu" = ia64; then
14575	# AIX 5 now supports IA64 processor
14576	lt_prog_compiler_static_F77='-Bstatic'
14577      fi
14578      ;;
14579
14580    amigaos*)
14581      # FIXME: we need at least 68020 code to build shared libraries, but
14582      # adding the `-m68020' flag to GCC prevents building anything better,
14583      # like `-m68040'.
14584      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14585      ;;
14586
14587    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14588      # PIC is the default for these OSes.
14589      ;;
14590
14591    mingw* | pw32* | os2*)
14592      # This hack is so that the source file can tell whether it is being
14593      # built for inclusion in a dll (and should export symbols for example).
14594      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14595      ;;
14596
14597    darwin* | rhapsody*)
14598      # PIC is the default on this platform
14599      # Common symbols not allowed in MH_DYLIB files
14600      lt_prog_compiler_pic_F77='-fno-common'
14601      ;;
14602
14603    interix3*)
14604      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14605      # Instead, we relocate shared libraries at runtime.
14606      ;;
14607
14608    msdosdjgpp*)
14609      # Just because we use GCC doesn't mean we suddenly get shared libraries
14610      # on systems that don't support them.
14611      lt_prog_compiler_can_build_shared_F77=no
14612      enable_shared=no
14613      ;;
14614
14615    sysv4*MP*)
14616      if test -d /usr/nec; then
14617	lt_prog_compiler_pic_F77=-Kconform_pic
14618      fi
14619      ;;
14620
14621    hpux*)
14622      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14623      # not for PA HP-UX.
14624      case $host_cpu in
14625      hppa*64*|ia64*)
14626	# +Z the default
14627	;;
14628      *)
14629	lt_prog_compiler_pic_F77='-fPIC'
14630	;;
14631      esac
14632      ;;
14633
14634    *)
14635      lt_prog_compiler_pic_F77='-fPIC'
14636      ;;
14637    esac
14638  else
14639    # PORTME Check for flag to pass linker flags through the system compiler.
14640    case $host_os in
14641    aix*)
14642      lt_prog_compiler_wl_F77='-Wl,'
14643      if test "$host_cpu" = ia64; then
14644	# AIX 5 now supports IA64 processor
14645	lt_prog_compiler_static_F77='-Bstatic'
14646      else
14647	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14648      fi
14649      ;;
14650      darwin*)
14651        # PIC is the default on this platform
14652        # Common symbols not allowed in MH_DYLIB files
14653       case $cc_basename in
14654         xlc*)
14655         lt_prog_compiler_pic_F77='-qnocommon'
14656         lt_prog_compiler_wl_F77='-Wl,'
14657         ;;
14658       esac
14659       ;;
14660
14661    mingw* | pw32* | os2*)
14662      # This hack is so that the source file can tell whether it is being
14663      # built for inclusion in a dll (and should export symbols for example).
14664      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14665      ;;
14666
14667    hpux9* | hpux10* | hpux11*)
14668      lt_prog_compiler_wl_F77='-Wl,'
14669      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14670      # not for PA HP-UX.
14671      case $host_cpu in
14672      hppa*64*|ia64*)
14673	# +Z the default
14674	;;
14675      *)
14676	lt_prog_compiler_pic_F77='+Z'
14677	;;
14678      esac
14679      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14680      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14681      ;;
14682
14683    irix5* | irix6* | nonstopux*)
14684      lt_prog_compiler_wl_F77='-Wl,'
14685      # PIC (with -KPIC) is the default.
14686      lt_prog_compiler_static_F77='-non_shared'
14687      ;;
14688
14689    newsos6)
14690      lt_prog_compiler_pic_F77='-KPIC'
14691      lt_prog_compiler_static_F77='-Bstatic'
14692      ;;
14693
14694    linux* | k*bsd*-gnu)
14695      case $cc_basename in
14696      icc* | ecc*)
14697	lt_prog_compiler_wl_F77='-Wl,'
14698	lt_prog_compiler_pic_F77='-KPIC'
14699	lt_prog_compiler_static_F77='-static'
14700        ;;
14701      pgcc* | pgf77* | pgf90* | pgf95*)
14702        # Portland Group compilers (*not* the Pentium gcc compiler,
14703	# which looks to be a dead project)
14704	lt_prog_compiler_wl_F77='-Wl,'
14705	lt_prog_compiler_pic_F77='-fpic'
14706	lt_prog_compiler_static_F77='-Bstatic'
14707        ;;
14708      ccc*)
14709        lt_prog_compiler_wl_F77='-Wl,'
14710        # All Alpha code is PIC.
14711        lt_prog_compiler_static_F77='-non_shared'
14712        ;;
14713      esac
14714      ;;
14715
14716    osf3* | osf4* | osf5*)
14717      lt_prog_compiler_wl_F77='-Wl,'
14718      # All OSF/1 code is PIC.
14719      lt_prog_compiler_static_F77='-non_shared'
14720      ;;
14721
14722    solaris*)
14723      lt_prog_compiler_pic_F77='-KPIC'
14724      lt_prog_compiler_static_F77='-Bstatic'
14725      case $cc_basename in
14726      f77* | f90* | f95*)
14727	lt_prog_compiler_wl_F77='-Qoption ld ';;
14728      *)
14729	lt_prog_compiler_wl_F77='-Wl,';;
14730      esac
14731      ;;
14732
14733    sunos4*)
14734      lt_prog_compiler_wl_F77='-Qoption ld '
14735      lt_prog_compiler_pic_F77='-PIC'
14736      lt_prog_compiler_static_F77='-Bstatic'
14737      ;;
14738
14739    sysv4 | sysv4.2uw2* | sysv4.3*)
14740      lt_prog_compiler_wl_F77='-Wl,'
14741      lt_prog_compiler_pic_F77='-KPIC'
14742      lt_prog_compiler_static_F77='-Bstatic'
14743      ;;
14744
14745    sysv4*MP*)
14746      if test -d /usr/nec ;then
14747	lt_prog_compiler_pic_F77='-Kconform_pic'
14748	lt_prog_compiler_static_F77='-Bstatic'
14749      fi
14750      ;;
14751
14752    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14753      lt_prog_compiler_wl_F77='-Wl,'
14754      lt_prog_compiler_pic_F77='-KPIC'
14755      lt_prog_compiler_static_F77='-Bstatic'
14756      ;;
14757
14758    unicos*)
14759      lt_prog_compiler_wl_F77='-Wl,'
14760      lt_prog_compiler_can_build_shared_F77=no
14761      ;;
14762
14763    uts4*)
14764      lt_prog_compiler_pic_F77='-pic'
14765      lt_prog_compiler_static_F77='-Bstatic'
14766      ;;
14767
14768    *)
14769      lt_prog_compiler_can_build_shared_F77=no
14770      ;;
14771    esac
14772  fi
14773
14774{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14775echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14776
14777#
14778# Check to make sure the PIC flag actually works.
14779#
14780if test -n "$lt_prog_compiler_pic_F77"; then
14781
14782{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14783echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14784if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14785  echo $ECHO_N "(cached) $ECHO_C" >&6
14786else
14787  lt_prog_compiler_pic_works_F77=no
14788  ac_outfile=conftest.$ac_objext
14789   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14790   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14791   # Insert the option either (1) after the last *FLAGS variable, or
14792   # (2) before a word containing "conftest.", or (3) at the end.
14793   # Note that $ac_compile itself does not contain backslashes and begins
14794   # with a dollar sign (not a hyphen), so the echo should work correctly.
14795   # The option is referenced via a variable to avoid confusing sed.
14796   lt_compile=`echo "$ac_compile" | $SED \
14797   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14799   -e 's:$: $lt_compiler_flag:'`
14800   (eval echo "\"\$as_me:14800: $lt_compile\"" >&5)
14801   (eval "$lt_compile" 2>conftest.err)
14802   ac_status=$?
14803   cat conftest.err >&5
14804   echo "$as_me:14804: \$? = $ac_status" >&5
14805   if (exit $ac_status) && test -s "$ac_outfile"; then
14806     # The compiler can only warn and ignore the option if not recognized
14807     # So say no if there are warnings other than the usual output.
14808     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14809     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14810     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14811       lt_prog_compiler_pic_works_F77=yes
14812     fi
14813   fi
14814   $rm conftest*
14815
14816fi
14817{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14818echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14819
14820if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14821    case $lt_prog_compiler_pic_F77 in
14822     "" | " "*) ;;
14823     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14824     esac
14825else
14826    lt_prog_compiler_pic_F77=
14827     lt_prog_compiler_can_build_shared_F77=no
14828fi
14829
14830fi
14831case $host_os in
14832  # For platforms which do not support PIC, -DPIC is meaningless:
14833  *djgpp*)
14834    lt_prog_compiler_pic_F77=
14835    ;;
14836  *)
14837    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14838    ;;
14839esac
14840
14841#
14842# Check to make sure the static flag actually works.
14843#
14844wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14845{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14846echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14847if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14848  echo $ECHO_N "(cached) $ECHO_C" >&6
14849else
14850  lt_prog_compiler_static_works_F77=no
14851   save_LDFLAGS="$LDFLAGS"
14852   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14853   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14854   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14855     # The linker can only warn and ignore the option if not recognized
14856     # So say no if there are warnings
14857     if test -s conftest.err; then
14858       # Append any errors to the config.log.
14859       cat conftest.err 1>&5
14860       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14861       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14862       if diff conftest.exp conftest.er2 >/dev/null; then
14863         lt_prog_compiler_static_works_F77=yes
14864       fi
14865     else
14866       lt_prog_compiler_static_works_F77=yes
14867     fi
14868   fi
14869   $rm conftest*
14870   LDFLAGS="$save_LDFLAGS"
14871
14872fi
14873{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14874echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14875
14876if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14877    :
14878else
14879    lt_prog_compiler_static_F77=
14880fi
14881
14882
14883{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14884echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14885if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14886  echo $ECHO_N "(cached) $ECHO_C" >&6
14887else
14888  lt_cv_prog_compiler_c_o_F77=no
14889   $rm -r conftest 2>/dev/null
14890   mkdir conftest
14891   cd conftest
14892   mkdir out
14893   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14894
14895   lt_compiler_flag="-o out/conftest2.$ac_objext"
14896   # Insert the option either (1) after the last *FLAGS variable, or
14897   # (2) before a word containing "conftest.", or (3) at the end.
14898   # Note that $ac_compile itself does not contain backslashes and begins
14899   # with a dollar sign (not a hyphen), so the echo should work correctly.
14900   lt_compile=`echo "$ac_compile" | $SED \
14901   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14902   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14903   -e 's:$: $lt_compiler_flag:'`
14904   (eval echo "\"\$as_me:14904: $lt_compile\"" >&5)
14905   (eval "$lt_compile" 2>out/conftest.err)
14906   ac_status=$?
14907   cat out/conftest.err >&5
14908   echo "$as_me:14908: \$? = $ac_status" >&5
14909   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14910   then
14911     # The compiler can only warn and ignore the option if not recognized
14912     # So say no if there are warnings
14913     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14914     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14915     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14916       lt_cv_prog_compiler_c_o_F77=yes
14917     fi
14918   fi
14919   chmod u+w . 2>&5
14920   $rm conftest*
14921   # SGI C++ compiler will create directory out/ii_files/ for
14922   # template instantiation
14923   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14924   $rm out/* && rmdir out
14925   cd ..
14926   rmdir conftest
14927   $rm conftest*
14928
14929fi
14930{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14931echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14932
14933
14934hard_links="nottested"
14935if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14936  # do not overwrite the value of need_locks provided by the user
14937  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14938echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14939  hard_links=yes
14940  $rm conftest*
14941  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14942  touch conftest.a
14943  ln conftest.a conftest.b 2>&5 || hard_links=no
14944  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14945  { echo "$as_me:$LINENO: result: $hard_links" >&5
14946echo "${ECHO_T}$hard_links" >&6; }
14947  if test "$hard_links" = no; then
14948    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14949echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14950    need_locks=warn
14951  fi
14952else
14953  need_locks=no
14954fi
14955
14956{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14957echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14958
14959  runpath_var=
14960  allow_undefined_flag_F77=
14961  enable_shared_with_static_runtimes_F77=no
14962  archive_cmds_F77=
14963  archive_expsym_cmds_F77=
14964  old_archive_From_new_cmds_F77=
14965  old_archive_from_expsyms_cmds_F77=
14966  export_dynamic_flag_spec_F77=
14967  whole_archive_flag_spec_F77=
14968  thread_safe_flag_spec_F77=
14969  hardcode_libdir_flag_spec_F77=
14970  hardcode_libdir_flag_spec_ld_F77=
14971  hardcode_libdir_separator_F77=
14972  hardcode_direct_F77=no
14973  hardcode_minus_L_F77=no
14974  hardcode_shlibpath_var_F77=unsupported
14975  link_all_deplibs_F77=unknown
14976  hardcode_automatic_F77=no
14977  module_cmds_F77=
14978  module_expsym_cmds_F77=
14979  always_export_symbols_F77=no
14980  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14981  # include_expsyms should be a list of space-separated symbols to be *always*
14982  # included in the symbol list
14983  include_expsyms_F77=
14984  # exclude_expsyms can be an extended regexp of symbols to exclude
14985  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14986  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14987  # as well as any symbol that contains `d'.
14988  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14989  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14990  # platforms (ab)use it in PIC code, but their linkers get confused if
14991  # the symbol is explicitly referenced.  Since portable code cannot
14992  # rely on this symbol name, it's probably fine to never include it in
14993  # preloaded symbol tables.
14994  extract_expsyms_cmds=
14995  # Just being paranoid about ensuring that cc_basename is set.
14996  for cc_temp in $compiler""; do
14997  case $cc_temp in
14998    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14999    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15000    \-*) ;;
15001    *) break;;
15002  esac
15003done
15004cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15005
15006  case $host_os in
15007  cygwin* | mingw* | pw32*)
15008    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15009    # When not using gcc, we currently assume that we are using
15010    # Microsoft Visual C++.
15011    if test "$GCC" != yes; then
15012      with_gnu_ld=no
15013    fi
15014    ;;
15015  interix*)
15016    # we just hope/assume this is gcc and not c89 (= MSVC++)
15017    with_gnu_ld=yes
15018    ;;
15019  openbsd*)
15020    with_gnu_ld=no
15021    ;;
15022  esac
15023
15024  ld_shlibs_F77=yes
15025  if test "$with_gnu_ld" = yes; then
15026    # If archive_cmds runs LD, not CC, wlarc should be empty
15027    wlarc='${wl}'
15028
15029    # Set some defaults for GNU ld with shared library support. These
15030    # are reset later if shared libraries are not supported. Putting them
15031    # here allows them to be overridden if necessary.
15032    runpath_var=LD_RUN_PATH
15033    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15034    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15035    # ancient GNU ld didn't support --whole-archive et. al.
15036    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15037	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15038      else
15039  	whole_archive_flag_spec_F77=
15040    fi
15041    supports_anon_versioning=no
15042    case `$LD -v 2>/dev/null` in
15043      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15044      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15045      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15046      *\ 2.11.*) ;; # other 2.11 versions
15047      *) supports_anon_versioning=yes ;;
15048    esac
15049
15050    # See if GNU ld supports shared libraries.
15051    case $host_os in
15052    aix3* | aix4* | aix5*)
15053      # On AIX/PPC, the GNU linker is very broken
15054      if test "$host_cpu" != ia64; then
15055	ld_shlibs_F77=no
15056	cat <<EOF 1>&2
15057
15058*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15059*** to be unable to reliably create shared libraries on AIX.
15060*** Therefore, libtool is disabling shared libraries support.  If you
15061*** really care for shared libraries, you may want to modify your PATH
15062*** so that a non-GNU linker is found, and then restart.
15063
15064EOF
15065      fi
15066      ;;
15067
15068    amigaos*)
15069      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)'
15070      hardcode_libdir_flag_spec_F77='-L$libdir'
15071      hardcode_minus_L_F77=yes
15072
15073      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15074      # that the semantics of dynamic libraries on AmigaOS, at least up
15075      # to version 4, is to share data among multiple programs linked
15076      # with the same dynamic library.  Since this doesn't match the
15077      # behavior of shared libraries on other platforms, we can't use
15078      # them.
15079      ld_shlibs_F77=no
15080      ;;
15081
15082    beos*)
15083      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15084	allow_undefined_flag_F77=unsupported
15085	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15086	# support --undefined.  This deserves some investigation.  FIXME
15087	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15088      else
15089	ld_shlibs_F77=no
15090      fi
15091      ;;
15092
15093    cygwin* | mingw* | pw32*)
15094      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15095      # as there is no search path for DLLs.
15096      hardcode_libdir_flag_spec_F77='-L$libdir'
15097      allow_undefined_flag_F77=unsupported
15098      always_export_symbols_F77=no
15099      enable_shared_with_static_runtimes_F77=yes
15100      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15101
15102      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15103        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15104	# If the export-symbols file already is a .def file (1st line
15105	# is EXPORTS), use it as is; otherwise, prepend...
15106	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15107	  cp $export_symbols $output_objdir/$soname.def;
15108	else
15109	  echo EXPORTS > $output_objdir/$soname.def;
15110	  cat $export_symbols >> $output_objdir/$soname.def;
15111	fi~
15112	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15113      else
15114	ld_shlibs_F77=no
15115      fi
15116      ;;
15117
15118    interix3*)
15119      hardcode_direct_F77=no
15120      hardcode_shlibpath_var_F77=no
15121      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15122      export_dynamic_flag_spec_F77='${wl}-E'
15123      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15124      # Instead, shared libraries are loaded at an image base (0x10000000 by
15125      # default) and relocated if they conflict, which is a slow very memory
15126      # consuming and fragmenting process.  To avoid this, we pick a random,
15127      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15128      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15129      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'
15130      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'
15131      ;;
15132
15133    linux* | k*bsd*-gnu)
15134      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15135	tmp_addflag=
15136	case $cc_basename,$host_cpu in
15137	pgcc*)				# Portland Group C compiler
15138	  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'
15139	  tmp_addflag=' $pic_flag'
15140	  ;;
15141	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15142	  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'
15143	  tmp_addflag=' $pic_flag -Mnomain' ;;
15144	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15145	  tmp_addflag=' -i_dynamic' ;;
15146	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15147	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15148	ifc* | ifort*)			# Intel Fortran compiler
15149	  tmp_addflag=' -nofor_main' ;;
15150	esac
15151	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15152
15153	if test $supports_anon_versioning = yes; then
15154	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15155  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15156  $echo "local: *; };" >> $output_objdir/$libname.ver~
15157	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15158	fi
15159	link_all_deplibs_F77=no
15160      else
15161	ld_shlibs_F77=no
15162      fi
15163      ;;
15164
15165    netbsd* | netbsdelf*-gnu)
15166      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15167	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15168	wlarc=
15169      else
15170	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15171	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15172      fi
15173      ;;
15174
15175    solaris*)
15176      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15177	ld_shlibs_F77=no
15178	cat <<EOF 1>&2
15179
15180*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15181*** create shared libraries on Solaris systems.  Therefore, libtool
15182*** is disabling shared libraries support.  We urge you to upgrade GNU
15183*** binutils to release 2.9.1 or newer.  Another option is to modify
15184*** your PATH or compiler configuration so that the native linker is
15185*** used, and then restart.
15186
15187EOF
15188      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15189	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15190	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15191      else
15192	ld_shlibs_F77=no
15193      fi
15194      ;;
15195
15196    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15197      case `$LD -v 2>&1` in
15198        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15199	ld_shlibs_F77=no
15200	cat <<_LT_EOF 1>&2
15201
15202*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15203*** reliably create shared libraries on SCO systems.  Therefore, libtool
15204*** is disabling shared libraries support.  We urge you to upgrade GNU
15205*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15206*** your PATH or compiler configuration so that the native linker is
15207*** used, and then restart.
15208
15209_LT_EOF
15210	;;
15211	*)
15212	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15213	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15214	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15215	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15216	  else
15217	    ld_shlibs_F77=no
15218	  fi
15219	;;
15220      esac
15221      ;;
15222
15223    sunos4*)
15224      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15225      wlarc=
15226      hardcode_direct_F77=yes
15227      hardcode_shlibpath_var_F77=no
15228      ;;
15229
15230    *)
15231      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15232	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15233	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15234      else
15235	ld_shlibs_F77=no
15236      fi
15237      ;;
15238    esac
15239
15240    if test "$ld_shlibs_F77" = no; then
15241      runpath_var=
15242      hardcode_libdir_flag_spec_F77=
15243      export_dynamic_flag_spec_F77=
15244      whole_archive_flag_spec_F77=
15245    fi
15246  else
15247    # PORTME fill in a description of your system's linker (not GNU ld)
15248    case $host_os in
15249    aix3*)
15250      allow_undefined_flag_F77=unsupported
15251      always_export_symbols_F77=yes
15252      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'
15253      # Note: this linker hardcodes the directories in LIBPATH if there
15254      # are no directories specified by -L.
15255      hardcode_minus_L_F77=yes
15256      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15257	# Neither direct hardcoding nor static linking is supported with a
15258	# broken collect2.
15259	hardcode_direct_F77=unsupported
15260      fi
15261      ;;
15262
15263    aix4* | aix5*)
15264      if test "$host_cpu" = ia64; then
15265	# On IA64, the linker does run time linking by default, so we don't
15266	# have to do anything special.
15267	aix_use_runtimelinking=no
15268	exp_sym_flag='-Bexport'
15269	no_entry_flag=""
15270      else
15271	# If we're using GNU nm, then we don't want the "-C" option.
15272	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15273	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15274	  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'
15275	else
15276	  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'
15277	fi
15278	aix_use_runtimelinking=no
15279
15280	# Test if we are trying to use run time linking or normal
15281	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15282	# need to do runtime linking.
15283	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15284	  for ld_flag in $LDFLAGS; do
15285  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15286  	    aix_use_runtimelinking=yes
15287  	    break
15288  	  fi
15289	  done
15290	  ;;
15291	esac
15292
15293	exp_sym_flag='-bexport'
15294	no_entry_flag='-bnoentry'
15295      fi
15296
15297      # When large executables or shared objects are built, AIX ld can
15298      # have problems creating the table of contents.  If linking a library
15299      # or program results in "error TOC overflow" add -mminimal-toc to
15300      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15301      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15302
15303      archive_cmds_F77=''
15304      hardcode_direct_F77=yes
15305      hardcode_libdir_separator_F77=':'
15306      link_all_deplibs_F77=yes
15307
15308      if test "$GCC" = yes; then
15309	case $host_os in aix4.[012]|aix4.[012].*)
15310	# We only want to do this on AIX 4.2 and lower, the check
15311	# below for broken collect2 doesn't work under 4.3+
15312	  collect2name=`${CC} -print-prog-name=collect2`
15313	  if test -f "$collect2name" && \
15314  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15315	  then
15316  	  # We have reworked collect2
15317  	  hardcode_direct_F77=yes
15318	  else
15319  	  # We have old collect2
15320  	  hardcode_direct_F77=unsupported
15321  	  # It fails to find uninstalled libraries when the uninstalled
15322  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15323  	  # to unsupported forces relinking
15324  	  hardcode_minus_L_F77=yes
15325  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15326  	  hardcode_libdir_separator_F77=
15327	  fi
15328	  ;;
15329	esac
15330	shared_flag='-shared'
15331	if test "$aix_use_runtimelinking" = yes; then
15332	  shared_flag="$shared_flag "'${wl}-G'
15333	fi
15334      else
15335	# not using gcc
15336	if test "$host_cpu" = ia64; then
15337  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15338  	# chokes on -Wl,-G. The following line is correct:
15339	  shared_flag='-G'
15340	else
15341	  if test "$aix_use_runtimelinking" = yes; then
15342	    shared_flag='${wl}-G'
15343	  else
15344	    shared_flag='${wl}-bM:SRE'
15345	  fi
15346	fi
15347      fi
15348
15349      # It seems that -bexpall does not export symbols beginning with
15350      # underscore (_), so it is better to generate a list of symbols to export.
15351      always_export_symbols_F77=yes
15352      if test "$aix_use_runtimelinking" = yes; then
15353	# Warning - without using the other runtime loading flags (-brtl),
15354	# -berok will link without error, but may produce a broken library.
15355	allow_undefined_flag_F77='-berok'
15356       # Determine the default libpath from the value encoded in an empty executable.
15357       cat >conftest.$ac_ext <<_ACEOF
15358      program main
15359
15360      end
15361_ACEOF
15362rm -f conftest.$ac_objext conftest$ac_exeext
15363if { (ac_try="$ac_link"
15364case "(($ac_try" in
15365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366  *) ac_try_echo=$ac_try;;
15367esac
15368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369  (eval "$ac_link") 2>conftest.er1
15370  ac_status=$?
15371  grep -v '^ *+' conftest.er1 >conftest.err
15372  rm -f conftest.er1
15373  cat conftest.err >&5
15374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375  (exit $ac_status); } && {
15376	 test -z "$ac_f77_werror_flag" ||
15377	 test ! -s conftest.err
15378       } && test -s conftest$ac_exeext &&
15379       $as_test_x conftest$ac_exeext; then
15380
15381aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15382}'`
15383# Check for a 64-bit object if we didn't find anything.
15384if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15385}'`; fi
15386else
15387  echo "$as_me: failed program was:" >&5
15388sed 's/^/| /' conftest.$ac_ext >&5
15389
15390
15391fi
15392
15393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15394      conftest$ac_exeext conftest.$ac_ext
15395if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15396
15397       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15398	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"
15399       else
15400	if test "$host_cpu" = ia64; then
15401	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15402	  allow_undefined_flag_F77="-z nodefs"
15403	  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"
15404	else
15405	 # Determine the default libpath from the value encoded in an empty executable.
15406	 cat >conftest.$ac_ext <<_ACEOF
15407      program main
15408
15409      end
15410_ACEOF
15411rm -f conftest.$ac_objext conftest$ac_exeext
15412if { (ac_try="$ac_link"
15413case "(($ac_try" in
15414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15415  *) ac_try_echo=$ac_try;;
15416esac
15417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15418  (eval "$ac_link") 2>conftest.er1
15419  ac_status=$?
15420  grep -v '^ *+' conftest.er1 >conftest.err
15421  rm -f conftest.er1
15422  cat conftest.err >&5
15423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424  (exit $ac_status); } && {
15425	 test -z "$ac_f77_werror_flag" ||
15426	 test ! -s conftest.err
15427       } && test -s conftest$ac_exeext &&
15428       $as_test_x conftest$ac_exeext; then
15429
15430aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15431}'`
15432# Check for a 64-bit object if we didn't find anything.
15433if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15434}'`; fi
15435else
15436  echo "$as_me: failed program was:" >&5
15437sed 's/^/| /' conftest.$ac_ext >&5
15438
15439
15440fi
15441
15442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15443      conftest$ac_exeext conftest.$ac_ext
15444if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15445
15446	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15447	  # Warning - without using the other run time loading flags,
15448	  # -berok will link without error, but may produce a broken library.
15449	  no_undefined_flag_F77=' ${wl}-bernotok'
15450	  allow_undefined_flag_F77=' ${wl}-berok'
15451	  # Exported symbols can be pulled into shared objects from archives
15452	  whole_archive_flag_spec_F77='$convenience'
15453	  archive_cmds_need_lc_F77=yes
15454	  # This is similar to how AIX traditionally builds its shared libraries.
15455	  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'
15456	fi
15457      fi
15458      ;;
15459
15460    amigaos*)
15461      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)'
15462      hardcode_libdir_flag_spec_F77='-L$libdir'
15463      hardcode_minus_L_F77=yes
15464      # see comment about different semantics on the GNU ld section
15465      ld_shlibs_F77=no
15466      ;;
15467
15468    bsdi[45]*)
15469      export_dynamic_flag_spec_F77=-rdynamic
15470      ;;
15471
15472    cygwin* | mingw* | pw32*)
15473      # When not using gcc, we currently assume that we are using
15474      # Microsoft Visual C++.
15475      # hardcode_libdir_flag_spec is actually meaningless, as there is
15476      # no search path for DLLs.
15477      hardcode_libdir_flag_spec_F77=' '
15478      allow_undefined_flag_F77=unsupported
15479      # Tell ltmain to make .lib files, not .a files.
15480      libext=lib
15481      # Tell ltmain to make .dll files, not .so files.
15482      shrext_cmds=".dll"
15483      # FIXME: Setting linknames here is a bad hack.
15484      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15485      # The linker will automatically build a .lib file if we build a DLL.
15486      old_archive_From_new_cmds_F77='true'
15487      # FIXME: Should let the user specify the lib program.
15488      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15489      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15490      enable_shared_with_static_runtimes_F77=yes
15491      ;;
15492
15493    darwin* | rhapsody*)
15494      case $host_os in
15495        rhapsody* | darwin1.[012])
15496         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15497         ;;
15498       *) # Darwin 1.3 on
15499         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15500           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15501         else
15502           case ${MACOSX_DEPLOYMENT_TARGET} in
15503             10.[012])
15504               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15505               ;;
15506             10.*)
15507               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15508               ;;
15509           esac
15510         fi
15511         ;;
15512      esac
15513      archive_cmds_need_lc_F77=no
15514      hardcode_direct_F77=no
15515      hardcode_automatic_F77=yes
15516      hardcode_shlibpath_var_F77=unsupported
15517      whole_archive_flag_spec_F77=''
15518      link_all_deplibs_F77=yes
15519    if test "$GCC" = yes ; then
15520    	output_verbose_link_cmd='echo'
15521        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15522      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15523      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15524      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15525      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}'
15526    else
15527      case $cc_basename in
15528        xlc*)
15529         output_verbose_link_cmd='echo'
15530         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15531         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15532          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15533         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15534          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}'
15535          ;;
15536       *)
15537         ld_shlibs_F77=no
15538          ;;
15539      esac
15540    fi
15541      ;;
15542
15543    dgux*)
15544      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545      hardcode_libdir_flag_spec_F77='-L$libdir'
15546      hardcode_shlibpath_var_F77=no
15547      ;;
15548
15549    freebsd1*)
15550      ld_shlibs_F77=no
15551      ;;
15552
15553    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15554    # support.  Future versions do this automatically, but an explicit c++rt0.o
15555    # does not break anything, and helps significantly (at the cost of a little
15556    # extra space).
15557    freebsd2.2*)
15558      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15559      hardcode_libdir_flag_spec_F77='-R$libdir'
15560      hardcode_direct_F77=yes
15561      hardcode_shlibpath_var_F77=no
15562      ;;
15563
15564    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15565    freebsd2*)
15566      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15567      hardcode_direct_F77=yes
15568      hardcode_minus_L_F77=yes
15569      hardcode_shlibpath_var_F77=no
15570      ;;
15571
15572    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15573    freebsd* | dragonfly*)
15574      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15575      hardcode_libdir_flag_spec_F77='-R$libdir'
15576      hardcode_direct_F77=yes
15577      hardcode_shlibpath_var_F77=no
15578      ;;
15579
15580    hpux9*)
15581      if test "$GCC" = yes; then
15582	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'
15583      else
15584	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'
15585      fi
15586      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15587      hardcode_libdir_separator_F77=:
15588      hardcode_direct_F77=yes
15589
15590      # hardcode_minus_L: Not really in the search PATH,
15591      # but as the default location of the library.
15592      hardcode_minus_L_F77=yes
15593      export_dynamic_flag_spec_F77='${wl}-E'
15594      ;;
15595
15596    hpux10*)
15597      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15598	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15599      else
15600	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15601      fi
15602      if test "$with_gnu_ld" = no; then
15603	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15604	hardcode_libdir_separator_F77=:
15605
15606	hardcode_direct_F77=yes
15607	export_dynamic_flag_spec_F77='${wl}-E'
15608
15609	# hardcode_minus_L: Not really in the search PATH,
15610	# but as the default location of the library.
15611	hardcode_minus_L_F77=yes
15612      fi
15613      ;;
15614
15615    hpux11*)
15616      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15617	case $host_cpu in
15618	hppa*64*)
15619	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15620	  ;;
15621	ia64*)
15622	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15623	  ;;
15624	*)
15625	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15626	  ;;
15627	esac
15628      else
15629	case $host_cpu in
15630	hppa*64*)
15631	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15632	  ;;
15633	ia64*)
15634	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15635	  ;;
15636	*)
15637	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15638	  ;;
15639	esac
15640      fi
15641      if test "$with_gnu_ld" = no; then
15642	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15643	hardcode_libdir_separator_F77=:
15644
15645	case $host_cpu in
15646	hppa*64*|ia64*)
15647	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15648	  hardcode_direct_F77=no
15649	  hardcode_shlibpath_var_F77=no
15650	  ;;
15651	*)
15652	  hardcode_direct_F77=yes
15653	  export_dynamic_flag_spec_F77='${wl}-E'
15654
15655	  # hardcode_minus_L: Not really in the search PATH,
15656	  # but as the default location of the library.
15657	  hardcode_minus_L_F77=yes
15658	  ;;
15659	esac
15660      fi
15661      ;;
15662
15663    irix5* | irix6* | nonstopux*)
15664      if test "$GCC" = yes; then
15665	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'
15666      else
15667	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'
15668	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15669      fi
15670      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15671      hardcode_libdir_separator_F77=:
15672      link_all_deplibs_F77=yes
15673      ;;
15674
15675    netbsd* | netbsdelf*-gnu)
15676      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15677	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15678      else
15679	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15680      fi
15681      hardcode_libdir_flag_spec_F77='-R$libdir'
15682      hardcode_direct_F77=yes
15683      hardcode_shlibpath_var_F77=no
15684      ;;
15685
15686    newsos6)
15687      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15688      hardcode_direct_F77=yes
15689      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15690      hardcode_libdir_separator_F77=:
15691      hardcode_shlibpath_var_F77=no
15692      ;;
15693
15694    openbsd*)
15695      hardcode_direct_F77=yes
15696      hardcode_shlibpath_var_F77=no
15697      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15698	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15699	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15700	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15701	export_dynamic_flag_spec_F77='${wl}-E'
15702      else
15703       case $host_os in
15704	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15705	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15706	   hardcode_libdir_flag_spec_F77='-R$libdir'
15707	   ;;
15708	 *)
15709	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15710	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15711	   ;;
15712       esac
15713      fi
15714      ;;
15715
15716    os2*)
15717      hardcode_libdir_flag_spec_F77='-L$libdir'
15718      hardcode_minus_L_F77=yes
15719      allow_undefined_flag_F77=unsupported
15720      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'
15721      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15722      ;;
15723
15724    osf3*)
15725      if test "$GCC" = yes; then
15726	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15727	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'
15728      else
15729	allow_undefined_flag_F77=' -expect_unresolved \*'
15730	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'
15731      fi
15732      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15733      hardcode_libdir_separator_F77=:
15734      ;;
15735
15736    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15737      if test "$GCC" = yes; then
15738	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15739	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'
15740	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15741      else
15742	allow_undefined_flag_F77=' -expect_unresolved \*'
15743	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'
15744	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~
15745	$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'
15746
15747	# Both c and cxx compiler support -rpath directly
15748	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15749      fi
15750      hardcode_libdir_separator_F77=:
15751      ;;
15752
15753    solaris*)
15754      no_undefined_flag_F77=' -z text'
15755      if test "$GCC" = yes; then
15756	wlarc='${wl}'
15757	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15758	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15759	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15760      else
15761	wlarc=''
15762	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15763	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15764  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15765      fi
15766      hardcode_libdir_flag_spec_F77='-R$libdir'
15767      hardcode_shlibpath_var_F77=no
15768      case $host_os in
15769      solaris2.[0-5] | solaris2.[0-5].*) ;;
15770      *)
15771 	# The compiler driver will combine linker options so we
15772 	# cannot just pass the convience library names through
15773 	# without $wl, iff we do not link with $LD.
15774 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15775 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15776 	case $wlarc in
15777 	'')
15778 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15779 	*)
15780 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15781 	esac ;;
15782      esac
15783      link_all_deplibs_F77=yes
15784      ;;
15785
15786    sunos4*)
15787      if test "x$host_vendor" = xsequent; then
15788	# Use $CC to link under sequent, because it throws in some extra .o
15789	# files that make .init and .fini sections work.
15790	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15791      else
15792	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15793      fi
15794      hardcode_libdir_flag_spec_F77='-L$libdir'
15795      hardcode_direct_F77=yes
15796      hardcode_minus_L_F77=yes
15797      hardcode_shlibpath_var_F77=no
15798      ;;
15799
15800    sysv4)
15801      case $host_vendor in
15802	sni)
15803	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15804	  hardcode_direct_F77=yes # is this really true???
15805	;;
15806	siemens)
15807	  ## LD is ld it makes a PLAMLIB
15808	  ## CC just makes a GrossModule.
15809	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15810	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15811	  hardcode_direct_F77=no
15812        ;;
15813	motorola)
15814	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15815	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15816	;;
15817      esac
15818      runpath_var='LD_RUN_PATH'
15819      hardcode_shlibpath_var_F77=no
15820      ;;
15821
15822    sysv4.3*)
15823      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15824      hardcode_shlibpath_var_F77=no
15825      export_dynamic_flag_spec_F77='-Bexport'
15826      ;;
15827
15828    sysv4*MP*)
15829      if test -d /usr/nec; then
15830	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15831	hardcode_shlibpath_var_F77=no
15832	runpath_var=LD_RUN_PATH
15833	hardcode_runpath_var=yes
15834	ld_shlibs_F77=yes
15835      fi
15836      ;;
15837
15838    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15839      no_undefined_flag_F77='${wl}-z,text'
15840      archive_cmds_need_lc_F77=no
15841      hardcode_shlibpath_var_F77=no
15842      runpath_var='LD_RUN_PATH'
15843
15844      if test "$GCC" = yes; then
15845	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15846	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15847      else
15848	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15849	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15850      fi
15851      ;;
15852
15853    sysv5* | sco3.2v5* | sco5v6*)
15854      # Note: We can NOT use -z defs as we might desire, because we do not
15855      # link with -lc, and that would cause any symbols used from libc to
15856      # always be unresolved, which means just about no library would
15857      # ever link correctly.  If we're not using GNU ld we use -z text
15858      # though, which does catch some bad symbols but isn't as heavy-handed
15859      # as -z defs.
15860      no_undefined_flag_F77='${wl}-z,text'
15861      allow_undefined_flag_F77='${wl}-z,nodefs'
15862      archive_cmds_need_lc_F77=no
15863      hardcode_shlibpath_var_F77=no
15864      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15865      hardcode_libdir_separator_F77=':'
15866      link_all_deplibs_F77=yes
15867      export_dynamic_flag_spec_F77='${wl}-Bexport'
15868      runpath_var='LD_RUN_PATH'
15869
15870      if test "$GCC" = yes; then
15871	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15872	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15873      else
15874	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15875	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15876      fi
15877      ;;
15878
15879    uts4*)
15880      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881      hardcode_libdir_flag_spec_F77='-L$libdir'
15882      hardcode_shlibpath_var_F77=no
15883      ;;
15884
15885    *)
15886      ld_shlibs_F77=no
15887      ;;
15888    esac
15889  fi
15890
15891{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15892echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15893test "$ld_shlibs_F77" = no && can_build_shared=no
15894
15895#
15896# Do we need to explicitly link libc?
15897#
15898case "x$archive_cmds_need_lc_F77" in
15899x|xyes)
15900  # Assume -lc should be added
15901  archive_cmds_need_lc_F77=yes
15902
15903  if test "$enable_shared" = yes && test "$GCC" = yes; then
15904    case $archive_cmds_F77 in
15905    *'~'*)
15906      # FIXME: we may have to deal with multi-command sequences.
15907      ;;
15908    '$CC '*)
15909      # Test whether the compiler implicitly links with -lc since on some
15910      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15911      # to ld, don't add -lc before -lgcc.
15912      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15913echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15914      $rm conftest*
15915      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15916
15917      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15918  (eval $ac_compile) 2>&5
15919  ac_status=$?
15920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15921  (exit $ac_status); } 2>conftest.err; then
15922        soname=conftest
15923        lib=conftest
15924        libobjs=conftest.$ac_objext
15925        deplibs=
15926        wl=$lt_prog_compiler_wl_F77
15927	pic_flag=$lt_prog_compiler_pic_F77
15928        compiler_flags=-v
15929        linker_flags=-v
15930        verstring=
15931        output_objdir=.
15932        libname=conftest
15933        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15934        allow_undefined_flag_F77=
15935        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15936  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15937  ac_status=$?
15938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939  (exit $ac_status); }
15940        then
15941	  archive_cmds_need_lc_F77=no
15942        else
15943	  archive_cmds_need_lc_F77=yes
15944        fi
15945        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15946      else
15947        cat conftest.err 1>&5
15948      fi
15949      $rm conftest*
15950      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15951echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15952      ;;
15953    esac
15954  fi
15955  ;;
15956esac
15957
15958{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15959echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15960library_names_spec=
15961libname_spec='lib$name'
15962soname_spec=
15963shrext_cmds=".so"
15964postinstall_cmds=
15965postuninstall_cmds=
15966finish_cmds=
15967finish_eval=
15968shlibpath_var=
15969shlibpath_overrides_runpath=unknown
15970version_type=none
15971dynamic_linker="$host_os ld.so"
15972sys_lib_dlsearch_path_spec="/lib /usr/lib"
15973if test "$GCC" = yes; then
15974  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15975  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15976    # if the path contains ";" then we assume it to be the separator
15977    # otherwise default to the standard path separator (i.e. ":") - it is
15978    # assumed that no part of a normal pathname contains ";" but that should
15979    # okay in the real world where ";" in dirpaths is itself problematic.
15980    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15981  else
15982    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15983  fi
15984else
15985  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15986fi
15987need_lib_prefix=unknown
15988hardcode_into_libs=no
15989
15990# when you set need_version to no, make sure it does not cause -set_version
15991# flags to be left without arguments
15992need_version=unknown
15993
15994case $host_os in
15995aix3*)
15996  version_type=linux
15997  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15998  shlibpath_var=LIBPATH
15999
16000  # AIX 3 has no versioning support, so we append a major version to the name.
16001  soname_spec='${libname}${release}${shared_ext}$major'
16002  ;;
16003
16004aix4* | aix5*)
16005  version_type=linux
16006  need_lib_prefix=no
16007  need_version=no
16008  hardcode_into_libs=yes
16009  if test "$host_cpu" = ia64; then
16010    # AIX 5 supports IA64
16011    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16012    shlibpath_var=LD_LIBRARY_PATH
16013  else
16014    # With GCC up to 2.95.x, collect2 would create an import file
16015    # for dependence libraries.  The import file would start with
16016    # the line `#! .'.  This would cause the generated library to
16017    # depend on `.', always an invalid library.  This was fixed in
16018    # development snapshots of GCC prior to 3.0.
16019    case $host_os in
16020      aix4 | aix4.[01] | aix4.[01].*)
16021      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16022	   echo ' yes '
16023	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16024	:
16025      else
16026	can_build_shared=no
16027      fi
16028      ;;
16029    esac
16030    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16031    # soname into executable. Probably we can add versioning support to
16032    # collect2, so additional links can be useful in future.
16033    if test "$aix_use_runtimelinking" = yes; then
16034      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16035      # instead of lib<name>.a to let people know that these are not
16036      # typical AIX shared libraries.
16037      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16038    else
16039      # We preserve .a as extension for shared libraries through AIX4.2
16040      # and later when we are not doing run time linking.
16041      library_names_spec='${libname}${release}.a $libname.a'
16042      soname_spec='${libname}${release}${shared_ext}$major'
16043    fi
16044    shlibpath_var=LIBPATH
16045  fi
16046  ;;
16047
16048amigaos*)
16049  library_names_spec='$libname.ixlibrary $libname.a'
16050  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16051  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'
16052  ;;
16053
16054beos*)
16055  library_names_spec='${libname}${shared_ext}'
16056  dynamic_linker="$host_os ld.so"
16057  shlibpath_var=LIBRARY_PATH
16058  ;;
16059
16060bsdi[45]*)
16061  version_type=linux
16062  need_version=no
16063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064  soname_spec='${libname}${release}${shared_ext}$major'
16065  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066  shlibpath_var=LD_LIBRARY_PATH
16067  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069  # the default ld.so.conf also contains /usr/contrib/lib and
16070  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071  # libtool to hard-code these into programs
16072  ;;
16073
16074cygwin* | mingw* | pw32*)
16075  version_type=windows
16076  shrext_cmds=".dll"
16077  need_version=no
16078  need_lib_prefix=no
16079
16080  case $GCC,$host_os in
16081  yes,cygwin* | yes,mingw* | yes,pw32*)
16082    library_names_spec='$libname.dll.a'
16083    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084    postinstall_cmds='base_file=`basename \${file}`~
16085      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16086      dldir=$destdir/`dirname \$dlpath`~
16087      test -d \$dldir || mkdir -p \$dldir~
16088      $install_prog $dir/$dlname \$dldir/$dlname~
16089      chmod a+x \$dldir/$dlname'
16090    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16091      dlpath=$dir/\$dldll~
16092       $rm \$dlpath'
16093    shlibpath_overrides_runpath=yes
16094
16095    case $host_os in
16096    cygwin*)
16097      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16098      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16099      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16100      ;;
16101    mingw*)
16102      # MinGW DLLs use traditional 'lib' prefix
16103      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16104      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16105      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16106        # It is most probably a Windows format PATH printed by
16107        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16108        # path with ; separators, and with drive letters. We can handle the
16109        # drive letters (cygwin fileutils understands them), so leave them,
16110        # especially as we might pass files found there to a mingw objdump,
16111        # which wouldn't understand a cygwinified path. Ahh.
16112        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16113      else
16114        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16115      fi
16116      ;;
16117    pw32*)
16118      # pw32 DLLs use 'pw' prefix rather than 'lib'
16119      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16120      ;;
16121    esac
16122    ;;
16123
16124  *)
16125    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16126    ;;
16127  esac
16128  dynamic_linker='Win32 ld.exe'
16129  # FIXME: first we should search . and the directory the executable is in
16130  shlibpath_var=PATH
16131  ;;
16132
16133darwin* | rhapsody*)
16134  dynamic_linker="$host_os dyld"
16135  version_type=darwin
16136  need_lib_prefix=no
16137  need_version=no
16138  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16139  soname_spec='${libname}${release}${major}$shared_ext'
16140  shlibpath_overrides_runpath=yes
16141  shlibpath_var=DYLD_LIBRARY_PATH
16142  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16143  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16144  if test "$GCC" = yes; then
16145    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16146  else
16147    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16148  fi
16149  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16150  ;;
16151
16152dgux*)
16153  version_type=linux
16154  need_lib_prefix=no
16155  need_version=no
16156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16157  soname_spec='${libname}${release}${shared_ext}$major'
16158  shlibpath_var=LD_LIBRARY_PATH
16159  ;;
16160
16161freebsd1*)
16162  dynamic_linker=no
16163  ;;
16164
16165freebsd* | dragonfly*)
16166  # DragonFly does not have aout.  When/if they implement a new
16167  # versioning mechanism, adjust this.
16168  if test -x /usr/bin/objformat; then
16169    objformat=`/usr/bin/objformat`
16170  else
16171    case $host_os in
16172    freebsd[123]*) objformat=aout ;;
16173    *) objformat=elf ;;
16174    esac
16175  fi
16176  version_type=freebsd-$objformat
16177  case $version_type in
16178    freebsd-elf*)
16179      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16180      need_version=no
16181      need_lib_prefix=no
16182      ;;
16183    freebsd-*)
16184      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16185      need_version=yes
16186      ;;
16187  esac
16188  shlibpath_var=LD_LIBRARY_PATH
16189  case $host_os in
16190  freebsd2*)
16191    shlibpath_overrides_runpath=yes
16192    ;;
16193  freebsd3.[01]* | freebsdelf3.[01]*)
16194    shlibpath_overrides_runpath=yes
16195    hardcode_into_libs=yes
16196    ;;
16197  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16198  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16199    shlibpath_overrides_runpath=no
16200    hardcode_into_libs=yes
16201    ;;
16202  freebsd*) # from 4.6 on
16203    shlibpath_overrides_runpath=yes
16204    hardcode_into_libs=yes
16205    ;;
16206  esac
16207  ;;
16208
16209gnu*)
16210  version_type=linux
16211  need_lib_prefix=no
16212  need_version=no
16213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16214  soname_spec='${libname}${release}${shared_ext}$major'
16215  shlibpath_var=LD_LIBRARY_PATH
16216  hardcode_into_libs=yes
16217  ;;
16218
16219hpux9* | hpux10* | hpux11*)
16220  # Give a soname corresponding to the major version so that dld.sl refuses to
16221  # link against other versions.
16222  version_type=sunos
16223  need_lib_prefix=no
16224  need_version=no
16225  case $host_cpu in
16226  ia64*)
16227    shrext_cmds='.so'
16228    hardcode_into_libs=yes
16229    dynamic_linker="$host_os dld.so"
16230    shlibpath_var=LD_LIBRARY_PATH
16231    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16232    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16233    soname_spec='${libname}${release}${shared_ext}$major'
16234    if test "X$HPUX_IA64_MODE" = X32; then
16235      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16236    else
16237      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16238    fi
16239    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16240    ;;
16241   hppa*64*)
16242     shrext_cmds='.sl'
16243     hardcode_into_libs=yes
16244     dynamic_linker="$host_os dld.sl"
16245     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16246     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16248     soname_spec='${libname}${release}${shared_ext}$major'
16249     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16250     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16251     ;;
16252   *)
16253    shrext_cmds='.sl'
16254    dynamic_linker="$host_os dld.sl"
16255    shlibpath_var=SHLIB_PATH
16256    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16257    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16258    soname_spec='${libname}${release}${shared_ext}$major'
16259    ;;
16260  esac
16261  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16262  postinstall_cmds='chmod 555 $lib'
16263  ;;
16264
16265interix3*)
16266  version_type=linux
16267  need_lib_prefix=no
16268  need_version=no
16269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16270  soname_spec='${libname}${release}${shared_ext}$major'
16271  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16272  shlibpath_var=LD_LIBRARY_PATH
16273  shlibpath_overrides_runpath=no
16274  hardcode_into_libs=yes
16275  ;;
16276
16277irix5* | irix6* | nonstopux*)
16278  case $host_os in
16279    nonstopux*) version_type=nonstopux ;;
16280    *)
16281	if test "$lt_cv_prog_gnu_ld" = yes; then
16282		version_type=linux
16283	else
16284		version_type=irix
16285	fi ;;
16286  esac
16287  need_lib_prefix=no
16288  need_version=no
16289  soname_spec='${libname}${release}${shared_ext}$major'
16290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16291  case $host_os in
16292  irix5* | nonstopux*)
16293    libsuff= shlibsuff=
16294    ;;
16295  *)
16296    case $LD in # libtool.m4 will add one of these switches to LD
16297    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16298      libsuff= shlibsuff= libmagic=32-bit;;
16299    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16300      libsuff=32 shlibsuff=N32 libmagic=N32;;
16301    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16302      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16303    *) libsuff= shlibsuff= libmagic=never-match;;
16304    esac
16305    ;;
16306  esac
16307  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16308  shlibpath_overrides_runpath=no
16309  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16310  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16311  hardcode_into_libs=yes
16312  ;;
16313
16314# No shared lib support for Linux oldld, aout, or coff.
16315linux*oldld* | linux*aout* | linux*coff*)
16316  dynamic_linker=no
16317  ;;
16318
16319# This must be Linux ELF.
16320linux* | k*bsd*-gnu)
16321  version_type=linux
16322  need_lib_prefix=no
16323  need_version=no
16324  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325  soname_spec='${libname}${release}${shared_ext}$major'
16326  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16327  shlibpath_var=LD_LIBRARY_PATH
16328  shlibpath_overrides_runpath=no
16329  # This implies no fast_install, which is unacceptable.
16330  # Some rework will be needed to allow for fast_install
16331  # before this can be enabled.
16332  hardcode_into_libs=yes
16333
16334  # Append ld.so.conf contents to the search path
16335  if test -f /etc/ld.so.conf; then
16336    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16337    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16338  fi
16339
16340  # We used to test for /lib/ld.so.1 and disable shared libraries on
16341  # powerpc, because MkLinux only supported shared libraries with the
16342  # GNU dynamic linker.  Since this was broken with cross compilers,
16343  # most powerpc-linux boxes support dynamic linking these days and
16344  # people can always --disable-shared, the test was removed, and we
16345  # assume the GNU/Linux dynamic linker is in use.
16346  dynamic_linker='GNU/Linux ld.so'
16347  ;;
16348
16349netbsdelf*-gnu)
16350  version_type=linux
16351  need_lib_prefix=no
16352  need_version=no
16353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16354  soname_spec='${libname}${release}${shared_ext}$major'
16355  shlibpath_var=LD_LIBRARY_PATH
16356  shlibpath_overrides_runpath=no
16357  hardcode_into_libs=yes
16358  dynamic_linker='NetBSD ld.elf_so'
16359  ;;
16360
16361netbsd*)
16362  version_type=sunos
16363  need_lib_prefix=no
16364  need_version=no
16365  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16367    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16368    dynamic_linker='NetBSD (a.out) ld.so'
16369  else
16370    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16371    soname_spec='${libname}${release}${shared_ext}$major'
16372    dynamic_linker='NetBSD ld.elf_so'
16373  fi
16374  shlibpath_var=LD_LIBRARY_PATH
16375  shlibpath_overrides_runpath=yes
16376  hardcode_into_libs=yes
16377  ;;
16378
16379newsos6)
16380  version_type=linux
16381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16382  shlibpath_var=LD_LIBRARY_PATH
16383  shlibpath_overrides_runpath=yes
16384  ;;
16385
16386nto-qnx*)
16387  version_type=linux
16388  need_lib_prefix=no
16389  need_version=no
16390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16391  soname_spec='${libname}${release}${shared_ext}$major'
16392  shlibpath_var=LD_LIBRARY_PATH
16393  shlibpath_overrides_runpath=yes
16394  ;;
16395
16396openbsd*)
16397  version_type=sunos
16398  sys_lib_dlsearch_path_spec="/usr/lib"
16399  need_lib_prefix=no
16400  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16401  case $host_os in
16402    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16403    *)                         need_version=no  ;;
16404  esac
16405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16406  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16407  shlibpath_var=LD_LIBRARY_PATH
16408  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16409    case $host_os in
16410      openbsd2.[89] | openbsd2.[89].*)
16411	shlibpath_overrides_runpath=no
16412	;;
16413      *)
16414	shlibpath_overrides_runpath=yes
16415	;;
16416      esac
16417  else
16418    shlibpath_overrides_runpath=yes
16419  fi
16420  ;;
16421
16422os2*)
16423  libname_spec='$name'
16424  shrext_cmds=".dll"
16425  need_lib_prefix=no
16426  library_names_spec='$libname${shared_ext} $libname.a'
16427  dynamic_linker='OS/2 ld.exe'
16428  shlibpath_var=LIBPATH
16429  ;;
16430
16431osf3* | osf4* | osf5*)
16432  version_type=osf
16433  need_lib_prefix=no
16434  need_version=no
16435  soname_spec='${libname}${release}${shared_ext}$major'
16436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437  shlibpath_var=LD_LIBRARY_PATH
16438  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16439  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16440  ;;
16441
16442solaris*)
16443  version_type=linux
16444  need_lib_prefix=no
16445  need_version=no
16446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447  soname_spec='${libname}${release}${shared_ext}$major'
16448  shlibpath_var=LD_LIBRARY_PATH
16449  shlibpath_overrides_runpath=yes
16450  hardcode_into_libs=yes
16451  # ldd complains unless libraries are executable
16452  postinstall_cmds='chmod +x $lib'
16453  ;;
16454
16455sunos4*)
16456  version_type=sunos
16457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16458  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16459  shlibpath_var=LD_LIBRARY_PATH
16460  shlibpath_overrides_runpath=yes
16461  if test "$with_gnu_ld" = yes; then
16462    need_lib_prefix=no
16463  fi
16464  need_version=yes
16465  ;;
16466
16467sysv4 | sysv4.3*)
16468  version_type=linux
16469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16470  soname_spec='${libname}${release}${shared_ext}$major'
16471  shlibpath_var=LD_LIBRARY_PATH
16472  case $host_vendor in
16473    sni)
16474      shlibpath_overrides_runpath=no
16475      need_lib_prefix=no
16476      export_dynamic_flag_spec='${wl}-Blargedynsym'
16477      runpath_var=LD_RUN_PATH
16478      ;;
16479    siemens)
16480      need_lib_prefix=no
16481      ;;
16482    motorola)
16483      need_lib_prefix=no
16484      need_version=no
16485      shlibpath_overrides_runpath=no
16486      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16487      ;;
16488  esac
16489  ;;
16490
16491sysv4*MP*)
16492  if test -d /usr/nec ;then
16493    version_type=linux
16494    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16495    soname_spec='$libname${shared_ext}.$major'
16496    shlibpath_var=LD_LIBRARY_PATH
16497  fi
16498  ;;
16499
16500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16501  version_type=freebsd-elf
16502  need_lib_prefix=no
16503  need_version=no
16504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16505  soname_spec='${libname}${release}${shared_ext}$major'
16506  shlibpath_var=LD_LIBRARY_PATH
16507  hardcode_into_libs=yes
16508  if test "$with_gnu_ld" = yes; then
16509    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16510    shlibpath_overrides_runpath=no
16511  else
16512    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16513    shlibpath_overrides_runpath=yes
16514    case $host_os in
16515      sco3.2v5*)
16516        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16517	;;
16518    esac
16519  fi
16520  sys_lib_dlsearch_path_spec='/usr/lib'
16521  ;;
16522
16523uts4*)
16524  version_type=linux
16525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16526  soname_spec='${libname}${release}${shared_ext}$major'
16527  shlibpath_var=LD_LIBRARY_PATH
16528  ;;
16529
16530*)
16531  dynamic_linker=no
16532  ;;
16533esac
16534{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16535echo "${ECHO_T}$dynamic_linker" >&6; }
16536test "$dynamic_linker" = no && can_build_shared=no
16537
16538variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16539if test "$GCC" = yes; then
16540  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16541fi
16542
16543{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16544echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16545hardcode_action_F77=
16546if test -n "$hardcode_libdir_flag_spec_F77" || \
16547   test -n "$runpath_var_F77" || \
16548   test "X$hardcode_automatic_F77" = "Xyes" ; then
16549
16550  # We can hardcode non-existant directories.
16551  if test "$hardcode_direct_F77" != no &&
16552     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16553     # have to relink, otherwise we might link with an installed library
16554     # when we should be linking with a yet-to-be-installed one
16555     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16556     test "$hardcode_minus_L_F77" != no; then
16557    # Linking always hardcodes the temporary library directory.
16558    hardcode_action_F77=relink
16559  else
16560    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16561    hardcode_action_F77=immediate
16562  fi
16563else
16564  # We cannot hardcode anything, or else we can only hardcode existing
16565  # directories.
16566  hardcode_action_F77=unsupported
16567fi
16568{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16569echo "${ECHO_T}$hardcode_action_F77" >&6; }
16570
16571if test "$hardcode_action_F77" = relink; then
16572  # Fast installation is not supported
16573  enable_fast_install=no
16574elif test "$shlibpath_overrides_runpath" = yes ||
16575     test "$enable_shared" = no; then
16576  # Fast installation is not necessary
16577  enable_fast_install=needless
16578fi
16579
16580
16581# The else clause should only fire when bootstrapping the
16582# libtool distribution, otherwise you forgot to ship ltmain.sh
16583# with your package, and you will get complaints that there are
16584# no rules to generate ltmain.sh.
16585if test -f "$ltmain"; then
16586  # See if we are running on zsh, and set the options which allow our commands through
16587  # without removal of \ escapes.
16588  if test -n "${ZSH_VERSION+set}" ; then
16589    setopt NO_GLOB_SUBST
16590  fi
16591  # Now quote all the things that may contain metacharacters while being
16592  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16593  # variables and quote the copies for generation of the libtool script.
16594  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16595    SED SHELL STRIP \
16596    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16597    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16598    deplibs_check_method reload_flag reload_cmds need_locks \
16599    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16600    lt_cv_sys_global_symbol_to_c_name_address \
16601    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16602    old_postinstall_cmds old_postuninstall_cmds \
16603    compiler_F77 \
16604    CC_F77 \
16605    LD_F77 \
16606    lt_prog_compiler_wl_F77 \
16607    lt_prog_compiler_pic_F77 \
16608    lt_prog_compiler_static_F77 \
16609    lt_prog_compiler_no_builtin_flag_F77 \
16610    export_dynamic_flag_spec_F77 \
16611    thread_safe_flag_spec_F77 \
16612    whole_archive_flag_spec_F77 \
16613    enable_shared_with_static_runtimes_F77 \
16614    old_archive_cmds_F77 \
16615    old_archive_from_new_cmds_F77 \
16616    predep_objects_F77 \
16617    postdep_objects_F77 \
16618    predeps_F77 \
16619    postdeps_F77 \
16620    compiler_lib_search_path_F77 \
16621    archive_cmds_F77 \
16622    archive_expsym_cmds_F77 \
16623    postinstall_cmds_F77 \
16624    postuninstall_cmds_F77 \
16625    old_archive_from_expsyms_cmds_F77 \
16626    allow_undefined_flag_F77 \
16627    no_undefined_flag_F77 \
16628    export_symbols_cmds_F77 \
16629    hardcode_libdir_flag_spec_F77 \
16630    hardcode_libdir_flag_spec_ld_F77 \
16631    hardcode_libdir_separator_F77 \
16632    hardcode_automatic_F77 \
16633    module_cmds_F77 \
16634    module_expsym_cmds_F77 \
16635    lt_cv_prog_compiler_c_o_F77 \
16636    exclude_expsyms_F77 \
16637    include_expsyms_F77; do
16638
16639    case $var in
16640    old_archive_cmds_F77 | \
16641    old_archive_from_new_cmds_F77 | \
16642    archive_cmds_F77 | \
16643    archive_expsym_cmds_F77 | \
16644    module_cmds_F77 | \
16645    module_expsym_cmds_F77 | \
16646    old_archive_from_expsyms_cmds_F77 | \
16647    export_symbols_cmds_F77 | \
16648    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16649    postinstall_cmds | postuninstall_cmds | \
16650    old_postinstall_cmds | old_postuninstall_cmds | \
16651    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16652      # Double-quote double-evaled strings.
16653      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16654      ;;
16655    *)
16656      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16657      ;;
16658    esac
16659  done
16660
16661  case $lt_echo in
16662  *'\$0 --fallback-echo"')
16663    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16664    ;;
16665  esac
16666
16667cfgfile="$ofile"
16668
16669  cat <<__EOF__ >> "$cfgfile"
16670# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16671
16672# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16673
16674# Shell to use when invoking shell scripts.
16675SHELL=$lt_SHELL
16676
16677# Whether or not to build shared libraries.
16678build_libtool_libs=$enable_shared
16679
16680# Whether or not to build static libraries.
16681build_old_libs=$enable_static
16682
16683# Whether or not to add -lc for building shared libraries.
16684build_libtool_need_lc=$archive_cmds_need_lc_F77
16685
16686# Whether or not to disallow shared libs when runtime libs are static
16687allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16688
16689# Whether or not to optimize for fast installation.
16690fast_install=$enable_fast_install
16691
16692# The host system.
16693host_alias=$host_alias
16694host=$host
16695host_os=$host_os
16696
16697# The build system.
16698build_alias=$build_alias
16699build=$build
16700build_os=$build_os
16701
16702# An echo program that does not interpret backslashes.
16703echo=$lt_echo
16704
16705# The archiver.
16706AR=$lt_AR
16707AR_FLAGS=$lt_AR_FLAGS
16708
16709# A C compiler.
16710LTCC=$lt_LTCC
16711
16712# LTCC compiler flags.
16713LTCFLAGS=$lt_LTCFLAGS
16714
16715# A language-specific compiler.
16716CC=$lt_compiler_F77
16717
16718# Is the compiler the GNU C compiler?
16719with_gcc=$GCC_F77
16720
16721# An ERE matcher.
16722EGREP=$lt_EGREP
16723
16724# The linker used to build libraries.
16725LD=$lt_LD_F77
16726
16727# Whether we need hard or soft links.
16728LN_S=$lt_LN_S
16729
16730# A BSD-compatible nm program.
16731NM=$lt_NM
16732
16733# A symbol stripping program
16734STRIP=$lt_STRIP
16735
16736# Used to examine libraries when file_magic_cmd begins "file"
16737MAGIC_CMD=$MAGIC_CMD
16738
16739# Used on cygwin: DLL creation program.
16740DLLTOOL="$DLLTOOL"
16741
16742# Used on cygwin: object dumper.
16743OBJDUMP="$OBJDUMP"
16744
16745# Used on cygwin: assembler.
16746AS="$AS"
16747
16748# The name of the directory that contains temporary libtool files.
16749objdir=$objdir
16750
16751# How to create reloadable object files.
16752reload_flag=$lt_reload_flag
16753reload_cmds=$lt_reload_cmds
16754
16755# How to pass a linker flag through the compiler.
16756wl=$lt_lt_prog_compiler_wl_F77
16757
16758# Object file suffix (normally "o").
16759objext="$ac_objext"
16760
16761# Old archive suffix (normally "a").
16762libext="$libext"
16763
16764# Shared library suffix (normally ".so").
16765shrext_cmds='$shrext_cmds'
16766
16767# Executable file suffix (normally "").
16768exeext="$exeext"
16769
16770# Additional compiler flags for building library objects.
16771pic_flag=$lt_lt_prog_compiler_pic_F77
16772pic_mode=$pic_mode
16773
16774# What is the maximum length of a command?
16775max_cmd_len=$lt_cv_sys_max_cmd_len
16776
16777# Does compiler simultaneously support -c and -o options?
16778compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16779
16780# Must we lock files when doing compilation?
16781need_locks=$lt_need_locks
16782
16783# Do we need the lib prefix for modules?
16784need_lib_prefix=$need_lib_prefix
16785
16786# Do we need a version for libraries?
16787need_version=$need_version
16788
16789# Whether dlopen is supported.
16790dlopen_support=$enable_dlopen
16791
16792# Whether dlopen of programs is supported.
16793dlopen_self=$enable_dlopen_self
16794
16795# Whether dlopen of statically linked programs is supported.
16796dlopen_self_static=$enable_dlopen_self_static
16797
16798# Compiler flag to prevent dynamic linking.
16799link_static_flag=$lt_lt_prog_compiler_static_F77
16800
16801# Compiler flag to turn off builtin functions.
16802no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16803
16804# Compiler flag to allow reflexive dlopens.
16805export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16806
16807# Compiler flag to generate shared objects directly from archives.
16808whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16809
16810# Compiler flag to generate thread-safe objects.
16811thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16812
16813# Library versioning type.
16814version_type=$version_type
16815
16816# Format of library name prefix.
16817libname_spec=$lt_libname_spec
16818
16819# List of archive names.  First name is the real one, the rest are links.
16820# The last name is the one that the linker finds with -lNAME.
16821library_names_spec=$lt_library_names_spec
16822
16823# The coded name of the library, if different from the real name.
16824soname_spec=$lt_soname_spec
16825
16826# Commands used to build and install an old-style archive.
16827RANLIB=$lt_RANLIB
16828old_archive_cmds=$lt_old_archive_cmds_F77
16829old_postinstall_cmds=$lt_old_postinstall_cmds
16830old_postuninstall_cmds=$lt_old_postuninstall_cmds
16831
16832# Create an old-style archive from a shared archive.
16833old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16834
16835# Create a temporary old-style archive to link instead of a shared archive.
16836old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16837
16838# Commands used to build and install a shared archive.
16839archive_cmds=$lt_archive_cmds_F77
16840archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16841postinstall_cmds=$lt_postinstall_cmds
16842postuninstall_cmds=$lt_postuninstall_cmds
16843
16844# Commands used to build a loadable module (assumed same as above if empty)
16845module_cmds=$lt_module_cmds_F77
16846module_expsym_cmds=$lt_module_expsym_cmds_F77
16847
16848# Commands to strip libraries.
16849old_striplib=$lt_old_striplib
16850striplib=$lt_striplib
16851
16852# Dependencies to place before the objects being linked to create a
16853# shared library.
16854predep_objects=$lt_predep_objects_F77
16855
16856# Dependencies to place after the objects being linked to create a
16857# shared library.
16858postdep_objects=$lt_postdep_objects_F77
16859
16860# Dependencies to place before the objects being linked to create a
16861# shared library.
16862predeps=$lt_predeps_F77
16863
16864# Dependencies to place after the objects being linked to create a
16865# shared library.
16866postdeps=$lt_postdeps_F77
16867
16868# The library search path used internally by the compiler when linking
16869# a shared library.
16870compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16871
16872# Method to check whether dependent libraries are shared objects.
16873deplibs_check_method=$lt_deplibs_check_method
16874
16875# Command to use when deplibs_check_method == file_magic.
16876file_magic_cmd=$lt_file_magic_cmd
16877
16878# Flag that allows shared libraries with undefined symbols to be built.
16879allow_undefined_flag=$lt_allow_undefined_flag_F77
16880
16881# Flag that forces no undefined symbols.
16882no_undefined_flag=$lt_no_undefined_flag_F77
16883
16884# Commands used to finish a libtool library installation in a directory.
16885finish_cmds=$lt_finish_cmds
16886
16887# Same as above, but a single script fragment to be evaled but not shown.
16888finish_eval=$lt_finish_eval
16889
16890# Take the output of nm and produce a listing of raw symbols and C names.
16891global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16892
16893# Transform the output of nm in a proper C declaration
16894global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16895
16896# Transform the output of nm in a C name address pair
16897global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16898
16899# This is the shared library runtime path variable.
16900runpath_var=$runpath_var
16901
16902# This is the shared library path variable.
16903shlibpath_var=$shlibpath_var
16904
16905# Is shlibpath searched before the hard-coded library search path?
16906shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16907
16908# How to hardcode a shared library path into an executable.
16909hardcode_action=$hardcode_action_F77
16910
16911# Whether we should hardcode library paths into libraries.
16912hardcode_into_libs=$hardcode_into_libs
16913
16914# Flag to hardcode \$libdir into a binary during linking.
16915# This must work even if \$libdir does not exist.
16916hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16917
16918# If ld is used when linking, flag to hardcode \$libdir into
16919# a binary during linking. This must work even if \$libdir does
16920# not exist.
16921hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16922
16923# Whether we need a single -rpath flag with a separated argument.
16924hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16925
16926# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16927# resulting binary.
16928hardcode_direct=$hardcode_direct_F77
16929
16930# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16931# resulting binary.
16932hardcode_minus_L=$hardcode_minus_L_F77
16933
16934# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16935# the resulting binary.
16936hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16937
16938# Set to yes if building a shared library automatically hardcodes DIR into the library
16939# and all subsequent libraries and executables linked against it.
16940hardcode_automatic=$hardcode_automatic_F77
16941
16942# Variables whose values should be saved in libtool wrapper scripts and
16943# restored at relink time.
16944variables_saved_for_relink="$variables_saved_for_relink"
16945
16946# Whether libtool must link a program against all its dependency libraries.
16947link_all_deplibs=$link_all_deplibs_F77
16948
16949# Compile-time system search path for libraries
16950sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16951
16952# Run-time system search path for libraries
16953sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16954
16955# Fix the shell variable \$srcfile for the compiler.
16956fix_srcfile_path="$fix_srcfile_path_F77"
16957
16958# Set to yes if exported symbols are required.
16959always_export_symbols=$always_export_symbols_F77
16960
16961# The commands to list exported symbols.
16962export_symbols_cmds=$lt_export_symbols_cmds_F77
16963
16964# The commands to extract the exported symbol list from a shared archive.
16965extract_expsyms_cmds=$lt_extract_expsyms_cmds
16966
16967# Symbols that should not be listed in the preloaded symbols.
16968exclude_expsyms=$lt_exclude_expsyms_F77
16969
16970# Symbols that must always be exported.
16971include_expsyms=$lt_include_expsyms_F77
16972
16973# ### END LIBTOOL TAG CONFIG: $tagname
16974
16975__EOF__
16976
16977
16978else
16979  # If there is no Makefile yet, we rely on a make rule to execute
16980  # `config.status --recheck' to rerun these tests and create the
16981  # libtool script then.
16982  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16983  if test -f "$ltmain_in"; then
16984    test -f Makefile && make "$ltmain"
16985  fi
16986fi
16987
16988
16989ac_ext=c
16990ac_cpp='$CPP $CPPFLAGS'
16991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16993ac_compiler_gnu=$ac_cv_c_compiler_gnu
16994
16995CC="$lt_save_CC"
16996
16997	else
16998	  tagname=""
16999	fi
17000	;;
17001
17002      GCJ)
17003	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17004
17005
17006# Source file extension for Java test sources.
17007ac_ext=java
17008
17009# Object file extension for compiled Java test sources.
17010objext=o
17011objext_GCJ=$objext
17012
17013# Code to be used in simple compile tests
17014lt_simple_compile_test_code="class foo {}\n"
17015
17016# Code to be used in simple link tests
17017lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17018
17019# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17020
17021# If no C compiler was specified, use CC.
17022LTCC=${LTCC-"$CC"}
17023
17024# If no C compiler flags were specified, use CFLAGS.
17025LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17026
17027# Allow CC to be a program name with arguments.
17028compiler=$CC
17029
17030
17031# save warnings/boilerplate of simple test code
17032ac_outfile=conftest.$ac_objext
17033printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17035_lt_compiler_boilerplate=`cat conftest.err`
17036$rm conftest*
17037
17038ac_outfile=conftest.$ac_objext
17039printf "$lt_simple_link_test_code" >conftest.$ac_ext
17040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17041_lt_linker_boilerplate=`cat conftest.err`
17042$rm conftest*
17043
17044
17045# Allow CC to be a program name with arguments.
17046lt_save_CC="$CC"
17047CC=${GCJ-"gcj"}
17048compiler=$CC
17049compiler_GCJ=$CC
17050for cc_temp in $compiler""; do
17051  case $cc_temp in
17052    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17053    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17054    \-*) ;;
17055    *) break;;
17056  esac
17057done
17058cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17059
17060
17061# GCJ did not exist at the time GCC didn't implicitly link libc in.
17062archive_cmds_need_lc_GCJ=no
17063
17064old_archive_cmds_GCJ=$old_archive_cmds
17065
17066
17067lt_prog_compiler_no_builtin_flag_GCJ=
17068
17069if test "$GCC" = yes; then
17070  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17071
17072
17073{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17074echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17075if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17076  echo $ECHO_N "(cached) $ECHO_C" >&6
17077else
17078  lt_cv_prog_compiler_rtti_exceptions=no
17079  ac_outfile=conftest.$ac_objext
17080   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17081   lt_compiler_flag="-fno-rtti -fno-exceptions"
17082   # Insert the option either (1) after the last *FLAGS variable, or
17083   # (2) before a word containing "conftest.", or (3) at the end.
17084   # Note that $ac_compile itself does not contain backslashes and begins
17085   # with a dollar sign (not a hyphen), so the echo should work correctly.
17086   # The option is referenced via a variable to avoid confusing sed.
17087   lt_compile=`echo "$ac_compile" | $SED \
17088   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17089   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17090   -e 's:$: $lt_compiler_flag:'`
17091   (eval echo "\"\$as_me:17091: $lt_compile\"" >&5)
17092   (eval "$lt_compile" 2>conftest.err)
17093   ac_status=$?
17094   cat conftest.err >&5
17095   echo "$as_me:17095: \$? = $ac_status" >&5
17096   if (exit $ac_status) && test -s "$ac_outfile"; then
17097     # The compiler can only warn and ignore the option if not recognized
17098     # So say no if there are warnings other than the usual output.
17099     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17100     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17101     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17102       lt_cv_prog_compiler_rtti_exceptions=yes
17103     fi
17104   fi
17105   $rm conftest*
17106
17107fi
17108{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17109echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17110
17111if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17112    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17113else
17114    :
17115fi
17116
17117fi
17118
17119lt_prog_compiler_wl_GCJ=
17120lt_prog_compiler_pic_GCJ=
17121lt_prog_compiler_static_GCJ=
17122
17123{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17124echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17125
17126  if test "$GCC" = yes; then
17127    lt_prog_compiler_wl_GCJ='-Wl,'
17128    lt_prog_compiler_static_GCJ='-static'
17129
17130    case $host_os in
17131      aix*)
17132      # All AIX code is PIC.
17133      if test "$host_cpu" = ia64; then
17134	# AIX 5 now supports IA64 processor
17135	lt_prog_compiler_static_GCJ='-Bstatic'
17136      fi
17137      ;;
17138
17139    amigaos*)
17140      # FIXME: we need at least 68020 code to build shared libraries, but
17141      # adding the `-m68020' flag to GCC prevents building anything better,
17142      # like `-m68040'.
17143      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17144      ;;
17145
17146    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17147      # PIC is the default for these OSes.
17148      ;;
17149
17150    mingw* | pw32* | os2*)
17151      # This hack is so that the source file can tell whether it is being
17152      # built for inclusion in a dll (and should export symbols for example).
17153      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17154      ;;
17155
17156    darwin* | rhapsody*)
17157      # PIC is the default on this platform
17158      # Common symbols not allowed in MH_DYLIB files
17159      lt_prog_compiler_pic_GCJ='-fno-common'
17160      ;;
17161
17162    interix3*)
17163      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17164      # Instead, we relocate shared libraries at runtime.
17165      ;;
17166
17167    msdosdjgpp*)
17168      # Just because we use GCC doesn't mean we suddenly get shared libraries
17169      # on systems that don't support them.
17170      lt_prog_compiler_can_build_shared_GCJ=no
17171      enable_shared=no
17172      ;;
17173
17174    sysv4*MP*)
17175      if test -d /usr/nec; then
17176	lt_prog_compiler_pic_GCJ=-Kconform_pic
17177      fi
17178      ;;
17179
17180    hpux*)
17181      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17182      # not for PA HP-UX.
17183      case $host_cpu in
17184      hppa*64*|ia64*)
17185	# +Z the default
17186	;;
17187      *)
17188	lt_prog_compiler_pic_GCJ='-fPIC'
17189	;;
17190      esac
17191      ;;
17192
17193    *)
17194      lt_prog_compiler_pic_GCJ='-fPIC'
17195      ;;
17196    esac
17197  else
17198    # PORTME Check for flag to pass linker flags through the system compiler.
17199    case $host_os in
17200    aix*)
17201      lt_prog_compiler_wl_GCJ='-Wl,'
17202      if test "$host_cpu" = ia64; then
17203	# AIX 5 now supports IA64 processor
17204	lt_prog_compiler_static_GCJ='-Bstatic'
17205      else
17206	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17207      fi
17208      ;;
17209      darwin*)
17210        # PIC is the default on this platform
17211        # Common symbols not allowed in MH_DYLIB files
17212       case $cc_basename in
17213         xlc*)
17214         lt_prog_compiler_pic_GCJ='-qnocommon'
17215         lt_prog_compiler_wl_GCJ='-Wl,'
17216         ;;
17217       esac
17218       ;;
17219
17220    mingw* | pw32* | os2*)
17221      # This hack is so that the source file can tell whether it is being
17222      # built for inclusion in a dll (and should export symbols for example).
17223      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17224      ;;
17225
17226    hpux9* | hpux10* | hpux11*)
17227      lt_prog_compiler_wl_GCJ='-Wl,'
17228      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17229      # not for PA HP-UX.
17230      case $host_cpu in
17231      hppa*64*|ia64*)
17232	# +Z the default
17233	;;
17234      *)
17235	lt_prog_compiler_pic_GCJ='+Z'
17236	;;
17237      esac
17238      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17239      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17240      ;;
17241
17242    irix5* | irix6* | nonstopux*)
17243      lt_prog_compiler_wl_GCJ='-Wl,'
17244      # PIC (with -KPIC) is the default.
17245      lt_prog_compiler_static_GCJ='-non_shared'
17246      ;;
17247
17248    newsos6)
17249      lt_prog_compiler_pic_GCJ='-KPIC'
17250      lt_prog_compiler_static_GCJ='-Bstatic'
17251      ;;
17252
17253    linux* | k*bsd*-gnu)
17254      case $cc_basename in
17255      icc* | ecc*)
17256	lt_prog_compiler_wl_GCJ='-Wl,'
17257	lt_prog_compiler_pic_GCJ='-KPIC'
17258	lt_prog_compiler_static_GCJ='-static'
17259        ;;
17260      pgcc* | pgf77* | pgf90* | pgf95*)
17261        # Portland Group compilers (*not* the Pentium gcc compiler,
17262	# which looks to be a dead project)
17263	lt_prog_compiler_wl_GCJ='-Wl,'
17264	lt_prog_compiler_pic_GCJ='-fpic'
17265	lt_prog_compiler_static_GCJ='-Bstatic'
17266        ;;
17267      ccc*)
17268        lt_prog_compiler_wl_GCJ='-Wl,'
17269        # All Alpha code is PIC.
17270        lt_prog_compiler_static_GCJ='-non_shared'
17271        ;;
17272      esac
17273      ;;
17274
17275    osf3* | osf4* | osf5*)
17276      lt_prog_compiler_wl_GCJ='-Wl,'
17277      # All OSF/1 code is PIC.
17278      lt_prog_compiler_static_GCJ='-non_shared'
17279      ;;
17280
17281    solaris*)
17282      lt_prog_compiler_pic_GCJ='-KPIC'
17283      lt_prog_compiler_static_GCJ='-Bstatic'
17284      case $cc_basename in
17285      f77* | f90* | f95*)
17286	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17287      *)
17288	lt_prog_compiler_wl_GCJ='-Wl,';;
17289      esac
17290      ;;
17291
17292    sunos4*)
17293      lt_prog_compiler_wl_GCJ='-Qoption ld '
17294      lt_prog_compiler_pic_GCJ='-PIC'
17295      lt_prog_compiler_static_GCJ='-Bstatic'
17296      ;;
17297
17298    sysv4 | sysv4.2uw2* | sysv4.3*)
17299      lt_prog_compiler_wl_GCJ='-Wl,'
17300      lt_prog_compiler_pic_GCJ='-KPIC'
17301      lt_prog_compiler_static_GCJ='-Bstatic'
17302      ;;
17303
17304    sysv4*MP*)
17305      if test -d /usr/nec ;then
17306	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17307	lt_prog_compiler_static_GCJ='-Bstatic'
17308      fi
17309      ;;
17310
17311    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17312      lt_prog_compiler_wl_GCJ='-Wl,'
17313      lt_prog_compiler_pic_GCJ='-KPIC'
17314      lt_prog_compiler_static_GCJ='-Bstatic'
17315      ;;
17316
17317    unicos*)
17318      lt_prog_compiler_wl_GCJ='-Wl,'
17319      lt_prog_compiler_can_build_shared_GCJ=no
17320      ;;
17321
17322    uts4*)
17323      lt_prog_compiler_pic_GCJ='-pic'
17324      lt_prog_compiler_static_GCJ='-Bstatic'
17325      ;;
17326
17327    *)
17328      lt_prog_compiler_can_build_shared_GCJ=no
17329      ;;
17330    esac
17331  fi
17332
17333{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17334echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17335
17336#
17337# Check to make sure the PIC flag actually works.
17338#
17339if test -n "$lt_prog_compiler_pic_GCJ"; then
17340
17341{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17342echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17343if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17344  echo $ECHO_N "(cached) $ECHO_C" >&6
17345else
17346  lt_prog_compiler_pic_works_GCJ=no
17347  ac_outfile=conftest.$ac_objext
17348   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17349   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17350   # Insert the option either (1) after the last *FLAGS variable, or
17351   # (2) before a word containing "conftest.", or (3) at the end.
17352   # Note that $ac_compile itself does not contain backslashes and begins
17353   # with a dollar sign (not a hyphen), so the echo should work correctly.
17354   # The option is referenced via a variable to avoid confusing sed.
17355   lt_compile=`echo "$ac_compile" | $SED \
17356   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17357   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17358   -e 's:$: $lt_compiler_flag:'`
17359   (eval echo "\"\$as_me:17359: $lt_compile\"" >&5)
17360   (eval "$lt_compile" 2>conftest.err)
17361   ac_status=$?
17362   cat conftest.err >&5
17363   echo "$as_me:17363: \$? = $ac_status" >&5
17364   if (exit $ac_status) && test -s "$ac_outfile"; then
17365     # The compiler can only warn and ignore the option if not recognized
17366     # So say no if there are warnings other than the usual output.
17367     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17368     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17369     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17370       lt_prog_compiler_pic_works_GCJ=yes
17371     fi
17372   fi
17373   $rm conftest*
17374
17375fi
17376{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17377echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17378
17379if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17380    case $lt_prog_compiler_pic_GCJ in
17381     "" | " "*) ;;
17382     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17383     esac
17384else
17385    lt_prog_compiler_pic_GCJ=
17386     lt_prog_compiler_can_build_shared_GCJ=no
17387fi
17388
17389fi
17390case $host_os in
17391  # For platforms which do not support PIC, -DPIC is meaningless:
17392  *djgpp*)
17393    lt_prog_compiler_pic_GCJ=
17394    ;;
17395  *)
17396    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17397    ;;
17398esac
17399
17400#
17401# Check to make sure the static flag actually works.
17402#
17403wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17404{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17405echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17406if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17407  echo $ECHO_N "(cached) $ECHO_C" >&6
17408else
17409  lt_prog_compiler_static_works_GCJ=no
17410   save_LDFLAGS="$LDFLAGS"
17411   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17412   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17413   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17414     # The linker can only warn and ignore the option if not recognized
17415     # So say no if there are warnings
17416     if test -s conftest.err; then
17417       # Append any errors to the config.log.
17418       cat conftest.err 1>&5
17419       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17420       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17421       if diff conftest.exp conftest.er2 >/dev/null; then
17422         lt_prog_compiler_static_works_GCJ=yes
17423       fi
17424     else
17425       lt_prog_compiler_static_works_GCJ=yes
17426     fi
17427   fi
17428   $rm conftest*
17429   LDFLAGS="$save_LDFLAGS"
17430
17431fi
17432{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17433echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17434
17435if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17436    :
17437else
17438    lt_prog_compiler_static_GCJ=
17439fi
17440
17441
17442{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17443echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17444if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17445  echo $ECHO_N "(cached) $ECHO_C" >&6
17446else
17447  lt_cv_prog_compiler_c_o_GCJ=no
17448   $rm -r conftest 2>/dev/null
17449   mkdir conftest
17450   cd conftest
17451   mkdir out
17452   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17453
17454   lt_compiler_flag="-o out/conftest2.$ac_objext"
17455   # Insert the option either (1) after the last *FLAGS variable, or
17456   # (2) before a word containing "conftest.", or (3) at the end.
17457   # Note that $ac_compile itself does not contain backslashes and begins
17458   # with a dollar sign (not a hyphen), so the echo should work correctly.
17459   lt_compile=`echo "$ac_compile" | $SED \
17460   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17461   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17462   -e 's:$: $lt_compiler_flag:'`
17463   (eval echo "\"\$as_me:17463: $lt_compile\"" >&5)
17464   (eval "$lt_compile" 2>out/conftest.err)
17465   ac_status=$?
17466   cat out/conftest.err >&5
17467   echo "$as_me:17467: \$? = $ac_status" >&5
17468   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17469   then
17470     # The compiler can only warn and ignore the option if not recognized
17471     # So say no if there are warnings
17472     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17473     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17474     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17475       lt_cv_prog_compiler_c_o_GCJ=yes
17476     fi
17477   fi
17478   chmod u+w . 2>&5
17479   $rm conftest*
17480   # SGI C++ compiler will create directory out/ii_files/ for
17481   # template instantiation
17482   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17483   $rm out/* && rmdir out
17484   cd ..
17485   rmdir conftest
17486   $rm conftest*
17487
17488fi
17489{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17490echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17491
17492
17493hard_links="nottested"
17494if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17495  # do not overwrite the value of need_locks provided by the user
17496  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17497echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17498  hard_links=yes
17499  $rm conftest*
17500  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17501  touch conftest.a
17502  ln conftest.a conftest.b 2>&5 || hard_links=no
17503  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17504  { echo "$as_me:$LINENO: result: $hard_links" >&5
17505echo "${ECHO_T}$hard_links" >&6; }
17506  if test "$hard_links" = no; then
17507    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17508echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17509    need_locks=warn
17510  fi
17511else
17512  need_locks=no
17513fi
17514
17515{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17516echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17517
17518  runpath_var=
17519  allow_undefined_flag_GCJ=
17520  enable_shared_with_static_runtimes_GCJ=no
17521  archive_cmds_GCJ=
17522  archive_expsym_cmds_GCJ=
17523  old_archive_From_new_cmds_GCJ=
17524  old_archive_from_expsyms_cmds_GCJ=
17525  export_dynamic_flag_spec_GCJ=
17526  whole_archive_flag_spec_GCJ=
17527  thread_safe_flag_spec_GCJ=
17528  hardcode_libdir_flag_spec_GCJ=
17529  hardcode_libdir_flag_spec_ld_GCJ=
17530  hardcode_libdir_separator_GCJ=
17531  hardcode_direct_GCJ=no
17532  hardcode_minus_L_GCJ=no
17533  hardcode_shlibpath_var_GCJ=unsupported
17534  link_all_deplibs_GCJ=unknown
17535  hardcode_automatic_GCJ=no
17536  module_cmds_GCJ=
17537  module_expsym_cmds_GCJ=
17538  always_export_symbols_GCJ=no
17539  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17540  # include_expsyms should be a list of space-separated symbols to be *always*
17541  # included in the symbol list
17542  include_expsyms_GCJ=
17543  # exclude_expsyms can be an extended regexp of symbols to exclude
17544  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17545  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17546  # as well as any symbol that contains `d'.
17547  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17548  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17549  # platforms (ab)use it in PIC code, but their linkers get confused if
17550  # the symbol is explicitly referenced.  Since portable code cannot
17551  # rely on this symbol name, it's probably fine to never include it in
17552  # preloaded symbol tables.
17553  extract_expsyms_cmds=
17554  # Just being paranoid about ensuring that cc_basename is set.
17555  for cc_temp in $compiler""; do
17556  case $cc_temp in
17557    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17558    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17559    \-*) ;;
17560    *) break;;
17561  esac
17562done
17563cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17564
17565  case $host_os in
17566  cygwin* | mingw* | pw32*)
17567    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17568    # When not using gcc, we currently assume that we are using
17569    # Microsoft Visual C++.
17570    if test "$GCC" != yes; then
17571      with_gnu_ld=no
17572    fi
17573    ;;
17574  interix*)
17575    # we just hope/assume this is gcc and not c89 (= MSVC++)
17576    with_gnu_ld=yes
17577    ;;
17578  openbsd*)
17579    with_gnu_ld=no
17580    ;;
17581  esac
17582
17583  ld_shlibs_GCJ=yes
17584  if test "$with_gnu_ld" = yes; then
17585    # If archive_cmds runs LD, not CC, wlarc should be empty
17586    wlarc='${wl}'
17587
17588    # Set some defaults for GNU ld with shared library support. These
17589    # are reset later if shared libraries are not supported. Putting them
17590    # here allows them to be overridden if necessary.
17591    runpath_var=LD_RUN_PATH
17592    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17593    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17594    # ancient GNU ld didn't support --whole-archive et. al.
17595    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17596	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17597      else
17598  	whole_archive_flag_spec_GCJ=
17599    fi
17600    supports_anon_versioning=no
17601    case `$LD -v 2>/dev/null` in
17602      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17603      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17604      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17605      *\ 2.11.*) ;; # other 2.11 versions
17606      *) supports_anon_versioning=yes ;;
17607    esac
17608
17609    # See if GNU ld supports shared libraries.
17610    case $host_os in
17611    aix3* | aix4* | aix5*)
17612      # On AIX/PPC, the GNU linker is very broken
17613      if test "$host_cpu" != ia64; then
17614	ld_shlibs_GCJ=no
17615	cat <<EOF 1>&2
17616
17617*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17618*** to be unable to reliably create shared libraries on AIX.
17619*** Therefore, libtool is disabling shared libraries support.  If you
17620*** really care for shared libraries, you may want to modify your PATH
17621*** so that a non-GNU linker is found, and then restart.
17622
17623EOF
17624      fi
17625      ;;
17626
17627    amigaos*)
17628      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)'
17629      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17630      hardcode_minus_L_GCJ=yes
17631
17632      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17633      # that the semantics of dynamic libraries on AmigaOS, at least up
17634      # to version 4, is to share data among multiple programs linked
17635      # with the same dynamic library.  Since this doesn't match the
17636      # behavior of shared libraries on other platforms, we can't use
17637      # them.
17638      ld_shlibs_GCJ=no
17639      ;;
17640
17641    beos*)
17642      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17643	allow_undefined_flag_GCJ=unsupported
17644	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17645	# support --undefined.  This deserves some investigation.  FIXME
17646	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17647      else
17648	ld_shlibs_GCJ=no
17649      fi
17650      ;;
17651
17652    cygwin* | mingw* | pw32*)
17653      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17654      # as there is no search path for DLLs.
17655      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17656      allow_undefined_flag_GCJ=unsupported
17657      always_export_symbols_GCJ=no
17658      enable_shared_with_static_runtimes_GCJ=yes
17659      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17660
17661      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17662        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17663	# If the export-symbols file already is a .def file (1st line
17664	# is EXPORTS), use it as is; otherwise, prepend...
17665	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17666	  cp $export_symbols $output_objdir/$soname.def;
17667	else
17668	  echo EXPORTS > $output_objdir/$soname.def;
17669	  cat $export_symbols >> $output_objdir/$soname.def;
17670	fi~
17671	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17672      else
17673	ld_shlibs_GCJ=no
17674      fi
17675      ;;
17676
17677    interix3*)
17678      hardcode_direct_GCJ=no
17679      hardcode_shlibpath_var_GCJ=no
17680      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17681      export_dynamic_flag_spec_GCJ='${wl}-E'
17682      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17683      # Instead, shared libraries are loaded at an image base (0x10000000 by
17684      # default) and relocated if they conflict, which is a slow very memory
17685      # consuming and fragmenting process.  To avoid this, we pick a random,
17686      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17687      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17688      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'
17689      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'
17690      ;;
17691
17692    linux* | k*bsd*-gnu)
17693      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17694	tmp_addflag=
17695	case $cc_basename,$host_cpu in
17696	pgcc*)				# Portland Group C compiler
17697	  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'
17698	  tmp_addflag=' $pic_flag'
17699	  ;;
17700	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17701	  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'
17702	  tmp_addflag=' $pic_flag -Mnomain' ;;
17703	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17704	  tmp_addflag=' -i_dynamic' ;;
17705	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17706	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17707	ifc* | ifort*)			# Intel Fortran compiler
17708	  tmp_addflag=' -nofor_main' ;;
17709	esac
17710	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17711
17712	if test $supports_anon_versioning = yes; then
17713	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17714  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17715  $echo "local: *; };" >> $output_objdir/$libname.ver~
17716	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17717	fi
17718	link_all_deplibs_GCJ=no
17719      else
17720	ld_shlibs_GCJ=no
17721      fi
17722      ;;
17723
17724    netbsd* | netbsdelf*-gnu)
17725      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17726	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17727	wlarc=
17728      else
17729	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17730	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17731      fi
17732      ;;
17733
17734    solaris*)
17735      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17736	ld_shlibs_GCJ=no
17737	cat <<EOF 1>&2
17738
17739*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17740*** create shared libraries on Solaris systems.  Therefore, libtool
17741*** is disabling shared libraries support.  We urge you to upgrade GNU
17742*** binutils to release 2.9.1 or newer.  Another option is to modify
17743*** your PATH or compiler configuration so that the native linker is
17744*** used, and then restart.
17745
17746EOF
17747      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17748	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17749	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17750      else
17751	ld_shlibs_GCJ=no
17752      fi
17753      ;;
17754
17755    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17756      case `$LD -v 2>&1` in
17757        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17758	ld_shlibs_GCJ=no
17759	cat <<_LT_EOF 1>&2
17760
17761*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17762*** reliably create shared libraries on SCO systems.  Therefore, libtool
17763*** is disabling shared libraries support.  We urge you to upgrade GNU
17764*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17765*** your PATH or compiler configuration so that the native linker is
17766*** used, and then restart.
17767
17768_LT_EOF
17769	;;
17770	*)
17771	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17772	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17773	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17774	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17775	  else
17776	    ld_shlibs_GCJ=no
17777	  fi
17778	;;
17779      esac
17780      ;;
17781
17782    sunos4*)
17783      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17784      wlarc=
17785      hardcode_direct_GCJ=yes
17786      hardcode_shlibpath_var_GCJ=no
17787      ;;
17788
17789    *)
17790      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17791	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17792	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17793      else
17794	ld_shlibs_GCJ=no
17795      fi
17796      ;;
17797    esac
17798
17799    if test "$ld_shlibs_GCJ" = no; then
17800      runpath_var=
17801      hardcode_libdir_flag_spec_GCJ=
17802      export_dynamic_flag_spec_GCJ=
17803      whole_archive_flag_spec_GCJ=
17804    fi
17805  else
17806    # PORTME fill in a description of your system's linker (not GNU ld)
17807    case $host_os in
17808    aix3*)
17809      allow_undefined_flag_GCJ=unsupported
17810      always_export_symbols_GCJ=yes
17811      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'
17812      # Note: this linker hardcodes the directories in LIBPATH if there
17813      # are no directories specified by -L.
17814      hardcode_minus_L_GCJ=yes
17815      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17816	# Neither direct hardcoding nor static linking is supported with a
17817	# broken collect2.
17818	hardcode_direct_GCJ=unsupported
17819      fi
17820      ;;
17821
17822    aix4* | aix5*)
17823      if test "$host_cpu" = ia64; then
17824	# On IA64, the linker does run time linking by default, so we don't
17825	# have to do anything special.
17826	aix_use_runtimelinking=no
17827	exp_sym_flag='-Bexport'
17828	no_entry_flag=""
17829      else
17830	# If we're using GNU nm, then we don't want the "-C" option.
17831	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17832	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17833	  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'
17834	else
17835	  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'
17836	fi
17837	aix_use_runtimelinking=no
17838
17839	# Test if we are trying to use run time linking or normal
17840	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17841	# need to do runtime linking.
17842	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17843	  for ld_flag in $LDFLAGS; do
17844  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17845  	    aix_use_runtimelinking=yes
17846  	    break
17847  	  fi
17848	  done
17849	  ;;
17850	esac
17851
17852	exp_sym_flag='-bexport'
17853	no_entry_flag='-bnoentry'
17854      fi
17855
17856      # When large executables or shared objects are built, AIX ld can
17857      # have problems creating the table of contents.  If linking a library
17858      # or program results in "error TOC overflow" add -mminimal-toc to
17859      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17860      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17861
17862      archive_cmds_GCJ=''
17863      hardcode_direct_GCJ=yes
17864      hardcode_libdir_separator_GCJ=':'
17865      link_all_deplibs_GCJ=yes
17866
17867      if test "$GCC" = yes; then
17868	case $host_os in aix4.[012]|aix4.[012].*)
17869	# We only want to do this on AIX 4.2 and lower, the check
17870	# below for broken collect2 doesn't work under 4.3+
17871	  collect2name=`${CC} -print-prog-name=collect2`
17872	  if test -f "$collect2name" && \
17873  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17874	  then
17875  	  # We have reworked collect2
17876  	  hardcode_direct_GCJ=yes
17877	  else
17878  	  # We have old collect2
17879  	  hardcode_direct_GCJ=unsupported
17880  	  # It fails to find uninstalled libraries when the uninstalled
17881  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17882  	  # to unsupported forces relinking
17883  	  hardcode_minus_L_GCJ=yes
17884  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17885  	  hardcode_libdir_separator_GCJ=
17886	  fi
17887	  ;;
17888	esac
17889	shared_flag='-shared'
17890	if test "$aix_use_runtimelinking" = yes; then
17891	  shared_flag="$shared_flag "'${wl}-G'
17892	fi
17893      else
17894	# not using gcc
17895	if test "$host_cpu" = ia64; then
17896  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17897  	# chokes on -Wl,-G. The following line is correct:
17898	  shared_flag='-G'
17899	else
17900	  if test "$aix_use_runtimelinking" = yes; then
17901	    shared_flag='${wl}-G'
17902	  else
17903	    shared_flag='${wl}-bM:SRE'
17904	  fi
17905	fi
17906      fi
17907
17908      # It seems that -bexpall does not export symbols beginning with
17909      # underscore (_), so it is better to generate a list of symbols to export.
17910      always_export_symbols_GCJ=yes
17911      if test "$aix_use_runtimelinking" = yes; then
17912	# Warning - without using the other runtime loading flags (-brtl),
17913	# -berok will link without error, but may produce a broken library.
17914	allow_undefined_flag_GCJ='-berok'
17915       # Determine the default libpath from the value encoded in an empty executable.
17916       cat >conftest.$ac_ext <<_ACEOF
17917/* confdefs.h.  */
17918_ACEOF
17919cat confdefs.h >>conftest.$ac_ext
17920cat >>conftest.$ac_ext <<_ACEOF
17921/* end confdefs.h.  */
17922
17923int
17924main ()
17925{
17926
17927  ;
17928  return 0;
17929}
17930_ACEOF
17931rm -f conftest.$ac_objext conftest$ac_exeext
17932if { (ac_try="$ac_link"
17933case "(($ac_try" in
17934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17935  *) ac_try_echo=$ac_try;;
17936esac
17937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17938  (eval "$ac_link") 2>conftest.er1
17939  ac_status=$?
17940  grep -v '^ *+' conftest.er1 >conftest.err
17941  rm -f conftest.er1
17942  cat conftest.err >&5
17943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944  (exit $ac_status); } && {
17945	 test -z "$ac_c_werror_flag" ||
17946	 test ! -s conftest.err
17947       } && test -s conftest$ac_exeext &&
17948       $as_test_x conftest$ac_exeext; then
17949
17950aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17951}'`
17952# Check for a 64-bit object if we didn't find anything.
17953if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17954}'`; fi
17955else
17956  echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959
17960fi
17961
17962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17963      conftest$ac_exeext conftest.$ac_ext
17964if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17965
17966       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17967	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"
17968       else
17969	if test "$host_cpu" = ia64; then
17970	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17971	  allow_undefined_flag_GCJ="-z nodefs"
17972	  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"
17973	else
17974	 # Determine the default libpath from the value encoded in an empty executable.
17975	 cat >conftest.$ac_ext <<_ACEOF
17976/* confdefs.h.  */
17977_ACEOF
17978cat confdefs.h >>conftest.$ac_ext
17979cat >>conftest.$ac_ext <<_ACEOF
17980/* end confdefs.h.  */
17981
17982int
17983main ()
17984{
17985
17986  ;
17987  return 0;
17988}
17989_ACEOF
17990rm -f conftest.$ac_objext conftest$ac_exeext
17991if { (ac_try="$ac_link"
17992case "(($ac_try" in
17993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994  *) ac_try_echo=$ac_try;;
17995esac
17996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997  (eval "$ac_link") 2>conftest.er1
17998  ac_status=$?
17999  grep -v '^ *+' conftest.er1 >conftest.err
18000  rm -f conftest.er1
18001  cat conftest.err >&5
18002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003  (exit $ac_status); } && {
18004	 test -z "$ac_c_werror_flag" ||
18005	 test ! -s conftest.err
18006       } && test -s conftest$ac_exeext &&
18007       $as_test_x conftest$ac_exeext; then
18008
18009aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18010}'`
18011# Check for a 64-bit object if we didn't find anything.
18012if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18013}'`; fi
18014else
18015  echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018
18019fi
18020
18021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18022      conftest$ac_exeext conftest.$ac_ext
18023if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18024
18025	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18026	  # Warning - without using the other run time loading flags,
18027	  # -berok will link without error, but may produce a broken library.
18028	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18029	  allow_undefined_flag_GCJ=' ${wl}-berok'
18030	  # Exported symbols can be pulled into shared objects from archives
18031	  whole_archive_flag_spec_GCJ='$convenience'
18032	  archive_cmds_need_lc_GCJ=yes
18033	  # This is similar to how AIX traditionally builds its shared libraries.
18034	  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'
18035	fi
18036      fi
18037      ;;
18038
18039    amigaos*)
18040      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)'
18041      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18042      hardcode_minus_L_GCJ=yes
18043      # see comment about different semantics on the GNU ld section
18044      ld_shlibs_GCJ=no
18045      ;;
18046
18047    bsdi[45]*)
18048      export_dynamic_flag_spec_GCJ=-rdynamic
18049      ;;
18050
18051    cygwin* | mingw* | pw32*)
18052      # When not using gcc, we currently assume that we are using
18053      # Microsoft Visual C++.
18054      # hardcode_libdir_flag_spec is actually meaningless, as there is
18055      # no search path for DLLs.
18056      hardcode_libdir_flag_spec_GCJ=' '
18057      allow_undefined_flag_GCJ=unsupported
18058      # Tell ltmain to make .lib files, not .a files.
18059      libext=lib
18060      # Tell ltmain to make .dll files, not .so files.
18061      shrext_cmds=".dll"
18062      # FIXME: Setting linknames here is a bad hack.
18063      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18064      # The linker will automatically build a .lib file if we build a DLL.
18065      old_archive_From_new_cmds_GCJ='true'
18066      # FIXME: Should let the user specify the lib program.
18067      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18068      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18069      enable_shared_with_static_runtimes_GCJ=yes
18070      ;;
18071
18072    darwin* | rhapsody*)
18073      case $host_os in
18074        rhapsody* | darwin1.[012])
18075         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18076         ;;
18077       *) # Darwin 1.3 on
18078         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18079           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18080         else
18081           case ${MACOSX_DEPLOYMENT_TARGET} in
18082             10.[012])
18083               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18084               ;;
18085             10.*)
18086               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18087               ;;
18088           esac
18089         fi
18090         ;;
18091      esac
18092      archive_cmds_need_lc_GCJ=no
18093      hardcode_direct_GCJ=no
18094      hardcode_automatic_GCJ=yes
18095      hardcode_shlibpath_var_GCJ=unsupported
18096      whole_archive_flag_spec_GCJ=''
18097      link_all_deplibs_GCJ=yes
18098    if test "$GCC" = yes ; then
18099    	output_verbose_link_cmd='echo'
18100        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18101      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18102      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18103      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18104      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}'
18105    else
18106      case $cc_basename in
18107        xlc*)
18108         output_verbose_link_cmd='echo'
18109         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18110         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18111          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18112         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18113          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}'
18114          ;;
18115       *)
18116         ld_shlibs_GCJ=no
18117          ;;
18118      esac
18119    fi
18120      ;;
18121
18122    dgux*)
18123      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18124      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18125      hardcode_shlibpath_var_GCJ=no
18126      ;;
18127
18128    freebsd1*)
18129      ld_shlibs_GCJ=no
18130      ;;
18131
18132    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18133    # support.  Future versions do this automatically, but an explicit c++rt0.o
18134    # does not break anything, and helps significantly (at the cost of a little
18135    # extra space).
18136    freebsd2.2*)
18137      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18138      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18139      hardcode_direct_GCJ=yes
18140      hardcode_shlibpath_var_GCJ=no
18141      ;;
18142
18143    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18144    freebsd2*)
18145      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18146      hardcode_direct_GCJ=yes
18147      hardcode_minus_L_GCJ=yes
18148      hardcode_shlibpath_var_GCJ=no
18149      ;;
18150
18151    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18152    freebsd* | dragonfly*)
18153      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18154      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18155      hardcode_direct_GCJ=yes
18156      hardcode_shlibpath_var_GCJ=no
18157      ;;
18158
18159    hpux9*)
18160      if test "$GCC" = yes; then
18161	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'
18162      else
18163	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'
18164      fi
18165      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18166      hardcode_libdir_separator_GCJ=:
18167      hardcode_direct_GCJ=yes
18168
18169      # hardcode_minus_L: Not really in the search PATH,
18170      # but as the default location of the library.
18171      hardcode_minus_L_GCJ=yes
18172      export_dynamic_flag_spec_GCJ='${wl}-E'
18173      ;;
18174
18175    hpux10*)
18176      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18177	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18178      else
18179	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18180      fi
18181      if test "$with_gnu_ld" = no; then
18182	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18183	hardcode_libdir_separator_GCJ=:
18184
18185	hardcode_direct_GCJ=yes
18186	export_dynamic_flag_spec_GCJ='${wl}-E'
18187
18188	# hardcode_minus_L: Not really in the search PATH,
18189	# but as the default location of the library.
18190	hardcode_minus_L_GCJ=yes
18191      fi
18192      ;;
18193
18194    hpux11*)
18195      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18196	case $host_cpu in
18197	hppa*64*)
18198	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18199	  ;;
18200	ia64*)
18201	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18202	  ;;
18203	*)
18204	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18205	  ;;
18206	esac
18207      else
18208	case $host_cpu in
18209	hppa*64*)
18210	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18211	  ;;
18212	ia64*)
18213	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18214	  ;;
18215	*)
18216	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18217	  ;;
18218	esac
18219      fi
18220      if test "$with_gnu_ld" = no; then
18221	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18222	hardcode_libdir_separator_GCJ=:
18223
18224	case $host_cpu in
18225	hppa*64*|ia64*)
18226	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18227	  hardcode_direct_GCJ=no
18228	  hardcode_shlibpath_var_GCJ=no
18229	  ;;
18230	*)
18231	  hardcode_direct_GCJ=yes
18232	  export_dynamic_flag_spec_GCJ='${wl}-E'
18233
18234	  # hardcode_minus_L: Not really in the search PATH,
18235	  # but as the default location of the library.
18236	  hardcode_minus_L_GCJ=yes
18237	  ;;
18238	esac
18239      fi
18240      ;;
18241
18242    irix5* | irix6* | nonstopux*)
18243      if test "$GCC" = yes; then
18244	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'
18245      else
18246	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'
18247	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18248      fi
18249      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18250      hardcode_libdir_separator_GCJ=:
18251      link_all_deplibs_GCJ=yes
18252      ;;
18253
18254    netbsd* | netbsdelf*-gnu)
18255      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18256	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18257      else
18258	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18259      fi
18260      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18261      hardcode_direct_GCJ=yes
18262      hardcode_shlibpath_var_GCJ=no
18263      ;;
18264
18265    newsos6)
18266      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18267      hardcode_direct_GCJ=yes
18268      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18269      hardcode_libdir_separator_GCJ=:
18270      hardcode_shlibpath_var_GCJ=no
18271      ;;
18272
18273    openbsd*)
18274      hardcode_direct_GCJ=yes
18275      hardcode_shlibpath_var_GCJ=no
18276      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18277	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18278	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18279	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18280	export_dynamic_flag_spec_GCJ='${wl}-E'
18281      else
18282       case $host_os in
18283	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18284	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18285	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18286	   ;;
18287	 *)
18288	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18289	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18290	   ;;
18291       esac
18292      fi
18293      ;;
18294
18295    os2*)
18296      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18297      hardcode_minus_L_GCJ=yes
18298      allow_undefined_flag_GCJ=unsupported
18299      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'
18300      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18301      ;;
18302
18303    osf3*)
18304      if test "$GCC" = yes; then
18305	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18306	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'
18307      else
18308	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18309	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'
18310      fi
18311      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18312      hardcode_libdir_separator_GCJ=:
18313      ;;
18314
18315    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18316      if test "$GCC" = yes; then
18317	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18318	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'
18319	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18320      else
18321	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18322	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'
18323	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~
18324	$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'
18325
18326	# Both c and cxx compiler support -rpath directly
18327	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18328      fi
18329      hardcode_libdir_separator_GCJ=:
18330      ;;
18331
18332    solaris*)
18333      no_undefined_flag_GCJ=' -z text'
18334      if test "$GCC" = yes; then
18335	wlarc='${wl}'
18336	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18337	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18338	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18339      else
18340	wlarc=''
18341	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18342	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18343  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18344      fi
18345      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18346      hardcode_shlibpath_var_GCJ=no
18347      case $host_os in
18348      solaris2.[0-5] | solaris2.[0-5].*) ;;
18349      *)
18350 	# The compiler driver will combine linker options so we
18351 	# cannot just pass the convience library names through
18352 	# without $wl, iff we do not link with $LD.
18353 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18354 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18355 	case $wlarc in
18356 	'')
18357 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18358 	*)
18359 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18360 	esac ;;
18361      esac
18362      link_all_deplibs_GCJ=yes
18363      ;;
18364
18365    sunos4*)
18366      if test "x$host_vendor" = xsequent; then
18367	# Use $CC to link under sequent, because it throws in some extra .o
18368	# files that make .init and .fini sections work.
18369	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18370      else
18371	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18372      fi
18373      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18374      hardcode_direct_GCJ=yes
18375      hardcode_minus_L_GCJ=yes
18376      hardcode_shlibpath_var_GCJ=no
18377      ;;
18378
18379    sysv4)
18380      case $host_vendor in
18381	sni)
18382	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18383	  hardcode_direct_GCJ=yes # is this really true???
18384	;;
18385	siemens)
18386	  ## LD is ld it makes a PLAMLIB
18387	  ## CC just makes a GrossModule.
18388	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18389	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18390	  hardcode_direct_GCJ=no
18391        ;;
18392	motorola)
18393	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18394	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18395	;;
18396      esac
18397      runpath_var='LD_RUN_PATH'
18398      hardcode_shlibpath_var_GCJ=no
18399      ;;
18400
18401    sysv4.3*)
18402      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18403      hardcode_shlibpath_var_GCJ=no
18404      export_dynamic_flag_spec_GCJ='-Bexport'
18405      ;;
18406
18407    sysv4*MP*)
18408      if test -d /usr/nec; then
18409	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18410	hardcode_shlibpath_var_GCJ=no
18411	runpath_var=LD_RUN_PATH
18412	hardcode_runpath_var=yes
18413	ld_shlibs_GCJ=yes
18414      fi
18415      ;;
18416
18417    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18418      no_undefined_flag_GCJ='${wl}-z,text'
18419      archive_cmds_need_lc_GCJ=no
18420      hardcode_shlibpath_var_GCJ=no
18421      runpath_var='LD_RUN_PATH'
18422
18423      if test "$GCC" = yes; then
18424	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18425	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18426      else
18427	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18428	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18429      fi
18430      ;;
18431
18432    sysv5* | sco3.2v5* | sco5v6*)
18433      # Note: We can NOT use -z defs as we might desire, because we do not
18434      # link with -lc, and that would cause any symbols used from libc to
18435      # always be unresolved, which means just about no library would
18436      # ever link correctly.  If we're not using GNU ld we use -z text
18437      # though, which does catch some bad symbols but isn't as heavy-handed
18438      # as -z defs.
18439      no_undefined_flag_GCJ='${wl}-z,text'
18440      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18441      archive_cmds_need_lc_GCJ=no
18442      hardcode_shlibpath_var_GCJ=no
18443      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18444      hardcode_libdir_separator_GCJ=':'
18445      link_all_deplibs_GCJ=yes
18446      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18447      runpath_var='LD_RUN_PATH'
18448
18449      if test "$GCC" = yes; then
18450	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18451	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18452      else
18453	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18454	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18455      fi
18456      ;;
18457
18458    uts4*)
18459      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18460      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18461      hardcode_shlibpath_var_GCJ=no
18462      ;;
18463
18464    *)
18465      ld_shlibs_GCJ=no
18466      ;;
18467    esac
18468  fi
18469
18470{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18471echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18472test "$ld_shlibs_GCJ" = no && can_build_shared=no
18473
18474#
18475# Do we need to explicitly link libc?
18476#
18477case "x$archive_cmds_need_lc_GCJ" in
18478x|xyes)
18479  # Assume -lc should be added
18480  archive_cmds_need_lc_GCJ=yes
18481
18482  if test "$enable_shared" = yes && test "$GCC" = yes; then
18483    case $archive_cmds_GCJ in
18484    *'~'*)
18485      # FIXME: we may have to deal with multi-command sequences.
18486      ;;
18487    '$CC '*)
18488      # Test whether the compiler implicitly links with -lc since on some
18489      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18490      # to ld, don't add -lc before -lgcc.
18491      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18492echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18493      $rm conftest*
18494      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18495
18496      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18497  (eval $ac_compile) 2>&5
18498  ac_status=$?
18499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500  (exit $ac_status); } 2>conftest.err; then
18501        soname=conftest
18502        lib=conftest
18503        libobjs=conftest.$ac_objext
18504        deplibs=
18505        wl=$lt_prog_compiler_wl_GCJ
18506	pic_flag=$lt_prog_compiler_pic_GCJ
18507        compiler_flags=-v
18508        linker_flags=-v
18509        verstring=
18510        output_objdir=.
18511        libname=conftest
18512        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18513        allow_undefined_flag_GCJ=
18514        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18515  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18516  ac_status=$?
18517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518  (exit $ac_status); }
18519        then
18520	  archive_cmds_need_lc_GCJ=no
18521        else
18522	  archive_cmds_need_lc_GCJ=yes
18523        fi
18524        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18525      else
18526        cat conftest.err 1>&5
18527      fi
18528      $rm conftest*
18529      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18530echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18531      ;;
18532    esac
18533  fi
18534  ;;
18535esac
18536
18537{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18538echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18539library_names_spec=
18540libname_spec='lib$name'
18541soname_spec=
18542shrext_cmds=".so"
18543postinstall_cmds=
18544postuninstall_cmds=
18545finish_cmds=
18546finish_eval=
18547shlibpath_var=
18548shlibpath_overrides_runpath=unknown
18549version_type=none
18550dynamic_linker="$host_os ld.so"
18551sys_lib_dlsearch_path_spec="/lib /usr/lib"
18552if test "$GCC" = yes; then
18553  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18554  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18555    # if the path contains ";" then we assume it to be the separator
18556    # otherwise default to the standard path separator (i.e. ":") - it is
18557    # assumed that no part of a normal pathname contains ";" but that should
18558    # okay in the real world where ";" in dirpaths is itself problematic.
18559    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18560  else
18561    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18562  fi
18563else
18564  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18565fi
18566need_lib_prefix=unknown
18567hardcode_into_libs=no
18568
18569# when you set need_version to no, make sure it does not cause -set_version
18570# flags to be left without arguments
18571need_version=unknown
18572
18573case $host_os in
18574aix3*)
18575  version_type=linux
18576  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18577  shlibpath_var=LIBPATH
18578
18579  # AIX 3 has no versioning support, so we append a major version to the name.
18580  soname_spec='${libname}${release}${shared_ext}$major'
18581  ;;
18582
18583aix4* | aix5*)
18584  version_type=linux
18585  need_lib_prefix=no
18586  need_version=no
18587  hardcode_into_libs=yes
18588  if test "$host_cpu" = ia64; then
18589    # AIX 5 supports IA64
18590    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18591    shlibpath_var=LD_LIBRARY_PATH
18592  else
18593    # With GCC up to 2.95.x, collect2 would create an import file
18594    # for dependence libraries.  The import file would start with
18595    # the line `#! .'.  This would cause the generated library to
18596    # depend on `.', always an invalid library.  This was fixed in
18597    # development snapshots of GCC prior to 3.0.
18598    case $host_os in
18599      aix4 | aix4.[01] | aix4.[01].*)
18600      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18601	   echo ' yes '
18602	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18603	:
18604      else
18605	can_build_shared=no
18606      fi
18607      ;;
18608    esac
18609    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18610    # soname into executable. Probably we can add versioning support to
18611    # collect2, so additional links can be useful in future.
18612    if test "$aix_use_runtimelinking" = yes; then
18613      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18614      # instead of lib<name>.a to let people know that these are not
18615      # typical AIX shared libraries.
18616      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18617    else
18618      # We preserve .a as extension for shared libraries through AIX4.2
18619      # and later when we are not doing run time linking.
18620      library_names_spec='${libname}${release}.a $libname.a'
18621      soname_spec='${libname}${release}${shared_ext}$major'
18622    fi
18623    shlibpath_var=LIBPATH
18624  fi
18625  ;;
18626
18627amigaos*)
18628  library_names_spec='$libname.ixlibrary $libname.a'
18629  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18630  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'
18631  ;;
18632
18633beos*)
18634  library_names_spec='${libname}${shared_ext}'
18635  dynamic_linker="$host_os ld.so"
18636  shlibpath_var=LIBRARY_PATH
18637  ;;
18638
18639bsdi[45]*)
18640  version_type=linux
18641  need_version=no
18642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18643  soname_spec='${libname}${release}${shared_ext}$major'
18644  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18645  shlibpath_var=LD_LIBRARY_PATH
18646  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18647  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18648  # the default ld.so.conf also contains /usr/contrib/lib and
18649  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18650  # libtool to hard-code these into programs
18651  ;;
18652
18653cygwin* | mingw* | pw32*)
18654  version_type=windows
18655  shrext_cmds=".dll"
18656  need_version=no
18657  need_lib_prefix=no
18658
18659  case $GCC,$host_os in
18660  yes,cygwin* | yes,mingw* | yes,pw32*)
18661    library_names_spec='$libname.dll.a'
18662    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18663    postinstall_cmds='base_file=`basename \${file}`~
18664      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18665      dldir=$destdir/`dirname \$dlpath`~
18666      test -d \$dldir || mkdir -p \$dldir~
18667      $install_prog $dir/$dlname \$dldir/$dlname~
18668      chmod a+x \$dldir/$dlname'
18669    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18670      dlpath=$dir/\$dldll~
18671       $rm \$dlpath'
18672    shlibpath_overrides_runpath=yes
18673
18674    case $host_os in
18675    cygwin*)
18676      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18677      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18678      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18679      ;;
18680    mingw*)
18681      # MinGW DLLs use traditional 'lib' prefix
18682      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18683      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18684      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18685        # It is most probably a Windows format PATH printed by
18686        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18687        # path with ; separators, and with drive letters. We can handle the
18688        # drive letters (cygwin fileutils understands them), so leave them,
18689        # especially as we might pass files found there to a mingw objdump,
18690        # which wouldn't understand a cygwinified path. Ahh.
18691        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18692      else
18693        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18694      fi
18695      ;;
18696    pw32*)
18697      # pw32 DLLs use 'pw' prefix rather than 'lib'
18698      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18699      ;;
18700    esac
18701    ;;
18702
18703  *)
18704    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18705    ;;
18706  esac
18707  dynamic_linker='Win32 ld.exe'
18708  # FIXME: first we should search . and the directory the executable is in
18709  shlibpath_var=PATH
18710  ;;
18711
18712darwin* | rhapsody*)
18713  dynamic_linker="$host_os dyld"
18714  version_type=darwin
18715  need_lib_prefix=no
18716  need_version=no
18717  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18718  soname_spec='${libname}${release}${major}$shared_ext'
18719  shlibpath_overrides_runpath=yes
18720  shlibpath_var=DYLD_LIBRARY_PATH
18721  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18722  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18723  if test "$GCC" = yes; then
18724    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18725  else
18726    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18727  fi
18728  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18729  ;;
18730
18731dgux*)
18732  version_type=linux
18733  need_lib_prefix=no
18734  need_version=no
18735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18736  soname_spec='${libname}${release}${shared_ext}$major'
18737  shlibpath_var=LD_LIBRARY_PATH
18738  ;;
18739
18740freebsd1*)
18741  dynamic_linker=no
18742  ;;
18743
18744freebsd* | dragonfly*)
18745  # DragonFly does not have aout.  When/if they implement a new
18746  # versioning mechanism, adjust this.
18747  if test -x /usr/bin/objformat; then
18748    objformat=`/usr/bin/objformat`
18749  else
18750    case $host_os in
18751    freebsd[123]*) objformat=aout ;;
18752    *) objformat=elf ;;
18753    esac
18754  fi
18755  version_type=freebsd-$objformat
18756  case $version_type in
18757    freebsd-elf*)
18758      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18759      need_version=no
18760      need_lib_prefix=no
18761      ;;
18762    freebsd-*)
18763      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18764      need_version=yes
18765      ;;
18766  esac
18767  shlibpath_var=LD_LIBRARY_PATH
18768  case $host_os in
18769  freebsd2*)
18770    shlibpath_overrides_runpath=yes
18771    ;;
18772  freebsd3.[01]* | freebsdelf3.[01]*)
18773    shlibpath_overrides_runpath=yes
18774    hardcode_into_libs=yes
18775    ;;
18776  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18777  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18778    shlibpath_overrides_runpath=no
18779    hardcode_into_libs=yes
18780    ;;
18781  freebsd*) # from 4.6 on
18782    shlibpath_overrides_runpath=yes
18783    hardcode_into_libs=yes
18784    ;;
18785  esac
18786  ;;
18787
18788gnu*)
18789  version_type=linux
18790  need_lib_prefix=no
18791  need_version=no
18792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18793  soname_spec='${libname}${release}${shared_ext}$major'
18794  shlibpath_var=LD_LIBRARY_PATH
18795  hardcode_into_libs=yes
18796  ;;
18797
18798hpux9* | hpux10* | hpux11*)
18799  # Give a soname corresponding to the major version so that dld.sl refuses to
18800  # link against other versions.
18801  version_type=sunos
18802  need_lib_prefix=no
18803  need_version=no
18804  case $host_cpu in
18805  ia64*)
18806    shrext_cmds='.so'
18807    hardcode_into_libs=yes
18808    dynamic_linker="$host_os dld.so"
18809    shlibpath_var=LD_LIBRARY_PATH
18810    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18811    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18812    soname_spec='${libname}${release}${shared_ext}$major'
18813    if test "X$HPUX_IA64_MODE" = X32; then
18814      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18815    else
18816      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18817    fi
18818    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18819    ;;
18820   hppa*64*)
18821     shrext_cmds='.sl'
18822     hardcode_into_libs=yes
18823     dynamic_linker="$host_os dld.sl"
18824     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18825     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18826     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827     soname_spec='${libname}${release}${shared_ext}$major'
18828     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18829     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18830     ;;
18831   *)
18832    shrext_cmds='.sl'
18833    dynamic_linker="$host_os dld.sl"
18834    shlibpath_var=SHLIB_PATH
18835    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18836    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18837    soname_spec='${libname}${release}${shared_ext}$major'
18838    ;;
18839  esac
18840  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18841  postinstall_cmds='chmod 555 $lib'
18842  ;;
18843
18844interix3*)
18845  version_type=linux
18846  need_lib_prefix=no
18847  need_version=no
18848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18849  soname_spec='${libname}${release}${shared_ext}$major'
18850  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18851  shlibpath_var=LD_LIBRARY_PATH
18852  shlibpath_overrides_runpath=no
18853  hardcode_into_libs=yes
18854  ;;
18855
18856irix5* | irix6* | nonstopux*)
18857  case $host_os in
18858    nonstopux*) version_type=nonstopux ;;
18859    *)
18860	if test "$lt_cv_prog_gnu_ld" = yes; then
18861		version_type=linux
18862	else
18863		version_type=irix
18864	fi ;;
18865  esac
18866  need_lib_prefix=no
18867  need_version=no
18868  soname_spec='${libname}${release}${shared_ext}$major'
18869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18870  case $host_os in
18871  irix5* | nonstopux*)
18872    libsuff= shlibsuff=
18873    ;;
18874  *)
18875    case $LD in # libtool.m4 will add one of these switches to LD
18876    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18877      libsuff= shlibsuff= libmagic=32-bit;;
18878    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18879      libsuff=32 shlibsuff=N32 libmagic=N32;;
18880    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18881      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18882    *) libsuff= shlibsuff= libmagic=never-match;;
18883    esac
18884    ;;
18885  esac
18886  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18887  shlibpath_overrides_runpath=no
18888  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18889  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18890  hardcode_into_libs=yes
18891  ;;
18892
18893# No shared lib support for Linux oldld, aout, or coff.
18894linux*oldld* | linux*aout* | linux*coff*)
18895  dynamic_linker=no
18896  ;;
18897
18898# This must be Linux ELF.
18899linux* | k*bsd*-gnu)
18900  version_type=linux
18901  need_lib_prefix=no
18902  need_version=no
18903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18904  soname_spec='${libname}${release}${shared_ext}$major'
18905  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18906  shlibpath_var=LD_LIBRARY_PATH
18907  shlibpath_overrides_runpath=no
18908  # This implies no fast_install, which is unacceptable.
18909  # Some rework will be needed to allow for fast_install
18910  # before this can be enabled.
18911  hardcode_into_libs=yes
18912
18913  # Append ld.so.conf contents to the search path
18914  if test -f /etc/ld.so.conf; then
18915    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18916    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18917  fi
18918
18919  # We used to test for /lib/ld.so.1 and disable shared libraries on
18920  # powerpc, because MkLinux only supported shared libraries with the
18921  # GNU dynamic linker.  Since this was broken with cross compilers,
18922  # most powerpc-linux boxes support dynamic linking these days and
18923  # people can always --disable-shared, the test was removed, and we
18924  # assume the GNU/Linux dynamic linker is in use.
18925  dynamic_linker='GNU/Linux ld.so'
18926  ;;
18927
18928netbsdelf*-gnu)
18929  version_type=linux
18930  need_lib_prefix=no
18931  need_version=no
18932  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18933  soname_spec='${libname}${release}${shared_ext}$major'
18934  shlibpath_var=LD_LIBRARY_PATH
18935  shlibpath_overrides_runpath=no
18936  hardcode_into_libs=yes
18937  dynamic_linker='NetBSD ld.elf_so'
18938  ;;
18939
18940netbsd*)
18941  version_type=sunos
18942  need_lib_prefix=no
18943  need_version=no
18944  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18945    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18946    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18947    dynamic_linker='NetBSD (a.out) ld.so'
18948  else
18949    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18950    soname_spec='${libname}${release}${shared_ext}$major'
18951    dynamic_linker='NetBSD ld.elf_so'
18952  fi
18953  shlibpath_var=LD_LIBRARY_PATH
18954  shlibpath_overrides_runpath=yes
18955  hardcode_into_libs=yes
18956  ;;
18957
18958newsos6)
18959  version_type=linux
18960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18961  shlibpath_var=LD_LIBRARY_PATH
18962  shlibpath_overrides_runpath=yes
18963  ;;
18964
18965nto-qnx*)
18966  version_type=linux
18967  need_lib_prefix=no
18968  need_version=no
18969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18970  soname_spec='${libname}${release}${shared_ext}$major'
18971  shlibpath_var=LD_LIBRARY_PATH
18972  shlibpath_overrides_runpath=yes
18973  ;;
18974
18975openbsd*)
18976  version_type=sunos
18977  sys_lib_dlsearch_path_spec="/usr/lib"
18978  need_lib_prefix=no
18979  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18980  case $host_os in
18981    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18982    *)                         need_version=no  ;;
18983  esac
18984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18985  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18986  shlibpath_var=LD_LIBRARY_PATH
18987  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18988    case $host_os in
18989      openbsd2.[89] | openbsd2.[89].*)
18990	shlibpath_overrides_runpath=no
18991	;;
18992      *)
18993	shlibpath_overrides_runpath=yes
18994	;;
18995      esac
18996  else
18997    shlibpath_overrides_runpath=yes
18998  fi
18999  ;;
19000
19001os2*)
19002  libname_spec='$name'
19003  shrext_cmds=".dll"
19004  need_lib_prefix=no
19005  library_names_spec='$libname${shared_ext} $libname.a'
19006  dynamic_linker='OS/2 ld.exe'
19007  shlibpath_var=LIBPATH
19008  ;;
19009
19010osf3* | osf4* | osf5*)
19011  version_type=osf
19012  need_lib_prefix=no
19013  need_version=no
19014  soname_spec='${libname}${release}${shared_ext}$major'
19015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19016  shlibpath_var=LD_LIBRARY_PATH
19017  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19018  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19019  ;;
19020
19021solaris*)
19022  version_type=linux
19023  need_lib_prefix=no
19024  need_version=no
19025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19026  soname_spec='${libname}${release}${shared_ext}$major'
19027  shlibpath_var=LD_LIBRARY_PATH
19028  shlibpath_overrides_runpath=yes
19029  hardcode_into_libs=yes
19030  # ldd complains unless libraries are executable
19031  postinstall_cmds='chmod +x $lib'
19032  ;;
19033
19034sunos4*)
19035  version_type=sunos
19036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19037  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19038  shlibpath_var=LD_LIBRARY_PATH
19039  shlibpath_overrides_runpath=yes
19040  if test "$with_gnu_ld" = yes; then
19041    need_lib_prefix=no
19042  fi
19043  need_version=yes
19044  ;;
19045
19046sysv4 | sysv4.3*)
19047  version_type=linux
19048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19049  soname_spec='${libname}${release}${shared_ext}$major'
19050  shlibpath_var=LD_LIBRARY_PATH
19051  case $host_vendor in
19052    sni)
19053      shlibpath_overrides_runpath=no
19054      need_lib_prefix=no
19055      export_dynamic_flag_spec='${wl}-Blargedynsym'
19056      runpath_var=LD_RUN_PATH
19057      ;;
19058    siemens)
19059      need_lib_prefix=no
19060      ;;
19061    motorola)
19062      need_lib_prefix=no
19063      need_version=no
19064      shlibpath_overrides_runpath=no
19065      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19066      ;;
19067  esac
19068  ;;
19069
19070sysv4*MP*)
19071  if test -d /usr/nec ;then
19072    version_type=linux
19073    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19074    soname_spec='$libname${shared_ext}.$major'
19075    shlibpath_var=LD_LIBRARY_PATH
19076  fi
19077  ;;
19078
19079sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19080  version_type=freebsd-elf
19081  need_lib_prefix=no
19082  need_version=no
19083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19084  soname_spec='${libname}${release}${shared_ext}$major'
19085  shlibpath_var=LD_LIBRARY_PATH
19086  hardcode_into_libs=yes
19087  if test "$with_gnu_ld" = yes; then
19088    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19089    shlibpath_overrides_runpath=no
19090  else
19091    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19092    shlibpath_overrides_runpath=yes
19093    case $host_os in
19094      sco3.2v5*)
19095        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19096	;;
19097    esac
19098  fi
19099  sys_lib_dlsearch_path_spec='/usr/lib'
19100  ;;
19101
19102uts4*)
19103  version_type=linux
19104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19105  soname_spec='${libname}${release}${shared_ext}$major'
19106  shlibpath_var=LD_LIBRARY_PATH
19107  ;;
19108
19109*)
19110  dynamic_linker=no
19111  ;;
19112esac
19113{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19114echo "${ECHO_T}$dynamic_linker" >&6; }
19115test "$dynamic_linker" = no && can_build_shared=no
19116
19117variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19118if test "$GCC" = yes; then
19119  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19120fi
19121
19122{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19123echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19124hardcode_action_GCJ=
19125if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19126   test -n "$runpath_var_GCJ" || \
19127   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19128
19129  # We can hardcode non-existant directories.
19130  if test "$hardcode_direct_GCJ" != no &&
19131     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19132     # have to relink, otherwise we might link with an installed library
19133     # when we should be linking with a yet-to-be-installed one
19134     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19135     test "$hardcode_minus_L_GCJ" != no; then
19136    # Linking always hardcodes the temporary library directory.
19137    hardcode_action_GCJ=relink
19138  else
19139    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19140    hardcode_action_GCJ=immediate
19141  fi
19142else
19143  # We cannot hardcode anything, or else we can only hardcode existing
19144  # directories.
19145  hardcode_action_GCJ=unsupported
19146fi
19147{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19148echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19149
19150if test "$hardcode_action_GCJ" = relink; then
19151  # Fast installation is not supported
19152  enable_fast_install=no
19153elif test "$shlibpath_overrides_runpath" = yes ||
19154     test "$enable_shared" = no; then
19155  # Fast installation is not necessary
19156  enable_fast_install=needless
19157fi
19158
19159
19160# The else clause should only fire when bootstrapping the
19161# libtool distribution, otherwise you forgot to ship ltmain.sh
19162# with your package, and you will get complaints that there are
19163# no rules to generate ltmain.sh.
19164if test -f "$ltmain"; then
19165  # See if we are running on zsh, and set the options which allow our commands through
19166  # without removal of \ escapes.
19167  if test -n "${ZSH_VERSION+set}" ; then
19168    setopt NO_GLOB_SUBST
19169  fi
19170  # Now quote all the things that may contain metacharacters while being
19171  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19172  # variables and quote the copies for generation of the libtool script.
19173  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19174    SED SHELL STRIP \
19175    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19176    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19177    deplibs_check_method reload_flag reload_cmds need_locks \
19178    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19179    lt_cv_sys_global_symbol_to_c_name_address \
19180    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19181    old_postinstall_cmds old_postuninstall_cmds \
19182    compiler_GCJ \
19183    CC_GCJ \
19184    LD_GCJ \
19185    lt_prog_compiler_wl_GCJ \
19186    lt_prog_compiler_pic_GCJ \
19187    lt_prog_compiler_static_GCJ \
19188    lt_prog_compiler_no_builtin_flag_GCJ \
19189    export_dynamic_flag_spec_GCJ \
19190    thread_safe_flag_spec_GCJ \
19191    whole_archive_flag_spec_GCJ \
19192    enable_shared_with_static_runtimes_GCJ \
19193    old_archive_cmds_GCJ \
19194    old_archive_from_new_cmds_GCJ \
19195    predep_objects_GCJ \
19196    postdep_objects_GCJ \
19197    predeps_GCJ \
19198    postdeps_GCJ \
19199    compiler_lib_search_path_GCJ \
19200    archive_cmds_GCJ \
19201    archive_expsym_cmds_GCJ \
19202    postinstall_cmds_GCJ \
19203    postuninstall_cmds_GCJ \
19204    old_archive_from_expsyms_cmds_GCJ \
19205    allow_undefined_flag_GCJ \
19206    no_undefined_flag_GCJ \
19207    export_symbols_cmds_GCJ \
19208    hardcode_libdir_flag_spec_GCJ \
19209    hardcode_libdir_flag_spec_ld_GCJ \
19210    hardcode_libdir_separator_GCJ \
19211    hardcode_automatic_GCJ \
19212    module_cmds_GCJ \
19213    module_expsym_cmds_GCJ \
19214    lt_cv_prog_compiler_c_o_GCJ \
19215    exclude_expsyms_GCJ \
19216    include_expsyms_GCJ; do
19217
19218    case $var in
19219    old_archive_cmds_GCJ | \
19220    old_archive_from_new_cmds_GCJ | \
19221    archive_cmds_GCJ | \
19222    archive_expsym_cmds_GCJ | \
19223    module_cmds_GCJ | \
19224    module_expsym_cmds_GCJ | \
19225    old_archive_from_expsyms_cmds_GCJ | \
19226    export_symbols_cmds_GCJ | \
19227    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19228    postinstall_cmds | postuninstall_cmds | \
19229    old_postinstall_cmds | old_postuninstall_cmds | \
19230    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19231      # Double-quote double-evaled strings.
19232      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19233      ;;
19234    *)
19235      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19236      ;;
19237    esac
19238  done
19239
19240  case $lt_echo in
19241  *'\$0 --fallback-echo"')
19242    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19243    ;;
19244  esac
19245
19246cfgfile="$ofile"
19247
19248  cat <<__EOF__ >> "$cfgfile"
19249# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19250
19251# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19252
19253# Shell to use when invoking shell scripts.
19254SHELL=$lt_SHELL
19255
19256# Whether or not to build shared libraries.
19257build_libtool_libs=$enable_shared
19258
19259# Whether or not to build static libraries.
19260build_old_libs=$enable_static
19261
19262# Whether or not to add -lc for building shared libraries.
19263build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19264
19265# Whether or not to disallow shared libs when runtime libs are static
19266allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19267
19268# Whether or not to optimize for fast installation.
19269fast_install=$enable_fast_install
19270
19271# The host system.
19272host_alias=$host_alias
19273host=$host
19274host_os=$host_os
19275
19276# The build system.
19277build_alias=$build_alias
19278build=$build
19279build_os=$build_os
19280
19281# An echo program that does not interpret backslashes.
19282echo=$lt_echo
19283
19284# The archiver.
19285AR=$lt_AR
19286AR_FLAGS=$lt_AR_FLAGS
19287
19288# A C compiler.
19289LTCC=$lt_LTCC
19290
19291# LTCC compiler flags.
19292LTCFLAGS=$lt_LTCFLAGS
19293
19294# A language-specific compiler.
19295CC=$lt_compiler_GCJ
19296
19297# Is the compiler the GNU C compiler?
19298with_gcc=$GCC_GCJ
19299
19300# An ERE matcher.
19301EGREP=$lt_EGREP
19302
19303# The linker used to build libraries.
19304LD=$lt_LD_GCJ
19305
19306# Whether we need hard or soft links.
19307LN_S=$lt_LN_S
19308
19309# A BSD-compatible nm program.
19310NM=$lt_NM
19311
19312# A symbol stripping program
19313STRIP=$lt_STRIP
19314
19315# Used to examine libraries when file_magic_cmd begins "file"
19316MAGIC_CMD=$MAGIC_CMD
19317
19318# Used on cygwin: DLL creation program.
19319DLLTOOL="$DLLTOOL"
19320
19321# Used on cygwin: object dumper.
19322OBJDUMP="$OBJDUMP"
19323
19324# Used on cygwin: assembler.
19325AS="$AS"
19326
19327# The name of the directory that contains temporary libtool files.
19328objdir=$objdir
19329
19330# How to create reloadable object files.
19331reload_flag=$lt_reload_flag
19332reload_cmds=$lt_reload_cmds
19333
19334# How to pass a linker flag through the compiler.
19335wl=$lt_lt_prog_compiler_wl_GCJ
19336
19337# Object file suffix (normally "o").
19338objext="$ac_objext"
19339
19340# Old archive suffix (normally "a").
19341libext="$libext"
19342
19343# Shared library suffix (normally ".so").
19344shrext_cmds='$shrext_cmds'
19345
19346# Executable file suffix (normally "").
19347exeext="$exeext"
19348
19349# Additional compiler flags for building library objects.
19350pic_flag=$lt_lt_prog_compiler_pic_GCJ
19351pic_mode=$pic_mode
19352
19353# What is the maximum length of a command?
19354max_cmd_len=$lt_cv_sys_max_cmd_len
19355
19356# Does compiler simultaneously support -c and -o options?
19357compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19358
19359# Must we lock files when doing compilation?
19360need_locks=$lt_need_locks
19361
19362# Do we need the lib prefix for modules?
19363need_lib_prefix=$need_lib_prefix
19364
19365# Do we need a version for libraries?
19366need_version=$need_version
19367
19368# Whether dlopen is supported.
19369dlopen_support=$enable_dlopen
19370
19371# Whether dlopen of programs is supported.
19372dlopen_self=$enable_dlopen_self
19373
19374# Whether dlopen of statically linked programs is supported.
19375dlopen_self_static=$enable_dlopen_self_static
19376
19377# Compiler flag to prevent dynamic linking.
19378link_static_flag=$lt_lt_prog_compiler_static_GCJ
19379
19380# Compiler flag to turn off builtin functions.
19381no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19382
19383# Compiler flag to allow reflexive dlopens.
19384export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19385
19386# Compiler flag to generate shared objects directly from archives.
19387whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19388
19389# Compiler flag to generate thread-safe objects.
19390thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19391
19392# Library versioning type.
19393version_type=$version_type
19394
19395# Format of library name prefix.
19396libname_spec=$lt_libname_spec
19397
19398# List of archive names.  First name is the real one, the rest are links.
19399# The last name is the one that the linker finds with -lNAME.
19400library_names_spec=$lt_library_names_spec
19401
19402# The coded name of the library, if different from the real name.
19403soname_spec=$lt_soname_spec
19404
19405# Commands used to build and install an old-style archive.
19406RANLIB=$lt_RANLIB
19407old_archive_cmds=$lt_old_archive_cmds_GCJ
19408old_postinstall_cmds=$lt_old_postinstall_cmds
19409old_postuninstall_cmds=$lt_old_postuninstall_cmds
19410
19411# Create an old-style archive from a shared archive.
19412old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19413
19414# Create a temporary old-style archive to link instead of a shared archive.
19415old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19416
19417# Commands used to build and install a shared archive.
19418archive_cmds=$lt_archive_cmds_GCJ
19419archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19420postinstall_cmds=$lt_postinstall_cmds
19421postuninstall_cmds=$lt_postuninstall_cmds
19422
19423# Commands used to build a loadable module (assumed same as above if empty)
19424module_cmds=$lt_module_cmds_GCJ
19425module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19426
19427# Commands to strip libraries.
19428old_striplib=$lt_old_striplib
19429striplib=$lt_striplib
19430
19431# Dependencies to place before the objects being linked to create a
19432# shared library.
19433predep_objects=$lt_predep_objects_GCJ
19434
19435# Dependencies to place after the objects being linked to create a
19436# shared library.
19437postdep_objects=$lt_postdep_objects_GCJ
19438
19439# Dependencies to place before the objects being linked to create a
19440# shared library.
19441predeps=$lt_predeps_GCJ
19442
19443# Dependencies to place after the objects being linked to create a
19444# shared library.
19445postdeps=$lt_postdeps_GCJ
19446
19447# The library search path used internally by the compiler when linking
19448# a shared library.
19449compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19450
19451# Method to check whether dependent libraries are shared objects.
19452deplibs_check_method=$lt_deplibs_check_method
19453
19454# Command to use when deplibs_check_method == file_magic.
19455file_magic_cmd=$lt_file_magic_cmd
19456
19457# Flag that allows shared libraries with undefined symbols to be built.
19458allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19459
19460# Flag that forces no undefined symbols.
19461no_undefined_flag=$lt_no_undefined_flag_GCJ
19462
19463# Commands used to finish a libtool library installation in a directory.
19464finish_cmds=$lt_finish_cmds
19465
19466# Same as above, but a single script fragment to be evaled but not shown.
19467finish_eval=$lt_finish_eval
19468
19469# Take the output of nm and produce a listing of raw symbols and C names.
19470global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19471
19472# Transform the output of nm in a proper C declaration
19473global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19474
19475# Transform the output of nm in a C name address pair
19476global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19477
19478# This is the shared library runtime path variable.
19479runpath_var=$runpath_var
19480
19481# This is the shared library path variable.
19482shlibpath_var=$shlibpath_var
19483
19484# Is shlibpath searched before the hard-coded library search path?
19485shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19486
19487# How to hardcode a shared library path into an executable.
19488hardcode_action=$hardcode_action_GCJ
19489
19490# Whether we should hardcode library paths into libraries.
19491hardcode_into_libs=$hardcode_into_libs
19492
19493# Flag to hardcode \$libdir into a binary during linking.
19494# This must work even if \$libdir does not exist.
19495hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19496
19497# If ld is used when linking, flag to hardcode \$libdir into
19498# a binary during linking. This must work even if \$libdir does
19499# not exist.
19500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19501
19502# Whether we need a single -rpath flag with a separated argument.
19503hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19504
19505# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19506# resulting binary.
19507hardcode_direct=$hardcode_direct_GCJ
19508
19509# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19510# resulting binary.
19511hardcode_minus_L=$hardcode_minus_L_GCJ
19512
19513# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19514# the resulting binary.
19515hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19516
19517# Set to yes if building a shared library automatically hardcodes DIR into the library
19518# and all subsequent libraries and executables linked against it.
19519hardcode_automatic=$hardcode_automatic_GCJ
19520
19521# Variables whose values should be saved in libtool wrapper scripts and
19522# restored at relink time.
19523variables_saved_for_relink="$variables_saved_for_relink"
19524
19525# Whether libtool must link a program against all its dependency libraries.
19526link_all_deplibs=$link_all_deplibs_GCJ
19527
19528# Compile-time system search path for libraries
19529sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19530
19531# Run-time system search path for libraries
19532sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19533
19534# Fix the shell variable \$srcfile for the compiler.
19535fix_srcfile_path="$fix_srcfile_path_GCJ"
19536
19537# Set to yes if exported symbols are required.
19538always_export_symbols=$always_export_symbols_GCJ
19539
19540# The commands to list exported symbols.
19541export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19542
19543# The commands to extract the exported symbol list from a shared archive.
19544extract_expsyms_cmds=$lt_extract_expsyms_cmds
19545
19546# Symbols that should not be listed in the preloaded symbols.
19547exclude_expsyms=$lt_exclude_expsyms_GCJ
19548
19549# Symbols that must always be exported.
19550include_expsyms=$lt_include_expsyms_GCJ
19551
19552# ### END LIBTOOL TAG CONFIG: $tagname
19553
19554__EOF__
19555
19556
19557else
19558  # If there is no Makefile yet, we rely on a make rule to execute
19559  # `config.status --recheck' to rerun these tests and create the
19560  # libtool script then.
19561  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19562  if test -f "$ltmain_in"; then
19563    test -f Makefile && make "$ltmain"
19564  fi
19565fi
19566
19567
19568ac_ext=c
19569ac_cpp='$CPP $CPPFLAGS'
19570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19572ac_compiler_gnu=$ac_cv_c_compiler_gnu
19573
19574CC="$lt_save_CC"
19575
19576	else
19577	  tagname=""
19578	fi
19579	;;
19580
19581      RC)
19582
19583
19584# Source file extension for RC test sources.
19585ac_ext=rc
19586
19587# Object file extension for compiled RC test sources.
19588objext=o
19589objext_RC=$objext
19590
19591# Code to be used in simple compile tests
19592lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19593
19594# Code to be used in simple link tests
19595lt_simple_link_test_code="$lt_simple_compile_test_code"
19596
19597# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19598
19599# If no C compiler was specified, use CC.
19600LTCC=${LTCC-"$CC"}
19601
19602# If no C compiler flags were specified, use CFLAGS.
19603LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19604
19605# Allow CC to be a program name with arguments.
19606compiler=$CC
19607
19608
19609# save warnings/boilerplate of simple test code
19610ac_outfile=conftest.$ac_objext
19611printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19612eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19613_lt_compiler_boilerplate=`cat conftest.err`
19614$rm conftest*
19615
19616ac_outfile=conftest.$ac_objext
19617printf "$lt_simple_link_test_code" >conftest.$ac_ext
19618eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19619_lt_linker_boilerplate=`cat conftest.err`
19620$rm conftest*
19621
19622
19623# Allow CC to be a program name with arguments.
19624lt_save_CC="$CC"
19625CC=${RC-"windres"}
19626compiler=$CC
19627compiler_RC=$CC
19628for cc_temp in $compiler""; do
19629  case $cc_temp in
19630    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19631    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19632    \-*) ;;
19633    *) break;;
19634  esac
19635done
19636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19637
19638lt_cv_prog_compiler_c_o_RC=yes
19639
19640# The else clause should only fire when bootstrapping the
19641# libtool distribution, otherwise you forgot to ship ltmain.sh
19642# with your package, and you will get complaints that there are
19643# no rules to generate ltmain.sh.
19644if test -f "$ltmain"; then
19645  # See if we are running on zsh, and set the options which allow our commands through
19646  # without removal of \ escapes.
19647  if test -n "${ZSH_VERSION+set}" ; then
19648    setopt NO_GLOB_SUBST
19649  fi
19650  # Now quote all the things that may contain metacharacters while being
19651  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19652  # variables and quote the copies for generation of the libtool script.
19653  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19654    SED SHELL STRIP \
19655    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19656    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19657    deplibs_check_method reload_flag reload_cmds need_locks \
19658    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19659    lt_cv_sys_global_symbol_to_c_name_address \
19660    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19661    old_postinstall_cmds old_postuninstall_cmds \
19662    compiler_RC \
19663    CC_RC \
19664    LD_RC \
19665    lt_prog_compiler_wl_RC \
19666    lt_prog_compiler_pic_RC \
19667    lt_prog_compiler_static_RC \
19668    lt_prog_compiler_no_builtin_flag_RC \
19669    export_dynamic_flag_spec_RC \
19670    thread_safe_flag_spec_RC \
19671    whole_archive_flag_spec_RC \
19672    enable_shared_with_static_runtimes_RC \
19673    old_archive_cmds_RC \
19674    old_archive_from_new_cmds_RC \
19675    predep_objects_RC \
19676    postdep_objects_RC \
19677    predeps_RC \
19678    postdeps_RC \
19679    compiler_lib_search_path_RC \
19680    archive_cmds_RC \
19681    archive_expsym_cmds_RC \
19682    postinstall_cmds_RC \
19683    postuninstall_cmds_RC \
19684    old_archive_from_expsyms_cmds_RC \
19685    allow_undefined_flag_RC \
19686    no_undefined_flag_RC \
19687    export_symbols_cmds_RC \
19688    hardcode_libdir_flag_spec_RC \
19689    hardcode_libdir_flag_spec_ld_RC \
19690    hardcode_libdir_separator_RC \
19691    hardcode_automatic_RC \
19692    module_cmds_RC \
19693    module_expsym_cmds_RC \
19694    lt_cv_prog_compiler_c_o_RC \
19695    exclude_expsyms_RC \
19696    include_expsyms_RC; do
19697
19698    case $var in
19699    old_archive_cmds_RC | \
19700    old_archive_from_new_cmds_RC | \
19701    archive_cmds_RC | \
19702    archive_expsym_cmds_RC | \
19703    module_cmds_RC | \
19704    module_expsym_cmds_RC | \
19705    old_archive_from_expsyms_cmds_RC | \
19706    export_symbols_cmds_RC | \
19707    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19708    postinstall_cmds | postuninstall_cmds | \
19709    old_postinstall_cmds | old_postuninstall_cmds | \
19710    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19711      # Double-quote double-evaled strings.
19712      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19713      ;;
19714    *)
19715      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19716      ;;
19717    esac
19718  done
19719
19720  case $lt_echo in
19721  *'\$0 --fallback-echo"')
19722    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19723    ;;
19724  esac
19725
19726cfgfile="$ofile"
19727
19728  cat <<__EOF__ >> "$cfgfile"
19729# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19730
19731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19732
19733# Shell to use when invoking shell scripts.
19734SHELL=$lt_SHELL
19735
19736# Whether or not to build shared libraries.
19737build_libtool_libs=$enable_shared
19738
19739# Whether or not to build static libraries.
19740build_old_libs=$enable_static
19741
19742# Whether or not to add -lc for building shared libraries.
19743build_libtool_need_lc=$archive_cmds_need_lc_RC
19744
19745# Whether or not to disallow shared libs when runtime libs are static
19746allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19747
19748# Whether or not to optimize for fast installation.
19749fast_install=$enable_fast_install
19750
19751# The host system.
19752host_alias=$host_alias
19753host=$host
19754host_os=$host_os
19755
19756# The build system.
19757build_alias=$build_alias
19758build=$build
19759build_os=$build_os
19760
19761# An echo program that does not interpret backslashes.
19762echo=$lt_echo
19763
19764# The archiver.
19765AR=$lt_AR
19766AR_FLAGS=$lt_AR_FLAGS
19767
19768# A C compiler.
19769LTCC=$lt_LTCC
19770
19771# LTCC compiler flags.
19772LTCFLAGS=$lt_LTCFLAGS
19773
19774# A language-specific compiler.
19775CC=$lt_compiler_RC
19776
19777# Is the compiler the GNU C compiler?
19778with_gcc=$GCC_RC
19779
19780# An ERE matcher.
19781EGREP=$lt_EGREP
19782
19783# The linker used to build libraries.
19784LD=$lt_LD_RC
19785
19786# Whether we need hard or soft links.
19787LN_S=$lt_LN_S
19788
19789# A BSD-compatible nm program.
19790NM=$lt_NM
19791
19792# A symbol stripping program
19793STRIP=$lt_STRIP
19794
19795# Used to examine libraries when file_magic_cmd begins "file"
19796MAGIC_CMD=$MAGIC_CMD
19797
19798# Used on cygwin: DLL creation program.
19799DLLTOOL="$DLLTOOL"
19800
19801# Used on cygwin: object dumper.
19802OBJDUMP="$OBJDUMP"
19803
19804# Used on cygwin: assembler.
19805AS="$AS"
19806
19807# The name of the directory that contains temporary libtool files.
19808objdir=$objdir
19809
19810# How to create reloadable object files.
19811reload_flag=$lt_reload_flag
19812reload_cmds=$lt_reload_cmds
19813
19814# How to pass a linker flag through the compiler.
19815wl=$lt_lt_prog_compiler_wl_RC
19816
19817# Object file suffix (normally "o").
19818objext="$ac_objext"
19819
19820# Old archive suffix (normally "a").
19821libext="$libext"
19822
19823# Shared library suffix (normally ".so").
19824shrext_cmds='$shrext_cmds'
19825
19826# Executable file suffix (normally "").
19827exeext="$exeext"
19828
19829# Additional compiler flags for building library objects.
19830pic_flag=$lt_lt_prog_compiler_pic_RC
19831pic_mode=$pic_mode
19832
19833# What is the maximum length of a command?
19834max_cmd_len=$lt_cv_sys_max_cmd_len
19835
19836# Does compiler simultaneously support -c and -o options?
19837compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19838
19839# Must we lock files when doing compilation?
19840need_locks=$lt_need_locks
19841
19842# Do we need the lib prefix for modules?
19843need_lib_prefix=$need_lib_prefix
19844
19845# Do we need a version for libraries?
19846need_version=$need_version
19847
19848# Whether dlopen is supported.
19849dlopen_support=$enable_dlopen
19850
19851# Whether dlopen of programs is supported.
19852dlopen_self=$enable_dlopen_self
19853
19854# Whether dlopen of statically linked programs is supported.
19855dlopen_self_static=$enable_dlopen_self_static
19856
19857# Compiler flag to prevent dynamic linking.
19858link_static_flag=$lt_lt_prog_compiler_static_RC
19859
19860# Compiler flag to turn off builtin functions.
19861no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19862
19863# Compiler flag to allow reflexive dlopens.
19864export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19865
19866# Compiler flag to generate shared objects directly from archives.
19867whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19868
19869# Compiler flag to generate thread-safe objects.
19870thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19871
19872# Library versioning type.
19873version_type=$version_type
19874
19875# Format of library name prefix.
19876libname_spec=$lt_libname_spec
19877
19878# List of archive names.  First name is the real one, the rest are links.
19879# The last name is the one that the linker finds with -lNAME.
19880library_names_spec=$lt_library_names_spec
19881
19882# The coded name of the library, if different from the real name.
19883soname_spec=$lt_soname_spec
19884
19885# Commands used to build and install an old-style archive.
19886RANLIB=$lt_RANLIB
19887old_archive_cmds=$lt_old_archive_cmds_RC
19888old_postinstall_cmds=$lt_old_postinstall_cmds
19889old_postuninstall_cmds=$lt_old_postuninstall_cmds
19890
19891# Create an old-style archive from a shared archive.
19892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19893
19894# Create a temporary old-style archive to link instead of a shared archive.
19895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19896
19897# Commands used to build and install a shared archive.
19898archive_cmds=$lt_archive_cmds_RC
19899archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19900postinstall_cmds=$lt_postinstall_cmds
19901postuninstall_cmds=$lt_postuninstall_cmds
19902
19903# Commands used to build a loadable module (assumed same as above if empty)
19904module_cmds=$lt_module_cmds_RC
19905module_expsym_cmds=$lt_module_expsym_cmds_RC
19906
19907# Commands to strip libraries.
19908old_striplib=$lt_old_striplib
19909striplib=$lt_striplib
19910
19911# Dependencies to place before the objects being linked to create a
19912# shared library.
19913predep_objects=$lt_predep_objects_RC
19914
19915# Dependencies to place after the objects being linked to create a
19916# shared library.
19917postdep_objects=$lt_postdep_objects_RC
19918
19919# Dependencies to place before the objects being linked to create a
19920# shared library.
19921predeps=$lt_predeps_RC
19922
19923# Dependencies to place after the objects being linked to create a
19924# shared library.
19925postdeps=$lt_postdeps_RC
19926
19927# The library search path used internally by the compiler when linking
19928# a shared library.
19929compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19930
19931# Method to check whether dependent libraries are shared objects.
19932deplibs_check_method=$lt_deplibs_check_method
19933
19934# Command to use when deplibs_check_method == file_magic.
19935file_magic_cmd=$lt_file_magic_cmd
19936
19937# Flag that allows shared libraries with undefined symbols to be built.
19938allow_undefined_flag=$lt_allow_undefined_flag_RC
19939
19940# Flag that forces no undefined symbols.
19941no_undefined_flag=$lt_no_undefined_flag_RC
19942
19943# Commands used to finish a libtool library installation in a directory.
19944finish_cmds=$lt_finish_cmds
19945
19946# Same as above, but a single script fragment to be evaled but not shown.
19947finish_eval=$lt_finish_eval
19948
19949# Take the output of nm and produce a listing of raw symbols and C names.
19950global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19951
19952# Transform the output of nm in a proper C declaration
19953global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19954
19955# Transform the output of nm in a C name address pair
19956global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19957
19958# This is the shared library runtime path variable.
19959runpath_var=$runpath_var
19960
19961# This is the shared library path variable.
19962shlibpath_var=$shlibpath_var
19963
19964# Is shlibpath searched before the hard-coded library search path?
19965shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19966
19967# How to hardcode a shared library path into an executable.
19968hardcode_action=$hardcode_action_RC
19969
19970# Whether we should hardcode library paths into libraries.
19971hardcode_into_libs=$hardcode_into_libs
19972
19973# Flag to hardcode \$libdir into a binary during linking.
19974# This must work even if \$libdir does not exist.
19975hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19976
19977# If ld is used when linking, flag to hardcode \$libdir into
19978# a binary during linking. This must work even if \$libdir does
19979# not exist.
19980hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19981
19982# Whether we need a single -rpath flag with a separated argument.
19983hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19984
19985# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19986# resulting binary.
19987hardcode_direct=$hardcode_direct_RC
19988
19989# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19990# resulting binary.
19991hardcode_minus_L=$hardcode_minus_L_RC
19992
19993# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19994# the resulting binary.
19995hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19996
19997# Set to yes if building a shared library automatically hardcodes DIR into the library
19998# and all subsequent libraries and executables linked against it.
19999hardcode_automatic=$hardcode_automatic_RC
20000
20001# Variables whose values should be saved in libtool wrapper scripts and
20002# restored at relink time.
20003variables_saved_for_relink="$variables_saved_for_relink"
20004
20005# Whether libtool must link a program against all its dependency libraries.
20006link_all_deplibs=$link_all_deplibs_RC
20007
20008# Compile-time system search path for libraries
20009sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20010
20011# Run-time system search path for libraries
20012sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20013
20014# Fix the shell variable \$srcfile for the compiler.
20015fix_srcfile_path="$fix_srcfile_path_RC"
20016
20017# Set to yes if exported symbols are required.
20018always_export_symbols=$always_export_symbols_RC
20019
20020# The commands to list exported symbols.
20021export_symbols_cmds=$lt_export_symbols_cmds_RC
20022
20023# The commands to extract the exported symbol list from a shared archive.
20024extract_expsyms_cmds=$lt_extract_expsyms_cmds
20025
20026# Symbols that should not be listed in the preloaded symbols.
20027exclude_expsyms=$lt_exclude_expsyms_RC
20028
20029# Symbols that must always be exported.
20030include_expsyms=$lt_include_expsyms_RC
20031
20032# ### END LIBTOOL TAG CONFIG: $tagname
20033
20034__EOF__
20035
20036
20037else
20038  # If there is no Makefile yet, we rely on a make rule to execute
20039  # `config.status --recheck' to rerun these tests and create the
20040  # libtool script then.
20041  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20042  if test -f "$ltmain_in"; then
20043    test -f Makefile && make "$ltmain"
20044  fi
20045fi
20046
20047
20048ac_ext=c
20049ac_cpp='$CPP $CPPFLAGS'
20050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20052ac_compiler_gnu=$ac_cv_c_compiler_gnu
20053
20054CC="$lt_save_CC"
20055
20056	;;
20057
20058      *)
20059	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20060echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20061   { (exit 1); exit 1; }; }
20062	;;
20063      esac
20064
20065      # Append the new tag name to the list of available tags.
20066      if test -n "$tagname" ; then
20067      available_tags="$available_tags $tagname"
20068    fi
20069    fi
20070  done
20071  IFS="$lt_save_ifs"
20072
20073  # Now substitute the updated list of available tags.
20074  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20075    mv "${ofile}T" "$ofile"
20076    chmod +x "$ofile"
20077  else
20078    rm -f "${ofile}T"
20079    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20080echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20081   { (exit 1); exit 1; }; }
20082  fi
20083fi
20084
20085
20086
20087# This can be used to rebuild libtool when needed
20088LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20089
20090# Always use our own libtool.
20091LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20092
20093# Prevent multiple expansion
20094
20095
20096
20097
20098
20099
20100
20101
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114ac_ext=c
20115ac_cpp='$CPP $CPPFLAGS'
20116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20118ac_compiler_gnu=$ac_cv_c_compiler_gnu
20119if test -n "$ac_tool_prefix"; then
20120  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20121set dummy ${ac_tool_prefix}gcc; ac_word=$2
20122{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20124if test "${ac_cv_prog_CC+set}" = set; then
20125  echo $ECHO_N "(cached) $ECHO_C" >&6
20126else
20127  if test -n "$CC"; then
20128  ac_cv_prog_CC="$CC" # Let the user override the test.
20129else
20130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20131for as_dir in $PATH
20132do
20133  IFS=$as_save_IFS
20134  test -z "$as_dir" && as_dir=.
20135  for ac_exec_ext in '' $ac_executable_extensions; do
20136  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20137    ac_cv_prog_CC="${ac_tool_prefix}gcc"
20138    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20139    break 2
20140  fi
20141done
20142done
20143IFS=$as_save_IFS
20144
20145fi
20146fi
20147CC=$ac_cv_prog_CC
20148if test -n "$CC"; then
20149  { echo "$as_me:$LINENO: result: $CC" >&5
20150echo "${ECHO_T}$CC" >&6; }
20151else
20152  { echo "$as_me:$LINENO: result: no" >&5
20153echo "${ECHO_T}no" >&6; }
20154fi
20155
20156
20157fi
20158if test -z "$ac_cv_prog_CC"; then
20159  ac_ct_CC=$CC
20160  # Extract the first word of "gcc", so it can be a program name with args.
20161set dummy gcc; ac_word=$2
20162{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20165  echo $ECHO_N "(cached) $ECHO_C" >&6
20166else
20167  if test -n "$ac_ct_CC"; then
20168  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20169else
20170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20171for as_dir in $PATH
20172do
20173  IFS=$as_save_IFS
20174  test -z "$as_dir" && as_dir=.
20175  for ac_exec_ext in '' $ac_executable_extensions; do
20176  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20177    ac_cv_prog_ac_ct_CC="gcc"
20178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20179    break 2
20180  fi
20181done
20182done
20183IFS=$as_save_IFS
20184
20185fi
20186fi
20187ac_ct_CC=$ac_cv_prog_ac_ct_CC
20188if test -n "$ac_ct_CC"; then
20189  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20190echo "${ECHO_T}$ac_ct_CC" >&6; }
20191else
20192  { echo "$as_me:$LINENO: result: no" >&5
20193echo "${ECHO_T}no" >&6; }
20194fi
20195
20196  if test "x$ac_ct_CC" = x; then
20197    CC=""
20198  else
20199    case $cross_compiling:$ac_tool_warned in
20200yes:)
20201{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20202whose name does not start with the host triplet.  If you think this
20203configuration is useful to you, please write to autoconf@gnu.org." >&5
20204echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20205whose name does not start with the host triplet.  If you think this
20206configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20207ac_tool_warned=yes ;;
20208esac
20209    CC=$ac_ct_CC
20210  fi
20211else
20212  CC="$ac_cv_prog_CC"
20213fi
20214
20215if test -z "$CC"; then
20216          if test -n "$ac_tool_prefix"; then
20217    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20218set dummy ${ac_tool_prefix}cc; ac_word=$2
20219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20221if test "${ac_cv_prog_CC+set}" = set; then
20222  echo $ECHO_N "(cached) $ECHO_C" >&6
20223else
20224  if test -n "$CC"; then
20225  ac_cv_prog_CC="$CC" # Let the user override the test.
20226else
20227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20228for as_dir in $PATH
20229do
20230  IFS=$as_save_IFS
20231  test -z "$as_dir" && as_dir=.
20232  for ac_exec_ext in '' $ac_executable_extensions; do
20233  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20234    ac_cv_prog_CC="${ac_tool_prefix}cc"
20235    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20236    break 2
20237  fi
20238done
20239done
20240IFS=$as_save_IFS
20241
20242fi
20243fi
20244CC=$ac_cv_prog_CC
20245if test -n "$CC"; then
20246  { echo "$as_me:$LINENO: result: $CC" >&5
20247echo "${ECHO_T}$CC" >&6; }
20248else
20249  { echo "$as_me:$LINENO: result: no" >&5
20250echo "${ECHO_T}no" >&6; }
20251fi
20252
20253
20254  fi
20255fi
20256if test -z "$CC"; then
20257  # Extract the first word of "cc", so it can be a program name with args.
20258set dummy cc; ac_word=$2
20259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20261if test "${ac_cv_prog_CC+set}" = set; then
20262  echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
20264  if test -n "$CC"; then
20265  ac_cv_prog_CC="$CC" # Let the user override the test.
20266else
20267  ac_prog_rejected=no
20268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20269for as_dir in $PATH
20270do
20271  IFS=$as_save_IFS
20272  test -z "$as_dir" && as_dir=.
20273  for ac_exec_ext in '' $ac_executable_extensions; do
20274  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20275    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20276       ac_prog_rejected=yes
20277       continue
20278     fi
20279    ac_cv_prog_CC="cc"
20280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20281    break 2
20282  fi
20283done
20284done
20285IFS=$as_save_IFS
20286
20287if test $ac_prog_rejected = yes; then
20288  # We found a bogon in the path, so make sure we never use it.
20289  set dummy $ac_cv_prog_CC
20290  shift
20291  if test $# != 0; then
20292    # We chose a different compiler from the bogus one.
20293    # However, it has the same basename, so the bogon will be chosen
20294    # first if we set CC to just the basename; use the full file name.
20295    shift
20296    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20297  fi
20298fi
20299fi
20300fi
20301CC=$ac_cv_prog_CC
20302if test -n "$CC"; then
20303  { echo "$as_me:$LINENO: result: $CC" >&5
20304echo "${ECHO_T}$CC" >&6; }
20305else
20306  { echo "$as_me:$LINENO: result: no" >&5
20307echo "${ECHO_T}no" >&6; }
20308fi
20309
20310
20311fi
20312if test -z "$CC"; then
20313  if test -n "$ac_tool_prefix"; then
20314  for ac_prog in cl.exe
20315  do
20316    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20317set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20318{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20320if test "${ac_cv_prog_CC+set}" = set; then
20321  echo $ECHO_N "(cached) $ECHO_C" >&6
20322else
20323  if test -n "$CC"; then
20324  ac_cv_prog_CC="$CC" # Let the user override the test.
20325else
20326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20327for as_dir in $PATH
20328do
20329  IFS=$as_save_IFS
20330  test -z "$as_dir" && as_dir=.
20331  for ac_exec_ext in '' $ac_executable_extensions; do
20332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20333    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20334    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20335    break 2
20336  fi
20337done
20338done
20339IFS=$as_save_IFS
20340
20341fi
20342fi
20343CC=$ac_cv_prog_CC
20344if test -n "$CC"; then
20345  { echo "$as_me:$LINENO: result: $CC" >&5
20346echo "${ECHO_T}$CC" >&6; }
20347else
20348  { echo "$as_me:$LINENO: result: no" >&5
20349echo "${ECHO_T}no" >&6; }
20350fi
20351
20352
20353    test -n "$CC" && break
20354  done
20355fi
20356if test -z "$CC"; then
20357  ac_ct_CC=$CC
20358  for ac_prog in cl.exe
20359do
20360  # Extract the first word of "$ac_prog", so it can be a program name with args.
20361set dummy $ac_prog; ac_word=$2
20362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20364if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20365  echo $ECHO_N "(cached) $ECHO_C" >&6
20366else
20367  if test -n "$ac_ct_CC"; then
20368  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20369else
20370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20371for as_dir in $PATH
20372do
20373  IFS=$as_save_IFS
20374  test -z "$as_dir" && as_dir=.
20375  for ac_exec_ext in '' $ac_executable_extensions; do
20376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20377    ac_cv_prog_ac_ct_CC="$ac_prog"
20378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20379    break 2
20380  fi
20381done
20382done
20383IFS=$as_save_IFS
20384
20385fi
20386fi
20387ac_ct_CC=$ac_cv_prog_ac_ct_CC
20388if test -n "$ac_ct_CC"; then
20389  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20390echo "${ECHO_T}$ac_ct_CC" >&6; }
20391else
20392  { echo "$as_me:$LINENO: result: no" >&5
20393echo "${ECHO_T}no" >&6; }
20394fi
20395
20396
20397  test -n "$ac_ct_CC" && break
20398done
20399
20400  if test "x$ac_ct_CC" = x; then
20401    CC=""
20402  else
20403    case $cross_compiling:$ac_tool_warned in
20404yes:)
20405{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20406whose name does not start with the host triplet.  If you think this
20407configuration is useful to you, please write to autoconf@gnu.org." >&5
20408echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20409whose name does not start with the host triplet.  If you think this
20410configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20411ac_tool_warned=yes ;;
20412esac
20413    CC=$ac_ct_CC
20414  fi
20415fi
20416
20417fi
20418
20419
20420test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20421See \`config.log' for more details." >&5
20422echo "$as_me: error: no acceptable C compiler found in \$PATH
20423See \`config.log' for more details." >&2;}
20424   { (exit 1); exit 1; }; }
20425
20426# Provide some information about the compiler.
20427echo "$as_me:$LINENO: checking for C compiler version" >&5
20428ac_compiler=`set X $ac_compile; echo $2`
20429{ (ac_try="$ac_compiler --version >&5"
20430case "(($ac_try" in
20431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432  *) ac_try_echo=$ac_try;;
20433esac
20434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435  (eval "$ac_compiler --version >&5") 2>&5
20436  ac_status=$?
20437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438  (exit $ac_status); }
20439{ (ac_try="$ac_compiler -v >&5"
20440case "(($ac_try" in
20441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442  *) ac_try_echo=$ac_try;;
20443esac
20444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20445  (eval "$ac_compiler -v >&5") 2>&5
20446  ac_status=$?
20447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448  (exit $ac_status); }
20449{ (ac_try="$ac_compiler -V >&5"
20450case "(($ac_try" in
20451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20452  *) ac_try_echo=$ac_try;;
20453esac
20454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455  (eval "$ac_compiler -V >&5") 2>&5
20456  ac_status=$?
20457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458  (exit $ac_status); }
20459
20460{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20461echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20462if test "${ac_cv_c_compiler_gnu+set}" = set; then
20463  echo $ECHO_N "(cached) $ECHO_C" >&6
20464else
20465  cat >conftest.$ac_ext <<_ACEOF
20466/* confdefs.h.  */
20467_ACEOF
20468cat confdefs.h >>conftest.$ac_ext
20469cat >>conftest.$ac_ext <<_ACEOF
20470/* end confdefs.h.  */
20471
20472int
20473main ()
20474{
20475#ifndef __GNUC__
20476       choke me
20477#endif
20478
20479  ;
20480  return 0;
20481}
20482_ACEOF
20483rm -f conftest.$ac_objext
20484if { (ac_try="$ac_compile"
20485case "(($ac_try" in
20486  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487  *) ac_try_echo=$ac_try;;
20488esac
20489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490  (eval "$ac_compile") 2>conftest.er1
20491  ac_status=$?
20492  grep -v '^ *+' conftest.er1 >conftest.err
20493  rm -f conftest.er1
20494  cat conftest.err >&5
20495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496  (exit $ac_status); } && {
20497	 test -z "$ac_c_werror_flag" ||
20498	 test ! -s conftest.err
20499       } && test -s conftest.$ac_objext; then
20500  ac_compiler_gnu=yes
20501else
20502  echo "$as_me: failed program was:" >&5
20503sed 's/^/| /' conftest.$ac_ext >&5
20504
20505	ac_compiler_gnu=no
20506fi
20507
20508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20509ac_cv_c_compiler_gnu=$ac_compiler_gnu
20510
20511fi
20512{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20513echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20514GCC=`test $ac_compiler_gnu = yes && echo yes`
20515ac_test_CFLAGS=${CFLAGS+set}
20516ac_save_CFLAGS=$CFLAGS
20517{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20518echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20519if test "${ac_cv_prog_cc_g+set}" = set; then
20520  echo $ECHO_N "(cached) $ECHO_C" >&6
20521else
20522  ac_save_c_werror_flag=$ac_c_werror_flag
20523   ac_c_werror_flag=yes
20524   ac_cv_prog_cc_g=no
20525   CFLAGS="-g"
20526   cat >conftest.$ac_ext <<_ACEOF
20527/* confdefs.h.  */
20528_ACEOF
20529cat confdefs.h >>conftest.$ac_ext
20530cat >>conftest.$ac_ext <<_ACEOF
20531/* end confdefs.h.  */
20532
20533int
20534main ()
20535{
20536
20537  ;
20538  return 0;
20539}
20540_ACEOF
20541rm -f conftest.$ac_objext
20542if { (ac_try="$ac_compile"
20543case "(($ac_try" in
20544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20545  *) ac_try_echo=$ac_try;;
20546esac
20547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20548  (eval "$ac_compile") 2>conftest.er1
20549  ac_status=$?
20550  grep -v '^ *+' conftest.er1 >conftest.err
20551  rm -f conftest.er1
20552  cat conftest.err >&5
20553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554  (exit $ac_status); } && {
20555	 test -z "$ac_c_werror_flag" ||
20556	 test ! -s conftest.err
20557       } && test -s conftest.$ac_objext; then
20558  ac_cv_prog_cc_g=yes
20559else
20560  echo "$as_me: failed program was:" >&5
20561sed 's/^/| /' conftest.$ac_ext >&5
20562
20563	CFLAGS=""
20564      cat >conftest.$ac_ext <<_ACEOF
20565/* confdefs.h.  */
20566_ACEOF
20567cat confdefs.h >>conftest.$ac_ext
20568cat >>conftest.$ac_ext <<_ACEOF
20569/* end confdefs.h.  */
20570
20571int
20572main ()
20573{
20574
20575  ;
20576  return 0;
20577}
20578_ACEOF
20579rm -f conftest.$ac_objext
20580if { (ac_try="$ac_compile"
20581case "(($ac_try" in
20582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583  *) ac_try_echo=$ac_try;;
20584esac
20585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586  (eval "$ac_compile") 2>conftest.er1
20587  ac_status=$?
20588  grep -v '^ *+' conftest.er1 >conftest.err
20589  rm -f conftest.er1
20590  cat conftest.err >&5
20591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592  (exit $ac_status); } && {
20593	 test -z "$ac_c_werror_flag" ||
20594	 test ! -s conftest.err
20595       } && test -s conftest.$ac_objext; then
20596  :
20597else
20598  echo "$as_me: failed program was:" >&5
20599sed 's/^/| /' conftest.$ac_ext >&5
20600
20601	ac_c_werror_flag=$ac_save_c_werror_flag
20602	 CFLAGS="-g"
20603	 cat >conftest.$ac_ext <<_ACEOF
20604/* confdefs.h.  */
20605_ACEOF
20606cat confdefs.h >>conftest.$ac_ext
20607cat >>conftest.$ac_ext <<_ACEOF
20608/* end confdefs.h.  */
20609
20610int
20611main ()
20612{
20613
20614  ;
20615  return 0;
20616}
20617_ACEOF
20618rm -f conftest.$ac_objext
20619if { (ac_try="$ac_compile"
20620case "(($ac_try" in
20621  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20622  *) ac_try_echo=$ac_try;;
20623esac
20624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20625  (eval "$ac_compile") 2>conftest.er1
20626  ac_status=$?
20627  grep -v '^ *+' conftest.er1 >conftest.err
20628  rm -f conftest.er1
20629  cat conftest.err >&5
20630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631  (exit $ac_status); } && {
20632	 test -z "$ac_c_werror_flag" ||
20633	 test ! -s conftest.err
20634       } && test -s conftest.$ac_objext; then
20635  ac_cv_prog_cc_g=yes
20636else
20637  echo "$as_me: failed program was:" >&5
20638sed 's/^/| /' conftest.$ac_ext >&5
20639
20640
20641fi
20642
20643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644fi
20645
20646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20647fi
20648
20649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650   ac_c_werror_flag=$ac_save_c_werror_flag
20651fi
20652{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20653echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20654if test "$ac_test_CFLAGS" = set; then
20655  CFLAGS=$ac_save_CFLAGS
20656elif test $ac_cv_prog_cc_g = yes; then
20657  if test "$GCC" = yes; then
20658    CFLAGS="-g -O2"
20659  else
20660    CFLAGS="-g"
20661  fi
20662else
20663  if test "$GCC" = yes; then
20664    CFLAGS="-O2"
20665  else
20666    CFLAGS=
20667  fi
20668fi
20669{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20670echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20671if test "${ac_cv_prog_cc_c89+set}" = set; then
20672  echo $ECHO_N "(cached) $ECHO_C" >&6
20673else
20674  ac_cv_prog_cc_c89=no
20675ac_save_CC=$CC
20676cat >conftest.$ac_ext <<_ACEOF
20677/* confdefs.h.  */
20678_ACEOF
20679cat confdefs.h >>conftest.$ac_ext
20680cat >>conftest.$ac_ext <<_ACEOF
20681/* end confdefs.h.  */
20682#include <stdarg.h>
20683#include <stdio.h>
20684#include <sys/types.h>
20685#include <sys/stat.h>
20686/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20687struct buf { int x; };
20688FILE * (*rcsopen) (struct buf *, struct stat *, int);
20689static char *e (p, i)
20690     char **p;
20691     int i;
20692{
20693  return p[i];
20694}
20695static char *f (char * (*g) (char **, int), char **p, ...)
20696{
20697  char *s;
20698  va_list v;
20699  va_start (v,p);
20700  s = g (p, va_arg (v,int));
20701  va_end (v);
20702  return s;
20703}
20704
20705/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20706   function prototypes and stuff, but not '\xHH' hex character constants.
20707   These don't provoke an error unfortunately, instead are silently treated
20708   as 'x'.  The following induces an error, until -std is added to get
20709   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20710   array size at least.  It's necessary to write '\x00'==0 to get something
20711   that's true only with -std.  */
20712int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20713
20714/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20715   inside strings and character constants.  */
20716#define FOO(x) 'x'
20717int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20718
20719int test (int i, double x);
20720struct s1 {int (*f) (int a);};
20721struct s2 {int (*f) (double a);};
20722int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20723int argc;
20724char **argv;
20725int
20726main ()
20727{
20728return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20729  ;
20730  return 0;
20731}
20732_ACEOF
20733for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20734	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20735do
20736  CC="$ac_save_CC $ac_arg"
20737  rm -f conftest.$ac_objext
20738if { (ac_try="$ac_compile"
20739case "(($ac_try" in
20740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741  *) ac_try_echo=$ac_try;;
20742esac
20743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744  (eval "$ac_compile") 2>conftest.er1
20745  ac_status=$?
20746  grep -v '^ *+' conftest.er1 >conftest.err
20747  rm -f conftest.er1
20748  cat conftest.err >&5
20749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750  (exit $ac_status); } && {
20751	 test -z "$ac_c_werror_flag" ||
20752	 test ! -s conftest.err
20753       } && test -s conftest.$ac_objext; then
20754  ac_cv_prog_cc_c89=$ac_arg
20755else
20756  echo "$as_me: failed program was:" >&5
20757sed 's/^/| /' conftest.$ac_ext >&5
20758
20759
20760fi
20761
20762rm -f core conftest.err conftest.$ac_objext
20763  test "x$ac_cv_prog_cc_c89" != "xno" && break
20764done
20765rm -f conftest.$ac_ext
20766CC=$ac_save_CC
20767
20768fi
20769# AC_CACHE_VAL
20770case "x$ac_cv_prog_cc_c89" in
20771  x)
20772    { echo "$as_me:$LINENO: result: none needed" >&5
20773echo "${ECHO_T}none needed" >&6; } ;;
20774  xno)
20775    { echo "$as_me:$LINENO: result: unsupported" >&5
20776echo "${ECHO_T}unsupported" >&6; } ;;
20777  *)
20778    CC="$CC $ac_cv_prog_cc_c89"
20779    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20780echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20781esac
20782
20783
20784ac_ext=c
20785ac_cpp='$CPP $CPPFLAGS'
20786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20788ac_compiler_gnu=$ac_cv_c_compiler_gnu
20789
20790depcc="$CC"   am_compiler_list=
20791
20792{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20793echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20794if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20795  echo $ECHO_N "(cached) $ECHO_C" >&6
20796else
20797  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20798  # We make a subdir and do the tests there.  Otherwise we can end up
20799  # making bogus files that we don't know about and never remove.  For
20800  # instance it was reported that on HP-UX the gcc test will end up
20801  # making a dummy file named `D' -- because `-MD' means `put the output
20802  # in D'.
20803  mkdir conftest.dir
20804  # Copy depcomp to subdir because otherwise we won't find it if we're
20805  # using a relative directory.
20806  cp "$am_depcomp" conftest.dir
20807  cd conftest.dir
20808  # We will build objects and dependencies in a subdirectory because
20809  # it helps to detect inapplicable dependency modes.  For instance
20810  # both Tru64's cc and ICC support -MD to output dependencies as a
20811  # side effect of compilation, but ICC will put the dependencies in
20812  # the current directory while Tru64 will put them in the object
20813  # directory.
20814  mkdir sub
20815
20816  am_cv_CC_dependencies_compiler_type=none
20817  if test "$am_compiler_list" = ""; then
20818     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20819  fi
20820  for depmode in $am_compiler_list; do
20821    # Setup a source with many dependencies, because some compilers
20822    # like to wrap large dependency lists on column 80 (with \), and
20823    # we should not choose a depcomp mode which is confused by this.
20824    #
20825    # We need to recreate these files for each test, as the compiler may
20826    # overwrite some of them when testing with obscure command lines.
20827    # This happens at least with the AIX C compiler.
20828    : > sub/conftest.c
20829    for i in 1 2 3 4 5 6; do
20830      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20831      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20832      # Solaris 8's {/usr,}/bin/sh.
20833      touch sub/conftst$i.h
20834    done
20835    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20836
20837    case $depmode in
20838    nosideeffect)
20839      # after this tag, mechanisms are not by side-effect, so they'll
20840      # only be used when explicitly requested
20841      if test "x$enable_dependency_tracking" = xyes; then
20842	continue
20843      else
20844	break
20845      fi
20846      ;;
20847    none) break ;;
20848    esac
20849    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20850    # mode.  It turns out that the SunPro C++ compiler does not properly
20851    # handle `-M -o', and we need to detect this.
20852    if depmode=$depmode \
20853       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20854       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20855       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20856         >/dev/null 2>conftest.err &&
20857       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20858       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20859       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20860      # icc doesn't choke on unknown options, it will just issue warnings
20861      # or remarks (even with -Werror).  So we grep stderr for any message
20862      # that says an option was ignored or not supported.
20863      # When given -MP, icc 7.0 and 7.1 complain thusly:
20864      #   icc: Command line warning: ignoring option '-M'; no argument required
20865      # The diagnosis changed in icc 8.0:
20866      #   icc: Command line remark: option '-MP' not supported
20867      if (grep 'ignoring option' conftest.err ||
20868          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20869        am_cv_CC_dependencies_compiler_type=$depmode
20870        break
20871      fi
20872    fi
20873  done
20874
20875  cd ..
20876  rm -rf conftest.dir
20877else
20878  am_cv_CC_dependencies_compiler_type=none
20879fi
20880
20881fi
20882{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20883echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20884CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20885
20886
20887
20888if
20889  test "x$enable_dependency_tracking" != xno \
20890  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20891  am__fastdepCC_TRUE=
20892  am__fastdepCC_FALSE='#'
20893else
20894  am__fastdepCC_TRUE='#'
20895  am__fastdepCC_FALSE=
20896fi
20897
20898
20899ac_ext=c
20900ac_cpp='$CPP $CPPFLAGS'
20901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20903ac_compiler_gnu=$ac_cv_c_compiler_gnu
20904{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20905echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
20906# On Suns, sometimes $CPP names a directory.
20907if test -n "$CPP" && test -d "$CPP"; then
20908  CPP=
20909fi
20910if test -z "$CPP"; then
20911  if test "${ac_cv_prog_CPP+set}" = set; then
20912  echo $ECHO_N "(cached) $ECHO_C" >&6
20913else
20914      # Double quotes because CPP needs to be expanded
20915    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20916    do
20917      ac_preproc_ok=false
20918for ac_c_preproc_warn_flag in '' yes
20919do
20920  # Use a header file that comes with gcc, so configuring glibc
20921  # with a fresh cross-compiler works.
20922  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20923  # <limits.h> exists even on freestanding compilers.
20924  # On the NeXT, cc -E runs the code through the compiler's parser,
20925  # not just through cpp. "Syntax error" is here to catch this case.
20926  cat >conftest.$ac_ext <<_ACEOF
20927/* confdefs.h.  */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h.  */
20932#ifdef __STDC__
20933# include <limits.h>
20934#else
20935# include <assert.h>
20936#endif
20937		     Syntax error
20938_ACEOF
20939if { (ac_try="$ac_cpp conftest.$ac_ext"
20940case "(($ac_try" in
20941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942  *) ac_try_echo=$ac_try;;
20943esac
20944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20946  ac_status=$?
20947  grep -v '^ *+' conftest.er1 >conftest.err
20948  rm -f conftest.er1
20949  cat conftest.err >&5
20950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951  (exit $ac_status); } >/dev/null && {
20952	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20953	 test ! -s conftest.err
20954       }; then
20955  :
20956else
20957  echo "$as_me: failed program was:" >&5
20958sed 's/^/| /' conftest.$ac_ext >&5
20959
20960  # Broken: fails on valid input.
20961continue
20962fi
20963
20964rm -f conftest.err conftest.$ac_ext
20965
20966  # OK, works on sane cases.  Now check whether nonexistent headers
20967  # can be detected and how.
20968  cat >conftest.$ac_ext <<_ACEOF
20969/* confdefs.h.  */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h.  */
20974#include <ac_nonexistent.h>
20975_ACEOF
20976if { (ac_try="$ac_cpp conftest.$ac_ext"
20977case "(($ac_try" in
20978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979  *) ac_try_echo=$ac_try;;
20980esac
20981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20983  ac_status=$?
20984  grep -v '^ *+' conftest.er1 >conftest.err
20985  rm -f conftest.er1
20986  cat conftest.err >&5
20987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988  (exit $ac_status); } >/dev/null && {
20989	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20990	 test ! -s conftest.err
20991       }; then
20992  # Broken: success on invalid input.
20993continue
20994else
20995  echo "$as_me: failed program was:" >&5
20996sed 's/^/| /' conftest.$ac_ext >&5
20997
20998  # Passes both tests.
20999ac_preproc_ok=:
21000break
21001fi
21002
21003rm -f conftest.err conftest.$ac_ext
21004
21005done
21006# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21007rm -f conftest.err conftest.$ac_ext
21008if $ac_preproc_ok; then
21009  break
21010fi
21011
21012    done
21013    ac_cv_prog_CPP=$CPP
21014
21015fi
21016  CPP=$ac_cv_prog_CPP
21017else
21018  ac_cv_prog_CPP=$CPP
21019fi
21020{ echo "$as_me:$LINENO: result: $CPP" >&5
21021echo "${ECHO_T}$CPP" >&6; }
21022ac_preproc_ok=false
21023for ac_c_preproc_warn_flag in '' yes
21024do
21025  # Use a header file that comes with gcc, so configuring glibc
21026  # with a fresh cross-compiler works.
21027  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21028  # <limits.h> exists even on freestanding compilers.
21029  # On the NeXT, cc -E runs the code through the compiler's parser,
21030  # not just through cpp. "Syntax error" is here to catch this case.
21031  cat >conftest.$ac_ext <<_ACEOF
21032/* confdefs.h.  */
21033_ACEOF
21034cat confdefs.h >>conftest.$ac_ext
21035cat >>conftest.$ac_ext <<_ACEOF
21036/* end confdefs.h.  */
21037#ifdef __STDC__
21038# include <limits.h>
21039#else
21040# include <assert.h>
21041#endif
21042		     Syntax error
21043_ACEOF
21044if { (ac_try="$ac_cpp conftest.$ac_ext"
21045case "(($ac_try" in
21046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21047  *) ac_try_echo=$ac_try;;
21048esac
21049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21050  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21051  ac_status=$?
21052  grep -v '^ *+' conftest.er1 >conftest.err
21053  rm -f conftest.er1
21054  cat conftest.err >&5
21055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056  (exit $ac_status); } >/dev/null && {
21057	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21058	 test ! -s conftest.err
21059       }; then
21060  :
21061else
21062  echo "$as_me: failed program was:" >&5
21063sed 's/^/| /' conftest.$ac_ext >&5
21064
21065  # Broken: fails on valid input.
21066continue
21067fi
21068
21069rm -f conftest.err conftest.$ac_ext
21070
21071  # OK, works on sane cases.  Now check whether nonexistent headers
21072  # can be detected and how.
21073  cat >conftest.$ac_ext <<_ACEOF
21074/* confdefs.h.  */
21075_ACEOF
21076cat confdefs.h >>conftest.$ac_ext
21077cat >>conftest.$ac_ext <<_ACEOF
21078/* end confdefs.h.  */
21079#include <ac_nonexistent.h>
21080_ACEOF
21081if { (ac_try="$ac_cpp conftest.$ac_ext"
21082case "(($ac_try" in
21083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084  *) ac_try_echo=$ac_try;;
21085esac
21086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21087  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21088  ac_status=$?
21089  grep -v '^ *+' conftest.er1 >conftest.err
21090  rm -f conftest.er1
21091  cat conftest.err >&5
21092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093  (exit $ac_status); } >/dev/null && {
21094	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21095	 test ! -s conftest.err
21096       }; then
21097  # Broken: success on invalid input.
21098continue
21099else
21100  echo "$as_me: failed program was:" >&5
21101sed 's/^/| /' conftest.$ac_ext >&5
21102
21103  # Passes both tests.
21104ac_preproc_ok=:
21105break
21106fi
21107
21108rm -f conftest.err conftest.$ac_ext
21109
21110done
21111# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21112rm -f conftest.err conftest.$ac_ext
21113if $ac_preproc_ok; then
21114  :
21115else
21116  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21117See \`config.log' for more details." >&5
21118echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21119See \`config.log' for more details." >&2;}
21120   { (exit 1); exit 1; }; }
21121fi
21122
21123ac_ext=c
21124ac_cpp='$CPP $CPPFLAGS'
21125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21127ac_compiler_gnu=$ac_cv_c_compiler_gnu
21128
21129
21130if test "x${COMPILE_JNI}" = xyes; then
21131  { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21132echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21133if test "${ac_cv_header_stdc+set}" = set; then
21134  echo $ECHO_N "(cached) $ECHO_C" >&6
21135else
21136  cat >conftest.$ac_ext <<_ACEOF
21137/* confdefs.h.  */
21138_ACEOF
21139cat confdefs.h >>conftest.$ac_ext
21140cat >>conftest.$ac_ext <<_ACEOF
21141/* end confdefs.h.  */
21142#include <stdlib.h>
21143#include <stdarg.h>
21144#include <string.h>
21145#include <float.h>
21146
21147int
21148main ()
21149{
21150
21151  ;
21152  return 0;
21153}
21154_ACEOF
21155rm -f conftest.$ac_objext
21156if { (ac_try="$ac_compile"
21157case "(($ac_try" in
21158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21159  *) ac_try_echo=$ac_try;;
21160esac
21161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21162  (eval "$ac_compile") 2>conftest.er1
21163  ac_status=$?
21164  grep -v '^ *+' conftest.er1 >conftest.err
21165  rm -f conftest.er1
21166  cat conftest.err >&5
21167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168  (exit $ac_status); } && {
21169	 test -z "$ac_c_werror_flag" ||
21170	 test ! -s conftest.err
21171       } && test -s conftest.$ac_objext; then
21172  ac_cv_header_stdc=yes
21173else
21174  echo "$as_me: failed program was:" >&5
21175sed 's/^/| /' conftest.$ac_ext >&5
21176
21177	ac_cv_header_stdc=no
21178fi
21179
21180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21181
21182if test $ac_cv_header_stdc = yes; then
21183  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21184  cat >conftest.$ac_ext <<_ACEOF
21185/* confdefs.h.  */
21186_ACEOF
21187cat confdefs.h >>conftest.$ac_ext
21188cat >>conftest.$ac_ext <<_ACEOF
21189/* end confdefs.h.  */
21190#include <string.h>
21191
21192_ACEOF
21193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21194  $EGREP "memchr" >/dev/null 2>&1; then
21195  :
21196else
21197  ac_cv_header_stdc=no
21198fi
21199rm -f conftest*
21200
21201fi
21202
21203if test $ac_cv_header_stdc = yes; then
21204  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21205  cat >conftest.$ac_ext <<_ACEOF
21206/* confdefs.h.  */
21207_ACEOF
21208cat confdefs.h >>conftest.$ac_ext
21209cat >>conftest.$ac_ext <<_ACEOF
21210/* end confdefs.h.  */
21211#include <stdlib.h>
21212
21213_ACEOF
21214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21215  $EGREP "free" >/dev/null 2>&1; then
21216  :
21217else
21218  ac_cv_header_stdc=no
21219fi
21220rm -f conftest*
21221
21222fi
21223
21224if test $ac_cv_header_stdc = yes; then
21225  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21226  if test "$cross_compiling" = yes; then
21227  :
21228else
21229  cat >conftest.$ac_ext <<_ACEOF
21230/* confdefs.h.  */
21231_ACEOF
21232cat confdefs.h >>conftest.$ac_ext
21233cat >>conftest.$ac_ext <<_ACEOF
21234/* end confdefs.h.  */
21235#include <ctype.h>
21236#include <stdlib.h>
21237#if ((' ' & 0x0FF) == 0x020)
21238# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21239# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21240#else
21241# define ISLOWER(c) \
21242		   (('a' <= (c) && (c) <= 'i') \
21243		     || ('j' <= (c) && (c) <= 'r') \
21244		     || ('s' <= (c) && (c) <= 'z'))
21245# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21246#endif
21247
21248#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21249int
21250main ()
21251{
21252  int i;
21253  for (i = 0; i < 256; i++)
21254    if (XOR (islower (i), ISLOWER (i))
21255	|| toupper (i) != TOUPPER (i))
21256      return 2;
21257  return 0;
21258}
21259_ACEOF
21260rm -f conftest$ac_exeext
21261if { (ac_try="$ac_link"
21262case "(($ac_try" in
21263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264  *) ac_try_echo=$ac_try;;
21265esac
21266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267  (eval "$ac_link") 2>&5
21268  ac_status=$?
21269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21271  { (case "(($ac_try" in
21272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273  *) ac_try_echo=$ac_try;;
21274esac
21275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276  (eval "$ac_try") 2>&5
21277  ac_status=$?
21278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279  (exit $ac_status); }; }; then
21280  :
21281else
21282  echo "$as_me: program exited with status $ac_status" >&5
21283echo "$as_me: failed program was:" >&5
21284sed 's/^/| /' conftest.$ac_ext >&5
21285
21286( exit $ac_status )
21287ac_cv_header_stdc=no
21288fi
21289rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21290fi
21291
21292
21293fi
21294fi
21295{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21296echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21297if test $ac_cv_header_stdc = yes; then
21298
21299cat >>confdefs.h <<\_ACEOF
21300#define STDC_HEADERS 1
21301_ACEOF
21302
21303fi
21304
21305
21306      { echo "$as_me:$LINENO: checking size of void *" >&5
21307echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
21308if test "${ac_cv_sizeof_void_p+set}" = set; then
21309  echo $ECHO_N "(cached) $ECHO_C" >&6
21310else
21311  for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
21312  cat >conftest.$ac_ext <<_ACEOF
21313/* confdefs.h.  */
21314_ACEOF
21315cat confdefs.h >>conftest.$ac_ext
21316cat >>conftest.$ac_ext <<_ACEOF
21317/* end confdefs.h.  */
21318#include "confdefs.h"
21319#include <sys/types.h>
21320
21321
21322int
21323main ()
21324{
21325switch (0) case 0: case (sizeof (void *) == $ac_size):;
21326  ;
21327  return 0;
21328}
21329_ACEOF
21330rm -f conftest.$ac_objext
21331if { (ac_try="$ac_compile"
21332case "(($ac_try" in
21333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334  *) ac_try_echo=$ac_try;;
21335esac
21336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337  (eval "$ac_compile") 2>conftest.er1
21338  ac_status=$?
21339  grep -v '^ *+' conftest.er1 >conftest.err
21340  rm -f conftest.er1
21341  cat conftest.err >&5
21342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343  (exit $ac_status); } && {
21344	 test -z "$ac_c_werror_flag" ||
21345	 test ! -s conftest.err
21346       } && test -s conftest.$ac_objext; then
21347  ac_cv_sizeof_void_p=$ac_size
21348else
21349  echo "$as_me: failed program was:" >&5
21350sed 's/^/| /' conftest.$ac_ext >&5
21351
21352
21353fi
21354
21355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356  if test x$ac_cv_sizeof_void_p != x ; then break; fi
21357done
21358
21359fi
21360
21361if test x$ac_cv_sizeof_void_p = x ; then
21362  { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21363echo "$as_me: error: cannot determine a size for void *" >&2;}
21364   { (exit 1); exit 1; }; }
21365fi
21366{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21367echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
21368
21369cat >>confdefs.h <<_ACEOF
21370#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21371_ACEOF
21372
21373
21374
21375    { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21376echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
21377if test "${ac_cv_c_bigendian+set}" = set; then
21378  echo $ECHO_N "(cached) $ECHO_C" >&6
21379else
21380  ac_cv_c_bigendian=unknown
21381# See if sys/param.h defines the BYTE_ORDER macro.
21382cat >conftest.$ac_ext <<_ACEOF
21383/* confdefs.h.  */
21384_ACEOF
21385cat confdefs.h >>conftest.$ac_ext
21386cat >>conftest.$ac_ext <<_ACEOF
21387/* end confdefs.h.  */
21388#include <sys/types.h>
21389#include <sys/param.h>
21390int
21391main ()
21392{
21393
21394#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21395 bogus endian macros
21396#endif
21397  ;
21398  return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext
21402if { (ac_try="$ac_compile"
21403case "(($ac_try" in
21404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405  *) ac_try_echo=$ac_try;;
21406esac
21407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408  (eval "$ac_compile") 2>conftest.er1
21409  ac_status=$?
21410  grep -v '^ *+' conftest.er1 >conftest.err
21411  rm -f conftest.er1
21412  cat conftest.err >&5
21413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414  (exit $ac_status); } && {
21415	 test -z "$ac_c_werror_flag" ||
21416	 test ! -s conftest.err
21417       } && test -s conftest.$ac_objext; then
21418  # It does; now see whether it defined to BIG_ENDIAN or not.
21419cat >conftest.$ac_ext <<_ACEOF
21420/* confdefs.h.  */
21421_ACEOF
21422cat confdefs.h >>conftest.$ac_ext
21423cat >>conftest.$ac_ext <<_ACEOF
21424/* end confdefs.h.  */
21425#include <sys/types.h>
21426#include <sys/param.h>
21427int
21428main ()
21429{
21430
21431#if BYTE_ORDER != BIG_ENDIAN
21432 not big endian
21433#endif
21434  ;
21435  return 0;
21436}
21437_ACEOF
21438rm -f conftest.$ac_objext
21439if { (ac_try="$ac_compile"
21440case "(($ac_try" in
21441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21442  *) ac_try_echo=$ac_try;;
21443esac
21444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21445  (eval "$ac_compile") 2>conftest.er1
21446  ac_status=$?
21447  grep -v '^ *+' conftest.er1 >conftest.err
21448  rm -f conftest.er1
21449  cat conftest.err >&5
21450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451  (exit $ac_status); } && {
21452	 test -z "$ac_c_werror_flag" ||
21453	 test ! -s conftest.err
21454       } && test -s conftest.$ac_objext; then
21455  ac_cv_c_bigendian=yes
21456else
21457  echo "$as_me: failed program was:" >&5
21458sed 's/^/| /' conftest.$ac_ext >&5
21459
21460	ac_cv_c_bigendian=no
21461fi
21462
21463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21464else
21465  echo "$as_me: failed program was:" >&5
21466sed 's/^/| /' conftest.$ac_ext >&5
21467
21468
21469fi
21470
21471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472if test $ac_cv_c_bigendian = unknown; then
21473if test "$cross_compiling" = yes; then
21474   echo $ac_n "cross-compiling... " 2>&6
21475else
21476  cat >conftest.$ac_ext <<_ACEOF
21477/* confdefs.h.  */
21478_ACEOF
21479cat confdefs.h >>conftest.$ac_ext
21480cat >>conftest.$ac_ext <<_ACEOF
21481/* end confdefs.h.  */
21482main () {
21483  /* Are we little or big endian?  From Harbison&Steele.  */
21484  union
21485  {
21486    long l;
21487    char c[sizeof (long)];
21488  } u;
21489  u.l = 1;
21490  exit (u.c[sizeof (long) - 1] == 1);
21491}
21492_ACEOF
21493rm -f conftest$ac_exeext
21494if { (ac_try="$ac_link"
21495case "(($ac_try" in
21496  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497  *) ac_try_echo=$ac_try;;
21498esac
21499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500  (eval "$ac_link") 2>&5
21501  ac_status=$?
21502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21504  { (case "(($ac_try" in
21505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506  *) ac_try_echo=$ac_try;;
21507esac
21508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21509  (eval "$ac_try") 2>&5
21510  ac_status=$?
21511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512  (exit $ac_status); }; }; then
21513  ac_cv_c_bigendian=no
21514else
21515  echo "$as_me: program exited with status $ac_status" >&5
21516echo "$as_me: failed program was:" >&5
21517sed 's/^/| /' conftest.$ac_ext >&5
21518
21519( exit $ac_status )
21520ac_cv_c_bigendian=yes
21521fi
21522rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21523fi
21524
21525
21526fi
21527fi
21528{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21529echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21530if test $ac_cv_c_bigendian = unknown; then
21531{ echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
21532echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6; }
21533
21534cat >conftest.c <<EOF
21535short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21536short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21537void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
21538short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21539short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21540void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
21541int main() { _ascii (); _ebcdic (); return 0; }
21542EOF
21543 if test -f conftest.c ; then
21544     if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
21545        if test `grep -l BIGenDianSyS conftest.o` ; then
21546           echo $ac_n ' big endian probe OK, ' 1>&6
21547           ac_cv_c_bigendian=yes
21548        fi
21549        if test `grep -l LiTTleEnDian conftest.o` ; then
21550           echo $ac_n ' little endian probe OK, ' 1>&6
21551           if test $ac_cv_c_bigendian = yes ; then
21552            ac_cv_c_bigendian=unknown;
21553           else
21554            ac_cv_c_bigendian=no
21555           fi
21556        fi
21557        echo $ac_n 'guessing bigendian ...  ' >&6
21558     fi
21559  fi
21560{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21561echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
21562fi
21563if test $ac_cv_c_bigendian = yes; then
21564
21565cat >>confdefs.h <<\_ACEOF
21566#define WORDS_BIGENDIAN 1
21567_ACEOF
21568
21569
21570cat >>confdefs.h <<\_ACEOF
21571#define HOST_WORDS_BIG_ENDIAN 1
21572_ACEOF
21573
21574  BYTEORDER=4321
21575else
21576  BYTEORDER=1234
21577fi
21578
21579cat >>confdefs.h <<_ACEOF
21580#define BYTEORDER $BYTEORDER
21581_ACEOF
21582
21583if test $ac_cv_c_bigendian = unknown; then
21584  { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
21585echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
21586   { (exit 1); exit 1; }; }
21587fi
21588
21589
21590
21591
21592
21593
21594
21595
21596
21597
21598
21599
21600
21601
21602
21603
21604
21605for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
21606		    asm/ioctls.h \
21607		    inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
21608		    sys/time.h \
21609		    sys/select.h \
21610		    crt_externs.h \
21611                    fcntl.h \
21612		    sys/mman.h
21613do
21614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21615if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21616  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21619  echo $ECHO_N "(cached) $ECHO_C" >&6
21620fi
21621ac_res=`eval echo '${'$as_ac_Header'}'`
21622	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21623echo "${ECHO_T}$ac_res" >&6; }
21624else
21625  # Is the header compilable?
21626{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21628cat >conftest.$ac_ext <<_ACEOF
21629/* confdefs.h.  */
21630_ACEOF
21631cat confdefs.h >>conftest.$ac_ext
21632cat >>conftest.$ac_ext <<_ACEOF
21633/* end confdefs.h.  */
21634$ac_includes_default
21635#include <$ac_header>
21636_ACEOF
21637rm -f conftest.$ac_objext
21638if { (ac_try="$ac_compile"
21639case "(($ac_try" in
21640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641  *) ac_try_echo=$ac_try;;
21642esac
21643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644  (eval "$ac_compile") 2>conftest.er1
21645  ac_status=$?
21646  grep -v '^ *+' conftest.er1 >conftest.err
21647  rm -f conftest.er1
21648  cat conftest.err >&5
21649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650  (exit $ac_status); } && {
21651	 test -z "$ac_c_werror_flag" ||
21652	 test ! -s conftest.err
21653       } && test -s conftest.$ac_objext; then
21654  ac_header_compiler=yes
21655else
21656  echo "$as_me: failed program was:" >&5
21657sed 's/^/| /' conftest.$ac_ext >&5
21658
21659	ac_header_compiler=no
21660fi
21661
21662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21664echo "${ECHO_T}$ac_header_compiler" >&6; }
21665
21666# Is the header present?
21667{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21669cat >conftest.$ac_ext <<_ACEOF
21670/* confdefs.h.  */
21671_ACEOF
21672cat confdefs.h >>conftest.$ac_ext
21673cat >>conftest.$ac_ext <<_ACEOF
21674/* end confdefs.h.  */
21675#include <$ac_header>
21676_ACEOF
21677if { (ac_try="$ac_cpp conftest.$ac_ext"
21678case "(($ac_try" in
21679  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680  *) ac_try_echo=$ac_try;;
21681esac
21682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21684  ac_status=$?
21685  grep -v '^ *+' conftest.er1 >conftest.err
21686  rm -f conftest.er1
21687  cat conftest.err >&5
21688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689  (exit $ac_status); } >/dev/null && {
21690	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21691	 test ! -s conftest.err
21692       }; then
21693  ac_header_preproc=yes
21694else
21695  echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
21697
21698  ac_header_preproc=no
21699fi
21700
21701rm -f conftest.err conftest.$ac_ext
21702{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21703echo "${ECHO_T}$ac_header_preproc" >&6; }
21704
21705# So?  What about this header?
21706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21707  yes:no: )
21708    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21709echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21710    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21711echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21712    ac_header_preproc=yes
21713    ;;
21714  no:yes:* )
21715    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21716echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21717    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21718echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21719    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21720echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21721    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21722echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21723    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21724echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21725    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21726echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21727    ( cat <<\_ASBOX
21728## ---------------------------------- ##
21729## Report this to http://sablevm.org/ ##
21730## ---------------------------------- ##
21731_ASBOX
21732     ) | sed "s/^/$as_me: WARNING:     /" >&2
21733    ;;
21734esac
21735{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21737if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21738  echo $ECHO_N "(cached) $ECHO_C" >&6
21739else
21740  eval "$as_ac_Header=\$ac_header_preproc"
21741fi
21742ac_res=`eval echo '${'$as_ac_Header'}'`
21743	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21744echo "${ECHO_T}$ac_res" >&6; }
21745
21746fi
21747if test `eval echo '${'$as_ac_Header'}'` = yes; then
21748  cat >>confdefs.h <<_ACEOF
21749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21750_ACEOF
21751
21752fi
21753
21754done
21755
21756
21757for ac_header in sys/socket.h
21758do
21759as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21760if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21761  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21763if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21764  echo $ECHO_N "(cached) $ECHO_C" >&6
21765fi
21766ac_res=`eval echo '${'$as_ac_Header'}'`
21767	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21768echo "${ECHO_T}$ac_res" >&6; }
21769else
21770  # Is the header compilable?
21771{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21773cat >conftest.$ac_ext <<_ACEOF
21774/* confdefs.h.  */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h.  */
21779$ac_includes_default
21780#include <$ac_header>
21781_ACEOF
21782rm -f conftest.$ac_objext
21783if { (ac_try="$ac_compile"
21784case "(($ac_try" in
21785  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786  *) ac_try_echo=$ac_try;;
21787esac
21788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21789  (eval "$ac_compile") 2>conftest.er1
21790  ac_status=$?
21791  grep -v '^ *+' conftest.er1 >conftest.err
21792  rm -f conftest.er1
21793  cat conftest.err >&5
21794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795  (exit $ac_status); } && {
21796	 test -z "$ac_c_werror_flag" ||
21797	 test ! -s conftest.err
21798       } && test -s conftest.$ac_objext; then
21799  ac_header_compiler=yes
21800else
21801  echo "$as_me: failed program was:" >&5
21802sed 's/^/| /' conftest.$ac_ext >&5
21803
21804	ac_header_compiler=no
21805fi
21806
21807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21809echo "${ECHO_T}$ac_header_compiler" >&6; }
21810
21811# Is the header present?
21812{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21813echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21814cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h.  */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h.  */
21820#include <$ac_header>
21821_ACEOF
21822if { (ac_try="$ac_cpp conftest.$ac_ext"
21823case "(($ac_try" in
21824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825  *) ac_try_echo=$ac_try;;
21826esac
21827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21829  ac_status=$?
21830  grep -v '^ *+' conftest.er1 >conftest.err
21831  rm -f conftest.er1
21832  cat conftest.err >&5
21833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21834  (exit $ac_status); } >/dev/null && {
21835	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21836	 test ! -s conftest.err
21837       }; then
21838  ac_header_preproc=yes
21839else
21840  echo "$as_me: failed program was:" >&5
21841sed 's/^/| /' conftest.$ac_ext >&5
21842
21843  ac_header_preproc=no
21844fi
21845
21846rm -f conftest.err conftest.$ac_ext
21847{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21848echo "${ECHO_T}$ac_header_preproc" >&6; }
21849
21850# So?  What about this header?
21851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21852  yes:no: )
21853    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21854echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21855    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21856echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21857    ac_header_preproc=yes
21858    ;;
21859  no:yes:* )
21860    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21861echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21862    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21863echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21864    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21865echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21866    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21867echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21870    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21871echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21872    ( cat <<\_ASBOX
21873## ---------------------------------- ##
21874## Report this to http://sablevm.org/ ##
21875## ---------------------------------- ##
21876_ASBOX
21877     ) | sed "s/^/$as_me: WARNING:     /" >&2
21878    ;;
21879esac
21880{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21882if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21883  echo $ECHO_N "(cached) $ECHO_C" >&6
21884else
21885  eval "$as_ac_Header=\$ac_header_preproc"
21886fi
21887ac_res=`eval echo '${'$as_ac_Header'}'`
21888	       { echo "$as_me:$LINENO: result: $ac_res" >&5
21889echo "${ECHO_T}$ac_res" >&6; }
21890
21891fi
21892if test `eval echo '${'$as_ac_Header'}'` = yes; then
21893  cat >>confdefs.h <<_ACEOF
21894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21895_ACEOF
21896
21897fi
21898
21899done
21900
21901
21902  cat >conftest.$ac_ext <<_ACEOF
21903/* confdefs.h.  */
21904_ACEOF
21905cat confdefs.h >>conftest.$ac_ext
21906cat >>conftest.$ac_ext <<_ACEOF
21907/* end confdefs.h.  */
21908#include <stdint.h>
21909
21910_ACEOF
21911if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21912  $EGREP "uint32_t" >/dev/null 2>&1; then
21913
21914cat >>confdefs.h <<\_ACEOF
21915#define HAVE_INT32_DEFINED 1
21916_ACEOF
21917
21918fi
21919rm -f conftest*
21920
21921  cat >conftest.$ac_ext <<_ACEOF
21922/* confdefs.h.  */
21923_ACEOF
21924cat confdefs.h >>conftest.$ac_ext
21925cat >>conftest.$ac_ext <<_ACEOF
21926/* end confdefs.h.  */
21927#include <inttypes.h>
21928
21929_ACEOF
21930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21931  $EGREP "uint32_t" >/dev/null 2>&1; then
21932
21933cat >>confdefs.h <<\_ACEOF
21934#define HAVE_INT32_DEFINED 1
21935_ACEOF
21936
21937fi
21938rm -f conftest*
21939
21940  cat >conftest.$ac_ext <<_ACEOF
21941/* confdefs.h.  */
21942_ACEOF
21943cat confdefs.h >>conftest.$ac_ext
21944cat >>conftest.$ac_ext <<_ACEOF
21945/* end confdefs.h.  */
21946#include <sys/types.h>
21947
21948_ACEOF
21949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21950  $EGREP "u_int32_t" >/dev/null 2>&1; then
21951
21952cat >>confdefs.h <<\_ACEOF
21953#define HAVE_BSD_INT32_DEFINED 1
21954_ACEOF
21955
21956fi
21957rm -f conftest*
21958
21959  cat >conftest.$ac_ext <<_ACEOF
21960/* confdefs.h.  */
21961_ACEOF
21962cat confdefs.h >>conftest.$ac_ext
21963cat >>conftest.$ac_ext <<_ACEOF
21964/* end confdefs.h.  */
21965#include <sys/config.h>
21966
21967_ACEOF
21968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21969  $EGREP "u_int32_t" >/dev/null 2>&1; then
21970
21971cat >>confdefs.h <<\_ACEOF
21972#define HAVE_BSD_INT32_DEFINED 1
21973_ACEOF
21974
21975fi
21976rm -f conftest*
21977
21978
21979  { echo "$as_me:$LINENO: checking for socklen_t" >&5
21980echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21981if test "${ac_cv_type_socklen_t+set}" = set; then
21982  echo $ECHO_N "(cached) $ECHO_C" >&6
21983else
21984  cat >conftest.$ac_ext <<_ACEOF
21985/* confdefs.h.  */
21986_ACEOF
21987cat confdefs.h >>conftest.$ac_ext
21988cat >>conftest.$ac_ext <<_ACEOF
21989/* end confdefs.h.  */
21990
21991#include	"confdefs.h"	/* the header built by configure so far */
21992#ifdef HAVE_SYS_TYPES_H
21993#include <sys/types.h>
21994#endif
21995#ifdef HAVE_SYS_SOCKET_H
21996#include <sys/socket.h>
21997#endif
21998
21999typedef socklen_t ac__type_new_;
22000int
22001main ()
22002{
22003if ((ac__type_new_ *) 0)
22004  return 0;
22005if (sizeof (ac__type_new_))
22006  return 0;
22007  ;
22008  return 0;
22009}
22010_ACEOF
22011rm -f conftest.$ac_objext
22012if { (ac_try="$ac_compile"
22013case "(($ac_try" in
22014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015  *) ac_try_echo=$ac_try;;
22016esac
22017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018  (eval "$ac_compile") 2>conftest.er1
22019  ac_status=$?
22020  grep -v '^ *+' conftest.er1 >conftest.err
22021  rm -f conftest.er1
22022  cat conftest.err >&5
22023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024  (exit $ac_status); } && {
22025	 test -z "$ac_c_werror_flag" ||
22026	 test ! -s conftest.err
22027       } && test -s conftest.$ac_objext; then
22028  ac_cv_type_socklen_t=yes
22029else
22030  echo "$as_me: failed program was:" >&5
22031sed 's/^/| /' conftest.$ac_ext >&5
22032
22033	ac_cv_type_socklen_t=no
22034fi
22035
22036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037fi
22038{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22039echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
22040if test $ac_cv_type_socklen_t = yes; then
22041
22042cat >>confdefs.h <<\_ACEOF
22043#define HAVE_SOCKLEN_T 1
22044_ACEOF
22045
22046fi
22047
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090for ac_func in ftruncate fsync select \
22091		  gethostname socket strerror fork pipe execve open close \
22092		  lseek fstat read write htonl memset htons connect \
22093		  getsockname getpeername bind listen accept \
22094		  recvfrom send sendto setsockopt getsockopt time mktime \
22095		  localtime_r \
22096		  strerror_r \
22097                  fcntl \
22098		  mmap munmap mincore msync madvise getpagesize sysconf
22099do
22100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22101{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22104  echo $ECHO_N "(cached) $ECHO_C" >&6
22105else
22106  cat >conftest.$ac_ext <<_ACEOF
22107/* confdefs.h.  */
22108_ACEOF
22109cat confdefs.h >>conftest.$ac_ext
22110cat >>conftest.$ac_ext <<_ACEOF
22111/* end confdefs.h.  */
22112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22113   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22114#define $ac_func innocuous_$ac_func
22115
22116/* System header to define __stub macros and hopefully few prototypes,
22117    which can conflict with char $ac_func (); below.
22118    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22119    <limits.h> exists even on freestanding compilers.  */
22120
22121#ifdef __STDC__
22122# include <limits.h>
22123#else
22124# include <assert.h>
22125#endif
22126
22127#undef $ac_func
22128
22129/* Override any GCC internal prototype to avoid an error.
22130   Use char because int might match the return type of a GCC
22131   builtin and then its argument prototype would still apply.  */
22132#ifdef __cplusplus
22133extern "C"
22134#endif
22135char $ac_func ();
22136/* The GNU C library defines this for functions which it implements
22137    to always fail with ENOSYS.  Some functions are actually named
22138    something starting with __ and the normal name is an alias.  */
22139#if defined __stub_$ac_func || defined __stub___$ac_func
22140choke me
22141#endif
22142
22143int
22144main ()
22145{
22146return $ac_func ();
22147  ;
22148  return 0;
22149}
22150_ACEOF
22151rm -f conftest.$ac_objext conftest$ac_exeext
22152if { (ac_try="$ac_link"
22153case "(($ac_try" in
22154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22155  *) ac_try_echo=$ac_try;;
22156esac
22157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22158  (eval "$ac_link") 2>conftest.er1
22159  ac_status=$?
22160  grep -v '^ *+' conftest.er1 >conftest.err
22161  rm -f conftest.er1
22162  cat conftest.err >&5
22163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164  (exit $ac_status); } && {
22165	 test -z "$ac_c_werror_flag" ||
22166	 test ! -s conftest.err
22167       } && test -s conftest$ac_exeext &&
22168       $as_test_x conftest$ac_exeext; then
22169  eval "$as_ac_var=yes"
22170else
22171  echo "$as_me: failed program was:" >&5
22172sed 's/^/| /' conftest.$ac_ext >&5
22173
22174	eval "$as_ac_var=no"
22175fi
22176
22177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22178      conftest$ac_exeext conftest.$ac_ext
22179fi
22180ac_res=`eval echo '${'$as_ac_var'}'`
22181	       { echo "$as_me:$LINENO: result: $ac_res" >&5
22182echo "${ECHO_T}$ac_res" >&6; }
22183if test `eval echo '${'$as_ac_var'}'` = yes; then
22184  cat >>confdefs.h <<_ACEOF
22185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22186_ACEOF
22187
22188fi
22189done
22190
22191
22192  { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22193echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22194if test "${ac_cv_header_time+set}" = set; then
22195  echo $ECHO_N "(cached) $ECHO_C" >&6
22196else
22197  cat >conftest.$ac_ext <<_ACEOF
22198/* confdefs.h.  */
22199_ACEOF
22200cat confdefs.h >>conftest.$ac_ext
22201cat >>conftest.$ac_ext <<_ACEOF
22202/* end confdefs.h.  */
22203#include <sys/types.h>
22204#include <sys/time.h>
22205#include <time.h>
22206
22207int
22208main ()
22209{
22210if ((struct tm *) 0)
22211return 0;
22212  ;
22213  return 0;
22214}
22215_ACEOF
22216rm -f conftest.$ac_objext
22217if { (ac_try="$ac_compile"
22218case "(($ac_try" in
22219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220  *) ac_try_echo=$ac_try;;
22221esac
22222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223  (eval "$ac_compile") 2>conftest.er1
22224  ac_status=$?
22225  grep -v '^ *+' conftest.er1 >conftest.err
22226  rm -f conftest.er1
22227  cat conftest.err >&5
22228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229  (exit $ac_status); } && {
22230	 test -z "$ac_c_werror_flag" ||
22231	 test ! -s conftest.err
22232       } && test -s conftest.$ac_objext; then
22233  ac_cv_header_time=yes
22234else
22235  echo "$as_me: failed program was:" >&5
22236sed 's/^/| /' conftest.$ac_ext >&5
22237
22238	ac_cv_header_time=no
22239fi
22240
22241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22242fi
22243{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22244echo "${ECHO_T}$ac_cv_header_time" >&6; }
22245if test $ac_cv_header_time = yes; then
22246
22247cat >>confdefs.h <<\_ACEOF
22248#define TIME_WITH_SYS_TIME 1
22249_ACEOF
22250
22251fi
22252
22253  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22254echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22255if test "${ac_cv_struct_tm+set}" = set; then
22256  echo $ECHO_N "(cached) $ECHO_C" >&6
22257else
22258  cat >conftest.$ac_ext <<_ACEOF
22259/* confdefs.h.  */
22260_ACEOF
22261cat confdefs.h >>conftest.$ac_ext
22262cat >>conftest.$ac_ext <<_ACEOF
22263/* end confdefs.h.  */
22264#include <sys/types.h>
22265#include <time.h>
22266
22267int
22268main ()
22269{
22270struct tm tm;
22271				     int *p = &tm.tm_sec;
22272 				     return !p;
22273  ;
22274  return 0;
22275}
22276_ACEOF
22277rm -f conftest.$ac_objext
22278if { (ac_try="$ac_compile"
22279case "(($ac_try" in
22280  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281  *) ac_try_echo=$ac_try;;
22282esac
22283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284  (eval "$ac_compile") 2>conftest.er1
22285  ac_status=$?
22286  grep -v '^ *+' conftest.er1 >conftest.err
22287  rm -f conftest.er1
22288  cat conftest.err >&5
22289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290  (exit $ac_status); } && {
22291	 test -z "$ac_c_werror_flag" ||
22292	 test ! -s conftest.err
22293       } && test -s conftest.$ac_objext; then
22294  ac_cv_struct_tm=time.h
22295else
22296  echo "$as_me: failed program was:" >&5
22297sed 's/^/| /' conftest.$ac_ext >&5
22298
22299	ac_cv_struct_tm=sys/time.h
22300fi
22301
22302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303fi
22304{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22305echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22306if test $ac_cv_struct_tm = sys/time.h; then
22307
22308cat >>confdefs.h <<\_ACEOF
22309#define TM_IN_SYS_TIME 1
22310_ACEOF
22311
22312fi
22313
22314  { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22315echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22316if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22317  echo $ECHO_N "(cached) $ECHO_C" >&6
22318else
22319  cat >conftest.$ac_ext <<_ACEOF
22320/* confdefs.h.  */
22321_ACEOF
22322cat confdefs.h >>conftest.$ac_ext
22323cat >>conftest.$ac_ext <<_ACEOF
22324/* end confdefs.h.  */
22325#include <sys/types.h>
22326#include <$ac_cv_struct_tm>
22327
22328
22329int
22330main ()
22331{
22332static struct tm ac_aggr;
22333if (ac_aggr.tm_zone)
22334return 0;
22335  ;
22336  return 0;
22337}
22338_ACEOF
22339rm -f conftest.$ac_objext
22340if { (ac_try="$ac_compile"
22341case "(($ac_try" in
22342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22343  *) ac_try_echo=$ac_try;;
22344esac
22345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22346  (eval "$ac_compile") 2>conftest.er1
22347  ac_status=$?
22348  grep -v '^ *+' conftest.er1 >conftest.err
22349  rm -f conftest.er1
22350  cat conftest.err >&5
22351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352  (exit $ac_status); } && {
22353	 test -z "$ac_c_werror_flag" ||
22354	 test ! -s conftest.err
22355       } && test -s conftest.$ac_objext; then
22356  ac_cv_member_struct_tm_tm_zone=yes
22357else
22358  echo "$as_me: failed program was:" >&5
22359sed 's/^/| /' conftest.$ac_ext >&5
22360
22361	cat >conftest.$ac_ext <<_ACEOF
22362/* confdefs.h.  */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h.  */
22367#include <sys/types.h>
22368#include <$ac_cv_struct_tm>
22369
22370
22371int
22372main ()
22373{
22374static struct tm ac_aggr;
22375if (sizeof ac_aggr.tm_zone)
22376return 0;
22377  ;
22378  return 0;
22379}
22380_ACEOF
22381rm -f conftest.$ac_objext
22382if { (ac_try="$ac_compile"
22383case "(($ac_try" in
22384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385  *) ac_try_echo=$ac_try;;
22386esac
22387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388  (eval "$ac_compile") 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); } && {
22395	 test -z "$ac_c_werror_flag" ||
22396	 test ! -s conftest.err
22397       } && test -s conftest.$ac_objext; then
22398  ac_cv_member_struct_tm_tm_zone=yes
22399else
22400  echo "$as_me: failed program was:" >&5
22401sed 's/^/| /' conftest.$ac_ext >&5
22402
22403	ac_cv_member_struct_tm_tm_zone=no
22404fi
22405
22406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22407fi
22408
22409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22410fi
22411{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
22412echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
22413if test $ac_cv_member_struct_tm_tm_zone = yes; then
22414
22415cat >>confdefs.h <<_ACEOF
22416#define HAVE_STRUCT_TM_TM_ZONE 1
22417_ACEOF
22418
22419
22420fi
22421
22422if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22423
22424cat >>confdefs.h <<\_ACEOF
22425#define HAVE_TM_ZONE 1
22426_ACEOF
22427
22428else
22429  { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
22430echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
22431if test "${ac_cv_have_decl_tzname+set}" = set; then
22432  echo $ECHO_N "(cached) $ECHO_C" >&6
22433else
22434  cat >conftest.$ac_ext <<_ACEOF
22435/* confdefs.h.  */
22436_ACEOF
22437cat confdefs.h >>conftest.$ac_ext
22438cat >>conftest.$ac_ext <<_ACEOF
22439/* end confdefs.h.  */
22440#include <time.h>
22441
22442int
22443main ()
22444{
22445#ifndef tzname
22446  (void) tzname;
22447#endif
22448
22449  ;
22450  return 0;
22451}
22452_ACEOF
22453rm -f conftest.$ac_objext
22454if { (ac_try="$ac_compile"
22455case "(($ac_try" in
22456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457  *) ac_try_echo=$ac_try;;
22458esac
22459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22460  (eval "$ac_compile") 2>conftest.er1
22461  ac_status=$?
22462  grep -v '^ *+' conftest.er1 >conftest.err
22463  rm -f conftest.er1
22464  cat conftest.err >&5
22465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466  (exit $ac_status); } && {
22467	 test -z "$ac_c_werror_flag" ||
22468	 test ! -s conftest.err
22469       } && test -s conftest.$ac_objext; then
22470  ac_cv_have_decl_tzname=yes
22471else
22472  echo "$as_me: failed program was:" >&5
22473sed 's/^/| /' conftest.$ac_ext >&5
22474
22475	ac_cv_have_decl_tzname=no
22476fi
22477
22478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479fi
22480{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
22481echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
22482if test $ac_cv_have_decl_tzname = yes; then
22483
22484cat >>confdefs.h <<_ACEOF
22485#define HAVE_DECL_TZNAME 1
22486_ACEOF
22487
22488
22489else
22490  cat >>confdefs.h <<_ACEOF
22491#define HAVE_DECL_TZNAME 0
22492_ACEOF
22493
22494
22495fi
22496
22497
22498  { echo "$as_me:$LINENO: checking for tzname" >&5
22499echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22500if test "${ac_cv_var_tzname+set}" = set; then
22501  echo $ECHO_N "(cached) $ECHO_C" >&6
22502else
22503  cat >conftest.$ac_ext <<_ACEOF
22504/* confdefs.h.  */
22505_ACEOF
22506cat confdefs.h >>conftest.$ac_ext
22507cat >>conftest.$ac_ext <<_ACEOF
22508/* end confdefs.h.  */
22509#include <time.h>
22510#if !HAVE_DECL_TZNAME
22511extern char *tzname[];
22512#endif
22513
22514int
22515main ()
22516{
22517return tzname[0][0];
22518  ;
22519  return 0;
22520}
22521_ACEOF
22522rm -f conftest.$ac_objext conftest$ac_exeext
22523if { (ac_try="$ac_link"
22524case "(($ac_try" in
22525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526  *) ac_try_echo=$ac_try;;
22527esac
22528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529  (eval "$ac_link") 2>conftest.er1
22530  ac_status=$?
22531  grep -v '^ *+' conftest.er1 >conftest.err
22532  rm -f conftest.er1
22533  cat conftest.err >&5
22534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535  (exit $ac_status); } && {
22536	 test -z "$ac_c_werror_flag" ||
22537	 test ! -s conftest.err
22538       } && test -s conftest$ac_exeext &&
22539       $as_test_x conftest$ac_exeext; then
22540  ac_cv_var_tzname=yes
22541else
22542  echo "$as_me: failed program was:" >&5
22543sed 's/^/| /' conftest.$ac_ext >&5
22544
22545	ac_cv_var_tzname=no
22546fi
22547
22548rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22549      conftest$ac_exeext conftest.$ac_ext
22550fi
22551{ echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22552echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22553  if test $ac_cv_var_tzname = yes; then
22554
22555cat >>confdefs.h <<\_ACEOF
22556#define HAVE_TZNAME 1
22557_ACEOF
22558
22559  fi
22560fi
22561
22562
22563  { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
22564echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
22565  cat >conftest.$ac_ext <<_ACEOF
22566/* confdefs.h.  */
22567_ACEOF
22568cat confdefs.h >>conftest.$ac_ext
22569cat >>conftest.$ac_ext <<_ACEOF
22570/* end confdefs.h.  */
22571#include <time.h>
22572int
22573main ()
22574{
22575struct tm tim; tim.tm_gmtoff = 0;
22576  ;
22577  return 0;
22578}
22579_ACEOF
22580rm -f conftest.$ac_objext
22581if { (ac_try="$ac_compile"
22582case "(($ac_try" in
22583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22584  *) ac_try_echo=$ac_try;;
22585esac
22586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22587  (eval "$ac_compile") 2>conftest.er1
22588  ac_status=$?
22589  grep -v '^ *+' conftest.er1 >conftest.err
22590  rm -f conftest.er1
22591  cat conftest.err >&5
22592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593  (exit $ac_status); } && {
22594	 test -z "$ac_c_werror_flag" ||
22595	 test ! -s conftest.err
22596       } && test -s conftest.$ac_objext; then
22597
22598cat >>confdefs.h <<\_ACEOF
22599#define STRUCT_TM_HAS_GMTOFF 1
22600_ACEOF
22601
22602   { echo "$as_me:$LINENO: result: yes" >&5
22603echo "${ECHO_T}yes" >&6; }
22604else
22605  echo "$as_me: failed program was:" >&5
22606sed 's/^/| /' conftest.$ac_ext >&5
22607
22608	{ echo "$as_me:$LINENO: result: no" >&5
22609echo "${ECHO_T}no" >&6; }
22610   { echo "$as_me:$LINENO: checking for global timezone variable" >&5
22611echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6; }
22612               cat >conftest.$ac_ext <<_ACEOF
22613/* confdefs.h.  */
22614_ACEOF
22615cat confdefs.h >>conftest.$ac_ext
22616cat >>conftest.$ac_ext <<_ACEOF
22617/* end confdefs.h.  */
22618#include <time.h>
22619int
22620main ()
22621{
22622void i(){long z2 = 2*timezone;}
22623  ;
22624  return 0;
22625}
22626_ACEOF
22627rm -f conftest.$ac_objext
22628if { (ac_try="$ac_compile"
22629case "(($ac_try" in
22630  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631  *) ac_try_echo=$ac_try;;
22632esac
22633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634  (eval "$ac_compile") 2>conftest.er1
22635  ac_status=$?
22636  grep -v '^ *+' conftest.er1 >conftest.err
22637  rm -f conftest.er1
22638  cat conftest.err >&5
22639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640  (exit $ac_status); } && {
22641	 test -z "$ac_c_werror_flag" ||
22642	 test ! -s conftest.err
22643       } && test -s conftest.$ac_objext; then
22644
22645cat >>confdefs.h <<\_ACEOF
22646#define HAVE_TIMEZONE 1
22647_ACEOF
22648
22649      { echo "$as_me:$LINENO: result: yes" >&5
22650echo "${ECHO_T}yes" >&6; }
22651else
22652  echo "$as_me: failed program was:" >&5
22653sed 's/^/| /' conftest.$ac_ext >&5
22654
22655	{ echo "$as_me:$LINENO: result: no" >&5
22656echo "${ECHO_T}no" >&6; }
22657       { echo "$as_me:$LINENO: checking for global _timezone variable" >&5
22658echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6; }
22659              cat >conftest.$ac_ext <<_ACEOF
22660/* confdefs.h.  */
22661_ACEOF
22662cat confdefs.h >>conftest.$ac_ext
22663cat >>conftest.$ac_ext <<_ACEOF
22664/* end confdefs.h.  */
22665#include <time.h>
22666int
22667main ()
22668{
22669long z2 = _timezone;
22670  ;
22671  return 0;
22672}
22673_ACEOF
22674rm -f conftest.$ac_objext
22675if { (ac_try="$ac_compile"
22676case "(($ac_try" in
22677  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678  *) ac_try_echo=$ac_try;;
22679esac
22680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22681  (eval "$ac_compile") 2>conftest.er1
22682  ac_status=$?
22683  grep -v '^ *+' conftest.er1 >conftest.err
22684  rm -f conftest.er1
22685  cat conftest.err >&5
22686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22687  (exit $ac_status); } && {
22688	 test -z "$ac_c_werror_flag" ||
22689	 test ! -s conftest.err
22690       } && test -s conftest.$ac_objext; then
22691
22692cat >>confdefs.h <<\_ACEOF
22693#define HAVE_UNDERSCORE_TIMEZONE 1
22694_ACEOF
22695
22696          { echo "$as_me:$LINENO: result: yes" >&5
22697echo "${ECHO_T}yes" >&6; }
22698else
22699  echo "$as_me: failed program was:" >&5
22700sed 's/^/| /' conftest.$ac_ext >&5
22701
22702	{ echo "$as_me:$LINENO: result: no" >&5
22703echo "${ECHO_T}no" >&6; }
22704fi
22705
22706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22707fi
22708
22709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22710fi
22711
22712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713
22714  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22715echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22716if test "${ac_cv_c_const+set}" = set; then
22717  echo $ECHO_N "(cached) $ECHO_C" >&6
22718else
22719  cat >conftest.$ac_ext <<_ACEOF
22720/* confdefs.h.  */
22721_ACEOF
22722cat confdefs.h >>conftest.$ac_ext
22723cat >>conftest.$ac_ext <<_ACEOF
22724/* end confdefs.h.  */
22725
22726int
22727main ()
22728{
22729/* FIXME: Include the comments suggested by Paul. */
22730#ifndef __cplusplus
22731  /* Ultrix mips cc rejects this.  */
22732  typedef int charset[2];
22733  const charset cs;
22734  /* SunOS 4.1.1 cc rejects this.  */
22735  char const *const *pcpcc;
22736  char **ppc;
22737  /* NEC SVR4.0.2 mips cc rejects this.  */
22738  struct point {int x, y;};
22739  static struct point const zero = {0,0};
22740  /* AIX XL C 1.02.0.0 rejects this.
22741     It does not let you subtract one const X* pointer from another in
22742     an arm of an if-expression whose if-part is not a constant
22743     expression */
22744  const char *g = "string";
22745  pcpcc = &g + (g ? g-g : 0);
22746  /* HPUX 7.0 cc rejects these. */
22747  ++pcpcc;
22748  ppc = (char**) pcpcc;
22749  pcpcc = (char const *const *) ppc;
22750  { /* SCO 3.2v4 cc rejects this.  */
22751    char *t;
22752    char const *s = 0 ? (char *) 0 : (char const *) 0;
22753
22754    *t++ = 0;
22755    if (s) return 0;
22756  }
22757  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22758    int x[] = {25, 17};
22759    const int *foo = &x[0];
22760    ++foo;
22761  }
22762  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22763    typedef const int *iptr;
22764    iptr p = 0;
22765    ++p;
22766  }
22767  { /* AIX XL C 1.02.0.0 rejects this saying
22768       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22769    struct s { int j; const int *ap[3]; };
22770    struct s *b; b->j = 5;
22771  }
22772  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22773    const int foo = 10;
22774    if (!foo) return 0;
22775  }
22776  return !cs[0] && !zero.x;
22777#endif
22778
22779  ;
22780  return 0;
22781}
22782_ACEOF
22783rm -f conftest.$ac_objext
22784if { (ac_try="$ac_compile"
22785case "(($ac_try" in
22786  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787  *) ac_try_echo=$ac_try;;
22788esac
22789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790  (eval "$ac_compile") 2>conftest.er1
22791  ac_status=$?
22792  grep -v '^ *+' conftest.er1 >conftest.err
22793  rm -f conftest.er1
22794  cat conftest.err >&5
22795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796  (exit $ac_status); } && {
22797	 test -z "$ac_c_werror_flag" ||
22798	 test ! -s conftest.err
22799       } && test -s conftest.$ac_objext; then
22800  ac_cv_c_const=yes
22801else
22802  echo "$as_me: failed program was:" >&5
22803sed 's/^/| /' conftest.$ac_ext >&5
22804
22805	ac_cv_c_const=no
22806fi
22807
22808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809fi
22810{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22811echo "${ECHO_T}$ac_cv_c_const" >&6; }
22812if test $ac_cv_c_const = no; then
22813
22814cat >>confdefs.h <<\_ACEOF
22815#define const
22816_ACEOF
22817
22818fi
22819
22820  { echo "$as_me:$LINENO: checking for __attribute__" >&5
22821echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6; }
22822if test "${ac_cv_c_attribute+set}" = set; then
22823  echo $ECHO_N "(cached) $ECHO_C" >&6
22824else
22825
22826cat >conftest.$ac_ext <<_ACEOF
22827/* confdefs.h.  */
22828_ACEOF
22829cat confdefs.h >>conftest.$ac_ext
22830cat >>conftest.$ac_ext <<_ACEOF
22831/* end confdefs.h.  */
22832void foo(void) __attribute__ ((__noreturn__));
22833
22834_ACEOF
22835rm -f conftest.$ac_objext
22836if { (ac_try="$ac_compile"
22837case "(($ac_try" in
22838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839  *) ac_try_echo=$ac_try;;
22840esac
22841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842  (eval "$ac_compile") 2>conftest.er1
22843  ac_status=$?
22844  grep -v '^ *+' conftest.er1 >conftest.err
22845  rm -f conftest.er1
22846  cat conftest.err >&5
22847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848  (exit $ac_status); } && {
22849	 test -z "$ac_c_werror_flag" ||
22850	 test ! -s conftest.err
22851       } && test -s conftest.$ac_objext; then
22852  ac_cv_c_attribute=yes
22853else
22854  echo "$as_me: failed program was:" >&5
22855sed 's/^/| /' conftest.$ac_ext >&5
22856
22857	ac_cv_c_attribute=no
22858
22859fi
22860
22861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22862
22863fi
22864{ echo "$as_me:$LINENO: result: $ac_cv_c_attribute" >&5
22865echo "${ECHO_T}$ac_cv_c_attribute" >&6; }
22866
22867
22868case $ac_cv_c_attribute in
22869  yes) ;;
22870  no)
22871    cat >>confdefs.h <<_ACEOF
22872#define __attribute__(x)    /* nothing */
22873_ACEOF
22874    ;;
22875esac
22876
22877
22878
22879      if test "X$prefix" = "XNONE"; then
22880    acl_final_prefix="$ac_default_prefix"
22881  else
22882    acl_final_prefix="$prefix"
22883  fi
22884  if test "X$exec_prefix" = "XNONE"; then
22885    acl_final_exec_prefix='${prefix}'
22886  else
22887    acl_final_exec_prefix="$exec_prefix"
22888  fi
22889  acl_save_prefix="$prefix"
22890  prefix="$acl_final_prefix"
22891  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
22892  prefix="$acl_save_prefix"
22893
22894
22895# Check whether --with-gnu-ld was given.
22896if test "${with_gnu_ld+set}" = set; then
22897  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
22898else
22899  with_gnu_ld=no
22900fi
22901
22902# Prepare PATH_SEPARATOR.
22903# The user is always right.
22904if test "${PATH_SEPARATOR+set}" != set; then
22905  echo "#! /bin/sh" >conf$$.sh
22906  echo  "exit 0"   >>conf$$.sh
22907  chmod +x conf$$.sh
22908  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22909    PATH_SEPARATOR=';'
22910  else
22911    PATH_SEPARATOR=:
22912  fi
22913  rm -f conf$$.sh
22914fi
22915ac_prog=ld
22916if test "$GCC" = yes; then
22917  # Check if gcc -print-prog-name=ld gives a path.
22918  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
22919echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
22920  case $host in
22921  *-*-mingw*)
22922    # gcc leaves a trailing carriage return which upsets mingw
22923    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22924  *)
22925    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22926  esac
22927  case $ac_prog in
22928    # Accept absolute paths.
22929    [\\/]* | [A-Za-z]:[\\/]*)
22930      re_direlt='/[^/][^/]*/\.\./'
22931      # Canonicalize the path of ld
22932      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
22933      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22934	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
22935      done
22936      test -z "$LD" && LD="$ac_prog"
22937      ;;
22938  "")
22939    # If it fails, then pretend we aren't using GCC.
22940    ac_prog=ld
22941    ;;
22942  *)
22943    # If it is relative, then search for the first ld in PATH.
22944    with_gnu_ld=unknown
22945    ;;
22946  esac
22947elif test "$with_gnu_ld" = yes; then
22948  { echo "$as_me:$LINENO: checking for GNU ld" >&5
22949echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
22950else
22951  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22952echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
22953fi
22954if test "${acl_cv_path_LD+set}" = set; then
22955  echo $ECHO_N "(cached) $ECHO_C" >&6
22956else
22957  if test -z "$LD"; then
22958  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
22959  for ac_dir in $PATH; do
22960    test -z "$ac_dir" && ac_dir=.
22961    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22962      acl_cv_path_LD="$ac_dir/$ac_prog"
22963      # Check to see if the program is GNU ld.  I'd rather use --version,
22964      # but apparently some GNU ld's only accept -v.
22965      # Break only if it was the GNU/non-GNU ld that we prefer.
22966      if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
22967	test "$with_gnu_ld" != no && break
22968      else
22969	test "$with_gnu_ld" != yes && break
22970      fi
22971    fi
22972  done
22973  IFS="$ac_save_ifs"
22974else
22975  acl_cv_path_LD="$LD" # Let the user override the test with a path.
22976fi
22977fi
22978
22979LD="$acl_cv_path_LD"
22980if test -n "$LD"; then
22981  { echo "$as_me:$LINENO: result: $LD" >&5
22982echo "${ECHO_T}$LD" >&6; }
22983else
22984  { echo "$as_me:$LINENO: result: no" >&5
22985echo "${ECHO_T}no" >&6; }
22986fi
22987test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22988echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22989   { (exit 1); exit 1; }; }
22990{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22991echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
22992if test "${acl_cv_prog_gnu_ld+set}" = set; then
22993  echo $ECHO_N "(cached) $ECHO_C" >&6
22994else
22995  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22996if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
22997  acl_cv_prog_gnu_ld=yes
22998else
22999  acl_cv_prog_gnu_ld=no
23000fi
23001fi
23002{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
23003echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
23004with_gnu_ld=$acl_cv_prog_gnu_ld
23005
23006
23007
23008                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
23009echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
23010if test "${acl_cv_rpath+set}" = set; then
23011  echo $ECHO_N "(cached) $ECHO_C" >&6
23012else
23013
23014    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
23015    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
23016    . ./conftest.sh
23017    rm -f ./conftest.sh
23018    acl_cv_rpath=done
23019
23020fi
23021{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
23022echo "${ECHO_T}$acl_cv_rpath" >&6; }
23023  wl="$acl_cv_wl"
23024  libext="$acl_cv_libext"
23025  shlibext="$acl_cv_shlibext"
23026  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
23027  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
23028  hardcode_direct="$acl_cv_hardcode_direct"
23029  hardcode_minus_L="$acl_cv_hardcode_minus_L"
23030    # Check whether --enable-rpath was given.
23031if test "${enable_rpath+set}" = set; then
23032  enableval=$enable_rpath; :
23033else
23034  enable_rpath=yes
23035fi
23036
23037
23038
23039
23040
23041
23042
23043
23044    use_additional=yes
23045
23046  acl_save_prefix="$prefix"
23047  prefix="$acl_final_prefix"
23048  acl_save_exec_prefix="$exec_prefix"
23049  exec_prefix="$acl_final_exec_prefix"
23050
23051    eval additional_includedir=\"$includedir\"
23052    eval additional_libdir=\"$libdir\"
23053
23054  exec_prefix="$acl_save_exec_prefix"
23055  prefix="$acl_save_prefix"
23056
23057
23058# Check whether --with-libiconv-prefix was given.
23059if test "${with_libiconv_prefix+set}" = set; then
23060  withval=$with_libiconv_prefix;
23061    if test "X$withval" = "Xno"; then
23062      use_additional=no
23063    else
23064      if test "X$withval" = "X"; then
23065
23066  acl_save_prefix="$prefix"
23067  prefix="$acl_final_prefix"
23068  acl_save_exec_prefix="$exec_prefix"
23069  exec_prefix="$acl_final_exec_prefix"
23070
23071          eval additional_includedir=\"$includedir\"
23072          eval additional_libdir=\"$libdir\"
23073
23074  exec_prefix="$acl_save_exec_prefix"
23075  prefix="$acl_save_prefix"
23076
23077      else
23078        additional_includedir="$withval/include"
23079        additional_libdir="$withval/lib"
23080      fi
23081    fi
23082
23083fi
23084
23085      LIBICONV=
23086  LTLIBICONV=
23087  INCICONV=
23088  rpathdirs=
23089  ltrpathdirs=
23090  names_already_handled=
23091  names_next_round='iconv '
23092  while test -n "$names_next_round"; do
23093    names_this_round="$names_next_round"
23094    names_next_round=
23095    for name in $names_this_round; do
23096      already_handled=
23097      for n in $names_already_handled; do
23098        if test "$n" = "$name"; then
23099          already_handled=yes
23100          break
23101        fi
23102      done
23103      if test -z "$already_handled"; then
23104        names_already_handled="$names_already_handled $name"
23105                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23106        eval value=\"\$HAVE_LIB$uppername\"
23107        if test -n "$value"; then
23108          if test "$value" = yes; then
23109            eval value=\"\$LIB$uppername\"
23110            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
23111            eval value=\"\$LTLIB$uppername\"
23112            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
23113          else
23114                                    :
23115          fi
23116        else
23117                              found_dir=
23118          found_la=
23119          found_so=
23120          found_a=
23121          if test $use_additional = yes; then
23122            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23123              found_dir="$additional_libdir"
23124              found_so="$additional_libdir/lib$name.$shlibext"
23125              if test -f "$additional_libdir/lib$name.la"; then
23126                found_la="$additional_libdir/lib$name.la"
23127              fi
23128            else
23129              if test -f "$additional_libdir/lib$name.$libext"; then
23130                found_dir="$additional_libdir"
23131                found_a="$additional_libdir/lib$name.$libext"
23132                if test -f "$additional_libdir/lib$name.la"; then
23133                  found_la="$additional_libdir/lib$name.la"
23134                fi
23135              fi
23136            fi
23137          fi
23138          if test "X$found_dir" = "X"; then
23139            for x in $LDFLAGS $LTLIBICONV; do
23140
23141  acl_save_prefix="$prefix"
23142  prefix="$acl_final_prefix"
23143  acl_save_exec_prefix="$exec_prefix"
23144  exec_prefix="$acl_final_exec_prefix"
23145  eval x=\"$x\"
23146  exec_prefix="$acl_save_exec_prefix"
23147  prefix="$acl_save_prefix"
23148
23149              case "$x" in
23150                -L*)
23151                  dir=`echo "X$x" | sed -e 's/^X-L//'`
23152                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23153                    found_dir="$dir"
23154                    found_so="$dir/lib$name.$shlibext"
23155                    if test -f "$dir/lib$name.la"; then
23156                      found_la="$dir/lib$name.la"
23157                    fi
23158                  else
23159                    if test -f "$dir/lib$name.$libext"; then
23160                      found_dir="$dir"
23161                      found_a="$dir/lib$name.$libext"
23162                      if test -f "$dir/lib$name.la"; then
23163                        found_la="$dir/lib$name.la"
23164                      fi
23165                    fi
23166                  fi
23167                  ;;
23168              esac
23169              if test "X$found_dir" != "X"; then
23170                break
23171              fi
23172            done
23173          fi
23174          if test "X$found_dir" != "X"; then
23175                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
23176            if test "X$found_so" != "X"; then
23177                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23178                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23179              else
23180                                                                                haveit=
23181                for x in $ltrpathdirs; do
23182                  if test "X$x" = "X$found_dir"; then
23183                    haveit=yes
23184                    break
23185                  fi
23186                done
23187                if test -z "$haveit"; then
23188                  ltrpathdirs="$ltrpathdirs $found_dir"
23189                fi
23190                                if test "$hardcode_direct" = yes; then
23191                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23192                else
23193                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23194                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23195                                                            haveit=
23196                    for x in $rpathdirs; do
23197                      if test "X$x" = "X$found_dir"; then
23198                        haveit=yes
23199                        break
23200                      fi
23201                    done
23202                    if test -z "$haveit"; then
23203                      rpathdirs="$rpathdirs $found_dir"
23204                    fi
23205                  else
23206                                                                                haveit=
23207                    for x in $LDFLAGS $LIBICONV; do
23208
23209  acl_save_prefix="$prefix"
23210  prefix="$acl_final_prefix"
23211  acl_save_exec_prefix="$exec_prefix"
23212  exec_prefix="$acl_final_exec_prefix"
23213  eval x=\"$x\"
23214  exec_prefix="$acl_save_exec_prefix"
23215  prefix="$acl_save_prefix"
23216
23217                      if test "X$x" = "X-L$found_dir"; then
23218                        haveit=yes
23219                        break
23220                      fi
23221                    done
23222                    if test -z "$haveit"; then
23223                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
23224                    fi
23225                    if test "$hardcode_minus_L" != no; then
23226                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
23227                    else
23228                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23229                    fi
23230                  fi
23231                fi
23232              fi
23233            else
23234              if test "X$found_a" != "X"; then
23235                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
23236              else
23237                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
23238              fi
23239            fi
23240                        additional_includedir=
23241            case "$found_dir" in
23242              */lib | */lib/)
23243                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23244                additional_includedir="$basedir/include"
23245                ;;
23246            esac
23247            if test "X$additional_includedir" != "X"; then
23248                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
23249                haveit=
23250                if test "X$additional_includedir" = "X/usr/local/include"; then
23251                  if test -n "$GCC"; then
23252                    case $host_os in
23253                      linux*) haveit=yes;;
23254                    esac
23255                  fi
23256                fi
23257                if test -z "$haveit"; then
23258                  for x in $CPPFLAGS $INCICONV; do
23259
23260  acl_save_prefix="$prefix"
23261  prefix="$acl_final_prefix"
23262  acl_save_exec_prefix="$exec_prefix"
23263  exec_prefix="$acl_final_exec_prefix"
23264  eval x=\"$x\"
23265  exec_prefix="$acl_save_exec_prefix"
23266  prefix="$acl_save_prefix"
23267
23268                    if test "X$x" = "X-I$additional_includedir"; then
23269                      haveit=yes
23270                      break
23271                    fi
23272                  done
23273                  if test -z "$haveit"; then
23274                    if test -d "$additional_includedir"; then
23275                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
23276                    fi
23277                  fi
23278                fi
23279              fi
23280            fi
23281                        if test -n "$found_la"; then
23282                                                        save_libdir="$libdir"
23283              case "$found_la" in
23284                */* | *\\*) . "$found_la" ;;
23285                *) . "./$found_la" ;;
23286              esac
23287              libdir="$save_libdir"
23288                            for dep in $dependency_libs; do
23289                case "$dep" in
23290                  -L*)
23291                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23292                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
23293                      haveit=
23294                      if test "X$additional_libdir" = "X/usr/local/lib"; then
23295                        if test -n "$GCC"; then
23296                          case $host_os in
23297                            linux*) haveit=yes;;
23298                          esac
23299                        fi
23300                      fi
23301                      if test -z "$haveit"; then
23302                        haveit=
23303                        for x in $LDFLAGS $LIBICONV; do
23304
23305  acl_save_prefix="$prefix"
23306  prefix="$acl_final_prefix"
23307  acl_save_exec_prefix="$exec_prefix"
23308  exec_prefix="$acl_final_exec_prefix"
23309  eval x=\"$x\"
23310  exec_prefix="$acl_save_exec_prefix"
23311  prefix="$acl_save_prefix"
23312
23313                          if test "X$x" = "X-L$additional_libdir"; then
23314                            haveit=yes
23315                            break
23316                          fi
23317                        done
23318                        if test -z "$haveit"; then
23319                          if test -d "$additional_libdir"; then
23320                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
23321                          fi
23322                        fi
23323                        haveit=
23324                        for x in $LDFLAGS $LTLIBICONV; do
23325
23326  acl_save_prefix="$prefix"
23327  prefix="$acl_final_prefix"
23328  acl_save_exec_prefix="$exec_prefix"
23329  exec_prefix="$acl_final_exec_prefix"
23330  eval x=\"$x\"
23331  exec_prefix="$acl_save_exec_prefix"
23332  prefix="$acl_save_prefix"
23333
23334                          if test "X$x" = "X-L$additional_libdir"; then
23335                            haveit=yes
23336                            break
23337                          fi
23338                        done
23339                        if test -z "$haveit"; then
23340                          if test -d "$additional_libdir"; then
23341                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
23342                          fi
23343                        fi
23344                      fi
23345                    fi
23346                    ;;
23347                  -R*)
23348                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
23349                    if test "$enable_rpath" != no; then
23350                                                                  haveit=
23351                      for x in $rpathdirs; do
23352                        if test "X$x" = "X$dir"; then
23353                          haveit=yes
23354                          break
23355                        fi
23356                      done
23357                      if test -z "$haveit"; then
23358                        rpathdirs="$rpathdirs $dir"
23359                      fi
23360                                                                  haveit=
23361                      for x in $ltrpathdirs; do
23362                        if test "X$x" = "X$dir"; then
23363                          haveit=yes
23364                          break
23365                        fi
23366                      done
23367                      if test -z "$haveit"; then
23368                        ltrpathdirs="$ltrpathdirs $dir"
23369                      fi
23370                    fi
23371                    ;;
23372                  -l*)
23373                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23374                    ;;
23375                  *.la)
23376                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23377                    ;;
23378                  *)
23379                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
23380                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
23381                    ;;
23382                esac
23383              done
23384            fi
23385          else
23386                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
23387            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
23388          fi
23389        fi
23390      fi
23391    done
23392  done
23393  if test "X$rpathdirs" != "X"; then
23394    if test -n "$hardcode_libdir_separator"; then
23395                        alldirs=
23396      for found_dir in $rpathdirs; do
23397        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23398      done
23399            acl_save_libdir="$libdir"
23400      libdir="$alldirs"
23401      eval flag=\"$hardcode_libdir_flag_spec\"
23402      libdir="$acl_save_libdir"
23403      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23404    else
23405            for found_dir in $rpathdirs; do
23406        acl_save_libdir="$libdir"
23407        libdir="$found_dir"
23408        eval flag=\"$hardcode_libdir_flag_spec\"
23409        libdir="$acl_save_libdir"
23410        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
23411      done
23412    fi
23413  fi
23414  if test "X$ltrpathdirs" != "X"; then
23415            for found_dir in $ltrpathdirs; do
23416      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
23417    done
23418  fi
23419
23420
23421
23422
23423
23424
23425
23426          am_save_CPPFLAGS="$CPPFLAGS"
23427
23428  for element in $INCICONV; do
23429    haveit=
23430    for x in $CPPFLAGS; do
23431
23432  acl_save_prefix="$prefix"
23433  prefix="$acl_final_prefix"
23434  acl_save_exec_prefix="$exec_prefix"
23435  exec_prefix="$acl_final_exec_prefix"
23436  eval x=\"$x\"
23437  exec_prefix="$acl_save_exec_prefix"
23438  prefix="$acl_save_prefix"
23439
23440      if test "X$x" = "X$element"; then
23441        haveit=yes
23442        break
23443      fi
23444    done
23445    if test -z "$haveit"; then
23446      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23447    fi
23448  done
23449
23450
23451  { echo "$as_me:$LINENO: checking for iconv" >&5
23452echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
23453if test "${am_cv_func_iconv+set}" = set; then
23454  echo $ECHO_N "(cached) $ECHO_C" >&6
23455else
23456
23457    am_cv_func_iconv="no, consider installing GNU libiconv"
23458    am_cv_lib_iconv=no
23459    cat >conftest.$ac_ext <<_ACEOF
23460/* confdefs.h.  */
23461_ACEOF
23462cat confdefs.h >>conftest.$ac_ext
23463cat >>conftest.$ac_ext <<_ACEOF
23464/* end confdefs.h.  */
23465#include <stdlib.h>
23466#include <iconv.h>
23467int
23468main ()
23469{
23470iconv_t cd = iconv_open("","");
23471       iconv(cd,NULL,NULL,NULL,NULL);
23472       iconv_close(cd);
23473  ;
23474  return 0;
23475}
23476_ACEOF
23477rm -f conftest.$ac_objext conftest$ac_exeext
23478if { (ac_try="$ac_link"
23479case "(($ac_try" in
23480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23481  *) ac_try_echo=$ac_try;;
23482esac
23483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23484  (eval "$ac_link") 2>conftest.er1
23485  ac_status=$?
23486  grep -v '^ *+' conftest.er1 >conftest.err
23487  rm -f conftest.er1
23488  cat conftest.err >&5
23489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490  (exit $ac_status); } && {
23491	 test -z "$ac_c_werror_flag" ||
23492	 test ! -s conftest.err
23493       } && test -s conftest$ac_exeext &&
23494       $as_test_x conftest$ac_exeext; then
23495  am_cv_func_iconv=yes
23496else
23497  echo "$as_me: failed program was:" >&5
23498sed 's/^/| /' conftest.$ac_ext >&5
23499
23500
23501fi
23502
23503rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23504      conftest$ac_exeext conftest.$ac_ext
23505    if test "$am_cv_func_iconv" != yes; then
23506      am_save_LIBS="$LIBS"
23507      LIBS="$LIBS $LIBICONV"
23508      cat >conftest.$ac_ext <<_ACEOF
23509/* confdefs.h.  */
23510_ACEOF
23511cat confdefs.h >>conftest.$ac_ext
23512cat >>conftest.$ac_ext <<_ACEOF
23513/* end confdefs.h.  */
23514#include <stdlib.h>
23515#include <iconv.h>
23516int
23517main ()
23518{
23519iconv_t cd = iconv_open("","");
23520         iconv(cd,NULL,NULL,NULL,NULL);
23521         iconv_close(cd);
23522  ;
23523  return 0;
23524}
23525_ACEOF
23526rm -f conftest.$ac_objext conftest$ac_exeext
23527if { (ac_try="$ac_link"
23528case "(($ac_try" in
23529  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530  *) ac_try_echo=$ac_try;;
23531esac
23532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533  (eval "$ac_link") 2>conftest.er1
23534  ac_status=$?
23535  grep -v '^ *+' conftest.er1 >conftest.err
23536  rm -f conftest.er1
23537  cat conftest.err >&5
23538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539  (exit $ac_status); } && {
23540	 test -z "$ac_c_werror_flag" ||
23541	 test ! -s conftest.err
23542       } && test -s conftest$ac_exeext &&
23543       $as_test_x conftest$ac_exeext; then
23544  am_cv_lib_iconv=yes
23545        am_cv_func_iconv=yes
23546else
23547  echo "$as_me: failed program was:" >&5
23548sed 's/^/| /' conftest.$ac_ext >&5
23549
23550
23551fi
23552
23553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23554      conftest$ac_exeext conftest.$ac_ext
23555      LIBS="$am_save_LIBS"
23556    fi
23557
23558fi
23559{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23560echo "${ECHO_T}$am_cv_func_iconv" >&6; }
23561  if test "$am_cv_func_iconv" = yes; then
23562
23563cat >>confdefs.h <<\_ACEOF
23564#define HAVE_ICONV 1
23565_ACEOF
23566
23567  fi
23568  if test "$am_cv_lib_iconv" = yes; then
23569    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
23570echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
23571    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
23572echo "${ECHO_T}$LIBICONV" >&6; }
23573  else
23574            CPPFLAGS="$am_save_CPPFLAGS"
23575    LIBICONV=
23576    LTLIBICONV=
23577  fi
23578
23579
23580
23581  if test "$am_cv_func_iconv" = yes; then
23582    { echo "$as_me:$LINENO: checking for iconv declaration" >&5
23583echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
23584    if test "${am_cv_proto_iconv+set}" = set; then
23585  echo $ECHO_N "(cached) $ECHO_C" >&6
23586else
23587
23588      cat >conftest.$ac_ext <<_ACEOF
23589/* confdefs.h.  */
23590_ACEOF
23591cat confdefs.h >>conftest.$ac_ext
23592cat >>conftest.$ac_ext <<_ACEOF
23593/* end confdefs.h.  */
23594
23595#include <stdlib.h>
23596#include <iconv.h>
23597extern
23598#ifdef __cplusplus
23599"C"
23600#endif
23601#if defined(__STDC__) || defined(__cplusplus)
23602size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23603#else
23604size_t iconv();
23605#endif
23606
23607int
23608main ()
23609{
23610
23611  ;
23612  return 0;
23613}
23614_ACEOF
23615rm -f conftest.$ac_objext
23616if { (ac_try="$ac_compile"
23617case "(($ac_try" in
23618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23619  *) ac_try_echo=$ac_try;;
23620esac
23621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23622  (eval "$ac_compile") 2>conftest.er1
23623  ac_status=$?
23624  grep -v '^ *+' conftest.er1 >conftest.err
23625  rm -f conftest.er1
23626  cat conftest.err >&5
23627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628  (exit $ac_status); } && {
23629	 test -z "$ac_c_werror_flag" ||
23630	 test ! -s conftest.err
23631       } && test -s conftest.$ac_objext; then
23632  am_cv_proto_iconv_arg1=""
23633else
23634  echo "$as_me: failed program was:" >&5
23635sed 's/^/| /' conftest.$ac_ext >&5
23636
23637	am_cv_proto_iconv_arg1="const"
23638fi
23639
23640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23641      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);"
23642fi
23643
23644    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
23645    { echo "$as_me:$LINENO: result: ${ac_t:-
23646         }$am_cv_proto_iconv" >&5
23647echo "${ECHO_T}${ac_t:-
23648         }$am_cv_proto_iconv" >&6; }
23649
23650cat >>confdefs.h <<_ACEOF
23651#define ICONV_CONST $am_cv_proto_iconv_arg1
23652_ACEOF
23653
23654  fi
23655
23656
23657    if test "x${GCC}" = xyes; then
23658    if test "x${COMPILATION_WARNINGS}" = "xyes"; then
23659      AM_CFLAGS="$AM_CFLAGS -D_BSD_SOURCE"
23660                  WARNING_CFLAGS='-pedantic -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
23661
23662                  STRICT_WARNING_CFLAGS=-Wstrict-prototypes
23663
23664    fi
23665    case $host in
23666      powerpc-apple-darwin*)
23667        AM_CFLAGS="$AM_CFLAGS -no-cpp-precomp"
23668        AM_CPPFLAGS="-D__PPC__ -D_BIG_ENDIAN"
23669
23670        ;;
23671    esac
23672
23673            ERROR_CFLAGS=
23674    if test "x${ENABLE_WERROR}" = xyes; then
23675       ERROR_CFLAGS='-Werror'
23676    fi
23677
23678  fi
23679
23680    if test "x${COMPILE_XMLJ}" = xyes; then
23681
23682  succeeded=no
23683
23684  if test -z "$PKG_CONFIG"; then
23685    # Extract the first word of "pkg-config", so it can be a program name with args.
23686set dummy pkg-config; ac_word=$2
23687{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23689if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23690  echo $ECHO_N "(cached) $ECHO_C" >&6
23691else
23692  case $PKG_CONFIG in
23693  [\\/]* | ?:[\\/]*)
23694  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23695  ;;
23696  *)
23697  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23698for as_dir in $PATH
23699do
23700  IFS=$as_save_IFS
23701  test -z "$as_dir" && as_dir=.
23702  for ac_exec_ext in '' $ac_executable_extensions; do
23703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23704    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23705    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23706    break 2
23707  fi
23708done
23709done
23710IFS=$as_save_IFS
23711
23712  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23713  ;;
23714esac
23715fi
23716PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23717if test -n "$PKG_CONFIG"; then
23718  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23719echo "${ECHO_T}$PKG_CONFIG" >&6; }
23720else
23721  { echo "$as_me:$LINENO: result: no" >&5
23722echo "${ECHO_T}no" >&6; }
23723fi
23724
23725
23726  fi
23727
23728  if test "$PKG_CONFIG" = "no" ; then
23729     echo "*** The pkg-config script could not be found. Make sure it is"
23730     echo "*** in your path, or set the PKG_CONFIG environment variable"
23731     echo "*** to the full path to pkg-config."
23732     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23733  else
23734     PKG_CONFIG_MIN_VERSION=0.9.0
23735     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23736        { echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.6.8" >&5
23737echo $ECHO_N "checking for libxml-2.0 >= 2.6.8... $ECHO_C" >&6; }
23738
23739        if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
23740            { echo "$as_me:$LINENO: result: yes" >&5
23741echo "${ECHO_T}yes" >&6; }
23742            succeeded=yes
23743
23744            { echo "$as_me:$LINENO: checking XML_CFLAGS" >&5
23745echo $ECHO_N "checking XML_CFLAGS... $ECHO_C" >&6; }
23746            XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
23747            { echo "$as_me:$LINENO: result: $XML_CFLAGS" >&5
23748echo "${ECHO_T}$XML_CFLAGS" >&6; }
23749
23750            { echo "$as_me:$LINENO: checking XML_LIBS" >&5
23751echo $ECHO_N "checking XML_LIBS... $ECHO_C" >&6; }
23752            XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
23753            { echo "$as_me:$LINENO: result: $XML_LIBS" >&5
23754echo "${ECHO_T}$XML_LIBS" >&6; }
23755        else
23756            XML_CFLAGS=""
23757            XML_LIBS=""
23758            ## If we have a custom action on failure, don't print errors, but
23759            ## do set a variable so people can do so.
23760            XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
23761            echo $XML_PKG_ERRORS
23762        fi
23763
23764
23765
23766     else
23767        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23768        echo "*** See http://www.freedesktop.org/software/pkgconfig"
23769     fi
23770  fi
23771
23772  if test $succeeded = yes; then
23773     :
23774  else
23775     { { 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
23776echo "$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;}
23777   { (exit 1); exit 1; }; }
23778  fi
23779
23780
23781  succeeded=no
23782
23783  if test -z "$PKG_CONFIG"; then
23784    # Extract the first word of "pkg-config", so it can be a program name with args.
23785set dummy pkg-config; ac_word=$2
23786{ echo "$as_me:$LINENO: checking for $ac_word" >&5
23787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23788if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23789  echo $ECHO_N "(cached) $ECHO_C" >&6
23790else
23791  case $PKG_CONFIG in
23792  [\\/]* | ?:[\\/]*)
23793  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23794  ;;
23795  *)
23796  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23797for as_dir in $PATH
23798do
23799  IFS=$as_save_IFS
23800  test -z "$as_dir" && as_dir=.
23801  for ac_exec_ext in '' $ac_executable_extensions; do
23802  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23803    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23804    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23805    break 2
23806  fi
23807done
23808done
23809IFS=$as_save_IFS
23810
23811  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23812  ;;
23813esac
23814fi
23815PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23816if test -n "$PKG_CONFIG"; then
23817  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23818echo "${ECHO_T}$PKG_CONFIG" >&6; }
23819else
23820  { echo "$as_me:$LINENO: result: no" >&5
23821echo "${ECHO_T}no" >&6; }
23822fi
23823
23824
23825  fi
23826
23827  if test "$PKG_CONFIG" = "no" ; then
23828     echo "*** The pkg-config script could not be found. Make sure it is"
23829     echo "*** in your path, or set the PKG_CONFIG environment variable"
23830     echo "*** to the full path to pkg-config."
23831     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23832  else
23833     PKG_CONFIG_MIN_VERSION=0.9.0
23834     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23835        { echo "$as_me:$LINENO: checking for libxslt >= 1.1.11" >&5
23836echo $ECHO_N "checking for libxslt >= 1.1.11... $ECHO_C" >&6; }
23837
23838        if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
23839            { echo "$as_me:$LINENO: result: yes" >&5
23840echo "${ECHO_T}yes" >&6; }
23841            succeeded=yes
23842
23843            { echo "$as_me:$LINENO: checking XSLT_CFLAGS" >&5
23844echo $ECHO_N "checking XSLT_CFLAGS... $ECHO_C" >&6; }
23845            XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
23846            { echo "$as_me:$LINENO: result: $XSLT_CFLAGS" >&5
23847echo "${ECHO_T}$XSLT_CFLAGS" >&6; }
23848
23849            { echo "$as_me:$LINENO: checking XSLT_LIBS" >&5
23850echo $ECHO_N "checking XSLT_LIBS... $ECHO_C" >&6; }
23851            XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
23852            { echo "$as_me:$LINENO: result: $XSLT_LIBS" >&5
23853echo "${ECHO_T}$XSLT_LIBS" >&6; }
23854        else
23855            XSLT_CFLAGS=""
23856            XSLT_LIBS=""
23857            ## If we have a custom action on failure, don't print errors, but
23858            ## do set a variable so people can do so.
23859            XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
23860            echo $XSLT_PKG_ERRORS
23861        fi
23862
23863
23864
23865     else
23866        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23867        echo "*** See http://www.freedesktop.org/software/pkgconfig"
23868     fi
23869  fi
23870
23871  if test $succeeded = yes; then
23872     :
23873  else
23874     { { 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
23875echo "$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;}
23876   { (exit 1); exit 1; }; }
23877  fi
23878
23879
23880
23881
23882
23883  fi
23884
23885    if test "x${COMPILE_GTK_PEER}" = xyes; then
23886    { echo "$as_me:$LINENO: checking for X" >&5
23887echo $ECHO_N "checking for X... $ECHO_C" >&6; }
23888
23889
23890# Check whether --with-x was given.
23891if test "${with_x+set}" = set; then
23892  withval=$with_x;
23893fi
23894
23895# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23896if test "x$with_x" = xno; then
23897  # The user explicitly disabled X.
23898  have_x=disabled
23899else
23900  case $x_includes,$x_libraries in #(
23901    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
23902echo "$as_me: error: Cannot use X directory names containing '" >&2;}
23903   { (exit 1); exit 1; }; };; #(
23904    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
23905  echo $ECHO_N "(cached) $ECHO_C" >&6
23906else
23907  # One or both of the vars are not set, and there is no cached value.
23908ac_x_includes=no ac_x_libraries=no
23909rm -f -r conftest.dir
23910if mkdir conftest.dir; then
23911  cd conftest.dir
23912  cat >Imakefile <<'_ACEOF'
23913incroot:
23914	@echo incroot='${INCROOT}'
23915usrlibdir:
23916	@echo usrlibdir='${USRLIBDIR}'
23917libdir:
23918	@echo libdir='${LIBDIR}'
23919_ACEOF
23920  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23921    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23922    for ac_var in incroot usrlibdir libdir; do
23923      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23924    done
23925    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23926    for ac_extension in a so sl; do
23927      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23928	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23929	ac_im_usrlibdir=$ac_im_libdir; break
23930      fi
23931    done
23932    # Screen out bogus values from the imake configuration.  They are
23933    # bogus both because they are the default anyway, and because
23934    # using them would break gcc on systems where it needs fixed includes.
23935    case $ac_im_incroot in
23936	/usr/include) ac_x_includes= ;;
23937	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23938    esac
23939    case $ac_im_usrlibdir in
23940	/usr/lib | /lib) ;;
23941	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23942    esac
23943  fi
23944  cd ..
23945  rm -f -r conftest.dir
23946fi
23947
23948# Standard set of common directories for X headers.
23949# Check X11 before X11Rn because it is often a symlink to the current release.
23950ac_x_header_dirs='
23951/usr/X11/include
23952/usr/X11R6/include
23953/usr/X11R5/include
23954/usr/X11R4/include
23955
23956/usr/include/X11
23957/usr/include/X11R6
23958/usr/include/X11R5
23959/usr/include/X11R4
23960
23961/usr/local/X11/include
23962/usr/local/X11R6/include
23963/usr/local/X11R5/include
23964/usr/local/X11R4/include
23965
23966/usr/local/include/X11
23967/usr/local/include/X11R6
23968/usr/local/include/X11R5
23969/usr/local/include/X11R4
23970
23971/usr/X386/include
23972/usr/x386/include
23973/usr/XFree86/include/X11
23974
23975/usr/include
23976/usr/local/include
23977/usr/unsupported/include
23978/usr/athena/include
23979/usr/local/x11r5/include
23980/usr/lpp/Xamples/include
23981
23982/usr/openwin/include
23983/usr/openwin/share/include'
23984
23985if test "$ac_x_includes" = no; then
23986  # Guess where to find include files, by looking for Xlib.h.
23987  # First, try using that file with no special directory specified.
23988  cat >conftest.$ac_ext <<_ACEOF
23989/* confdefs.h.  */
23990_ACEOF
23991cat confdefs.h >>conftest.$ac_ext
23992cat >>conftest.$ac_ext <<_ACEOF
23993/* end confdefs.h.  */
23994#include <X11/Xlib.h>
23995_ACEOF
23996if { (ac_try="$ac_cpp conftest.$ac_ext"
23997case "(($ac_try" in
23998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23999  *) ac_try_echo=$ac_try;;
24000esac
24001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24002  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24003  ac_status=$?
24004  grep -v '^ *+' conftest.er1 >conftest.err
24005  rm -f conftest.er1
24006  cat conftest.err >&5
24007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008  (exit $ac_status); } >/dev/null && {
24009	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24010	 test ! -s conftest.err
24011       }; then
24012  # We can compile using X headers with no special include directory.
24013ac_x_includes=
24014else
24015  echo "$as_me: failed program was:" >&5
24016sed 's/^/| /' conftest.$ac_ext >&5
24017
24018  for ac_dir in $ac_x_header_dirs; do
24019  if test -r "$ac_dir/X11/Xlib.h"; then
24020    ac_x_includes=$ac_dir
24021    break
24022  fi
24023done
24024fi
24025
24026rm -f conftest.err conftest.$ac_ext
24027fi # $ac_x_includes = no
24028
24029if test "$ac_x_libraries" = no; then
24030  # Check for the libraries.
24031  # See if we find them without any special options.
24032  # Don't add to $LIBS permanently.
24033  ac_save_LIBS=$LIBS
24034  LIBS="-lX11 $LIBS"
24035  cat >conftest.$ac_ext <<_ACEOF
24036/* confdefs.h.  */
24037_ACEOF
24038cat confdefs.h >>conftest.$ac_ext
24039cat >>conftest.$ac_ext <<_ACEOF
24040/* end confdefs.h.  */
24041#include <X11/Xlib.h>
24042int
24043main ()
24044{
24045XrmInitialize ()
24046  ;
24047  return 0;
24048}
24049_ACEOF
24050rm -f conftest.$ac_objext conftest$ac_exeext
24051if { (ac_try="$ac_link"
24052case "(($ac_try" in
24053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24054  *) ac_try_echo=$ac_try;;
24055esac
24056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24057  (eval "$ac_link") 2>conftest.er1
24058  ac_status=$?
24059  grep -v '^ *+' conftest.er1 >conftest.err
24060  rm -f conftest.er1
24061  cat conftest.err >&5
24062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063  (exit $ac_status); } && {
24064	 test -z "$ac_c_werror_flag" ||
24065	 test ! -s conftest.err
24066       } && test -s conftest$ac_exeext &&
24067       $as_test_x conftest$ac_exeext; then
24068  LIBS=$ac_save_LIBS
24069# We can link X programs with no special library path.
24070ac_x_libraries=
24071else
24072  echo "$as_me: failed program was:" >&5
24073sed 's/^/| /' conftest.$ac_ext >&5
24074
24075	LIBS=$ac_save_LIBS
24076for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24077do
24078  # Don't even attempt the hair of trying to link an X program!
24079  for ac_extension in a so sl; do
24080    if test -r "$ac_dir/libX11.$ac_extension"; then
24081      ac_x_libraries=$ac_dir
24082      break 2
24083    fi
24084  done
24085done
24086fi
24087
24088rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24089      conftest$ac_exeext conftest.$ac_ext
24090fi # $ac_x_libraries = no
24091
24092case $ac_x_includes,$ac_x_libraries in #(
24093  no,* | *,no | *\'*)
24094    # Didn't find X, or a directory has "'" in its name.
24095    ac_cv_have_x="have_x=no";; #(
24096  *)
24097    # Record where we found X for the cache.
24098    ac_cv_have_x="have_x=yes\
24099	ac_x_includes='$ac_x_includes'\
24100	ac_x_libraries='$ac_x_libraries'"
24101esac
24102fi
24103;; #(
24104    *) have_x=yes;;
24105  esac
24106  eval "$ac_cv_have_x"
24107fi # $with_x != no
24108
24109if test "$have_x" != yes; then
24110  { echo "$as_me:$LINENO: result: $have_x" >&5
24111echo "${ECHO_T}$have_x" >&6; }
24112  no_x=yes
24113else
24114  # If each of the values was on the command line, it overrides each guess.
24115  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24116  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24117  # Update the cache value to reflect the command line values.
24118  ac_cv_have_x="have_x=yes\
24119	ac_x_includes='$x_includes'\
24120	ac_x_libraries='$x_libraries'"
24121  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24122echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
24123fi
24124
24125if test "$no_x" = yes; then
24126  # Not all programs may use this symbol, but it does not hurt to define it.
24127
24128cat >>confdefs.h <<\_ACEOF
24129#define X_DISPLAY_MISSING 1
24130_ACEOF
24131
24132  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24133else
24134  if test -n "$x_includes"; then
24135    X_CFLAGS="$X_CFLAGS -I$x_includes"
24136  fi
24137
24138  # It would also be nice to do this for all -L options, not just this one.
24139  if test -n "$x_libraries"; then
24140    X_LIBS="$X_LIBS -L$x_libraries"
24141    # For Solaris; some versions of Sun CC require a space after -R and
24142    # others require no space.  Words are not sufficient . . . .
24143    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24144echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
24145    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24146    ac_xsave_c_werror_flag=$ac_c_werror_flag
24147    ac_c_werror_flag=yes
24148    cat >conftest.$ac_ext <<_ACEOF
24149/* confdefs.h.  */
24150_ACEOF
24151cat confdefs.h >>conftest.$ac_ext
24152cat >>conftest.$ac_ext <<_ACEOF
24153/* end confdefs.h.  */
24154
24155int
24156main ()
24157{
24158
24159  ;
24160  return 0;
24161}
24162_ACEOF
24163rm -f conftest.$ac_objext conftest$ac_exeext
24164if { (ac_try="$ac_link"
24165case "(($ac_try" in
24166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24167  *) ac_try_echo=$ac_try;;
24168esac
24169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24170  (eval "$ac_link") 2>conftest.er1
24171  ac_status=$?
24172  grep -v '^ *+' conftest.er1 >conftest.err
24173  rm -f conftest.er1
24174  cat conftest.err >&5
24175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176  (exit $ac_status); } && {
24177	 test -z "$ac_c_werror_flag" ||
24178	 test ! -s conftest.err
24179       } && test -s conftest$ac_exeext &&
24180       $as_test_x conftest$ac_exeext; then
24181  { echo "$as_me:$LINENO: result: no" >&5
24182echo "${ECHO_T}no" >&6; }
24183       X_LIBS="$X_LIBS -R$x_libraries"
24184else
24185  echo "$as_me: failed program was:" >&5
24186sed 's/^/| /' conftest.$ac_ext >&5
24187
24188	LIBS="$ac_xsave_LIBS -R $x_libraries"
24189       cat >conftest.$ac_ext <<_ACEOF
24190/* confdefs.h.  */
24191_ACEOF
24192cat confdefs.h >>conftest.$ac_ext
24193cat >>conftest.$ac_ext <<_ACEOF
24194/* end confdefs.h.  */
24195
24196int
24197main ()
24198{
24199
24200  ;
24201  return 0;
24202}
24203_ACEOF
24204rm -f conftest.$ac_objext conftest$ac_exeext
24205if { (ac_try="$ac_link"
24206case "(($ac_try" in
24207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208  *) ac_try_echo=$ac_try;;
24209esac
24210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24211  (eval "$ac_link") 2>conftest.er1
24212  ac_status=$?
24213  grep -v '^ *+' conftest.er1 >conftest.err
24214  rm -f conftest.er1
24215  cat conftest.err >&5
24216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217  (exit $ac_status); } && {
24218	 test -z "$ac_c_werror_flag" ||
24219	 test ! -s conftest.err
24220       } && test -s conftest$ac_exeext &&
24221       $as_test_x conftest$ac_exeext; then
24222  { echo "$as_me:$LINENO: result: yes" >&5
24223echo "${ECHO_T}yes" >&6; }
24224	  X_LIBS="$X_LIBS -R $x_libraries"
24225else
24226  echo "$as_me: failed program was:" >&5
24227sed 's/^/| /' conftest.$ac_ext >&5
24228
24229	{ echo "$as_me:$LINENO: result: neither works" >&5
24230echo "${ECHO_T}neither works" >&6; }
24231fi
24232
24233rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24234      conftest$ac_exeext conftest.$ac_ext
24235fi
24236
24237rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24238      conftest$ac_exeext conftest.$ac_ext
24239    ac_c_werror_flag=$ac_xsave_c_werror_flag
24240    LIBS=$ac_xsave_LIBS
24241  fi
24242
24243  # Check for system-dependent libraries X programs must link with.
24244  # Do this before checking for the system-independent R6 libraries
24245  # (-lICE), since we may need -lsocket or whatever for X linking.
24246
24247  if test "$ISC" = yes; then
24248    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24249  else
24250    # Martyn Johnson says this is needed for Ultrix, if the X
24251    # libraries were built with DECnet support.  And Karl Berry says
24252    # the Alpha needs dnet_stub (dnet does not exist).
24253    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24254    cat >conftest.$ac_ext <<_ACEOF
24255/* confdefs.h.  */
24256_ACEOF
24257cat confdefs.h >>conftest.$ac_ext
24258cat >>conftest.$ac_ext <<_ACEOF
24259/* end confdefs.h.  */
24260
24261/* Override any GCC internal prototype to avoid an error.
24262   Use char because int might match the return type of a GCC
24263   builtin and then its argument prototype would still apply.  */
24264#ifdef __cplusplus
24265extern "C"
24266#endif
24267char XOpenDisplay ();
24268int
24269main ()
24270{
24271return XOpenDisplay ();
24272  ;
24273  return 0;
24274}
24275_ACEOF
24276rm -f conftest.$ac_objext conftest$ac_exeext
24277if { (ac_try="$ac_link"
24278case "(($ac_try" in
24279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280  *) ac_try_echo=$ac_try;;
24281esac
24282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283  (eval "$ac_link") 2>conftest.er1
24284  ac_status=$?
24285  grep -v '^ *+' conftest.er1 >conftest.err
24286  rm -f conftest.er1
24287  cat conftest.err >&5
24288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289  (exit $ac_status); } && {
24290	 test -z "$ac_c_werror_flag" ||
24291	 test ! -s conftest.err
24292       } && test -s conftest$ac_exeext &&
24293       $as_test_x conftest$ac_exeext; then
24294  :
24295else
24296  echo "$as_me: failed program was:" >&5
24297sed 's/^/| /' conftest.$ac_ext >&5
24298
24299	{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24300echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
24301if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24302  echo $ECHO_N "(cached) $ECHO_C" >&6
24303else
24304  ac_check_lib_save_LIBS=$LIBS
24305LIBS="-ldnet  $LIBS"
24306cat >conftest.$ac_ext <<_ACEOF
24307/* confdefs.h.  */
24308_ACEOF
24309cat confdefs.h >>conftest.$ac_ext
24310cat >>conftest.$ac_ext <<_ACEOF
24311/* end confdefs.h.  */
24312
24313/* Override any GCC internal prototype to avoid an error.
24314   Use char because int might match the return type of a GCC
24315   builtin and then its argument prototype would still apply.  */
24316#ifdef __cplusplus
24317extern "C"
24318#endif
24319char dnet_ntoa ();
24320int
24321main ()
24322{
24323return dnet_ntoa ();
24324  ;
24325  return 0;
24326}
24327_ACEOF
24328rm -f conftest.$ac_objext conftest$ac_exeext
24329if { (ac_try="$ac_link"
24330case "(($ac_try" in
24331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332  *) ac_try_echo=$ac_try;;
24333esac
24334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24335  (eval "$ac_link") 2>conftest.er1
24336  ac_status=$?
24337  grep -v '^ *+' conftest.er1 >conftest.err
24338  rm -f conftest.er1
24339  cat conftest.err >&5
24340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341  (exit $ac_status); } && {
24342	 test -z "$ac_c_werror_flag" ||
24343	 test ! -s conftest.err
24344       } && test -s conftest$ac_exeext &&
24345       $as_test_x conftest$ac_exeext; then
24346  ac_cv_lib_dnet_dnet_ntoa=yes
24347else
24348  echo "$as_me: failed program was:" >&5
24349sed 's/^/| /' conftest.$ac_ext >&5
24350
24351	ac_cv_lib_dnet_dnet_ntoa=no
24352fi
24353
24354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24355      conftest$ac_exeext conftest.$ac_ext
24356LIBS=$ac_check_lib_save_LIBS
24357fi
24358{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24359echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24360if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24361  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24362fi
24363
24364    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24365      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24366echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
24367if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24368  echo $ECHO_N "(cached) $ECHO_C" >&6
24369else
24370  ac_check_lib_save_LIBS=$LIBS
24371LIBS="-ldnet_stub  $LIBS"
24372cat >conftest.$ac_ext <<_ACEOF
24373/* confdefs.h.  */
24374_ACEOF
24375cat confdefs.h >>conftest.$ac_ext
24376cat >>conftest.$ac_ext <<_ACEOF
24377/* end confdefs.h.  */
24378
24379/* Override any GCC internal prototype to avoid an error.
24380   Use char because int might match the return type of a GCC
24381   builtin and then its argument prototype would still apply.  */
24382#ifdef __cplusplus
24383extern "C"
24384#endif
24385char dnet_ntoa ();
24386int
24387main ()
24388{
24389return dnet_ntoa ();
24390  ;
24391  return 0;
24392}
24393_ACEOF
24394rm -f conftest.$ac_objext conftest$ac_exeext
24395if { (ac_try="$ac_link"
24396case "(($ac_try" in
24397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24398  *) ac_try_echo=$ac_try;;
24399esac
24400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24401  (eval "$ac_link") 2>conftest.er1
24402  ac_status=$?
24403  grep -v '^ *+' conftest.er1 >conftest.err
24404  rm -f conftest.er1
24405  cat conftest.err >&5
24406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407  (exit $ac_status); } && {
24408	 test -z "$ac_c_werror_flag" ||
24409	 test ! -s conftest.err
24410       } && test -s conftest$ac_exeext &&
24411       $as_test_x conftest$ac_exeext; then
24412  ac_cv_lib_dnet_stub_dnet_ntoa=yes
24413else
24414  echo "$as_me: failed program was:" >&5
24415sed 's/^/| /' conftest.$ac_ext >&5
24416
24417	ac_cv_lib_dnet_stub_dnet_ntoa=no
24418fi
24419
24420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24421      conftest$ac_exeext conftest.$ac_ext
24422LIBS=$ac_check_lib_save_LIBS
24423fi
24424{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24425echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24426if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24427  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24428fi
24429
24430    fi
24431fi
24432
24433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24434      conftest$ac_exeext conftest.$ac_ext
24435    LIBS="$ac_xsave_LIBS"
24436
24437    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24438    # to get the SysV transport functions.
24439    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24440    # needs -lnsl.
24441    # The nsl library prevents programs from opening the X display
24442    # on Irix 5.2, according to T.E. Dickey.
24443    # The functions gethostbyname, getservbyname, and inet_addr are
24444    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24445    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
24446echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
24447if test "${ac_cv_func_gethostbyname+set}" = set; then
24448  echo $ECHO_N "(cached) $ECHO_C" >&6
24449else
24450  cat >conftest.$ac_ext <<_ACEOF
24451/* confdefs.h.  */
24452_ACEOF
24453cat confdefs.h >>conftest.$ac_ext
24454cat >>conftest.$ac_ext <<_ACEOF
24455/* end confdefs.h.  */
24456/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24457   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24458#define gethostbyname innocuous_gethostbyname
24459
24460/* System header to define __stub macros and hopefully few prototypes,
24461    which can conflict with char gethostbyname (); below.
24462    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24463    <limits.h> exists even on freestanding compilers.  */
24464
24465#ifdef __STDC__
24466# include <limits.h>
24467#else
24468# include <assert.h>
24469#endif
24470
24471#undef gethostbyname
24472
24473/* Override any GCC internal prototype to avoid an error.
24474   Use char because int might match the return type of a GCC
24475   builtin and then its argument prototype would still apply.  */
24476#ifdef __cplusplus
24477extern "C"
24478#endif
24479char gethostbyname ();
24480/* The GNU C library defines this for functions which it implements
24481    to always fail with ENOSYS.  Some functions are actually named
24482    something starting with __ and the normal name is an alias.  */
24483#if defined __stub_gethostbyname || defined __stub___gethostbyname
24484choke me
24485#endif
24486
24487int
24488main ()
24489{
24490return gethostbyname ();
24491  ;
24492  return 0;
24493}
24494_ACEOF
24495rm -f conftest.$ac_objext conftest$ac_exeext
24496if { (ac_try="$ac_link"
24497case "(($ac_try" in
24498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24499  *) ac_try_echo=$ac_try;;
24500esac
24501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24502  (eval "$ac_link") 2>conftest.er1
24503  ac_status=$?
24504  grep -v '^ *+' conftest.er1 >conftest.err
24505  rm -f conftest.er1
24506  cat conftest.err >&5
24507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508  (exit $ac_status); } && {
24509	 test -z "$ac_c_werror_flag" ||
24510	 test ! -s conftest.err
24511       } && test -s conftest$ac_exeext &&
24512       $as_test_x conftest$ac_exeext; then
24513  ac_cv_func_gethostbyname=yes
24514else
24515  echo "$as_me: failed program was:" >&5
24516sed 's/^/| /' conftest.$ac_ext >&5
24517
24518	ac_cv_func_gethostbyname=no
24519fi
24520
24521rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24522      conftest$ac_exeext conftest.$ac_ext
24523fi
24524{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24525echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
24526
24527    if test $ac_cv_func_gethostbyname = no; then
24528      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24529echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
24530if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24531  echo $ECHO_N "(cached) $ECHO_C" >&6
24532else
24533  ac_check_lib_save_LIBS=$LIBS
24534LIBS="-lnsl  $LIBS"
24535cat >conftest.$ac_ext <<_ACEOF
24536/* confdefs.h.  */
24537_ACEOF
24538cat confdefs.h >>conftest.$ac_ext
24539cat >>conftest.$ac_ext <<_ACEOF
24540/* end confdefs.h.  */
24541
24542/* Override any GCC internal prototype to avoid an error.
24543   Use char because int might match the return type of a GCC
24544   builtin and then its argument prototype would still apply.  */
24545#ifdef __cplusplus
24546extern "C"
24547#endif
24548char gethostbyname ();
24549int
24550main ()
24551{
24552return gethostbyname ();
24553  ;
24554  return 0;
24555}
24556_ACEOF
24557rm -f conftest.$ac_objext conftest$ac_exeext
24558if { (ac_try="$ac_link"
24559case "(($ac_try" in
24560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561  *) ac_try_echo=$ac_try;;
24562esac
24563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564  (eval "$ac_link") 2>conftest.er1
24565  ac_status=$?
24566  grep -v '^ *+' conftest.er1 >conftest.err
24567  rm -f conftest.er1
24568  cat conftest.err >&5
24569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570  (exit $ac_status); } && {
24571	 test -z "$ac_c_werror_flag" ||
24572	 test ! -s conftest.err
24573       } && test -s conftest$ac_exeext &&
24574       $as_test_x conftest$ac_exeext; then
24575  ac_cv_lib_nsl_gethostbyname=yes
24576else
24577  echo "$as_me: failed program was:" >&5
24578sed 's/^/| /' conftest.$ac_ext >&5
24579
24580	ac_cv_lib_nsl_gethostbyname=no
24581fi
24582
24583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24584      conftest$ac_exeext conftest.$ac_ext
24585LIBS=$ac_check_lib_save_LIBS
24586fi
24587{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24588echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
24589if test $ac_cv_lib_nsl_gethostbyname = yes; then
24590  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24591fi
24592
24593      if test $ac_cv_lib_nsl_gethostbyname = no; then
24594	{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24595echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
24596if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24597  echo $ECHO_N "(cached) $ECHO_C" >&6
24598else
24599  ac_check_lib_save_LIBS=$LIBS
24600LIBS="-lbsd  $LIBS"
24601cat >conftest.$ac_ext <<_ACEOF
24602/* confdefs.h.  */
24603_ACEOF
24604cat confdefs.h >>conftest.$ac_ext
24605cat >>conftest.$ac_ext <<_ACEOF
24606/* end confdefs.h.  */
24607
24608/* Override any GCC internal prototype to avoid an error.
24609   Use char because int might match the return type of a GCC
24610   builtin and then its argument prototype would still apply.  */
24611#ifdef __cplusplus
24612extern "C"
24613#endif
24614char gethostbyname ();
24615int
24616main ()
24617{
24618return gethostbyname ();
24619  ;
24620  return 0;
24621}
24622_ACEOF
24623rm -f conftest.$ac_objext conftest$ac_exeext
24624if { (ac_try="$ac_link"
24625case "(($ac_try" in
24626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627  *) ac_try_echo=$ac_try;;
24628esac
24629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630  (eval "$ac_link") 2>conftest.er1
24631  ac_status=$?
24632  grep -v '^ *+' conftest.er1 >conftest.err
24633  rm -f conftest.er1
24634  cat conftest.err >&5
24635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636  (exit $ac_status); } && {
24637	 test -z "$ac_c_werror_flag" ||
24638	 test ! -s conftest.err
24639       } && test -s conftest$ac_exeext &&
24640       $as_test_x conftest$ac_exeext; then
24641  ac_cv_lib_bsd_gethostbyname=yes
24642else
24643  echo "$as_me: failed program was:" >&5
24644sed 's/^/| /' conftest.$ac_ext >&5
24645
24646	ac_cv_lib_bsd_gethostbyname=no
24647fi
24648
24649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24650      conftest$ac_exeext conftest.$ac_ext
24651LIBS=$ac_check_lib_save_LIBS
24652fi
24653{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24654echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
24655if test $ac_cv_lib_bsd_gethostbyname = yes; then
24656  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24657fi
24658
24659      fi
24660    fi
24661
24662    # lieder@skyler.mavd.honeywell.com says without -lsocket,
24663    # socket/setsockopt and other routines are undefined under SCO ODT
24664    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24665    # on later versions), says Simon Leinen: it contains gethostby*
24666    # variants that don't use the name server (or something).  -lsocket
24667    # must be given before -lnsl if both are needed.  We assume that
24668    # if connect needs -lnsl, so does gethostbyname.
24669    { echo "$as_me:$LINENO: checking for connect" >&5
24670echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
24671if test "${ac_cv_func_connect+set}" = set; then
24672  echo $ECHO_N "(cached) $ECHO_C" >&6
24673else
24674  cat >conftest.$ac_ext <<_ACEOF
24675/* confdefs.h.  */
24676_ACEOF
24677cat confdefs.h >>conftest.$ac_ext
24678cat >>conftest.$ac_ext <<_ACEOF
24679/* end confdefs.h.  */
24680/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24681   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24682#define connect innocuous_connect
24683
24684/* System header to define __stub macros and hopefully few prototypes,
24685    which can conflict with char connect (); below.
24686    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24687    <limits.h> exists even on freestanding compilers.  */
24688
24689#ifdef __STDC__
24690# include <limits.h>
24691#else
24692# include <assert.h>
24693#endif
24694
24695#undef connect
24696
24697/* Override any GCC internal prototype to avoid an error.
24698   Use char because int might match the return type of a GCC
24699   builtin and then its argument prototype would still apply.  */
24700#ifdef __cplusplus
24701extern "C"
24702#endif
24703char connect ();
24704/* The GNU C library defines this for functions which it implements
24705    to always fail with ENOSYS.  Some functions are actually named
24706    something starting with __ and the normal name is an alias.  */
24707#if defined __stub_connect || defined __stub___connect
24708choke me
24709#endif
24710
24711int
24712main ()
24713{
24714return connect ();
24715  ;
24716  return 0;
24717}
24718_ACEOF
24719rm -f conftest.$ac_objext conftest$ac_exeext
24720if { (ac_try="$ac_link"
24721case "(($ac_try" in
24722  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723  *) ac_try_echo=$ac_try;;
24724esac
24725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24726  (eval "$ac_link") 2>conftest.er1
24727  ac_status=$?
24728  grep -v '^ *+' conftest.er1 >conftest.err
24729  rm -f conftest.er1
24730  cat conftest.err >&5
24731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24732  (exit $ac_status); } && {
24733	 test -z "$ac_c_werror_flag" ||
24734	 test ! -s conftest.err
24735       } && test -s conftest$ac_exeext &&
24736       $as_test_x conftest$ac_exeext; then
24737  ac_cv_func_connect=yes
24738else
24739  echo "$as_me: failed program was:" >&5
24740sed 's/^/| /' conftest.$ac_ext >&5
24741
24742	ac_cv_func_connect=no
24743fi
24744
24745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24746      conftest$ac_exeext conftest.$ac_ext
24747fi
24748{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24749echo "${ECHO_T}$ac_cv_func_connect" >&6; }
24750
24751    if test $ac_cv_func_connect = no; then
24752      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24753echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
24754if test "${ac_cv_lib_socket_connect+set}" = set; then
24755  echo $ECHO_N "(cached) $ECHO_C" >&6
24756else
24757  ac_check_lib_save_LIBS=$LIBS
24758LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24759cat >conftest.$ac_ext <<_ACEOF
24760/* confdefs.h.  */
24761_ACEOF
24762cat confdefs.h >>conftest.$ac_ext
24763cat >>conftest.$ac_ext <<_ACEOF
24764/* end confdefs.h.  */
24765
24766/* Override any GCC internal prototype to avoid an error.
24767   Use char because int might match the return type of a GCC
24768   builtin and then its argument prototype would still apply.  */
24769#ifdef __cplusplus
24770extern "C"
24771#endif
24772char connect ();
24773int
24774main ()
24775{
24776return connect ();
24777  ;
24778  return 0;
24779}
24780_ACEOF
24781rm -f conftest.$ac_objext conftest$ac_exeext
24782if { (ac_try="$ac_link"
24783case "(($ac_try" in
24784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785  *) ac_try_echo=$ac_try;;
24786esac
24787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788  (eval "$ac_link") 2>conftest.er1
24789  ac_status=$?
24790  grep -v '^ *+' conftest.er1 >conftest.err
24791  rm -f conftest.er1
24792  cat conftest.err >&5
24793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794  (exit $ac_status); } && {
24795	 test -z "$ac_c_werror_flag" ||
24796	 test ! -s conftest.err
24797       } && test -s conftest$ac_exeext &&
24798       $as_test_x conftest$ac_exeext; then
24799  ac_cv_lib_socket_connect=yes
24800else
24801  echo "$as_me: failed program was:" >&5
24802sed 's/^/| /' conftest.$ac_ext >&5
24803
24804	ac_cv_lib_socket_connect=no
24805fi
24806
24807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24808      conftest$ac_exeext conftest.$ac_ext
24809LIBS=$ac_check_lib_save_LIBS
24810fi
24811{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24812echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
24813if test $ac_cv_lib_socket_connect = yes; then
24814  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24815fi
24816
24817    fi
24818
24819    # Guillermo Gomez says -lposix is necessary on A/UX.
24820    { echo "$as_me:$LINENO: checking for remove" >&5
24821echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
24822if test "${ac_cv_func_remove+set}" = set; then
24823  echo $ECHO_N "(cached) $ECHO_C" >&6
24824else
24825  cat >conftest.$ac_ext <<_ACEOF
24826/* confdefs.h.  */
24827_ACEOF
24828cat confdefs.h >>conftest.$ac_ext
24829cat >>conftest.$ac_ext <<_ACEOF
24830/* end confdefs.h.  */
24831/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24832   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24833#define remove innocuous_remove
24834
24835/* System header to define __stub macros and hopefully few prototypes,
24836    which can conflict with char remove (); below.
24837    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24838    <limits.h> exists even on freestanding compilers.  */
24839
24840#ifdef __STDC__
24841# include <limits.h>
24842#else
24843# include <assert.h>
24844#endif
24845
24846#undef remove
24847
24848/* Override any GCC internal prototype to avoid an error.
24849   Use char because int might match the return type of a GCC
24850   builtin and then its argument prototype would still apply.  */
24851#ifdef __cplusplus
24852extern "C"
24853#endif
24854char remove ();
24855/* The GNU C library defines this for functions which it implements
24856    to always fail with ENOSYS.  Some functions are actually named
24857    something starting with __ and the normal name is an alias.  */
24858#if defined __stub_remove || defined __stub___remove
24859choke me
24860#endif
24861
24862int
24863main ()
24864{
24865return remove ();
24866  ;
24867  return 0;
24868}
24869_ACEOF
24870rm -f conftest.$ac_objext conftest$ac_exeext
24871if { (ac_try="$ac_link"
24872case "(($ac_try" in
24873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874  *) ac_try_echo=$ac_try;;
24875esac
24876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877  (eval "$ac_link") 2>conftest.er1
24878  ac_status=$?
24879  grep -v '^ *+' conftest.er1 >conftest.err
24880  rm -f conftest.er1
24881  cat conftest.err >&5
24882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883  (exit $ac_status); } && {
24884	 test -z "$ac_c_werror_flag" ||
24885	 test ! -s conftest.err
24886       } && test -s conftest$ac_exeext &&
24887       $as_test_x conftest$ac_exeext; then
24888  ac_cv_func_remove=yes
24889else
24890  echo "$as_me: failed program was:" >&5
24891sed 's/^/| /' conftest.$ac_ext >&5
24892
24893	ac_cv_func_remove=no
24894fi
24895
24896rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24897      conftest$ac_exeext conftest.$ac_ext
24898fi
24899{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24900echo "${ECHO_T}$ac_cv_func_remove" >&6; }
24901
24902    if test $ac_cv_func_remove = no; then
24903      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24904echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
24905if test "${ac_cv_lib_posix_remove+set}" = set; then
24906  echo $ECHO_N "(cached) $ECHO_C" >&6
24907else
24908  ac_check_lib_save_LIBS=$LIBS
24909LIBS="-lposix  $LIBS"
24910cat >conftest.$ac_ext <<_ACEOF
24911/* confdefs.h.  */
24912_ACEOF
24913cat confdefs.h >>conftest.$ac_ext
24914cat >>conftest.$ac_ext <<_ACEOF
24915/* end confdefs.h.  */
24916
24917/* Override any GCC internal prototype to avoid an error.
24918   Use char because int might match the return type of a GCC
24919   builtin and then its argument prototype would still apply.  */
24920#ifdef __cplusplus
24921extern "C"
24922#endif
24923char remove ();
24924int
24925main ()
24926{
24927return remove ();
24928  ;
24929  return 0;
24930}
24931_ACEOF
24932rm -f conftest.$ac_objext conftest$ac_exeext
24933if { (ac_try="$ac_link"
24934case "(($ac_try" in
24935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24936  *) ac_try_echo=$ac_try;;
24937esac
24938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24939  (eval "$ac_link") 2>conftest.er1
24940  ac_status=$?
24941  grep -v '^ *+' conftest.er1 >conftest.err
24942  rm -f conftest.er1
24943  cat conftest.err >&5
24944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945  (exit $ac_status); } && {
24946	 test -z "$ac_c_werror_flag" ||
24947	 test ! -s conftest.err
24948       } && test -s conftest$ac_exeext &&
24949       $as_test_x conftest$ac_exeext; then
24950  ac_cv_lib_posix_remove=yes
24951else
24952  echo "$as_me: failed program was:" >&5
24953sed 's/^/| /' conftest.$ac_ext >&5
24954
24955	ac_cv_lib_posix_remove=no
24956fi
24957
24958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24959      conftest$ac_exeext conftest.$ac_ext
24960LIBS=$ac_check_lib_save_LIBS
24961fi
24962{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24963echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24964if test $ac_cv_lib_posix_remove = yes; then
24965  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24966fi
24967
24968    fi
24969
24970    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24971    { echo "$as_me:$LINENO: checking for shmat" >&5
24972echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24973if test "${ac_cv_func_shmat+set}" = set; then
24974  echo $ECHO_N "(cached) $ECHO_C" >&6
24975else
24976  cat >conftest.$ac_ext <<_ACEOF
24977/* confdefs.h.  */
24978_ACEOF
24979cat confdefs.h >>conftest.$ac_ext
24980cat >>conftest.$ac_ext <<_ACEOF
24981/* end confdefs.h.  */
24982/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24983   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24984#define shmat innocuous_shmat
24985
24986/* System header to define __stub macros and hopefully few prototypes,
24987    which can conflict with char shmat (); below.
24988    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24989    <limits.h> exists even on freestanding compilers.  */
24990
24991#ifdef __STDC__
24992# include <limits.h>
24993#else
24994# include <assert.h>
24995#endif
24996
24997#undef shmat
24998
24999/* Override any GCC internal prototype to avoid an error.
25000   Use char because int might match the return type of a GCC
25001   builtin and then its argument prototype would still apply.  */
25002#ifdef __cplusplus
25003extern "C"
25004#endif
25005char shmat ();
25006/* The GNU C library defines this for functions which it implements
25007    to always fail with ENOSYS.  Some functions are actually named
25008    something starting with __ and the normal name is an alias.  */
25009#if defined __stub_shmat || defined __stub___shmat
25010choke me
25011#endif
25012
25013int
25014main ()
25015{
25016return shmat ();
25017  ;
25018  return 0;
25019}
25020_ACEOF
25021rm -f conftest.$ac_objext conftest$ac_exeext
25022if { (ac_try="$ac_link"
25023case "(($ac_try" in
25024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025  *) ac_try_echo=$ac_try;;
25026esac
25027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028  (eval "$ac_link") 2>conftest.er1
25029  ac_status=$?
25030  grep -v '^ *+' conftest.er1 >conftest.err
25031  rm -f conftest.er1
25032  cat conftest.err >&5
25033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034  (exit $ac_status); } && {
25035	 test -z "$ac_c_werror_flag" ||
25036	 test ! -s conftest.err
25037       } && test -s conftest$ac_exeext &&
25038       $as_test_x conftest$ac_exeext; then
25039  ac_cv_func_shmat=yes
25040else
25041  echo "$as_me: failed program was:" >&5
25042sed 's/^/| /' conftest.$ac_ext >&5
25043
25044	ac_cv_func_shmat=no
25045fi
25046
25047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25048      conftest$ac_exeext conftest.$ac_ext
25049fi
25050{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25051echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
25052
25053    if test $ac_cv_func_shmat = no; then
25054      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25055echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
25056if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25057  echo $ECHO_N "(cached) $ECHO_C" >&6
25058else
25059  ac_check_lib_save_LIBS=$LIBS
25060LIBS="-lipc  $LIBS"
25061cat >conftest.$ac_ext <<_ACEOF
25062/* confdefs.h.  */
25063_ACEOF
25064cat confdefs.h >>conftest.$ac_ext
25065cat >>conftest.$ac_ext <<_ACEOF
25066/* end confdefs.h.  */
25067
25068/* Override any GCC internal prototype to avoid an error.
25069   Use char because int might match the return type of a GCC
25070   builtin and then its argument prototype would still apply.  */
25071#ifdef __cplusplus
25072extern "C"
25073#endif
25074char shmat ();
25075int
25076main ()
25077{
25078return shmat ();
25079  ;
25080  return 0;
25081}
25082_ACEOF
25083rm -f conftest.$ac_objext conftest$ac_exeext
25084if { (ac_try="$ac_link"
25085case "(($ac_try" in
25086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25087  *) ac_try_echo=$ac_try;;
25088esac
25089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25090  (eval "$ac_link") 2>conftest.er1
25091  ac_status=$?
25092  grep -v '^ *+' conftest.er1 >conftest.err
25093  rm -f conftest.er1
25094  cat conftest.err >&5
25095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096  (exit $ac_status); } && {
25097	 test -z "$ac_c_werror_flag" ||
25098	 test ! -s conftest.err
25099       } && test -s conftest$ac_exeext &&
25100       $as_test_x conftest$ac_exeext; then
25101  ac_cv_lib_ipc_shmat=yes
25102else
25103  echo "$as_me: failed program was:" >&5
25104sed 's/^/| /' conftest.$ac_ext >&5
25105
25106	ac_cv_lib_ipc_shmat=no
25107fi
25108
25109rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25110      conftest$ac_exeext conftest.$ac_ext
25111LIBS=$ac_check_lib_save_LIBS
25112fi
25113{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25114echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
25115if test $ac_cv_lib_ipc_shmat = yes; then
25116  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25117fi
25118
25119    fi
25120  fi
25121
25122  # Check for libraries that X11R6 Xt/Xaw programs need.
25123  ac_save_LDFLAGS=$LDFLAGS
25124  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25125  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25126  # check for ICE first), but we must link in the order -lSM -lICE or
25127  # we get undefined symbols.  So assume we have SM if we have ICE.
25128  # These have to be linked with before -lX11, unlike the other
25129  # libraries we check for below, so use a different variable.
25130  # John Interrante, Karl Berry
25131  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25132echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
25133if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25134  echo $ECHO_N "(cached) $ECHO_C" >&6
25135else
25136  ac_check_lib_save_LIBS=$LIBS
25137LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25138cat >conftest.$ac_ext <<_ACEOF
25139/* confdefs.h.  */
25140_ACEOF
25141cat confdefs.h >>conftest.$ac_ext
25142cat >>conftest.$ac_ext <<_ACEOF
25143/* end confdefs.h.  */
25144
25145/* Override any GCC internal prototype to avoid an error.
25146   Use char because int might match the return type of a GCC
25147   builtin and then its argument prototype would still apply.  */
25148#ifdef __cplusplus
25149extern "C"
25150#endif
25151char IceConnectionNumber ();
25152int
25153main ()
25154{
25155return IceConnectionNumber ();
25156  ;
25157  return 0;
25158}
25159_ACEOF
25160rm -f conftest.$ac_objext conftest$ac_exeext
25161if { (ac_try="$ac_link"
25162case "(($ac_try" in
25163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164  *) ac_try_echo=$ac_try;;
25165esac
25166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167  (eval "$ac_link") 2>conftest.er1
25168  ac_status=$?
25169  grep -v '^ *+' conftest.er1 >conftest.err
25170  rm -f conftest.er1
25171  cat conftest.err >&5
25172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173  (exit $ac_status); } && {
25174	 test -z "$ac_c_werror_flag" ||
25175	 test ! -s conftest.err
25176       } && test -s conftest$ac_exeext &&
25177       $as_test_x conftest$ac_exeext; then
25178  ac_cv_lib_ICE_IceConnectionNumber=yes
25179else
25180  echo "$as_me: failed program was:" >&5
25181sed 's/^/| /' conftest.$ac_ext >&5
25182
25183	ac_cv_lib_ICE_IceConnectionNumber=no
25184fi
25185
25186rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25187      conftest$ac_exeext conftest.$ac_ext
25188LIBS=$ac_check_lib_save_LIBS
25189fi
25190{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25191echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25192if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25193  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25194fi
25195
25196  LDFLAGS=$ac_save_LDFLAGS
25197
25198fi
25199
25200    if test "$no_x" = yes; then
25201        { { echo "$as_me:$LINENO: error: GTK+ peers requested but no X library available" >&5
25202echo "$as_me: error: GTK+ peers requested but no X library available" >&2;}
25203   { (exit 1); exit 1; }; }
25204    fi
25205        { echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
25206echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6; }
25207if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
25208  echo $ECHO_N "(cached) $ECHO_C" >&6
25209else
25210  ac_check_lib_save_LIBS=$LIBS
25211LIBS="-lXtst ${X_LIBS} $LIBS"
25212cat >conftest.$ac_ext <<_ACEOF
25213/* confdefs.h.  */
25214_ACEOF
25215cat confdefs.h >>conftest.$ac_ext
25216cat >>conftest.$ac_ext <<_ACEOF
25217/* end confdefs.h.  */
25218
25219/* Override any GCC internal prototype to avoid an error.
25220   Use char because int might match the return type of a GCC
25221   builtin and then its argument prototype would still apply.  */
25222#ifdef __cplusplus
25223extern "C"
25224#endif
25225char XTestQueryExtension ();
25226int
25227main ()
25228{
25229return XTestQueryExtension ();
25230  ;
25231  return 0;
25232}
25233_ACEOF
25234rm -f conftest.$ac_objext conftest$ac_exeext
25235if { (ac_try="$ac_link"
25236case "(($ac_try" in
25237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25238  *) ac_try_echo=$ac_try;;
25239esac
25240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25241  (eval "$ac_link") 2>conftest.er1
25242  ac_status=$?
25243  grep -v '^ *+' conftest.er1 >conftest.err
25244  rm -f conftest.er1
25245  cat conftest.err >&5
25246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247  (exit $ac_status); } && {
25248	 test -z "$ac_c_werror_flag" ||
25249	 test ! -s conftest.err
25250       } && test -s conftest$ac_exeext &&
25251       $as_test_x conftest$ac_exeext; then
25252  ac_cv_lib_Xtst_XTestQueryExtension=yes
25253else
25254  echo "$as_me: failed program was:" >&5
25255sed 's/^/| /' conftest.$ac_ext >&5
25256
25257	ac_cv_lib_Xtst_XTestQueryExtension=no
25258fi
25259
25260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25261      conftest$ac_exeext conftest.$ac_ext
25262LIBS=$ac_check_lib_save_LIBS
25263fi
25264{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
25265echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
25266if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
25267  true
25268else
25269  { { echo "$as_me:$LINENO: error: libXtst NOT found, required for GdkRobot" >&5
25270echo "$as_me: error: libXtst NOT found, required for GdkRobot" >&2;}
25271   { (exit 1); exit 1; }; }
25272fi
25273
25274
25275  succeeded=no
25276
25277  if test -z "$PKG_CONFIG"; then
25278    # Extract the first word of "pkg-config", so it can be a program name with args.
25279set dummy pkg-config; ac_word=$2
25280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25282if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25283  echo $ECHO_N "(cached) $ECHO_C" >&6
25284else
25285  case $PKG_CONFIG in
25286  [\\/]* | ?:[\\/]*)
25287  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25288  ;;
25289  *)
25290  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25291for as_dir in $PATH
25292do
25293  IFS=$as_save_IFS
25294  test -z "$as_dir" && as_dir=.
25295  for ac_exec_ext in '' $ac_executable_extensions; do
25296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25297    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25299    break 2
25300  fi
25301done
25302done
25303IFS=$as_save_IFS
25304
25305  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25306  ;;
25307esac
25308fi
25309PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25310if test -n "$PKG_CONFIG"; then
25311  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25312echo "${ECHO_T}$PKG_CONFIG" >&6; }
25313else
25314  { echo "$as_me:$LINENO: result: no" >&5
25315echo "${ECHO_T}no" >&6; }
25316fi
25317
25318
25319  fi
25320
25321  if test "$PKG_CONFIG" = "no" ; then
25322     echo "*** The pkg-config script could not be found. Make sure it is"
25323     echo "*** in your path, or set the PKG_CONFIG environment variable"
25324     echo "*** to the full path to pkg-config."
25325     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25326  else
25327     PKG_CONFIG_MIN_VERSION=0.9.0
25328     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25329        { echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
25330echo $ECHO_N "checking for gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... $ECHO_C" >&6; }
25331
25332        if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
25333            { echo "$as_me:$LINENO: result: yes" >&5
25334echo "${ECHO_T}yes" >&6; }
25335            succeeded=yes
25336
25337            { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
25338echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
25339            GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
25340            { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
25341echo "${ECHO_T}$GTK_CFLAGS" >&6; }
25342
25343            { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
25344echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
25345            GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
25346            { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
25347echo "${ECHO_T}$GTK_LIBS" >&6; }
25348        else
25349            GTK_CFLAGS=""
25350            GTK_LIBS=""
25351            ## If we have a custom action on failure, don't print errors, but
25352            ## do set a variable so people can do so.
25353            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
25354            echo $GTK_PKG_ERRORS
25355        fi
25356
25357
25358
25359     else
25360        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25361        echo "*** See http://www.freedesktop.org/software/pkgconfig"
25362     fi
25363  fi
25364
25365  if test $succeeded = yes; then
25366     :
25367  else
25368     { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4 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
25369echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4 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;}
25370   { (exit 1); exit 1; }; }
25371  fi
25372
25373
25374    if test "x${enable_gtk_cairo}" = xyes; then
25375
25376  succeeded=no
25377
25378  if test -z "$PKG_CONFIG"; then
25379    # Extract the first word of "pkg-config", so it can be a program name with args.
25380set dummy pkg-config; ac_word=$2
25381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25383if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25384  echo $ECHO_N "(cached) $ECHO_C" >&6
25385else
25386  case $PKG_CONFIG in
25387  [\\/]* | ?:[\\/]*)
25388  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25389  ;;
25390  *)
25391  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25392for as_dir in $PATH
25393do
25394  IFS=$as_save_IFS
25395  test -z "$as_dir" && as_dir=.
25396  for ac_exec_ext in '' $ac_executable_extensions; do
25397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25398    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25400    break 2
25401  fi
25402done
25403done
25404IFS=$as_save_IFS
25405
25406  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25407  ;;
25408esac
25409fi
25410PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25411if test -n "$PKG_CONFIG"; then
25412  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25413echo "${ECHO_T}$PKG_CONFIG" >&6; }
25414else
25415  { echo "$as_me:$LINENO: result: no" >&5
25416echo "${ECHO_T}no" >&6; }
25417fi
25418
25419
25420  fi
25421
25422  if test "$PKG_CONFIG" = "no" ; then
25423     echo "*** The pkg-config script could not be found. Make sure it is"
25424     echo "*** in your path, or set the PKG_CONFIG environment variable"
25425     echo "*** to the full path to pkg-config."
25426     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25427  else
25428     PKG_CONFIG_MIN_VERSION=0.9.0
25429     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25430        { echo "$as_me:$LINENO: checking for cairo >= 0.5.0" >&5
25431echo $ECHO_N "checking for cairo >= 0.5.0... $ECHO_C" >&6; }
25432
25433        if $PKG_CONFIG --exists "cairo >= 0.5.0" ; then
25434            { echo "$as_me:$LINENO: result: yes" >&5
25435echo "${ECHO_T}yes" >&6; }
25436            succeeded=yes
25437
25438            { echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
25439echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6; }
25440            CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 0.5.0"`
25441            { echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
25442echo "${ECHO_T}$CAIRO_CFLAGS" >&6; }
25443
25444            { echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
25445echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6; }
25446            CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 0.5.0"`
25447            { echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
25448echo "${ECHO_T}$CAIRO_LIBS" >&6; }
25449        else
25450            CAIRO_CFLAGS=""
25451            CAIRO_LIBS=""
25452            ## If we have a custom action on failure, don't print errors, but
25453            ## do set a variable so people can do so.
25454            CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 0.5.0"`
25455            echo $CAIRO_PKG_ERRORS
25456        fi
25457
25458
25459
25460     else
25461        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25462        echo "*** See http://www.freedesktop.org/software/pkgconfig"
25463     fi
25464  fi
25465
25466  if test $succeeded = yes; then
25467     :
25468  else
25469     { { echo "$as_me:$LINENO: error: Library requirements (cairo >= 0.5.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
25470echo "$as_me: error: Library requirements (cairo >= 0.5.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;}
25471   { (exit 1); exit 1; }; }
25472  fi
25473
25474    fi
25475
25476
25477  succeeded=no
25478
25479  if test -z "$PKG_CONFIG"; then
25480    # Extract the first word of "pkg-config", so it can be a program name with args.
25481set dummy pkg-config; ac_word=$2
25482{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25484if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25485  echo $ECHO_N "(cached) $ECHO_C" >&6
25486else
25487  case $PKG_CONFIG in
25488  [\\/]* | ?:[\\/]*)
25489  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25490  ;;
25491  *)
25492  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25493for as_dir in $PATH
25494do
25495  IFS=$as_save_IFS
25496  test -z "$as_dir" && as_dir=.
25497  for ac_exec_ext in '' $ac_executable_extensions; do
25498  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25499    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25501    break 2
25502  fi
25503done
25504done
25505IFS=$as_save_IFS
25506
25507  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25508  ;;
25509esac
25510fi
25511PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25512if test -n "$PKG_CONFIG"; then
25513  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25514echo "${ECHO_T}$PKG_CONFIG" >&6; }
25515else
25516  { echo "$as_me:$LINENO: result: no" >&5
25517echo "${ECHO_T}no" >&6; }
25518fi
25519
25520
25521  fi
25522
25523  if test "$PKG_CONFIG" = "no" ; then
25524     echo "*** The pkg-config script could not be found. Make sure it is"
25525     echo "*** in your path, or set the PKG_CONFIG environment variable"
25526     echo "*** to the full path to pkg-config."
25527     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25528  else
25529     PKG_CONFIG_MIN_VERSION=0.9.0
25530     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25531        { echo "$as_me:$LINENO: checking for pangoft2" >&5
25532echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6; }
25533
25534        if $PKG_CONFIG --exists "pangoft2" ; then
25535            { echo "$as_me:$LINENO: result: yes" >&5
25536echo "${ECHO_T}yes" >&6; }
25537            succeeded=yes
25538
25539            { echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25540echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6; }
25541            PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25542            { echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25543echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6; }
25544
25545            { echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25546echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6; }
25547            PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25548            { echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25549echo "${ECHO_T}$PANGOFT2_LIBS" >&6; }
25550        else
25551            PANGOFT2_CFLAGS=""
25552            PANGOFT2_LIBS=""
25553            ## If we have a custom action on failure, don't print errors, but
25554            ## do set a variable so people can do so.
25555            PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25556            echo $PANGOFT2_PKG_ERRORS
25557        fi
25558
25559
25560
25561     else
25562        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25563        echo "*** See http://www.freedesktop.org/software/pkgconfig"
25564     fi
25565  fi
25566
25567  if test $succeeded = yes; then
25568     :
25569  else
25570     { { 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
25571echo "$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;}
25572   { (exit 1); exit 1; }; }
25573  fi
25574
25575
25576  succeeded=no
25577
25578  if test -z "$PKG_CONFIG"; then
25579    # Extract the first word of "pkg-config", so it can be a program name with args.
25580set dummy pkg-config; ac_word=$2
25581{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25583if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25584  echo $ECHO_N "(cached) $ECHO_C" >&6
25585else
25586  case $PKG_CONFIG in
25587  [\\/]* | ?:[\\/]*)
25588  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25589  ;;
25590  *)
25591  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25592for as_dir in $PATH
25593do
25594  IFS=$as_save_IFS
25595  test -z "$as_dir" && as_dir=.
25596  for ac_exec_ext in '' $ac_executable_extensions; do
25597  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25598    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25600    break 2
25601  fi
25602done
25603done
25604IFS=$as_save_IFS
25605
25606  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25607  ;;
25608esac
25609fi
25610PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25611if test -n "$PKG_CONFIG"; then
25612  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25613echo "${ECHO_T}$PKG_CONFIG" >&6; }
25614else
25615  { echo "$as_me:$LINENO: result: no" >&5
25616echo "${ECHO_T}no" >&6; }
25617fi
25618
25619
25620  fi
25621
25622  if test "$PKG_CONFIG" = "no" ; then
25623     echo "*** The pkg-config script could not be found. Make sure it is"
25624     echo "*** in your path, or set the PKG_CONFIG environment variable"
25625     echo "*** to the full path to pkg-config."
25626     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25627  else
25628     PKG_CONFIG_MIN_VERSION=0.9.0
25629     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25630        { echo "$as_me:$LINENO: checking for freetype2" >&5
25631echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
25632
25633        if $PKG_CONFIG --exists "freetype2" ; then
25634            { echo "$as_me:$LINENO: result: yes" >&5
25635echo "${ECHO_T}yes" >&6; }
25636            succeeded=yes
25637
25638            { echo "$as_me:$LINENO: checking FREETYPE2_CFLAGS" >&5
25639echo $ECHO_N "checking FREETYPE2_CFLAGS... $ECHO_C" >&6; }
25640            FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
25641            { echo "$as_me:$LINENO: result: $FREETYPE2_CFLAGS" >&5
25642echo "${ECHO_T}$FREETYPE2_CFLAGS" >&6; }
25643
25644            { echo "$as_me:$LINENO: checking FREETYPE2_LIBS" >&5
25645echo $ECHO_N "checking FREETYPE2_LIBS... $ECHO_C" >&6; }
25646            FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
25647            { echo "$as_me:$LINENO: result: $FREETYPE2_LIBS" >&5
25648echo "${ECHO_T}$FREETYPE2_LIBS" >&6; }
25649        else
25650            FREETYPE2_CFLAGS=""
25651            FREETYPE2_LIBS=""
25652            ## If we have a custom action on failure, don't print errors, but
25653            ## do set a variable so people can do so.
25654            FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
25655            echo $FREETYPE2_PKG_ERRORS
25656        fi
25657
25658
25659
25660     else
25661        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25662        echo "*** See http://www.freedesktop.org/software/pkgconfig"
25663     fi
25664  fi
25665
25666  if test $succeeded = yes; then
25667     :
25668  else
25669     { { 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
25670echo "$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;}
25671   { (exit 1); exit 1; }; }
25672  fi
25673
25674
25675
25676
25677
25678
25679
25680
25681
25682
25683  fi
25684
25685    if test "x${COMPILE_QT_PEER}" = 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.
25691set dummy pkg-config; ac_word=$2
25692{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25694if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25695  echo $ECHO_N "(cached) $ECHO_C" >&6
25696else
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
25703for as_dir in $PATH
25704do
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
25713done
25714done
25715IFS=$as_save_IFS
25716
25717  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25718  ;;
25719esac
25720fi
25721PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25722if test -n "$PKG_CONFIG"; then
25723  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25724echo "${ECHO_T}$PKG_CONFIG" >&6; }
25725else
25726  { echo "$as_me:$LINENO: result: no" >&5
25727echo "${ECHO_T}no" >&6; }
25728fi
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 QtGui >= 4.0.1" >&5
25742echo $ECHO_N "checking for QtGui >= 4.0.1... $ECHO_C" >&6; }
25743
25744        if $PKG_CONFIG --exists "QtGui >= 4.0.1" ; then
25745            { echo "$as_me:$LINENO: result: yes" >&5
25746echo "${ECHO_T}yes" >&6; }
25747            succeeded=yes
25748
25749            { echo "$as_me:$LINENO: checking QT_CFLAGS" >&5
25750echo $ECHO_N "checking QT_CFLAGS... $ECHO_C" >&6; }
25751            QT_CFLAGS=`$PKG_CONFIG --cflags "QtGui >= 4.0.1"`
25752            { echo "$as_me:$LINENO: result: $QT_CFLAGS" >&5
25753echo "${ECHO_T}$QT_CFLAGS" >&6; }
25754
25755            { echo "$as_me:$LINENO: checking QT_LIBS" >&5
25756echo $ECHO_N "checking QT_LIBS... $ECHO_C" >&6; }
25757            QT_LIBS=`$PKG_CONFIG --libs "QtGui >= 4.0.1"`
25758            { echo "$as_me:$LINENO: result: $QT_LIBS" >&5
25759echo "${ECHO_T}$QT_LIBS" >&6; }
25760        else
25761            QT_CFLAGS=""
25762            QT_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            QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtGui >= 4.0.1"`
25766
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     HAVE_QT4="yes"
25779  else
25780     HAVE_QT4="no"
25781  fi
25782
25783    if test "x$HAVE_QT4" = "xyes"; then
25784                  QT_INCLUDE_DIR=$($PKG_CONFIG --variable=includedir QtGui)
25785      EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
25786      as_ac_File=`echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
25787{ echo "$as_me:$LINENO: checking for $QT_INCLUDE_DIR/QWidget" >&5
25788echo $ECHO_N "checking for $QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6; }
25789if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
25790  echo $ECHO_N "(cached) $ECHO_C" >&6
25791else
25792  test "$cross_compiling" = yes &&
25793  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25794echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25795   { (exit 1); exit 1; }; }
25796if test -r "$QT_INCLUDE_DIR/QWidget"; then
25797  eval "$as_ac_File=yes"
25798else
25799  eval "$as_ac_File=no"
25800fi
25801fi
25802ac_res=`eval echo '${'$as_ac_File'}'`
25803	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25804echo "${ECHO_T}$ac_res" >&6; }
25805if test `eval echo '${'$as_ac_File'}'` = yes; then
25806  { echo "$as_me:$LINENO: No extra QT_INCLUDE_DIR needed" >&5
25807echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
25808else
25809  as_ac_File=`echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
25810{ echo "$as_me:$LINENO: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
25811echo $ECHO_N "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... $ECHO_C" >&6; }
25812if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
25813  echo $ECHO_N "(cached) $ECHO_C" >&6
25814else
25815  test "$cross_compiling" = yes &&
25816  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
25817echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
25818   { (exit 1); exit 1; }; }
25819if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
25820  eval "$as_ac_File=yes"
25821else
25822  eval "$as_ac_File=no"
25823fi
25824fi
25825ac_res=`eval echo '${'$as_ac_File'}'`
25826	       { echo "$as_me:$LINENO: result: $ac_res" >&5
25827echo "${ECHO_T}$ac_res" >&6; }
25828if test `eval echo '${'$as_ac_File'}'` = yes; then
25829  QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
25830else
25831  { echo "$as_me:$LINENO: WARNING: QWidget not found" >&5
25832echo "$as_me: WARNING: QWidget not found" >&2;}
25833fi
25834
25835fi
25836
25837	# Extract the first word of "moc", so it can be a program name with args.
25838set dummy moc; ac_word=$2
25839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25841if test "${ac_cv_prog_MOC+set}" = set; then
25842  echo $ECHO_N "(cached) $ECHO_C" >&6
25843else
25844  if test -n "$MOC"; then
25845  ac_cv_prog_MOC="$MOC" # Let the user override the test.
25846else
25847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25848for as_dir in $PATH
25849do
25850  IFS=$as_save_IFS
25851  test -z "$as_dir" && as_dir=.
25852  for ac_exec_ext in '' $ac_executable_extensions; do
25853  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25854    ac_cv_prog_MOC="moc"
25855    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25856    break 2
25857  fi
25858done
25859done
25860IFS=$as_save_IFS
25861
25862fi
25863fi
25864MOC=$ac_cv_prog_MOC
25865if test -n "$MOC"; then
25866  { echo "$as_me:$LINENO: result: $MOC" >&5
25867echo "${ECHO_T}$MOC" >&6; }
25868else
25869  { echo "$as_me:$LINENO: result: no" >&5
25870echo "${ECHO_T}no" >&6; }
25871fi
25872
25873
25874    fi
25875    if test "x$HAVE_QT4" = "xno"; then
25876      { echo "$as_me:$LINENO: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
25877echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
25878      case "$host_os" in
25879  	darwin*)
25880
25881# Check whether --with-qt4dir was given.
25882if test "${with_qt4dir+set}" = set; then
25883  withval=$with_qt4dir; QT4DIR=$withval
25884
25885fi
25886
25887  	  if test x"$QT4DIR" = x ; then
25888  	    { { echo "$as_me:$LINENO: error: *** No path for Qt4 --with-qt4dir option given" >&5
25889echo "$as_me: error: *** No path for Qt4 --with-qt4dir option given" >&2;}
25890   { (exit 1); exit 1; }; }
25891  	  fi
25892  	  { echo "$as_me:$LINENO: result: QT4DIR... $QT4DIR" >&5
25893echo "${ECHO_T}QT4DIR... $QT4DIR" >&6; }
25894  	  # Extract the first word of "moc", so it can be a program name with args.
25895set dummy moc; ac_word=$2
25896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25898if test "${ac_cv_prog_MOC+set}" = set; then
25899  echo $ECHO_N "(cached) $ECHO_C" >&6
25900else
25901  if test -n "$MOC"; then
25902  ac_cv_prog_MOC="$MOC" # Let the user override the test.
25903else
25904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25905for as_dir in $QT4DIR/bin
25906do
25907  IFS=$as_save_IFS
25908  test -z "$as_dir" && as_dir=.
25909  for ac_exec_ext in '' $ac_executable_extensions; do
25910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25911    ac_cv_prog_MOC="$QT4DIR/bin/moc"
25912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25913    break 2
25914  fi
25915done
25916done
25917IFS=$as_save_IFS
25918
25919fi
25920fi
25921MOC=$ac_cv_prog_MOC
25922if test -n "$MOC"; then
25923  { echo "$as_me:$LINENO: result: $MOC" >&5
25924echo "${ECHO_T}$MOC" >&6; }
25925else
25926  { echo "$as_me:$LINENO: result: no" >&5
25927echo "${ECHO_T}no" >&6; }
25928fi
25929
25930
25931  	  if test x"$MOC" = x; then
25932  	    { { echo "$as_me:$LINENO: error: *** This is not the right Qt installation" >&5
25933echo "$as_me: error: *** This is not the right Qt installation" >&2;}
25934   { (exit 1); exit 1; }; }
25935  	  fi
25936  	  QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
25937  	  QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
25938  	  QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
25939  	  QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
25940  	  ;;
25941  	*)
25942  	  { { echo "$as_me:$LINENO: error: *** Please check PKG_CONFIG_PATH or the version
25943  	  of your installed Qt4 installation." >&5
25944echo "$as_me: error: *** Please check PKG_CONFIG_PATH or the version
25945  	  of your installed Qt4 installation." >&2;}
25946   { (exit 1); exit 1; }; }
25947  	  ;;
25948      esac
25949    fi
25950    { echo "$as_me:$LINENO: Set QT_CFLAGS... $QT_CFLAGS" >&5
25951echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
25952
25953
25954  fi
25955fi
25956
25957
25958
25959# Check whether --with-javah was given.
25960if test "${with_javah+set}" = set; then
25961  withval=$with_javah;
25962    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
25963
25964  if test "x${withval}" != x; then
25965    if test -f "${withval}"; then
25966      USER_JAVAH="${withval}"
25967    else
25968      # Extract the first word of ""${withval}"", so it can be a program name with args.
25969set dummy "${withval}"; ac_word=$2
25970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
25971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25972if test "${ac_cv_path_USER_JAVAH+set}" = set; then
25973  echo $ECHO_N "(cached) $ECHO_C" >&6
25974else
25975  case $USER_JAVAH in
25976  [\\/]* | ?:[\\/]*)
25977  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
25978  ;;
25979  *)
25980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25981for as_dir in $PATH
25982do
25983  IFS=$as_save_IFS
25984  test -z "$as_dir" && as_dir=.
25985  for ac_exec_ext in '' $ac_executable_extensions; do
25986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25987    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
25988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25989    break 2
25990  fi
25991done
25992done
25993IFS=$as_save_IFS
25994
25995  ;;
25996esac
25997fi
25998USER_JAVAH=$ac_cv_path_USER_JAVAH
25999if test -n "$USER_JAVAH"; then
26000  { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
26001echo "${ECHO_T}$USER_JAVAH" >&6; }
26002else
26003  { echo "$as_me:$LINENO: result: no" >&5
26004echo "${ECHO_T}no" >&6; }
26005fi
26006
26007
26008    fi
26009  else
26010    for javah_name in gcjh javah; do
26011      # Extract the first word of ""$javah_name"", so it can be a program name with args.
26012set dummy "$javah_name"; ac_word=$2
26013{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26015if test "${ac_cv_path_USER_JAVAH+set}" = set; then
26016  echo $ECHO_N "(cached) $ECHO_C" >&6
26017else
26018  case $USER_JAVAH in
26019  [\\/]* | ?:[\\/]*)
26020  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
26021  ;;
26022  *)
26023  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26024for as_dir in $PATH
26025do
26026  IFS=$as_save_IFS
26027  test -z "$as_dir" && as_dir=.
26028  for ac_exec_ext in '' $ac_executable_extensions; do
26029  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26030    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
26031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26032    break 2
26033  fi
26034done
26035done
26036IFS=$as_save_IFS
26037
26038  ;;
26039esac
26040fi
26041USER_JAVAH=$ac_cv_path_USER_JAVAH
26042if test -n "$USER_JAVAH"; then
26043  { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
26044echo "${ECHO_T}$USER_JAVAH" >&6; }
26045else
26046  { echo "$as_me:$LINENO: result: no" >&5
26047echo "${ECHO_T}no" >&6; }
26048fi
26049
26050
26051      if test "x${USER_JAVAH}" != x; then
26052        break
26053      fi
26054    done
26055  fi
26056
26057#  if test "x${USER_JAVAH}" = x; then
26058#    echo "configure: cannot find javah" 1>&2
26059#    exit 1
26060#  fi
26061
26062    else
26063
26064  if test "x" != x; then
26065    if test -f ""; then
26066      USER_JAVAH=""
26067    else
26068      # Extract the first word of """", so it can be a program name with args.
26069set dummy ""; ac_word=$2
26070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26072if test "${ac_cv_path_USER_JAVAH+set}" = set; then
26073  echo $ECHO_N "(cached) $ECHO_C" >&6
26074else
26075  case $USER_JAVAH in
26076  [\\/]* | ?:[\\/]*)
26077  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
26078  ;;
26079  *)
26080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26081for as_dir in $PATH
26082do
26083  IFS=$as_save_IFS
26084  test -z "$as_dir" && as_dir=.
26085  for ac_exec_ext in '' $ac_executable_extensions; do
26086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26087    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
26088    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26089    break 2
26090  fi
26091done
26092done
26093IFS=$as_save_IFS
26094
26095  ;;
26096esac
26097fi
26098USER_JAVAH=$ac_cv_path_USER_JAVAH
26099if test -n "$USER_JAVAH"; then
26100  { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
26101echo "${ECHO_T}$USER_JAVAH" >&6; }
26102else
26103  { echo "$as_me:$LINENO: result: no" >&5
26104echo "${ECHO_T}no" >&6; }
26105fi
26106
26107
26108    fi
26109  else
26110    for javah_name in gcjh javah; do
26111      # Extract the first word of ""$javah_name"", so it can be a program name with args.
26112set dummy "$javah_name"; ac_word=$2
26113{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26115if test "${ac_cv_path_USER_JAVAH+set}" = set; then
26116  echo $ECHO_N "(cached) $ECHO_C" >&6
26117else
26118  case $USER_JAVAH in
26119  [\\/]* | ?:[\\/]*)
26120  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
26121  ;;
26122  *)
26123  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26124for as_dir in $PATH
26125do
26126  IFS=$as_save_IFS
26127  test -z "$as_dir" && as_dir=.
26128  for ac_exec_ext in '' $ac_executable_extensions; do
26129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26130    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
26131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26132    break 2
26133  fi
26134done
26135done
26136IFS=$as_save_IFS
26137
26138  ;;
26139esac
26140fi
26141USER_JAVAH=$ac_cv_path_USER_JAVAH
26142if test -n "$USER_JAVAH"; then
26143  { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
26144echo "${ECHO_T}$USER_JAVAH" >&6; }
26145else
26146  { echo "$as_me:$LINENO: result: no" >&5
26147echo "${ECHO_T}no" >&6; }
26148fi
26149
26150
26151      if test "x${USER_JAVAH}" != x; then
26152        break
26153      fi
26154    done
26155  fi
26156
26157#  if test "x${USER_JAVAH}" = x; then
26158#    echo "configure: cannot find javah" 1>&2
26159#    exit 1
26160#  fi
26161
26162    fi
26163
26164else
26165
26166
26167  if test "x" != x; then
26168    if test -f ""; then
26169      USER_JAVAH=""
26170    else
26171      # Extract the first word of """", so it can be a program name with args.
26172set dummy ""; ac_word=$2
26173{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26175if test "${ac_cv_path_USER_JAVAH+set}" = set; then
26176  echo $ECHO_N "(cached) $ECHO_C" >&6
26177else
26178  case $USER_JAVAH in
26179  [\\/]* | ?:[\\/]*)
26180  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
26181  ;;
26182  *)
26183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26184for as_dir in $PATH
26185do
26186  IFS=$as_save_IFS
26187  test -z "$as_dir" && as_dir=.
26188  for ac_exec_ext in '' $ac_executable_extensions; do
26189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26190    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
26191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26192    break 2
26193  fi
26194done
26195done
26196IFS=$as_save_IFS
26197
26198  ;;
26199esac
26200fi
26201USER_JAVAH=$ac_cv_path_USER_JAVAH
26202if test -n "$USER_JAVAH"; then
26203  { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
26204echo "${ECHO_T}$USER_JAVAH" >&6; }
26205else
26206  { echo "$as_me:$LINENO: result: no" >&5
26207echo "${ECHO_T}no" >&6; }
26208fi
26209
26210
26211    fi
26212  else
26213    for javah_name in gcjh javah; do
26214      # Extract the first word of ""$javah_name"", so it can be a program name with args.
26215set dummy "$javah_name"; ac_word=$2
26216{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26218if test "${ac_cv_path_USER_JAVAH+set}" = set; then
26219  echo $ECHO_N "(cached) $ECHO_C" >&6
26220else
26221  case $USER_JAVAH in
26222  [\\/]* | ?:[\\/]*)
26223  ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
26224  ;;
26225  *)
26226  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26227for as_dir in $PATH
26228do
26229  IFS=$as_save_IFS
26230  test -z "$as_dir" && as_dir=.
26231  for ac_exec_ext in '' $ac_executable_extensions; do
26232  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26233    ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
26234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26235    break 2
26236  fi
26237done
26238done
26239IFS=$as_save_IFS
26240
26241  ;;
26242esac
26243fi
26244USER_JAVAH=$ac_cv_path_USER_JAVAH
26245if test -n "$USER_JAVAH"; then
26246  { echo "$as_me:$LINENO: result: $USER_JAVAH" >&5
26247echo "${ECHO_T}$USER_JAVAH" >&6; }
26248else
26249  { echo "$as_me:$LINENO: result: no" >&5
26250echo "${ECHO_T}no" >&6; }
26251fi
26252
26253
26254      if test "x${USER_JAVAH}" != x; then
26255        break
26256      fi
26257    done
26258  fi
26259
26260#  if test "x${USER_JAVAH}" = x; then
26261#    echo "configure: cannot find javah" 1>&2
26262#    exit 1
26263#  fi
26264
26265
26266fi
26267
26268
26269
26270if test "x${USER_JAVAH}" != x; then
26271  USER_SPECIFIED_JAVAH_TRUE=
26272  USER_SPECIFIED_JAVAH_FALSE='#'
26273else
26274  USER_SPECIFIED_JAVAH_TRUE='#'
26275  USER_SPECIFIED_JAVAH_FALSE=
26276fi
26277
26278
26279
26280
26281CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/target/Linux -I\$(top_srcdir)/native/target/generic"
26282
26283
26284if test "x${COMPILE_JNI}" = xyes; then
26285  { echo "$as_me:$LINENO: checking jni_md.h support" >&5
26286echo $ECHO_N "checking jni_md.h support... $ECHO_C" >&6; }
26287  if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
26288    { echo "$as_me:$LINENO: result: yes" >&5
26289echo "${ECHO_T}yes" >&6; }
26290  else
26291    target_cpu=x86
26292    target_os=linux-gnu
26293    { echo "$as_me:$LINENO: WARNING: no" >&5
26294echo "$as_me: WARNING: no" >&2;}
26295  fi
26296  ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
26297  ac_dests="include/jni_md.h"
26298  while test -n "$ac_sources"; do
26299    set $ac_dests; ac_dest=$1; shift; ac_dests=$*
26300    set $ac_sources; ac_source=$1; shift; ac_sources=$*
26301    ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
26302  done
26303  ac_config_links="$ac_config_links $ac_config_links_1"
26304
26305fi
26306
26307
26308  user_specified_javac=
26309
26310
26311
26312# Check whether --with-jikes was given.
26313if test "${with_jikes+set}" = set; then
26314  withval=$with_jikes;
26315    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
26316
26317  if test "x${withval}" != x; then
26318    if test -f "${withval}"; then
26319      JIKES="${withval}"
26320    else
26321      # Extract the first word of ""${withval}"", so it can be a program name with args.
26322set dummy "${withval}"; ac_word=$2
26323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26325if test "${ac_cv_path_JIKES+set}" = set; then
26326  echo $ECHO_N "(cached) $ECHO_C" >&6
26327else
26328  case $JIKES in
26329  [\\/]* | ?:[\\/]*)
26330  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
26331  ;;
26332  *)
26333  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26334for as_dir in $PATH
26335do
26336  IFS=$as_save_IFS
26337  test -z "$as_dir" && as_dir=.
26338  for ac_exec_ext in '' $ac_executable_extensions; do
26339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26340    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
26341    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26342    break 2
26343  fi
26344done
26345done
26346IFS=$as_save_IFS
26347
26348  ;;
26349esac
26350fi
26351JIKES=$ac_cv_path_JIKES
26352if test -n "$JIKES"; then
26353  { echo "$as_me:$LINENO: result: $JIKES" >&5
26354echo "${ECHO_T}$JIKES" >&6; }
26355else
26356  { echo "$as_me:$LINENO: result: no" >&5
26357echo "${ECHO_T}no" >&6; }
26358fi
26359
26360
26361    fi
26362  else
26363    # Extract the first word of ""jikes"", so it can be a program name with args.
26364set dummy "jikes"; ac_word=$2
26365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26367if test "${ac_cv_path_JIKES+set}" = set; then
26368  echo $ECHO_N "(cached) $ECHO_C" >&6
26369else
26370  case $JIKES in
26371  [\\/]* | ?:[\\/]*)
26372  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
26373  ;;
26374  *)
26375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26376for as_dir in $PATH
26377do
26378  IFS=$as_save_IFS
26379  test -z "$as_dir" && as_dir=.
26380  for ac_exec_ext in '' $ac_executable_extensions; do
26381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26382    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
26383    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26384    break 2
26385  fi
26386done
26387done
26388IFS=$as_save_IFS
26389
26390  ;;
26391esac
26392fi
26393JIKES=$ac_cv_path_JIKES
26394if test -n "$JIKES"; then
26395  { echo "$as_me:$LINENO: result: $JIKES" >&5
26396echo "${ECHO_T}$JIKES" >&6; }
26397else
26398  { echo "$as_me:$LINENO: result: no" >&5
26399echo "${ECHO_T}no" >&6; }
26400fi
26401
26402
26403  fi
26404  if test "x$JIKES" != "x"; then
26405        { echo "$as_me:$LINENO: checking jikes version" >&5
26406echo $ECHO_N "checking jikes version... $ECHO_C" >&6; }
26407    JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
26408    JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
26409    JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
26410    if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
26411      if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
26412        JIKES=""
26413      fi
26414    fi
26415    if test "x$JIKES" != "x"; then
26416      { echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
26417echo "${ECHO_T}$JIKES_VERSION" >&6; }
26418    else
26419      { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
26420echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
26421    fi
26422
26423    JIKESENCODING=
26424    if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
26425       JIKESENCODING='-encoding UTF-8'
26426    fi
26427
26428  fi
26429
26430    else
26431      if test "x${withval}" != xno; then
26432
26433  if test "x" != x; then
26434    if test -f ""; then
26435      JIKES=""
26436    else
26437      # Extract the first word of """", so it can be a program name with args.
26438set dummy ""; ac_word=$2
26439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26441if test "${ac_cv_path_JIKES+set}" = set; then
26442  echo $ECHO_N "(cached) $ECHO_C" >&6
26443else
26444  case $JIKES in
26445  [\\/]* | ?:[\\/]*)
26446  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
26447  ;;
26448  *)
26449  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26450for as_dir in $PATH
26451do
26452  IFS=$as_save_IFS
26453  test -z "$as_dir" && as_dir=.
26454  for ac_exec_ext in '' $ac_executable_extensions; do
26455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26456    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
26457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26458    break 2
26459  fi
26460done
26461done
26462IFS=$as_save_IFS
26463
26464  ;;
26465esac
26466fi
26467JIKES=$ac_cv_path_JIKES
26468if test -n "$JIKES"; then
26469  { echo "$as_me:$LINENO: result: $JIKES" >&5
26470echo "${ECHO_T}$JIKES" >&6; }
26471else
26472  { echo "$as_me:$LINENO: result: no" >&5
26473echo "${ECHO_T}no" >&6; }
26474fi
26475
26476
26477    fi
26478  else
26479    # Extract the first word of ""jikes"", so it can be a program name with args.
26480set dummy "jikes"; ac_word=$2
26481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26483if test "${ac_cv_path_JIKES+set}" = set; then
26484  echo $ECHO_N "(cached) $ECHO_C" >&6
26485else
26486  case $JIKES in
26487  [\\/]* | ?:[\\/]*)
26488  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
26489  ;;
26490  *)
26491  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26492for as_dir in $PATH
26493do
26494  IFS=$as_save_IFS
26495  test -z "$as_dir" && as_dir=.
26496  for ac_exec_ext in '' $ac_executable_extensions; do
26497  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26498    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
26499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26500    break 2
26501  fi
26502done
26503done
26504IFS=$as_save_IFS
26505
26506  ;;
26507esac
26508fi
26509JIKES=$ac_cv_path_JIKES
26510if test -n "$JIKES"; then
26511  { echo "$as_me:$LINENO: result: $JIKES" >&5
26512echo "${ECHO_T}$JIKES" >&6; }
26513else
26514  { echo "$as_me:$LINENO: result: no" >&5
26515echo "${ECHO_T}no" >&6; }
26516fi
26517
26518
26519  fi
26520  if test "x$JIKES" != "x"; then
26521        { echo "$as_me:$LINENO: checking jikes version" >&5
26522echo $ECHO_N "checking jikes version... $ECHO_C" >&6; }
26523    JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
26524    JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
26525    JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
26526    if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
26527      if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
26528        JIKES=""
26529      fi
26530    fi
26531    if test "x$JIKES" != "x"; then
26532      { echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
26533echo "${ECHO_T}$JIKES_VERSION" >&6; }
26534    else
26535      { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
26536echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
26537    fi
26538
26539    JIKESENCODING=
26540    if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
26541       JIKESENCODING='-encoding UTF-8'
26542    fi
26543
26544  fi
26545
26546      fi
26547    fi
26548    user_specified_javac=jikes
26549
26550else
26551
26552
26553  if test "x" != x; then
26554    if test -f ""; then
26555      JIKES=""
26556    else
26557      # Extract the first word of """", so it can be a program name with args.
26558set dummy ""; ac_word=$2
26559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26561if test "${ac_cv_path_JIKES+set}" = set; then
26562  echo $ECHO_N "(cached) $ECHO_C" >&6
26563else
26564  case $JIKES in
26565  [\\/]* | ?:[\\/]*)
26566  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
26567  ;;
26568  *)
26569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26570for as_dir in $PATH
26571do
26572  IFS=$as_save_IFS
26573  test -z "$as_dir" && as_dir=.
26574  for ac_exec_ext in '' $ac_executable_extensions; do
26575  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26576    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
26577    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26578    break 2
26579  fi
26580done
26581done
26582IFS=$as_save_IFS
26583
26584  ;;
26585esac
26586fi
26587JIKES=$ac_cv_path_JIKES
26588if test -n "$JIKES"; then
26589  { echo "$as_me:$LINENO: result: $JIKES" >&5
26590echo "${ECHO_T}$JIKES" >&6; }
26591else
26592  { echo "$as_me:$LINENO: result: no" >&5
26593echo "${ECHO_T}no" >&6; }
26594fi
26595
26596
26597    fi
26598  else
26599    # Extract the first word of ""jikes"", so it can be a program name with args.
26600set dummy "jikes"; ac_word=$2
26601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26603if test "${ac_cv_path_JIKES+set}" = set; then
26604  echo $ECHO_N "(cached) $ECHO_C" >&6
26605else
26606  case $JIKES in
26607  [\\/]* | ?:[\\/]*)
26608  ac_cv_path_JIKES="$JIKES" # Let the user override the test with a path.
26609  ;;
26610  *)
26611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26612for as_dir in $PATH
26613do
26614  IFS=$as_save_IFS
26615  test -z "$as_dir" && as_dir=.
26616  for ac_exec_ext in '' $ac_executable_extensions; do
26617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26618    ac_cv_path_JIKES="$as_dir/$ac_word$ac_exec_ext"
26619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26620    break 2
26621  fi
26622done
26623done
26624IFS=$as_save_IFS
26625
26626  ;;
26627esac
26628fi
26629JIKES=$ac_cv_path_JIKES
26630if test -n "$JIKES"; then
26631  { echo "$as_me:$LINENO: result: $JIKES" >&5
26632echo "${ECHO_T}$JIKES" >&6; }
26633else
26634  { echo "$as_me:$LINENO: result: no" >&5
26635echo "${ECHO_T}no" >&6; }
26636fi
26637
26638
26639  fi
26640  if test "x$JIKES" != "x"; then
26641        { echo "$as_me:$LINENO: checking jikes version" >&5
26642echo $ECHO_N "checking jikes version... $ECHO_C" >&6; }
26643    JIKES_VERSION=`$JIKES --version | awk '/^Jikes Compiler/' | cut -d ' ' -f 5`
26644    JIKES_VERSION_MAJOR=`echo "$JIKES_VERSION" | cut -d '.' -f 1`
26645    JIKES_VERSION_MINOR=`echo "$JIKES_VERSION" | cut -d '.' -f 2`
26646    if expr "$JIKES_VERSION_MAJOR" = 1 > /dev/null; then
26647      if expr "$JIKES_VERSION_MINOR" \< 19 > /dev/null; then
26648        JIKES=""
26649      fi
26650    fi
26651    if test "x$JIKES" != "x"; then
26652      { echo "$as_me:$LINENO: result: $JIKES_VERSION" >&5
26653echo "${ECHO_T}$JIKES_VERSION" >&6; }
26654    else
26655      { echo "$as_me:$LINENO: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&5
26656echo "$as_me: WARNING: $JIKES_VERSION: jikes 1.19 or higher required" >&2;}
26657    fi
26658
26659    JIKESENCODING=
26660    if test -n "`$JIKES --help 2>&1 | grep encoding`"; then
26661       JIKESENCODING='-encoding UTF-8'
26662    fi
26663
26664  fi
26665
26666
26667fi
26668
26669
26670
26671
26672
26673# Check whether --with-gcjx was given.
26674if test "${with_gcjx+set}" = set; then
26675  withval=$with_gcjx;
26676    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
26677
26678  if test "x${withval}" != x; then
26679    if test -f "${withval}"; then
26680      GCJX="${withval}"
26681    else
26682      # Extract the first word of ""${withval}"", so it can be a program name with args.
26683set dummy "${withval}"; ac_word=$2
26684{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26686if test "${ac_cv_path_GCJX+set}" = set; then
26687  echo $ECHO_N "(cached) $ECHO_C" >&6
26688else
26689  case $GCJX in
26690  [\\/]* | ?:[\\/]*)
26691  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
26692  ;;
26693  *)
26694  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26695for as_dir in $PATH
26696do
26697  IFS=$as_save_IFS
26698  test -z "$as_dir" && as_dir=.
26699  for ac_exec_ext in '' $ac_executable_extensions; do
26700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26701    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
26702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26703    break 2
26704  fi
26705done
26706done
26707IFS=$as_save_IFS
26708
26709  ;;
26710esac
26711fi
26712GCJX=$ac_cv_path_GCJX
26713if test -n "$GCJX"; then
26714  { echo "$as_me:$LINENO: result: $GCJX" >&5
26715echo "${ECHO_T}$GCJX" >&6; }
26716else
26717  { echo "$as_me:$LINENO: result: no" >&5
26718echo "${ECHO_T}no" >&6; }
26719fi
26720
26721
26722    fi
26723  else
26724    # Extract the first word of ""gcjx"", so it can be a program name with args.
26725set dummy "gcjx"; ac_word=$2
26726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26728if test "${ac_cv_path_GCJX+set}" = set; then
26729  echo $ECHO_N "(cached) $ECHO_C" >&6
26730else
26731  case $GCJX in
26732  [\\/]* | ?:[\\/]*)
26733  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
26734  ;;
26735  *)
26736  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26737for as_dir in $PATH
26738do
26739  IFS=$as_save_IFS
26740  test -z "$as_dir" && as_dir=.
26741  for ac_exec_ext in '' $ac_executable_extensions; do
26742  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26743    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
26744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26745    break 2
26746  fi
26747done
26748done
26749IFS=$as_save_IFS
26750
26751  ;;
26752esac
26753fi
26754GCJX=$ac_cv_path_GCJX
26755if test -n "$GCJX"; then
26756  { echo "$as_me:$LINENO: result: $GCJX" >&5
26757echo "${ECHO_T}$GCJX" >&6; }
26758else
26759  { echo "$as_me:$LINENO: result: no" >&5
26760echo "${ECHO_T}no" >&6; }
26761fi
26762
26763
26764  fi
26765
26766    else
26767      if test "x${withval}" != xno; then
26768
26769  if test "x" != x; then
26770    if test -f ""; then
26771      GCJX=""
26772    else
26773      # Extract the first word of """", so it can be a program name with args.
26774set dummy ""; ac_word=$2
26775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26777if test "${ac_cv_path_GCJX+set}" = set; then
26778  echo $ECHO_N "(cached) $ECHO_C" >&6
26779else
26780  case $GCJX in
26781  [\\/]* | ?:[\\/]*)
26782  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
26783  ;;
26784  *)
26785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26786for as_dir in $PATH
26787do
26788  IFS=$as_save_IFS
26789  test -z "$as_dir" && as_dir=.
26790  for ac_exec_ext in '' $ac_executable_extensions; do
26791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26792    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
26793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26794    break 2
26795  fi
26796done
26797done
26798IFS=$as_save_IFS
26799
26800  ;;
26801esac
26802fi
26803GCJX=$ac_cv_path_GCJX
26804if test -n "$GCJX"; then
26805  { echo "$as_me:$LINENO: result: $GCJX" >&5
26806echo "${ECHO_T}$GCJX" >&6; }
26807else
26808  { echo "$as_me:$LINENO: result: no" >&5
26809echo "${ECHO_T}no" >&6; }
26810fi
26811
26812
26813    fi
26814  else
26815    # Extract the first word of ""gcjx"", so it can be a program name with args.
26816set dummy "gcjx"; ac_word=$2
26817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26819if test "${ac_cv_path_GCJX+set}" = set; then
26820  echo $ECHO_N "(cached) $ECHO_C" >&6
26821else
26822  case $GCJX in
26823  [\\/]* | ?:[\\/]*)
26824  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
26825  ;;
26826  *)
26827  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26828for as_dir in $PATH
26829do
26830  IFS=$as_save_IFS
26831  test -z "$as_dir" && as_dir=.
26832  for ac_exec_ext in '' $ac_executable_extensions; do
26833  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26834    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
26835    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26836    break 2
26837  fi
26838done
26839done
26840IFS=$as_save_IFS
26841
26842  ;;
26843esac
26844fi
26845GCJX=$ac_cv_path_GCJX
26846if test -n "$GCJX"; then
26847  { echo "$as_me:$LINENO: result: $GCJX" >&5
26848echo "${ECHO_T}$GCJX" >&6; }
26849else
26850  { echo "$as_me:$LINENO: result: no" >&5
26851echo "${ECHO_T}no" >&6; }
26852fi
26853
26854
26855  fi
26856
26857      fi
26858    fi
26859    user_specified_javac=gcjx
26860
26861else
26862
26863
26864  if test "x" != x; then
26865    if test -f ""; then
26866      GCJX=""
26867    else
26868      # Extract the first word of """", so it can be a program name with args.
26869set dummy ""; ac_word=$2
26870{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26872if test "${ac_cv_path_GCJX+set}" = set; then
26873  echo $ECHO_N "(cached) $ECHO_C" >&6
26874else
26875  case $GCJX in
26876  [\\/]* | ?:[\\/]*)
26877  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
26878  ;;
26879  *)
26880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26881for as_dir in $PATH
26882do
26883  IFS=$as_save_IFS
26884  test -z "$as_dir" && as_dir=.
26885  for ac_exec_ext in '' $ac_executable_extensions; do
26886  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26887    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
26888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26889    break 2
26890  fi
26891done
26892done
26893IFS=$as_save_IFS
26894
26895  ;;
26896esac
26897fi
26898GCJX=$ac_cv_path_GCJX
26899if test -n "$GCJX"; then
26900  { echo "$as_me:$LINENO: result: $GCJX" >&5
26901echo "${ECHO_T}$GCJX" >&6; }
26902else
26903  { echo "$as_me:$LINENO: result: no" >&5
26904echo "${ECHO_T}no" >&6; }
26905fi
26906
26907
26908    fi
26909  else
26910    # Extract the first word of ""gcjx"", so it can be a program name with args.
26911set dummy "gcjx"; ac_word=$2
26912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26914if test "${ac_cv_path_GCJX+set}" = set; then
26915  echo $ECHO_N "(cached) $ECHO_C" >&6
26916else
26917  case $GCJX in
26918  [\\/]* | ?:[\\/]*)
26919  ac_cv_path_GCJX="$GCJX" # Let the user override the test with a path.
26920  ;;
26921  *)
26922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26923for as_dir in $PATH
26924do
26925  IFS=$as_save_IFS
26926  test -z "$as_dir" && as_dir=.
26927  for ac_exec_ext in '' $ac_executable_extensions; do
26928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26929    ac_cv_path_GCJX="$as_dir/$ac_word$ac_exec_ext"
26930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26931    break 2
26932  fi
26933done
26934done
26935IFS=$as_save_IFS
26936
26937  ;;
26938esac
26939fi
26940GCJX=$ac_cv_path_GCJX
26941if test -n "$GCJX"; then
26942  { echo "$as_me:$LINENO: result: $GCJX" >&5
26943echo "${ECHO_T}$GCJX" >&6; }
26944else
26945  { echo "$as_me:$LINENO: result: no" >&5
26946echo "${ECHO_T}no" >&6; }
26947fi
26948
26949
26950  fi
26951
26952
26953fi
26954
26955
26956
26957
26958
26959# Check whether --with-ecj was given.
26960if test "${with_ecj+set}" = set; then
26961  withval=$with_ecj;
26962    if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
26963
26964  if test "x${withval}" != x; then
26965    if test -f "${withval}"; then
26966      ECJ="${withval}"
26967    else
26968      # Extract the first word of ""${withval}"", so it can be a program name with args.
26969set dummy "${withval}"; ac_word=$2
26970{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26972if test "${ac_cv_path_ECJ+set}" = set; then
26973  echo $ECHO_N "(cached) $ECHO_C" >&6
26974else
26975  case $ECJ in
26976  [\\/]* | ?:[\\/]*)
26977  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
26978  ;;
26979  *)
26980  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26981for as_dir in $PATH
26982do
26983  IFS=$as_save_IFS
26984  test -z "$as_dir" && as_dir=.
26985  for ac_exec_ext in '' $ac_executable_extensions; do
26986  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26987    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
26988    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26989    break 2
26990  fi
26991done
26992done
26993IFS=$as_save_IFS
26994
26995  ;;
26996esac
26997fi
26998ECJ=$ac_cv_path_ECJ
26999if test -n "$ECJ"; then
27000  { echo "$as_me:$LINENO: result: $ECJ" >&5
27001echo "${ECHO_T}$ECJ" >&6; }
27002else
27003  { echo "$as_me:$LINENO: result: no" >&5
27004echo "${ECHO_T}no" >&6; }
27005fi
27006
27007
27008    fi
27009  else
27010    # Extract the first word of ""ecj"", so it can be a program name with args.
27011set dummy "ecj"; ac_word=$2
27012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27014if test "${ac_cv_path_ECJ+set}" = set; then
27015  echo $ECHO_N "(cached) $ECHO_C" >&6
27016else
27017  case $ECJ in
27018  [\\/]* | ?:[\\/]*)
27019  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
27020  ;;
27021  *)
27022  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27023for as_dir in $PATH
27024do
27025  IFS=$as_save_IFS
27026  test -z "$as_dir" && as_dir=.
27027  for ac_exec_ext in '' $ac_executable_extensions; do
27028  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27029    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
27030    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27031    break 2
27032  fi
27033done
27034done
27035IFS=$as_save_IFS
27036
27037  ;;
27038esac
27039fi
27040ECJ=$ac_cv_path_ECJ
27041if test -n "$ECJ"; then
27042  { echo "$as_me:$LINENO: result: $ECJ" >&5
27043echo "${ECHO_T}$ECJ" >&6; }
27044else
27045  { echo "$as_me:$LINENO: result: no" >&5
27046echo "${ECHO_T}no" >&6; }
27047fi
27048
27049
27050  fi
27051
27052    else
27053      if test "x${withval}" != xno; then
27054
27055  if test "x" != x; then
27056    if test -f ""; then
27057      ECJ=""
27058    else
27059      # Extract the first word of """", so it can be a program name with args.
27060set dummy ""; ac_word=$2
27061{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27063if test "${ac_cv_path_ECJ+set}" = set; then
27064  echo $ECHO_N "(cached) $ECHO_C" >&6
27065else
27066  case $ECJ in
27067  [\\/]* | ?:[\\/]*)
27068  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
27069  ;;
27070  *)
27071  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27072for as_dir in $PATH
27073do
27074  IFS=$as_save_IFS
27075  test -z "$as_dir" && as_dir=.
27076  for ac_exec_ext in '' $ac_executable_extensions; do
27077  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27078    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
27079    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27080    break 2
27081  fi
27082done
27083done
27084IFS=$as_save_IFS
27085
27086  ;;
27087esac
27088fi
27089ECJ=$ac_cv_path_ECJ
27090if test -n "$ECJ"; then
27091  { echo "$as_me:$LINENO: result: $ECJ" >&5
27092echo "${ECHO_T}$ECJ" >&6; }
27093else
27094  { echo "$as_me:$LINENO: result: no" >&5
27095echo "${ECHO_T}no" >&6; }
27096fi
27097
27098
27099    fi
27100  else
27101    # Extract the first word of ""ecj"", so it can be a program name with args.
27102set dummy "ecj"; ac_word=$2
27103{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27105if test "${ac_cv_path_ECJ+set}" = set; then
27106  echo $ECHO_N "(cached) $ECHO_C" >&6
27107else
27108  case $ECJ in
27109  [\\/]* | ?:[\\/]*)
27110  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
27111  ;;
27112  *)
27113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27114for as_dir in $PATH
27115do
27116  IFS=$as_save_IFS
27117  test -z "$as_dir" && as_dir=.
27118  for ac_exec_ext in '' $ac_executable_extensions; do
27119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27120    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
27121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27122    break 2
27123  fi
27124done
27125done
27126IFS=$as_save_IFS
27127
27128  ;;
27129esac
27130fi
27131ECJ=$ac_cv_path_ECJ
27132if test -n "$ECJ"; then
27133  { echo "$as_me:$LINENO: result: $ECJ" >&5
27134echo "${ECHO_T}$ECJ" >&6; }
27135else
27136  { echo "$as_me:$LINENO: result: no" >&5
27137echo "${ECHO_T}no" >&6; }
27138fi
27139
27140
27141  fi
27142
27143      fi
27144    fi
27145    user_specified_javac=ecj
27146
27147else
27148
27149
27150  if test "x" != x; then
27151    if test -f ""; then
27152      ECJ=""
27153    else
27154      # Extract the first word of """", so it can be a program name with args.
27155set dummy ""; ac_word=$2
27156{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27158if test "${ac_cv_path_ECJ+set}" = set; then
27159  echo $ECHO_N "(cached) $ECHO_C" >&6
27160else
27161  case $ECJ in
27162  [\\/]* | ?:[\\/]*)
27163  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
27164  ;;
27165  *)
27166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27167for as_dir in $PATH
27168do
27169  IFS=$as_save_IFS
27170  test -z "$as_dir" && as_dir=.
27171  for ac_exec_ext in '' $ac_executable_extensions; do
27172  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27173    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
27174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27175    break 2
27176  fi
27177done
27178done
27179IFS=$as_save_IFS
27180
27181  ;;
27182esac
27183fi
27184ECJ=$ac_cv_path_ECJ
27185if test -n "$ECJ"; then
27186  { echo "$as_me:$LINENO: result: $ECJ" >&5
27187echo "${ECHO_T}$ECJ" >&6; }
27188else
27189  { echo "$as_me:$LINENO: result: no" >&5
27190echo "${ECHO_T}no" >&6; }
27191fi
27192
27193
27194    fi
27195  else
27196    # Extract the first word of ""ecj"", so it can be a program name with args.
27197set dummy "ecj"; ac_word=$2
27198{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27200if test "${ac_cv_path_ECJ+set}" = set; then
27201  echo $ECHO_N "(cached) $ECHO_C" >&6
27202else
27203  case $ECJ in
27204  [\\/]* | ?:[\\/]*)
27205  ac_cv_path_ECJ="$ECJ" # Let the user override the test with a path.
27206  ;;
27207  *)
27208  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27209for as_dir in $PATH
27210do
27211  IFS=$as_save_IFS
27212  test -z "$as_dir" && as_dir=.
27213  for ac_exec_ext in '' $ac_executable_extensions; do
27214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27215    ac_cv_path_ECJ="$as_dir/$ac_word$ac_exec_ext"
27216    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27217    break 2
27218  fi
27219done
27220done
27221IFS=$as_save_IFS
27222
27223  ;;
27224esac
27225fi
27226ECJ=$ac_cv_path_ECJ
27227if test -n "$ECJ"; then
27228  { echo "$as_me:$LINENO: result: $ECJ" >&5
27229echo "${ECHO_T}$ECJ" >&6; }
27230else
27231  { echo "$as_me:$LINENO: result: no" >&5
27232echo "${ECHO_T}no" >&6; }
27233fi
27234
27235
27236  fi
27237
27238
27239fi
27240
27241
27242
27243
27244  if test "x${user_specified_javac}" = x; then
27245
27246
27247if test "x${GCJ}" != x; then
27248  FOUND_GCJ_TRUE=
27249  FOUND_GCJ_FALSE='#'
27250else
27251  FOUND_GCJ_TRUE='#'
27252  FOUND_GCJ_FALSE=
27253fi
27254
27255
27256
27257if test "x${JIKES}" != x; then
27258  FOUND_JIKES_TRUE=
27259  FOUND_JIKES_FALSE='#'
27260else
27261  FOUND_JIKES_TRUE='#'
27262  FOUND_JIKES_FALSE=
27263fi
27264
27265
27266
27267if test "x${ECJ}" != x; then
27268  FOUND_ECJ_TRUE=
27269  FOUND_ECJ_FALSE='#'
27270else
27271  FOUND_ECJ_TRUE='#'
27272  FOUND_ECJ_FALSE=
27273fi
27274
27275  else
27276
27277
27278if test "x${user_specified_javac}" = xgcj; then
27279  FOUND_GCJ_TRUE=
27280  FOUND_GCJ_FALSE='#'
27281else
27282  FOUND_GCJ_TRUE='#'
27283  FOUND_GCJ_FALSE=
27284fi
27285
27286
27287
27288if test "x${user_specified_javac}" = xjikes; then
27289  FOUND_JIKES_TRUE=
27290  FOUND_JIKES_FALSE='#'
27291else
27292  FOUND_JIKES_TRUE='#'
27293  FOUND_JIKES_FALSE=
27294fi
27295
27296
27297
27298if test "x${user_specified_javac}" = xecj; then
27299  FOUND_ECJ_TRUE=
27300  FOUND_ECJ_FALSE='#'
27301else
27302  FOUND_ECJ_TRUE='#'
27303  FOUND_ECJ_FALSE=
27304fi
27305
27306  fi
27307
27308
27309if test "x${user_specified_javac}" = xkjc; then
27310  FOUND_KJC_TRUE=
27311  FOUND_KJC_FALSE='#'
27312else
27313  FOUND_KJC_TRUE='#'
27314  FOUND_KJC_FALSE=
27315fi
27316
27317
27318
27319if test "x${user_specified_javac}" = xgcjx; then
27320  FOUND_GCJX_TRUE=
27321  FOUND_GCJX_FALSE='#'
27322else
27323  FOUND_GCJX_TRUE='#'
27324  FOUND_GCJX_FALSE=
27325fi
27326
27327
27328  if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc && test "x${user_specified_javac}" != xgcjx; then
27329      # FIXME: use autoconf error function
27330      echo "configure: cannot find javac, try --with-gcj, --with-jikes, --with-kjc, or --with-gcjx" 1>&2
27331      exit 1
27332  fi
27333
27334
27335
27336
27337# Check whether --with-classpath was given.
27338if test "${with_classpath+set}" = set; then
27339  withval=$with_classpath;
27340    if test "x${withval}" = xyes; then
27341      # set user classpath to CLASSPATH from env
27342      { echo "$as_me:$LINENO: checking for classlib" >&5
27343echo $ECHO_N "checking for classlib... $ECHO_C" >&6; }
27344      USER_CLASSLIB=${CLASSPATH}
27345
27346      { echo "$as_me:$LINENO: result: ${USER_CLASSLIB}" >&5
27347echo "${ECHO_T}${USER_CLASSLIB}" >&6; }
27348      conditional_with_classlib=true
27349    elif test "x${withval}" != x && test "x${withval}" != xno; then
27350      # set user classpath to specified value
27351      { echo "$as_me:$LINENO: checking for classlib" >&5
27352echo $ECHO_N "checking for classlib... $ECHO_C" >&6; }
27353      USER_CLASSLIB=${withval}
27354
27355      { echo "$as_me:$LINENO: result: ${withval}" >&5
27356echo "${ECHO_T}${withval}" >&6; }
27357      conditional_with_classlib=true
27358    fi
27359
27360else
27361   conditional_with_classlib=false
27362fi
27363
27364
27365
27366if test "x${conditional_with_classlib}" = xtrue; then
27367  USER_SPECIFIED_CLASSLIB_TRUE=
27368  USER_SPECIFIED_CLASSLIB_FALSE='#'
27369else
27370  USER_SPECIFIED_CLASSLIB_TRUE='#'
27371  USER_SPECIFIED_CLASSLIB_FALSE=
27372fi
27373
27374
27375
27376# Check whether --with-vm-classes was given.
27377if test "${with_vm_classes+set}" = set; then
27378  withval=$with_vm_classes; vm_classes="$with_vm_classes"
27379else
27380  vm_classes='${top_srcdir}/vm/reference'
27381fi
27382
27383
27384
27385
27386{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
27387echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
27388    # Check whether --enable-maintainer-mode was given.
27389if test "${enable_maintainer_mode+set}" = set; then
27390  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
27391else
27392  USE_MAINTAINER_MODE=no
27393fi
27394
27395  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
27396echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
27397
27398
27399if test $USE_MAINTAINER_MODE = yes; then
27400  MAINTAINER_MODE_TRUE=
27401  MAINTAINER_MODE_FALSE='#'
27402else
27403  MAINTAINER_MODE_TRUE='#'
27404  MAINTAINER_MODE_FALSE=
27405fi
27406
27407  MAINT=$MAINTAINER_MODE_TRUE
27408
27409
27410
27411# Check whether --enable-debug was given.
27412if test "${enable_debug+set}" = set; then
27413  enableval=$enable_debug; case "${enableval}" in
27414                yes)
27415              	LIBDEBUG="true"
27416
27417cat >>confdefs.h <<\_ACEOF
27418#define DEBUG 1
27419_ACEOF
27420
27421              	;;
27422                no)   LIBDEBUG="false" ;;
27423                *) 	{ { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
27424echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
27425   { (exit 1); exit 1; }; } ;;
27426              esac
27427else
27428  LIBDEBUG="false"
27429fi
27430
27431
27432
27433# Check whether --enable-load-library was given.
27434if test "${enable_load_library+set}" = set; then
27435  enableval=$enable_load_library; case "${enableval}" in
27436                yes) INIT_LOAD_LIBRARY="true" ;;
27437                no) INIT_LOAD_LIBRARY="false" ;;
27438                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-load-library" >&5
27439echo "$as_me: error: bad value ${enableval} for --enable-load-library" >&2;}
27440   { (exit 1); exit 1; }; } ;;
27441              esac
27442else
27443  INIT_LOAD_LIBRARY="true"
27444fi
27445
27446
27447
27448
27449# Check whether --enable-java-lang-system-explicit-initialization was given.
27450if test "${enable_java_lang_system_explicit_initialization+set}" = set; then
27451  enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
27452                yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
27453                no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
27454                *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&5
27455echo "$as_me: error: bad value ${enableval} for --enable-java-lang-system-explicit-initialization" >&2;}
27456   { (exit 1); exit 1; }; } ;;
27457              esac
27458else
27459  JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
27460fi
27461
27462
27463
27464
27465REMOVE=""
27466
27467
27468# Extract the first word of "mkdir", so it can be a program name with args.
27469set dummy mkdir; ac_word=$2
27470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27472if test "${ac_cv_path_MKDIR+set}" = set; then
27473  echo $ECHO_N "(cached) $ECHO_C" >&6
27474else
27475  case $MKDIR in
27476  [\\/]* | ?:[\\/]*)
27477  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
27478  ;;
27479  *)
27480  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27481for as_dir in $PATH
27482do
27483  IFS=$as_save_IFS
27484  test -z "$as_dir" && as_dir=.
27485  for ac_exec_ext in '' $ac_executable_extensions; do
27486  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27487    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
27488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27489    break 2
27490  fi
27491done
27492done
27493IFS=$as_save_IFS
27494
27495  ;;
27496esac
27497fi
27498MKDIR=$ac_cv_path_MKDIR
27499if test -n "$MKDIR"; then
27500  { echo "$as_me:$LINENO: result: $MKDIR" >&5
27501echo "${ECHO_T}$MKDIR" >&6; }
27502else
27503  { echo "$as_me:$LINENO: result: no" >&5
27504echo "${ECHO_T}no" >&6; }
27505fi
27506
27507
27508# Extract the first word of "cp", so it can be a program name with args.
27509set dummy cp; ac_word=$2
27510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27512if test "${ac_cv_path_CP+set}" = set; then
27513  echo $ECHO_N "(cached) $ECHO_C" >&6
27514else
27515  case $CP in
27516  [\\/]* | ?:[\\/]*)
27517  ac_cv_path_CP="$CP" # Let the user override the test with a path.
27518  ;;
27519  *)
27520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27521for as_dir in $PATH
27522do
27523  IFS=$as_save_IFS
27524  test -z "$as_dir" && as_dir=.
27525  for ac_exec_ext in '' $ac_executable_extensions; do
27526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27527    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
27528    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27529    break 2
27530  fi
27531done
27532done
27533IFS=$as_save_IFS
27534
27535  ;;
27536esac
27537fi
27538CP=$ac_cv_path_CP
27539if test -n "$CP"; then
27540  { echo "$as_me:$LINENO: result: $CP" >&5
27541echo "${ECHO_T}$CP" >&6; }
27542else
27543  { echo "$as_me:$LINENO: result: no" >&5
27544echo "${ECHO_T}no" >&6; }
27545fi
27546
27547
27548# Extract the first word of "date", so it can be a program name with args.
27549set dummy date; ac_word=$2
27550{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27552if test "${ac_cv_path_DATE+set}" = set; then
27553  echo $ECHO_N "(cached) $ECHO_C" >&6
27554else
27555  case $DATE in
27556  [\\/]* | ?:[\\/]*)
27557  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
27558  ;;
27559  *)
27560  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27561for as_dir in $PATH
27562do
27563  IFS=$as_save_IFS
27564  test -z "$as_dir" && as_dir=.
27565  for ac_exec_ext in '' $ac_executable_extensions; do
27566  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27567    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
27568    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27569    break 2
27570  fi
27571done
27572done
27573IFS=$as_save_IFS
27574
27575  ;;
27576esac
27577fi
27578DATE=$ac_cv_path_DATE
27579if test -n "$DATE"; then
27580  { echo "$as_me:$LINENO: result: $DATE" >&5
27581echo "${ECHO_T}$DATE" >&6; }
27582else
27583  { echo "$as_me:$LINENO: result: no" >&5
27584echo "${ECHO_T}no" >&6; }
27585fi
27586
27587
27588
27589# Extract the first word of "find", so it can be a program name with args.
27590set dummy find; ac_word=$2
27591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27593if test "${ac_cv_path_FIND+set}" = set; then
27594  echo $ECHO_N "(cached) $ECHO_C" >&6
27595else
27596  case $FIND in
27597  [\\/]* | ?:[\\/]*)
27598  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
27599  ;;
27600  *)
27601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27602for as_dir in $PATH
27603do
27604  IFS=$as_save_IFS
27605  test -z "$as_dir" && as_dir=.
27606  for ac_exec_ext in '' $ac_executable_extensions; do
27607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27608    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
27609    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27610    break 2
27611  fi
27612done
27613done
27614IFS=$as_save_IFS
27615
27616  ;;
27617esac
27618fi
27619FIND=$ac_cv_path_FIND
27620if test -n "$FIND"; then
27621  { echo "$as_me:$LINENO: result: $FIND" >&5
27622echo "${ECHO_T}$FIND" >&6; }
27623else
27624  { echo "$as_me:$LINENO: result: no" >&5
27625echo "${ECHO_T}no" >&6; }
27626fi
27627
27628
27629
27630CLASSPATH_WITH_JAR
27631
27632
27633
27634# Check whether --with-compressed-classes was given.
27635if test "${with_compressed_classes+set}" = set; then
27636  withval=$with_compressed_classes;
27637	        FASTJAR_COMPRESSION_FLAGS=
27638		ZIP_COMPRESSION_FLAGS=
27639                if test "x${withval}" = xyes || test "x${withval}" = xstoreonly; then
27640	          FASTJAR_COMPRESSION_FLAGS="0"
27641		  ZIP_COMPRESSION_FLAGS="-0"
27642		  if test "x$JAR" = "x"; then
27643      		    # Extract the first word of "fastjar", so it can be a program name with args.
27644set dummy fastjar; ac_word=$2
27645{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27647if test "${ac_cv_path_FASTJAR+set}" = set; then
27648  echo $ECHO_N "(cached) $ECHO_C" >&6
27649else
27650  case $FASTJAR in
27651  [\\/]* | ?:[\\/]*)
27652  ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
27653  ;;
27654  *)
27655  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27656for as_dir in $PATH
27657do
27658  IFS=$as_save_IFS
27659  test -z "$as_dir" && as_dir=.
27660  for ac_exec_ext in '' $ac_executable_extensions; do
27661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27662    ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
27663    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27664    break 2
27665  fi
27666done
27667done
27668IFS=$as_save_IFS
27669
27670  ;;
27671esac
27672fi
27673FASTJAR=$ac_cv_path_FASTJAR
27674if test -n "$FASTJAR"; then
27675  { echo "$as_me:$LINENO: result: $FASTJAR" >&5
27676echo "${ECHO_T}$FASTJAR" >&6; }
27677else
27678  { echo "$as_me:$LINENO: result: no" >&5
27679echo "${ECHO_T}no" >&6; }
27680fi
27681
27682
27683		  else
27684		    FASTJAR="$JAR"
27685		  fi
27686		  if test "x${FASTJAR}" = x; then
27687		    # Extract the first word of "zip", so it can be a program name with args.
27688set dummy zip; ac_word=$2
27689{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27690echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27691if test "${ac_cv_path_ZIP+set}" = set; then
27692  echo $ECHO_N "(cached) $ECHO_C" >&6
27693else
27694  case $ZIP in
27695  [\\/]* | ?:[\\/]*)
27696  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
27697  ;;
27698  *)
27699  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27700for as_dir in $PATH
27701do
27702  IFS=$as_save_IFS
27703  test -z "$as_dir" && as_dir=.
27704  for ac_exec_ext in '' $ac_executable_extensions; do
27705  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27706    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
27707    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27708    break 2
27709  fi
27710done
27711done
27712IFS=$as_save_IFS
27713
27714  ;;
27715esac
27716fi
27717ZIP=$ac_cv_path_ZIP
27718if test -n "$ZIP"; then
27719  { echo "$as_me:$LINENO: result: $ZIP" >&5
27720echo "${ECHO_T}$ZIP" >&6; }
27721else
27722  { echo "$as_me:$LINENO: result: no" >&5
27723echo "${ECHO_T}no" >&6; }
27724fi
27725
27726
27727		  fi
27728		  install_class_files=no
27729		elif test "x${withval}" = xzip; then
27730		  # Extract the first word of "zip", so it can be a program name with args.
27731set dummy zip; ac_word=$2
27732{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27734if test "${ac_cv_path_ZIP+set}" = set; then
27735  echo $ECHO_N "(cached) $ECHO_C" >&6
27736else
27737  case $ZIP in
27738  [\\/]* | ?:[\\/]*)
27739  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
27740  ;;
27741  *)
27742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27743for as_dir in $PATH
27744do
27745  IFS=$as_save_IFS
27746  test -z "$as_dir" && as_dir=.
27747  for ac_exec_ext in '' $ac_executable_extensions; do
27748  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27749    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
27750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27751    break 2
27752  fi
27753done
27754done
27755IFS=$as_save_IFS
27756
27757  ;;
27758esac
27759fi
27760ZIP=$ac_cv_path_ZIP
27761if test -n "$ZIP"; then
27762  { echo "$as_me:$LINENO: result: $ZIP" >&5
27763echo "${ECHO_T}$ZIP" >&6; }
27764else
27765  { echo "$as_me:$LINENO: result: no" >&5
27766echo "${ECHO_T}no" >&6; }
27767fi
27768
27769
27770		  install_class_files=no
27771		elif test "x${withval}" = xflat; then
27772		  ZIP=
27773		  FASTJAR=
27774		  install_class_files=yes
27775                elif test "x${withval}" = xno; then
27776                  ZIP=
27777		  FASTJAR=
27778		  install_class_files=yes
27779                elif test "x${withval}" = xnone; then
27780                  ZIP=
27781		  FASTJAR=
27782		  install_class_files=no
27783                else
27784		  { { echo "$as_me:$LINENO: error: unknown value given to --with-compressed-classes" >&5
27785echo "$as_me: error: unknown value given to --with-compressed-classes" >&2;}
27786   { (exit 1); exit 1; }; }
27787                fi
27788
27789else
27790  	FASTJAR_COMPRESSION_FLAGS="0"
27791	        ZIP_COMPRESSION_FLAGS="-0"
27792	        if test "x$JAR" = "x"; then
27793		  # Extract the first word of "fastjar", so it can be a program name with args.
27794set dummy fastjar; ac_word=$2
27795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27797if test "${ac_cv_path_FASTJAR+set}" = set; then
27798  echo $ECHO_N "(cached) $ECHO_C" >&6
27799else
27800  case $FASTJAR in
27801  [\\/]* | ?:[\\/]*)
27802  ac_cv_path_FASTJAR="$FASTJAR" # Let the user override the test with a path.
27803  ;;
27804  *)
27805  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27806for as_dir in $PATH
27807do
27808  IFS=$as_save_IFS
27809  test -z "$as_dir" && as_dir=.
27810  for ac_exec_ext in '' $ac_executable_extensions; do
27811  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27812    ac_cv_path_FASTJAR="$as_dir/$ac_word$ac_exec_ext"
27813    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27814    break 2
27815  fi
27816done
27817done
27818IFS=$as_save_IFS
27819
27820  ;;
27821esac
27822fi
27823FASTJAR=$ac_cv_path_FASTJAR
27824if test -n "$FASTJAR"; then
27825  { echo "$as_me:$LINENO: result: $FASTJAR" >&5
27826echo "${ECHO_T}$FASTJAR" >&6; }
27827else
27828  { echo "$as_me:$LINENO: result: no" >&5
27829echo "${ECHO_T}no" >&6; }
27830fi
27831
27832
27833		else
27834		  FASTJAR="$JAR"
27835		fi
27836		if test "x${FASTJAR}" = x; then
27837		    # Extract the first word of "zip", so it can be a program name with args.
27838set dummy zip; ac_word=$2
27839{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27841if test "${ac_cv_path_ZIP+set}" = set; then
27842  echo $ECHO_N "(cached) $ECHO_C" >&6
27843else
27844  case $ZIP in
27845  [\\/]* | ?:[\\/]*)
27846  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
27847  ;;
27848  *)
27849  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27850for as_dir in $PATH
27851do
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_ZIP="$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
27860done
27861done
27862IFS=$as_save_IFS
27863
27864  ;;
27865esac
27866fi
27867ZIP=$ac_cv_path_ZIP
27868if test -n "$ZIP"; then
27869  { echo "$as_me:$LINENO: result: $ZIP" >&5
27870echo "${ECHO_T}$ZIP" >&6; }
27871else
27872  { echo "$as_me:$LINENO: result: no" >&5
27873echo "${ECHO_T}no" >&6; }
27874fi
27875
27876
27877		    if test "x${ZIP}" = x; then
27878			# if neither fastjar nor zip is found - install uncompressed
27879			install_class_files=yes
27880		    else
27881			install_class_files=no
27882		    fi
27883		else
27884		    install_class_files=no
27885		fi
27886
27887fi
27888
27889#  if test "x${FASTJAR}" = x && test "x${ZIP}" = x && test "x${install_class_files}" = xno; then
27890#    AC_MSG_ERROR([you need to either install class files or libclasspath.jar])
27891#  fi
27892  # Check whether --enable-examples was given.
27893if test "${enable_examples+set}" = set; then
27894  enableval=$enable_examples; case "${enableval}" in
27895		  yes) EXAMPLESDIR="examples" ;;
27896		  no) EXAMPLESDIR="" ;;
27897		  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-examples" >&5
27898echo "$as_me: error: bad value ${enableval} for --enable-examples" >&2;}
27899   { (exit 1); exit 1; }; } ;;
27900		esac
27901else
27902  EXAMPLESDIR="examples"
27903fi
27904
27905  if test "x${ZIP}" = x && test "x${install_class_files}" = xno; then
27906    EXAMPLESDIR=""
27907  fi
27908
27909
27910if test "x${ZIP}" != x || test "x${FASTJAR}" != x; then
27911  INSTALL_COMPRESSED_CLASS_FILES_TRUE=
27912  INSTALL_COMPRESSED_CLASS_FILES_FALSE='#'
27913else
27914  INSTALL_COMPRESSED_CLASS_FILES_TRUE='#'
27915  INSTALL_COMPRESSED_CLASS_FILES_FALSE=
27916fi
27917
27918
27919
27920if test "x${install_class_files}" = xyes; then
27921  INSTALL_CLASS_FILES_TRUE=
27922  INSTALL_CLASS_FILES_FALSE='#'
27923else
27924  INSTALL_CLASS_FILES_TRUE='#'
27925  INSTALL_CLASS_FILES_FALSE=
27926fi
27927
27928
27929
27930
27931
27932
27933
27934
27935# Check whether --with-gjdoc was given.
27936if test "${with_gjdoc+set}" = set; then
27937  withval=$with_gjdoc; if test "x${withval}" = xno; then
27938	         WITH_GJDOC=no;
27939	       elif test "x${withval}" = xyes -o "x{withval}" = x; then
27940	         WITH_GJDOC=yes;
27941	         # Extract the first word of "gjdoc", so it can be a program name with args.
27942set dummy gjdoc; ac_word=$2
27943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
27945if test "${ac_cv_path_GJDOC+set}" = set; then
27946  echo $ECHO_N "(cached) $ECHO_C" >&6
27947else
27948  case $GJDOC in
27949  [\\/]* | ?:[\\/]*)
27950  ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
27951  ;;
27952  *)
27953  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27954for as_dir in $PATH
27955do
27956  IFS=$as_save_IFS
27957  test -z "$as_dir" && as_dir=.
27958  for ac_exec_ext in '' $ac_executable_extensions; do
27959  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27960    ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
27961    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27962    break 2
27963  fi
27964done
27965done
27966IFS=$as_save_IFS
27967
27968  test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
27969  ;;
27970esac
27971fi
27972GJDOC=$ac_cv_path_GJDOC
27973if test -n "$GJDOC"; then
27974  { echo "$as_me:$LINENO: result: $GJDOC" >&5
27975echo "${ECHO_T}$GJDOC" >&6; }
27976else
27977  { echo "$as_me:$LINENO: result: no" >&5
27978echo "${ECHO_T}no" >&6; }
27979fi
27980
27981
27982		 if test "x${GJDOC}" = xno; then
27983		   { { echo "$as_me:$LINENO: error: \"gjdoc executable not found\"" >&5
27984echo "$as_me: error: \"gjdoc executable not found\"" >&2;}
27985   { (exit 1); exit 1; }; };
27986		 fi
27987	       else
27988	         WITH_GJDOC=yes
27989		 GJDOC="${withval}"
27990		 as_ac_File=`echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
27991{ echo "$as_me:$LINENO: checking for ${GJDOC}" >&5
27992echo $ECHO_N "checking for ${GJDOC}... $ECHO_C" >&6; }
27993if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
27994  echo $ECHO_N "(cached) $ECHO_C" >&6
27995else
27996  test "$cross_compiling" = yes &&
27997  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27998echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27999   { (exit 1); exit 1; }; }
28000if test -r "${GJDOC}"; then
28001  eval "$as_ac_File=yes"
28002else
28003  eval "$as_ac_File=no"
28004fi
28005fi
28006ac_res=`eval echo '${'$as_ac_File'}'`
28007	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28008echo "${ECHO_T}$ac_res" >&6; }
28009if test `eval echo '${'$as_ac_File'}'` = yes; then
28010  :
28011else
28012  { { echo "$as_me:$LINENO: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&5
28013echo "$as_me: error: \"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" >&2;}
28014   { (exit 1); exit 1; }; }
28015fi
28016
28017	       fi
28018else
28019  WITH_GJDOC=no
28020fi
28021
28022
28023
28024
28025if test "x${WITH_GJDOC}" = xyes; then
28026  CREATE_API_DOCS_TRUE=
28027  CREATE_API_DOCS_FALSE='#'
28028else
28029  CREATE_API_DOCS_TRUE='#'
28030  CREATE_API_DOCS_FALSE=
28031fi
28032
28033
28034
28035
28036
28037# Check whether --with-jay was given.
28038if test "${with_jay+set}" = set; then
28039  withval=$with_jay;
28040    if test -d "${withval}"; then
28041      JAY_DIR_PATH="${withval}"
28042      # Extract the first word of "jay", so it can be a program name with args.
28043set dummy jay; ac_word=$2
28044{ echo "$as_me:$LINENO: checking for $ac_word" >&5
28045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
28046if test "${ac_cv_path_JAY+set}" = set; then
28047  echo $ECHO_N "(cached) $ECHO_C" >&6
28048else
28049  case $JAY in
28050  [\\/]* | ?:[\\/]*)
28051  ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
28052  ;;
28053  *)
28054  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28055for as_dir in ${JAY_DIR_PATH}
28056do
28057  IFS=$as_save_IFS
28058  test -z "$as_dir" && as_dir=.
28059  for ac_exec_ext in '' $ac_executable_extensions; do
28060  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28061    ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
28062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28063    break 2
28064  fi
28065done
28066done
28067IFS=$as_save_IFS
28068
28069  test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
28070  ;;
28071esac
28072fi
28073JAY=$ac_cv_path_JAY
28074if test -n "$JAY"; then
28075  { echo "$as_me:$LINENO: result: $JAY" >&5
28076echo "${ECHO_T}$JAY" >&6; }
28077else
28078  { echo "$as_me:$LINENO: result: no" >&5
28079echo "${ECHO_T}no" >&6; }
28080fi
28081
28082
28083      if test "x${JAY}" = xno; then
28084        { { echo "$as_me:$LINENO: error: \"jay executable not found\"" >&5
28085echo "$as_me: error: \"jay executable not found\"" >&2;}
28086   { (exit 1); exit 1; }; };
28087      fi
28088    else
28089      JAY_DIR_PATH=$(dirname "${withval}")
28090      JAY="${withval}"
28091
28092    fi
28093    JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
28094    as_ac_File=`echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
28095{ echo "$as_me:$LINENO: checking for ${JAY_SKELETON}" >&5
28096echo $ECHO_N "checking for ${JAY_SKELETON}... $ECHO_C" >&6; }
28097if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
28098  echo $ECHO_N "(cached) $ECHO_C" >&6
28099else
28100  test "$cross_compiling" = yes &&
28101  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28102echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28103   { (exit 1); exit 1; }; }
28104if test -r "${JAY_SKELETON}"; then
28105  eval "$as_ac_File=yes"
28106else
28107  eval "$as_ac_File=no"
28108fi
28109fi
28110ac_res=`eval echo '${'$as_ac_File'}'`
28111	       { echo "$as_me:$LINENO: result: $ac_res" >&5
28112echo "${ECHO_T}$ac_res" >&6; }
28113if test `eval echo '${'$as_ac_File'}'` = yes; then
28114  :
28115else
28116  { { echo "$as_me:$LINENO: error: \"Expected skeleton file in $(dirname ${withval})\"" >&5
28117echo "$as_me: error: \"Expected skeleton file in $(dirname ${withval})\"" >&2;}
28118   { (exit 1); exit 1; }; }
28119fi
28120
28121    JAY_FOUND=yes
28122
28123else
28124
28125    JAY_FOUND=no
28126
28127fi
28128
28129
28130
28131if test "x${JAY_FOUND}" = xyes; then
28132  REGEN_PARSERS_TRUE=
28133  REGEN_PARSERS_FALSE='#'
28134else
28135  REGEN_PARSERS_TRUE='#'
28136  REGEN_PARSERS_FALSE=
28137fi
28138
28139
28140
28141# Check whether --enable-portable-native-sync was given.
28142if test "${enable_portable_native_sync+set}" = set; then
28143  enableval=$enable_portable_native_sync; case "${enableval}" in
28144                yes)
28145
28146cat >>confdefs.h <<\_ACEOF
28147#define PORTABLE_NATIVE_SYNC 1
28148_ACEOF
28149
28150                     ;;
28151                no)  ;;
28152                *)
28153                     { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portable-native-sync" >&5
28154echo "$as_me: error: bad value ${enableval} for --enable-portable-native-sync" >&2;}
28155   { (exit 1); exit 1; }; }
28156                     ;;
28157              esac
28158fi
28159
28160
28161ac_config_files="$ac_config_files Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile gnu/classpath/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/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/target/Makefile native/target/Linux/Makefile native/target/generic/Makefile resource/Makefile scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh"
28162
28163ac_config_commands="$ac_config_commands gen-classlist"
28164
28165ac_config_commands="$ac_config_commands copy-vmresources"
28166
28167cat >confcache <<\_ACEOF
28168# This file is a shell script that caches the results of configure
28169# tests run on this system so they can be shared between configure
28170# scripts and configure runs, see configure's option --config-cache.
28171# It is not useful on other systems.  If it contains results you don't
28172# want to keep, you may remove or edit it.
28173#
28174# config.status only pays attention to the cache file if you give it
28175# the --recheck option to rerun configure.
28176#
28177# `ac_cv_env_foo' variables (set or unset) will be overridden when
28178# loading this file, other *unset* `ac_cv_foo' will be assigned the
28179# following values.
28180
28181_ACEOF
28182
28183# The following way of writing the cache mishandles newlines in values,
28184# but we know of no workaround that is simple, portable, and efficient.
28185# So, we kill variables containing newlines.
28186# Ultrix sh set writes to stderr and can't be redirected directly,
28187# and sets the high bit in the cache file unless we assign to the vars.
28188(
28189  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28190    eval ac_val=\$$ac_var
28191    case $ac_val in #(
28192    *${as_nl}*)
28193      case $ac_var in #(
28194      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
28195echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
28196      esac
28197      case $ac_var in #(
28198      _ | IFS | as_nl) ;; #(
28199      *) $as_unset $ac_var ;;
28200      esac ;;
28201    esac
28202  done
28203
28204  (set) 2>&1 |
28205    case $as_nl`(ac_space=' '; set) 2>&1` in #(
28206    *${as_nl}ac_space=\ *)
28207      # `set' does not quote correctly, so add quotes (double-quote
28208      # substitution turns \\\\ into \\, and sed turns \\ into \).
28209      sed -n \
28210	"s/'/'\\\\''/g;
28211	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28212      ;; #(
28213    *)
28214      # `set' quotes correctly as required by POSIX, so do not add quotes.
28215      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28216      ;;
28217    esac |
28218    sort
28219) |
28220  sed '
28221     /^ac_cv_env_/b end
28222     t clear
28223     :clear
28224     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28225     t end
28226     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28227     :end' >>confcache
28228if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28229  if test -w "$cache_file"; then
28230    test "x$cache_file" != "x/dev/null" &&
28231      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
28232echo "$as_me: updating cache $cache_file" >&6;}
28233    cat confcache >$cache_file
28234  else
28235    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
28236echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28237  fi
28238fi
28239rm -f confcache
28240
28241test "x$prefix" = xNONE && prefix=$ac_default_prefix
28242# Let make expand exec_prefix.
28243test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28244
28245DEFS=-DHAVE_CONFIG_H
28246
28247ac_libobjs=
28248ac_ltlibobjs=
28249for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28250  # 1. Remove the extension, and $U if already installed.
28251  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28252  ac_i=`echo "$ac_i" | sed "$ac_script"`
28253  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28254  #    will be set to the directory where LIBOBJS objects are built.
28255  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28256  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
28257done
28258LIBOBJS=$ac_libobjs
28259
28260LTLIBOBJS=$ac_ltlibobjs
28261
28262
28263if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
28264  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
28265Usually this means the macro was only invoked conditionally." >&5
28266echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
28267Usually this means the macro was only invoked conditionally." >&2;}
28268   { (exit 1); exit 1; }; }
28269fi
28270if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
28271  { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
28272Usually this means the macro was only invoked conditionally." >&5
28273echo "$as_me: error: conditional \"CREATE_JNI_LIBRARIES\" was never defined.
28274Usually this means the macro was only invoked conditionally." >&2;}
28275   { (exit 1); exit 1; }; }
28276fi
28277if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
28278  { { echo "$as_me:$LINENO: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
28279Usually this means the macro was only invoked conditionally." >&5
28280echo "$as_me: error: conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
28281Usually this means the macro was only invoked conditionally." >&2;}
28282   { (exit 1); exit 1; }; }
28283fi
28284if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
28285  { { echo "$as_me:$LINENO: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
28286Usually this means the macro was only invoked conditionally." >&5
28287echo "$as_me: error: conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
28288Usually this means the macro was only invoked conditionally." >&2;}
28289   { (exit 1); exit 1; }; }
28290fi
28291if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28292  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28293Usually this means the macro was only invoked conditionally." >&5
28294echo "$as_me: error: conditional \"AMDEP\" was never defined.
28295Usually this means the macro was only invoked conditionally." >&2;}
28296   { (exit 1); exit 1; }; }
28297fi
28298if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28299  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28300Usually this means the macro was only invoked conditionally." >&5
28301echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28302Usually this means the macro was only invoked conditionally." >&2;}
28303   { (exit 1); exit 1; }; }
28304fi
28305if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
28306  { { echo "$as_me:$LINENO: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
28307Usually this means the macro was only invoked conditionally." >&5
28308echo "$as_me: error: conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
28309Usually this means the macro was only invoked conditionally." >&2;}
28310   { (exit 1); exit 1; }; }
28311fi
28312if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
28313  { { echo "$as_me:$LINENO: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
28314Usually this means the macro was only invoked conditionally." >&5
28315echo "$as_me: error: conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
28316Usually this means the macro was only invoked conditionally." >&2;}
28317   { (exit 1); exit 1; }; }
28318fi
28319if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
28320  { { echo "$as_me:$LINENO: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
28321Usually this means the macro was only invoked conditionally." >&5
28322echo "$as_me: error: conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
28323Usually this means the macro was only invoked conditionally." >&2;}
28324   { (exit 1); exit 1; }; }
28325fi
28326if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
28327  { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
28328Usually this means the macro was only invoked conditionally." >&5
28329echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
28330Usually this means the macro was only invoked conditionally." >&2;}
28331   { (exit 1); exit 1; }; }
28332fi
28333if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
28334  { { echo "$as_me:$LINENO: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
28335Usually this means the macro was only invoked conditionally." >&5
28336echo "$as_me: error: conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
28337Usually this means the macro was only invoked conditionally." >&2;}
28338   { (exit 1); exit 1; }; }
28339fi
28340if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
28341  { { echo "$as_me:$LINENO: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
28342Usually this means the macro was only invoked conditionally." >&5
28343echo "$as_me: error: conditional \"CREATE_JNI_HEADERS\" was never defined.
28344Usually this means the macro was only invoked conditionally." >&2;}
28345   { (exit 1); exit 1; }; }
28346fi
28347if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28348  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
28349Usually this means the macro was only invoked conditionally." >&5
28350echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
28351Usually this means the macro was only invoked conditionally." >&2;}
28352   { (exit 1); exit 1; }; }
28353fi
28354if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28355  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28356Usually this means the macro was only invoked conditionally." >&5
28357echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28358Usually this means the macro was only invoked conditionally." >&2;}
28359   { (exit 1); exit 1; }; }
28360fi
28361if test -z "${USER_SPECIFIED_JAVAH_TRUE}" && test -z "${USER_SPECIFIED_JAVAH_FALSE}"; then
28362  { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
28363Usually this means the macro was only invoked conditionally." >&5
28364echo "$as_me: error: conditional \"USER_SPECIFIED_JAVAH\" was never defined.
28365Usually this means the macro was only invoked conditionally." >&2;}
28366   { (exit 1); exit 1; }; }
28367fi
28368if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
28369  { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
28370Usually this means the macro was only invoked conditionally." >&5
28371echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
28372Usually this means the macro was only invoked conditionally." >&2;}
28373   { (exit 1); exit 1; }; }
28374fi
28375if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
28376  { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
28377Usually this means the macro was only invoked conditionally." >&5
28378echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
28379Usually this means the macro was only invoked conditionally." >&2;}
28380   { (exit 1); exit 1; }; }
28381fi
28382if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
28383  { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
28384Usually this means the macro was only invoked conditionally." >&5
28385echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
28386Usually this means the macro was only invoked conditionally." >&2;}
28387   { (exit 1); exit 1; }; }
28388fi
28389if test -z "${FOUND_GCJ_TRUE}" && test -z "${FOUND_GCJ_FALSE}"; then
28390  { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJ\" was never defined.
28391Usually this means the macro was only invoked conditionally." >&5
28392echo "$as_me: error: conditional \"FOUND_GCJ\" was never defined.
28393Usually this means the macro was only invoked conditionally." >&2;}
28394   { (exit 1); exit 1; }; }
28395fi
28396if test -z "${FOUND_JIKES_TRUE}" && test -z "${FOUND_JIKES_FALSE}"; then
28397  { { echo "$as_me:$LINENO: error: conditional \"FOUND_JIKES\" was never defined.
28398Usually this means the macro was only invoked conditionally." >&5
28399echo "$as_me: error: conditional \"FOUND_JIKES\" was never defined.
28400Usually this means the macro was only invoked conditionally." >&2;}
28401   { (exit 1); exit 1; }; }
28402fi
28403if test -z "${FOUND_ECJ_TRUE}" && test -z "${FOUND_ECJ_FALSE}"; then
28404  { { echo "$as_me:$LINENO: error: conditional \"FOUND_ECJ\" was never defined.
28405Usually this means the macro was only invoked conditionally." >&5
28406echo "$as_me: error: conditional \"FOUND_ECJ\" was never defined.
28407Usually this means the macro was only invoked conditionally." >&2;}
28408   { (exit 1); exit 1; }; }
28409fi
28410if test -z "${FOUND_KJC_TRUE}" && test -z "${FOUND_KJC_FALSE}"; then
28411  { { echo "$as_me:$LINENO: error: conditional \"FOUND_KJC\" was never defined.
28412Usually this means the macro was only invoked conditionally." >&5
28413echo "$as_me: error: conditional \"FOUND_KJC\" was never defined.
28414Usually this means the macro was only invoked conditionally." >&2;}
28415   { (exit 1); exit 1; }; }
28416fi
28417if test -z "${FOUND_GCJX_TRUE}" && test -z "${FOUND_GCJX_FALSE}"; then
28418  { { echo "$as_me:$LINENO: error: conditional \"FOUND_GCJX\" was never defined.
28419Usually this means the macro was only invoked conditionally." >&5
28420echo "$as_me: error: conditional \"FOUND_GCJX\" was never defined.
28421Usually this means the macro was only invoked conditionally." >&2;}
28422   { (exit 1); exit 1; }; }
28423fi
28424if test -z "${USER_SPECIFIED_CLASSLIB_TRUE}" && test -z "${USER_SPECIFIED_CLASSLIB_FALSE}"; then
28425  { { echo "$as_me:$LINENO: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
28426Usually this means the macro was only invoked conditionally." >&5
28427echo "$as_me: error: conditional \"USER_SPECIFIED_CLASSLIB\" was never defined.
28428Usually this means the macro was only invoked conditionally." >&2;}
28429   { (exit 1); exit 1; }; }
28430fi
28431if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28432  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28433Usually this means the macro was only invoked conditionally." >&5
28434echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28435Usually this means the macro was only invoked conditionally." >&2;}
28436   { (exit 1); exit 1; }; }
28437fi
28438if test -z "${INSTALL_COMPRESSED_CLASS_FILES_TRUE}" && test -z "${INSTALL_COMPRESSED_CLASS_FILES_FALSE}"; then
28439  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_COMPRESSED_CLASS_FILES\" was never defined.
28440Usually this means the macro was only invoked conditionally." >&5
28441echo "$as_me: error: conditional \"INSTALL_COMPRESSED_CLASS_FILES\" was never defined.
28442Usually this means the macro was only invoked conditionally." >&2;}
28443   { (exit 1); exit 1; }; }
28444fi
28445if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
28446  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
28447Usually this means the macro was only invoked conditionally." >&5
28448echo "$as_me: error: conditional \"INSTALL_CLASS_FILES\" was never defined.
28449Usually this means the macro was only invoked conditionally." >&2;}
28450   { (exit 1); exit 1; }; }
28451fi
28452if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
28453  { { echo "$as_me:$LINENO: error: conditional \"CREATE_API_DOCS\" was never defined.
28454Usually this means the macro was only invoked conditionally." >&5
28455echo "$as_me: error: conditional \"CREATE_API_DOCS\" was never defined.
28456Usually this means the macro was only invoked conditionally." >&2;}
28457   { (exit 1); exit 1; }; }
28458fi
28459if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
28460  { { echo "$as_me:$LINENO: error: conditional \"REGEN_PARSERS\" was never defined.
28461Usually this means the macro was only invoked conditionally." >&5
28462echo "$as_me: error: conditional \"REGEN_PARSERS\" was never defined.
28463Usually this means the macro was only invoked conditionally." >&2;}
28464   { (exit 1); exit 1; }; }
28465fi
28466
28467: ${CONFIG_STATUS=./config.status}
28468ac_clean_files_save=$ac_clean_files
28469ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28470{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28471echo "$as_me: creating $CONFIG_STATUS" >&6;}
28472cat >$CONFIG_STATUS <<_ACEOF
28473#! $SHELL
28474# Generated by $as_me.
28475# Run this file to recreate the current configuration.
28476# Compiler output produced by configure, useful for debugging
28477# configure, is in config.log if it exists.
28478
28479debug=false
28480ac_cs_recheck=false
28481ac_cs_silent=false
28482SHELL=\${CONFIG_SHELL-$SHELL}
28483_ACEOF
28484
28485cat >>$CONFIG_STATUS <<\_ACEOF
28486## --------------------- ##
28487## M4sh Initialization.  ##
28488## --------------------- ##
28489
28490# Be more Bourne compatible
28491DUALCASE=1; export DUALCASE # for MKS sh
28492if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28493  emulate sh
28494  NULLCMD=:
28495  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28496  # is contrary to our usage.  Disable this feature.
28497  alias -g '${1+"$@"}'='"$@"'
28498  setopt NO_GLOB_SUBST
28499else
28500  case `(set -o) 2>/dev/null` in
28501  *posix*) set -o posix ;;
28502esac
28503
28504fi
28505
28506
28507
28508
28509# PATH needs CR
28510# Avoid depending upon Character Ranges.
28511as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28512as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28513as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28514as_cr_digits='0123456789'
28515as_cr_alnum=$as_cr_Letters$as_cr_digits
28516
28517# The user is always right.
28518if test "${PATH_SEPARATOR+set}" != set; then
28519  echo "#! /bin/sh" >conf$$.sh
28520  echo  "exit 0"   >>conf$$.sh
28521  chmod +x conf$$.sh
28522  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
28523    PATH_SEPARATOR=';'
28524  else
28525    PATH_SEPARATOR=:
28526  fi
28527  rm -f conf$$.sh
28528fi
28529
28530# Support unset when possible.
28531if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28532  as_unset=unset
28533else
28534  as_unset=false
28535fi
28536
28537
28538# IFS
28539# We need space, tab and new line, in precisely that order.  Quoting is
28540# there to prevent editors from complaining about space-tab.
28541# (If _AS_PATH_WALK were called with IFS unset, it would disable word
28542# splitting by setting IFS to empty value.)
28543as_nl='
28544'
28545IFS=" ""	$as_nl"
28546
28547# Find who we are.  Look in the path if we contain no directory separator.
28548case $0 in
28549  *[\\/]* ) as_myself=$0 ;;
28550  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28551for as_dir in $PATH
28552do
28553  IFS=$as_save_IFS
28554  test -z "$as_dir" && as_dir=.
28555  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28556done
28557IFS=$as_save_IFS
28558
28559     ;;
28560esac
28561# We did not find ourselves, most probably we were run as `sh COMMAND'
28562# in which case we are not to be found in the path.
28563if test "x$as_myself" = x; then
28564  as_myself=$0
28565fi
28566if test ! -f "$as_myself"; then
28567  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28568  { (exit 1); exit 1; }
28569fi
28570
28571# Work around bugs in pre-3.0 UWIN ksh.
28572for as_var in ENV MAIL MAILPATH
28573do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28574done
28575PS1='$ '
28576PS2='> '
28577PS4='+ '
28578
28579# NLS nuisances.
28580for as_var in \
28581  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28582  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28583  LC_TELEPHONE LC_TIME
28584do
28585  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28586    eval $as_var=C; export $as_var
28587  else
28588    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
28589  fi
28590done
28591
28592# Required to use basename.
28593if expr a : '\(a\)' >/dev/null 2>&1 &&
28594   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28595  as_expr=expr
28596else
28597  as_expr=false
28598fi
28599
28600if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28601  as_basename=basename
28602else
28603  as_basename=false
28604fi
28605
28606
28607# Name of the executable.
28608as_me=`$as_basename -- "$0" ||
28609$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28610	 X"$0" : 'X\(//\)$' \| \
28611	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28612echo X/"$0" |
28613    sed '/^.*\/\([^/][^/]*\)\/*$/{
28614	    s//\1/
28615	    q
28616	  }
28617	  /^X\/\(\/\/\)$/{
28618	    s//\1/
28619	    q
28620	  }
28621	  /^X\/\(\/\).*/{
28622	    s//\1/
28623	    q
28624	  }
28625	  s/.*/./; q'`
28626
28627# CDPATH.
28628$as_unset CDPATH
28629
28630
28631
28632  as_lineno_1=$LINENO
28633  as_lineno_2=$LINENO
28634  test "x$as_lineno_1" != "x$as_lineno_2" &&
28635  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
28636
28637  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
28638  # uniformly replaced by the line number.  The first 'sed' inserts a
28639  # line-number line after each line using $LINENO; the second 'sed'
28640  # does the real work.  The second script uses 'N' to pair each
28641  # line-number line with the line containing $LINENO, and appends
28642  # trailing '-' during substitution so that $LINENO is not a special
28643  # case at line end.
28644  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
28645  # scripts with optimization help from Paolo Bonzini.  Blame Lee
28646  # E. McMahon (1931-1989) for sed's syntax.  :-)
28647  sed -n '
28648    p
28649    /[$]LINENO/=
28650  ' <$as_myself |
28651    sed '
28652      s/[$]LINENO.*/&-/
28653      t lineno
28654      b
28655      :lineno
28656      N
28657      :loop
28658      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
28659      t loop
28660      s/-\n.*//
28661    ' >$as_me.lineno &&
28662  chmod +x "$as_me.lineno" ||
28663    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
28664   { (exit 1); exit 1; }; }
28665
28666  # Don't try to exec as it changes $[0], causing all sort of problems
28667  # (the dirname of $[0] is not the place where we might find the
28668  # original and so on.  Autoconf is especially sensitive to this).
28669  . "./$as_me.lineno"
28670  # Exit status is that of the last command.
28671  exit
28672}
28673
28674
28675if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28676  as_dirname=dirname
28677else
28678  as_dirname=false
28679fi
28680
28681ECHO_C= ECHO_N= ECHO_T=
28682case `echo -n x` in
28683-n*)
28684  case `echo 'x\c'` in
28685  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
28686  *)   ECHO_C='\c';;
28687  esac;;
28688*)
28689  ECHO_N='-n';;
28690esac
28691
28692if expr a : '\(a\)' >/dev/null 2>&1 &&
28693   test "X`expr 00001 : '.*\(...\)'`" = X001; then
28694  as_expr=expr
28695else
28696  as_expr=false
28697fi
28698
28699rm -f conf$$ conf$$.exe conf$$.file
28700if test -d conf$$.dir; then
28701  rm -f conf$$.dir/conf$$.file
28702else
28703  rm -f conf$$.dir
28704  mkdir conf$$.dir
28705fi
28706echo >conf$$.file
28707if ln -s conf$$.file conf$$ 2>/dev/null; then
28708  as_ln_s='ln -s'
28709  # ... but there are two gotchas:
28710  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28711  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28712  # In both cases, we have to default to `cp -p'.
28713  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28714    as_ln_s='cp -p'
28715elif ln conf$$.file conf$$ 2>/dev/null; then
28716  as_ln_s=ln
28717else
28718  as_ln_s='cp -p'
28719fi
28720rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28721rmdir conf$$.dir 2>/dev/null
28722
28723if mkdir -p . 2>/dev/null; then
28724  as_mkdir_p=:
28725else
28726  test -d ./-p && rmdir ./-p
28727  as_mkdir_p=false
28728fi
28729
28730if test -x / >/dev/null 2>&1; then
28731  as_test_x='test -x'
28732else
28733  if ls -dL / >/dev/null 2>&1; then
28734    as_ls_L_option=L
28735  else
28736    as_ls_L_option=
28737  fi
28738  as_test_x='
28739    eval sh -c '\''
28740      if test -d "$1"; then
28741        test -d "$1/.";
28742      else
28743	case $1 in
28744        -*)set "./$1";;
28745	esac;
28746	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
28747	???[sx]*):;;*)false;;esac;fi
28748    '\'' sh
28749  '
28750fi
28751as_executable_p=$as_test_x
28752
28753# Sed expression to map a string onto a valid CPP name.
28754as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28755
28756# Sed expression to map a string onto a valid variable name.
28757as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28758
28759
28760exec 6>&1
28761
28762# Save the log message, to keep $[0] and so on meaningful, and to
28763# report actual input values of CONFIG_FILES etc. instead of their
28764# values after options handling.
28765ac_log="
28766This file was extended by sablevm-classpath $as_me 1.13, which was
28767generated by GNU Autoconf 2.61.  Invocation command line was
28768
28769  CONFIG_FILES    = $CONFIG_FILES
28770  CONFIG_HEADERS  = $CONFIG_HEADERS
28771  CONFIG_LINKS    = $CONFIG_LINKS
28772  CONFIG_COMMANDS = $CONFIG_COMMANDS
28773  $ $0 $@
28774
28775on `(hostname || uname -n) 2>/dev/null | sed 1q`
28776"
28777
28778_ACEOF
28779
28780cat >>$CONFIG_STATUS <<_ACEOF
28781# Files that config.status was made for.
28782config_files="$ac_config_files"
28783config_headers="$ac_config_headers"
28784config_links="$ac_config_links"
28785config_commands="$ac_config_commands"
28786
28787_ACEOF
28788
28789cat >>$CONFIG_STATUS <<\_ACEOF
28790ac_cs_usage="\
28791\`$as_me' instantiates files from templates according to the
28792current configuration.
28793
28794Usage: $0 [OPTIONS] [FILE]...
28795
28796  -h, --help       print this help, then exit
28797  -V, --version    print version number and configuration settings, then exit
28798  -q, --quiet      do not print progress messages
28799  -d, --debug      don't remove temporary files
28800      --recheck    update $as_me by reconfiguring in the same conditions
28801  --file=FILE[:TEMPLATE]
28802		   instantiate the configuration file FILE
28803  --header=FILE[:TEMPLATE]
28804		   instantiate the configuration header FILE
28805
28806Configuration files:
28807$config_files
28808
28809Configuration headers:
28810$config_headers
28811
28812Configuration links:
28813$config_links
28814
28815Configuration commands:
28816$config_commands
28817
28818Report bugs to <bug-autoconf@gnu.org>."
28819
28820_ACEOF
28821cat >>$CONFIG_STATUS <<_ACEOF
28822ac_cs_version="\\
28823sablevm-classpath config.status 1.13
28824configured by $0, generated by GNU Autoconf 2.61,
28825  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
28826
28827Copyright (C) 2006 Free Software Foundation, Inc.
28828This config.status script is free software; the Free Software Foundation
28829gives unlimited permission to copy, distribute and modify it."
28830
28831ac_pwd='$ac_pwd'
28832srcdir='$srcdir'
28833INSTALL='$INSTALL'
28834_ACEOF
28835
28836cat >>$CONFIG_STATUS <<\_ACEOF
28837# If no file are specified by the user, then we need to provide default
28838# value.  By we need to know if files were specified by the user.
28839ac_need_defaults=:
28840while test $# != 0
28841do
28842  case $1 in
28843  --*=*)
28844    ac_option=`expr "X$1" : 'X\([^=]*\)='`
28845    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
28846    ac_shift=:
28847    ;;
28848  *)
28849    ac_option=$1
28850    ac_optarg=$2
28851    ac_shift=shift
28852    ;;
28853  esac
28854
28855  case $ac_option in
28856  # Handling of the options.
28857  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
28858    ac_cs_recheck=: ;;
28859  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
28860    echo "$ac_cs_version"; exit ;;
28861  --debug | --debu | --deb | --de | --d | -d )
28862    debug=: ;;
28863  --file | --fil | --fi | --f )
28864    $ac_shift
28865    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
28866    ac_need_defaults=false;;
28867  --header | --heade | --head | --hea )
28868    $ac_shift
28869    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
28870    ac_need_defaults=false;;
28871  --he | --h)
28872    # Conflict between --help and --header
28873    { echo "$as_me: error: ambiguous option: $1
28874Try \`$0 --help' for more information." >&2
28875   { (exit 1); exit 1; }; };;
28876  --help | --hel | -h )
28877    echo "$ac_cs_usage"; exit ;;
28878  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
28879  | -silent | --silent | --silen | --sile | --sil | --si | --s)
28880    ac_cs_silent=: ;;
28881
28882  # This is an error.
28883  -*) { echo "$as_me: error: unrecognized option: $1
28884Try \`$0 --help' for more information." >&2
28885   { (exit 1); exit 1; }; } ;;
28886
28887  *) ac_config_targets="$ac_config_targets $1"
28888     ac_need_defaults=false ;;
28889
28890  esac
28891  shift
28892done
28893
28894ac_configure_extra_args=
28895
28896if $ac_cs_silent; then
28897  exec 6>/dev/null
28898  ac_configure_extra_args="$ac_configure_extra_args --silent"
28899fi
28900
28901_ACEOF
28902cat >>$CONFIG_STATUS <<_ACEOF
28903if \$ac_cs_recheck; then
28904  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
28905  CONFIG_SHELL=$SHELL
28906  export CONFIG_SHELL
28907  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
28908fi
28909
28910_ACEOF
28911cat >>$CONFIG_STATUS <<\_ACEOF
28912exec 5>>config.log
28913{
28914  echo
28915  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
28916## Running $as_me. ##
28917_ASBOX
28918  echo "$ac_log"
28919} >&5
28920
28921_ACEOF
28922cat >>$CONFIG_STATUS <<_ACEOF
28923#
28924# INIT-COMMANDS
28925#
28926AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
28927
28928_ACEOF
28929
28930cat >>$CONFIG_STATUS <<\_ACEOF
28931
28932# Handling of arguments.
28933for ac_config_target in $ac_config_targets
28934do
28935  case $ac_config_target in
28936    "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
28937    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
28938    "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
28939    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
28940    "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
28941    "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
28942    "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
28943    "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
28944    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
28945    "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
28946    "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
28947    "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
28948    "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
28949    "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
28950    "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
28951    "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
28952    "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
28953    "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
28954    "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
28955    "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
28956    "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
28957    "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
28958    "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
28959    "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
28960    "native/target/Makefile") CONFIG_FILES="$CONFIG_FILES native/target/Makefile" ;;
28961    "native/target/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES native/target/Linux/Makefile" ;;
28962    "native/target/generic/Makefile") CONFIG_FILES="$CONFIG_FILES native/target/generic/Makefile" ;;
28963    "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
28964    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
28965    "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
28966    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
28967    "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
28968    "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
28969    "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
28970    "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
28971
28972  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
28973echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
28974   { (exit 1); exit 1; }; };;
28975  esac
28976done
28977
28978
28979# If the user did not use the arguments to specify the items to instantiate,
28980# then the envvar interface is used.  Set only those that are not.
28981# We use the long form for the default assignment because of an extremely
28982# bizarre bug on SunOS 4.1.3.
28983if $ac_need_defaults; then
28984  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
28985  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
28986  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
28987  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
28988fi
28989
28990# Have a temporary directory for convenience.  Make it in the build tree
28991# simply because there is no reason against having it here, and in addition,
28992# creating and moving files from /tmp can sometimes cause problems.
28993# Hook for its removal unless debugging.
28994# Note that there is a small window in which the directory will not be cleaned:
28995# after its creation but before its name has been assigned to `$tmp'.
28996$debug ||
28997{
28998  tmp=
28999  trap 'exit_status=$?
29000  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29001' 0
29002  trap '{ (exit 1); exit 1; }' 1 2 13 15
29003}
29004# Create a (secure) tmp directory for tmp files.
29005
29006{
29007  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29008  test -n "$tmp" && test -d "$tmp"
29009}  ||
29010{
29011  tmp=./conf$$-$RANDOM
29012  (umask 077 && mkdir "$tmp")
29013} ||
29014{
29015   echo "$me: cannot create a temporary directory in ." >&2
29016   { (exit 1); exit 1; }
29017}
29018
29019#
29020# Set up the sed scripts for CONFIG_FILES section.
29021#
29022
29023# No need to generate the scripts if there are no CONFIG_FILES.
29024# This happens for instance when ./config.status config.h
29025if test -n "$CONFIG_FILES"; then
29026
29027_ACEOF
29028
29029
29030
29031ac_delim='%!_!# '
29032for ac_last_try in false false false false false :; do
29033  cat >conf$$subs.sed <<_ACEOF
29034SHELL!$SHELL$ac_delim
29035PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
29036PACKAGE_NAME!$PACKAGE_NAME$ac_delim
29037PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
29038PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
29039PACKAGE_STRING!$PACKAGE_STRING$ac_delim
29040PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
29041exec_prefix!$exec_prefix$ac_delim
29042prefix!$prefix$ac_delim
29043program_transform_name!$program_transform_name$ac_delim
29044bindir!$bindir$ac_delim
29045sbindir!$sbindir$ac_delim
29046libexecdir!$libexecdir$ac_delim
29047datarootdir!$datarootdir$ac_delim
29048datadir!$datadir$ac_delim
29049sysconfdir!$sysconfdir$ac_delim
29050sharedstatedir!$sharedstatedir$ac_delim
29051localstatedir!$localstatedir$ac_delim
29052includedir!$includedir$ac_delim
29053oldincludedir!$oldincludedir$ac_delim
29054docdir!$docdir$ac_delim
29055infodir!$infodir$ac_delim
29056htmldir!$htmldir$ac_delim
29057dvidir!$dvidir$ac_delim
29058pdfdir!$pdfdir$ac_delim
29059psdir!$psdir$ac_delim
29060libdir!$libdir$ac_delim
29061localedir!$localedir$ac_delim
29062mandir!$mandir$ac_delim
29063DEFS!$DEFS$ac_delim
29064ECHO_C!$ECHO_C$ac_delim
29065ECHO_N!$ECHO_N$ac_delim
29066ECHO_T!$ECHO_T$ac_delim
29067LIBS!$LIBS$ac_delim
29068build_alias!$build_alias$ac_delim
29069host_alias!$host_alias$ac_delim
29070target_alias!$target_alias$ac_delim
29071build!$build$ac_delim
29072build_cpu!$build_cpu$ac_delim
29073build_vendor!$build_vendor$ac_delim
29074build_os!$build_os$ac_delim
29075host!$host$ac_delim
29076host_cpu!$host_cpu$ac_delim
29077host_vendor!$host_vendor$ac_delim
29078host_os!$host_os$ac_delim
29079target!$target$ac_delim
29080target_cpu!$target_cpu$ac_delim
29081target_vendor!$target_vendor$ac_delim
29082target_os!$target_os$ac_delim
29083LIBRELEASE!$LIBRELEASE$ac_delim
29084CLASSPATH_MODULE!$CLASSPATH_MODULE$ac_delim
29085INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
29086INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
29087INSTALL_DATA!$INSTALL_DATA$ac_delim
29088CYGPATH_W!$CYGPATH_W$ac_delim
29089PACKAGE!$PACKAGE$ac_delim
29090VERSION!$VERSION$ac_delim
29091ACLOCAL!$ACLOCAL$ac_delim
29092AUTOCONF!$AUTOCONF$ac_delim
29093AUTOMAKE!$AUTOMAKE$ac_delim
29094AUTOHEADER!$AUTOHEADER$ac_delim
29095MAKEINFO!$MAKEINFO$ac_delim
29096install_sh!$install_sh$ac_delim
29097STRIP!$STRIP$ac_delim
29098INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
29099mkdir_p!$mkdir_p$ac_delim
29100AWK!$AWK$ac_delim
29101SET_MAKE!$SET_MAKE$ac_delim
29102am__leading_dot!$am__leading_dot$ac_delim
29103AMTAR!$AMTAR$ac_delim
29104am__tar!$am__tar$ac_delim
29105am__untar!$am__untar$ac_delim
29106JIKES_FLAGS!$JIKES_FLAGS$ac_delim
29107INSTALL_CLASS_FILES_TRUE!$INSTALL_CLASS_FILES_TRUE$ac_delim
29108INSTALL_CLASS_FILES_FALSE!$INSTALL_CLASS_FILES_FALSE$ac_delim
29109CREATE_JNI_LIBRARIES_TRUE!$CREATE_JNI_LIBRARIES_TRUE$ac_delim
29110CREATE_JNI_LIBRARIES_FALSE!$CREATE_JNI_LIBRARIES_FALSE$ac_delim
29111CREATE_CORE_JNI_LIBRARIES_TRUE!$CREATE_CORE_JNI_LIBRARIES_TRUE$ac_delim
29112CREATE_CORE_JNI_LIBRARIES_FALSE!$CREATE_CORE_JNI_LIBRARIES_FALSE$ac_delim
29113default_toolkit!$default_toolkit$ac_delim
29114CREATE_XMLJ_LIBRARY_TRUE!$CREATE_XMLJ_LIBRARY_TRUE$ac_delim
29115CREATE_XMLJ_LIBRARY_FALSE!$CREATE_XMLJ_LIBRARY_FALSE$ac_delim
29116CC!$CC$ac_delim
29117CFLAGS!$CFLAGS$ac_delim
29118LDFLAGS!$LDFLAGS$ac_delim
29119CPPFLAGS!$CPPFLAGS$ac_delim
29120ac_ct_CC!$ac_ct_CC$ac_delim
29121EXEEXT!$EXEEXT$ac_delim
29122OBJEXT!$OBJEXT$ac_delim
29123DEPDIR!$DEPDIR$ac_delim
29124am__include!$am__include$ac_delim
29125am__quote!$am__quote$ac_delim
29126AMDEP_TRUE!$AMDEP_TRUE$ac_delim
29127AMDEP_FALSE!$AMDEP_FALSE$ac_delim
29128AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
29129CCDEPMODE!$CCDEPMODE$ac_delim
29130am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
29131_ACEOF
29132
29133  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29134    break
29135  elif $ac_last_try; then
29136    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29137echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29138   { (exit 1); exit 1; }; }
29139  else
29140    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29141  fi
29142done
29143
29144ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29145if test -n "$ac_eof"; then
29146  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29147  ac_eof=`expr $ac_eof + 1`
29148fi
29149
29150cat >>$CONFIG_STATUS <<_ACEOF
29151cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
29152/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29153_ACEOF
29154sed '
29155s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29156s/^/s,@/; s/!/@,|#_!!_#|/
29157:n
29158t n
29159s/'"$ac_delim"'$/,g/; t
29160s/$/\\/; p
29161N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29162' >>$CONFIG_STATUS <conf$$subs.sed
29163rm -f conf$$subs.sed
29164cat >>$CONFIG_STATUS <<_ACEOF
29165CEOF$ac_eof
29166_ACEOF
29167
29168
29169ac_delim='%!_!# '
29170for ac_last_try in false false false false false :; do
29171  cat >conf$$subs.sed <<_ACEOF
29172am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
29173CPP!$CPP$ac_delim
29174GREP!$GREP$ac_delim
29175EGREP!$EGREP$ac_delim
29176CREATE_ALSA_LIBRARIES_TRUE!$CREATE_ALSA_LIBRARIES_TRUE$ac_delim
29177CREATE_ALSA_LIBRARIES_FALSE!$CREATE_ALSA_LIBRARIES_FALSE$ac_delim
29178CREATE_DSSI_LIBRARIES_TRUE!$CREATE_DSSI_LIBRARIES_TRUE$ac_delim
29179CREATE_DSSI_LIBRARIES_FALSE!$CREATE_DSSI_LIBRARIES_FALSE$ac_delim
29180CREATE_GTK_PEER_LIBRARIES_TRUE!$CREATE_GTK_PEER_LIBRARIES_TRUE$ac_delim
29181CREATE_GTK_PEER_LIBRARIES_FALSE!$CREATE_GTK_PEER_LIBRARIES_FALSE$ac_delim
29182GTK_CAIRO_ENABLED!$GTK_CAIRO_ENABLED$ac_delim
29183GTK_CAIRO_TRUE!$GTK_CAIRO_TRUE$ac_delim
29184GTK_CAIRO_FALSE!$GTK_CAIRO_FALSE$ac_delim
29185CREATE_QT_PEER_LIBRARIES_TRUE!$CREATE_QT_PEER_LIBRARIES_TRUE$ac_delim
29186CREATE_QT_PEER_LIBRARIES_FALSE!$CREATE_QT_PEER_LIBRARIES_FALSE$ac_delim
29187nativelibdir!$nativelibdir$ac_delim
29188glibjdir!$glibjdir$ac_delim
29189CREATE_JNI_HEADERS_TRUE!$CREATE_JNI_HEADERS_TRUE$ac_delim
29190CREATE_JNI_HEADERS_FALSE!$CREATE_JNI_HEADERS_FALSE$ac_delim
29191LN_S!$LN_S$ac_delim
29192CXX!$CXX$ac_delim
29193CXXFLAGS!$CXXFLAGS$ac_delim
29194ac_ct_CXX!$ac_ct_CXX$ac_delim
29195CXXDEPMODE!$CXXDEPMODE$ac_delim
29196am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
29197am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
29198ECHO!$ECHO$ac_delim
29199AR!$AR$ac_delim
29200RANLIB!$RANLIB$ac_delim
29201CXXCPP!$CXXCPP$ac_delim
29202F77!$F77$ac_delim
29203FFLAGS!$FFLAGS$ac_delim
29204ac_ct_F77!$ac_ct_F77$ac_delim
29205LIBTOOL!$LIBTOOL$ac_delim
29206LIBICONV!$LIBICONV$ac_delim
29207LTLIBICONV!$LTLIBICONV$ac_delim
29208WARNING_CFLAGS!$WARNING_CFLAGS$ac_delim
29209STRICT_WARNING_CFLAGS!$STRICT_WARNING_CFLAGS$ac_delim
29210AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
29211ERROR_CFLAGS!$ERROR_CFLAGS$ac_delim
29212PKG_CONFIG!$PKG_CONFIG$ac_delim
29213XML_CFLAGS!$XML_CFLAGS$ac_delim
29214XML_LIBS!$XML_LIBS$ac_delim
29215XSLT_CFLAGS!$XSLT_CFLAGS$ac_delim
29216XSLT_LIBS!$XSLT_LIBS$ac_delim
29217XMKMF!$XMKMF$ac_delim
29218X_CFLAGS!$X_CFLAGS$ac_delim
29219X_PRE_LIBS!$X_PRE_LIBS$ac_delim
29220X_LIBS!$X_LIBS$ac_delim
29221X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
29222GTK_CFLAGS!$GTK_CFLAGS$ac_delim
29223GTK_LIBS!$GTK_LIBS$ac_delim
29224CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
29225CAIRO_LIBS!$CAIRO_LIBS$ac_delim
29226PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
29227PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
29228FREETYPE2_CFLAGS!$FREETYPE2_CFLAGS$ac_delim
29229FREETYPE2_LIBS!$FREETYPE2_LIBS$ac_delim
29230QT_CFLAGS!$QT_CFLAGS$ac_delim
29231QT_LIBS!$QT_LIBS$ac_delim
29232MOC!$MOC$ac_delim
29233USER_JAVAH!$USER_JAVAH$ac_delim
29234USER_SPECIFIED_JAVAH_TRUE!$USER_SPECIFIED_JAVAH_TRUE$ac_delim
29235USER_SPECIFIED_JAVAH_FALSE!$USER_SPECIFIED_JAVAH_FALSE$ac_delim
29236CLASSPATH_INCLUDES!$CLASSPATH_INCLUDES$ac_delim
29237JIKES!$JIKES$ac_delim
29238JIKESENCODING!$JIKESENCODING$ac_delim
29239GCJX!$GCJX$ac_delim
29240ECJ!$ECJ$ac_delim
29241FOUND_GCJ_TRUE!$FOUND_GCJ_TRUE$ac_delim
29242FOUND_GCJ_FALSE!$FOUND_GCJ_FALSE$ac_delim
29243FOUND_JIKES_TRUE!$FOUND_JIKES_TRUE$ac_delim
29244FOUND_JIKES_FALSE!$FOUND_JIKES_FALSE$ac_delim
29245FOUND_ECJ_TRUE!$FOUND_ECJ_TRUE$ac_delim
29246FOUND_ECJ_FALSE!$FOUND_ECJ_FALSE$ac_delim
29247FOUND_KJC_TRUE!$FOUND_KJC_TRUE$ac_delim
29248FOUND_KJC_FALSE!$FOUND_KJC_FALSE$ac_delim
29249FOUND_GCJX_TRUE!$FOUND_GCJX_TRUE$ac_delim
29250FOUND_GCJX_FALSE!$FOUND_GCJX_FALSE$ac_delim
29251USER_CLASSLIB!$USER_CLASSLIB$ac_delim
29252USER_SPECIFIED_CLASSLIB_TRUE!$USER_SPECIFIED_CLASSLIB_TRUE$ac_delim
29253USER_SPECIFIED_CLASSLIB_FALSE!$USER_SPECIFIED_CLASSLIB_FALSE$ac_delim
29254vm_classes!$vm_classes$ac_delim
29255MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
29256MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
29257MAINT!$MAINT$ac_delim
29258LIBDEBUG!$LIBDEBUG$ac_delim
29259INIT_LOAD_LIBRARY!$INIT_LOAD_LIBRARY$ac_delim
29260JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION!$JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION$ac_delim
29261REMOVE!$REMOVE$ac_delim
29262MKDIR!$MKDIR$ac_delim
29263CP!$CP$ac_delim
29264DATE!$DATE$ac_delim
29265FIND!$FIND$ac_delim
29266FASTJAR!$FASTJAR$ac_delim
29267ZIP!$ZIP$ac_delim
29268INSTALL_COMPRESSED_CLASS_FILES_TRUE!$INSTALL_COMPRESSED_CLASS_FILES_TRUE$ac_delim
29269_ACEOF
29270
29271  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
29272    break
29273  elif $ac_last_try; then
29274    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29275echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29276   { (exit 1); exit 1; }; }
29277  else
29278    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29279  fi
29280done
29281
29282ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29283if test -n "$ac_eof"; then
29284  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29285  ac_eof=`expr $ac_eof + 1`
29286fi
29287
29288cat >>$CONFIG_STATUS <<_ACEOF
29289cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
29290/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29291_ACEOF
29292sed '
29293s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29294s/^/s,@/; s/!/@,|#_!!_#|/
29295:n
29296t n
29297s/'"$ac_delim"'$/,g/; t
29298s/$/\\/; p
29299N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29300' >>$CONFIG_STATUS <conf$$subs.sed
29301rm -f conf$$subs.sed
29302cat >>$CONFIG_STATUS <<_ACEOF
29303CEOF$ac_eof
29304_ACEOF
29305
29306
29307ac_delim='%!_!# '
29308for ac_last_try in false false false false false :; do
29309  cat >conf$$subs.sed <<_ACEOF
29310INSTALL_COMPRESSED_CLASS_FILES_FALSE!$INSTALL_COMPRESSED_CLASS_FILES_FALSE$ac_delim
29311EXAMPLESDIR!$EXAMPLESDIR$ac_delim
29312FASTJAR_COMPRESSION_FLAGS!$FASTJAR_COMPRESSION_FLAGS$ac_delim
29313ZIP_COMPRESSION_FLAGS!$ZIP_COMPRESSION_FLAGS$ac_delim
29314GJDOC!$GJDOC$ac_delim
29315CREATE_API_DOCS_TRUE!$CREATE_API_DOCS_TRUE$ac_delim
29316CREATE_API_DOCS_FALSE!$CREATE_API_DOCS_FALSE$ac_delim
29317JAY!$JAY$ac_delim
29318JAY_SKELETON!$JAY_SKELETON$ac_delim
29319REGEN_PARSERS_TRUE!$REGEN_PARSERS_TRUE$ac_delim
29320REGEN_PARSERS_FALSE!$REGEN_PARSERS_FALSE$ac_delim
29321LIBOBJS!$LIBOBJS$ac_delim
29322LTLIBOBJS!$LTLIBOBJS$ac_delim
29323_ACEOF
29324
29325  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
29326    break
29327  elif $ac_last_try; then
29328    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
29329echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
29330   { (exit 1); exit 1; }; }
29331  else
29332    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29333  fi
29334done
29335
29336ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
29337if test -n "$ac_eof"; then
29338  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
29339  ac_eof=`expr $ac_eof + 1`
29340fi
29341
29342cat >>$CONFIG_STATUS <<_ACEOF
29343cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
29344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
29345_ACEOF
29346sed '
29347s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
29348s/^/s,@/; s/!/@,|#_!!_#|/
29349:n
29350t n
29351s/'"$ac_delim"'$/,g/; t
29352s/$/\\/; p
29353N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
29354' >>$CONFIG_STATUS <conf$$subs.sed
29355rm -f conf$$subs.sed
29356cat >>$CONFIG_STATUS <<_ACEOF
29357:end
29358s/|#_!!_#|//g
29359CEOF$ac_eof
29360_ACEOF
29361
29362
29363# VPATH may cause trouble with some makes, so we remove $(srcdir),
29364# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29365# trailing colons and then remove the whole line if VPATH becomes empty
29366# (actually we leave an empty line to preserve line numbers).
29367if test "x$srcdir" = x.; then
29368  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
29369s/:*\$(srcdir):*/:/
29370s/:*\${srcdir}:*/:/
29371s/:*@srcdir@:*/:/
29372s/^\([^=]*=[	 ]*\):*/\1/
29373s/:*$//
29374s/^[^=]*=[	 ]*$//
29375}'
29376fi
29377
29378cat >>$CONFIG_STATUS <<\_ACEOF
29379fi # test -n "$CONFIG_FILES"
29380
29381
29382for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
29383do
29384  case $ac_tag in
29385  :[FHLC]) ac_mode=$ac_tag; continue;;
29386  esac
29387  case $ac_mode$ac_tag in
29388  :[FHL]*:*);;
29389  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
29390echo "$as_me: error: Invalid tag $ac_tag." >&2;}
29391   { (exit 1); exit 1; }; };;
29392  :[FH]-) ac_tag=-:-;;
29393  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29394  esac
29395  ac_save_IFS=$IFS
29396  IFS=:
29397  set x $ac_tag
29398  IFS=$ac_save_IFS
29399  shift
29400  ac_file=$1
29401  shift
29402
29403  case $ac_mode in
29404  :L) ac_source=$1;;
29405  :[FH])
29406    ac_file_inputs=
29407    for ac_f
29408    do
29409      case $ac_f in
29410      -) ac_f="$tmp/stdin";;
29411      *) # Look for the file first in the build tree, then in the source tree
29412	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
29413	 # because $ac_f cannot contain `:'.
29414	 test -f "$ac_f" ||
29415	   case $ac_f in
29416	   [\\/$]*) false;;
29417	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29418	   esac ||
29419	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
29420echo "$as_me: error: cannot find input file: $ac_f" >&2;}
29421   { (exit 1); exit 1; }; };;
29422      esac
29423      ac_file_inputs="$ac_file_inputs $ac_f"
29424    done
29425
29426    # Let's still pretend it is `configure' which instantiates (i.e., don't
29427    # use $as_me), people would be surprised to read:
29428    #    /* config.h.  Generated by config.status.  */
29429    configure_input="Generated from "`IFS=:
29430	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
29431    if test x"$ac_file" != x-; then
29432      configure_input="$ac_file.  $configure_input"
29433      { echo "$as_me:$LINENO: creating $ac_file" >&5
29434echo "$as_me: creating $ac_file" >&6;}
29435    fi
29436
29437    case $ac_tag in
29438    *:-:* | *:-) cat >"$tmp/stdin";;
29439    esac
29440    ;;
29441  esac
29442
29443  ac_dir=`$as_dirname -- "$ac_file" ||
29444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29445	 X"$ac_file" : 'X\(//\)[^/]' \| \
29446	 X"$ac_file" : 'X\(//\)$' \| \
29447	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
29448echo X"$ac_file" |
29449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29450	    s//\1/
29451	    q
29452	  }
29453	  /^X\(\/\/\)[^/].*/{
29454	    s//\1/
29455	    q
29456	  }
29457	  /^X\(\/\/\)$/{
29458	    s//\1/
29459	    q
29460	  }
29461	  /^X\(\/\).*/{
29462	    s//\1/
29463	    q
29464	  }
29465	  s/.*/./; q'`
29466  { as_dir="$ac_dir"
29467  case $as_dir in #(
29468  -*) as_dir=./$as_dir;;
29469  esac
29470  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29471    as_dirs=
29472    while :; do
29473      case $as_dir in #(
29474      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29475      *) as_qdir=$as_dir;;
29476      esac
29477      as_dirs="'$as_qdir' $as_dirs"
29478      as_dir=`$as_dirname -- "$as_dir" ||
29479$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29480	 X"$as_dir" : 'X\(//\)[^/]' \| \
29481	 X"$as_dir" : 'X\(//\)$' \| \
29482	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29483echo X"$as_dir" |
29484    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29485	    s//\1/
29486	    q
29487	  }
29488	  /^X\(\/\/\)[^/].*/{
29489	    s//\1/
29490	    q
29491	  }
29492	  /^X\(\/\/\)$/{
29493	    s//\1/
29494	    q
29495	  }
29496	  /^X\(\/\).*/{
29497	    s//\1/
29498	    q
29499	  }
29500	  s/.*/./; q'`
29501      test -d "$as_dir" && break
29502    done
29503    test -z "$as_dirs" || eval "mkdir $as_dirs"
29504  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29505echo "$as_me: error: cannot create directory $as_dir" >&2;}
29506   { (exit 1); exit 1; }; }; }
29507  ac_builddir=.
29508
29509case "$ac_dir" in
29510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
29511*)
29512  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29513  # A ".." for each directory in $ac_dir_suffix.
29514  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
29515  case $ac_top_builddir_sub in
29516  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
29517  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
29518  esac ;;
29519esac
29520ac_abs_top_builddir=$ac_pwd
29521ac_abs_builddir=$ac_pwd$ac_dir_suffix
29522# for backward compatibility:
29523ac_top_builddir=$ac_top_build_prefix
29524
29525case $srcdir in
29526  .)  # We are building in place.
29527    ac_srcdir=.
29528    ac_top_srcdir=$ac_top_builddir_sub
29529    ac_abs_top_srcdir=$ac_pwd ;;
29530  [\\/]* | ?:[\\/]* )  # Absolute name.
29531    ac_srcdir=$srcdir$ac_dir_suffix;
29532    ac_top_srcdir=$srcdir
29533    ac_abs_top_srcdir=$srcdir ;;
29534  *) # Relative name.
29535    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
29536    ac_top_srcdir=$ac_top_build_prefix$srcdir
29537    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
29538esac
29539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
29540
29541
29542  case $ac_mode in
29543  :F)
29544  #
29545  # CONFIG_FILE
29546  #
29547
29548  case $INSTALL in
29549  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29550  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
29551  esac
29552_ACEOF
29553
29554cat >>$CONFIG_STATUS <<\_ACEOF
29555# If the template does not know about datarootdir, expand it.
29556# FIXME: This hack should be removed a few years after 2.60.
29557ac_datarootdir_hack=; ac_datarootdir_seen=
29558
29559case `sed -n '/datarootdir/ {
29560  p
29561  q
29562}
29563/@datadir@/p
29564/@docdir@/p
29565/@infodir@/p
29566/@localedir@/p
29567/@mandir@/p
29568' $ac_file_inputs` in
29569*datarootdir*) ac_datarootdir_seen=yes;;
29570*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
29571  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
29572echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
29573_ACEOF
29574cat >>$CONFIG_STATUS <<_ACEOF
29575  ac_datarootdir_hack='
29576  s&@datadir@&$datadir&g
29577  s&@docdir@&$docdir&g
29578  s&@infodir@&$infodir&g
29579  s&@localedir@&$localedir&g
29580  s&@mandir@&$mandir&g
29581    s&\\\${datarootdir}&$datarootdir&g' ;;
29582esac
29583_ACEOF
29584
29585# Neutralize VPATH when `$srcdir' = `.'.
29586# Shell code in configure.ac might set extrasub.
29587# FIXME: do we really want to maintain this feature?
29588cat >>$CONFIG_STATUS <<_ACEOF
29589  sed "$ac_vpsub
29590$extrasub
29591_ACEOF
29592cat >>$CONFIG_STATUS <<\_ACEOF
29593:t
29594/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29595s&@configure_input@&$configure_input&;t t
29596s&@top_builddir@&$ac_top_builddir_sub&;t t
29597s&@srcdir@&$ac_srcdir&;t t
29598s&@abs_srcdir@&$ac_abs_srcdir&;t t
29599s&@top_srcdir@&$ac_top_srcdir&;t t
29600s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
29601s&@builddir@&$ac_builddir&;t t
29602s&@abs_builddir@&$ac_abs_builddir&;t t
29603s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
29604s&@INSTALL@&$ac_INSTALL&;t t
29605$ac_datarootdir_hack
29606" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
29607
29608test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
29609  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
29610  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
29611  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29612which seems to be undefined.  Please make sure it is defined." >&5
29613echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
29614which seems to be undefined.  Please make sure it is defined." >&2;}
29615
29616  rm -f "$tmp/stdin"
29617  case $ac_file in
29618  -) cat "$tmp/out"; rm -f "$tmp/out";;
29619  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
29620  esac
29621 ;;
29622  :H)
29623  #
29624  # CONFIG_HEADER
29625  #
29626_ACEOF
29627
29628# Transform confdefs.h into a sed script `conftest.defines', that
29629# substitutes the proper values into config.h.in to produce config.h.
29630rm -f conftest.defines conftest.tail
29631# First, append a space to every undef/define line, to ease matching.
29632echo 's/$/ /' >conftest.defines
29633# Then, protect against being on the right side of a sed subst, or in
29634# an unquoted here document, in config.status.  If some macros were
29635# called several times there might be several #defines for the same
29636# symbol, which is useless.  But do not sort them, since the last
29637# AC_DEFINE must be honored.
29638ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29639# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
29640# NAME is the cpp macro being defined, VALUE is the value it is being given.
29641# PARAMS is the parameter list in the macro definition--in most cases, it's
29642# just an empty string.
29643ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
29644ac_dB='\\)[	 (].*,\\1define\\2'
29645ac_dC=' '
29646ac_dD=' ,'
29647
29648uniq confdefs.h |
29649  sed -n '
29650	t rset
29651	:rset
29652	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
29653	t ok
29654	d
29655	:ok
29656	s/[\\&,]/\\&/g
29657	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
29658	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
29659  ' >>conftest.defines
29660
29661# Remove the space that was appended to ease matching.
29662# Then replace #undef with comments.  This is necessary, for
29663# example, in the case of _POSIX_SOURCE, which is predefined and required
29664# on some systems where configure will not decide to define it.
29665# (The regexp can be short, since the line contains either #define or #undef.)
29666echo 's/ $//
29667s,^[	 #]*u.*,/* & */,' >>conftest.defines
29668
29669# Break up conftest.defines:
29670ac_max_sed_lines=50
29671
29672# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
29673# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
29674# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
29675# et cetera.
29676ac_in='$ac_file_inputs'
29677ac_out='"$tmp/out1"'
29678ac_nxt='"$tmp/out2"'
29679
29680while :
29681do
29682  # Write a here document:
29683    cat >>$CONFIG_STATUS <<_ACEOF
29684    # First, check the format of the line:
29685    cat >"\$tmp/defines.sed" <<\\CEOF
29686/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
29687/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
29688b
29689:def
29690_ACEOF
29691  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
29692  echo 'CEOF
29693    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
29694  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
29695  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
29696  grep . conftest.tail >/dev/null || break
29697  rm -f conftest.defines
29698  mv conftest.tail conftest.defines
29699done
29700rm -f conftest.defines conftest.tail
29701
29702echo "ac_result=$ac_in" >>$CONFIG_STATUS
29703cat >>$CONFIG_STATUS <<\_ACEOF
29704  if test x"$ac_file" != x-; then
29705    echo "/* $configure_input  */" >"$tmp/config.h"
29706    cat "$ac_result" >>"$tmp/config.h"
29707    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
29708      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
29709echo "$as_me: $ac_file is unchanged" >&6;}
29710    else
29711      rm -f $ac_file
29712      mv "$tmp/config.h" $ac_file
29713    fi
29714  else
29715    echo "/* $configure_input  */"
29716    cat "$ac_result"
29717  fi
29718  rm -f "$tmp/out12"
29719# Compute $ac_file's index in $config_headers.
29720_am_stamp_count=1
29721for _am_header in $config_headers :; do
29722  case $_am_header in
29723    $ac_file | $ac_file:* )
29724      break ;;
29725    * )
29726      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
29727  esac
29728done
29729echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
29730$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29731	 X$ac_file : 'X\(//\)[^/]' \| \
29732	 X$ac_file : 'X\(//\)$' \| \
29733	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
29734echo X$ac_file |
29735    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29736	    s//\1/
29737	    q
29738	  }
29739	  /^X\(\/\/\)[^/].*/{
29740	    s//\1/
29741	    q
29742	  }
29743	  /^X\(\/\/\)$/{
29744	    s//\1/
29745	    q
29746	  }
29747	  /^X\(\/\).*/{
29748	    s//\1/
29749	    q
29750	  }
29751	  s/.*/./; q'`/stamp-h$_am_stamp_count
29752 ;;
29753  :L)
29754  #
29755  # CONFIG_LINK
29756  #
29757
29758  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
29759echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
29760
29761  if test ! -r "$srcdir/$ac_source"; then
29762    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
29763echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
29764   { (exit 1); exit 1; }; }
29765  fi
29766  rm -f "$ac_file"
29767
29768  # Try a relative symlink, then a hard link, then a copy.
29769  case $srcdir in
29770  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
29771      *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
29772  esac
29773  ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
29774    ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
29775    cp -p "$srcdir/$ac_source" "$ac_file" ||
29776    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
29777echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
29778   { (exit 1); exit 1; }; }
29779 ;;
29780  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
29781echo "$as_me: executing $ac_file commands" >&6;}
29782 ;;
29783  esac
29784
29785
29786  case $ac_file$ac_mode in
29787    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
29788  # Strip MF so we end up with the name of the file.
29789  mf=`echo "$mf" | sed -e 's/:.*$//'`
29790  # Check whether this is an Automake generated Makefile or not.
29791  # We used to match only the files named `Makefile.in', but
29792  # some people rename them; so instead we look at the file content.
29793  # Grep'ing the first line is not enough: some people post-process
29794  # each Makefile.in and add a new line on top of each file to say so.
29795  # So let's grep whole file.
29796  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
29797    dirpart=`$as_dirname -- "$mf" ||
29798$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29799	 X"$mf" : 'X\(//\)[^/]' \| \
29800	 X"$mf" : 'X\(//\)$' \| \
29801	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
29802echo X"$mf" |
29803    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29804	    s//\1/
29805	    q
29806	  }
29807	  /^X\(\/\/\)[^/].*/{
29808	    s//\1/
29809	    q
29810	  }
29811	  /^X\(\/\/\)$/{
29812	    s//\1/
29813	    q
29814	  }
29815	  /^X\(\/\).*/{
29816	    s//\1/
29817	    q
29818	  }
29819	  s/.*/./; q'`
29820  else
29821    continue
29822  fi
29823  # Extract the definition of DEPDIR, am__include, and am__quote
29824  # from the Makefile without running `make'.
29825  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
29826  test -z "$DEPDIR" && continue
29827  am__include=`sed -n 's/^am__include = //p' < "$mf"`
29828  test -z "am__include" && continue
29829  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
29830  # When using ansi2knr, U may be empty or an underscore; expand it
29831  U=`sed -n 's/^U = //p' < "$mf"`
29832  # Find all dependency output files, they are included files with
29833  # $(DEPDIR) in their names.  We invoke sed twice because it is the
29834  # simplest approach to changing $(DEPDIR) to its actual value in the
29835  # expansion.
29836  for file in `sed -n "
29837    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
29838       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
29839    # Make sure the directory exists.
29840    test -f "$dirpart/$file" && continue
29841    fdir=`$as_dirname -- "$file" ||
29842$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29843	 X"$file" : 'X\(//\)[^/]' \| \
29844	 X"$file" : 'X\(//\)$' \| \
29845	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
29846echo X"$file" |
29847    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29848	    s//\1/
29849	    q
29850	  }
29851	  /^X\(\/\/\)[^/].*/{
29852	    s//\1/
29853	    q
29854	  }
29855	  /^X\(\/\/\)$/{
29856	    s//\1/
29857	    q
29858	  }
29859	  /^X\(\/\).*/{
29860	    s//\1/
29861	    q
29862	  }
29863	  s/.*/./; q'`
29864    { as_dir=$dirpart/$fdir
29865  case $as_dir in #(
29866  -*) as_dir=./$as_dir;;
29867  esac
29868  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
29869    as_dirs=
29870    while :; do
29871      case $as_dir in #(
29872      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
29873      *) as_qdir=$as_dir;;
29874      esac
29875      as_dirs="'$as_qdir' $as_dirs"
29876      as_dir=`$as_dirname -- "$as_dir" ||
29877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29878	 X"$as_dir" : 'X\(//\)[^/]' \| \
29879	 X"$as_dir" : 'X\(//\)$' \| \
29880	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29881echo X"$as_dir" |
29882    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29883	    s//\1/
29884	    q
29885	  }
29886	  /^X\(\/\/\)[^/].*/{
29887	    s//\1/
29888	    q
29889	  }
29890	  /^X\(\/\/\)$/{
29891	    s//\1/
29892	    q
29893	  }
29894	  /^X\(\/\).*/{
29895	    s//\1/
29896	    q
29897	  }
29898	  s/.*/./; q'`
29899      test -d "$as_dir" && break
29900    done
29901    test -z "$as_dirs" || eval "mkdir $as_dirs"
29902  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
29903echo "$as_me: error: cannot create directory $as_dir" >&2;}
29904   { (exit 1); exit 1; }; }; }
29905    # echo "creating $dirpart/$file"
29906    echo '# dummy' > "$dirpart/$file"
29907  done
29908done
29909 ;;
29910    "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
29911    "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
29912
29913  esac
29914done # for ac_tag
29915
29916
29917{ (exit 0); exit 0; }
29918_ACEOF
29919chmod +x $CONFIG_STATUS
29920ac_clean_files=$ac_clean_files_save
29921
29922
29923# configure is writing to config.log, and then calls config.status.
29924# config.status does its own redirection, appending to config.log.
29925# Unfortunately, on DOS this fails, as config.log is still kept open
29926# by configure, so config.status won't be able to write to it; its
29927# output is simply discarded.  So we exec the FD to /dev/null,
29928# effectively closing config.log, so it can be properly (re)opened and
29929# appended to by config.status.  When coming back to configure, we
29930# need to make the FD available again.
29931if test "$no_create" != yes; then
29932  ac_cs_success=:
29933  ac_config_status_args=
29934  test "$silent" = yes &&
29935    ac_config_status_args="$ac_config_status_args --quiet"
29936  exec 5>/dev/null
29937  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29938  exec 5>>config.log
29939  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29940  # would make configure fail if this is the last instruction.
29941  $ac_cs_success || { (exit 1); exit 1; }
29942fi
29943
29944
29945find ${srcdir} -name Makefile | while read ONE; do
29946  cat ${ONE} | sed 's/^\(.*\)TAR\(.*\)chof\(.*\)|\(.*\)/\1TAR\2chf\3 --posix |\4/' >${ONE}.new
29947  mv -f ${ONE}.new ${ONE}
29948done
29949
29950