1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for libg19 1.1.1.
4#
5# Report bugs to <jgeboski@users.sourceforge.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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  # Pre-4.2 versions of Zsh do 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
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85  as_unset=unset
86else
87  as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order.  Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" ""	$as_nl"
97
98# Find who we are.  Look in the path if we contain no directory separator.
99case $0 in
100  *[\\/]* ) as_myself=$0 ;;
101  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104  IFS=$as_save_IFS
105  test -z "$as_dir" && as_dir=.
106  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110     ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115  as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119  { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138   test "X`expr 00001 : '.*\(...\)'`" = X001; then
139  as_expr=expr
140else
141  as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145  as_basename=basename
146else
147  as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154	 X"$0" : 'X\(//\)$' \| \
155	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157    sed '/^.*\/\([^/][^/]*\)\/*$/{
158	    s//\1/
159	    q
160	  }
161	  /^X\/\(\/\/\)$/{
162	    s//\1/
163	    q
164	  }
165	  /^X\/\(\/\).*/{
166	    s//\1/
167	    q
168	  }
169	  s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176  if (eval ":") 2>/dev/null; then
177  as_have_required=yes
178else
179  as_have_required=no
180fi
181
182  if test $as_have_required = yes &&	 (eval ":
183(as_func_return () {
184  (exit \$1)
185}
186as_func_success () {
187  as_func_return 0
188}
189as_func_failure () {
190  as_func_return 1
191}
192as_func_ret_success () {
193  return 0
194}
195as_func_ret_failure () {
196  return 1
197}
198
199exitcode=0
200if as_func_success; then
201  :
202else
203  exitcode=1
204  echo as_func_success failed.
205fi
206
207if as_func_failure; then
208  exitcode=1
209  echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213  :
214else
215  exitcode=1
216  echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220  exitcode=1
221  echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225  :
226else
227  exitcode=1
228  echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234  as_lineno_1=\$LINENO
235  as_lineno_2=\$LINENO
236  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239  :
240else
241  as_candidate_shells=
242    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245  IFS=$as_save_IFS
246  test -z "$as_dir" && as_dir=.
247  case $as_dir in
248	 /*)
249	   for as_base in sh bash ksh sh5; do
250	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251	   done;;
252       esac
253done
254IFS=$as_save_IFS
255
256
257      for as_shell in $as_candidate_shells $SHELL; do
258	 # Try only shells that exist, to save several forks.
259	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260		{ ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262  emulate sh
263  NULLCMD=:
264  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265  # is contrary to our usage.  Disable this feature.
266  alias -g '${1+"$@"}'='"$@"'
267  setopt NO_GLOB_SUBST
268else
269  case `(set -o) 2>/dev/null` in
270  *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279  CONFIG_SHELL=$as_shell
280	       as_have_required=yes
281	       if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283  emulate sh
284  NULLCMD=:
285  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286  # is contrary to our usage.  Disable this feature.
287  alias -g '${1+"$@"}'='"$@"'
288  setopt NO_GLOB_SUBST
289else
290  case `(set -o) 2>/dev/null` in
291  *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299  (exit $1)
300}
301as_func_success () {
302  as_func_return 0
303}
304as_func_failure () {
305  as_func_return 1
306}
307as_func_ret_success () {
308  return 0
309}
310as_func_ret_failure () {
311  return 1
312}
313
314exitcode=0
315if as_func_success; then
316  :
317else
318  exitcode=1
319  echo as_func_success failed.
320fi
321
322if as_func_failure; then
323  exitcode=1
324  echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328  :
329else
330  exitcode=1
331  echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335  exitcode=1
336  echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340  :
341else
342  exitcode=1
343  echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349  as_lineno_1=$LINENO
350  as_lineno_2=$LINENO
351  test "x$as_lineno_1" != "x$as_lineno_2" &&
352  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356  break
357fi
358
359fi
360
361      done
362
363      if test "x$CONFIG_SHELL" != x; then
364  for as_var in BASH_ENV ENV
365	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366	done
367	export CONFIG_SHELL
368	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372    if test $as_have_required = no; then
373  echo This script requires a shell more modern than all the
374      echo shells that I found on your system.  Please install a
375      echo modern shell, or manually run the script under such a
376      echo shell if you do have one.
377      { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388  (exit \$1)
389}
390as_func_success () {
391  as_func_return 0
392}
393as_func_failure () {
394  as_func_return 1
395}
396as_func_ret_success () {
397  return 0
398}
399as_func_ret_failure () {
400  return 1
401}
402
403exitcode=0
404if as_func_success; then
405  :
406else
407  exitcode=1
408  echo as_func_success failed.
409fi
410
411if as_func_failure; then
412  exitcode=1
413  echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417  :
418else
419  exitcode=1
420  echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424  exitcode=1
425  echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429  :
430else
431  exitcode=1
432  echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436  echo No shell found that supports shell functions.
437  echo Please tell bug-autoconf@gnu.org about your system,
438  echo including any error possibly output before this message.
439  echo This can help us improve future autoconf versions.
440  echo Configuration will now proceed without shell functions.
441}
442
443
444
445  as_lineno_1=$LINENO
446  as_lineno_2=$LINENO
447  test "x$as_lineno_1" != "x$as_lineno_2" &&
448  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451  # uniformly replaced by the line number.  The first 'sed' inserts a
452  # line-number line after each line using $LINENO; the second 'sed'
453  # does the real work.  The second script uses 'N' to pair each
454  # line-number line with the line containing $LINENO, and appends
455  # trailing '-' during substitution so that $LINENO is not a special
456  # case at line end.
457  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458  # scripts with optimization help from Paolo Bonzini.  Blame Lee
459  # E. McMahon (1931-1989) for sed's syntax.  :-)
460  sed -n '
461    p
462    /[$]LINENO/=
463  ' <$as_myself |
464    sed '
465      s/[$]LINENO.*/&-/
466      t lineno
467      b
468      :lineno
469      N
470      :loop
471      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472      t loop
473      s/-\n.*//
474    ' >$as_me.lineno &&
475  chmod +x "$as_me.lineno" ||
476    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477   { (exit 1); exit 1; }; }
478
479  # Don't try to exec as it changes $[0], causing all sort of problems
480  # (the dirname of $[0] is not the place where we might find the
481  # original and so on.  Autoconf is especially sensitive to this).
482  . "./$as_me.lineno"
483  # Exit status is that of the last command.
484  exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489  as_dirname=dirname
490else
491  as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497  case `echo 'x\c'` in
498  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
499  *)   ECHO_C='\c';;
500  esac;;
501*)
502  ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505   test "X`expr 00001 : '.*\(...\)'`" = X001; then
506  as_expr=expr
507else
508  as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513  rm -f conf$$.dir/conf$$.file
514else
515  rm -f conf$$.dir
516  mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519  if ln -s conf$$.file conf$$ 2>/dev/null; then
520    as_ln_s='ln -s'
521    # ... but there are two gotchas:
522    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524    # In both cases, we have to default to `cp -p'.
525    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526      as_ln_s='cp -p'
527  elif ln conf$$.file conf$$ 2>/dev/null; then
528    as_ln_s=ln
529  else
530    as_ln_s='cp -p'
531  fi
532else
533  as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539  as_mkdir_p=:
540else
541  test -d ./-p && rmdir ./-p
542  as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546  as_test_x='test -x'
547else
548  if ls -dL / >/dev/null 2>&1; then
549    as_ls_L_option=L
550  else
551    as_ls_L_option=
552  fi
553  as_test_x='
554    eval sh -c '\''
555      if test -d "$1"; then
556	test -d "$1/.";
557      else
558	case $1 in
559	-*)set "./$1";;
560	esac;
561	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562	???[sx]*):;;*)false;;esac;fi
563    '\'' sh
564  '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$ECHO in
581X*--fallback-echo)
582  # Remove one level of quotation (which was required for Make).
583  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584  ;;
585esac
586
587echo=${ECHO-echo}
588if test "X$1" = X--no-reexec; then
589  # Discard the --no-reexec flag, and continue.
590  shift
591elif test "X$1" = X--fallback-echo; then
592  # Avoid inline document here, it may be left over
593  :
594elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595  # Yippee, $echo works!
596  :
597else
598  # Restart under the correct shell.
599  exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603  # used as fallback echo
604  shift
605  cat <<EOF
606$*
607EOF
608  exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$ECHO"; then
616if test "X${echo_test_string+set}" != Xset; then
617# find a string as large as possible, as long as the shell can cope with it
618  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621       echo_test_string=`eval $cmd` &&
622       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623    then
624      break
625    fi
626  done
627fi
628
629if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631   test "X$echo_testing_string" = "X$echo_test_string"; then
632  :
633else
634  # The Solaris, AIX, and Digital Unix default echo programs unquote
635  # backslashes.  This makes it impossible to quote backslashes using
636  #   echo "$something" | sed 's/\\/\\\\/g'
637  #
638  # So, first we look for a working echo in the user's PATH.
639
640  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641  for dir in $PATH /usr/ucb; do
642    IFS="$lt_save_ifs"
643    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646       test "X$echo_testing_string" = "X$echo_test_string"; then
647      echo="$dir/echo"
648      break
649    fi
650  done
651  IFS="$lt_save_ifs"
652
653  if test "X$echo" = Xecho; then
654    # We didn't find a better echo, so look for alternatives.
655    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657       test "X$echo_testing_string" = "X$echo_test_string"; then
658      # This shell has a builtin print -r that does the trick.
659      echo='print -r'
660    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661	 test "X$CONFIG_SHELL" != X/bin/ksh; then
662      # If we have ksh, try running configure again with it.
663      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664      export ORIGINAL_CONFIG_SHELL
665      CONFIG_SHELL=/bin/ksh
666      export CONFIG_SHELL
667      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668    else
669      # Try using printf.
670      echo='printf %s\n'
671      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673	 test "X$echo_testing_string" = "X$echo_test_string"; then
674	# Cool, printf works
675	:
676      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677	   test "X$echo_testing_string" = 'X\t' &&
678	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679	   test "X$echo_testing_string" = "X$echo_test_string"; then
680	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681	export CONFIG_SHELL
682	SHELL="$CONFIG_SHELL"
683	export SHELL
684	echo="$CONFIG_SHELL $0 --fallback-echo"
685      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686	   test "X$echo_testing_string" = 'X\t' &&
687	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688	   test "X$echo_testing_string" = "X$echo_test_string"; then
689	echo="$CONFIG_SHELL $0 --fallback-echo"
690      else
691	# maybe with a smaller string...
692	prev=:
693
694	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696	  then
697	    break
698	  fi
699	  prev="$cmd"
700	done
701
702	if test "$prev" != 'sed 50q "$0"'; then
703	  echo_test_string=`eval $prev`
704	  export echo_test_string
705	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706	else
707	  # Oops.  We lost completely, so just stick with echo.
708	  echo=echo
709	fi
710      fi
711    fi
712  fi
713fi
714fi
715
716# Copy echo and quote the copy suitably for passing to libtool from
717# the Makefile, instead of quoting the original, which is used later.
718ECHO=$echo
719if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721fi
722
723
724
725
726tagnames=${tagnames+${tagnames},}CXX
727
728tagnames=${tagnames+${tagnames},}F77
729
730exec 7<&0 </dev/null 6>&1
731
732# Name of the host.
733# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734# so uname gets run too.
735ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737#
738# Initializations.
739#
740ac_default_prefix=/usr/local
741ac_clean_files=
742ac_config_libobj_dir=.
743LIBOBJS=
744cross_compiling=no
745subdirs=
746MFLAGS=
747MAKEFLAGS=
748SHELL=${CONFIG_SHELL-/bin/sh}
749
750# Identity of this package.
751PACKAGE_NAME='libg19'
752PACKAGE_TARNAME='libg19'
753PACKAGE_VERSION='1.1.1'
754PACKAGE_STRING='libg19 1.1.1'
755PACKAGE_BUGREPORT='jgeboski@users.sourceforge.net'
756
757ac_default_prefix=/usr
758ac_unique_file="libg19.c"
759# Factoring default headers for most tests.
760ac_includes_default="\
761#include <stdio.h>
762#ifdef HAVE_SYS_TYPES_H
763# include <sys/types.h>
764#endif
765#ifdef HAVE_SYS_STAT_H
766# include <sys/stat.h>
767#endif
768#ifdef STDC_HEADERS
769# include <stdlib.h>
770# include <stddef.h>
771#else
772# ifdef HAVE_STDLIB_H
773#  include <stdlib.h>
774# endif
775#endif
776#ifdef HAVE_STRING_H
777# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
778#  include <memory.h>
779# endif
780# include <string.h>
781#endif
782#ifdef HAVE_STRINGS_H
783# include <strings.h>
784#endif
785#ifdef HAVE_INTTYPES_H
786# include <inttypes.h>
787#endif
788#ifdef HAVE_STDINT_H
789# include <stdint.h>
790#endif
791#ifdef HAVE_UNISTD_H
792# include <unistd.h>
793#endif"
794
795ac_subst_vars='LTLIBOBJS
796LIBOBJS
797libg19_LIBS
798libg19_CFLAGS
799PKG_CONFIG
800LIBTOOL
801ac_ct_F77
802FFLAGS
803F77
804CXXCPP
805am__fastdepCXX_FALSE
806am__fastdepCXX_TRUE
807CXXDEPMODE
808ac_ct_CXX
809CXXFLAGS
810CXX
811CPP
812NMEDIT
813DSYMUTIL
814RANLIB
815AR
816ECHO
817LN_S
818EGREP
819GREP
820SED
821am__fastdepCC_FALSE
822am__fastdepCC_TRUE
823CCDEPMODE
824AMDEPBACKSLASH
825AMDEP_FALSE
826AMDEP_TRUE
827am__quote
828am__include
829DEPDIR
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837am__untar
838am__tar
839AMTAR
840am__leading_dot
841SET_MAKE
842AWK
843mkdir_p
844MKDIR_P
845INSTALL_STRIP_PROGRAM
846STRIP
847install_sh
848MAKEINFO
849AUTOHEADER
850AUTOMAKE
851AUTOCONF
852ACLOCAL
853VERSION
854PACKAGE
855CYGPATH_W
856am__isrc
857INSTALL_DATA
858INSTALL_SCRIPT
859INSTALL_PROGRAM
860target_os
861target_vendor
862target_cpu
863target
864host_os
865host_vendor
866host_cpu
867host
868build_os
869build_vendor
870build_cpu
871build
872target_alias
873host_alias
874build_alias
875LIBS
876ECHO_T
877ECHO_N
878ECHO_C
879DEFS
880mandir
881localedir
882libdir
883psdir
884pdfdir
885dvidir
886htmldir
887infodir
888docdir
889oldincludedir
890includedir
891localstatedir
892sharedstatedir
893sysconfdir
894datadir
895datarootdir
896libexecdir
897sbindir
898bindir
899program_transform_name
900prefix
901exec_prefix
902PACKAGE_BUGREPORT
903PACKAGE_STRING
904PACKAGE_VERSION
905PACKAGE_TARNAME
906PACKAGE_NAME
907PATH_SEPARATOR
908SHELL'
909ac_subst_files=''
910ac_user_opts='
911enable_option_checking
912enable_dependency_tracking
913enable_shared
914enable_static
915enable_fast_install
916with_gnu_ld
917enable_libtool_lock
918with_pic
919with_tags
920'
921      ac_precious_vars='build_alias
922host_alias
923target_alias
924CC
925CFLAGS
926LDFLAGS
927LIBS
928CPPFLAGS
929CPP
930CXX
931CXXFLAGS
932CCC
933CXXCPP
934F77
935FFLAGS
936PKG_CONFIG
937libg19_CFLAGS
938libg19_LIBS'
939
940
941# Initialize some variables set by options.
942ac_init_help=
943ac_init_version=false
944ac_unrecognized_opts=
945ac_unrecognized_sep=
946# The variables have the same names as the options, with
947# dashes changed to underlines.
948cache_file=/dev/null
949exec_prefix=NONE
950no_create=
951no_recursion=
952prefix=NONE
953program_prefix=NONE
954program_suffix=NONE
955program_transform_name=s,x,x,
956silent=
957site=
958srcdir=
959verbose=
960x_includes=NONE
961x_libraries=NONE
962
963# Installation directory options.
964# These are left unexpanded so users can "make install exec_prefix=/foo"
965# and all the variables that are supposed to be based on exec_prefix
966# by default will actually change.
967# Use braces instead of parens because sh, perl, etc. also accept them.
968# (The list follows the same order as the GNU Coding Standards.)
969bindir='${exec_prefix}/bin'
970sbindir='${exec_prefix}/sbin'
971libexecdir='${exec_prefix}/libexec'
972datarootdir='${prefix}/share'
973datadir='${datarootdir}'
974sysconfdir='${prefix}/etc'
975sharedstatedir='${prefix}/com'
976localstatedir='${prefix}/var'
977includedir='${prefix}/include'
978oldincludedir='/usr/include'
979docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
980infodir='${datarootdir}/info'
981htmldir='${docdir}'
982dvidir='${docdir}'
983pdfdir='${docdir}'
984psdir='${docdir}'
985libdir='${exec_prefix}/lib'
986localedir='${datarootdir}/locale'
987mandir='${datarootdir}/man'
988
989ac_prev=
990ac_dashdash=
991for ac_option
992do
993  # If the previous option needs an argument, assign it.
994  if test -n "$ac_prev"; then
995    eval $ac_prev=\$ac_option
996    ac_prev=
997    continue
998  fi
999
1000  case $ac_option in
1001  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1002  *)	ac_optarg=yes ;;
1003  esac
1004
1005  # Accept the important Cygnus configure options, so we can diagnose typos.
1006
1007  case $ac_dashdash$ac_option in
1008  --)
1009    ac_dashdash=yes ;;
1010
1011  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012    ac_prev=bindir ;;
1013  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014    bindir=$ac_optarg ;;
1015
1016  -build | --build | --buil | --bui | --bu)
1017    ac_prev=build_alias ;;
1018  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019    build_alias=$ac_optarg ;;
1020
1021  -cache-file | --cache-file | --cache-fil | --cache-fi \
1022  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023    ac_prev=cache_file ;;
1024  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026    cache_file=$ac_optarg ;;
1027
1028  --config-cache | -C)
1029    cache_file=config.cache ;;
1030
1031  -datadir | --datadir | --datadi | --datad)
1032    ac_prev=datadir ;;
1033  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034    datadir=$ac_optarg ;;
1035
1036  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037  | --dataroo | --dataro | --datar)
1038    ac_prev=datarootdir ;;
1039  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041    datarootdir=$ac_optarg ;;
1042
1043  -disable-* | --disable-*)
1044    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045    # Reject names that are not valid shell variable names.
1046    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1048   { (exit 1); exit 1; }; }
1049    ac_useropt_orig=$ac_useropt
1050    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1051    case $ac_user_opts in
1052      *"
1053"enable_$ac_useropt"
1054"*) ;;
1055      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1056	 ac_unrecognized_sep=', ';;
1057    esac
1058    eval enable_$ac_useropt=no ;;
1059
1060  -docdir | --docdir | --docdi | --doc | --do)
1061    ac_prev=docdir ;;
1062  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063    docdir=$ac_optarg ;;
1064
1065  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066    ac_prev=dvidir ;;
1067  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068    dvidir=$ac_optarg ;;
1069
1070  -enable-* | --enable-*)
1071    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072    # Reject names that are not valid shell variable names.
1073    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1075   { (exit 1); exit 1; }; }
1076    ac_useropt_orig=$ac_useropt
1077    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078    case $ac_user_opts in
1079      *"
1080"enable_$ac_useropt"
1081"*) ;;
1082      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083	 ac_unrecognized_sep=', ';;
1084    esac
1085    eval enable_$ac_useropt=\$ac_optarg ;;
1086
1087  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089  | --exec | --exe | --ex)
1090    ac_prev=exec_prefix ;;
1091  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093  | --exec=* | --exe=* | --ex=*)
1094    exec_prefix=$ac_optarg ;;
1095
1096  -gas | --gas | --ga | --g)
1097    # Obsolete; use --with-gas.
1098    with_gas=yes ;;
1099
1100  -help | --help | --hel | --he | -h)
1101    ac_init_help=long ;;
1102  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103    ac_init_help=recursive ;;
1104  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105    ac_init_help=short ;;
1106
1107  -host | --host | --hos | --ho)
1108    ac_prev=host_alias ;;
1109  -host=* | --host=* | --hos=* | --ho=*)
1110    host_alias=$ac_optarg ;;
1111
1112  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113    ac_prev=htmldir ;;
1114  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115  | --ht=*)
1116    htmldir=$ac_optarg ;;
1117
1118  -includedir | --includedir | --includedi | --included | --include \
1119  | --includ | --inclu | --incl | --inc)
1120    ac_prev=includedir ;;
1121  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122  | --includ=* | --inclu=* | --incl=* | --inc=*)
1123    includedir=$ac_optarg ;;
1124
1125  -infodir | --infodir | --infodi | --infod | --info | --inf)
1126    ac_prev=infodir ;;
1127  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128    infodir=$ac_optarg ;;
1129
1130  -libdir | --libdir | --libdi | --libd)
1131    ac_prev=libdir ;;
1132  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133    libdir=$ac_optarg ;;
1134
1135  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136  | --libexe | --libex | --libe)
1137    ac_prev=libexecdir ;;
1138  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139  | --libexe=* | --libex=* | --libe=*)
1140    libexecdir=$ac_optarg ;;
1141
1142  -localedir | --localedir | --localedi | --localed | --locale)
1143    ac_prev=localedir ;;
1144  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145    localedir=$ac_optarg ;;
1146
1147  -localstatedir | --localstatedir | --localstatedi | --localstated \
1148  | --localstate | --localstat | --localsta | --localst | --locals)
1149    ac_prev=localstatedir ;;
1150  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152    localstatedir=$ac_optarg ;;
1153
1154  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155    ac_prev=mandir ;;
1156  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157    mandir=$ac_optarg ;;
1158
1159  -nfp | --nfp | --nf)
1160    # Obsolete; use --without-fp.
1161    with_fp=no ;;
1162
1163  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164  | --no-cr | --no-c | -n)
1165    no_create=yes ;;
1166
1167  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169    no_recursion=yes ;;
1170
1171  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173  | --oldin | --oldi | --old | --ol | --o)
1174    ac_prev=oldincludedir ;;
1175  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178    oldincludedir=$ac_optarg ;;
1179
1180  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181    ac_prev=prefix ;;
1182  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183    prefix=$ac_optarg ;;
1184
1185  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186  | --program-pre | --program-pr | --program-p)
1187    ac_prev=program_prefix ;;
1188  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190    program_prefix=$ac_optarg ;;
1191
1192  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193  | --program-suf | --program-su | --program-s)
1194    ac_prev=program_suffix ;;
1195  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197    program_suffix=$ac_optarg ;;
1198
1199  -program-transform-name | --program-transform-name \
1200  | --program-transform-nam | --program-transform-na \
1201  | --program-transform-n | --program-transform- \
1202  | --program-transform | --program-transfor \
1203  | --program-transfo | --program-transf \
1204  | --program-trans | --program-tran \
1205  | --progr-tra | --program-tr | --program-t)
1206    ac_prev=program_transform_name ;;
1207  -program-transform-name=* | --program-transform-name=* \
1208  | --program-transform-nam=* | --program-transform-na=* \
1209  | --program-transform-n=* | --program-transform-=* \
1210  | --program-transform=* | --program-transfor=* \
1211  | --program-transfo=* | --program-transf=* \
1212  | --program-trans=* | --program-tran=* \
1213  | --progr-tra=* | --program-tr=* | --program-t=*)
1214    program_transform_name=$ac_optarg ;;
1215
1216  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217    ac_prev=pdfdir ;;
1218  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219    pdfdir=$ac_optarg ;;
1220
1221  -psdir | --psdir | --psdi | --psd | --ps)
1222    ac_prev=psdir ;;
1223  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224    psdir=$ac_optarg ;;
1225
1226  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227  | -silent | --silent | --silen | --sile | --sil)
1228    silent=yes ;;
1229
1230  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231    ac_prev=sbindir ;;
1232  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233  | --sbi=* | --sb=*)
1234    sbindir=$ac_optarg ;;
1235
1236  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238  | --sharedst | --shareds | --shared | --share | --shar \
1239  | --sha | --sh)
1240    ac_prev=sharedstatedir ;;
1241  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244  | --sha=* | --sh=*)
1245    sharedstatedir=$ac_optarg ;;
1246
1247  -site | --site | --sit)
1248    ac_prev=site ;;
1249  -site=* | --site=* | --sit=*)
1250    site=$ac_optarg ;;
1251
1252  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253    ac_prev=srcdir ;;
1254  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255    srcdir=$ac_optarg ;;
1256
1257  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258  | --syscon | --sysco | --sysc | --sys | --sy)
1259    ac_prev=sysconfdir ;;
1260  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262    sysconfdir=$ac_optarg ;;
1263
1264  -target | --target | --targe | --targ | --tar | --ta | --t)
1265    ac_prev=target_alias ;;
1266  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267    target_alias=$ac_optarg ;;
1268
1269  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270    verbose=yes ;;
1271
1272  -version | --version | --versio | --versi | --vers | -V)
1273    ac_init_version=: ;;
1274
1275  -with-* | --with-*)
1276    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277    # Reject names that are not valid shell variable names.
1278    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1280   { (exit 1); exit 1; }; }
1281    ac_useropt_orig=$ac_useropt
1282    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283    case $ac_user_opts in
1284      *"
1285"with_$ac_useropt"
1286"*) ;;
1287      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1288	 ac_unrecognized_sep=', ';;
1289    esac
1290    eval with_$ac_useropt=\$ac_optarg ;;
1291
1292  -without-* | --without-*)
1293    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1294    # Reject names that are not valid shell variable names.
1295    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1297   { (exit 1); exit 1; }; }
1298    ac_useropt_orig=$ac_useropt
1299    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300    case $ac_user_opts in
1301      *"
1302"with_$ac_useropt"
1303"*) ;;
1304      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1305	 ac_unrecognized_sep=', ';;
1306    esac
1307    eval with_$ac_useropt=no ;;
1308
1309  --x)
1310    # Obsolete; use --with-x.
1311    with_x=yes ;;
1312
1313  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1314  | --x-incl | --x-inc | --x-in | --x-i)
1315    ac_prev=x_includes ;;
1316  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1317  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1318    x_includes=$ac_optarg ;;
1319
1320  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1321  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1322    ac_prev=x_libraries ;;
1323  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1324  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1325    x_libraries=$ac_optarg ;;
1326
1327  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1328Try \`$0 --help' for more information." >&2
1329   { (exit 1); exit 1; }; }
1330    ;;
1331
1332  *=*)
1333    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334    # Reject names that are not valid shell variable names.
1335    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1336      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1337   { (exit 1); exit 1; }; }
1338    eval $ac_envvar=\$ac_optarg
1339    export $ac_envvar ;;
1340
1341  *)
1342    # FIXME: should be removed in autoconf 3.0.
1343    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1344    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1345      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1346    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1347    ;;
1348
1349  esac
1350done
1351
1352if test -n "$ac_prev"; then
1353  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1354  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1355   { (exit 1); exit 1; }; }
1356fi
1357
1358if test -n "$ac_unrecognized_opts"; then
1359  case $enable_option_checking in
1360    no) ;;
1361    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1362   { (exit 1); exit 1; }; } ;;
1363    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1364  esac
1365fi
1366
1367# Check all directory arguments for consistency.
1368for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1369		datadir sysconfdir sharedstatedir localstatedir includedir \
1370		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1371		libdir localedir mandir
1372do
1373  eval ac_val=\$$ac_var
1374  # Remove trailing slashes.
1375  case $ac_val in
1376    */ )
1377      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1378      eval $ac_var=\$ac_val;;
1379  esac
1380  # Be sure to have absolute directory names.
1381  case $ac_val in
1382    [\\/$]* | ?:[\\/]* )  continue;;
1383    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1384  esac
1385  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1386   { (exit 1); exit 1; }; }
1387done
1388
1389# There might be people who depend on the old broken behavior: `$host'
1390# used to hold the argument of --host etc.
1391# FIXME: To remove some day.
1392build=$build_alias
1393host=$host_alias
1394target=$target_alias
1395
1396# FIXME: To remove some day.
1397if test "x$host_alias" != x; then
1398  if test "x$build_alias" = x; then
1399    cross_compiling=maybe
1400    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1401    If a cross compiler is detected then cross compile mode will be used." >&2
1402  elif test "x$build_alias" != "x$host_alias"; then
1403    cross_compiling=yes
1404  fi
1405fi
1406
1407ac_tool_prefix=
1408test -n "$host_alias" && ac_tool_prefix=$host_alias-
1409
1410test "$silent" = yes && exec 6>/dev/null
1411
1412
1413ac_pwd=`pwd` && test -n "$ac_pwd" &&
1414ac_ls_di=`ls -di .` &&
1415ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1416  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1417   { (exit 1); exit 1; }; }
1418test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1419  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1420   { (exit 1); exit 1; }; }
1421
1422
1423# Find the source files, if location was not specified.
1424if test -z "$srcdir"; then
1425  ac_srcdir_defaulted=yes
1426  # Try the directory containing this script, then the parent directory.
1427  ac_confdir=`$as_dirname -- "$as_myself" ||
1428$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1429	 X"$as_myself" : 'X\(//\)[^/]' \| \
1430	 X"$as_myself" : 'X\(//\)$' \| \
1431	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1432$as_echo X"$as_myself" |
1433    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)[^/].*/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\/\)$/{
1442	    s//\1/
1443	    q
1444	  }
1445	  /^X\(\/\).*/{
1446	    s//\1/
1447	    q
1448	  }
1449	  s/.*/./; q'`
1450  srcdir=$ac_confdir
1451  if test ! -r "$srcdir/$ac_unique_file"; then
1452    srcdir=..
1453  fi
1454else
1455  ac_srcdir_defaulted=no
1456fi
1457if test ! -r "$srcdir/$ac_unique_file"; then
1458  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1459  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1460   { (exit 1); exit 1; }; }
1461fi
1462ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1463ac_abs_confdir=`(
1464	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1465   { (exit 1); exit 1; }; }
1466	pwd)`
1467# When building in place, set srcdir=.
1468if test "$ac_abs_confdir" = "$ac_pwd"; then
1469  srcdir=.
1470fi
1471# Remove unnecessary trailing slashes from srcdir.
1472# Double slashes in file names in object file debugging info
1473# mess up M-x gdb in Emacs.
1474case $srcdir in
1475*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1476esac
1477for ac_var in $ac_precious_vars; do
1478  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1479  eval ac_env_${ac_var}_value=\$${ac_var}
1480  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1481  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1482done
1483
1484#
1485# Report the --help message.
1486#
1487if test "$ac_init_help" = "long"; then
1488  # Omit some internal or obsolete options to make the list less imposing.
1489  # This message is too long to be a string in the A/UX 3.1 sh.
1490  cat <<_ACEOF
1491\`configure' configures libg19 1.1.1 to adapt to many kinds of systems.
1492
1493Usage: $0 [OPTION]... [VAR=VALUE]...
1494
1495To assign environment variables (e.g., CC, CFLAGS...), specify them as
1496VAR=VALUE.  See below for descriptions of some of the useful variables.
1497
1498Defaults for the options are specified in brackets.
1499
1500Configuration:
1501  -h, --help              display this help and exit
1502      --help=short        display options specific to this package
1503      --help=recursive    display the short help of all the included packages
1504  -V, --version           display version information and exit
1505  -q, --quiet, --silent   do not print \`checking...' messages
1506      --cache-file=FILE   cache test results in FILE [disabled]
1507  -C, --config-cache      alias for \`--cache-file=config.cache'
1508  -n, --no-create         do not create output files
1509      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1510
1511Installation directories:
1512  --prefix=PREFIX         install architecture-independent files in PREFIX
1513                          [$ac_default_prefix]
1514  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1515                          [PREFIX]
1516
1517By default, \`make install' will install all the files in
1518\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1519an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1520for instance \`--prefix=\$HOME'.
1521
1522For better control, use the options below.
1523
1524Fine tuning of the installation directories:
1525  --bindir=DIR            user executables [EPREFIX/bin]
1526  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1527  --libexecdir=DIR        program executables [EPREFIX/libexec]
1528  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1529  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1530  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1531  --libdir=DIR            object code libraries [EPREFIX/lib]
1532  --includedir=DIR        C header files [PREFIX/include]
1533  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1534  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1535  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1536  --infodir=DIR           info documentation [DATAROOTDIR/info]
1537  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1538  --mandir=DIR            man documentation [DATAROOTDIR/man]
1539  --docdir=DIR            documentation root [DATAROOTDIR/doc/libg19]
1540  --htmldir=DIR           html documentation [DOCDIR]
1541  --dvidir=DIR            dvi documentation [DOCDIR]
1542  --pdfdir=DIR            pdf documentation [DOCDIR]
1543  --psdir=DIR             ps documentation [DOCDIR]
1544_ACEOF
1545
1546  cat <<\_ACEOF
1547
1548Program names:
1549  --program-prefix=PREFIX            prepend PREFIX to installed program names
1550  --program-suffix=SUFFIX            append SUFFIX to installed program names
1551  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1552
1553System types:
1554  --build=BUILD     configure for building on BUILD [guessed]
1555  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1556  --target=TARGET   configure for building compilers for TARGET [HOST]
1557_ACEOF
1558fi
1559
1560if test -n "$ac_init_help"; then
1561  case $ac_init_help in
1562     short | recursive ) echo "Configuration of libg19 1.1.1:";;
1563   esac
1564  cat <<\_ACEOF
1565
1566Optional Features:
1567  --disable-option-checking  ignore unrecognized --enable/--with options
1568  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1569  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1570  --disable-dependency-tracking  speeds up one-time build
1571  --enable-dependency-tracking   do not reject slow dependency extractors
1572  --enable-shared[=PKGS]  build shared libraries [default=yes]
1573  --enable-static[=PKGS]  build static libraries [default=yes]
1574  --enable-fast-install[=PKGS]
1575                          optimize for fast installation [default=yes]
1576  --disable-libtool-lock  avoid locking (might break parallel builds)
1577
1578Optional Packages:
1579  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1580  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1581  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1582  --with-pic              try to use only PIC/non-PIC objects [default=use
1583                          both]
1584  --with-tags[=TAGS]      include additional configurations [automatic]
1585
1586Some influential environment variables:
1587  CC          C compiler command
1588  CFLAGS      C compiler flags
1589  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1590              nonstandard directory <lib dir>
1591  LIBS        libraries to pass to the linker, e.g. -l<library>
1592  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1593              you have headers in a nonstandard directory <include dir>
1594  CPP         C preprocessor
1595  CXX         C++ compiler command
1596  CXXFLAGS    C++ compiler flags
1597  CXXCPP      C++ preprocessor
1598  F77         Fortran 77 compiler command
1599  FFLAGS      Fortran 77 compiler flags
1600  PKG_CONFIG  path to pkg-config utility
1601  libg19_CFLAGS
1602              C compiler flags for libg19, overriding pkg-config
1603  libg19_LIBS linker flags for libg19, overriding pkg-config
1604
1605Use these variables to override the choices made by `configure' or to help
1606it to find libraries and programs with nonstandard names/locations.
1607
1608Report bugs to <jgeboski@users.sourceforge.net>.
1609_ACEOF
1610ac_status=$?
1611fi
1612
1613if test "$ac_init_help" = "recursive"; then
1614  # If there are subdirs, report their specific --help.
1615  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1616    test -d "$ac_dir" ||
1617      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1618      continue
1619    ac_builddir=.
1620
1621case "$ac_dir" in
1622.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623*)
1624  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625  # A ".." for each directory in $ac_dir_suffix.
1626  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627  case $ac_top_builddir_sub in
1628  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1630  esac ;;
1631esac
1632ac_abs_top_builddir=$ac_pwd
1633ac_abs_builddir=$ac_pwd$ac_dir_suffix
1634# for backward compatibility:
1635ac_top_builddir=$ac_top_build_prefix
1636
1637case $srcdir in
1638  .)  # We are building in place.
1639    ac_srcdir=.
1640    ac_top_srcdir=$ac_top_builddir_sub
1641    ac_abs_top_srcdir=$ac_pwd ;;
1642  [\\/]* | ?:[\\/]* )  # Absolute name.
1643    ac_srcdir=$srcdir$ac_dir_suffix;
1644    ac_top_srcdir=$srcdir
1645    ac_abs_top_srcdir=$srcdir ;;
1646  *) # Relative name.
1647    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648    ac_top_srcdir=$ac_top_build_prefix$srcdir
1649    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1650esac
1651ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1652
1653    cd "$ac_dir" || { ac_status=$?; continue; }
1654    # Check for guested configure.
1655    if test -f "$ac_srcdir/configure.gnu"; then
1656      echo &&
1657      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658    elif test -f "$ac_srcdir/configure"; then
1659      echo &&
1660      $SHELL "$ac_srcdir/configure" --help=recursive
1661    else
1662      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1663    fi || ac_status=$?
1664    cd "$ac_pwd" || { ac_status=$?; break; }
1665  done
1666fi
1667
1668test -n "$ac_init_help" && exit $ac_status
1669if $ac_init_version; then
1670  cat <<\_ACEOF
1671libg19 configure 1.1.1
1672generated by GNU Autoconf 2.63
1673
1674Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16752002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
1679  exit
1680fi
1681cat >config.log <<_ACEOF
1682This file contains any messages produced by compilers while
1683running configure, to aid debugging if configure makes a mistake.
1684
1685It was created by libg19 $as_me 1.1.1, which was
1686generated by GNU Autoconf 2.63.  Invocation command line was
1687
1688  $ $0 $@
1689
1690_ACEOF
1691exec 5>>config.log
1692{
1693cat <<_ASUNAME
1694## --------- ##
1695## Platform. ##
1696## --------- ##
1697
1698hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1699uname -m = `(uname -m) 2>/dev/null || echo unknown`
1700uname -r = `(uname -r) 2>/dev/null || echo unknown`
1701uname -s = `(uname -s) 2>/dev/null || echo unknown`
1702uname -v = `(uname -v) 2>/dev/null || echo unknown`
1703
1704/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1705/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1706
1707/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1708/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1709/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1710/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1711/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1712/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1713/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1714
1715_ASUNAME
1716
1717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718for as_dir in $PATH
1719do
1720  IFS=$as_save_IFS
1721  test -z "$as_dir" && as_dir=.
1722  $as_echo "PATH: $as_dir"
1723done
1724IFS=$as_save_IFS
1725
1726} >&5
1727
1728cat >&5 <<_ACEOF
1729
1730
1731## ----------- ##
1732## Core tests. ##
1733## ----------- ##
1734
1735_ACEOF
1736
1737
1738# Keep a trace of the command line.
1739# Strip out --no-create and --no-recursion so they do not pile up.
1740# Strip out --silent because we don't want to record it for future runs.
1741# Also quote any args containing shell meta-characters.
1742# Make two passes to allow for proper duplicate-argument suppression.
1743ac_configure_args=
1744ac_configure_args0=
1745ac_configure_args1=
1746ac_must_keep_next=false
1747for ac_pass in 1 2
1748do
1749  for ac_arg
1750  do
1751    case $ac_arg in
1752    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1753    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1754    | -silent | --silent | --silen | --sile | --sil)
1755      continue ;;
1756    *\'*)
1757      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1758    esac
1759    case $ac_pass in
1760    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1761    2)
1762      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1763      if test $ac_must_keep_next = true; then
1764	ac_must_keep_next=false # Got value, back to normal.
1765      else
1766	case $ac_arg in
1767	  *=* | --config-cache | -C | -disable-* | --disable-* \
1768	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1769	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1770	  | -with-* | --with-* | -without-* | --without-* | --x)
1771	    case "$ac_configure_args0 " in
1772	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1773	    esac
1774	    ;;
1775	  -* ) ac_must_keep_next=true ;;
1776	esac
1777      fi
1778      ac_configure_args="$ac_configure_args '$ac_arg'"
1779      ;;
1780    esac
1781  done
1782done
1783$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1784$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1785
1786# When interrupted or exit'd, cleanup temporary files, and complete
1787# config.log.  We remove comments because anyway the quotes in there
1788# would cause problems or look ugly.
1789# WARNING: Use '\'' to represent an apostrophe within the trap.
1790# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1791trap 'exit_status=$?
1792  # Save into config.log some information that might help in debugging.
1793  {
1794    echo
1795
1796    cat <<\_ASBOX
1797## ---------------- ##
1798## Cache variables. ##
1799## ---------------- ##
1800_ASBOX
1801    echo
1802    # The following way of writing the cache mishandles newlines in values,
1803(
1804  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1805    eval ac_val=\$$ac_var
1806    case $ac_val in #(
1807    *${as_nl}*)
1808      case $ac_var in #(
1809      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1810$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1811      esac
1812      case $ac_var in #(
1813      _ | IFS | as_nl) ;; #(
1814      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1815      *) $as_unset $ac_var ;;
1816      esac ;;
1817    esac
1818  done
1819  (set) 2>&1 |
1820    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821    *${as_nl}ac_space=\ *)
1822      sed -n \
1823	"s/'\''/'\''\\\\'\'''\''/g;
1824	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825      ;; #(
1826    *)
1827      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828      ;;
1829    esac |
1830    sort
1831)
1832    echo
1833
1834    cat <<\_ASBOX
1835## ----------------- ##
1836## Output variables. ##
1837## ----------------- ##
1838_ASBOX
1839    echo
1840    for ac_var in $ac_subst_vars
1841    do
1842      eval ac_val=\$$ac_var
1843      case $ac_val in
1844      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845      esac
1846      $as_echo "$ac_var='\''$ac_val'\''"
1847    done | sort
1848    echo
1849
1850    if test -n "$ac_subst_files"; then
1851      cat <<\_ASBOX
1852## ------------------- ##
1853## File substitutions. ##
1854## ------------------- ##
1855_ASBOX
1856      echo
1857      for ac_var in $ac_subst_files
1858      do
1859	eval ac_val=\$$ac_var
1860	case $ac_val in
1861	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862	esac
1863	$as_echo "$ac_var='\''$ac_val'\''"
1864      done | sort
1865      echo
1866    fi
1867
1868    if test -s confdefs.h; then
1869      cat <<\_ASBOX
1870## ----------- ##
1871## confdefs.h. ##
1872## ----------- ##
1873_ASBOX
1874      echo
1875      cat confdefs.h
1876      echo
1877    fi
1878    test "$ac_signal" != 0 &&
1879      $as_echo "$as_me: caught signal $ac_signal"
1880    $as_echo "$as_me: exit $exit_status"
1881  } >&5
1882  rm -f core *.core core.conftest.* &&
1883    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1884    exit $exit_status
1885' 0
1886for ac_signal in 1 2 13 15; do
1887  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888done
1889ac_signal=0
1890
1891# confdefs.h avoids OS command line length limits that DEFS can exceed.
1892rm -f -r conftest* confdefs.h
1893
1894# Predefined preprocessor variables.
1895
1896cat >>confdefs.h <<_ACEOF
1897#define PACKAGE_NAME "$PACKAGE_NAME"
1898_ACEOF
1899
1900
1901cat >>confdefs.h <<_ACEOF
1902#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903_ACEOF
1904
1905
1906cat >>confdefs.h <<_ACEOF
1907#define PACKAGE_VERSION "$PACKAGE_VERSION"
1908_ACEOF
1909
1910
1911cat >>confdefs.h <<_ACEOF
1912#define PACKAGE_STRING "$PACKAGE_STRING"
1913_ACEOF
1914
1915
1916cat >>confdefs.h <<_ACEOF
1917#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918_ACEOF
1919
1920
1921# Let the site file select an alternate cache file if it wants to.
1922# Prefer an explicitly selected file to automatically selected ones.
1923ac_site_file1=NONE
1924ac_site_file2=NONE
1925if test -n "$CONFIG_SITE"; then
1926  ac_site_file1=$CONFIG_SITE
1927elif test "x$prefix" != xNONE; then
1928  ac_site_file1=$prefix/share/config.site
1929  ac_site_file2=$prefix/etc/config.site
1930else
1931  ac_site_file1=$ac_default_prefix/share/config.site
1932  ac_site_file2=$ac_default_prefix/etc/config.site
1933fi
1934for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1935do
1936  test "x$ac_site_file" = xNONE && continue
1937  if test -r "$ac_site_file"; then
1938    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1939$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1940    sed 's/^/| /' "$ac_site_file" >&5
1941    . "$ac_site_file"
1942  fi
1943done
1944
1945if test -r "$cache_file"; then
1946  # Some versions of bash will fail to source /dev/null (special
1947  # files actually), so we avoid doing that.
1948  if test -f "$cache_file"; then
1949    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1950$as_echo "$as_me: loading cache $cache_file" >&6;}
1951    case $cache_file in
1952      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1953      *)                      . "./$cache_file";;
1954    esac
1955  fi
1956else
1957  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1958$as_echo "$as_me: creating cache $cache_file" >&6;}
1959  >$cache_file
1960fi
1961
1962# Check that the precious variables saved in the cache have kept the same
1963# value.
1964ac_cache_corrupted=false
1965for ac_var in $ac_precious_vars; do
1966  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1967  eval ac_new_set=\$ac_env_${ac_var}_set
1968  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1969  eval ac_new_val=\$ac_env_${ac_var}_value
1970  case $ac_old_set,$ac_new_set in
1971    set,)
1972      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1973$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1974      ac_cache_corrupted=: ;;
1975    ,set)
1976      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1977$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1978      ac_cache_corrupted=: ;;
1979    ,);;
1980    *)
1981      if test "x$ac_old_val" != "x$ac_new_val"; then
1982	# differences in whitespace do not lead to failure.
1983	ac_old_val_w=`echo x $ac_old_val`
1984	ac_new_val_w=`echo x $ac_new_val`
1985	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1986	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1987$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1988	  ac_cache_corrupted=:
1989	else
1990	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1991$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1992	  eval $ac_var=\$ac_old_val
1993	fi
1994	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1995$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1996	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1997$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1998      fi;;
1999  esac
2000  # Pass precious variables to config.status.
2001  if test "$ac_new_set" = set; then
2002    case $ac_new_val in
2003    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2004    *) ac_arg=$ac_var=$ac_new_val ;;
2005    esac
2006    case " $ac_configure_args " in
2007      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2008      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2009    esac
2010  fi
2011done
2012if $ac_cache_corrupted; then
2013  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2014$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2015  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2016$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2017  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2018$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2019   { (exit 1); exit 1; }; }
2020fi
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051
2052
2053
2054ac_aux_dir=
2055for ac_dir in config "$srcdir"/config; do
2056  if test -f "$ac_dir/install-sh"; then
2057    ac_aux_dir=$ac_dir
2058    ac_install_sh="$ac_aux_dir/install-sh -c"
2059    break
2060  elif test -f "$ac_dir/install.sh"; then
2061    ac_aux_dir=$ac_dir
2062    ac_install_sh="$ac_aux_dir/install.sh -c"
2063    break
2064  elif test -f "$ac_dir/shtool"; then
2065    ac_aux_dir=$ac_dir
2066    ac_install_sh="$ac_aux_dir/shtool install -c"
2067    break
2068  fi
2069done
2070if test -z "$ac_aux_dir"; then
2071  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2072$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2073   { (exit 1); exit 1; }; }
2074fi
2075
2076# These three variables are undocumented and unsupported,
2077# and are intended to be withdrawn in a future Autoconf release.
2078# They can cause serious problems if a builder's source tree is in a directory
2079# whose full name contains unusual characters.
2080ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2081ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2082ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2083
2084
2085# Make sure we can run config.sub.
2086$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089   { (exit 1); exit 1; }; }
2090
2091{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2092$as_echo_n "checking build system type... " >&6; }
2093if test "${ac_cv_build+set}" = set; then
2094  $as_echo_n "(cached) " >&6
2095else
2096  ac_build_alias=$build_alias
2097test "x$ac_build_alias" = x &&
2098  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099test "x$ac_build_alias" = x &&
2100  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102   { (exit 1); exit 1; }; }
2103ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106   { (exit 1); exit 1; }; }
2107
2108fi
2109{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110$as_echo "$ac_cv_build" >&6; }
2111case $ac_cv_build in
2112*-*-*) ;;
2113*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2115   { (exit 1); exit 1; }; };;
2116esac
2117build=$ac_cv_build
2118ac_save_IFS=$IFS; IFS='-'
2119set x $ac_cv_build
2120shift
2121build_cpu=$1
2122build_vendor=$2
2123shift; shift
2124# Remember, the first character of IFS is used to create $*,
2125# except with old shells:
2126build_os=$*
2127IFS=$ac_save_IFS
2128case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2129
2130
2131{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2132$as_echo_n "checking host system type... " >&6; }
2133if test "${ac_cv_host+set}" = set; then
2134  $as_echo_n "(cached) " >&6
2135else
2136  if test "x$host_alias" = x; then
2137  ac_cv_host=$ac_cv_build
2138else
2139  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142   { (exit 1); exit 1; }; }
2143fi
2144
2145fi
2146{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147$as_echo "$ac_cv_host" >&6; }
2148case $ac_cv_host in
2149*-*-*) ;;
2150*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2152   { (exit 1); exit 1; }; };;
2153esac
2154host=$ac_cv_host
2155ac_save_IFS=$IFS; IFS='-'
2156set x $ac_cv_host
2157shift
2158host_cpu=$1
2159host_vendor=$2
2160shift; shift
2161# Remember, the first character of IFS is used to create $*,
2162# except with old shells:
2163host_os=$*
2164IFS=$ac_save_IFS
2165case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2166
2167
2168{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2169$as_echo_n "checking target system type... " >&6; }
2170if test "${ac_cv_target+set}" = set; then
2171  $as_echo_n "(cached) " >&6
2172else
2173  if test "x$target_alias" = x; then
2174  ac_cv_target=$ac_cv_host
2175else
2176  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2177    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2178$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2179   { (exit 1); exit 1; }; }
2180fi
2181
2182fi
2183{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2184$as_echo "$ac_cv_target" >&6; }
2185case $ac_cv_target in
2186*-*-*) ;;
2187*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2188$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2189   { (exit 1); exit 1; }; };;
2190esac
2191target=$ac_cv_target
2192ac_save_IFS=$IFS; IFS='-'
2193set x $ac_cv_target
2194shift
2195target_cpu=$1
2196target_vendor=$2
2197shift; shift
2198# Remember, the first character of IFS is used to create $*,
2199# except with old shells:
2200target_os=$*
2201IFS=$ac_save_IFS
2202case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2203
2204
2205# The aliases save the names the user supplied, while $host etc.
2206# will get canonicalized.
2207test -n "$target_alias" &&
2208  test "$program_prefix$program_suffix$program_transform_name" = \
2209    NONENONEs,x,x, &&
2210  program_prefix=${target_alias}-
2211
2212am__api_version='1.10'
2213
2214# Find a good install program.  We prefer a C program (faster),
2215# so one script is as good as another.  But avoid the broken or
2216# incompatible versions:
2217# SysV /etc/install, /usr/sbin/install
2218# SunOS /usr/etc/install
2219# IRIX /sbin/install
2220# AIX /bin/install
2221# AmigaOS /C/install, which installs bootblocks on floppy discs
2222# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2223# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2224# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2225# OS/2's system install, which has a completely different semantic
2226# ./install, which can be erroneously created by make from ./install.sh.
2227# Reject install programs that cannot install multiple files.
2228{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2229$as_echo_n "checking for a BSD-compatible install... " >&6; }
2230if test -z "$INSTALL"; then
2231if test "${ac_cv_path_install+set}" = set; then
2232  $as_echo_n "(cached) " >&6
2233else
2234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237  IFS=$as_save_IFS
2238  test -z "$as_dir" && as_dir=.
2239  # Account for people who put trailing slashes in PATH elements.
2240case $as_dir/ in
2241  ./ | .// | /cC/* | \
2242  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2243  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2244  /usr/ucb/* ) ;;
2245  *)
2246    # OSF1 and SCO ODT 3.0 have their own names for install.
2247    # Don't use installbsd from OSF since it installs stuff as root
2248    # by default.
2249    for ac_prog in ginstall scoinst install; do
2250      for ac_exec_ext in '' $ac_executable_extensions; do
2251	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2252	  if test $ac_prog = install &&
2253	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2254	    # AIX install.  It has an incompatible calling convention.
2255	    :
2256	  elif test $ac_prog = install &&
2257	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2258	    # program-specific install script used by HP pwplus--don't use.
2259	    :
2260	  else
2261	    rm -rf conftest.one conftest.two conftest.dir
2262	    echo one > conftest.one
2263	    echo two > conftest.two
2264	    mkdir conftest.dir
2265	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2266	      test -s conftest.one && test -s conftest.two &&
2267	      test -s conftest.dir/conftest.one &&
2268	      test -s conftest.dir/conftest.two
2269	    then
2270	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2271	      break 3
2272	    fi
2273	  fi
2274	fi
2275      done
2276    done
2277    ;;
2278esac
2279
2280done
2281IFS=$as_save_IFS
2282
2283rm -rf conftest.one conftest.two conftest.dir
2284
2285fi
2286  if test "${ac_cv_path_install+set}" = set; then
2287    INSTALL=$ac_cv_path_install
2288  else
2289    # As a last resort, use the slow shell script.  Don't cache a
2290    # value for INSTALL within a source directory, because that will
2291    # break other packages using the cache if that directory is
2292    # removed, or if the value is a relative name.
2293    INSTALL=$ac_install_sh
2294  fi
2295fi
2296{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2297$as_echo "$INSTALL" >&6; }
2298
2299# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2300# It thinks the first close brace ends the variable substitution.
2301test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2302
2303test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2304
2305test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2306
2307{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2308$as_echo_n "checking whether build environment is sane... " >&6; }
2309# Just in case
2310sleep 1
2311echo timestamp > conftest.file
2312# Do `set' in a subshell so we don't clobber the current shell's
2313# arguments.  Must try -L first in case configure is actually a
2314# symlink; some systems play weird games with the mod time of symlinks
2315# (eg FreeBSD returns the mod time of the symlink's containing
2316# directory).
2317if (
2318   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2319   if test "$*" = "X"; then
2320      # -L didn't work.
2321      set X `ls -t $srcdir/configure conftest.file`
2322   fi
2323   rm -f conftest.file
2324   if test "$*" != "X $srcdir/configure conftest.file" \
2325      && test "$*" != "X conftest.file $srcdir/configure"; then
2326
2327      # If neither matched, then we have a broken ls.  This can happen
2328      # if, for instance, CONFIG_SHELL is bash and it inherits a
2329      # broken ls alias from the environment.  This has actually
2330      # happened.  Such a system could not be considered "sane".
2331      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2332alias in your environment" >&5
2333$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2334alias in your environment" >&2;}
2335   { (exit 1); exit 1; }; }
2336   fi
2337
2338   test "$2" = conftest.file
2339   )
2340then
2341   # Ok.
2342   :
2343else
2344   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2345Check your system clock" >&5
2346$as_echo "$as_me: error: newly created file is older than distributed files!
2347Check your system clock" >&2;}
2348   { (exit 1); exit 1; }; }
2349fi
2350{ $as_echo "$as_me:$LINENO: result: yes" >&5
2351$as_echo "yes" >&6; }
2352test "$program_prefix" != NONE &&
2353  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2354# Use a double $ so make ignores it.
2355test "$program_suffix" != NONE &&
2356  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2357# Double any \ or $.
2358# By default was `s,x,x', remove it if useless.
2359ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2360program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2361
2362# expand $ac_aux_dir to an absolute path
2363am_aux_dir=`cd $ac_aux_dir && pwd`
2364
2365test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2366# Use eval to expand $SHELL
2367if eval "$MISSING --run true"; then
2368  am_missing_run="$MISSING --run "
2369else
2370  am_missing_run=
2371  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2372$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2373fi
2374
2375{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2376$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2377if test -z "$MKDIR_P"; then
2378  if test "${ac_cv_path_mkdir+set}" = set; then
2379  $as_echo_n "(cached) " >&6
2380else
2381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2383do
2384  IFS=$as_save_IFS
2385  test -z "$as_dir" && as_dir=.
2386  for ac_prog in mkdir gmkdir; do
2387	 for ac_exec_ext in '' $ac_executable_extensions; do
2388	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2389	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2390	     'mkdir (GNU coreutils) '* | \
2391	     'mkdir (coreutils) '* | \
2392	     'mkdir (fileutils) '4.1*)
2393	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2394	       break 3;;
2395	   esac
2396	 done
2397       done
2398done
2399IFS=$as_save_IFS
2400
2401fi
2402
2403  if test "${ac_cv_path_mkdir+set}" = set; then
2404    MKDIR_P="$ac_cv_path_mkdir -p"
2405  else
2406    # As a last resort, use the slow shell script.  Don't cache a
2407    # value for MKDIR_P within a source directory, because that will
2408    # break other packages using the cache if that directory is
2409    # removed, or if the value is a relative name.
2410    test -d ./--version && rmdir ./--version
2411    MKDIR_P="$ac_install_sh -d"
2412  fi
2413fi
2414{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2415$as_echo "$MKDIR_P" >&6; }
2416
2417mkdir_p="$MKDIR_P"
2418case $mkdir_p in
2419  [\\/$]* | ?:[\\/]*) ;;
2420  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2421esac
2422
2423for ac_prog in gawk mawk nawk awk
2424do
2425  # Extract the first word of "$ac_prog", so it can be a program name with args.
2426set dummy $ac_prog; ac_word=$2
2427{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2428$as_echo_n "checking for $ac_word... " >&6; }
2429if test "${ac_cv_prog_AWK+set}" = set; then
2430  $as_echo_n "(cached) " >&6
2431else
2432  if test -n "$AWK"; then
2433  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2434else
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440  for ac_exec_ext in '' $ac_executable_extensions; do
2441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2442    ac_cv_prog_AWK="$ac_prog"
2443    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444    break 2
2445  fi
2446done
2447done
2448IFS=$as_save_IFS
2449
2450fi
2451fi
2452AWK=$ac_cv_prog_AWK
2453if test -n "$AWK"; then
2454  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2455$as_echo "$AWK" >&6; }
2456else
2457  { $as_echo "$as_me:$LINENO: result: no" >&5
2458$as_echo "no" >&6; }
2459fi
2460
2461
2462  test -n "$AWK" && break
2463done
2464
2465{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2466$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2467set x ${MAKE-make}
2468ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2469if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2470  $as_echo_n "(cached) " >&6
2471else
2472  cat >conftest.make <<\_ACEOF
2473SHELL = /bin/sh
2474all:
2475	@echo '@@@%%%=$(MAKE)=@@@%%%'
2476_ACEOF
2477# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2478case `${MAKE-make} -f conftest.make 2>/dev/null` in
2479  *@@@%%%=?*=@@@%%%*)
2480    eval ac_cv_prog_make_${ac_make}_set=yes;;
2481  *)
2482    eval ac_cv_prog_make_${ac_make}_set=no;;
2483esac
2484rm -f conftest.make
2485fi
2486if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2487  { $as_echo "$as_me:$LINENO: result: yes" >&5
2488$as_echo "yes" >&6; }
2489  SET_MAKE=
2490else
2491  { $as_echo "$as_me:$LINENO: result: no" >&5
2492$as_echo "no" >&6; }
2493  SET_MAKE="MAKE=${MAKE-make}"
2494fi
2495
2496rm -rf .tst 2>/dev/null
2497mkdir .tst 2>/dev/null
2498if test -d .tst; then
2499  am__leading_dot=.
2500else
2501  am__leading_dot=_
2502fi
2503rmdir .tst 2>/dev/null
2504
2505if test "`cd $srcdir && pwd`" != "`pwd`"; then
2506  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2507  # is not polluted with repeated "-I."
2508  am__isrc=' -I$(srcdir)'
2509  # test to see if srcdir already configured
2510  if test -f $srcdir/config.status; then
2511    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2512$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2513   { (exit 1); exit 1; }; }
2514  fi
2515fi
2516
2517# test whether we have cygpath
2518if test -z "$CYGPATH_W"; then
2519  if (cygpath --version) >/dev/null 2>/dev/null; then
2520    CYGPATH_W='cygpath -w'
2521  else
2522    CYGPATH_W=echo
2523  fi
2524fi
2525
2526
2527# Define the identity of the package.
2528 PACKAGE='libg19'
2529 VERSION='1.1.1'
2530
2531
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE "$PACKAGE"
2534_ACEOF
2535
2536
2537cat >>confdefs.h <<_ACEOF
2538#define VERSION "$VERSION"
2539_ACEOF
2540
2541# Some tools Automake needs.
2542
2543ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2544
2545
2546AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2547
2548
2549AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2550
2551
2552AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2553
2554
2555MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2556
2557install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2558
2559# Installed binaries are usually stripped using `strip' when the user
2560# run `make install-strip'.  However `strip' might not be the right
2561# tool to use in cross-compilation environments, therefore Automake
2562# will honor the `STRIP' environment variable to overrule this program.
2563if test "$cross_compiling" != no; then
2564  if test -n "$ac_tool_prefix"; then
2565  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}strip; ac_word=$2
2567{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2568$as_echo_n "checking for $ac_word... " >&6; }
2569if test "${ac_cv_prog_STRIP+set}" = set; then
2570  $as_echo_n "(cached) " >&6
2571else
2572  if test -n "$STRIP"; then
2573  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578  IFS=$as_save_IFS
2579  test -z "$as_dir" && as_dir=.
2580  for ac_exec_ext in '' $ac_executable_extensions; do
2581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584    break 2
2585  fi
2586done
2587done
2588IFS=$as_save_IFS
2589
2590fi
2591fi
2592STRIP=$ac_cv_prog_STRIP
2593if test -n "$STRIP"; then
2594  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2595$as_echo "$STRIP" >&6; }
2596else
2597  { $as_echo "$as_me:$LINENO: result: no" >&5
2598$as_echo "no" >&6; }
2599fi
2600
2601
2602fi
2603if test -z "$ac_cv_prog_STRIP"; then
2604  ac_ct_STRIP=$STRIP
2605  # Extract the first word of "strip", so it can be a program name with args.
2606set dummy strip; ac_word=$2
2607{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2608$as_echo_n "checking for $ac_word... " >&6; }
2609if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2610  $as_echo_n "(cached) " >&6
2611else
2612  if test -n "$ac_ct_STRIP"; then
2613  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614else
2615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618  IFS=$as_save_IFS
2619  test -z "$as_dir" && as_dir=.
2620  for ac_exec_ext in '' $ac_executable_extensions; do
2621  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622    ac_cv_prog_ac_ct_STRIP="strip"
2623    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624    break 2
2625  fi
2626done
2627done
2628IFS=$as_save_IFS
2629
2630fi
2631fi
2632ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633if test -n "$ac_ct_STRIP"; then
2634  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2635$as_echo "$ac_ct_STRIP" >&6; }
2636else
2637  { $as_echo "$as_me:$LINENO: result: no" >&5
2638$as_echo "no" >&6; }
2639fi
2640
2641  if test "x$ac_ct_STRIP" = x; then
2642    STRIP=":"
2643  else
2644    case $cross_compiling:$ac_tool_warned in
2645yes:)
2646{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648ac_tool_warned=yes ;;
2649esac
2650    STRIP=$ac_ct_STRIP
2651  fi
2652else
2653  STRIP="$ac_cv_prog_STRIP"
2654fi
2655
2656fi
2657INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2658
2659# We need awk for the "check" target.  The system "awk" is bad on
2660# some platforms.
2661# Always define AMTAR for backward compatibility.
2662
2663AMTAR=${AMTAR-"${am_missing_run}tar"}
2664
2665am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2666
2667
2668
2669
2670
2671
2672
2673ac_ext=c
2674ac_cpp='$CPP $CPPFLAGS'
2675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678if test -n "$ac_tool_prefix"; then
2679  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2680set dummy ${ac_tool_prefix}gcc; ac_word=$2
2681{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2682$as_echo_n "checking for $ac_word... " >&6; }
2683if test "${ac_cv_prog_CC+set}" = set; then
2684  $as_echo_n "(cached) " >&6
2685else
2686  if test -n "$CC"; then
2687  ac_cv_prog_CC="$CC" # Let the user override the test.
2688else
2689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690for as_dir in $PATH
2691do
2692  IFS=$as_save_IFS
2693  test -z "$as_dir" && as_dir=.
2694  for ac_exec_ext in '' $ac_executable_extensions; do
2695  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2697    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2698    break 2
2699  fi
2700done
2701done
2702IFS=$as_save_IFS
2703
2704fi
2705fi
2706CC=$ac_cv_prog_CC
2707if test -n "$CC"; then
2708  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2709$as_echo "$CC" >&6; }
2710else
2711  { $as_echo "$as_me:$LINENO: result: no" >&5
2712$as_echo "no" >&6; }
2713fi
2714
2715
2716fi
2717if test -z "$ac_cv_prog_CC"; then
2718  ac_ct_CC=$CC
2719  # Extract the first word of "gcc", so it can be a program name with args.
2720set dummy gcc; ac_word=$2
2721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2722$as_echo_n "checking for $ac_word... " >&6; }
2723if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2724  $as_echo_n "(cached) " >&6
2725else
2726  if test -n "$ac_ct_CC"; then
2727  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2728else
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734  for ac_exec_ext in '' $ac_executable_extensions; do
2735  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736    ac_cv_prog_ac_ct_CC="gcc"
2737    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738    break 2
2739  fi
2740done
2741done
2742IFS=$as_save_IFS
2743
2744fi
2745fi
2746ac_ct_CC=$ac_cv_prog_ac_ct_CC
2747if test -n "$ac_ct_CC"; then
2748  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2749$as_echo "$ac_ct_CC" >&6; }
2750else
2751  { $as_echo "$as_me:$LINENO: result: no" >&5
2752$as_echo "no" >&6; }
2753fi
2754
2755  if test "x$ac_ct_CC" = x; then
2756    CC=""
2757  else
2758    case $cross_compiling:$ac_tool_warned in
2759yes:)
2760{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2762ac_tool_warned=yes ;;
2763esac
2764    CC=$ac_ct_CC
2765  fi
2766else
2767  CC="$ac_cv_prog_CC"
2768fi
2769
2770if test -z "$CC"; then
2771          if test -n "$ac_tool_prefix"; then
2772    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2773set dummy ${ac_tool_prefix}cc; ac_word=$2
2774{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
2776if test "${ac_cv_prog_CC+set}" = set; then
2777  $as_echo_n "(cached) " >&6
2778else
2779  if test -n "$CC"; then
2780  ac_cv_prog_CC="$CC" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785  IFS=$as_save_IFS
2786  test -z "$as_dir" && as_dir=.
2787  for ac_exec_ext in '' $ac_executable_extensions; do
2788  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789    ac_cv_prog_CC="${ac_tool_prefix}cc"
2790    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791    break 2
2792  fi
2793done
2794done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799CC=$ac_cv_prog_CC
2800if test -n "$CC"; then
2801  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2802$as_echo "$CC" >&6; }
2803else
2804  { $as_echo "$as_me:$LINENO: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808
2809  fi
2810fi
2811if test -z "$CC"; then
2812  # Extract the first word of "cc", so it can be a program name with args.
2813set dummy cc; ac_word=$2
2814{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2815$as_echo_n "checking for $ac_word... " >&6; }
2816if test "${ac_cv_prog_CC+set}" = set; then
2817  $as_echo_n "(cached) " >&6
2818else
2819  if test -n "$CC"; then
2820  ac_cv_prog_CC="$CC" # Let the user override the test.
2821else
2822  ac_prog_rejected=no
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826  IFS=$as_save_IFS
2827  test -z "$as_dir" && as_dir=.
2828  for ac_exec_ext in '' $ac_executable_extensions; do
2829  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2831       ac_prog_rejected=yes
2832       continue
2833     fi
2834    ac_cv_prog_CC="cc"
2835    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836    break 2
2837  fi
2838done
2839done
2840IFS=$as_save_IFS
2841
2842if test $ac_prog_rejected = yes; then
2843  # We found a bogon in the path, so make sure we never use it.
2844  set dummy $ac_cv_prog_CC
2845  shift
2846  if test $# != 0; then
2847    # We chose a different compiler from the bogus one.
2848    # However, it has the same basename, so the bogon will be chosen
2849    # first if we set CC to just the basename; use the full file name.
2850    shift
2851    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2852  fi
2853fi
2854fi
2855fi
2856CC=$ac_cv_prog_CC
2857if test -n "$CC"; then
2858  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2859$as_echo "$CC" >&6; }
2860else
2861  { $as_echo "$as_me:$LINENO: result: no" >&5
2862$as_echo "no" >&6; }
2863fi
2864
2865
2866fi
2867if test -z "$CC"; then
2868  if test -n "$ac_tool_prefix"; then
2869  for ac_prog in cl.exe
2870  do
2871    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2872set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2873{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if test "${ac_cv_prog_CC+set}" = set; then
2876  $as_echo_n "(cached) " >&6
2877else
2878  if test -n "$CC"; then
2879  ac_cv_prog_CC="$CC" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886  for ac_exec_ext in '' $ac_executable_extensions; do
2887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2889    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898CC=$ac_cv_prog_CC
2899if test -n "$CC"; then
2900  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2901$as_echo "$CC" >&6; }
2902else
2903  { $as_echo "$as_me:$LINENO: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907
2908    test -n "$CC" && break
2909  done
2910fi
2911if test -z "$CC"; then
2912  ac_ct_CC=$CC
2913  for ac_prog in cl.exe
2914do
2915  # Extract the first word of "$ac_prog", so it can be a program name with args.
2916set dummy $ac_prog; ac_word=$2
2917{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2918$as_echo_n "checking for $ac_word... " >&6; }
2919if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2920  $as_echo_n "(cached) " >&6
2921else
2922  if test -n "$ac_ct_CC"; then
2923  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924else
2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926for as_dir in $PATH
2927do
2928  IFS=$as_save_IFS
2929  test -z "$as_dir" && as_dir=.
2930  for ac_exec_ext in '' $ac_executable_extensions; do
2931  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932    ac_cv_prog_ac_ct_CC="$ac_prog"
2933    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934    break 2
2935  fi
2936done
2937done
2938IFS=$as_save_IFS
2939
2940fi
2941fi
2942ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943if test -n "$ac_ct_CC"; then
2944  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2945$as_echo "$ac_ct_CC" >&6; }
2946else
2947  { $as_echo "$as_me:$LINENO: result: no" >&5
2948$as_echo "no" >&6; }
2949fi
2950
2951
2952  test -n "$ac_ct_CC" && break
2953done
2954
2955  if test "x$ac_ct_CC" = x; then
2956    CC=""
2957  else
2958    case $cross_compiling:$ac_tool_warned in
2959yes:)
2960{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962ac_tool_warned=yes ;;
2963esac
2964    CC=$ac_ct_CC
2965  fi
2966fi
2967
2968fi
2969
2970
2971test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2972$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2973{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2974See \`config.log' for more details." >&5
2975$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2976See \`config.log' for more details." >&2;}
2977   { (exit 1); exit 1; }; }; }
2978
2979# Provide some information about the compiler.
2980$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2981set X $ac_compile
2982ac_compiler=$2
2983{ (ac_try="$ac_compiler --version >&5"
2984case "(($ac_try" in
2985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986  *) ac_try_echo=$ac_try;;
2987esac
2988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2989$as_echo "$ac_try_echo") >&5
2990  (eval "$ac_compiler --version >&5") 2>&5
2991  ac_status=$?
2992  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); }
2994{ (ac_try="$ac_compiler -v >&5"
2995case "(($ac_try" in
2996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997  *) ac_try_echo=$ac_try;;
2998esac
2999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3000$as_echo "$ac_try_echo") >&5
3001  (eval "$ac_compiler -v >&5") 2>&5
3002  ac_status=$?
3003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); }
3005{ (ac_try="$ac_compiler -V >&5"
3006case "(($ac_try" in
3007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008  *) ac_try_echo=$ac_try;;
3009esac
3010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3011$as_echo "$ac_try_echo") >&5
3012  (eval "$ac_compiler -V >&5") 2>&5
3013  ac_status=$?
3014  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); }
3016
3017cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h.  */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h.  */
3023
3024int
3025main ()
3026{
3027
3028  ;
3029  return 0;
3030}
3031_ACEOF
3032ac_clean_files_save=$ac_clean_files
3033ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3034# Try to create an executable without -o first, disregard a.out.
3035# It will help us diagnose broken compilers, and finding out an intuition
3036# of exeext.
3037{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3038$as_echo_n "checking for C compiler default output file name... " >&6; }
3039ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3040
3041# The possible output files:
3042ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3043
3044ac_rmfiles=
3045for ac_file in $ac_files
3046do
3047  case $ac_file in
3048    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3049    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3050  esac
3051done
3052rm -f $ac_rmfiles
3053
3054if { (ac_try="$ac_link_default"
3055case "(($ac_try" in
3056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057  *) ac_try_echo=$ac_try;;
3058esac
3059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3060$as_echo "$ac_try_echo") >&5
3061  (eval "$ac_link_default") 2>&5
3062  ac_status=$?
3063  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }; then
3065  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3066# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3067# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3068# so that the user can short-circuit this test for compilers unknown to
3069# Autoconf.
3070for ac_file in $ac_files ''
3071do
3072  test -f "$ac_file" || continue
3073  case $ac_file in
3074    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3075	;;
3076    [ab].out )
3077	# We found the default executable, but exeext='' is most
3078	# certainly right.
3079	break;;
3080    *.* )
3081        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3082	then :; else
3083	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084	fi
3085	# We set ac_cv_exeext here because the later test for it is not
3086	# safe: cross compilers may not add the suffix if given an `-o'
3087	# argument, so we may need to know it at that point already.
3088	# Even if this section looks crufty: it has the advantage of
3089	# actually working.
3090	break;;
3091    * )
3092	break;;
3093  esac
3094done
3095test "$ac_cv_exeext" = no && ac_cv_exeext=
3096
3097else
3098  ac_file=''
3099fi
3100
3101{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3102$as_echo "$ac_file" >&6; }
3103if test -z "$ac_file"; then
3104  $as_echo "$as_me: failed program was:" >&5
3105sed 's/^/| /' conftest.$ac_ext >&5
3106
3107{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3109{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3110See \`config.log' for more details." >&5
3111$as_echo "$as_me: error: C compiler cannot create executables
3112See \`config.log' for more details." >&2;}
3113   { (exit 77); exit 77; }; }; }
3114fi
3115
3116ac_exeext=$ac_cv_exeext
3117
3118# Check that the compiler produces executables we can run.  If not, either
3119# the compiler is broken, or we cross compile.
3120{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3121$as_echo_n "checking whether the C compiler works... " >&6; }
3122# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3123# If not cross compiling, check that we can run a simple program.
3124if test "$cross_compiling" != yes; then
3125  if { ac_try='./$ac_file'
3126  { (case "(($ac_try" in
3127  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128  *) ac_try_echo=$ac_try;;
3129esac
3130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3131$as_echo "$ac_try_echo") >&5
3132  (eval "$ac_try") 2>&5
3133  ac_status=$?
3134  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); }; }; then
3136    cross_compiling=no
3137  else
3138    if test "$cross_compiling" = maybe; then
3139	cross_compiling=yes
3140    else
3141	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3144If you meant to cross compile, use \`--host'.
3145See \`config.log' for more details." >&5
3146$as_echo "$as_me: error: cannot run C compiled programs.
3147If you meant to cross compile, use \`--host'.
3148See \`config.log' for more details." >&2;}
3149   { (exit 1); exit 1; }; }; }
3150    fi
3151  fi
3152fi
3153{ $as_echo "$as_me:$LINENO: result: yes" >&5
3154$as_echo "yes" >&6; }
3155
3156rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3157ac_clean_files=$ac_clean_files_save
3158# Check that the compiler produces executables we can run.  If not, either
3159# the compiler is broken, or we cross compile.
3160{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3161$as_echo_n "checking whether we are cross compiling... " >&6; }
3162{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3163$as_echo "$cross_compiling" >&6; }
3164
3165{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3166$as_echo_n "checking for suffix of executables... " >&6; }
3167if { (ac_try="$ac_link"
3168case "(($ac_try" in
3169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170  *) ac_try_echo=$ac_try;;
3171esac
3172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3173$as_echo "$ac_try_echo") >&5
3174  (eval "$ac_link") 2>&5
3175  ac_status=$?
3176  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); }; then
3178  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3179# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3180# work properly (i.e., refer to `conftest.exe'), while it won't with
3181# `rm'.
3182for ac_file in conftest.exe conftest conftest.*; do
3183  test -f "$ac_file" || continue
3184  case $ac_file in
3185    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3186    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3187	  break;;
3188    * ) break;;
3189  esac
3190done
3191else
3192  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3195See \`config.log' for more details." >&5
3196$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3197See \`config.log' for more details." >&2;}
3198   { (exit 1); exit 1; }; }; }
3199fi
3200
3201rm -f conftest$ac_cv_exeext
3202{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3203$as_echo "$ac_cv_exeext" >&6; }
3204
3205rm -f conftest.$ac_ext
3206EXEEXT=$ac_cv_exeext
3207ac_exeext=$EXEEXT
3208{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3209$as_echo_n "checking for suffix of object files... " >&6; }
3210if test "${ac_cv_objext+set}" = set; then
3211  $as_echo_n "(cached) " >&6
3212else
3213  cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h.  */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223
3224  ;
3225  return 0;
3226}
3227_ACEOF
3228rm -f conftest.o conftest.obj
3229if { (ac_try="$ac_compile"
3230case "(($ac_try" in
3231  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232  *) ac_try_echo=$ac_try;;
3233esac
3234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3235$as_echo "$ac_try_echo") >&5
3236  (eval "$ac_compile") 2>&5
3237  ac_status=$?
3238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239  (exit $ac_status); }; then
3240  for ac_file in conftest.o conftest.obj conftest.*; do
3241  test -f "$ac_file" || continue;
3242  case $ac_file in
3243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3244    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3245       break;;
3246  esac
3247done
3248else
3249  $as_echo "$as_me: failed program was:" >&5
3250sed 's/^/| /' conftest.$ac_ext >&5
3251
3252{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3255See \`config.log' for more details." >&5
3256$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3257See \`config.log' for more details." >&2;}
3258   { (exit 1); exit 1; }; }; }
3259fi
3260
3261rm -f conftest.$ac_cv_objext conftest.$ac_ext
3262fi
3263{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3264$as_echo "$ac_cv_objext" >&6; }
3265OBJEXT=$ac_cv_objext
3266ac_objext=$OBJEXT
3267{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3268$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3269if test "${ac_cv_c_compiler_gnu+set}" = set; then
3270  $as_echo_n "(cached) " >&6
3271else
3272  cat >conftest.$ac_ext <<_ACEOF
3273/* confdefs.h.  */
3274_ACEOF
3275cat confdefs.h >>conftest.$ac_ext
3276cat >>conftest.$ac_ext <<_ACEOF
3277/* end confdefs.h.  */
3278
3279int
3280main ()
3281{
3282#ifndef __GNUC__
3283       choke me
3284#endif
3285
3286  ;
3287  return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (ac_try="$ac_compile"
3292case "(($ac_try" in
3293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294  *) ac_try_echo=$ac_try;;
3295esac
3296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3297$as_echo "$ac_try_echo") >&5
3298  (eval "$ac_compile") 2>conftest.er1
3299  ac_status=$?
3300  grep -v '^ *+' conftest.er1 >conftest.err
3301  rm -f conftest.er1
3302  cat conftest.err >&5
3303  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); } && {
3305	 test -z "$ac_c_werror_flag" ||
3306	 test ! -s conftest.err
3307       } && test -s conftest.$ac_objext; then
3308  ac_compiler_gnu=yes
3309else
3310  $as_echo "$as_me: failed program was:" >&5
3311sed 's/^/| /' conftest.$ac_ext >&5
3312
3313	ac_compiler_gnu=no
3314fi
3315
3316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3317ac_cv_c_compiler_gnu=$ac_compiler_gnu
3318
3319fi
3320{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3321$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3322if test $ac_compiler_gnu = yes; then
3323  GCC=yes
3324else
3325  GCC=
3326fi
3327ac_test_CFLAGS=${CFLAGS+set}
3328ac_save_CFLAGS=$CFLAGS
3329{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3330$as_echo_n "checking whether $CC accepts -g... " >&6; }
3331if test "${ac_cv_prog_cc_g+set}" = set; then
3332  $as_echo_n "(cached) " >&6
3333else
3334  ac_save_c_werror_flag=$ac_c_werror_flag
3335   ac_c_werror_flag=yes
3336   ac_cv_prog_cc_g=no
3337   CFLAGS="-g"
3338   cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344
3345int
3346main ()
3347{
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext
3354if { (ac_try="$ac_compile"
3355case "(($ac_try" in
3356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357  *) ac_try_echo=$ac_try;;
3358esac
3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360$as_echo "$ac_try_echo") >&5
3361  (eval "$ac_compile") 2>conftest.er1
3362  ac_status=$?
3363  grep -v '^ *+' conftest.er1 >conftest.err
3364  rm -f conftest.er1
3365  cat conftest.err >&5
3366  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367  (exit $ac_status); } && {
3368	 test -z "$ac_c_werror_flag" ||
3369	 test ! -s conftest.err
3370       } && test -s conftest.$ac_objext; then
3371  ac_cv_prog_cc_g=yes
3372else
3373  $as_echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
3376	CFLAGS=""
3377      cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h.  */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3382/* end confdefs.h.  */
3383
3384int
3385main ()
3386{
3387
3388  ;
3389  return 0;
3390}
3391_ACEOF
3392rm -f conftest.$ac_objext
3393if { (ac_try="$ac_compile"
3394case "(($ac_try" in
3395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3396  *) ac_try_echo=$ac_try;;
3397esac
3398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3399$as_echo "$ac_try_echo") >&5
3400  (eval "$ac_compile") 2>conftest.er1
3401  ac_status=$?
3402  grep -v '^ *+' conftest.er1 >conftest.err
3403  rm -f conftest.er1
3404  cat conftest.err >&5
3405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); } && {
3407	 test -z "$ac_c_werror_flag" ||
3408	 test ! -s conftest.err
3409       } && test -s conftest.$ac_objext; then
3410  :
3411else
3412  $as_echo "$as_me: failed program was:" >&5
3413sed 's/^/| /' conftest.$ac_ext >&5
3414
3415	ac_c_werror_flag=$ac_save_c_werror_flag
3416	 CFLAGS="-g"
3417	 cat >conftest.$ac_ext <<_ACEOF
3418/* confdefs.h.  */
3419_ACEOF
3420cat confdefs.h >>conftest.$ac_ext
3421cat >>conftest.$ac_ext <<_ACEOF
3422/* end confdefs.h.  */
3423
3424int
3425main ()
3426{
3427
3428  ;
3429  return 0;
3430}
3431_ACEOF
3432rm -f conftest.$ac_objext
3433if { (ac_try="$ac_compile"
3434case "(($ac_try" in
3435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436  *) ac_try_echo=$ac_try;;
3437esac
3438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3439$as_echo "$ac_try_echo") >&5
3440  (eval "$ac_compile") 2>conftest.er1
3441  ac_status=$?
3442  grep -v '^ *+' conftest.er1 >conftest.err
3443  rm -f conftest.er1
3444  cat conftest.err >&5
3445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); } && {
3447	 test -z "$ac_c_werror_flag" ||
3448	 test ! -s conftest.err
3449       } && test -s conftest.$ac_objext; then
3450  ac_cv_prog_cc_g=yes
3451else
3452  $as_echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455
3456fi
3457
3458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3459fi
3460
3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462fi
3463
3464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465   ac_c_werror_flag=$ac_save_c_werror_flag
3466fi
3467{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3468$as_echo "$ac_cv_prog_cc_g" >&6; }
3469if test "$ac_test_CFLAGS" = set; then
3470  CFLAGS=$ac_save_CFLAGS
3471elif test $ac_cv_prog_cc_g = yes; then
3472  if test "$GCC" = yes; then
3473    CFLAGS="-g -O2"
3474  else
3475    CFLAGS="-g"
3476  fi
3477else
3478  if test "$GCC" = yes; then
3479    CFLAGS="-O2"
3480  else
3481    CFLAGS=
3482  fi
3483fi
3484{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3485$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3486if test "${ac_cv_prog_cc_c89+set}" = set; then
3487  $as_echo_n "(cached) " >&6
3488else
3489  ac_cv_prog_cc_c89=no
3490ac_save_CC=$CC
3491cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h.  */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h.  */
3497#include <stdarg.h>
3498#include <stdio.h>
3499#include <sys/types.h>
3500#include <sys/stat.h>
3501/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3502struct buf { int x; };
3503FILE * (*rcsopen) (struct buf *, struct stat *, int);
3504static char *e (p, i)
3505     char **p;
3506     int i;
3507{
3508  return p[i];
3509}
3510static char *f (char * (*g) (char **, int), char **p, ...)
3511{
3512  char *s;
3513  va_list v;
3514  va_start (v,p);
3515  s = g (p, va_arg (v,int));
3516  va_end (v);
3517  return s;
3518}
3519
3520/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3521   function prototypes and stuff, but not '\xHH' hex character constants.
3522   These don't provoke an error unfortunately, instead are silently treated
3523   as 'x'.  The following induces an error, until -std is added to get
3524   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3525   array size at least.  It's necessary to write '\x00'==0 to get something
3526   that's true only with -std.  */
3527int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3528
3529/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3530   inside strings and character constants.  */
3531#define FOO(x) 'x'
3532int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3533
3534int test (int i, double x);
3535struct s1 {int (*f) (int a);};
3536struct s2 {int (*f) (double a);};
3537int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3538int argc;
3539char **argv;
3540int
3541main ()
3542{
3543return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3544  ;
3545  return 0;
3546}
3547_ACEOF
3548for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3549	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3550do
3551  CC="$ac_save_CC $ac_arg"
3552  rm -f conftest.$ac_objext
3553if { (ac_try="$ac_compile"
3554case "(($ac_try" in
3555  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556  *) ac_try_echo=$ac_try;;
3557esac
3558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3559$as_echo "$ac_try_echo") >&5
3560  (eval "$ac_compile") 2>conftest.er1
3561  ac_status=$?
3562  grep -v '^ *+' conftest.er1 >conftest.err
3563  rm -f conftest.er1
3564  cat conftest.err >&5
3565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); } && {
3567	 test -z "$ac_c_werror_flag" ||
3568	 test ! -s conftest.err
3569       } && test -s conftest.$ac_objext; then
3570  ac_cv_prog_cc_c89=$ac_arg
3571else
3572  $as_echo "$as_me: failed program was:" >&5
3573sed 's/^/| /' conftest.$ac_ext >&5
3574
3575
3576fi
3577
3578rm -f core conftest.err conftest.$ac_objext
3579  test "x$ac_cv_prog_cc_c89" != "xno" && break
3580done
3581rm -f conftest.$ac_ext
3582CC=$ac_save_CC
3583
3584fi
3585# AC_CACHE_VAL
3586case "x$ac_cv_prog_cc_c89" in
3587  x)
3588    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3589$as_echo "none needed" >&6; } ;;
3590  xno)
3591    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3592$as_echo "unsupported" >&6; } ;;
3593  *)
3594    CC="$CC $ac_cv_prog_cc_c89"
3595    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3596$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3597esac
3598
3599
3600ac_ext=c
3601ac_cpp='$CPP $CPPFLAGS'
3602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3604ac_compiler_gnu=$ac_cv_c_compiler_gnu
3605DEPDIR="${am__leading_dot}deps"
3606
3607ac_config_commands="$ac_config_commands depfiles"
3608
3609
3610am_make=${MAKE-make}
3611cat > confinc << 'END'
3612am__doit:
3613	@echo done
3614.PHONY: am__doit
3615END
3616# If we don't find an include directive, just comment out the code.
3617{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3618$as_echo_n "checking for style of include used by $am_make... " >&6; }
3619am__include="#"
3620am__quote=
3621_am_result=none
3622# First try GNU make style include.
3623echo "include confinc" > confmf
3624# We grep out `Entering directory' and `Leaving directory'
3625# messages which can occur if `w' ends up in MAKEFLAGS.
3626# In particular we don't look at `^make:' because GNU make might
3627# be invoked under some other name (usually "gmake"), in which
3628# case it prints its new name instead of `make'.
3629if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3630   am__include=include
3631   am__quote=
3632   _am_result=GNU
3633fi
3634# Now try BSD make style include.
3635if test "$am__include" = "#"; then
3636   echo '.include "confinc"' > confmf
3637   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3638      am__include=.include
3639      am__quote="\""
3640      _am_result=BSD
3641   fi
3642fi
3643
3644
3645{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3646$as_echo "$_am_result" >&6; }
3647rm -f confinc confmf
3648
3649# Check whether --enable-dependency-tracking was given.
3650if test "${enable_dependency_tracking+set}" = set; then
3651  enableval=$enable_dependency_tracking;
3652fi
3653
3654if test "x$enable_dependency_tracking" != xno; then
3655  am_depcomp="$ac_aux_dir/depcomp"
3656  AMDEPBACKSLASH='\'
3657fi
3658 if test "x$enable_dependency_tracking" != xno; then
3659  AMDEP_TRUE=
3660  AMDEP_FALSE='#'
3661else
3662  AMDEP_TRUE='#'
3663  AMDEP_FALSE=
3664fi
3665
3666
3667
3668depcc="$CC"   am_compiler_list=
3669
3670{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3671$as_echo_n "checking dependency style of $depcc... " >&6; }
3672if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3673  $as_echo_n "(cached) " >&6
3674else
3675  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3676  # We make a subdir and do the tests there.  Otherwise we can end up
3677  # making bogus files that we don't know about and never remove.  For
3678  # instance it was reported that on HP-UX the gcc test will end up
3679  # making a dummy file named `D' -- because `-MD' means `put the output
3680  # in D'.
3681  mkdir conftest.dir
3682  # Copy depcomp to subdir because otherwise we won't find it if we're
3683  # using a relative directory.
3684  cp "$am_depcomp" conftest.dir
3685  cd conftest.dir
3686  # We will build objects and dependencies in a subdirectory because
3687  # it helps to detect inapplicable dependency modes.  For instance
3688  # both Tru64's cc and ICC support -MD to output dependencies as a
3689  # side effect of compilation, but ICC will put the dependencies in
3690  # the current directory while Tru64 will put them in the object
3691  # directory.
3692  mkdir sub
3693
3694  am_cv_CC_dependencies_compiler_type=none
3695  if test "$am_compiler_list" = ""; then
3696     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3697  fi
3698  for depmode in $am_compiler_list; do
3699    # Setup a source with many dependencies, because some compilers
3700    # like to wrap large dependency lists on column 80 (with \), and
3701    # we should not choose a depcomp mode which is confused by this.
3702    #
3703    # We need to recreate these files for each test, as the compiler may
3704    # overwrite some of them when testing with obscure command lines.
3705    # This happens at least with the AIX C compiler.
3706    : > sub/conftest.c
3707    for i in 1 2 3 4 5 6; do
3708      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3709      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3710      # Solaris 8's {/usr,}/bin/sh.
3711      touch sub/conftst$i.h
3712    done
3713    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3714
3715    case $depmode in
3716    nosideeffect)
3717      # after this tag, mechanisms are not by side-effect, so they'll
3718      # only be used when explicitly requested
3719      if test "x$enable_dependency_tracking" = xyes; then
3720	continue
3721      else
3722	break
3723      fi
3724      ;;
3725    none) break ;;
3726    esac
3727    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3728    # mode.  It turns out that the SunPro C++ compiler does not properly
3729    # handle `-M -o', and we need to detect this.
3730    if depmode=$depmode \
3731       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3732       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3733       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3734         >/dev/null 2>conftest.err &&
3735       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3736       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3737       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3738       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3739      # icc doesn't choke on unknown options, it will just issue warnings
3740      # or remarks (even with -Werror).  So we grep stderr for any message
3741      # that says an option was ignored or not supported.
3742      # When given -MP, icc 7.0 and 7.1 complain thusly:
3743      #   icc: Command line warning: ignoring option '-M'; no argument required
3744      # The diagnosis changed in icc 8.0:
3745      #   icc: Command line remark: option '-MP' not supported
3746      if (grep 'ignoring option' conftest.err ||
3747          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3748        am_cv_CC_dependencies_compiler_type=$depmode
3749        break
3750      fi
3751    fi
3752  done
3753
3754  cd ..
3755  rm -rf conftest.dir
3756else
3757  am_cv_CC_dependencies_compiler_type=none
3758fi
3759
3760fi
3761{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3762$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3763CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3764
3765 if
3766  test "x$enable_dependency_tracking" != xno \
3767  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3768  am__fastdepCC_TRUE=
3769  am__fastdepCC_FALSE='#'
3770else
3771  am__fastdepCC_TRUE='#'
3772  am__fastdepCC_FALSE=
3773fi
3774
3775
3776# Check whether --enable-shared was given.
3777if test "${enable_shared+set}" = set; then
3778  enableval=$enable_shared; p=${PACKAGE-default}
3779    case $enableval in
3780    yes) enable_shared=yes ;;
3781    no) enable_shared=no ;;
3782    *)
3783      enable_shared=no
3784      # Look at the argument we got.  We use all the common list separators.
3785      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3786      for pkg in $enableval; do
3787	IFS="$lt_save_ifs"
3788	if test "X$pkg" = "X$p"; then
3789	  enable_shared=yes
3790	fi
3791      done
3792      IFS="$lt_save_ifs"
3793      ;;
3794    esac
3795else
3796  enable_shared=yes
3797fi
3798
3799
3800# Check whether --enable-static was given.
3801if test "${enable_static+set}" = set; then
3802  enableval=$enable_static; p=${PACKAGE-default}
3803    case $enableval in
3804    yes) enable_static=yes ;;
3805    no) enable_static=no ;;
3806    *)
3807     enable_static=no
3808      # Look at the argument we got.  We use all the common list separators.
3809      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3810      for pkg in $enableval; do
3811	IFS="$lt_save_ifs"
3812	if test "X$pkg" = "X$p"; then
3813	  enable_static=yes
3814	fi
3815      done
3816      IFS="$lt_save_ifs"
3817      ;;
3818    esac
3819else
3820  enable_static=yes
3821fi
3822
3823
3824# Check whether --enable-fast-install was given.
3825if test "${enable_fast_install+set}" = set; then
3826  enableval=$enable_fast_install; p=${PACKAGE-default}
3827    case $enableval in
3828    yes) enable_fast_install=yes ;;
3829    no) enable_fast_install=no ;;
3830    *)
3831      enable_fast_install=no
3832      # Look at the argument we got.  We use all the common list separators.
3833      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3834      for pkg in $enableval; do
3835	IFS="$lt_save_ifs"
3836	if test "X$pkg" = "X$p"; then
3837	  enable_fast_install=yes
3838	fi
3839      done
3840      IFS="$lt_save_ifs"
3841      ;;
3842    esac
3843else
3844  enable_fast_install=yes
3845fi
3846
3847
3848{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3849$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3850if test "${lt_cv_path_SED+set}" = set; then
3851  $as_echo_n "(cached) " >&6
3852else
3853  # Loop through the user's path and test for sed and gsed.
3854# Then use that list of sed's as ones to test for truncation.
3855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858  IFS=$as_save_IFS
3859  test -z "$as_dir" && as_dir=.
3860  for lt_ac_prog in sed gsed; do
3861    for ac_exec_ext in '' $ac_executable_extensions; do
3862      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3863        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3864      fi
3865    done
3866  done
3867done
3868IFS=$as_save_IFS
3869lt_ac_max=0
3870lt_ac_count=0
3871# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3872# along with /bin/sed that truncates output.
3873for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3874  test ! -f $lt_ac_sed && continue
3875  cat /dev/null > conftest.in
3876  lt_ac_count=0
3877  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3878  # Check for GNU sed and select it if it is found.
3879  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3880    lt_cv_path_SED=$lt_ac_sed
3881    break
3882  fi
3883  while true; do
3884    cat conftest.in conftest.in >conftest.tmp
3885    mv conftest.tmp conftest.in
3886    cp conftest.in conftest.nl
3887    echo >>conftest.nl
3888    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3889    cmp -s conftest.out conftest.nl || break
3890    # 10000 chars as input seems more than enough
3891    test $lt_ac_count -gt 10 && break
3892    lt_ac_count=`expr $lt_ac_count + 1`
3893    if test $lt_ac_count -gt $lt_ac_max; then
3894      lt_ac_max=$lt_ac_count
3895      lt_cv_path_SED=$lt_ac_sed
3896    fi
3897  done
3898done
3899
3900fi
3901
3902SED=$lt_cv_path_SED
3903
3904{ $as_echo "$as_me:$LINENO: result: $SED" >&5
3905$as_echo "$SED" >&6; }
3906
3907{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3908$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3909if test "${ac_cv_path_GREP+set}" = set; then
3910  $as_echo_n "(cached) " >&6
3911else
3912  if test -z "$GREP"; then
3913  ac_path_GREP_found=false
3914  # Loop through the user's path and test for each of PROGNAME-LIST
3915  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917do
3918  IFS=$as_save_IFS
3919  test -z "$as_dir" && as_dir=.
3920  for ac_prog in grep ggrep; do
3921    for ac_exec_ext in '' $ac_executable_extensions; do
3922      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3923      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3924# Check for GNU ac_path_GREP and select it if it is found.
3925  # Check for GNU $ac_path_GREP
3926case `"$ac_path_GREP" --version 2>&1` in
3927*GNU*)
3928  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3929*)
3930  ac_count=0
3931  $as_echo_n 0123456789 >"conftest.in"
3932  while :
3933  do
3934    cat "conftest.in" "conftest.in" >"conftest.tmp"
3935    mv "conftest.tmp" "conftest.in"
3936    cp "conftest.in" "conftest.nl"
3937    $as_echo 'GREP' >> "conftest.nl"
3938    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940    ac_count=`expr $ac_count + 1`
3941    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3942      # Best one so far, save it but keep looking for a better one
3943      ac_cv_path_GREP="$ac_path_GREP"
3944      ac_path_GREP_max=$ac_count
3945    fi
3946    # 10*(2^10) chars as input seems more than enough
3947    test $ac_count -gt 10 && break
3948  done
3949  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950esac
3951
3952      $ac_path_GREP_found && break 3
3953    done
3954  done
3955done
3956IFS=$as_save_IFS
3957  if test -z "$ac_cv_path_GREP"; then
3958    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3959$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3960   { (exit 1); exit 1; }; }
3961  fi
3962else
3963  ac_cv_path_GREP=$GREP
3964fi
3965
3966fi
3967{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3968$as_echo "$ac_cv_path_GREP" >&6; }
3969 GREP="$ac_cv_path_GREP"
3970
3971
3972{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3973$as_echo_n "checking for egrep... " >&6; }
3974if test "${ac_cv_path_EGREP+set}" = set; then
3975  $as_echo_n "(cached) " >&6
3976else
3977  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3978   then ac_cv_path_EGREP="$GREP -E"
3979   else
3980     if test -z "$EGREP"; then
3981  ac_path_EGREP_found=false
3982  # Loop through the user's path and test for each of PROGNAME-LIST
3983  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3985do
3986  IFS=$as_save_IFS
3987  test -z "$as_dir" && as_dir=.
3988  for ac_prog in egrep; do
3989    for ac_exec_ext in '' $ac_executable_extensions; do
3990      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3991      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3992# Check for GNU ac_path_EGREP and select it if it is found.
3993  # Check for GNU $ac_path_EGREP
3994case `"$ac_path_EGREP" --version 2>&1` in
3995*GNU*)
3996  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3997*)
3998  ac_count=0
3999  $as_echo_n 0123456789 >"conftest.in"
4000  while :
4001  do
4002    cat "conftest.in" "conftest.in" >"conftest.tmp"
4003    mv "conftest.tmp" "conftest.in"
4004    cp "conftest.in" "conftest.nl"
4005    $as_echo 'EGREP' >> "conftest.nl"
4006    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4007    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4008    ac_count=`expr $ac_count + 1`
4009    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4010      # Best one so far, save it but keep looking for a better one
4011      ac_cv_path_EGREP="$ac_path_EGREP"
4012      ac_path_EGREP_max=$ac_count
4013    fi
4014    # 10*(2^10) chars as input seems more than enough
4015    test $ac_count -gt 10 && break
4016  done
4017  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4018esac
4019
4020      $ac_path_EGREP_found && break 3
4021    done
4022  done
4023done
4024IFS=$as_save_IFS
4025  if test -z "$ac_cv_path_EGREP"; then
4026    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4027$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4028   { (exit 1); exit 1; }; }
4029  fi
4030else
4031  ac_cv_path_EGREP=$EGREP
4032fi
4033
4034   fi
4035fi
4036{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4037$as_echo "$ac_cv_path_EGREP" >&6; }
4038 EGREP="$ac_cv_path_EGREP"
4039
4040
4041
4042# Check whether --with-gnu-ld was given.
4043if test "${with_gnu_ld+set}" = set; then
4044  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4045else
4046  with_gnu_ld=no
4047fi
4048
4049ac_prog=ld
4050if test "$GCC" = yes; then
4051  # Check if gcc -print-prog-name=ld gives a path.
4052  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4053$as_echo_n "checking for ld used by $CC... " >&6; }
4054  case $host in
4055  *-*-mingw*)
4056    # gcc leaves a trailing carriage return which upsets mingw
4057    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4058  *)
4059    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4060  esac
4061  case $ac_prog in
4062    # Accept absolute paths.
4063    [\\/]* | ?:[\\/]*)
4064      re_direlt='/[^/][^/]*/\.\./'
4065      # Canonicalize the pathname of ld
4066      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4067      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4068	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4069      done
4070      test -z "$LD" && LD="$ac_prog"
4071      ;;
4072  "")
4073    # If it fails, then pretend we aren't using GCC.
4074    ac_prog=ld
4075    ;;
4076  *)
4077    # If it is relative, then search for the first ld in PATH.
4078    with_gnu_ld=unknown
4079    ;;
4080  esac
4081elif test "$with_gnu_ld" = yes; then
4082  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4083$as_echo_n "checking for GNU ld... " >&6; }
4084else
4085  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4086$as_echo_n "checking for non-GNU ld... " >&6; }
4087fi
4088if test "${lt_cv_path_LD+set}" = set; then
4089  $as_echo_n "(cached) " >&6
4090else
4091  if test -z "$LD"; then
4092  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4093  for ac_dir in $PATH; do
4094    IFS="$lt_save_ifs"
4095    test -z "$ac_dir" && ac_dir=.
4096    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4097      lt_cv_path_LD="$ac_dir/$ac_prog"
4098      # Check to see if the program is GNU ld.  I'd rather use --version,
4099      # but apparently some variants of GNU ld only accept -v.
4100      # Break only if it was the GNU/non-GNU ld that we prefer.
4101      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4102      *GNU* | *'with BFD'*)
4103	test "$with_gnu_ld" != no && break
4104	;;
4105      *)
4106	test "$with_gnu_ld" != yes && break
4107	;;
4108      esac
4109    fi
4110  done
4111  IFS="$lt_save_ifs"
4112else
4113  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4114fi
4115fi
4116
4117LD="$lt_cv_path_LD"
4118if test -n "$LD"; then
4119  { $as_echo "$as_me:$LINENO: result: $LD" >&5
4120$as_echo "$LD" >&6; }
4121else
4122  { $as_echo "$as_me:$LINENO: result: no" >&5
4123$as_echo "no" >&6; }
4124fi
4125test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4126$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4127   { (exit 1); exit 1; }; }
4128{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4129$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4130if test "${lt_cv_prog_gnu_ld+set}" = set; then
4131  $as_echo_n "(cached) " >&6
4132else
4133  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4134case `$LD -v 2>&1 </dev/null` in
4135*GNU* | *'with BFD'*)
4136  lt_cv_prog_gnu_ld=yes
4137  ;;
4138*)
4139  lt_cv_prog_gnu_ld=no
4140  ;;
4141esac
4142fi
4143{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4144$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4145with_gnu_ld=$lt_cv_prog_gnu_ld
4146
4147
4148{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4149$as_echo_n "checking for $LD option to reload object files... " >&6; }
4150if test "${lt_cv_ld_reload_flag+set}" = set; then
4151  $as_echo_n "(cached) " >&6
4152else
4153  lt_cv_ld_reload_flag='-r'
4154fi
4155{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4156$as_echo "$lt_cv_ld_reload_flag" >&6; }
4157reload_flag=$lt_cv_ld_reload_flag
4158case $reload_flag in
4159"" | " "*) ;;
4160*) reload_flag=" $reload_flag" ;;
4161esac
4162reload_cmds='$LD$reload_flag -o $output$reload_objs'
4163case $host_os in
4164  darwin*)
4165    if test "$GCC" = yes; then
4166      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4167    else
4168      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4169    fi
4170    ;;
4171esac
4172
4173{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4174$as_echo_n "checking for BSD-compatible nm... " >&6; }
4175if test "${lt_cv_path_NM+set}" = set; then
4176  $as_echo_n "(cached) " >&6
4177else
4178  if test -n "$NM"; then
4179  # Let the user override the test.
4180  lt_cv_path_NM="$NM"
4181else
4182  lt_nm_to_check="${ac_tool_prefix}nm"
4183  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4184    lt_nm_to_check="$lt_nm_to_check nm"
4185  fi
4186  for lt_tmp_nm in $lt_nm_to_check; do
4187    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4188    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4189      IFS="$lt_save_ifs"
4190      test -z "$ac_dir" && ac_dir=.
4191      tmp_nm="$ac_dir/$lt_tmp_nm"
4192      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4193	# Check to see if the nm accepts a BSD-compat flag.
4194	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4195	#   nm: unknown option "B" ignored
4196	# Tru64's nm complains that /dev/null is an invalid object file
4197	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4198	*/dev/null* | *'Invalid file or object type'*)
4199	  lt_cv_path_NM="$tmp_nm -B"
4200	  break
4201	  ;;
4202	*)
4203	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4204	  */dev/null*)
4205	    lt_cv_path_NM="$tmp_nm -p"
4206	    break
4207	    ;;
4208	  *)
4209	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4210	    continue # so that we can try to find one that supports BSD flags
4211	    ;;
4212	  esac
4213	  ;;
4214	esac
4215      fi
4216    done
4217    IFS="$lt_save_ifs"
4218  done
4219  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4220fi
4221fi
4222{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4223$as_echo "$lt_cv_path_NM" >&6; }
4224NM="$lt_cv_path_NM"
4225
4226{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4227$as_echo_n "checking whether ln -s works... " >&6; }
4228LN_S=$as_ln_s
4229if test "$LN_S" = "ln -s"; then
4230  { $as_echo "$as_me:$LINENO: result: yes" >&5
4231$as_echo "yes" >&6; }
4232else
4233  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4234$as_echo "no, using $LN_S" >&6; }
4235fi
4236
4237{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4238$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4239if test "${lt_cv_deplibs_check_method+set}" = set; then
4240  $as_echo_n "(cached) " >&6
4241else
4242  lt_cv_file_magic_cmd='$MAGIC_CMD'
4243lt_cv_file_magic_test_file=
4244lt_cv_deplibs_check_method='unknown'
4245# Need to set the preceding variable on all platforms that support
4246# interlibrary dependencies.
4247# 'none' -- dependencies not supported.
4248# `unknown' -- same as none, but documents that we really don't know.
4249# 'pass_all' -- all dependencies passed with no checks.
4250# 'test_compile' -- check by making test program.
4251# 'file_magic [[regex]]' -- check by looking for files in library path
4252# which responds to the $file_magic_cmd with a given extended regex.
4253# If you have `file' or equivalent on your system and you're not sure
4254# whether `pass_all' will *always* work, you probably want this one.
4255
4256case $host_os in
4257aix[4-9]*)
4258  lt_cv_deplibs_check_method=pass_all
4259  ;;
4260
4261beos*)
4262  lt_cv_deplibs_check_method=pass_all
4263  ;;
4264
4265bsdi[45]*)
4266  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4267  lt_cv_file_magic_cmd='/usr/bin/file -L'
4268  lt_cv_file_magic_test_file=/shlib/libc.so
4269  ;;
4270
4271cygwin*)
4272  # func_win32_libid is a shell function defined in ltmain.sh
4273  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4274  lt_cv_file_magic_cmd='func_win32_libid'
4275  ;;
4276
4277mingw* | pw32*)
4278  # Base MSYS/MinGW do not provide the 'file' command needed by
4279  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4280  # unless we find 'file', for example because we are cross-compiling.
4281  if ( file / ) >/dev/null 2>&1; then
4282    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4283    lt_cv_file_magic_cmd='func_win32_libid'
4284  else
4285    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4286    lt_cv_file_magic_cmd='$OBJDUMP -f'
4287  fi
4288  ;;
4289
4290darwin* | rhapsody*)
4291  lt_cv_deplibs_check_method=pass_all
4292  ;;
4293
4294freebsd* | dragonfly*)
4295  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4296    case $host_cpu in
4297    i*86 )
4298      # Not sure whether the presence of OpenBSD here was a mistake.
4299      # Let's accept both of them until this is cleared up.
4300      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4301      lt_cv_file_magic_cmd=/usr/bin/file
4302      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4303      ;;
4304    esac
4305  else
4306    lt_cv_deplibs_check_method=pass_all
4307  fi
4308  ;;
4309
4310gnu*)
4311  lt_cv_deplibs_check_method=pass_all
4312  ;;
4313
4314hpux10.20* | hpux11*)
4315  lt_cv_file_magic_cmd=/usr/bin/file
4316  case $host_cpu in
4317  ia64*)
4318    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4319    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4320    ;;
4321  hppa*64*)
4322    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]'
4323    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4324    ;;
4325  *)
4326    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4327    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4328    ;;
4329  esac
4330  ;;
4331
4332interix[3-9]*)
4333  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4334  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4335  ;;
4336
4337irix5* | irix6* | nonstopux*)
4338  case $LD in
4339  *-32|*"-32 ") libmagic=32-bit;;
4340  *-n32|*"-n32 ") libmagic=N32;;
4341  *-64|*"-64 ") libmagic=64-bit;;
4342  *) libmagic=never-match;;
4343  esac
4344  lt_cv_deplibs_check_method=pass_all
4345  ;;
4346
4347# This must be Linux ELF.
4348linux* | k*bsd*-gnu)
4349  lt_cv_deplibs_check_method=pass_all
4350  ;;
4351
4352netbsd*)
4353  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4354    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4355  else
4356    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4357  fi
4358  ;;
4359
4360newos6*)
4361  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4362  lt_cv_file_magic_cmd=/usr/bin/file
4363  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4364  ;;
4365
4366nto-qnx*)
4367  lt_cv_deplibs_check_method=unknown
4368  ;;
4369
4370openbsd*)
4371  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4372    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4373  else
4374    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4375  fi
4376  ;;
4377
4378osf3* | osf4* | osf5*)
4379  lt_cv_deplibs_check_method=pass_all
4380  ;;
4381
4382rdos*)
4383  lt_cv_deplibs_check_method=pass_all
4384  ;;
4385
4386solaris*)
4387  lt_cv_deplibs_check_method=pass_all
4388  ;;
4389
4390sysv4 | sysv4.3*)
4391  case $host_vendor in
4392  motorola)
4393    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]'
4394    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4395    ;;
4396  ncr)
4397    lt_cv_deplibs_check_method=pass_all
4398    ;;
4399  sequent)
4400    lt_cv_file_magic_cmd='/bin/file'
4401    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4402    ;;
4403  sni)
4404    lt_cv_file_magic_cmd='/bin/file'
4405    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4406    lt_cv_file_magic_test_file=/lib/libc.so
4407    ;;
4408  siemens)
4409    lt_cv_deplibs_check_method=pass_all
4410    ;;
4411  pc)
4412    lt_cv_deplibs_check_method=pass_all
4413    ;;
4414  esac
4415  ;;
4416
4417sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4418  lt_cv_deplibs_check_method=pass_all
4419  ;;
4420esac
4421
4422fi
4423{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4424$as_echo "$lt_cv_deplibs_check_method" >&6; }
4425file_magic_cmd=$lt_cv_file_magic_cmd
4426deplibs_check_method=$lt_cv_deplibs_check_method
4427test -z "$deplibs_check_method" && deplibs_check_method=unknown
4428
4429
4430
4431
4432# If no C compiler was specified, use CC.
4433LTCC=${LTCC-"$CC"}
4434
4435# If no C compiler flags were specified, use CFLAGS.
4436LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4437
4438# Allow CC to be a program name with arguments.
4439compiler=$CC
4440
4441
4442# Check whether --enable-libtool-lock was given.
4443if test "${enable_libtool_lock+set}" = set; then
4444  enableval=$enable_libtool_lock;
4445fi
4446
4447test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4448
4449# Some flags need to be propagated to the compiler or linker for good
4450# libtool support.
4451case $host in
4452ia64-*-hpux*)
4453  # Find out which ABI we are using.
4454  echo 'int i;' > conftest.$ac_ext
4455  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4456  (eval $ac_compile) 2>&5
4457  ac_status=$?
4458  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459  (exit $ac_status); }; then
4460    case `/usr/bin/file conftest.$ac_objext` in
4461    *ELF-32*)
4462      HPUX_IA64_MODE="32"
4463      ;;
4464    *ELF-64*)
4465      HPUX_IA64_MODE="64"
4466      ;;
4467    esac
4468  fi
4469  rm -rf conftest*
4470  ;;
4471*-*-irix6*)
4472  # Find out which ABI we are using.
4473  echo '#line 4473 "configure"' > conftest.$ac_ext
4474  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475  (eval $ac_compile) 2>&5
4476  ac_status=$?
4477  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478  (exit $ac_status); }; then
4479   if test "$lt_cv_prog_gnu_ld" = yes; then
4480    case `/usr/bin/file conftest.$ac_objext` in
4481    *32-bit*)
4482      LD="${LD-ld} -melf32bsmip"
4483      ;;
4484    *N32*)
4485      LD="${LD-ld} -melf32bmipn32"
4486      ;;
4487    *64-bit*)
4488      LD="${LD-ld} -melf64bmip"
4489      ;;
4490    esac
4491   else
4492    case `/usr/bin/file conftest.$ac_objext` in
4493    *32-bit*)
4494      LD="${LD-ld} -32"
4495      ;;
4496    *N32*)
4497      LD="${LD-ld} -n32"
4498      ;;
4499    *64-bit*)
4500      LD="${LD-ld} -64"
4501      ;;
4502    esac
4503   fi
4504  fi
4505  rm -rf conftest*
4506  ;;
4507
4508x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4509s390*-*linux*|sparc*-*linux*)
4510  # Find out which ABI we are using.
4511  echo 'int i;' > conftest.$ac_ext
4512  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4513  (eval $ac_compile) 2>&5
4514  ac_status=$?
4515  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516  (exit $ac_status); }; then
4517    case `/usr/bin/file conftest.o` in
4518    *32-bit*)
4519      case $host in
4520        x86_64-*kfreebsd*-gnu)
4521          LD="${LD-ld} -m elf_i386_fbsd"
4522          ;;
4523        x86_64-*linux*)
4524          LD="${LD-ld} -m elf_i386"
4525          ;;
4526        ppc64-*linux*|powerpc64-*linux*)
4527          LD="${LD-ld} -m elf32ppclinux"
4528          ;;
4529        s390x-*linux*)
4530          LD="${LD-ld} -m elf_s390"
4531          ;;
4532        sparc64-*linux*)
4533          LD="${LD-ld} -m elf32_sparc"
4534          ;;
4535      esac
4536      ;;
4537    *64-bit*)
4538      case $host in
4539        x86_64-*kfreebsd*-gnu)
4540          LD="${LD-ld} -m elf_x86_64_fbsd"
4541          ;;
4542        x86_64-*linux*)
4543          LD="${LD-ld} -m elf_x86_64"
4544          ;;
4545        ppc*-*linux*|powerpc*-*linux*)
4546          LD="${LD-ld} -m elf64ppc"
4547          ;;
4548        s390*-*linux*)
4549          LD="${LD-ld} -m elf64_s390"
4550          ;;
4551        sparc*-*linux*)
4552          LD="${LD-ld} -m elf64_sparc"
4553          ;;
4554      esac
4555      ;;
4556    esac
4557  fi
4558  rm -rf conftest*
4559  ;;
4560
4561*-*-sco3.2v5*)
4562  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4563  SAVE_CFLAGS="$CFLAGS"
4564  CFLAGS="$CFLAGS -belf"
4565  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4566$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4567if test "${lt_cv_cc_needs_belf+set}" = set; then
4568  $as_echo_n "(cached) " >&6
4569else
4570  ac_ext=c
4571ac_cpp='$CPP $CPPFLAGS'
4572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575
4576     cat >conftest.$ac_ext <<_ACEOF
4577/* confdefs.h.  */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h.  */
4582
4583int
4584main ()
4585{
4586
4587  ;
4588  return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext conftest$ac_exeext
4592if { (ac_try="$ac_link"
4593case "(($ac_try" in
4594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595  *) ac_try_echo=$ac_try;;
4596esac
4597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4598$as_echo "$ac_try_echo") >&5
4599  (eval "$ac_link") 2>conftest.er1
4600  ac_status=$?
4601  grep -v '^ *+' conftest.er1 >conftest.err
4602  rm -f conftest.er1
4603  cat conftest.err >&5
4604  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605  (exit $ac_status); } && {
4606	 test -z "$ac_c_werror_flag" ||
4607	 test ! -s conftest.err
4608       } && test -s conftest$ac_exeext && {
4609	 test "$cross_compiling" = yes ||
4610	 $as_test_x conftest$ac_exeext
4611       }; then
4612  lt_cv_cc_needs_belf=yes
4613else
4614  $as_echo "$as_me: failed program was:" >&5
4615sed 's/^/| /' conftest.$ac_ext >&5
4616
4617	lt_cv_cc_needs_belf=no
4618fi
4619
4620rm -rf conftest.dSYM
4621rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4622      conftest$ac_exeext conftest.$ac_ext
4623     ac_ext=c
4624ac_cpp='$CPP $CPPFLAGS'
4625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
4629fi
4630{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4631$as_echo "$lt_cv_cc_needs_belf" >&6; }
4632  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4633    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4634    CFLAGS="$SAVE_CFLAGS"
4635  fi
4636  ;;
4637sparc*-*solaris*)
4638  # Find out which ABI we are using.
4639  echo 'int i;' > conftest.$ac_ext
4640  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641  (eval $ac_compile) 2>&5
4642  ac_status=$?
4643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644  (exit $ac_status); }; then
4645    case `/usr/bin/file conftest.o` in
4646    *64-bit*)
4647      case $lt_cv_prog_gnu_ld in
4648      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4649      *)
4650        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4651	  LD="${LD-ld} -64"
4652	fi
4653	;;
4654      esac
4655      ;;
4656    esac
4657  fi
4658  rm -rf conftest*
4659  ;;
4660
4661
4662esac
4663
4664need_locks="$enable_libtool_lock"
4665
4666
4667ac_ext=c
4668ac_cpp='$CPP $CPPFLAGS'
4669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4673$as_echo_n "checking how to run the C preprocessor... " >&6; }
4674# On Suns, sometimes $CPP names a directory.
4675if test -n "$CPP" && test -d "$CPP"; then
4676  CPP=
4677fi
4678if test -z "$CPP"; then
4679  if test "${ac_cv_prog_CPP+set}" = set; then
4680  $as_echo_n "(cached) " >&6
4681else
4682      # Double quotes because CPP needs to be expanded
4683    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4684    do
4685      ac_preproc_ok=false
4686for ac_c_preproc_warn_flag in '' yes
4687do
4688  # Use a header file that comes with gcc, so configuring glibc
4689  # with a fresh cross-compiler works.
4690  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4691  # <limits.h> exists even on freestanding compilers.
4692  # On the NeXT, cc -E runs the code through the compiler's parser,
4693  # not just through cpp. "Syntax error" is here to catch this case.
4694  cat >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#ifdef __STDC__
4701# include <limits.h>
4702#else
4703# include <assert.h>
4704#endif
4705		     Syntax error
4706_ACEOF
4707if { (ac_try="$ac_cpp conftest.$ac_ext"
4708case "(($ac_try" in
4709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710  *) ac_try_echo=$ac_try;;
4711esac
4712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713$as_echo "$ac_try_echo") >&5
4714  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4715  ac_status=$?
4716  grep -v '^ *+' conftest.er1 >conftest.err
4717  rm -f conftest.er1
4718  cat conftest.err >&5
4719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720  (exit $ac_status); } >/dev/null && {
4721	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722	 test ! -s conftest.err
4723       }; then
4724  :
4725else
4726  $as_echo "$as_me: failed program was:" >&5
4727sed 's/^/| /' conftest.$ac_ext >&5
4728
4729  # Broken: fails on valid input.
4730continue
4731fi
4732
4733rm -f conftest.err conftest.$ac_ext
4734
4735  # OK, works on sane cases.  Now check whether nonexistent headers
4736  # can be detected and how.
4737  cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h.  */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h.  */
4743#include <ac_nonexistent.h>
4744_ACEOF
4745if { (ac_try="$ac_cpp conftest.$ac_ext"
4746case "(($ac_try" in
4747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748  *) ac_try_echo=$ac_try;;
4749esac
4750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751$as_echo "$ac_try_echo") >&5
4752  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753  ac_status=$?
4754  grep -v '^ *+' conftest.er1 >conftest.err
4755  rm -f conftest.er1
4756  cat conftest.err >&5
4757  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); } >/dev/null && {
4759	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4760	 test ! -s conftest.err
4761       }; then
4762  # Broken: success on invalid input.
4763continue
4764else
4765  $as_echo "$as_me: failed program was:" >&5
4766sed 's/^/| /' conftest.$ac_ext >&5
4767
4768  # Passes both tests.
4769ac_preproc_ok=:
4770break
4771fi
4772
4773rm -f conftest.err conftest.$ac_ext
4774
4775done
4776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777rm -f conftest.err conftest.$ac_ext
4778if $ac_preproc_ok; then
4779  break
4780fi
4781
4782    done
4783    ac_cv_prog_CPP=$CPP
4784
4785fi
4786  CPP=$ac_cv_prog_CPP
4787else
4788  ac_cv_prog_CPP=$CPP
4789fi
4790{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4791$as_echo "$CPP" >&6; }
4792ac_preproc_ok=false
4793for ac_c_preproc_warn_flag in '' yes
4794do
4795  # Use a header file that comes with gcc, so configuring glibc
4796  # with a fresh cross-compiler works.
4797  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798  # <limits.h> exists even on freestanding compilers.
4799  # On the NeXT, cc -E runs the code through the compiler's parser,
4800  # not just through cpp. "Syntax error" is here to catch this case.
4801  cat >conftest.$ac_ext <<_ACEOF
4802/* confdefs.h.  */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h.  */
4807#ifdef __STDC__
4808# include <limits.h>
4809#else
4810# include <assert.h>
4811#endif
4812		     Syntax error
4813_ACEOF
4814if { (ac_try="$ac_cpp conftest.$ac_ext"
4815case "(($ac_try" in
4816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4817  *) ac_try_echo=$ac_try;;
4818esac
4819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4820$as_echo "$ac_try_echo") >&5
4821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4822  ac_status=$?
4823  grep -v '^ *+' conftest.er1 >conftest.err
4824  rm -f conftest.er1
4825  cat conftest.err >&5
4826  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); } >/dev/null && {
4828	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4829	 test ! -s conftest.err
4830       }; then
4831  :
4832else
4833  $as_echo "$as_me: failed program was:" >&5
4834sed 's/^/| /' conftest.$ac_ext >&5
4835
4836  # Broken: fails on valid input.
4837continue
4838fi
4839
4840rm -f conftest.err conftest.$ac_ext
4841
4842  # OK, works on sane cases.  Now check whether nonexistent headers
4843  # can be detected and how.
4844  cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h.  */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h.  */
4850#include <ac_nonexistent.h>
4851_ACEOF
4852if { (ac_try="$ac_cpp conftest.$ac_ext"
4853case "(($ac_try" in
4854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855  *) ac_try_echo=$ac_try;;
4856esac
4857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4858$as_echo "$ac_try_echo") >&5
4859  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4860  ac_status=$?
4861  grep -v '^ *+' conftest.er1 >conftest.err
4862  rm -f conftest.er1
4863  cat conftest.err >&5
4864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865  (exit $ac_status); } >/dev/null && {
4866	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867	 test ! -s conftest.err
4868       }; then
4869  # Broken: success on invalid input.
4870continue
4871else
4872  $as_echo "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875  # Passes both tests.
4876ac_preproc_ok=:
4877break
4878fi
4879
4880rm -f conftest.err conftest.$ac_ext
4881
4882done
4883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884rm -f conftest.err conftest.$ac_ext
4885if $ac_preproc_ok; then
4886  :
4887else
4888  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4889$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4890{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4891See \`config.log' for more details." >&5
4892$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4893See \`config.log' for more details." >&2;}
4894   { (exit 1); exit 1; }; }; }
4895fi
4896
4897ac_ext=c
4898ac_cpp='$CPP $CPPFLAGS'
4899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4901ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902
4903
4904{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4905$as_echo_n "checking for ANSI C header files... " >&6; }
4906if test "${ac_cv_header_stdc+set}" = set; then
4907  $as_echo_n "(cached) " >&6
4908else
4909  cat >conftest.$ac_ext <<_ACEOF
4910/* confdefs.h.  */
4911_ACEOF
4912cat confdefs.h >>conftest.$ac_ext
4913cat >>conftest.$ac_ext <<_ACEOF
4914/* end confdefs.h.  */
4915#include <stdlib.h>
4916#include <stdarg.h>
4917#include <string.h>
4918#include <float.h>
4919
4920int
4921main ()
4922{
4923
4924  ;
4925  return 0;
4926}
4927_ACEOF
4928rm -f conftest.$ac_objext
4929if { (ac_try="$ac_compile"
4930case "(($ac_try" in
4931  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932  *) ac_try_echo=$ac_try;;
4933esac
4934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4935$as_echo "$ac_try_echo") >&5
4936  (eval "$ac_compile") 2>conftest.er1
4937  ac_status=$?
4938  grep -v '^ *+' conftest.er1 >conftest.err
4939  rm -f conftest.er1
4940  cat conftest.err >&5
4941  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } && {
4943	 test -z "$ac_c_werror_flag" ||
4944	 test ! -s conftest.err
4945       } && test -s conftest.$ac_objext; then
4946  ac_cv_header_stdc=yes
4947else
4948  $as_echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951	ac_cv_header_stdc=no
4952fi
4953
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955
4956if test $ac_cv_header_stdc = yes; then
4957  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4958  cat >conftest.$ac_ext <<_ACEOF
4959/* confdefs.h.  */
4960_ACEOF
4961cat confdefs.h >>conftest.$ac_ext
4962cat >>conftest.$ac_ext <<_ACEOF
4963/* end confdefs.h.  */
4964#include <string.h>
4965
4966_ACEOF
4967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4968  $EGREP "memchr" >/dev/null 2>&1; then
4969  :
4970else
4971  ac_cv_header_stdc=no
4972fi
4973rm -f conftest*
4974
4975fi
4976
4977if test $ac_cv_header_stdc = yes; then
4978  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4979  cat >conftest.$ac_ext <<_ACEOF
4980/* confdefs.h.  */
4981_ACEOF
4982cat confdefs.h >>conftest.$ac_ext
4983cat >>conftest.$ac_ext <<_ACEOF
4984/* end confdefs.h.  */
4985#include <stdlib.h>
4986
4987_ACEOF
4988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4989  $EGREP "free" >/dev/null 2>&1; then
4990  :
4991else
4992  ac_cv_header_stdc=no
4993fi
4994rm -f conftest*
4995
4996fi
4997
4998if test $ac_cv_header_stdc = yes; then
4999  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5000  if test "$cross_compiling" = yes; then
5001  :
5002else
5003  cat >conftest.$ac_ext <<_ACEOF
5004/* confdefs.h.  */
5005_ACEOF
5006cat confdefs.h >>conftest.$ac_ext
5007cat >>conftest.$ac_ext <<_ACEOF
5008/* end confdefs.h.  */
5009#include <ctype.h>
5010#include <stdlib.h>
5011#if ((' ' & 0x0FF) == 0x020)
5012# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5013# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5014#else
5015# define ISLOWER(c) \
5016		   (('a' <= (c) && (c) <= 'i') \
5017		     || ('j' <= (c) && (c) <= 'r') \
5018		     || ('s' <= (c) && (c) <= 'z'))
5019# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5020#endif
5021
5022#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5023int
5024main ()
5025{
5026  int i;
5027  for (i = 0; i < 256; i++)
5028    if (XOR (islower (i), ISLOWER (i))
5029	|| toupper (i) != TOUPPER (i))
5030      return 2;
5031  return 0;
5032}
5033_ACEOF
5034rm -f conftest$ac_exeext
5035if { (ac_try="$ac_link"
5036case "(($ac_try" in
5037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038  *) ac_try_echo=$ac_try;;
5039esac
5040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5041$as_echo "$ac_try_echo") >&5
5042  (eval "$ac_link") 2>&5
5043  ac_status=$?
5044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5046  { (case "(($ac_try" in
5047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048  *) ac_try_echo=$ac_try;;
5049esac
5050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5051$as_echo "$ac_try_echo") >&5
5052  (eval "$ac_try") 2>&5
5053  ac_status=$?
5054  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); }; }; then
5056  :
5057else
5058  $as_echo "$as_me: program exited with status $ac_status" >&5
5059$as_echo "$as_me: failed program was:" >&5
5060sed 's/^/| /' conftest.$ac_ext >&5
5061
5062( exit $ac_status )
5063ac_cv_header_stdc=no
5064fi
5065rm -rf conftest.dSYM
5066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5067fi
5068
5069
5070fi
5071fi
5072{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073$as_echo "$ac_cv_header_stdc" >&6; }
5074if test $ac_cv_header_stdc = yes; then
5075
5076cat >>confdefs.h <<\_ACEOF
5077#define STDC_HEADERS 1
5078_ACEOF
5079
5080fi
5081
5082# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093		  inttypes.h stdint.h unistd.h
5094do
5095as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5097$as_echo_n "checking for $ac_header... " >&6; }
5098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5099  $as_echo_n "(cached) " >&6
5100else
5101  cat >conftest.$ac_ext <<_ACEOF
5102/* confdefs.h.  */
5103_ACEOF
5104cat confdefs.h >>conftest.$ac_ext
5105cat >>conftest.$ac_ext <<_ACEOF
5106/* end confdefs.h.  */
5107$ac_includes_default
5108
5109#include <$ac_header>
5110_ACEOF
5111rm -f conftest.$ac_objext
5112if { (ac_try="$ac_compile"
5113case "(($ac_try" in
5114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115  *) ac_try_echo=$ac_try;;
5116esac
5117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5118$as_echo "$ac_try_echo") >&5
5119  (eval "$ac_compile") 2>conftest.er1
5120  ac_status=$?
5121  grep -v '^ *+' conftest.er1 >conftest.err
5122  rm -f conftest.er1
5123  cat conftest.err >&5
5124  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); } && {
5126	 test -z "$ac_c_werror_flag" ||
5127	 test ! -s conftest.err
5128       } && test -s conftest.$ac_objext; then
5129  eval "$as_ac_Header=yes"
5130else
5131  $as_echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134	eval "$as_ac_Header=no"
5135fi
5136
5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138fi
5139ac_res=`eval 'as_val=${'$as_ac_Header'}
5140		 $as_echo "$as_val"'`
5141	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5142$as_echo "$ac_res" >&6; }
5143as_val=`eval 'as_val=${'$as_ac_Header'}
5144		 $as_echo "$as_val"'`
5145   if test "x$as_val" = x""yes; then
5146  cat >>confdefs.h <<_ACEOF
5147#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5148_ACEOF
5149
5150fi
5151
5152done
5153
5154
5155
5156for ac_header in dlfcn.h
5157do
5158as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5160  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5161$as_echo_n "checking for $ac_header... " >&6; }
5162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5163  $as_echo_n "(cached) " >&6
5164fi
5165ac_res=`eval 'as_val=${'$as_ac_Header'}
5166		 $as_echo "$as_val"'`
5167	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5168$as_echo "$ac_res" >&6; }
5169else
5170  # Is the header compilable?
5171{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5172$as_echo_n "checking $ac_header usability... " >&6; }
5173cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h.  */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h.  */
5179$ac_includes_default
5180#include <$ac_header>
5181_ACEOF
5182rm -f conftest.$ac_objext
5183if { (ac_try="$ac_compile"
5184case "(($ac_try" in
5185  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186  *) ac_try_echo=$ac_try;;
5187esac
5188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189$as_echo "$ac_try_echo") >&5
5190  (eval "$ac_compile") 2>conftest.er1
5191  ac_status=$?
5192  grep -v '^ *+' conftest.er1 >conftest.err
5193  rm -f conftest.er1
5194  cat conftest.err >&5
5195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196  (exit $ac_status); } && {
5197	 test -z "$ac_c_werror_flag" ||
5198	 test ! -s conftest.err
5199       } && test -s conftest.$ac_objext; then
5200  ac_header_compiler=yes
5201else
5202  $as_echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205	ac_header_compiler=no
5206fi
5207
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5210$as_echo "$ac_header_compiler" >&6; }
5211
5212# Is the header present?
5213{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5214$as_echo_n "checking $ac_header presence... " >&6; }
5215cat >conftest.$ac_ext <<_ACEOF
5216/* confdefs.h.  */
5217_ACEOF
5218cat confdefs.h >>conftest.$ac_ext
5219cat >>conftest.$ac_ext <<_ACEOF
5220/* end confdefs.h.  */
5221#include <$ac_header>
5222_ACEOF
5223if { (ac_try="$ac_cpp conftest.$ac_ext"
5224case "(($ac_try" in
5225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226  *) ac_try_echo=$ac_try;;
5227esac
5228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229$as_echo "$ac_try_echo") >&5
5230  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } >/dev/null && {
5237	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5238	 test ! -s conftest.err
5239       }; then
5240  ac_header_preproc=yes
5241else
5242  $as_echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245  ac_header_preproc=no
5246fi
5247
5248rm -f conftest.err conftest.$ac_ext
5249{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5250$as_echo "$ac_header_preproc" >&6; }
5251
5252# So?  What about this header?
5253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5254  yes:no: )
5255    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5256$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5257    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5258$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5259    ac_header_preproc=yes
5260    ;;
5261  no:yes:* )
5262    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5263$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5264    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5265$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5266    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5267$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5268    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5269$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5270    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5271$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5272    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5273$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5274    ( cat <<\_ASBOX
5275## --------------------------------------------- ##
5276## Report this to jgeboski@users.sourceforge.net ##
5277## --------------------------------------------- ##
5278_ASBOX
5279     ) | sed "s/^/$as_me: WARNING:     /" >&2
5280    ;;
5281esac
5282{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5283$as_echo_n "checking for $ac_header... " >&6; }
5284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5285  $as_echo_n "(cached) " >&6
5286else
5287  eval "$as_ac_Header=\$ac_header_preproc"
5288fi
5289ac_res=`eval 'as_val=${'$as_ac_Header'}
5290		 $as_echo "$as_val"'`
5291	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5292$as_echo "$ac_res" >&6; }
5293
5294fi
5295as_val=`eval 'as_val=${'$as_ac_Header'}
5296		 $as_echo "$as_val"'`
5297   if test "x$as_val" = x""yes; then
5298  cat >>confdefs.h <<_ACEOF
5299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300_ACEOF
5301
5302fi
5303
5304done
5305
5306ac_ext=cpp
5307ac_cpp='$CXXCPP $CPPFLAGS'
5308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5311if test -z "$CXX"; then
5312  if test -n "$CCC"; then
5313    CXX=$CCC
5314  else
5315    if test -n "$ac_tool_prefix"; then
5316  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5317  do
5318    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5319set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5320{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5321$as_echo_n "checking for $ac_word... " >&6; }
5322if test "${ac_cv_prog_CXX+set}" = set; then
5323  $as_echo_n "(cached) " >&6
5324else
5325  if test -n "$CXX"; then
5326  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5327else
5328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329for as_dir in $PATH
5330do
5331  IFS=$as_save_IFS
5332  test -z "$as_dir" && as_dir=.
5333  for ac_exec_ext in '' $ac_executable_extensions; do
5334  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5336    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337    break 2
5338  fi
5339done
5340done
5341IFS=$as_save_IFS
5342
5343fi
5344fi
5345CXX=$ac_cv_prog_CXX
5346if test -n "$CXX"; then
5347  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5348$as_echo "$CXX" >&6; }
5349else
5350  { $as_echo "$as_me:$LINENO: result: no" >&5
5351$as_echo "no" >&6; }
5352fi
5353
5354
5355    test -n "$CXX" && break
5356  done
5357fi
5358if test -z "$CXX"; then
5359  ac_ct_CXX=$CXX
5360  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5361do
5362  # Extract the first word of "$ac_prog", so it can be a program name with args.
5363set dummy $ac_prog; ac_word=$2
5364{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5365$as_echo_n "checking for $ac_word... " >&6; }
5366if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5367  $as_echo_n "(cached) " >&6
5368else
5369  if test -n "$ac_ct_CXX"; then
5370  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5371else
5372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  for ac_exec_ext in '' $ac_executable_extensions; do
5378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379    ac_cv_prog_ac_ct_CXX="$ac_prog"
5380    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5381    break 2
5382  fi
5383done
5384done
5385IFS=$as_save_IFS
5386
5387fi
5388fi
5389ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5390if test -n "$ac_ct_CXX"; then
5391  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5392$as_echo "$ac_ct_CXX" >&6; }
5393else
5394  { $as_echo "$as_me:$LINENO: result: no" >&5
5395$as_echo "no" >&6; }
5396fi
5397
5398
5399  test -n "$ac_ct_CXX" && break
5400done
5401
5402  if test "x$ac_ct_CXX" = x; then
5403    CXX="g++"
5404  else
5405    case $cross_compiling:$ac_tool_warned in
5406yes:)
5407{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5409ac_tool_warned=yes ;;
5410esac
5411    CXX=$ac_ct_CXX
5412  fi
5413fi
5414
5415  fi
5416fi
5417# Provide some information about the compiler.
5418$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5419set X $ac_compile
5420ac_compiler=$2
5421{ (ac_try="$ac_compiler --version >&5"
5422case "(($ac_try" in
5423  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424  *) ac_try_echo=$ac_try;;
5425esac
5426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5427$as_echo "$ac_try_echo") >&5
5428  (eval "$ac_compiler --version >&5") 2>&5
5429  ac_status=$?
5430  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431  (exit $ac_status); }
5432{ (ac_try="$ac_compiler -v >&5"
5433case "(($ac_try" in
5434  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435  *) ac_try_echo=$ac_try;;
5436esac
5437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5438$as_echo "$ac_try_echo") >&5
5439  (eval "$ac_compiler -v >&5") 2>&5
5440  ac_status=$?
5441  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442  (exit $ac_status); }
5443{ (ac_try="$ac_compiler -V >&5"
5444case "(($ac_try" in
5445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446  *) ac_try_echo=$ac_try;;
5447esac
5448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5449$as_echo "$ac_try_echo") >&5
5450  (eval "$ac_compiler -V >&5") 2>&5
5451  ac_status=$?
5452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); }
5454
5455{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5456$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5457if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5458  $as_echo_n "(cached) " >&6
5459else
5460  cat >conftest.$ac_ext <<_ACEOF
5461/* confdefs.h.  */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h.  */
5466
5467int
5468main ()
5469{
5470#ifndef __GNUC__
5471       choke me
5472#endif
5473
5474  ;
5475  return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext
5479if { (ac_try="$ac_compile"
5480case "(($ac_try" in
5481  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482  *) ac_try_echo=$ac_try;;
5483esac
5484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485$as_echo "$ac_try_echo") >&5
5486  (eval "$ac_compile") 2>conftest.er1
5487  ac_status=$?
5488  grep -v '^ *+' conftest.er1 >conftest.err
5489  rm -f conftest.er1
5490  cat conftest.err >&5
5491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); } && {
5493	 test -z "$ac_cxx_werror_flag" ||
5494	 test ! -s conftest.err
5495       } && test -s conftest.$ac_objext; then
5496  ac_compiler_gnu=yes
5497else
5498  $as_echo "$as_me: failed program was:" >&5
5499sed 's/^/| /' conftest.$ac_ext >&5
5500
5501	ac_compiler_gnu=no
5502fi
5503
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5506
5507fi
5508{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5509$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5510if test $ac_compiler_gnu = yes; then
5511  GXX=yes
5512else
5513  GXX=
5514fi
5515ac_test_CXXFLAGS=${CXXFLAGS+set}
5516ac_save_CXXFLAGS=$CXXFLAGS
5517{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5518$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5519if test "${ac_cv_prog_cxx_g+set}" = set; then
5520  $as_echo_n "(cached) " >&6
5521else
5522  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5523   ac_cxx_werror_flag=yes
5524   ac_cv_prog_cxx_g=no
5525   CXXFLAGS="-g"
5526   cat >conftest.$ac_ext <<_ACEOF
5527/* confdefs.h.  */
5528_ACEOF
5529cat confdefs.h >>conftest.$ac_ext
5530cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h.  */
5532
5533int
5534main ()
5535{
5536
5537  ;
5538  return 0;
5539}
5540_ACEOF
5541rm -f conftest.$ac_objext
5542if { (ac_try="$ac_compile"
5543case "(($ac_try" in
5544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545  *) ac_try_echo=$ac_try;;
5546esac
5547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5548$as_echo "$ac_try_echo") >&5
5549  (eval "$ac_compile") 2>conftest.er1
5550  ac_status=$?
5551  grep -v '^ *+' conftest.er1 >conftest.err
5552  rm -f conftest.er1
5553  cat conftest.err >&5
5554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555  (exit $ac_status); } && {
5556	 test -z "$ac_cxx_werror_flag" ||
5557	 test ! -s conftest.err
5558       } && test -s conftest.$ac_objext; then
5559  ac_cv_prog_cxx_g=yes
5560else
5561  $as_echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
5563
5564	CXXFLAGS=""
5565      cat >conftest.$ac_ext <<_ACEOF
5566/* confdefs.h.  */
5567_ACEOF
5568cat confdefs.h >>conftest.$ac_ext
5569cat >>conftest.$ac_ext <<_ACEOF
5570/* end confdefs.h.  */
5571
5572int
5573main ()
5574{
5575
5576  ;
5577  return 0;
5578}
5579_ACEOF
5580rm -f conftest.$ac_objext
5581if { (ac_try="$ac_compile"
5582case "(($ac_try" in
5583  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584  *) ac_try_echo=$ac_try;;
5585esac
5586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5587$as_echo "$ac_try_echo") >&5
5588  (eval "$ac_compile") 2>conftest.er1
5589  ac_status=$?
5590  grep -v '^ *+' conftest.er1 >conftest.err
5591  rm -f conftest.er1
5592  cat conftest.err >&5
5593  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); } && {
5595	 test -z "$ac_cxx_werror_flag" ||
5596	 test ! -s conftest.err
5597       } && test -s conftest.$ac_objext; then
5598  :
5599else
5600  $as_echo "$as_me: failed program was:" >&5
5601sed 's/^/| /' conftest.$ac_ext >&5
5602
5603	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5604	 CXXFLAGS="-g"
5605	 cat >conftest.$ac_ext <<_ACEOF
5606/* confdefs.h.  */
5607_ACEOF
5608cat confdefs.h >>conftest.$ac_ext
5609cat >>conftest.$ac_ext <<_ACEOF
5610/* end confdefs.h.  */
5611
5612int
5613main ()
5614{
5615
5616  ;
5617  return 0;
5618}
5619_ACEOF
5620rm -f conftest.$ac_objext
5621if { (ac_try="$ac_compile"
5622case "(($ac_try" in
5623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624  *) ac_try_echo=$ac_try;;
5625esac
5626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5627$as_echo "$ac_try_echo") >&5
5628  (eval "$ac_compile") 2>conftest.er1
5629  ac_status=$?
5630  grep -v '^ *+' conftest.er1 >conftest.err
5631  rm -f conftest.er1
5632  cat conftest.err >&5
5633  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); } && {
5635	 test -z "$ac_cxx_werror_flag" ||
5636	 test ! -s conftest.err
5637       } && test -s conftest.$ac_objext; then
5638  ac_cv_prog_cxx_g=yes
5639else
5640  $as_echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
5642
5643
5644fi
5645
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647fi
5648
5649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650fi
5651
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5654fi
5655{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5656$as_echo "$ac_cv_prog_cxx_g" >&6; }
5657if test "$ac_test_CXXFLAGS" = set; then
5658  CXXFLAGS=$ac_save_CXXFLAGS
5659elif test $ac_cv_prog_cxx_g = yes; then
5660  if test "$GXX" = yes; then
5661    CXXFLAGS="-g -O2"
5662  else
5663    CXXFLAGS="-g"
5664  fi
5665else
5666  if test "$GXX" = yes; then
5667    CXXFLAGS="-O2"
5668  else
5669    CXXFLAGS=
5670  fi
5671fi
5672ac_ext=cpp
5673ac_cpp='$CXXCPP $CPPFLAGS'
5674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5677
5678depcc="$CXX"  am_compiler_list=
5679
5680{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5681$as_echo_n "checking dependency style of $depcc... " >&6; }
5682if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5683  $as_echo_n "(cached) " >&6
5684else
5685  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5686  # We make a subdir and do the tests there.  Otherwise we can end up
5687  # making bogus files that we don't know about and never remove.  For
5688  # instance it was reported that on HP-UX the gcc test will end up
5689  # making a dummy file named `D' -- because `-MD' means `put the output
5690  # in D'.
5691  mkdir conftest.dir
5692  # Copy depcomp to subdir because otherwise we won't find it if we're
5693  # using a relative directory.
5694  cp "$am_depcomp" conftest.dir
5695  cd conftest.dir
5696  # We will build objects and dependencies in a subdirectory because
5697  # it helps to detect inapplicable dependency modes.  For instance
5698  # both Tru64's cc and ICC support -MD to output dependencies as a
5699  # side effect of compilation, but ICC will put the dependencies in
5700  # the current directory while Tru64 will put them in the object
5701  # directory.
5702  mkdir sub
5703
5704  am_cv_CXX_dependencies_compiler_type=none
5705  if test "$am_compiler_list" = ""; then
5706     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5707  fi
5708  for depmode in $am_compiler_list; do
5709    # Setup a source with many dependencies, because some compilers
5710    # like to wrap large dependency lists on column 80 (with \), and
5711    # we should not choose a depcomp mode which is confused by this.
5712    #
5713    # We need to recreate these files for each test, as the compiler may
5714    # overwrite some of them when testing with obscure command lines.
5715    # This happens at least with the AIX C compiler.
5716    : > sub/conftest.c
5717    for i in 1 2 3 4 5 6; do
5718      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5719      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5720      # Solaris 8's {/usr,}/bin/sh.
5721      touch sub/conftst$i.h
5722    done
5723    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5724
5725    case $depmode in
5726    nosideeffect)
5727      # after this tag, mechanisms are not by side-effect, so they'll
5728      # only be used when explicitly requested
5729      if test "x$enable_dependency_tracking" = xyes; then
5730	continue
5731      else
5732	break
5733      fi
5734      ;;
5735    none) break ;;
5736    esac
5737    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5738    # mode.  It turns out that the SunPro C++ compiler does not properly
5739    # handle `-M -o', and we need to detect this.
5740    if depmode=$depmode \
5741       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5742       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5743       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5744         >/dev/null 2>conftest.err &&
5745       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5746       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5747       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5748       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5749      # icc doesn't choke on unknown options, it will just issue warnings
5750      # or remarks (even with -Werror).  So we grep stderr for any message
5751      # that says an option was ignored or not supported.
5752      # When given -MP, icc 7.0 and 7.1 complain thusly:
5753      #   icc: Command line warning: ignoring option '-M'; no argument required
5754      # The diagnosis changed in icc 8.0:
5755      #   icc: Command line remark: option '-MP' not supported
5756      if (grep 'ignoring option' conftest.err ||
5757          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5758        am_cv_CXX_dependencies_compiler_type=$depmode
5759        break
5760      fi
5761    fi
5762  done
5763
5764  cd ..
5765  rm -rf conftest.dir
5766else
5767  am_cv_CXX_dependencies_compiler_type=none
5768fi
5769
5770fi
5771{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5772$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5773CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5774
5775 if
5776  test "x$enable_dependency_tracking" != xno \
5777  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5778  am__fastdepCXX_TRUE=
5779  am__fastdepCXX_FALSE='#'
5780else
5781  am__fastdepCXX_TRUE='#'
5782  am__fastdepCXX_FALSE=
5783fi
5784
5785
5786
5787
5788if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5789    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5790    (test "X$CXX" != "Xg++"))) ; then
5791  ac_ext=cpp
5792ac_cpp='$CXXCPP $CPPFLAGS'
5793ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5796{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5797$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5798if test -z "$CXXCPP"; then
5799  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5800  $as_echo_n "(cached) " >&6
5801else
5802      # Double quotes because CXXCPP needs to be expanded
5803    for CXXCPP in "$CXX -E" "/lib/cpp"
5804    do
5805      ac_preproc_ok=false
5806for ac_cxx_preproc_warn_flag in '' yes
5807do
5808  # Use a header file that comes with gcc, so configuring glibc
5809  # with a fresh cross-compiler works.
5810  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5811  # <limits.h> exists even on freestanding compilers.
5812  # On the NeXT, cc -E runs the code through the compiler's parser,
5813  # not just through cpp. "Syntax error" is here to catch this case.
5814  cat >conftest.$ac_ext <<_ACEOF
5815/* confdefs.h.  */
5816_ACEOF
5817cat confdefs.h >>conftest.$ac_ext
5818cat >>conftest.$ac_ext <<_ACEOF
5819/* end confdefs.h.  */
5820#ifdef __STDC__
5821# include <limits.h>
5822#else
5823# include <assert.h>
5824#endif
5825		     Syntax error
5826_ACEOF
5827if { (ac_try="$ac_cpp conftest.$ac_ext"
5828case "(($ac_try" in
5829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830  *) ac_try_echo=$ac_try;;
5831esac
5832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833$as_echo "$ac_try_echo") >&5
5834  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5835  ac_status=$?
5836  grep -v '^ *+' conftest.er1 >conftest.err
5837  rm -f conftest.er1
5838  cat conftest.err >&5
5839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840  (exit $ac_status); } >/dev/null && {
5841	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5842	 test ! -s conftest.err
5843       }; then
5844  :
5845else
5846  $as_echo "$as_me: failed program was:" >&5
5847sed 's/^/| /' conftest.$ac_ext >&5
5848
5849  # Broken: fails on valid input.
5850continue
5851fi
5852
5853rm -f conftest.err conftest.$ac_ext
5854
5855  # OK, works on sane cases.  Now check whether nonexistent headers
5856  # can be detected and how.
5857  cat >conftest.$ac_ext <<_ACEOF
5858/* confdefs.h.  */
5859_ACEOF
5860cat confdefs.h >>conftest.$ac_ext
5861cat >>conftest.$ac_ext <<_ACEOF
5862/* end confdefs.h.  */
5863#include <ac_nonexistent.h>
5864_ACEOF
5865if { (ac_try="$ac_cpp conftest.$ac_ext"
5866case "(($ac_try" in
5867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868  *) ac_try_echo=$ac_try;;
5869esac
5870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5871$as_echo "$ac_try_echo") >&5
5872  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5873  ac_status=$?
5874  grep -v '^ *+' conftest.er1 >conftest.err
5875  rm -f conftest.er1
5876  cat conftest.err >&5
5877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878  (exit $ac_status); } >/dev/null && {
5879	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880	 test ! -s conftest.err
5881       }; then
5882  # Broken: success on invalid input.
5883continue
5884else
5885  $as_echo "$as_me: failed program was:" >&5
5886sed 's/^/| /' conftest.$ac_ext >&5
5887
5888  # Passes both tests.
5889ac_preproc_ok=:
5890break
5891fi
5892
5893rm -f conftest.err conftest.$ac_ext
5894
5895done
5896# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5897rm -f conftest.err conftest.$ac_ext
5898if $ac_preproc_ok; then
5899  break
5900fi
5901
5902    done
5903    ac_cv_prog_CXXCPP=$CXXCPP
5904
5905fi
5906  CXXCPP=$ac_cv_prog_CXXCPP
5907else
5908  ac_cv_prog_CXXCPP=$CXXCPP
5909fi
5910{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5911$as_echo "$CXXCPP" >&6; }
5912ac_preproc_ok=false
5913for ac_cxx_preproc_warn_flag in '' yes
5914do
5915  # Use a header file that comes with gcc, so configuring glibc
5916  # with a fresh cross-compiler works.
5917  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918  # <limits.h> exists even on freestanding compilers.
5919  # On the NeXT, cc -E runs the code through the compiler's parser,
5920  # not just through cpp. "Syntax error" is here to catch this case.
5921  cat >conftest.$ac_ext <<_ACEOF
5922/* confdefs.h.  */
5923_ACEOF
5924cat confdefs.h >>conftest.$ac_ext
5925cat >>conftest.$ac_ext <<_ACEOF
5926/* end confdefs.h.  */
5927#ifdef __STDC__
5928# include <limits.h>
5929#else
5930# include <assert.h>
5931#endif
5932		     Syntax error
5933_ACEOF
5934if { (ac_try="$ac_cpp conftest.$ac_ext"
5935case "(($ac_try" in
5936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937  *) ac_try_echo=$ac_try;;
5938esac
5939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940$as_echo "$ac_try_echo") >&5
5941  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5942  ac_status=$?
5943  grep -v '^ *+' conftest.er1 >conftest.err
5944  rm -f conftest.er1
5945  cat conftest.err >&5
5946  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947  (exit $ac_status); } >/dev/null && {
5948	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5949	 test ! -s conftest.err
5950       }; then
5951  :
5952else
5953  $as_echo "$as_me: failed program was:" >&5
5954sed 's/^/| /' conftest.$ac_ext >&5
5955
5956  # Broken: fails on valid input.
5957continue
5958fi
5959
5960rm -f conftest.err conftest.$ac_ext
5961
5962  # OK, works on sane cases.  Now check whether nonexistent headers
5963  # can be detected and how.
5964  cat >conftest.$ac_ext <<_ACEOF
5965/* confdefs.h.  */
5966_ACEOF
5967cat confdefs.h >>conftest.$ac_ext
5968cat >>conftest.$ac_ext <<_ACEOF
5969/* end confdefs.h.  */
5970#include <ac_nonexistent.h>
5971_ACEOF
5972if { (ac_try="$ac_cpp conftest.$ac_ext"
5973case "(($ac_try" in
5974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975  *) ac_try_echo=$ac_try;;
5976esac
5977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5978$as_echo "$ac_try_echo") >&5
5979  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5980  ac_status=$?
5981  grep -v '^ *+' conftest.er1 >conftest.err
5982  rm -f conftest.er1
5983  cat conftest.err >&5
5984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); } >/dev/null && {
5986	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5987	 test ! -s conftest.err
5988       }; then
5989  # Broken: success on invalid input.
5990continue
5991else
5992  $as_echo "$as_me: failed program was:" >&5
5993sed 's/^/| /' conftest.$ac_ext >&5
5994
5995  # Passes both tests.
5996ac_preproc_ok=:
5997break
5998fi
5999
6000rm -f conftest.err conftest.$ac_ext
6001
6002done
6003# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6004rm -f conftest.err conftest.$ac_ext
6005if $ac_preproc_ok; then
6006  :
6007else
6008  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6009$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6010{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6011See \`config.log' for more details." >&5
6012$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6013See \`config.log' for more details." >&2;}
6014   { (exit 1); exit 1; }; }; }
6015fi
6016
6017ac_ext=cpp
6018ac_cpp='$CXXCPP $CPPFLAGS'
6019ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6022
6023fi
6024
6025
6026ac_ext=f
6027ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6028ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6030if test -n "$ac_tool_prefix"; then
6031  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
6032  do
6033    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6036$as_echo_n "checking for $ac_word... " >&6; }
6037if test "${ac_cv_prog_F77+set}" = set; then
6038  $as_echo_n "(cached) " >&6
6039else
6040  if test -n "$F77"; then
6041  ac_cv_prog_F77="$F77" # Let the user override the test.
6042else
6043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044for as_dir in $PATH
6045do
6046  IFS=$as_save_IFS
6047  test -z "$as_dir" && as_dir=.
6048  for ac_exec_ext in '' $ac_executable_extensions; do
6049  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6051    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6052    break 2
6053  fi
6054done
6055done
6056IFS=$as_save_IFS
6057
6058fi
6059fi
6060F77=$ac_cv_prog_F77
6061if test -n "$F77"; then
6062  { $as_echo "$as_me:$LINENO: result: $F77" >&5
6063$as_echo "$F77" >&6; }
6064else
6065  { $as_echo "$as_me:$LINENO: result: no" >&5
6066$as_echo "no" >&6; }
6067fi
6068
6069
6070    test -n "$F77" && break
6071  done
6072fi
6073if test -z "$F77"; then
6074  ac_ct_F77=$F77
6075  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
6076do
6077  # Extract the first word of "$ac_prog", so it can be a program name with args.
6078set dummy $ac_prog; ac_word=$2
6079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
6081if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6082  $as_echo_n "(cached) " >&6
6083else
6084  if test -n "$ac_ct_F77"; then
6085  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090  IFS=$as_save_IFS
6091  test -z "$as_dir" && as_dir=.
6092  for ac_exec_ext in '' $ac_executable_extensions; do
6093  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094    ac_cv_prog_ac_ct_F77="$ac_prog"
6095    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6096    break 2
6097  fi
6098done
6099done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
6104ac_ct_F77=$ac_cv_prog_ac_ct_F77
6105if test -n "$ac_ct_F77"; then
6106  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6107$as_echo "$ac_ct_F77" >&6; }
6108else
6109  { $as_echo "$as_me:$LINENO: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113
6114  test -n "$ac_ct_F77" && break
6115done
6116
6117  if test "x$ac_ct_F77" = x; then
6118    F77=""
6119  else
6120    case $cross_compiling:$ac_tool_warned in
6121yes:)
6122{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124ac_tool_warned=yes ;;
6125esac
6126    F77=$ac_ct_F77
6127  fi
6128fi
6129
6130
6131# Provide some information about the compiler.
6132$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6133set X $ac_compile
6134ac_compiler=$2
6135{ (ac_try="$ac_compiler --version >&5"
6136case "(($ac_try" in
6137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138  *) ac_try_echo=$ac_try;;
6139esac
6140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6141$as_echo "$ac_try_echo") >&5
6142  (eval "$ac_compiler --version >&5") 2>&5
6143  ac_status=$?
6144  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145  (exit $ac_status); }
6146{ (ac_try="$ac_compiler -v >&5"
6147case "(($ac_try" in
6148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149  *) ac_try_echo=$ac_try;;
6150esac
6151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6152$as_echo "$ac_try_echo") >&5
6153  (eval "$ac_compiler -v >&5") 2>&5
6154  ac_status=$?
6155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); }
6157{ (ac_try="$ac_compiler -V >&5"
6158case "(($ac_try" in
6159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160  *) ac_try_echo=$ac_try;;
6161esac
6162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163$as_echo "$ac_try_echo") >&5
6164  (eval "$ac_compiler -V >&5") 2>&5
6165  ac_status=$?
6166  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167  (exit $ac_status); }
6168rm -f a.out
6169
6170# If we don't use `.F' as extension, the preprocessor is not run on the
6171# input file.  (Note that this only needs to work for GNU compilers.)
6172ac_save_ext=$ac_ext
6173ac_ext=F
6174{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6175$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6176if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6177  $as_echo_n "(cached) " >&6
6178else
6179  cat >conftest.$ac_ext <<_ACEOF
6180      program main
6181#ifndef __GNUC__
6182       choke me
6183#endif
6184
6185      end
6186_ACEOF
6187rm -f conftest.$ac_objext
6188if { (ac_try="$ac_compile"
6189case "(($ac_try" in
6190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191  *) ac_try_echo=$ac_try;;
6192esac
6193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6194$as_echo "$ac_try_echo") >&5
6195  (eval "$ac_compile") 2>conftest.er1
6196  ac_status=$?
6197  grep -v '^ *+' conftest.er1 >conftest.err
6198  rm -f conftest.er1
6199  cat conftest.err >&5
6200  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201  (exit $ac_status); } && {
6202	 test -z "$ac_f77_werror_flag" ||
6203	 test ! -s conftest.err
6204       } && test -s conftest.$ac_objext; then
6205  ac_compiler_gnu=yes
6206else
6207  $as_echo "$as_me: failed program was:" >&5
6208sed 's/^/| /' conftest.$ac_ext >&5
6209
6210	ac_compiler_gnu=no
6211fi
6212
6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6215
6216fi
6217{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6218$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6219ac_ext=$ac_save_ext
6220ac_test_FFLAGS=${FFLAGS+set}
6221ac_save_FFLAGS=$FFLAGS
6222FFLAGS=
6223{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6224$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6225if test "${ac_cv_prog_f77_g+set}" = set; then
6226  $as_echo_n "(cached) " >&6
6227else
6228  FFLAGS=-g
6229cat >conftest.$ac_ext <<_ACEOF
6230      program main
6231
6232      end
6233_ACEOF
6234rm -f conftest.$ac_objext
6235if { (ac_try="$ac_compile"
6236case "(($ac_try" in
6237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238  *) ac_try_echo=$ac_try;;
6239esac
6240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6241$as_echo "$ac_try_echo") >&5
6242  (eval "$ac_compile") 2>conftest.er1
6243  ac_status=$?
6244  grep -v '^ *+' conftest.er1 >conftest.err
6245  rm -f conftest.er1
6246  cat conftest.err >&5
6247  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); } && {
6249	 test -z "$ac_f77_werror_flag" ||
6250	 test ! -s conftest.err
6251       } && test -s conftest.$ac_objext; then
6252  ac_cv_prog_f77_g=yes
6253else
6254  $as_echo "$as_me: failed program was:" >&5
6255sed 's/^/| /' conftest.$ac_ext >&5
6256
6257	ac_cv_prog_f77_g=no
6258fi
6259
6260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261
6262fi
6263{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6264$as_echo "$ac_cv_prog_f77_g" >&6; }
6265if test "$ac_test_FFLAGS" = set; then
6266  FFLAGS=$ac_save_FFLAGS
6267elif test $ac_cv_prog_f77_g = yes; then
6268  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6269    FFLAGS="-g -O2"
6270  else
6271    FFLAGS="-g"
6272  fi
6273else
6274  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6275    FFLAGS="-O2"
6276  else
6277    FFLAGS=
6278  fi
6279fi
6280
6281if test $ac_compiler_gnu = yes; then
6282  G77=yes
6283else
6284  G77=
6285fi
6286ac_ext=c
6287ac_cpp='$CPP $CPPFLAGS'
6288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6290ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291
6292
6293
6294# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6295# find the maximum length of command line arguments
6296{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6297$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6298if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6299  $as_echo_n "(cached) " >&6
6300else
6301    i=0
6302  teststring="ABCD"
6303
6304  case $build_os in
6305  msdosdjgpp*)
6306    # On DJGPP, this test can blow up pretty badly due to problems in libc
6307    # (any single argument exceeding 2000 bytes causes a buffer overrun
6308    # during glob expansion).  Even if it were fixed, the result of this
6309    # check would be larger than it should be.
6310    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6311    ;;
6312
6313  gnu*)
6314    # Under GNU Hurd, this test is not required because there is
6315    # no limit to the length of command line arguments.
6316    # Libtool will interpret -1 as no limit whatsoever
6317    lt_cv_sys_max_cmd_len=-1;
6318    ;;
6319
6320  cygwin* | mingw*)
6321    # On Win9x/ME, this test blows up -- it succeeds, but takes
6322    # about 5 minutes as the teststring grows exponentially.
6323    # Worse, since 9x/ME are not pre-emptively multitasking,
6324    # you end up with a "frozen" computer, even though with patience
6325    # the test eventually succeeds (with a max line length of 256k).
6326    # Instead, let's just punt: use the minimum linelength reported by
6327    # all of the supported platforms: 8192 (on NT/2K/XP).
6328    lt_cv_sys_max_cmd_len=8192;
6329    ;;
6330
6331  amigaos*)
6332    # On AmigaOS with pdksh, this test takes hours, literally.
6333    # So we just punt and use a minimum line length of 8192.
6334    lt_cv_sys_max_cmd_len=8192;
6335    ;;
6336
6337  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6338    # This has been around since 386BSD, at least.  Likely further.
6339    if test -x /sbin/sysctl; then
6340      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6341    elif test -x /usr/sbin/sysctl; then
6342      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6343    else
6344      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6345    fi
6346    # And add a safety zone
6347    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6348    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6349    ;;
6350
6351  interix*)
6352    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6353    lt_cv_sys_max_cmd_len=196608
6354    ;;
6355
6356  osf*)
6357    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6358    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6359    # nice to cause kernel panics so lets avoid the loop below.
6360    # First set a reasonable default.
6361    lt_cv_sys_max_cmd_len=16384
6362    #
6363    if test -x /sbin/sysconfig; then
6364      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6365        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6366      esac
6367    fi
6368    ;;
6369  sco3.2v5*)
6370    lt_cv_sys_max_cmd_len=102400
6371    ;;
6372  sysv5* | sco5v6* | sysv4.2uw2*)
6373    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6374    if test -n "$kargmax"; then
6375      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6376    else
6377      lt_cv_sys_max_cmd_len=32768
6378    fi
6379    ;;
6380  *)
6381    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6382    if test -n "$lt_cv_sys_max_cmd_len"; then
6383      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6384      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6385    else
6386      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6387      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6388	       = "XX$teststring") >/dev/null 2>&1 &&
6389	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6390	      lt_cv_sys_max_cmd_len=$new_result &&
6391	      test $i != 17 # 1/2 MB should be enough
6392      do
6393        i=`expr $i + 1`
6394        teststring=$teststring$teststring
6395      done
6396      teststring=
6397      # Add a significant safety factor because C++ compilers can tack on massive
6398      # amounts of additional arguments before passing them to the linker.
6399      # It appears as though 1/2 is a usable value.
6400      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6401    fi
6402    ;;
6403  esac
6404
6405fi
6406
6407if test -n $lt_cv_sys_max_cmd_len ; then
6408  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6409$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6410else
6411  { $as_echo "$as_me:$LINENO: result: none" >&5
6412$as_echo "none" >&6; }
6413fi
6414
6415
6416
6417
6418
6419# Check for command to grab the raw symbol name followed by C symbol from nm.
6420{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6421$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6422if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6423  $as_echo_n "(cached) " >&6
6424else
6425
6426# These are sane defaults that work on at least a few old systems.
6427# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6428
6429# Character class describing NM global symbol codes.
6430symcode='[BCDEGRST]'
6431
6432# Regexp to match symbols that can be accessed directly from C.
6433sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6434
6435# Transform an extracted symbol line into a proper C declaration
6436lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6437
6438# Transform an extracted symbol line into symbol name and symbol address
6439lt_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'"
6440
6441# Define system-specific variables.
6442case $host_os in
6443aix*)
6444  symcode='[BCDT]'
6445  ;;
6446cygwin* | mingw* | pw32*)
6447  symcode='[ABCDGISTW]'
6448  ;;
6449hpux*) # Its linker distinguishes data from code symbols
6450  if test "$host_cpu" = ia64; then
6451    symcode='[ABCDEGRST]'
6452  fi
6453  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6454  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'"
6455  ;;
6456linux* | k*bsd*-gnu)
6457  if test "$host_cpu" = ia64; then
6458    symcode='[ABCDGIRSTW]'
6459    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6460    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'"
6461  fi
6462  ;;
6463irix* | nonstopux*)
6464  symcode='[BCDEGRST]'
6465  ;;
6466osf*)
6467  symcode='[BCDEGQRST]'
6468  ;;
6469solaris*)
6470  symcode='[BDRT]'
6471  ;;
6472sco3.2v5*)
6473  symcode='[DT]'
6474  ;;
6475sysv4.2uw2*)
6476  symcode='[DT]'
6477  ;;
6478sysv5* | sco5v6* | unixware* | OpenUNIX*)
6479  symcode='[ABDT]'
6480  ;;
6481sysv4)
6482  symcode='[DFNSTU]'
6483  ;;
6484esac
6485
6486# Handle CRLF in mingw tool chain
6487opt_cr=
6488case $build_os in
6489mingw*)
6490  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6491  ;;
6492esac
6493
6494# If we're using GNU nm, then use its standard symbol codes.
6495case `$NM -V 2>&1` in
6496*GNU* | *'with BFD'*)
6497  symcode='[ABCDGIRSTW]' ;;
6498esac
6499
6500# Try without a prefix undercore, then with it.
6501for ac_symprfx in "" "_"; do
6502
6503  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6504  symxfrm="\\1 $ac_symprfx\\2 \\2"
6505
6506  # Write the raw and C identifiers.
6507  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6508
6509  # Check to see that the pipe works correctly.
6510  pipe_works=no
6511
6512  rm -f conftest*
6513  cat > conftest.$ac_ext <<EOF
6514#ifdef __cplusplus
6515extern "C" {
6516#endif
6517char nm_test_var;
6518void nm_test_func(){}
6519#ifdef __cplusplus
6520}
6521#endif
6522int main(){nm_test_var='a';nm_test_func();return(0);}
6523EOF
6524
6525  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526  (eval $ac_compile) 2>&5
6527  ac_status=$?
6528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529  (exit $ac_status); }; then
6530    # Now try to grab the symbols.
6531    nlist=conftest.nm
6532    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6533  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6534  ac_status=$?
6535  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536  (exit $ac_status); } && test -s "$nlist"; then
6537      # Try sorting and uniquifying the output.
6538      if sort "$nlist" | uniq > "$nlist"T; then
6539	mv -f "$nlist"T "$nlist"
6540      else
6541	rm -f "$nlist"T
6542      fi
6543
6544      # Make sure that we snagged all the symbols we need.
6545      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6546	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6547	  cat <<EOF > conftest.$ac_ext
6548#ifdef __cplusplus
6549extern "C" {
6550#endif
6551
6552EOF
6553	  # Now generate the symbol file.
6554	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6555
6556	  cat <<EOF >> conftest.$ac_ext
6557#if defined (__STDC__) && __STDC__
6558# define lt_ptr_t void *
6559#else
6560# define lt_ptr_t char *
6561# define const
6562#endif
6563
6564/* The mapping between symbol names and symbols. */
6565const struct {
6566  const char *name;
6567  lt_ptr_t address;
6568}
6569lt_preloaded_symbols[] =
6570{
6571EOF
6572	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6573	  cat <<\EOF >> conftest.$ac_ext
6574  {0, (lt_ptr_t) 0}
6575};
6576
6577#ifdef __cplusplus
6578}
6579#endif
6580EOF
6581	  # Now try linking the two files.
6582	  mv conftest.$ac_objext conftstm.$ac_objext
6583	  lt_save_LIBS="$LIBS"
6584	  lt_save_CFLAGS="$CFLAGS"
6585	  LIBS="conftstm.$ac_objext"
6586	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6587	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6588  (eval $ac_link) 2>&5
6589  ac_status=$?
6590  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6592	    pipe_works=yes
6593	  fi
6594	  LIBS="$lt_save_LIBS"
6595	  CFLAGS="$lt_save_CFLAGS"
6596	else
6597	  echo "cannot find nm_test_func in $nlist" >&5
6598	fi
6599      else
6600	echo "cannot find nm_test_var in $nlist" >&5
6601      fi
6602    else
6603      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6604    fi
6605  else
6606    echo "$progname: failed program was:" >&5
6607    cat conftest.$ac_ext >&5
6608  fi
6609  rm -rf conftest* conftst*
6610
6611  # Do not use the global_symbol_pipe unless it works.
6612  if test "$pipe_works" = yes; then
6613    break
6614  else
6615    lt_cv_sys_global_symbol_pipe=
6616  fi
6617done
6618
6619fi
6620
6621if test -z "$lt_cv_sys_global_symbol_pipe"; then
6622  lt_cv_sys_global_symbol_to_cdecl=
6623fi
6624if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6625  { $as_echo "$as_me:$LINENO: result: failed" >&5
6626$as_echo "failed" >&6; }
6627else
6628  { $as_echo "$as_me:$LINENO: result: ok" >&5
6629$as_echo "ok" >&6; }
6630fi
6631
6632{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
6633$as_echo_n "checking for objdir... " >&6; }
6634if test "${lt_cv_objdir+set}" = set; then
6635  $as_echo_n "(cached) " >&6
6636else
6637  rm -f .libs 2>/dev/null
6638mkdir .libs 2>/dev/null
6639if test -d .libs; then
6640  lt_cv_objdir=.libs
6641else
6642  # MS-DOS does not allow filenames that begin with a dot.
6643  lt_cv_objdir=_libs
6644fi
6645rmdir .libs 2>/dev/null
6646fi
6647{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6648$as_echo "$lt_cv_objdir" >&6; }
6649objdir=$lt_cv_objdir
6650
6651
6652
6653
6654
6655case $host_os in
6656aix3*)
6657  # AIX sometimes has problems with the GCC collect2 program.  For some
6658  # reason, if we set the COLLECT_NAMES environment variable, the problems
6659  # vanish in a puff of smoke.
6660  if test "X${COLLECT_NAMES+set}" != Xset; then
6661    COLLECT_NAMES=
6662    export COLLECT_NAMES
6663  fi
6664  ;;
6665esac
6666
6667# Sed substitution that helps us do robust quoting.  It backslashifies
6668# metacharacters that are still active within double-quoted strings.
6669Xsed='sed -e 1s/^X//'
6670sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6671
6672# Same as above, but do not quote variable references.
6673double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6674
6675# Sed substitution to delay expansion of an escaped shell variable in a
6676# double_quote_subst'ed string.
6677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6678
6679# Sed substitution to avoid accidental globbing in evaled expressions
6680no_glob_subst='s/\*/\\\*/g'
6681
6682# Constants:
6683rm="rm -f"
6684
6685# Global variables:
6686default_ofile=libtool
6687can_build_shared=yes
6688
6689# All known linkers require a `.a' archive for static linking (except MSVC,
6690# which needs '.lib').
6691libext=a
6692ltmain="$ac_aux_dir/ltmain.sh"
6693ofile="$default_ofile"
6694with_gnu_ld="$lt_cv_prog_gnu_ld"
6695
6696if test -n "$ac_tool_prefix"; then
6697  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6698set dummy ${ac_tool_prefix}ar; ac_word=$2
6699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6700$as_echo_n "checking for $ac_word... " >&6; }
6701if test "${ac_cv_prog_AR+set}" = set; then
6702  $as_echo_n "(cached) " >&6
6703else
6704  if test -n "$AR"; then
6705  ac_cv_prog_AR="$AR" # Let the user override the test.
6706else
6707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6708for as_dir in $PATH
6709do
6710  IFS=$as_save_IFS
6711  test -z "$as_dir" && as_dir=.
6712  for ac_exec_ext in '' $ac_executable_extensions; do
6713  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6714    ac_cv_prog_AR="${ac_tool_prefix}ar"
6715    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6716    break 2
6717  fi
6718done
6719done
6720IFS=$as_save_IFS
6721
6722fi
6723fi
6724AR=$ac_cv_prog_AR
6725if test -n "$AR"; then
6726  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6727$as_echo "$AR" >&6; }
6728else
6729  { $as_echo "$as_me:$LINENO: result: no" >&5
6730$as_echo "no" >&6; }
6731fi
6732
6733
6734fi
6735if test -z "$ac_cv_prog_AR"; then
6736  ac_ct_AR=$AR
6737  # Extract the first word of "ar", so it can be a program name with args.
6738set dummy ar; ac_word=$2
6739{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6740$as_echo_n "checking for $ac_word... " >&6; }
6741if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6742  $as_echo_n "(cached) " >&6
6743else
6744  if test -n "$ac_ct_AR"; then
6745  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6746else
6747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748for as_dir in $PATH
6749do
6750  IFS=$as_save_IFS
6751  test -z "$as_dir" && as_dir=.
6752  for ac_exec_ext in '' $ac_executable_extensions; do
6753  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754    ac_cv_prog_ac_ct_AR="ar"
6755    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756    break 2
6757  fi
6758done
6759done
6760IFS=$as_save_IFS
6761
6762fi
6763fi
6764ac_ct_AR=$ac_cv_prog_ac_ct_AR
6765if test -n "$ac_ct_AR"; then
6766  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6767$as_echo "$ac_ct_AR" >&6; }
6768else
6769  { $as_echo "$as_me:$LINENO: result: no" >&5
6770$as_echo "no" >&6; }
6771fi
6772
6773  if test "x$ac_ct_AR" = x; then
6774    AR="false"
6775  else
6776    case $cross_compiling:$ac_tool_warned in
6777yes:)
6778{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6780ac_tool_warned=yes ;;
6781esac
6782    AR=$ac_ct_AR
6783  fi
6784else
6785  AR="$ac_cv_prog_AR"
6786fi
6787
6788if test -n "$ac_tool_prefix"; then
6789  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6790set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6791{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6792$as_echo_n "checking for $ac_word... " >&6; }
6793if test "${ac_cv_prog_RANLIB+set}" = set; then
6794  $as_echo_n "(cached) " >&6
6795else
6796  if test -n "$RANLIB"; then
6797  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6798else
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802  IFS=$as_save_IFS
6803  test -z "$as_dir" && as_dir=.
6804  for ac_exec_ext in '' $ac_executable_extensions; do
6805  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6807    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808    break 2
6809  fi
6810done
6811done
6812IFS=$as_save_IFS
6813
6814fi
6815fi
6816RANLIB=$ac_cv_prog_RANLIB
6817if test -n "$RANLIB"; then
6818  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6819$as_echo "$RANLIB" >&6; }
6820else
6821  { $as_echo "$as_me:$LINENO: result: no" >&5
6822$as_echo "no" >&6; }
6823fi
6824
6825
6826fi
6827if test -z "$ac_cv_prog_RANLIB"; then
6828  ac_ct_RANLIB=$RANLIB
6829  # Extract the first word of "ranlib", so it can be a program name with args.
6830set dummy ranlib; ac_word=$2
6831{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6832$as_echo_n "checking for $ac_word... " >&6; }
6833if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6834  $as_echo_n "(cached) " >&6
6835else
6836  if test -n "$ac_ct_RANLIB"; then
6837  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6838else
6839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840for as_dir in $PATH
6841do
6842  IFS=$as_save_IFS
6843  test -z "$as_dir" && as_dir=.
6844  for ac_exec_ext in '' $ac_executable_extensions; do
6845  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6846    ac_cv_prog_ac_ct_RANLIB="ranlib"
6847    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6848    break 2
6849  fi
6850done
6851done
6852IFS=$as_save_IFS
6853
6854fi
6855fi
6856ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6857if test -n "$ac_ct_RANLIB"; then
6858  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6859$as_echo "$ac_ct_RANLIB" >&6; }
6860else
6861  { $as_echo "$as_me:$LINENO: result: no" >&5
6862$as_echo "no" >&6; }
6863fi
6864
6865  if test "x$ac_ct_RANLIB" = x; then
6866    RANLIB=":"
6867  else
6868    case $cross_compiling:$ac_tool_warned in
6869yes:)
6870{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6872ac_tool_warned=yes ;;
6873esac
6874    RANLIB=$ac_ct_RANLIB
6875  fi
6876else
6877  RANLIB="$ac_cv_prog_RANLIB"
6878fi
6879
6880if test -n "$ac_tool_prefix"; then
6881  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6882set dummy ${ac_tool_prefix}strip; ac_word=$2
6883{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6884$as_echo_n "checking for $ac_word... " >&6; }
6885if test "${ac_cv_prog_STRIP+set}" = set; then
6886  $as_echo_n "(cached) " >&6
6887else
6888  if test -n "$STRIP"; then
6889  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6890else
6891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892for as_dir in $PATH
6893do
6894  IFS=$as_save_IFS
6895  test -z "$as_dir" && as_dir=.
6896  for ac_exec_ext in '' $ac_executable_extensions; do
6897  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6899    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900    break 2
6901  fi
6902done
6903done
6904IFS=$as_save_IFS
6905
6906fi
6907fi
6908STRIP=$ac_cv_prog_STRIP
6909if test -n "$STRIP"; then
6910  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6911$as_echo "$STRIP" >&6; }
6912else
6913  { $as_echo "$as_me:$LINENO: result: no" >&5
6914$as_echo "no" >&6; }
6915fi
6916
6917
6918fi
6919if test -z "$ac_cv_prog_STRIP"; then
6920  ac_ct_STRIP=$STRIP
6921  # Extract the first word of "strip", so it can be a program name with args.
6922set dummy strip; ac_word=$2
6923{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6924$as_echo_n "checking for $ac_word... " >&6; }
6925if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6926  $as_echo_n "(cached) " >&6
6927else
6928  if test -n "$ac_ct_STRIP"; then
6929  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6930else
6931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932for as_dir in $PATH
6933do
6934  IFS=$as_save_IFS
6935  test -z "$as_dir" && as_dir=.
6936  for ac_exec_ext in '' $ac_executable_extensions; do
6937  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6938    ac_cv_prog_ac_ct_STRIP="strip"
6939    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6940    break 2
6941  fi
6942done
6943done
6944IFS=$as_save_IFS
6945
6946fi
6947fi
6948ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6949if test -n "$ac_ct_STRIP"; then
6950  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6951$as_echo "$ac_ct_STRIP" >&6; }
6952else
6953  { $as_echo "$as_me:$LINENO: result: no" >&5
6954$as_echo "no" >&6; }
6955fi
6956
6957  if test "x$ac_ct_STRIP" = x; then
6958    STRIP=":"
6959  else
6960    case $cross_compiling:$ac_tool_warned in
6961yes:)
6962{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964ac_tool_warned=yes ;;
6965esac
6966    STRIP=$ac_ct_STRIP
6967  fi
6968else
6969  STRIP="$ac_cv_prog_STRIP"
6970fi
6971
6972
6973old_CC="$CC"
6974old_CFLAGS="$CFLAGS"
6975
6976# Set sane defaults for various variables
6977test -z "$AR" && AR=ar
6978test -z "$AR_FLAGS" && AR_FLAGS=cru
6979test -z "$AS" && AS=as
6980test -z "$CC" && CC=cc
6981test -z "$LTCC" && LTCC=$CC
6982test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6983test -z "$DLLTOOL" && DLLTOOL=dlltool
6984test -z "$LD" && LD=ld
6985test -z "$LN_S" && LN_S="ln -s"
6986test -z "$MAGIC_CMD" && MAGIC_CMD=file
6987test -z "$NM" && NM=nm
6988test -z "$SED" && SED=sed
6989test -z "$OBJDUMP" && OBJDUMP=objdump
6990test -z "$RANLIB" && RANLIB=:
6991test -z "$STRIP" && STRIP=:
6992test -z "$ac_objext" && ac_objext=o
6993
6994# Determine commands to create old-style static archives.
6995old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6996old_postinstall_cmds='chmod 644 $oldlib'
6997old_postuninstall_cmds=
6998
6999if test -n "$RANLIB"; then
7000  case $host_os in
7001  openbsd*)
7002    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7003    ;;
7004  *)
7005    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7006    ;;
7007  esac
7008  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7009fi
7010
7011for cc_temp in $compiler""; do
7012  case $cc_temp in
7013    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7014    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7015    \-*) ;;
7016    *) break;;
7017  esac
7018done
7019cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7020
7021
7022# Only perform the check for file, if the check method requires it
7023case $deplibs_check_method in
7024file_magic*)
7025  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7026    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7027$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7028if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7029  $as_echo_n "(cached) " >&6
7030else
7031  case $MAGIC_CMD in
7032[\\/*] |  ?:[\\/]*)
7033  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7034  ;;
7035*)
7036  lt_save_MAGIC_CMD="$MAGIC_CMD"
7037  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7038  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7039  for ac_dir in $ac_dummy; do
7040    IFS="$lt_save_ifs"
7041    test -z "$ac_dir" && ac_dir=.
7042    if test -f $ac_dir/${ac_tool_prefix}file; then
7043      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7044      if test -n "$file_magic_test_file"; then
7045	case $deplibs_check_method in
7046	"file_magic "*)
7047	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7048	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7050	    $EGREP "$file_magic_regex" > /dev/null; then
7051	    :
7052	  else
7053	    cat <<EOF 1>&2
7054
7055*** Warning: the command libtool uses to detect shared libraries,
7056*** $file_magic_cmd, produces output that libtool cannot recognize.
7057*** The result is that libtool may fail to recognize shared libraries
7058*** as such.  This will affect the creation of libtool libraries that
7059*** depend on shared libraries, but programs linked with such libtool
7060*** libraries will work regardless of this problem.  Nevertheless, you
7061*** may want to report the problem to your system manager and/or to
7062*** bug-libtool@gnu.org
7063
7064EOF
7065	  fi ;;
7066	esac
7067      fi
7068      break
7069    fi
7070  done
7071  IFS="$lt_save_ifs"
7072  MAGIC_CMD="$lt_save_MAGIC_CMD"
7073  ;;
7074esac
7075fi
7076
7077MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7078if test -n "$MAGIC_CMD"; then
7079  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7080$as_echo "$MAGIC_CMD" >&6; }
7081else
7082  { $as_echo "$as_me:$LINENO: result: no" >&5
7083$as_echo "no" >&6; }
7084fi
7085
7086if test -z "$lt_cv_path_MAGIC_CMD"; then
7087  if test -n "$ac_tool_prefix"; then
7088    { $as_echo "$as_me:$LINENO: checking for file" >&5
7089$as_echo_n "checking for file... " >&6; }
7090if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7091  $as_echo_n "(cached) " >&6
7092else
7093  case $MAGIC_CMD in
7094[\\/*] |  ?:[\\/]*)
7095  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7096  ;;
7097*)
7098  lt_save_MAGIC_CMD="$MAGIC_CMD"
7099  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7100  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7101  for ac_dir in $ac_dummy; do
7102    IFS="$lt_save_ifs"
7103    test -z "$ac_dir" && ac_dir=.
7104    if test -f $ac_dir/file; then
7105      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7106      if test -n "$file_magic_test_file"; then
7107	case $deplibs_check_method in
7108	"file_magic "*)
7109	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7110	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7111	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7112	    $EGREP "$file_magic_regex" > /dev/null; then
7113	    :
7114	  else
7115	    cat <<EOF 1>&2
7116
7117*** Warning: the command libtool uses to detect shared libraries,
7118*** $file_magic_cmd, produces output that libtool cannot recognize.
7119*** The result is that libtool may fail to recognize shared libraries
7120*** as such.  This will affect the creation of libtool libraries that
7121*** depend on shared libraries, but programs linked with such libtool
7122*** libraries will work regardless of this problem.  Nevertheless, you
7123*** may want to report the problem to your system manager and/or to
7124*** bug-libtool@gnu.org
7125
7126EOF
7127	  fi ;;
7128	esac
7129      fi
7130      break
7131    fi
7132  done
7133  IFS="$lt_save_ifs"
7134  MAGIC_CMD="$lt_save_MAGIC_CMD"
7135  ;;
7136esac
7137fi
7138
7139MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7140if test -n "$MAGIC_CMD"; then
7141  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7142$as_echo "$MAGIC_CMD" >&6; }
7143else
7144  { $as_echo "$as_me:$LINENO: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148  else
7149    MAGIC_CMD=:
7150  fi
7151fi
7152
7153  fi
7154  ;;
7155esac
7156
7157
7158  case $host_os in
7159    rhapsody* | darwin*)
7160    if test -n "$ac_tool_prefix"; then
7161  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7162set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7163{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7164$as_echo_n "checking for $ac_word... " >&6; }
7165if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7166  $as_echo_n "(cached) " >&6
7167else
7168  if test -n "$DSYMUTIL"; then
7169  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7170else
7171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7172for as_dir in $PATH
7173do
7174  IFS=$as_save_IFS
7175  test -z "$as_dir" && as_dir=.
7176  for ac_exec_ext in '' $ac_executable_extensions; do
7177  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7178    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7179    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7180    break 2
7181  fi
7182done
7183done
7184IFS=$as_save_IFS
7185
7186fi
7187fi
7188DSYMUTIL=$ac_cv_prog_DSYMUTIL
7189if test -n "$DSYMUTIL"; then
7190  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7191$as_echo "$DSYMUTIL" >&6; }
7192else
7193  { $as_echo "$as_me:$LINENO: result: no" >&5
7194$as_echo "no" >&6; }
7195fi
7196
7197
7198fi
7199if test -z "$ac_cv_prog_DSYMUTIL"; then
7200  ac_ct_DSYMUTIL=$DSYMUTIL
7201  # Extract the first word of "dsymutil", so it can be a program name with args.
7202set dummy dsymutil; ac_word=$2
7203{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7204$as_echo_n "checking for $ac_word... " >&6; }
7205if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7206  $as_echo_n "(cached) " >&6
7207else
7208  if test -n "$ac_ct_DSYMUTIL"; then
7209  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7210else
7211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212for as_dir in $PATH
7213do
7214  IFS=$as_save_IFS
7215  test -z "$as_dir" && as_dir=.
7216  for ac_exec_ext in '' $ac_executable_extensions; do
7217  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7219    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220    break 2
7221  fi
7222done
7223done
7224IFS=$as_save_IFS
7225
7226fi
7227fi
7228ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7229if test -n "$ac_ct_DSYMUTIL"; then
7230  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7231$as_echo "$ac_ct_DSYMUTIL" >&6; }
7232else
7233  { $as_echo "$as_me:$LINENO: result: no" >&5
7234$as_echo "no" >&6; }
7235fi
7236
7237  if test "x$ac_ct_DSYMUTIL" = x; then
7238    DSYMUTIL=":"
7239  else
7240    case $cross_compiling:$ac_tool_warned in
7241yes:)
7242{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7243$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244ac_tool_warned=yes ;;
7245esac
7246    DSYMUTIL=$ac_ct_DSYMUTIL
7247  fi
7248else
7249  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7250fi
7251
7252    if test -n "$ac_tool_prefix"; then
7253  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7254set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7255{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7256$as_echo_n "checking for $ac_word... " >&6; }
7257if test "${ac_cv_prog_NMEDIT+set}" = set; then
7258  $as_echo_n "(cached) " >&6
7259else
7260  if test -n "$NMEDIT"; then
7261  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7262else
7263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7264for as_dir in $PATH
7265do
7266  IFS=$as_save_IFS
7267  test -z "$as_dir" && as_dir=.
7268  for ac_exec_ext in '' $ac_executable_extensions; do
7269  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7270    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7271    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7272    break 2
7273  fi
7274done
7275done
7276IFS=$as_save_IFS
7277
7278fi
7279fi
7280NMEDIT=$ac_cv_prog_NMEDIT
7281if test -n "$NMEDIT"; then
7282  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7283$as_echo "$NMEDIT" >&6; }
7284else
7285  { $as_echo "$as_me:$LINENO: result: no" >&5
7286$as_echo "no" >&6; }
7287fi
7288
7289
7290fi
7291if test -z "$ac_cv_prog_NMEDIT"; then
7292  ac_ct_NMEDIT=$NMEDIT
7293  # Extract the first word of "nmedit", so it can be a program name with args.
7294set dummy nmedit; ac_word=$2
7295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7296$as_echo_n "checking for $ac_word... " >&6; }
7297if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7298  $as_echo_n "(cached) " >&6
7299else
7300  if test -n "$ac_ct_NMEDIT"; then
7301  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7302else
7303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306  IFS=$as_save_IFS
7307  test -z "$as_dir" && as_dir=.
7308  for ac_exec_ext in '' $ac_executable_extensions; do
7309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7311    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312    break 2
7313  fi
7314done
7315done
7316IFS=$as_save_IFS
7317
7318fi
7319fi
7320ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7321if test -n "$ac_ct_NMEDIT"; then
7322  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7323$as_echo "$ac_ct_NMEDIT" >&6; }
7324else
7325  { $as_echo "$as_me:$LINENO: result: no" >&5
7326$as_echo "no" >&6; }
7327fi
7328
7329  if test "x$ac_ct_NMEDIT" = x; then
7330    NMEDIT=":"
7331  else
7332    case $cross_compiling:$ac_tool_warned in
7333yes:)
7334{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7335$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336ac_tool_warned=yes ;;
7337esac
7338    NMEDIT=$ac_ct_NMEDIT
7339  fi
7340else
7341  NMEDIT="$ac_cv_prog_NMEDIT"
7342fi
7343
7344
7345    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7346$as_echo_n "checking for -single_module linker flag... " >&6; }
7347if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7348  $as_echo_n "(cached) " >&6
7349else
7350  lt_cv_apple_cc_single_mod=no
7351      if test -z "${LT_MULTI_MODULE}"; then
7352   # By default we will add the -single_module flag. You can override
7353   # by either setting the environment variable LT_MULTI_MODULE
7354   # non-empty at configure time, or by adding -multi_module to the
7355   # link flags.
7356   echo "int foo(void){return 1;}" > conftest.c
7357   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7358     -dynamiclib ${wl}-single_module conftest.c
7359   if test -f libconftest.dylib; then
7360     lt_cv_apple_cc_single_mod=yes
7361     rm -rf libconftest.dylib*
7362   fi
7363   rm conftest.c
7364      fi
7365fi
7366{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7367$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7368    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7369$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7370if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7371  $as_echo_n "(cached) " >&6
7372else
7373  lt_cv_ld_exported_symbols_list=no
7374      save_LDFLAGS=$LDFLAGS
7375      echo "_main" > conftest.sym
7376      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7377      cat >conftest.$ac_ext <<_ACEOF
7378/* confdefs.h.  */
7379_ACEOF
7380cat confdefs.h >>conftest.$ac_ext
7381cat >>conftest.$ac_ext <<_ACEOF
7382/* end confdefs.h.  */
7383
7384int
7385main ()
7386{
7387
7388  ;
7389  return 0;
7390}
7391_ACEOF
7392rm -f conftest.$ac_objext conftest$ac_exeext
7393if { (ac_try="$ac_link"
7394case "(($ac_try" in
7395  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396  *) ac_try_echo=$ac_try;;
7397esac
7398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7399$as_echo "$ac_try_echo") >&5
7400  (eval "$ac_link") 2>conftest.er1
7401  ac_status=$?
7402  grep -v '^ *+' conftest.er1 >conftest.err
7403  rm -f conftest.er1
7404  cat conftest.err >&5
7405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406  (exit $ac_status); } && {
7407	 test -z "$ac_c_werror_flag" ||
7408	 test ! -s conftest.err
7409       } && test -s conftest$ac_exeext && {
7410	 test "$cross_compiling" = yes ||
7411	 $as_test_x conftest$ac_exeext
7412       }; then
7413  lt_cv_ld_exported_symbols_list=yes
7414else
7415  $as_echo "$as_me: failed program was:" >&5
7416sed 's/^/| /' conftest.$ac_ext >&5
7417
7418	lt_cv_ld_exported_symbols_list=no
7419fi
7420
7421rm -rf conftest.dSYM
7422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7423      conftest$ac_exeext conftest.$ac_ext
7424   LDFLAGS="$save_LDFLAGS"
7425
7426fi
7427{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7428$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7429    case $host_os in
7430    rhapsody* | darwin1.[0123])
7431      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7432    darwin1.*)
7433     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7434    darwin*)
7435      # if running on 10.5 or later, the deployment target defaults
7436      # to the OS version, if on x86, and 10.4, the deployment
7437      # target defaults to 10.4. Don't you love it?
7438      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7439   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7440     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7441   10.[012]*)
7442     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7443   10.*)
7444     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7445      esac
7446    ;;
7447  esac
7448    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7449      _lt_dar_single_mod='$single_module'
7450    fi
7451    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7452      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7453    else
7454      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7455    fi
7456    if test "$DSYMUTIL" != ":"; then
7457      _lt_dsymutil="~$DSYMUTIL \$lib || :"
7458    else
7459      _lt_dsymutil=
7460    fi
7461    ;;
7462  esac
7463
7464
7465enable_dlopen=no
7466enable_win32_dll=no
7467
7468# Check whether --enable-libtool-lock was given.
7469if test "${enable_libtool_lock+set}" = set; then
7470  enableval=$enable_libtool_lock;
7471fi
7472
7473test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7474
7475
7476# Check whether --with-pic was given.
7477if test "${with_pic+set}" = set; then
7478  withval=$with_pic; pic_mode="$withval"
7479else
7480  pic_mode=default
7481fi
7482
7483test -z "$pic_mode" && pic_mode=default
7484
7485# Use C for the default configuration in the libtool script
7486tagname=
7487lt_save_CC="$CC"
7488ac_ext=c
7489ac_cpp='$CPP $CPPFLAGS'
7490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7492ac_compiler_gnu=$ac_cv_c_compiler_gnu
7493
7494
7495# Source file extension for C test sources.
7496ac_ext=c
7497
7498# Object file extension for compiled C test sources.
7499objext=o
7500objext=$objext
7501
7502# Code to be used in simple compile tests
7503lt_simple_compile_test_code="int some_variable = 0;"
7504
7505# Code to be used in simple link tests
7506lt_simple_link_test_code='int main(){return(0);}'
7507
7508
7509# If no C compiler was specified, use CC.
7510LTCC=${LTCC-"$CC"}
7511
7512# If no C compiler flags were specified, use CFLAGS.
7513LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7514
7515# Allow CC to be a program name with arguments.
7516compiler=$CC
7517
7518
7519# save warnings/boilerplate of simple test code
7520ac_outfile=conftest.$ac_objext
7521echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7522eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7523_lt_compiler_boilerplate=`cat conftest.err`
7524$rm conftest*
7525
7526ac_outfile=conftest.$ac_objext
7527echo "$lt_simple_link_test_code" >conftest.$ac_ext
7528eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7529_lt_linker_boilerplate=`cat conftest.err`
7530$rm -r conftest*
7531
7532
7533
7534lt_prog_compiler_no_builtin_flag=
7535
7536if test "$GCC" = yes; then
7537  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7538
7539
7540{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7541$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7542if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7543  $as_echo_n "(cached) " >&6
7544else
7545  lt_cv_prog_compiler_rtti_exceptions=no
7546  ac_outfile=conftest.$ac_objext
7547   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7548   lt_compiler_flag="-fno-rtti -fno-exceptions"
7549   # Insert the option either (1) after the last *FLAGS variable, or
7550   # (2) before a word containing "conftest.", or (3) at the end.
7551   # Note that $ac_compile itself does not contain backslashes and begins
7552   # with a dollar sign (not a hyphen), so the echo should work correctly.
7553   # The option is referenced via a variable to avoid confusing sed.
7554   lt_compile=`echo "$ac_compile" | $SED \
7555   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7556   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7557   -e 's:$: $lt_compiler_flag:'`
7558   (eval echo "\"\$as_me:7558: $lt_compile\"" >&5)
7559   (eval "$lt_compile" 2>conftest.err)
7560   ac_status=$?
7561   cat conftest.err >&5
7562   echo "$as_me:7562: \$? = $ac_status" >&5
7563   if (exit $ac_status) && test -s "$ac_outfile"; then
7564     # The compiler can only warn and ignore the option if not recognized
7565     # So say no if there are warnings other than the usual output.
7566     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7567     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7568     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7569       lt_cv_prog_compiler_rtti_exceptions=yes
7570     fi
7571   fi
7572   $rm conftest*
7573
7574fi
7575{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7576$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7577
7578if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7579    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7580else
7581    :
7582fi
7583
7584fi
7585
7586lt_prog_compiler_wl=
7587lt_prog_compiler_pic=
7588lt_prog_compiler_static=
7589
7590{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7591$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7592
7593  if test "$GCC" = yes; then
7594    lt_prog_compiler_wl='-Wl,'
7595    lt_prog_compiler_static='-static'
7596
7597    case $host_os in
7598      aix*)
7599      # All AIX code is PIC.
7600      if test "$host_cpu" = ia64; then
7601	# AIX 5 now supports IA64 processor
7602	lt_prog_compiler_static='-Bstatic'
7603      fi
7604      ;;
7605
7606    amigaos*)
7607      # FIXME: we need at least 68020 code to build shared libraries, but
7608      # adding the `-m68020' flag to GCC prevents building anything better,
7609      # like `-m68040'.
7610      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7611      ;;
7612
7613    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7614      # PIC is the default for these OSes.
7615      ;;
7616
7617    mingw* | cygwin* | pw32* | os2*)
7618      # This hack is so that the source file can tell whether it is being
7619      # built for inclusion in a dll (and should export symbols for example).
7620      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7621      # (--disable-auto-import) libraries
7622      lt_prog_compiler_pic='-DDLL_EXPORT'
7623      ;;
7624
7625    darwin* | rhapsody*)
7626      # PIC is the default on this platform
7627      # Common symbols not allowed in MH_DYLIB files
7628      lt_prog_compiler_pic='-fno-common'
7629      ;;
7630
7631    interix[3-9]*)
7632      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7633      # Instead, we relocate shared libraries at runtime.
7634      ;;
7635
7636    msdosdjgpp*)
7637      # Just because we use GCC doesn't mean we suddenly get shared libraries
7638      # on systems that don't support them.
7639      lt_prog_compiler_can_build_shared=no
7640      enable_shared=no
7641      ;;
7642
7643    sysv4*MP*)
7644      if test -d /usr/nec; then
7645	lt_prog_compiler_pic=-Kconform_pic
7646      fi
7647      ;;
7648
7649    hpux*)
7650      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7651      # not for PA HP-UX.
7652      case $host_cpu in
7653      hppa*64*|ia64*)
7654	# +Z the default
7655	;;
7656      *)
7657	lt_prog_compiler_pic='-fPIC'
7658	;;
7659      esac
7660      ;;
7661
7662    *)
7663      lt_prog_compiler_pic='-fPIC'
7664      ;;
7665    esac
7666  else
7667    # PORTME Check for flag to pass linker flags through the system compiler.
7668    case $host_os in
7669    aix*)
7670      lt_prog_compiler_wl='-Wl,'
7671      if test "$host_cpu" = ia64; then
7672	# AIX 5 now supports IA64 processor
7673	lt_prog_compiler_static='-Bstatic'
7674      else
7675	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7676      fi
7677      ;;
7678      darwin*)
7679        # PIC is the default on this platform
7680        # Common symbols not allowed in MH_DYLIB files
7681       case $cc_basename in
7682         xlc*)
7683         lt_prog_compiler_pic='-qnocommon'
7684         lt_prog_compiler_wl='-Wl,'
7685         ;;
7686       esac
7687       ;;
7688
7689    mingw* | cygwin* | pw32* | os2*)
7690      # This hack is so that the source file can tell whether it is being
7691      # built for inclusion in a dll (and should export symbols for example).
7692      lt_prog_compiler_pic='-DDLL_EXPORT'
7693      ;;
7694
7695    hpux9* | hpux10* | hpux11*)
7696      lt_prog_compiler_wl='-Wl,'
7697      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7698      # not for PA HP-UX.
7699      case $host_cpu in
7700      hppa*64*|ia64*)
7701	# +Z the default
7702	;;
7703      *)
7704	lt_prog_compiler_pic='+Z'
7705	;;
7706      esac
7707      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7708      lt_prog_compiler_static='${wl}-a ${wl}archive'
7709      ;;
7710
7711    irix5* | irix6* | nonstopux*)
7712      lt_prog_compiler_wl='-Wl,'
7713      # PIC (with -KPIC) is the default.
7714      lt_prog_compiler_static='-non_shared'
7715      ;;
7716
7717    newsos6)
7718      lt_prog_compiler_pic='-KPIC'
7719      lt_prog_compiler_static='-Bstatic'
7720      ;;
7721
7722    linux* | k*bsd*-gnu)
7723      case $cc_basename in
7724      icc* | ecc*)
7725	lt_prog_compiler_wl='-Wl,'
7726	lt_prog_compiler_pic='-KPIC'
7727	lt_prog_compiler_static='-static'
7728        ;;
7729      pgcc* | pgf77* | pgf90* | pgf95*)
7730        # Portland Group compilers (*not* the Pentium gcc compiler,
7731	# which looks to be a dead project)
7732	lt_prog_compiler_wl='-Wl,'
7733	lt_prog_compiler_pic='-fpic'
7734	lt_prog_compiler_static='-Bstatic'
7735        ;;
7736      ccc*)
7737        lt_prog_compiler_wl='-Wl,'
7738        # All Alpha code is PIC.
7739        lt_prog_compiler_static='-non_shared'
7740        ;;
7741      *)
7742        case `$CC -V 2>&1 | sed 5q` in
7743	*Sun\ C*)
7744	  # Sun C 5.9
7745	  lt_prog_compiler_pic='-KPIC'
7746	  lt_prog_compiler_static='-Bstatic'
7747	  lt_prog_compiler_wl='-Wl,'
7748	  ;;
7749	*Sun\ F*)
7750	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7751	  lt_prog_compiler_pic='-KPIC'
7752	  lt_prog_compiler_static='-Bstatic'
7753	  lt_prog_compiler_wl=''
7754	  ;;
7755	esac
7756	;;
7757      esac
7758      ;;
7759
7760    osf3* | osf4* | osf5*)
7761      lt_prog_compiler_wl='-Wl,'
7762      # All OSF/1 code is PIC.
7763      lt_prog_compiler_static='-non_shared'
7764      ;;
7765
7766    rdos*)
7767      lt_prog_compiler_static='-non_shared'
7768      ;;
7769
7770    solaris*)
7771      lt_prog_compiler_pic='-KPIC'
7772      lt_prog_compiler_static='-Bstatic'
7773      case $cc_basename in
7774      f77* | f90* | f95*)
7775	lt_prog_compiler_wl='-Qoption ld ';;
7776      *)
7777	lt_prog_compiler_wl='-Wl,';;
7778      esac
7779      ;;
7780
7781    sunos4*)
7782      lt_prog_compiler_wl='-Qoption ld '
7783      lt_prog_compiler_pic='-PIC'
7784      lt_prog_compiler_static='-Bstatic'
7785      ;;
7786
7787    sysv4 | sysv4.2uw2* | sysv4.3*)
7788      lt_prog_compiler_wl='-Wl,'
7789      lt_prog_compiler_pic='-KPIC'
7790      lt_prog_compiler_static='-Bstatic'
7791      ;;
7792
7793    sysv4*MP*)
7794      if test -d /usr/nec ;then
7795	lt_prog_compiler_pic='-Kconform_pic'
7796	lt_prog_compiler_static='-Bstatic'
7797      fi
7798      ;;
7799
7800    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7801      lt_prog_compiler_wl='-Wl,'
7802      lt_prog_compiler_pic='-KPIC'
7803      lt_prog_compiler_static='-Bstatic'
7804      ;;
7805
7806    unicos*)
7807      lt_prog_compiler_wl='-Wl,'
7808      lt_prog_compiler_can_build_shared=no
7809      ;;
7810
7811    uts4*)
7812      lt_prog_compiler_pic='-pic'
7813      lt_prog_compiler_static='-Bstatic'
7814      ;;
7815
7816    *)
7817      lt_prog_compiler_can_build_shared=no
7818      ;;
7819    esac
7820  fi
7821
7822{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7823$as_echo "$lt_prog_compiler_pic" >&6; }
7824
7825#
7826# Check to make sure the PIC flag actually works.
7827#
7828if test -n "$lt_prog_compiler_pic"; then
7829
7830{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7831$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7832if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7833  $as_echo_n "(cached) " >&6
7834else
7835  lt_cv_prog_compiler_pic_works=no
7836  ac_outfile=conftest.$ac_objext
7837   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7838   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7839   # Insert the option either (1) after the last *FLAGS variable, or
7840   # (2) before a word containing "conftest.", or (3) at the end.
7841   # Note that $ac_compile itself does not contain backslashes and begins
7842   # with a dollar sign (not a hyphen), so the echo should work correctly.
7843   # The option is referenced via a variable to avoid confusing sed.
7844   lt_compile=`echo "$ac_compile" | $SED \
7845   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847   -e 's:$: $lt_compiler_flag:'`
7848   (eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
7849   (eval "$lt_compile" 2>conftest.err)
7850   ac_status=$?
7851   cat conftest.err >&5
7852   echo "$as_me:7852: \$? = $ac_status" >&5
7853   if (exit $ac_status) && test -s "$ac_outfile"; then
7854     # The compiler can only warn and ignore the option if not recognized
7855     # So say no if there are warnings other than the usual output.
7856     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7857     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7858     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7859       lt_cv_prog_compiler_pic_works=yes
7860     fi
7861   fi
7862   $rm conftest*
7863
7864fi
7865{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7866$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7867
7868if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7869    case $lt_prog_compiler_pic in
7870     "" | " "*) ;;
7871     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7872     esac
7873else
7874    lt_prog_compiler_pic=
7875     lt_prog_compiler_can_build_shared=no
7876fi
7877
7878fi
7879case $host_os in
7880  # For platforms which do not support PIC, -DPIC is meaningless:
7881  *djgpp*)
7882    lt_prog_compiler_pic=
7883    ;;
7884  *)
7885    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7886    ;;
7887esac
7888
7889#
7890# Check to make sure the static flag actually works.
7891#
7892wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7893{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7894$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7895if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7896  $as_echo_n "(cached) " >&6
7897else
7898  lt_cv_prog_compiler_static_works=no
7899   save_LDFLAGS="$LDFLAGS"
7900   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7901   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7902   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7903     # The linker can only warn and ignore the option if not recognized
7904     # So say no if there are warnings
7905     if test -s conftest.err; then
7906       # Append any errors to the config.log.
7907       cat conftest.err 1>&5
7908       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7909       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7910       if diff conftest.exp conftest.er2 >/dev/null; then
7911         lt_cv_prog_compiler_static_works=yes
7912       fi
7913     else
7914       lt_cv_prog_compiler_static_works=yes
7915     fi
7916   fi
7917   $rm -r conftest*
7918   LDFLAGS="$save_LDFLAGS"
7919
7920fi
7921{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7922$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7923
7924if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7925    :
7926else
7927    lt_prog_compiler_static=
7928fi
7929
7930
7931{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7932$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7933if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7934  $as_echo_n "(cached) " >&6
7935else
7936  lt_cv_prog_compiler_c_o=no
7937   $rm -r conftest 2>/dev/null
7938   mkdir conftest
7939   cd conftest
7940   mkdir out
7941   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7942
7943   lt_compiler_flag="-o out/conftest2.$ac_objext"
7944   # Insert the option either (1) after the last *FLAGS variable, or
7945   # (2) before a word containing "conftest.", or (3) at the end.
7946   # Note that $ac_compile itself does not contain backslashes and begins
7947   # with a dollar sign (not a hyphen), so the echo should work correctly.
7948   lt_compile=`echo "$ac_compile" | $SED \
7949   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7950   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7951   -e 's:$: $lt_compiler_flag:'`
7952   (eval echo "\"\$as_me:7952: $lt_compile\"" >&5)
7953   (eval "$lt_compile" 2>out/conftest.err)
7954   ac_status=$?
7955   cat out/conftest.err >&5
7956   echo "$as_me:7956: \$? = $ac_status" >&5
7957   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7958   then
7959     # The compiler can only warn and ignore the option if not recognized
7960     # So say no if there are warnings
7961     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7962     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7963     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7964       lt_cv_prog_compiler_c_o=yes
7965     fi
7966   fi
7967   chmod u+w . 2>&5
7968   $rm conftest*
7969   # SGI C++ compiler will create directory out/ii_files/ for
7970   # template instantiation
7971   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7972   $rm out/* && rmdir out
7973   cd ..
7974   rmdir conftest
7975   $rm conftest*
7976
7977fi
7978{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7979$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7980
7981
7982hard_links="nottested"
7983if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7984  # do not overwrite the value of need_locks provided by the user
7985  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7986$as_echo_n "checking if we can lock with hard links... " >&6; }
7987  hard_links=yes
7988  $rm conftest*
7989  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7990  touch conftest.a
7991  ln conftest.a conftest.b 2>&5 || hard_links=no
7992  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7993  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
7994$as_echo "$hard_links" >&6; }
7995  if test "$hard_links" = no; then
7996    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7997$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7998    need_locks=warn
7999  fi
8000else
8001  need_locks=no
8002fi
8003
8004{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8005$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8006
8007  runpath_var=
8008  allow_undefined_flag=
8009  enable_shared_with_static_runtimes=no
8010  archive_cmds=
8011  archive_expsym_cmds=
8012  old_archive_From_new_cmds=
8013  old_archive_from_expsyms_cmds=
8014  export_dynamic_flag_spec=
8015  whole_archive_flag_spec=
8016  thread_safe_flag_spec=
8017  hardcode_libdir_flag_spec=
8018  hardcode_libdir_flag_spec_ld=
8019  hardcode_libdir_separator=
8020  hardcode_direct=no
8021  hardcode_minus_L=no
8022  hardcode_shlibpath_var=unsupported
8023  link_all_deplibs=unknown
8024  hardcode_automatic=no
8025  module_cmds=
8026  module_expsym_cmds=
8027  always_export_symbols=no
8028  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8029  # include_expsyms should be a list of space-separated symbols to be *always*
8030  # included in the symbol list
8031  include_expsyms=
8032  # exclude_expsyms can be an extended regexp of symbols to exclude
8033  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8034  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8035  # as well as any symbol that contains `d'.
8036  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8037  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8038  # platforms (ab)use it in PIC code, but their linkers get confused if
8039  # the symbol is explicitly referenced.  Since portable code cannot
8040  # rely on this symbol name, it's probably fine to never include it in
8041  # preloaded symbol tables.
8042  # Exclude shared library initialization/finalization symbols.
8043  extract_expsyms_cmds=
8044  # Just being paranoid about ensuring that cc_basename is set.
8045  for cc_temp in $compiler""; do
8046  case $cc_temp in
8047    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8048    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8049    \-*) ;;
8050    *) break;;
8051  esac
8052done
8053cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8054
8055  case $host_os in
8056  cygwin* | mingw* | pw32*)
8057    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8058    # When not using gcc, we currently assume that we are using
8059    # Microsoft Visual C++.
8060    if test "$GCC" != yes; then
8061      with_gnu_ld=no
8062    fi
8063    ;;
8064  interix*)
8065    # we just hope/assume this is gcc and not c89 (= MSVC++)
8066    with_gnu_ld=yes
8067    ;;
8068  openbsd*)
8069    with_gnu_ld=no
8070    ;;
8071  esac
8072
8073  ld_shlibs=yes
8074  if test "$with_gnu_ld" = yes; then
8075    # If archive_cmds runs LD, not CC, wlarc should be empty
8076    wlarc='${wl}'
8077
8078    # Set some defaults for GNU ld with shared library support. These
8079    # are reset later if shared libraries are not supported. Putting them
8080    # here allows them to be overridden if necessary.
8081    runpath_var=LD_RUN_PATH
8082    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8083    export_dynamic_flag_spec='${wl}--export-dynamic'
8084    # ancient GNU ld didn't support --whole-archive et. al.
8085    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8086	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8087      else
8088  	whole_archive_flag_spec=
8089    fi
8090    supports_anon_versioning=no
8091    case `$LD -v 2>/dev/null` in
8092      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8093      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8094      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8095      *\ 2.11.*) ;; # other 2.11 versions
8096      *) supports_anon_versioning=yes ;;
8097    esac
8098
8099    # See if GNU ld supports shared libraries.
8100    case $host_os in
8101    aix[3-9]*)
8102      # On AIX/PPC, the GNU linker is very broken
8103      if test "$host_cpu" != ia64; then
8104	ld_shlibs=no
8105	cat <<EOF 1>&2
8106
8107*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8108*** to be unable to reliably create shared libraries on AIX.
8109*** Therefore, libtool is disabling shared libraries support.  If you
8110*** really care for shared libraries, you may want to modify your PATH
8111*** so that a non-GNU linker is found, and then restart.
8112
8113EOF
8114      fi
8115      ;;
8116
8117    amigaos*)
8118      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)'
8119      hardcode_libdir_flag_spec='-L$libdir'
8120      hardcode_minus_L=yes
8121
8122      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8123      # that the semantics of dynamic libraries on AmigaOS, at least up
8124      # to version 4, is to share data among multiple programs linked
8125      # with the same dynamic library.  Since this doesn't match the
8126      # behavior of shared libraries on other platforms, we can't use
8127      # them.
8128      ld_shlibs=no
8129      ;;
8130
8131    beos*)
8132      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8133	allow_undefined_flag=unsupported
8134	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8135	# support --undefined.  This deserves some investigation.  FIXME
8136	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8137      else
8138	ld_shlibs=no
8139      fi
8140      ;;
8141
8142    cygwin* | mingw* | pw32*)
8143      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8144      # as there is no search path for DLLs.
8145      hardcode_libdir_flag_spec='-L$libdir'
8146      allow_undefined_flag=unsupported
8147      always_export_symbols=no
8148      enable_shared_with_static_runtimes=yes
8149      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8150
8151      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8152        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8153	# If the export-symbols file already is a .def file (1st line
8154	# is EXPORTS), use it as is; otherwise, prepend...
8155	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8156	  cp $export_symbols $output_objdir/$soname.def;
8157	else
8158	  echo EXPORTS > $output_objdir/$soname.def;
8159	  cat $export_symbols >> $output_objdir/$soname.def;
8160	fi~
8161	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8162      else
8163	ld_shlibs=no
8164      fi
8165      ;;
8166
8167    interix[3-9]*)
8168      hardcode_direct=no
8169      hardcode_shlibpath_var=no
8170      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8171      export_dynamic_flag_spec='${wl}-E'
8172      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8173      # Instead, shared libraries are loaded at an image base (0x10000000 by
8174      # default) and relocated if they conflict, which is a slow very memory
8175      # consuming and fragmenting process.  To avoid this, we pick a random,
8176      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8177      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8178      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8179      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'
8180      ;;
8181
8182    gnu* | linux* | k*bsd*-gnu)
8183      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8184	tmp_addflag=
8185	case $cc_basename,$host_cpu in
8186	pgcc*)				# Portland Group C compiler
8187	  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'
8188	  tmp_addflag=' $pic_flag'
8189	  ;;
8190	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8191	  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'
8192	  tmp_addflag=' $pic_flag -Mnomain' ;;
8193	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8194	  tmp_addflag=' -i_dynamic' ;;
8195	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8196	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8197	ifc* | ifort*)			# Intel Fortran compiler
8198	  tmp_addflag=' -nofor_main' ;;
8199	esac
8200	case `$CC -V 2>&1 | sed 5q` in
8201	*Sun\ C*)			# Sun C 5.9
8202	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8203	  tmp_sharedflag='-G' ;;
8204	*Sun\ F*)			# Sun Fortran 8.3
8205	  tmp_sharedflag='-G' ;;
8206	*)
8207	  tmp_sharedflag='-shared' ;;
8208	esac
8209	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8210
8211	if test $supports_anon_versioning = yes; then
8212	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8213  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8214  $echo "local: *; };" >> $output_objdir/$libname.ver~
8215	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8216	fi
8217      else
8218	ld_shlibs=no
8219      fi
8220      ;;
8221
8222    netbsd*)
8223      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8225	wlarc=
8226      else
8227	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8228	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8229      fi
8230      ;;
8231
8232    solaris*)
8233      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8234	ld_shlibs=no
8235	cat <<EOF 1>&2
8236
8237*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8238*** create shared libraries on Solaris systems.  Therefore, libtool
8239*** is disabling shared libraries support.  We urge you to upgrade GNU
8240*** binutils to release 2.9.1 or newer.  Another option is to modify
8241*** your PATH or compiler configuration so that the native linker is
8242*** used, and then restart.
8243
8244EOF
8245      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8248      else
8249	ld_shlibs=no
8250      fi
8251      ;;
8252
8253    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8254      case `$LD -v 2>&1` in
8255        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8256	ld_shlibs=no
8257	cat <<_LT_EOF 1>&2
8258
8259*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8260*** reliably create shared libraries on SCO systems.  Therefore, libtool
8261*** is disabling shared libraries support.  We urge you to upgrade GNU
8262*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8263*** your PATH or compiler configuration so that the native linker is
8264*** used, and then restart.
8265
8266_LT_EOF
8267	;;
8268	*)
8269	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8270	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8271	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8272	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8273	  else
8274	    ld_shlibs=no
8275	  fi
8276	;;
8277      esac
8278      ;;
8279
8280    sunos4*)
8281      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8282      wlarc=
8283      hardcode_direct=yes
8284      hardcode_shlibpath_var=no
8285      ;;
8286
8287    *)
8288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8289	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291      else
8292	ld_shlibs=no
8293      fi
8294      ;;
8295    esac
8296
8297    if test "$ld_shlibs" = no; then
8298      runpath_var=
8299      hardcode_libdir_flag_spec=
8300      export_dynamic_flag_spec=
8301      whole_archive_flag_spec=
8302    fi
8303  else
8304    # PORTME fill in a description of your system's linker (not GNU ld)
8305    case $host_os in
8306    aix3*)
8307      allow_undefined_flag=unsupported
8308      always_export_symbols=yes
8309      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'
8310      # Note: this linker hardcodes the directories in LIBPATH if there
8311      # are no directories specified by -L.
8312      hardcode_minus_L=yes
8313      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8314	# Neither direct hardcoding nor static linking is supported with a
8315	# broken collect2.
8316	hardcode_direct=unsupported
8317      fi
8318      ;;
8319
8320    aix[4-9]*)
8321      if test "$host_cpu" = ia64; then
8322	# On IA64, the linker does run time linking by default, so we don't
8323	# have to do anything special.
8324	aix_use_runtimelinking=no
8325	exp_sym_flag='-Bexport'
8326	no_entry_flag=""
8327      else
8328	# If we're using GNU nm, then we don't want the "-C" option.
8329	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8330	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8331	  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'
8332	else
8333	  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'
8334	fi
8335	aix_use_runtimelinking=no
8336
8337	# Test if we are trying to use run time linking or normal
8338	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8339	# need to do runtime linking.
8340	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8341	  for ld_flag in $LDFLAGS; do
8342  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8343  	    aix_use_runtimelinking=yes
8344  	    break
8345  	  fi
8346	  done
8347	  ;;
8348	esac
8349
8350	exp_sym_flag='-bexport'
8351	no_entry_flag='-bnoentry'
8352      fi
8353
8354      # When large executables or shared objects are built, AIX ld can
8355      # have problems creating the table of contents.  If linking a library
8356      # or program results in "error TOC overflow" add -mminimal-toc to
8357      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8358      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8359
8360      archive_cmds=''
8361      hardcode_direct=yes
8362      hardcode_libdir_separator=':'
8363      link_all_deplibs=yes
8364
8365      if test "$GCC" = yes; then
8366	case $host_os in aix4.[012]|aix4.[012].*)
8367	# We only want to do this on AIX 4.2 and lower, the check
8368	# below for broken collect2 doesn't work under 4.3+
8369	  collect2name=`${CC} -print-prog-name=collect2`
8370	  if test -f "$collect2name" && \
8371  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8372	  then
8373  	  # We have reworked collect2
8374  	  :
8375	  else
8376  	  # We have old collect2
8377  	  hardcode_direct=unsupported
8378  	  # It fails to find uninstalled libraries when the uninstalled
8379  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8380  	  # to unsupported forces relinking
8381  	  hardcode_minus_L=yes
8382  	  hardcode_libdir_flag_spec='-L$libdir'
8383  	  hardcode_libdir_separator=
8384	  fi
8385	  ;;
8386	esac
8387	shared_flag='-shared'
8388	if test "$aix_use_runtimelinking" = yes; then
8389	  shared_flag="$shared_flag "'${wl}-G'
8390	fi
8391      else
8392	# not using gcc
8393	if test "$host_cpu" = ia64; then
8394  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8395  	# chokes on -Wl,-G. The following line is correct:
8396	  shared_flag='-G'
8397	else
8398	  if test "$aix_use_runtimelinking" = yes; then
8399	    shared_flag='${wl}-G'
8400	  else
8401	    shared_flag='${wl}-bM:SRE'
8402	  fi
8403	fi
8404      fi
8405
8406      # It seems that -bexpall does not export symbols beginning with
8407      # underscore (_), so it is better to generate a list of symbols to export.
8408      always_export_symbols=yes
8409      if test "$aix_use_runtimelinking" = yes; then
8410	# Warning - without using the other runtime loading flags (-brtl),
8411	# -berok will link without error, but may produce a broken library.
8412	allow_undefined_flag='-berok'
8413       # Determine the default libpath from the value encoded in an empty executable.
8414       cat >conftest.$ac_ext <<_ACEOF
8415/* confdefs.h.  */
8416_ACEOF
8417cat confdefs.h >>conftest.$ac_ext
8418cat >>conftest.$ac_ext <<_ACEOF
8419/* end confdefs.h.  */
8420
8421int
8422main ()
8423{
8424
8425  ;
8426  return 0;
8427}
8428_ACEOF
8429rm -f conftest.$ac_objext conftest$ac_exeext
8430if { (ac_try="$ac_link"
8431case "(($ac_try" in
8432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433  *) ac_try_echo=$ac_try;;
8434esac
8435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8436$as_echo "$ac_try_echo") >&5
8437  (eval "$ac_link") 2>conftest.er1
8438  ac_status=$?
8439  grep -v '^ *+' conftest.er1 >conftest.err
8440  rm -f conftest.er1
8441  cat conftest.err >&5
8442  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443  (exit $ac_status); } && {
8444	 test -z "$ac_c_werror_flag" ||
8445	 test ! -s conftest.err
8446       } && test -s conftest$ac_exeext && {
8447	 test "$cross_compiling" = yes ||
8448	 $as_test_x conftest$ac_exeext
8449       }; then
8450
8451lt_aix_libpath_sed='
8452    /Import File Strings/,/^$/ {
8453	/^0/ {
8454	    s/^0  *\(.*\)$/\1/
8455	    p
8456	}
8457    }'
8458aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8459# Check for a 64-bit object if we didn't find anything.
8460if test -z "$aix_libpath"; then
8461  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8462fi
8463else
8464  $as_echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467
8468fi
8469
8470rm -rf conftest.dSYM
8471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8472      conftest$ac_exeext conftest.$ac_ext
8473if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8474
8475       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8476	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"
8477       else
8478	if test "$host_cpu" = ia64; then
8479	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8480	  allow_undefined_flag="-z nodefs"
8481	  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"
8482	else
8483	 # Determine the default libpath from the value encoded in an empty executable.
8484	 cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h.  */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h.  */
8490
8491int
8492main ()
8493{
8494
8495  ;
8496  return 0;
8497}
8498_ACEOF
8499rm -f conftest.$ac_objext conftest$ac_exeext
8500if { (ac_try="$ac_link"
8501case "(($ac_try" in
8502  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503  *) ac_try_echo=$ac_try;;
8504esac
8505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506$as_echo "$ac_try_echo") >&5
8507  (eval "$ac_link") 2>conftest.er1
8508  ac_status=$?
8509  grep -v '^ *+' conftest.er1 >conftest.err
8510  rm -f conftest.er1
8511  cat conftest.err >&5
8512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513  (exit $ac_status); } && {
8514	 test -z "$ac_c_werror_flag" ||
8515	 test ! -s conftest.err
8516       } && test -s conftest$ac_exeext && {
8517	 test "$cross_compiling" = yes ||
8518	 $as_test_x conftest$ac_exeext
8519       }; then
8520
8521lt_aix_libpath_sed='
8522    /Import File Strings/,/^$/ {
8523	/^0/ {
8524	    s/^0  *\(.*\)$/\1/
8525	    p
8526	}
8527    }'
8528aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8529# Check for a 64-bit object if we didn't find anything.
8530if test -z "$aix_libpath"; then
8531  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8532fi
8533else
8534  $as_echo "$as_me: failed program was:" >&5
8535sed 's/^/| /' conftest.$ac_ext >&5
8536
8537
8538fi
8539
8540rm -rf conftest.dSYM
8541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8542      conftest$ac_exeext conftest.$ac_ext
8543if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8544
8545	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8546	  # Warning - without using the other run time loading flags,
8547	  # -berok will link without error, but may produce a broken library.
8548	  no_undefined_flag=' ${wl}-bernotok'
8549	  allow_undefined_flag=' ${wl}-berok'
8550	  # Exported symbols can be pulled into shared objects from archives
8551	  whole_archive_flag_spec='$convenience'
8552	  archive_cmds_need_lc=yes
8553	  # This is similar to how AIX traditionally builds its shared libraries.
8554	  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'
8555	fi
8556      fi
8557      ;;
8558
8559    amigaos*)
8560      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)'
8561      hardcode_libdir_flag_spec='-L$libdir'
8562      hardcode_minus_L=yes
8563      # see comment about different semantics on the GNU ld section
8564      ld_shlibs=no
8565      ;;
8566
8567    bsdi[45]*)
8568      export_dynamic_flag_spec=-rdynamic
8569      ;;
8570
8571    cygwin* | mingw* | pw32*)
8572      # When not using gcc, we currently assume that we are using
8573      # Microsoft Visual C++.
8574      # hardcode_libdir_flag_spec is actually meaningless, as there is
8575      # no search path for DLLs.
8576      hardcode_libdir_flag_spec=' '
8577      allow_undefined_flag=unsupported
8578      # Tell ltmain to make .lib files, not .a files.
8579      libext=lib
8580      # Tell ltmain to make .dll files, not .so files.
8581      shrext_cmds=".dll"
8582      # FIXME: Setting linknames here is a bad hack.
8583      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8584      # The linker will automatically build a .lib file if we build a DLL.
8585      old_archive_From_new_cmds='true'
8586      # FIXME: Should let the user specify the lib program.
8587      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8588      fix_srcfile_path='`cygpath -w "$srcfile"`'
8589      enable_shared_with_static_runtimes=yes
8590      ;;
8591
8592    darwin* | rhapsody*)
8593      case $host_os in
8594        rhapsody* | darwin1.[012])
8595         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8596         ;;
8597       *) # Darwin 1.3 on
8598         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8599           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8600         else
8601           case ${MACOSX_DEPLOYMENT_TARGET} in
8602             10.[012])
8603               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8604               ;;
8605             10.*)
8606               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8607               ;;
8608           esac
8609         fi
8610         ;;
8611      esac
8612      archive_cmds_need_lc=no
8613      hardcode_direct=no
8614      hardcode_automatic=yes
8615      hardcode_shlibpath_var=unsupported
8616      whole_archive_flag_spec=''
8617      link_all_deplibs=yes
8618    if test "$GCC" = yes ; then
8619    	output_verbose_link_cmd='echo'
8620        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8621        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8622        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8623        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8624    else
8625      case $cc_basename in
8626        xlc*)
8627         output_verbose_link_cmd='echo'
8628         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8629         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8630          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8631         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8632          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}'
8633          ;;
8634       *)
8635         ld_shlibs=no
8636          ;;
8637      esac
8638    fi
8639      ;;
8640
8641    dgux*)
8642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8643      hardcode_libdir_flag_spec='-L$libdir'
8644      hardcode_shlibpath_var=no
8645      ;;
8646
8647    freebsd1*)
8648      ld_shlibs=no
8649      ;;
8650
8651    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8652    # support.  Future versions do this automatically, but an explicit c++rt0.o
8653    # does not break anything, and helps significantly (at the cost of a little
8654    # extra space).
8655    freebsd2.2*)
8656      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8657      hardcode_libdir_flag_spec='-R$libdir'
8658      hardcode_direct=yes
8659      hardcode_shlibpath_var=no
8660      ;;
8661
8662    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8663    freebsd2*)
8664      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8665      hardcode_direct=yes
8666      hardcode_minus_L=yes
8667      hardcode_shlibpath_var=no
8668      ;;
8669
8670    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8671    freebsd* | dragonfly*)
8672      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8673      hardcode_libdir_flag_spec='-R$libdir'
8674      hardcode_direct=yes
8675      hardcode_shlibpath_var=no
8676      ;;
8677
8678    hpux9*)
8679      if test "$GCC" = yes; then
8680	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'
8681      else
8682	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'
8683      fi
8684      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8685      hardcode_libdir_separator=:
8686      hardcode_direct=yes
8687
8688      # hardcode_minus_L: Not really in the search PATH,
8689      # but as the default location of the library.
8690      hardcode_minus_L=yes
8691      export_dynamic_flag_spec='${wl}-E'
8692      ;;
8693
8694    hpux10*)
8695      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8696	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8697      else
8698	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8699      fi
8700      if test "$with_gnu_ld" = no; then
8701	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8702	hardcode_libdir_separator=:
8703
8704	hardcode_direct=yes
8705	export_dynamic_flag_spec='${wl}-E'
8706
8707	# hardcode_minus_L: Not really in the search PATH,
8708	# but as the default location of the library.
8709	hardcode_minus_L=yes
8710      fi
8711      ;;
8712
8713    hpux11*)
8714      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8715	case $host_cpu in
8716	hppa*64*)
8717	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8718	  ;;
8719	ia64*)
8720	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8721	  ;;
8722	*)
8723	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8724	  ;;
8725	esac
8726      else
8727	case $host_cpu in
8728	hppa*64*)
8729	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8730	  ;;
8731	ia64*)
8732	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8733	  ;;
8734	*)
8735	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8736	  ;;
8737	esac
8738      fi
8739      if test "$with_gnu_ld" = no; then
8740	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8741	hardcode_libdir_separator=:
8742
8743	case $host_cpu in
8744	hppa*64*|ia64*)
8745	  hardcode_libdir_flag_spec_ld='+b $libdir'
8746	  hardcode_direct=no
8747	  hardcode_shlibpath_var=no
8748	  ;;
8749	*)
8750	  hardcode_direct=yes
8751	  export_dynamic_flag_spec='${wl}-E'
8752
8753	  # hardcode_minus_L: Not really in the search PATH,
8754	  # but as the default location of the library.
8755	  hardcode_minus_L=yes
8756	  ;;
8757	esac
8758      fi
8759      ;;
8760
8761    irix5* | irix6* | nonstopux*)
8762      if test "$GCC" = yes; then
8763	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'
8764      else
8765	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'
8766	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8767      fi
8768      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8769      hardcode_libdir_separator=:
8770      link_all_deplibs=yes
8771      ;;
8772
8773    netbsd*)
8774      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8775	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8776      else
8777	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8778      fi
8779      hardcode_libdir_flag_spec='-R$libdir'
8780      hardcode_direct=yes
8781      hardcode_shlibpath_var=no
8782      ;;
8783
8784    newsos6)
8785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8786      hardcode_direct=yes
8787      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8788      hardcode_libdir_separator=:
8789      hardcode_shlibpath_var=no
8790      ;;
8791
8792    openbsd*)
8793      if test -f /usr/libexec/ld.so; then
8794	hardcode_direct=yes
8795	hardcode_shlibpath_var=no
8796	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8797	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8798	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8799	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8800	  export_dynamic_flag_spec='${wl}-E'
8801	else
8802	  case $host_os in
8803	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8804	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8805	     hardcode_libdir_flag_spec='-R$libdir'
8806	     ;;
8807	   *)
8808	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8809	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8810	     ;;
8811	  esac
8812        fi
8813      else
8814	ld_shlibs=no
8815      fi
8816      ;;
8817
8818    os2*)
8819      hardcode_libdir_flag_spec='-L$libdir'
8820      hardcode_minus_L=yes
8821      allow_undefined_flag=unsupported
8822      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'
8823      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8824      ;;
8825
8826    osf3*)
8827      if test "$GCC" = yes; then
8828	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8829	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'
8830      else
8831	allow_undefined_flag=' -expect_unresolved \*'
8832	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'
8833      fi
8834      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8835      hardcode_libdir_separator=:
8836      ;;
8837
8838    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8839      if test "$GCC" = yes; then
8840	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8841	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'
8842	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8843      else
8844	allow_undefined_flag=' -expect_unresolved \*'
8845	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'
8846	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8847	$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'
8848
8849	# Both c and cxx compiler support -rpath directly
8850	hardcode_libdir_flag_spec='-rpath $libdir'
8851      fi
8852      hardcode_libdir_separator=:
8853      ;;
8854
8855    solaris*)
8856      no_undefined_flag=' -z text'
8857      if test "$GCC" = yes; then
8858	wlarc='${wl}'
8859	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8862      else
8863	wlarc=''
8864	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8867      fi
8868      hardcode_libdir_flag_spec='-R$libdir'
8869      hardcode_shlibpath_var=no
8870      case $host_os in
8871      solaris2.[0-5] | solaris2.[0-5].*) ;;
8872      *)
8873	# The compiler driver will combine and reorder linker options,
8874	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8875	# but is careful enough not to reorder.
8876 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8877	if test "$GCC" = yes; then
8878	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8879	else
8880	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8881	fi
8882	;;
8883      esac
8884      link_all_deplibs=yes
8885      ;;
8886
8887    sunos4*)
8888      if test "x$host_vendor" = xsequent; then
8889	# Use $CC to link under sequent, because it throws in some extra .o
8890	# files that make .init and .fini sections work.
8891	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8892      else
8893	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8894      fi
8895      hardcode_libdir_flag_spec='-L$libdir'
8896      hardcode_direct=yes
8897      hardcode_minus_L=yes
8898      hardcode_shlibpath_var=no
8899      ;;
8900
8901    sysv4)
8902      case $host_vendor in
8903	sni)
8904	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905	  hardcode_direct=yes # is this really true???
8906	;;
8907	siemens)
8908	  ## LD is ld it makes a PLAMLIB
8909	  ## CC just makes a GrossModule.
8910	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8911	  reload_cmds='$CC -r -o $output$reload_objs'
8912	  hardcode_direct=no
8913        ;;
8914	motorola)
8915	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8916	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8917	;;
8918      esac
8919      runpath_var='LD_RUN_PATH'
8920      hardcode_shlibpath_var=no
8921      ;;
8922
8923    sysv4.3*)
8924      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8925      hardcode_shlibpath_var=no
8926      export_dynamic_flag_spec='-Bexport'
8927      ;;
8928
8929    sysv4*MP*)
8930      if test -d /usr/nec; then
8931	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8932	hardcode_shlibpath_var=no
8933	runpath_var=LD_RUN_PATH
8934	hardcode_runpath_var=yes
8935	ld_shlibs=yes
8936      fi
8937      ;;
8938
8939    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8940      no_undefined_flag='${wl}-z,text'
8941      archive_cmds_need_lc=no
8942      hardcode_shlibpath_var=no
8943      runpath_var='LD_RUN_PATH'
8944
8945      if test "$GCC" = yes; then
8946	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8947	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8948      else
8949	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8950	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8951      fi
8952      ;;
8953
8954    sysv5* | sco3.2v5* | sco5v6*)
8955      # Note: We can NOT use -z defs as we might desire, because we do not
8956      # link with -lc, and that would cause any symbols used from libc to
8957      # always be unresolved, which means just about no library would
8958      # ever link correctly.  If we're not using GNU ld we use -z text
8959      # though, which does catch some bad symbols but isn't as heavy-handed
8960      # as -z defs.
8961      no_undefined_flag='${wl}-z,text'
8962      allow_undefined_flag='${wl}-z,nodefs'
8963      archive_cmds_need_lc=no
8964      hardcode_shlibpath_var=no
8965      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8966      hardcode_libdir_separator=':'
8967      link_all_deplibs=yes
8968      export_dynamic_flag_spec='${wl}-Bexport'
8969      runpath_var='LD_RUN_PATH'
8970
8971      if test "$GCC" = yes; then
8972	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8973	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8974      else
8975	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8976	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977      fi
8978      ;;
8979
8980    uts4*)
8981      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982      hardcode_libdir_flag_spec='-L$libdir'
8983      hardcode_shlibpath_var=no
8984      ;;
8985
8986    *)
8987      ld_shlibs=no
8988      ;;
8989    esac
8990  fi
8991
8992{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8993$as_echo "$ld_shlibs" >&6; }
8994test "$ld_shlibs" = no && can_build_shared=no
8995
8996#
8997# Do we need to explicitly link libc?
8998#
8999case "x$archive_cmds_need_lc" in
9000x|xyes)
9001  # Assume -lc should be added
9002  archive_cmds_need_lc=yes
9003
9004  if test "$enable_shared" = yes && test "$GCC" = yes; then
9005    case $archive_cmds in
9006    *'~'*)
9007      # FIXME: we may have to deal with multi-command sequences.
9008      ;;
9009    '$CC '*)
9010      # Test whether the compiler implicitly links with -lc since on some
9011      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9012      # to ld, don't add -lc before -lgcc.
9013      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9014$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9015      $rm conftest*
9016      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9017
9018      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9019  (eval $ac_compile) 2>&5
9020  ac_status=$?
9021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022  (exit $ac_status); } 2>conftest.err; then
9023        soname=conftest
9024        lib=conftest
9025        libobjs=conftest.$ac_objext
9026        deplibs=
9027        wl=$lt_prog_compiler_wl
9028	pic_flag=$lt_prog_compiler_pic
9029        compiler_flags=-v
9030        linker_flags=-v
9031        verstring=
9032        output_objdir=.
9033        libname=conftest
9034        lt_save_allow_undefined_flag=$allow_undefined_flag
9035        allow_undefined_flag=
9036        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9037  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9038  ac_status=$?
9039  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); }
9041        then
9042	  archive_cmds_need_lc=no
9043        else
9044	  archive_cmds_need_lc=yes
9045        fi
9046        allow_undefined_flag=$lt_save_allow_undefined_flag
9047      else
9048        cat conftest.err 1>&5
9049      fi
9050      $rm conftest*
9051      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9052$as_echo "$archive_cmds_need_lc" >&6; }
9053      ;;
9054    esac
9055  fi
9056  ;;
9057esac
9058
9059{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9060$as_echo_n "checking dynamic linker characteristics... " >&6; }
9061library_names_spec=
9062libname_spec='lib$name'
9063soname_spec=
9064shrext_cmds=".so"
9065postinstall_cmds=
9066postuninstall_cmds=
9067finish_cmds=
9068finish_eval=
9069shlibpath_var=
9070shlibpath_overrides_runpath=unknown
9071version_type=none
9072dynamic_linker="$host_os ld.so"
9073sys_lib_dlsearch_path_spec="/lib /usr/lib"
9074
9075if test "$GCC" = yes; then
9076  case $host_os in
9077    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9078    *) lt_awk_arg="/^libraries:/" ;;
9079  esac
9080  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9081  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9082    # if the path contains ";" then we assume it to be the separator
9083    # otherwise default to the standard path separator (i.e. ":") - it is
9084    # assumed that no part of a normal pathname contains ";" but that should
9085    # okay in the real world where ";" in dirpaths is itself problematic.
9086    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9087  else
9088    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9089  fi
9090  # Ok, now we have the path, separated by spaces, we can step through it
9091  # and add multilib dir if necessary.
9092  lt_tmp_lt_search_path_spec=
9093  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9094  for lt_sys_path in $lt_search_path_spec; do
9095    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9096      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9097    else
9098      test -d "$lt_sys_path" && \
9099	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9100    fi
9101  done
9102  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9103BEGIN {RS=" "; FS="/|\n";} {
9104  lt_foo="";
9105  lt_count=0;
9106  for (lt_i = NF; lt_i > 0; lt_i--) {
9107    if ($lt_i != "" && $lt_i != ".") {
9108      if ($lt_i == "..") {
9109        lt_count++;
9110      } else {
9111        if (lt_count == 0) {
9112          lt_foo="/" $lt_i lt_foo;
9113        } else {
9114          lt_count--;
9115        }
9116      }
9117    }
9118  }
9119  if (lt_foo != "") { lt_freq[lt_foo]++; }
9120  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9121}'`
9122  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9123else
9124  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9125fi
9126need_lib_prefix=unknown
9127hardcode_into_libs=no
9128
9129# when you set need_version to no, make sure it does not cause -set_version
9130# flags to be left without arguments
9131need_version=unknown
9132
9133case $host_os in
9134aix3*)
9135  version_type=linux
9136  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9137  shlibpath_var=LIBPATH
9138
9139  # AIX 3 has no versioning support, so we append a major version to the name.
9140  soname_spec='${libname}${release}${shared_ext}$major'
9141  ;;
9142
9143aix[4-9]*)
9144  version_type=linux
9145  need_lib_prefix=no
9146  need_version=no
9147  hardcode_into_libs=yes
9148  if test "$host_cpu" = ia64; then
9149    # AIX 5 supports IA64
9150    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9151    shlibpath_var=LD_LIBRARY_PATH
9152  else
9153    # With GCC up to 2.95.x, collect2 would create an import file
9154    # for dependence libraries.  The import file would start with
9155    # the line `#! .'.  This would cause the generated library to
9156    # depend on `.', always an invalid library.  This was fixed in
9157    # development snapshots of GCC prior to 3.0.
9158    case $host_os in
9159      aix4 | aix4.[01] | aix4.[01].*)
9160      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9161	   echo ' yes '
9162	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9163	:
9164      else
9165	can_build_shared=no
9166      fi
9167      ;;
9168    esac
9169    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9170    # soname into executable. Probably we can add versioning support to
9171    # collect2, so additional links can be useful in future.
9172    if test "$aix_use_runtimelinking" = yes; then
9173      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9174      # instead of lib<name>.a to let people know that these are not
9175      # typical AIX shared libraries.
9176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9177    else
9178      # We preserve .a as extension for shared libraries through AIX4.2
9179      # and later when we are not doing run time linking.
9180      library_names_spec='${libname}${release}.a $libname.a'
9181      soname_spec='${libname}${release}${shared_ext}$major'
9182    fi
9183    shlibpath_var=LIBPATH
9184  fi
9185  ;;
9186
9187amigaos*)
9188  library_names_spec='$libname.ixlibrary $libname.a'
9189  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9190  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'
9191  ;;
9192
9193beos*)
9194  library_names_spec='${libname}${shared_ext}'
9195  dynamic_linker="$host_os ld.so"
9196  shlibpath_var=LIBRARY_PATH
9197  ;;
9198
9199bsdi[45]*)
9200  version_type=linux
9201  need_version=no
9202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203  soname_spec='${libname}${release}${shared_ext}$major'
9204  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9205  shlibpath_var=LD_LIBRARY_PATH
9206  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9207  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9208  # the default ld.so.conf also contains /usr/contrib/lib and
9209  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9210  # libtool to hard-code these into programs
9211  ;;
9212
9213cygwin* | mingw* | pw32*)
9214  version_type=windows
9215  shrext_cmds=".dll"
9216  need_version=no
9217  need_lib_prefix=no
9218
9219  case $GCC,$host_os in
9220  yes,cygwin* | yes,mingw* | yes,pw32*)
9221    library_names_spec='$libname.dll.a'
9222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9223    postinstall_cmds='base_file=`basename \${file}`~
9224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9225      dldir=$destdir/`dirname \$dlpath`~
9226      test -d \$dldir || mkdir -p \$dldir~
9227      $install_prog $dir/$dlname \$dldir/$dlname~
9228      chmod a+x \$dldir/$dlname'
9229    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9230      dlpath=$dir/\$dldll~
9231       $rm \$dlpath'
9232    shlibpath_overrides_runpath=yes
9233
9234    case $host_os in
9235    cygwin*)
9236      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9237      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9239      ;;
9240    mingw*)
9241      # MinGW DLLs use traditional 'lib' prefix
9242      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9243      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9244      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9245        # It is most probably a Windows format PATH printed by
9246        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9247        # path with ; separators, and with drive letters. We can handle the
9248        # drive letters (cygwin fileutils understands them), so leave them,
9249        # especially as we might pass files found there to a mingw objdump,
9250        # which wouldn't understand a cygwinified path. Ahh.
9251        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9252      else
9253        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9254      fi
9255      ;;
9256    pw32*)
9257      # pw32 DLLs use 'pw' prefix rather than 'lib'
9258      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9259      ;;
9260    esac
9261    ;;
9262
9263  *)
9264    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9265    ;;
9266  esac
9267  dynamic_linker='Win32 ld.exe'
9268  # FIXME: first we should search . and the directory the executable is in
9269  shlibpath_var=PATH
9270  ;;
9271
9272darwin* | rhapsody*)
9273  dynamic_linker="$host_os dyld"
9274  version_type=darwin
9275  need_lib_prefix=no
9276  need_version=no
9277  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9278  soname_spec='${libname}${release}${major}$shared_ext'
9279  shlibpath_overrides_runpath=yes
9280  shlibpath_var=DYLD_LIBRARY_PATH
9281  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9282
9283  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9284  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9285  ;;
9286
9287dgux*)
9288  version_type=linux
9289  need_lib_prefix=no
9290  need_version=no
9291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9292  soname_spec='${libname}${release}${shared_ext}$major'
9293  shlibpath_var=LD_LIBRARY_PATH
9294  ;;
9295
9296freebsd1*)
9297  dynamic_linker=no
9298  ;;
9299
9300freebsd* | dragonfly*)
9301  # DragonFly does not have aout.  When/if they implement a new
9302  # versioning mechanism, adjust this.
9303  if test -x /usr/bin/objformat; then
9304    objformat=`/usr/bin/objformat`
9305  else
9306    case $host_os in
9307    freebsd[123]*) objformat=aout ;;
9308    *) objformat=elf ;;
9309    esac
9310  fi
9311  version_type=freebsd-$objformat
9312  case $version_type in
9313    freebsd-elf*)
9314      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9315      need_version=no
9316      need_lib_prefix=no
9317      ;;
9318    freebsd-*)
9319      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9320      need_version=yes
9321      ;;
9322  esac
9323  shlibpath_var=LD_LIBRARY_PATH
9324  case $host_os in
9325  freebsd2*)
9326    shlibpath_overrides_runpath=yes
9327    ;;
9328  freebsd3.[01]* | freebsdelf3.[01]*)
9329    shlibpath_overrides_runpath=yes
9330    hardcode_into_libs=yes
9331    ;;
9332  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9333  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9334    shlibpath_overrides_runpath=no
9335    hardcode_into_libs=yes
9336    ;;
9337  *) # from 4.6 on, and DragonFly
9338    shlibpath_overrides_runpath=yes
9339    hardcode_into_libs=yes
9340    ;;
9341  esac
9342  ;;
9343
9344gnu*)
9345  version_type=linux
9346  need_lib_prefix=no
9347  need_version=no
9348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9349  soname_spec='${libname}${release}${shared_ext}$major'
9350  shlibpath_var=LD_LIBRARY_PATH
9351  hardcode_into_libs=yes
9352  ;;
9353
9354hpux9* | hpux10* | hpux11*)
9355  # Give a soname corresponding to the major version so that dld.sl refuses to
9356  # link against other versions.
9357  version_type=sunos
9358  need_lib_prefix=no
9359  need_version=no
9360  case $host_cpu in
9361  ia64*)
9362    shrext_cmds='.so'
9363    hardcode_into_libs=yes
9364    dynamic_linker="$host_os dld.so"
9365    shlibpath_var=LD_LIBRARY_PATH
9366    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9367    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368    soname_spec='${libname}${release}${shared_ext}$major'
9369    if test "X$HPUX_IA64_MODE" = X32; then
9370      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9371    else
9372      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9373    fi
9374    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9375    ;;
9376   hppa*64*)
9377     shrext_cmds='.sl'
9378     hardcode_into_libs=yes
9379     dynamic_linker="$host_os dld.sl"
9380     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9381     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9383     soname_spec='${libname}${release}${shared_ext}$major'
9384     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9385     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9386     ;;
9387   *)
9388    shrext_cmds='.sl'
9389    dynamic_linker="$host_os dld.sl"
9390    shlibpath_var=SHLIB_PATH
9391    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9392    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9393    soname_spec='${libname}${release}${shared_ext}$major'
9394    ;;
9395  esac
9396  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9397  postinstall_cmds='chmod 555 $lib'
9398  ;;
9399
9400interix[3-9]*)
9401  version_type=linux
9402  need_lib_prefix=no
9403  need_version=no
9404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9405  soname_spec='${libname}${release}${shared_ext}$major'
9406  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9407  shlibpath_var=LD_LIBRARY_PATH
9408  shlibpath_overrides_runpath=no
9409  hardcode_into_libs=yes
9410  ;;
9411
9412irix5* | irix6* | nonstopux*)
9413  case $host_os in
9414    nonstopux*) version_type=nonstopux ;;
9415    *)
9416	if test "$lt_cv_prog_gnu_ld" = yes; then
9417		version_type=linux
9418	else
9419		version_type=irix
9420	fi ;;
9421  esac
9422  need_lib_prefix=no
9423  need_version=no
9424  soname_spec='${libname}${release}${shared_ext}$major'
9425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9426  case $host_os in
9427  irix5* | nonstopux*)
9428    libsuff= shlibsuff=
9429    ;;
9430  *)
9431    case $LD in # libtool.m4 will add one of these switches to LD
9432    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9433      libsuff= shlibsuff= libmagic=32-bit;;
9434    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9435      libsuff=32 shlibsuff=N32 libmagic=N32;;
9436    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9437      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9438    *) libsuff= shlibsuff= libmagic=never-match;;
9439    esac
9440    ;;
9441  esac
9442  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9443  shlibpath_overrides_runpath=no
9444  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9445  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9446  hardcode_into_libs=yes
9447  ;;
9448
9449# No shared lib support for Linux oldld, aout, or coff.
9450linux*oldld* | linux*aout* | linux*coff*)
9451  dynamic_linker=no
9452  ;;
9453
9454# This must be Linux ELF.
9455linux* | k*bsd*-gnu)
9456  version_type=linux
9457  need_lib_prefix=no
9458  need_version=no
9459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9460  soname_spec='${libname}${release}${shared_ext}$major'
9461  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9462  shlibpath_var=LD_LIBRARY_PATH
9463  shlibpath_overrides_runpath=no
9464  # This implies no fast_install, which is unacceptable.
9465  # Some rework will be needed to allow for fast_install
9466  # before this can be enabled.
9467  hardcode_into_libs=yes
9468
9469  # Append ld.so.conf contents to the search path
9470  if test -f /etc/ld.so.conf; then
9471    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9472    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9473  fi
9474
9475  # We used to test for /lib/ld.so.1 and disable shared libraries on
9476  # powerpc, because MkLinux only supported shared libraries with the
9477  # GNU dynamic linker.  Since this was broken with cross compilers,
9478  # most powerpc-linux boxes support dynamic linking these days and
9479  # people can always --disable-shared, the test was removed, and we
9480  # assume the GNU/Linux dynamic linker is in use.
9481  dynamic_linker='GNU/Linux ld.so'
9482  ;;
9483
9484netbsd*)
9485  version_type=sunos
9486  need_lib_prefix=no
9487  need_version=no
9488  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9489    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9490    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9491    dynamic_linker='NetBSD (a.out) ld.so'
9492  else
9493    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9494    soname_spec='${libname}${release}${shared_ext}$major'
9495    dynamic_linker='NetBSD ld.elf_so'
9496  fi
9497  shlibpath_var=LD_LIBRARY_PATH
9498  shlibpath_overrides_runpath=yes
9499  hardcode_into_libs=yes
9500  ;;
9501
9502newsos6)
9503  version_type=linux
9504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9505  shlibpath_var=LD_LIBRARY_PATH
9506  shlibpath_overrides_runpath=yes
9507  ;;
9508
9509nto-qnx*)
9510  version_type=linux
9511  need_lib_prefix=no
9512  need_version=no
9513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514  soname_spec='${libname}${release}${shared_ext}$major'
9515  shlibpath_var=LD_LIBRARY_PATH
9516  shlibpath_overrides_runpath=yes
9517  ;;
9518
9519openbsd*)
9520  version_type=sunos
9521  sys_lib_dlsearch_path_spec="/usr/lib"
9522  need_lib_prefix=no
9523  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9524  case $host_os in
9525    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9526    *)                         need_version=no  ;;
9527  esac
9528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9529  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9530  shlibpath_var=LD_LIBRARY_PATH
9531  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9532    case $host_os in
9533      openbsd2.[89] | openbsd2.[89].*)
9534	shlibpath_overrides_runpath=no
9535	;;
9536      *)
9537	shlibpath_overrides_runpath=yes
9538	;;
9539      esac
9540  else
9541    shlibpath_overrides_runpath=yes
9542  fi
9543  ;;
9544
9545os2*)
9546  libname_spec='$name'
9547  shrext_cmds=".dll"
9548  need_lib_prefix=no
9549  library_names_spec='$libname${shared_ext} $libname.a'
9550  dynamic_linker='OS/2 ld.exe'
9551  shlibpath_var=LIBPATH
9552  ;;
9553
9554osf3* | osf4* | osf5*)
9555  version_type=osf
9556  need_lib_prefix=no
9557  need_version=no
9558  soname_spec='${libname}${release}${shared_ext}$major'
9559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9560  shlibpath_var=LD_LIBRARY_PATH
9561  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9562  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9563  ;;
9564
9565rdos*)
9566  dynamic_linker=no
9567  ;;
9568
9569solaris*)
9570  version_type=linux
9571  need_lib_prefix=no
9572  need_version=no
9573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9574  soname_spec='${libname}${release}${shared_ext}$major'
9575  shlibpath_var=LD_LIBRARY_PATH
9576  shlibpath_overrides_runpath=yes
9577  hardcode_into_libs=yes
9578  # ldd complains unless libraries are executable
9579  postinstall_cmds='chmod +x $lib'
9580  ;;
9581
9582sunos4*)
9583  version_type=sunos
9584  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9585  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9586  shlibpath_var=LD_LIBRARY_PATH
9587  shlibpath_overrides_runpath=yes
9588  if test "$with_gnu_ld" = yes; then
9589    need_lib_prefix=no
9590  fi
9591  need_version=yes
9592  ;;
9593
9594sysv4 | sysv4.3*)
9595  version_type=linux
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9597  soname_spec='${libname}${release}${shared_ext}$major'
9598  shlibpath_var=LD_LIBRARY_PATH
9599  case $host_vendor in
9600    sni)
9601      shlibpath_overrides_runpath=no
9602      need_lib_prefix=no
9603      export_dynamic_flag_spec='${wl}-Blargedynsym'
9604      runpath_var=LD_RUN_PATH
9605      ;;
9606    siemens)
9607      need_lib_prefix=no
9608      ;;
9609    motorola)
9610      need_lib_prefix=no
9611      need_version=no
9612      shlibpath_overrides_runpath=no
9613      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9614      ;;
9615  esac
9616  ;;
9617
9618sysv4*MP*)
9619  if test -d /usr/nec ;then
9620    version_type=linux
9621    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9622    soname_spec='$libname${shared_ext}.$major'
9623    shlibpath_var=LD_LIBRARY_PATH
9624  fi
9625  ;;
9626
9627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9628  version_type=freebsd-elf
9629  need_lib_prefix=no
9630  need_version=no
9631  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9632  soname_spec='${libname}${release}${shared_ext}$major'
9633  shlibpath_var=LD_LIBRARY_PATH
9634  hardcode_into_libs=yes
9635  if test "$with_gnu_ld" = yes; then
9636    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9637    shlibpath_overrides_runpath=no
9638  else
9639    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9640    shlibpath_overrides_runpath=yes
9641    case $host_os in
9642      sco3.2v5*)
9643        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9644	;;
9645    esac
9646  fi
9647  sys_lib_dlsearch_path_spec='/usr/lib'
9648  ;;
9649
9650uts4*)
9651  version_type=linux
9652  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9653  soname_spec='${libname}${release}${shared_ext}$major'
9654  shlibpath_var=LD_LIBRARY_PATH
9655  ;;
9656
9657*)
9658  dynamic_linker=no
9659  ;;
9660esac
9661{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9662$as_echo "$dynamic_linker" >&6; }
9663test "$dynamic_linker" = no && can_build_shared=no
9664
9665if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9666  $as_echo_n "(cached) " >&6
9667else
9668  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9669fi
9670
9671sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9672if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9673  $as_echo_n "(cached) " >&6
9674else
9675  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9676fi
9677
9678sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9679
9680variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9681if test "$GCC" = yes; then
9682  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9683fi
9684
9685{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9686$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9687hardcode_action=
9688if test -n "$hardcode_libdir_flag_spec" || \
9689   test -n "$runpath_var" || \
9690   test "X$hardcode_automatic" = "Xyes" ; then
9691
9692  # We can hardcode non-existant directories.
9693  if test "$hardcode_direct" != no &&
9694     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9695     # have to relink, otherwise we might link with an installed library
9696     # when we should be linking with a yet-to-be-installed one
9697     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9698     test "$hardcode_minus_L" != no; then
9699    # Linking always hardcodes the temporary library directory.
9700    hardcode_action=relink
9701  else
9702    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9703    hardcode_action=immediate
9704  fi
9705else
9706  # We cannot hardcode anything, or else we can only hardcode existing
9707  # directories.
9708  hardcode_action=unsupported
9709fi
9710{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9711$as_echo "$hardcode_action" >&6; }
9712
9713if test "$hardcode_action" = relink; then
9714  # Fast installation is not supported
9715  enable_fast_install=no
9716elif test "$shlibpath_overrides_runpath" = yes ||
9717     test "$enable_shared" = no; then
9718  # Fast installation is not necessary
9719  enable_fast_install=needless
9720fi
9721
9722striplib=
9723old_striplib=
9724{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9725$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9726if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9727  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9728  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9729  { $as_echo "$as_me:$LINENO: result: yes" >&5
9730$as_echo "yes" >&6; }
9731else
9732# FIXME - insert some real tests, host_os isn't really good enough
9733  case $host_os in
9734   darwin*)
9735       if test -n "$STRIP" ; then
9736         striplib="$STRIP -x"
9737         old_striplib="$STRIP -S"
9738         { $as_echo "$as_me:$LINENO: result: yes" >&5
9739$as_echo "yes" >&6; }
9740       else
9741  { $as_echo "$as_me:$LINENO: result: no" >&5
9742$as_echo "no" >&6; }
9743fi
9744       ;;
9745   *)
9746  { $as_echo "$as_me:$LINENO: result: no" >&5
9747$as_echo "no" >&6; }
9748    ;;
9749  esac
9750fi
9751
9752if test "x$enable_dlopen" != xyes; then
9753  enable_dlopen=unknown
9754  enable_dlopen_self=unknown
9755  enable_dlopen_self_static=unknown
9756else
9757  lt_cv_dlopen=no
9758  lt_cv_dlopen_libs=
9759
9760  case $host_os in
9761  beos*)
9762    lt_cv_dlopen="load_add_on"
9763    lt_cv_dlopen_libs=
9764    lt_cv_dlopen_self=yes
9765    ;;
9766
9767  mingw* | pw32*)
9768    lt_cv_dlopen="LoadLibrary"
9769    lt_cv_dlopen_libs=
9770   ;;
9771
9772  cygwin*)
9773    lt_cv_dlopen="dlopen"
9774    lt_cv_dlopen_libs=
9775   ;;
9776
9777  darwin*)
9778  # if libdl is installed we need to link against it
9779    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9780$as_echo_n "checking for dlopen in -ldl... " >&6; }
9781if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9782  $as_echo_n "(cached) " >&6
9783else
9784  ac_check_lib_save_LIBS=$LIBS
9785LIBS="-ldl  $LIBS"
9786cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h.  */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h.  */
9792
9793/* Override any GCC internal prototype to avoid an error.
9794   Use char because int might match the return type of a GCC
9795   builtin and then its argument prototype would still apply.  */
9796#ifdef __cplusplus
9797extern "C"
9798#endif
9799char dlopen ();
9800int
9801main ()
9802{
9803return dlopen ();
9804  ;
9805  return 0;
9806}
9807_ACEOF
9808rm -f conftest.$ac_objext conftest$ac_exeext
9809if { (ac_try="$ac_link"
9810case "(($ac_try" in
9811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9812  *) ac_try_echo=$ac_try;;
9813esac
9814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9815$as_echo "$ac_try_echo") >&5
9816  (eval "$ac_link") 2>conftest.er1
9817  ac_status=$?
9818  grep -v '^ *+' conftest.er1 >conftest.err
9819  rm -f conftest.er1
9820  cat conftest.err >&5
9821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822  (exit $ac_status); } && {
9823	 test -z "$ac_c_werror_flag" ||
9824	 test ! -s conftest.err
9825       } && test -s conftest$ac_exeext && {
9826	 test "$cross_compiling" = yes ||
9827	 $as_test_x conftest$ac_exeext
9828       }; then
9829  ac_cv_lib_dl_dlopen=yes
9830else
9831  $as_echo "$as_me: failed program was:" >&5
9832sed 's/^/| /' conftest.$ac_ext >&5
9833
9834	ac_cv_lib_dl_dlopen=no
9835fi
9836
9837rm -rf conftest.dSYM
9838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9839      conftest$ac_exeext conftest.$ac_ext
9840LIBS=$ac_check_lib_save_LIBS
9841fi
9842{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9843$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9844if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9845  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9846else
9847
9848    lt_cv_dlopen="dyld"
9849    lt_cv_dlopen_libs=
9850    lt_cv_dlopen_self=yes
9851
9852fi
9853
9854   ;;
9855
9856  *)
9857    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9858$as_echo_n "checking for shl_load... " >&6; }
9859if test "${ac_cv_func_shl_load+set}" = set; then
9860  $as_echo_n "(cached) " >&6
9861else
9862  cat >conftest.$ac_ext <<_ACEOF
9863/* confdefs.h.  */
9864_ACEOF
9865cat confdefs.h >>conftest.$ac_ext
9866cat >>conftest.$ac_ext <<_ACEOF
9867/* end confdefs.h.  */
9868/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9869   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9870#define shl_load innocuous_shl_load
9871
9872/* System header to define __stub macros and hopefully few prototypes,
9873    which can conflict with char shl_load (); below.
9874    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9875    <limits.h> exists even on freestanding compilers.  */
9876
9877#ifdef __STDC__
9878# include <limits.h>
9879#else
9880# include <assert.h>
9881#endif
9882
9883#undef shl_load
9884
9885/* Override any GCC internal prototype to avoid an error.
9886   Use char because int might match the return type of a GCC
9887   builtin and then its argument prototype would still apply.  */
9888#ifdef __cplusplus
9889extern "C"
9890#endif
9891char shl_load ();
9892/* The GNU C library defines this for functions which it implements
9893    to always fail with ENOSYS.  Some functions are actually named
9894    something starting with __ and the normal name is an alias.  */
9895#if defined __stub_shl_load || defined __stub___shl_load
9896choke me
9897#endif
9898
9899int
9900main ()
9901{
9902return shl_load ();
9903  ;
9904  return 0;
9905}
9906_ACEOF
9907rm -f conftest.$ac_objext conftest$ac_exeext
9908if { (ac_try="$ac_link"
9909case "(($ac_try" in
9910  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9911  *) ac_try_echo=$ac_try;;
9912esac
9913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9914$as_echo "$ac_try_echo") >&5
9915  (eval "$ac_link") 2>conftest.er1
9916  ac_status=$?
9917  grep -v '^ *+' conftest.er1 >conftest.err
9918  rm -f conftest.er1
9919  cat conftest.err >&5
9920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921  (exit $ac_status); } && {
9922	 test -z "$ac_c_werror_flag" ||
9923	 test ! -s conftest.err
9924       } && test -s conftest$ac_exeext && {
9925	 test "$cross_compiling" = yes ||
9926	 $as_test_x conftest$ac_exeext
9927       }; then
9928  ac_cv_func_shl_load=yes
9929else
9930  $as_echo "$as_me: failed program was:" >&5
9931sed 's/^/| /' conftest.$ac_ext >&5
9932
9933	ac_cv_func_shl_load=no
9934fi
9935
9936rm -rf conftest.dSYM
9937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9938      conftest$ac_exeext conftest.$ac_ext
9939fi
9940{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9941$as_echo "$ac_cv_func_shl_load" >&6; }
9942if test "x$ac_cv_func_shl_load" = x""yes; then
9943  lt_cv_dlopen="shl_load"
9944else
9945  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9946$as_echo_n "checking for shl_load in -ldld... " >&6; }
9947if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9948  $as_echo_n "(cached) " >&6
9949else
9950  ac_check_lib_save_LIBS=$LIBS
9951LIBS="-ldld  $LIBS"
9952cat >conftest.$ac_ext <<_ACEOF
9953/* confdefs.h.  */
9954_ACEOF
9955cat confdefs.h >>conftest.$ac_ext
9956cat >>conftest.$ac_ext <<_ACEOF
9957/* end confdefs.h.  */
9958
9959/* Override any GCC internal prototype to avoid an error.
9960   Use char because int might match the return type of a GCC
9961   builtin and then its argument prototype would still apply.  */
9962#ifdef __cplusplus
9963extern "C"
9964#endif
9965char shl_load ();
9966int
9967main ()
9968{
9969return shl_load ();
9970  ;
9971  return 0;
9972}
9973_ACEOF
9974rm -f conftest.$ac_objext conftest$ac_exeext
9975if { (ac_try="$ac_link"
9976case "(($ac_try" in
9977  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978  *) ac_try_echo=$ac_try;;
9979esac
9980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9981$as_echo "$ac_try_echo") >&5
9982  (eval "$ac_link") 2>conftest.er1
9983  ac_status=$?
9984  grep -v '^ *+' conftest.er1 >conftest.err
9985  rm -f conftest.er1
9986  cat conftest.err >&5
9987  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988  (exit $ac_status); } && {
9989	 test -z "$ac_c_werror_flag" ||
9990	 test ! -s conftest.err
9991       } && test -s conftest$ac_exeext && {
9992	 test "$cross_compiling" = yes ||
9993	 $as_test_x conftest$ac_exeext
9994       }; then
9995  ac_cv_lib_dld_shl_load=yes
9996else
9997  $as_echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
9999
10000	ac_cv_lib_dld_shl_load=no
10001fi
10002
10003rm -rf conftest.dSYM
10004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10005      conftest$ac_exeext conftest.$ac_ext
10006LIBS=$ac_check_lib_save_LIBS
10007fi
10008{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10009$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10010if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10011  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10012else
10013  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10014$as_echo_n "checking for dlopen... " >&6; }
10015if test "${ac_cv_func_dlopen+set}" = set; then
10016  $as_echo_n "(cached) " >&6
10017else
10018  cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h.  */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h.  */
10024/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10025   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10026#define dlopen innocuous_dlopen
10027
10028/* System header to define __stub macros and hopefully few prototypes,
10029    which can conflict with char dlopen (); below.
10030    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031    <limits.h> exists even on freestanding compilers.  */
10032
10033#ifdef __STDC__
10034# include <limits.h>
10035#else
10036# include <assert.h>
10037#endif
10038
10039#undef dlopen
10040
10041/* Override any GCC internal prototype to avoid an error.
10042   Use char because int might match the return type of a GCC
10043   builtin and then its argument prototype would still apply.  */
10044#ifdef __cplusplus
10045extern "C"
10046#endif
10047char dlopen ();
10048/* The GNU C library defines this for functions which it implements
10049    to always fail with ENOSYS.  Some functions are actually named
10050    something starting with __ and the normal name is an alias.  */
10051#if defined __stub_dlopen || defined __stub___dlopen
10052choke me
10053#endif
10054
10055int
10056main ()
10057{
10058return dlopen ();
10059  ;
10060  return 0;
10061}
10062_ACEOF
10063rm -f conftest.$ac_objext conftest$ac_exeext
10064if { (ac_try="$ac_link"
10065case "(($ac_try" in
10066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10067  *) ac_try_echo=$ac_try;;
10068esac
10069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10070$as_echo "$ac_try_echo") >&5
10071  (eval "$ac_link") 2>conftest.er1
10072  ac_status=$?
10073  grep -v '^ *+' conftest.er1 >conftest.err
10074  rm -f conftest.er1
10075  cat conftest.err >&5
10076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); } && {
10078	 test -z "$ac_c_werror_flag" ||
10079	 test ! -s conftest.err
10080       } && test -s conftest$ac_exeext && {
10081	 test "$cross_compiling" = yes ||
10082	 $as_test_x conftest$ac_exeext
10083       }; then
10084  ac_cv_func_dlopen=yes
10085else
10086  $as_echo "$as_me: failed program was:" >&5
10087sed 's/^/| /' conftest.$ac_ext >&5
10088
10089	ac_cv_func_dlopen=no
10090fi
10091
10092rm -rf conftest.dSYM
10093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10094      conftest$ac_exeext conftest.$ac_ext
10095fi
10096{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10097$as_echo "$ac_cv_func_dlopen" >&6; }
10098if test "x$ac_cv_func_dlopen" = x""yes; then
10099  lt_cv_dlopen="dlopen"
10100else
10101  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10102$as_echo_n "checking for dlopen in -ldl... " >&6; }
10103if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10104  $as_echo_n "(cached) " >&6
10105else
10106  ac_check_lib_save_LIBS=$LIBS
10107LIBS="-ldl  $LIBS"
10108cat >conftest.$ac_ext <<_ACEOF
10109/* confdefs.h.  */
10110_ACEOF
10111cat confdefs.h >>conftest.$ac_ext
10112cat >>conftest.$ac_ext <<_ACEOF
10113/* end confdefs.h.  */
10114
10115/* Override any GCC internal prototype to avoid an error.
10116   Use char because int might match the return type of a GCC
10117   builtin and then its argument prototype would still apply.  */
10118#ifdef __cplusplus
10119extern "C"
10120#endif
10121char dlopen ();
10122int
10123main ()
10124{
10125return dlopen ();
10126  ;
10127  return 0;
10128}
10129_ACEOF
10130rm -f conftest.$ac_objext conftest$ac_exeext
10131if { (ac_try="$ac_link"
10132case "(($ac_try" in
10133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134  *) ac_try_echo=$ac_try;;
10135esac
10136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10137$as_echo "$ac_try_echo") >&5
10138  (eval "$ac_link") 2>conftest.er1
10139  ac_status=$?
10140  grep -v '^ *+' conftest.er1 >conftest.err
10141  rm -f conftest.er1
10142  cat conftest.err >&5
10143  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10144  (exit $ac_status); } && {
10145	 test -z "$ac_c_werror_flag" ||
10146	 test ! -s conftest.err
10147       } && test -s conftest$ac_exeext && {
10148	 test "$cross_compiling" = yes ||
10149	 $as_test_x conftest$ac_exeext
10150       }; then
10151  ac_cv_lib_dl_dlopen=yes
10152else
10153  $as_echo "$as_me: failed program was:" >&5
10154sed 's/^/| /' conftest.$ac_ext >&5
10155
10156	ac_cv_lib_dl_dlopen=no
10157fi
10158
10159rm -rf conftest.dSYM
10160rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10161      conftest$ac_exeext conftest.$ac_ext
10162LIBS=$ac_check_lib_save_LIBS
10163fi
10164{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10165$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10166if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10167  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10168else
10169  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10170$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10171if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10172  $as_echo_n "(cached) " >&6
10173else
10174  ac_check_lib_save_LIBS=$LIBS
10175LIBS="-lsvld  $LIBS"
10176cat >conftest.$ac_ext <<_ACEOF
10177/* confdefs.h.  */
10178_ACEOF
10179cat confdefs.h >>conftest.$ac_ext
10180cat >>conftest.$ac_ext <<_ACEOF
10181/* end confdefs.h.  */
10182
10183/* Override any GCC internal prototype to avoid an error.
10184   Use char because int might match the return type of a GCC
10185   builtin and then its argument prototype would still apply.  */
10186#ifdef __cplusplus
10187extern "C"
10188#endif
10189char dlopen ();
10190int
10191main ()
10192{
10193return dlopen ();
10194  ;
10195  return 0;
10196}
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
10199if { (ac_try="$ac_link"
10200case "(($ac_try" in
10201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202  *) ac_try_echo=$ac_try;;
10203esac
10204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10205$as_echo "$ac_try_echo") >&5
10206  (eval "$ac_link") 2>conftest.er1
10207  ac_status=$?
10208  grep -v '^ *+' conftest.er1 >conftest.err
10209  rm -f conftest.er1
10210  cat conftest.err >&5
10211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212  (exit $ac_status); } && {
10213	 test -z "$ac_c_werror_flag" ||
10214	 test ! -s conftest.err
10215       } && test -s conftest$ac_exeext && {
10216	 test "$cross_compiling" = yes ||
10217	 $as_test_x conftest$ac_exeext
10218       }; then
10219  ac_cv_lib_svld_dlopen=yes
10220else
10221  $as_echo "$as_me: failed program was:" >&5
10222sed 's/^/| /' conftest.$ac_ext >&5
10223
10224	ac_cv_lib_svld_dlopen=no
10225fi
10226
10227rm -rf conftest.dSYM
10228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10229      conftest$ac_exeext conftest.$ac_ext
10230LIBS=$ac_check_lib_save_LIBS
10231fi
10232{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10233$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10234if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10235  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10236else
10237  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10238$as_echo_n "checking for dld_link in -ldld... " >&6; }
10239if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10240  $as_echo_n "(cached) " >&6
10241else
10242  ac_check_lib_save_LIBS=$LIBS
10243LIBS="-ldld  $LIBS"
10244cat >conftest.$ac_ext <<_ACEOF
10245/* confdefs.h.  */
10246_ACEOF
10247cat confdefs.h >>conftest.$ac_ext
10248cat >>conftest.$ac_ext <<_ACEOF
10249/* end confdefs.h.  */
10250
10251/* Override any GCC internal prototype to avoid an error.
10252   Use char because int might match the return type of a GCC
10253   builtin and then its argument prototype would still apply.  */
10254#ifdef __cplusplus
10255extern "C"
10256#endif
10257char dld_link ();
10258int
10259main ()
10260{
10261return dld_link ();
10262  ;
10263  return 0;
10264}
10265_ACEOF
10266rm -f conftest.$ac_objext conftest$ac_exeext
10267if { (ac_try="$ac_link"
10268case "(($ac_try" in
10269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270  *) ac_try_echo=$ac_try;;
10271esac
10272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10273$as_echo "$ac_try_echo") >&5
10274  (eval "$ac_link") 2>conftest.er1
10275  ac_status=$?
10276  grep -v '^ *+' conftest.er1 >conftest.err
10277  rm -f conftest.er1
10278  cat conftest.err >&5
10279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); } && {
10281	 test -z "$ac_c_werror_flag" ||
10282	 test ! -s conftest.err
10283       } && test -s conftest$ac_exeext && {
10284	 test "$cross_compiling" = yes ||
10285	 $as_test_x conftest$ac_exeext
10286       }; then
10287  ac_cv_lib_dld_dld_link=yes
10288else
10289  $as_echo "$as_me: failed program was:" >&5
10290sed 's/^/| /' conftest.$ac_ext >&5
10291
10292	ac_cv_lib_dld_dld_link=no
10293fi
10294
10295rm -rf conftest.dSYM
10296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10297      conftest$ac_exeext conftest.$ac_ext
10298LIBS=$ac_check_lib_save_LIBS
10299fi
10300{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10301$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10302if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10303  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10304fi
10305
10306
10307fi
10308
10309
10310fi
10311
10312
10313fi
10314
10315
10316fi
10317
10318
10319fi
10320
10321    ;;
10322  esac
10323
10324  if test "x$lt_cv_dlopen" != xno; then
10325    enable_dlopen=yes
10326  else
10327    enable_dlopen=no
10328  fi
10329
10330  case $lt_cv_dlopen in
10331  dlopen)
10332    save_CPPFLAGS="$CPPFLAGS"
10333    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10334
10335    save_LDFLAGS="$LDFLAGS"
10336    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10337
10338    save_LIBS="$LIBS"
10339    LIBS="$lt_cv_dlopen_libs $LIBS"
10340
10341    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10342$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10343if test "${lt_cv_dlopen_self+set}" = set; then
10344  $as_echo_n "(cached) " >&6
10345else
10346  	  if test "$cross_compiling" = yes; then :
10347  lt_cv_dlopen_self=cross
10348else
10349  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10350  lt_status=$lt_dlunknown
10351  cat > conftest.$ac_ext <<EOF
10352#line 10352 "configure"
10353#include "confdefs.h"
10354
10355#if HAVE_DLFCN_H
10356#include <dlfcn.h>
10357#endif
10358
10359#include <stdio.h>
10360
10361#ifdef RTLD_GLOBAL
10362#  define LT_DLGLOBAL		RTLD_GLOBAL
10363#else
10364#  ifdef DL_GLOBAL
10365#    define LT_DLGLOBAL		DL_GLOBAL
10366#  else
10367#    define LT_DLGLOBAL		0
10368#  endif
10369#endif
10370
10371/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10372   find out it does not work in some platform. */
10373#ifndef LT_DLLAZY_OR_NOW
10374#  ifdef RTLD_LAZY
10375#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10376#  else
10377#    ifdef DL_LAZY
10378#      define LT_DLLAZY_OR_NOW		DL_LAZY
10379#    else
10380#      ifdef RTLD_NOW
10381#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10382#      else
10383#        ifdef DL_NOW
10384#          define LT_DLLAZY_OR_NOW	DL_NOW
10385#        else
10386#          define LT_DLLAZY_OR_NOW	0
10387#        endif
10388#      endif
10389#    endif
10390#  endif
10391#endif
10392
10393#ifdef __cplusplus
10394extern "C" void exit (int);
10395#endif
10396
10397void fnord() { int i=42;}
10398int main ()
10399{
10400  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10401  int status = $lt_dlunknown;
10402
10403  if (self)
10404    {
10405      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10406      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10407      /* dlclose (self); */
10408    }
10409  else
10410    puts (dlerror ());
10411
10412    exit (status);
10413}
10414EOF
10415  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416  (eval $ac_link) 2>&5
10417  ac_status=$?
10418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10420    (./conftest; exit; ) >&5 2>/dev/null
10421    lt_status=$?
10422    case x$lt_status in
10423      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10424      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10425      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10426    esac
10427  else :
10428    # compilation failed
10429    lt_cv_dlopen_self=no
10430  fi
10431fi
10432rm -fr conftest*
10433
10434
10435fi
10436{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10437$as_echo "$lt_cv_dlopen_self" >&6; }
10438
10439    if test "x$lt_cv_dlopen_self" = xyes; then
10440      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10441      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10442$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10443if test "${lt_cv_dlopen_self_static+set}" = set; then
10444  $as_echo_n "(cached) " >&6
10445else
10446  	  if test "$cross_compiling" = yes; then :
10447  lt_cv_dlopen_self_static=cross
10448else
10449  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10450  lt_status=$lt_dlunknown
10451  cat > conftest.$ac_ext <<EOF
10452#line 10452 "configure"
10453#include "confdefs.h"
10454
10455#if HAVE_DLFCN_H
10456#include <dlfcn.h>
10457#endif
10458
10459#include <stdio.h>
10460
10461#ifdef RTLD_GLOBAL
10462#  define LT_DLGLOBAL		RTLD_GLOBAL
10463#else
10464#  ifdef DL_GLOBAL
10465#    define LT_DLGLOBAL		DL_GLOBAL
10466#  else
10467#    define LT_DLGLOBAL		0
10468#  endif
10469#endif
10470
10471/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10472   find out it does not work in some platform. */
10473#ifndef LT_DLLAZY_OR_NOW
10474#  ifdef RTLD_LAZY
10475#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10476#  else
10477#    ifdef DL_LAZY
10478#      define LT_DLLAZY_OR_NOW		DL_LAZY
10479#    else
10480#      ifdef RTLD_NOW
10481#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10482#      else
10483#        ifdef DL_NOW
10484#          define LT_DLLAZY_OR_NOW	DL_NOW
10485#        else
10486#          define LT_DLLAZY_OR_NOW	0
10487#        endif
10488#      endif
10489#    endif
10490#  endif
10491#endif
10492
10493#ifdef __cplusplus
10494extern "C" void exit (int);
10495#endif
10496
10497void fnord() { int i=42;}
10498int main ()
10499{
10500  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10501  int status = $lt_dlunknown;
10502
10503  if (self)
10504    {
10505      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10506      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10507      /* dlclose (self); */
10508    }
10509  else
10510    puts (dlerror ());
10511
10512    exit (status);
10513}
10514EOF
10515  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516  (eval $ac_link) 2>&5
10517  ac_status=$?
10518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10520    (./conftest; exit; ) >&5 2>/dev/null
10521    lt_status=$?
10522    case x$lt_status in
10523      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10524      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10525      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10526    esac
10527  else :
10528    # compilation failed
10529    lt_cv_dlopen_self_static=no
10530  fi
10531fi
10532rm -fr conftest*
10533
10534
10535fi
10536{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10537$as_echo "$lt_cv_dlopen_self_static" >&6; }
10538    fi
10539
10540    CPPFLAGS="$save_CPPFLAGS"
10541    LDFLAGS="$save_LDFLAGS"
10542    LIBS="$save_LIBS"
10543    ;;
10544  esac
10545
10546  case $lt_cv_dlopen_self in
10547  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10548  *) enable_dlopen_self=unknown ;;
10549  esac
10550
10551  case $lt_cv_dlopen_self_static in
10552  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10553  *) enable_dlopen_self_static=unknown ;;
10554  esac
10555fi
10556
10557
10558# Report which library types will actually be built
10559{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10560$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10561{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10562$as_echo "$can_build_shared" >&6; }
10563
10564{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10565$as_echo_n "checking whether to build shared libraries... " >&6; }
10566test "$can_build_shared" = "no" && enable_shared=no
10567
10568# On AIX, shared libraries and static libraries use the same namespace, and
10569# are all built from PIC.
10570case $host_os in
10571aix3*)
10572  test "$enable_shared" = yes && enable_static=no
10573  if test -n "$RANLIB"; then
10574    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10575    postinstall_cmds='$RANLIB $lib'
10576  fi
10577  ;;
10578
10579aix[4-9]*)
10580  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10581    test "$enable_shared" = yes && enable_static=no
10582  fi
10583    ;;
10584esac
10585{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10586$as_echo "$enable_shared" >&6; }
10587
10588{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10589$as_echo_n "checking whether to build static libraries... " >&6; }
10590# Make sure either enable_shared or enable_static is yes.
10591test "$enable_shared" = yes || enable_static=yes
10592{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10593$as_echo "$enable_static" >&6; }
10594
10595# The else clause should only fire when bootstrapping the
10596# libtool distribution, otherwise you forgot to ship ltmain.sh
10597# with your package, and you will get complaints that there are
10598# no rules to generate ltmain.sh.
10599if test -f "$ltmain"; then
10600  # See if we are running on zsh, and set the options which allow our commands through
10601  # without removal of \ escapes.
10602  if test -n "${ZSH_VERSION+set}" ; then
10603    setopt NO_GLOB_SUBST
10604  fi
10605  # Now quote all the things that may contain metacharacters while being
10606  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10607  # variables and quote the copies for generation of the libtool script.
10608  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10609    SED SHELL STRIP \
10610    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10611    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10612    deplibs_check_method reload_flag reload_cmds need_locks \
10613    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10614    lt_cv_sys_global_symbol_to_c_name_address \
10615    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10616    old_postinstall_cmds old_postuninstall_cmds \
10617    compiler \
10618    CC \
10619    LD \
10620    lt_prog_compiler_wl \
10621    lt_prog_compiler_pic \
10622    lt_prog_compiler_static \
10623    lt_prog_compiler_no_builtin_flag \
10624    export_dynamic_flag_spec \
10625    thread_safe_flag_spec \
10626    whole_archive_flag_spec \
10627    enable_shared_with_static_runtimes \
10628    old_archive_cmds \
10629    old_archive_from_new_cmds \
10630    predep_objects \
10631    postdep_objects \
10632    predeps \
10633    postdeps \
10634    compiler_lib_search_path \
10635    compiler_lib_search_dirs \
10636    archive_cmds \
10637    archive_expsym_cmds \
10638    postinstall_cmds \
10639    postuninstall_cmds \
10640    old_archive_from_expsyms_cmds \
10641    allow_undefined_flag \
10642    no_undefined_flag \
10643    export_symbols_cmds \
10644    hardcode_libdir_flag_spec \
10645    hardcode_libdir_flag_spec_ld \
10646    hardcode_libdir_separator \
10647    hardcode_automatic \
10648    module_cmds \
10649    module_expsym_cmds \
10650    lt_cv_prog_compiler_c_o \
10651    fix_srcfile_path \
10652    exclude_expsyms \
10653    include_expsyms; do
10654
10655    case $var in
10656    old_archive_cmds | \
10657    old_archive_from_new_cmds | \
10658    archive_cmds | \
10659    archive_expsym_cmds | \
10660    module_cmds | \
10661    module_expsym_cmds | \
10662    old_archive_from_expsyms_cmds | \
10663    export_symbols_cmds | \
10664    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10665    postinstall_cmds | postuninstall_cmds | \
10666    old_postinstall_cmds | old_postuninstall_cmds | \
10667    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10668      # Double-quote double-evaled strings.
10669      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10670      ;;
10671    *)
10672      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10673      ;;
10674    esac
10675  done
10676
10677  case $lt_echo in
10678  *'\$0 --fallback-echo"')
10679    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10680    ;;
10681  esac
10682
10683cfgfile="${ofile}T"
10684  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10685  $rm -f "$cfgfile"
10686  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10687$as_echo "$as_me: creating $ofile" >&6;}
10688
10689  cat <<__EOF__ >> "$cfgfile"
10690#! $SHELL
10691
10692# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10693# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10694# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10695#
10696# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10697# Free Software Foundation, Inc.
10698#
10699# This file is part of GNU Libtool:
10700# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10701#
10702# This program is free software; you can redistribute it and/or modify
10703# it under the terms of the GNU General Public License as published by
10704# the Free Software Foundation; either version 2 of the License, or
10705# (at your option) any later version.
10706#
10707# This program is distributed in the hope that it will be useful, but
10708# WITHOUT ANY WARRANTY; without even the implied warranty of
10709# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10710# General Public License for more details.
10711#
10712# You should have received a copy of the GNU General Public License
10713# along with this program; if not, write to the Free Software
10714# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10715#
10716# As a special exception to the GNU General Public License, if you
10717# distribute this file as part of a program that contains a
10718# configuration script generated by Autoconf, you may include it under
10719# the same distribution terms that you use for the rest of that program.
10720
10721# A sed program that does not truncate output.
10722SED=$lt_SED
10723
10724# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10725Xsed="$SED -e 1s/^X//"
10726
10727# The HP-UX ksh and POSIX shell print the target directory to stdout
10728# if CDPATH is set.
10729(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10730
10731# The names of the tagged configurations supported by this script.
10732available_tags=
10733
10734# ### BEGIN LIBTOOL CONFIG
10735
10736# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10737
10738# Shell to use when invoking shell scripts.
10739SHELL=$lt_SHELL
10740
10741# Whether or not to build shared libraries.
10742build_libtool_libs=$enable_shared
10743
10744# Whether or not to build static libraries.
10745build_old_libs=$enable_static
10746
10747# Whether or not to add -lc for building shared libraries.
10748build_libtool_need_lc=$archive_cmds_need_lc
10749
10750# Whether or not to disallow shared libs when runtime libs are static
10751allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10752
10753# Whether or not to optimize for fast installation.
10754fast_install=$enable_fast_install
10755
10756# The host system.
10757host_alias=$host_alias
10758host=$host
10759host_os=$host_os
10760
10761# The build system.
10762build_alias=$build_alias
10763build=$build
10764build_os=$build_os
10765
10766# An echo program that does not interpret backslashes.
10767echo=$lt_echo
10768
10769# The archiver.
10770AR=$lt_AR
10771AR_FLAGS=$lt_AR_FLAGS
10772
10773# A C compiler.
10774LTCC=$lt_LTCC
10775
10776# LTCC compiler flags.
10777LTCFLAGS=$lt_LTCFLAGS
10778
10779# A language-specific compiler.
10780CC=$lt_compiler
10781
10782# Is the compiler the GNU C compiler?
10783with_gcc=$GCC
10784
10785# An ERE matcher.
10786EGREP=$lt_EGREP
10787
10788# The linker used to build libraries.
10789LD=$lt_LD
10790
10791# Whether we need hard or soft links.
10792LN_S=$lt_LN_S
10793
10794# A BSD-compatible nm program.
10795NM=$lt_NM
10796
10797# A symbol stripping program
10798STRIP=$lt_STRIP
10799
10800# Used to examine libraries when file_magic_cmd begins "file"
10801MAGIC_CMD=$MAGIC_CMD
10802
10803# Used on cygwin: DLL creation program.
10804DLLTOOL="$DLLTOOL"
10805
10806# Used on cygwin: object dumper.
10807OBJDUMP="$OBJDUMP"
10808
10809# Used on cygwin: assembler.
10810AS="$AS"
10811
10812# The name of the directory that contains temporary libtool files.
10813objdir=$objdir
10814
10815# How to create reloadable object files.
10816reload_flag=$lt_reload_flag
10817reload_cmds=$lt_reload_cmds
10818
10819# How to pass a linker flag through the compiler.
10820wl=$lt_lt_prog_compiler_wl
10821
10822# Object file suffix (normally "o").
10823objext="$ac_objext"
10824
10825# Old archive suffix (normally "a").
10826libext="$libext"
10827
10828# Shared library suffix (normally ".so").
10829shrext_cmds='$shrext_cmds'
10830
10831# Executable file suffix (normally "").
10832exeext="$exeext"
10833
10834# Additional compiler flags for building library objects.
10835pic_flag=$lt_lt_prog_compiler_pic
10836pic_mode=$pic_mode
10837
10838# What is the maximum length of a command?
10839max_cmd_len=$lt_cv_sys_max_cmd_len
10840
10841# Does compiler simultaneously support -c and -o options?
10842compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10843
10844# Must we lock files when doing compilation?
10845need_locks=$lt_need_locks
10846
10847# Do we need the lib prefix for modules?
10848need_lib_prefix=$need_lib_prefix
10849
10850# Do we need a version for libraries?
10851need_version=$need_version
10852
10853# Whether dlopen is supported.
10854dlopen_support=$enable_dlopen
10855
10856# Whether dlopen of programs is supported.
10857dlopen_self=$enable_dlopen_self
10858
10859# Whether dlopen of statically linked programs is supported.
10860dlopen_self_static=$enable_dlopen_self_static
10861
10862# Compiler flag to prevent dynamic linking.
10863link_static_flag=$lt_lt_prog_compiler_static
10864
10865# Compiler flag to turn off builtin functions.
10866no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10867
10868# Compiler flag to allow reflexive dlopens.
10869export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10870
10871# Compiler flag to generate shared objects directly from archives.
10872whole_archive_flag_spec=$lt_whole_archive_flag_spec
10873
10874# Compiler flag to generate thread-safe objects.
10875thread_safe_flag_spec=$lt_thread_safe_flag_spec
10876
10877# Library versioning type.
10878version_type=$version_type
10879
10880# Format of library name prefix.
10881libname_spec=$lt_libname_spec
10882
10883# List of archive names.  First name is the real one, the rest are links.
10884# The last name is the one that the linker finds with -lNAME.
10885library_names_spec=$lt_library_names_spec
10886
10887# The coded name of the library, if different from the real name.
10888soname_spec=$lt_soname_spec
10889
10890# Commands used to build and install an old-style archive.
10891RANLIB=$lt_RANLIB
10892old_archive_cmds=$lt_old_archive_cmds
10893old_postinstall_cmds=$lt_old_postinstall_cmds
10894old_postuninstall_cmds=$lt_old_postuninstall_cmds
10895
10896# Create an old-style archive from a shared archive.
10897old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10898
10899# Create a temporary old-style archive to link instead of a shared archive.
10900old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10901
10902# Commands used to build and install a shared archive.
10903archive_cmds=$lt_archive_cmds
10904archive_expsym_cmds=$lt_archive_expsym_cmds
10905postinstall_cmds=$lt_postinstall_cmds
10906postuninstall_cmds=$lt_postuninstall_cmds
10907
10908# Commands used to build a loadable module (assumed same as above if empty)
10909module_cmds=$lt_module_cmds
10910module_expsym_cmds=$lt_module_expsym_cmds
10911
10912# Commands to strip libraries.
10913old_striplib=$lt_old_striplib
10914striplib=$lt_striplib
10915
10916# Dependencies to place before the objects being linked to create a
10917# shared library.
10918predep_objects=$lt_predep_objects
10919
10920# Dependencies to place after the objects being linked to create a
10921# shared library.
10922postdep_objects=$lt_postdep_objects
10923
10924# Dependencies to place before the objects being linked to create a
10925# shared library.
10926predeps=$lt_predeps
10927
10928# Dependencies to place after the objects being linked to create a
10929# shared library.
10930postdeps=$lt_postdeps
10931
10932# The directories searched by this compiler when creating a shared
10933# library
10934compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10935
10936# The library search path used internally by the compiler when linking
10937# a shared library.
10938compiler_lib_search_path=$lt_compiler_lib_search_path
10939
10940# Method to check whether dependent libraries are shared objects.
10941deplibs_check_method=$lt_deplibs_check_method
10942
10943# Command to use when deplibs_check_method == file_magic.
10944file_magic_cmd=$lt_file_magic_cmd
10945
10946# Flag that allows shared libraries with undefined symbols to be built.
10947allow_undefined_flag=$lt_allow_undefined_flag
10948
10949# Flag that forces no undefined symbols.
10950no_undefined_flag=$lt_no_undefined_flag
10951
10952# Commands used to finish a libtool library installation in a directory.
10953finish_cmds=$lt_finish_cmds
10954
10955# Same as above, but a single script fragment to be evaled but not shown.
10956finish_eval=$lt_finish_eval
10957
10958# Take the output of nm and produce a listing of raw symbols and C names.
10959global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10960
10961# Transform the output of nm in a proper C declaration
10962global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10963
10964# Transform the output of nm in a C name address pair
10965global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10966
10967# This is the shared library runtime path variable.
10968runpath_var=$runpath_var
10969
10970# This is the shared library path variable.
10971shlibpath_var=$shlibpath_var
10972
10973# Is shlibpath searched before the hard-coded library search path?
10974shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10975
10976# How to hardcode a shared library path into an executable.
10977hardcode_action=$hardcode_action
10978
10979# Whether we should hardcode library paths into libraries.
10980hardcode_into_libs=$hardcode_into_libs
10981
10982# Flag to hardcode \$libdir into a binary during linking.
10983# This must work even if \$libdir does not exist.
10984hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10985
10986# If ld is used when linking, flag to hardcode \$libdir into
10987# a binary during linking. This must work even if \$libdir does
10988# not exist.
10989hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10990
10991# Whether we need a single -rpath flag with a separated argument.
10992hardcode_libdir_separator=$lt_hardcode_libdir_separator
10993
10994# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10995# resulting binary.
10996hardcode_direct=$hardcode_direct
10997
10998# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10999# resulting binary.
11000hardcode_minus_L=$hardcode_minus_L
11001
11002# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11003# the resulting binary.
11004hardcode_shlibpath_var=$hardcode_shlibpath_var
11005
11006# Set to yes if building a shared library automatically hardcodes DIR into the library
11007# and all subsequent libraries and executables linked against it.
11008hardcode_automatic=$hardcode_automatic
11009
11010# Variables whose values should be saved in libtool wrapper scripts and
11011# restored at relink time.
11012variables_saved_for_relink="$variables_saved_for_relink"
11013
11014# Whether libtool must link a program against all its dependency libraries.
11015link_all_deplibs=$link_all_deplibs
11016
11017# Compile-time system search path for libraries
11018sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11019
11020# Run-time system search path for libraries
11021sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11022
11023# Fix the shell variable \$srcfile for the compiler.
11024fix_srcfile_path=$lt_fix_srcfile_path
11025
11026# Set to yes if exported symbols are required.
11027always_export_symbols=$always_export_symbols
11028
11029# The commands to list exported symbols.
11030export_symbols_cmds=$lt_export_symbols_cmds
11031
11032# The commands to extract the exported symbol list from a shared archive.
11033extract_expsyms_cmds=$lt_extract_expsyms_cmds
11034
11035# Symbols that should not be listed in the preloaded symbols.
11036exclude_expsyms=$lt_exclude_expsyms
11037
11038# Symbols that must always be exported.
11039include_expsyms=$lt_include_expsyms
11040
11041# ### END LIBTOOL CONFIG
11042
11043__EOF__
11044
11045
11046  case $host_os in
11047  aix3*)
11048    cat <<\EOF >> "$cfgfile"
11049
11050# AIX sometimes has problems with the GCC collect2 program.  For some
11051# reason, if we set the COLLECT_NAMES environment variable, the problems
11052# vanish in a puff of smoke.
11053if test "X${COLLECT_NAMES+set}" != Xset; then
11054  COLLECT_NAMES=
11055  export COLLECT_NAMES
11056fi
11057EOF
11058    ;;
11059  esac
11060
11061  # We use sed instead of cat because bash on DJGPP gets confused if
11062  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11063  # text mode, it properly converts lines to CR/LF.  This bash problem
11064  # is reportedly fixed, but why not run on old versions too?
11065  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11066
11067  mv -f "$cfgfile" "$ofile" || \
11068    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11069  chmod +x "$ofile"
11070
11071else
11072  # If there is no Makefile yet, we rely on a make rule to execute
11073  # `config.status --recheck' to rerun these tests and create the
11074  # libtool script then.
11075  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11076  if test -f "$ltmain_in"; then
11077    test -f Makefile && make "$ltmain"
11078  fi
11079fi
11080
11081
11082ac_ext=c
11083ac_cpp='$CPP $CPPFLAGS'
11084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11086ac_compiler_gnu=$ac_cv_c_compiler_gnu
11087
11088CC="$lt_save_CC"
11089
11090
11091# Check whether --with-tags was given.
11092if test "${with_tags+set}" = set; then
11093  withval=$with_tags; tagnames="$withval"
11094fi
11095
11096
11097if test -f "$ltmain" && test -n "$tagnames"; then
11098  if test ! -f "${ofile}"; then
11099    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11100$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11101  fi
11102
11103  if test -z "$LTCC"; then
11104    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11105    if test -z "$LTCC"; then
11106      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11107$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11108    else
11109      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11110$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11111    fi
11112  fi
11113  if test -z "$LTCFLAGS"; then
11114    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11115  fi
11116
11117  # Extract list of available tagged configurations in $ofile.
11118  # Note that this assumes the entire list is on one line.
11119  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11120
11121  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11122  for tagname in $tagnames; do
11123    IFS="$lt_save_ifs"
11124    # Check whether tagname contains only valid characters
11125    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11126    "") ;;
11127    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11128$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11129   { (exit 1); exit 1; }; }
11130	;;
11131    esac
11132
11133    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11134    then
11135      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11136$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11137   { (exit 1); exit 1; }; }
11138    fi
11139
11140    # Update the list of available tags.
11141    if test -n "$tagname"; then
11142      echo appending configuration tag \"$tagname\" to $ofile
11143
11144      case $tagname in
11145      CXX)
11146	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11147	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11148	    (test "X$CXX" != "Xg++"))) ; then
11149	  ac_ext=cpp
11150ac_cpp='$CXXCPP $CPPFLAGS'
11151ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11152ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11153ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11154
11155
11156
11157
11158archive_cmds_need_lc_CXX=no
11159allow_undefined_flag_CXX=
11160always_export_symbols_CXX=no
11161archive_expsym_cmds_CXX=
11162export_dynamic_flag_spec_CXX=
11163hardcode_direct_CXX=no
11164hardcode_libdir_flag_spec_CXX=
11165hardcode_libdir_flag_spec_ld_CXX=
11166hardcode_libdir_separator_CXX=
11167hardcode_minus_L_CXX=no
11168hardcode_shlibpath_var_CXX=unsupported
11169hardcode_automatic_CXX=no
11170module_cmds_CXX=
11171module_expsym_cmds_CXX=
11172link_all_deplibs_CXX=unknown
11173old_archive_cmds_CXX=$old_archive_cmds
11174no_undefined_flag_CXX=
11175whole_archive_flag_spec_CXX=
11176enable_shared_with_static_runtimes_CXX=no
11177
11178# Dependencies to place before and after the object being linked:
11179predep_objects_CXX=
11180postdep_objects_CXX=
11181predeps_CXX=
11182postdeps_CXX=
11183compiler_lib_search_path_CXX=
11184compiler_lib_search_dirs_CXX=
11185
11186# Source file extension for C++ test sources.
11187ac_ext=cpp
11188
11189# Object file extension for compiled C++ test sources.
11190objext=o
11191objext_CXX=$objext
11192
11193# Code to be used in simple compile tests
11194lt_simple_compile_test_code="int some_variable = 0;"
11195
11196# Code to be used in simple link tests
11197lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11198
11199# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11200
11201# If no C compiler was specified, use CC.
11202LTCC=${LTCC-"$CC"}
11203
11204# If no C compiler flags were specified, use CFLAGS.
11205LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11206
11207# Allow CC to be a program name with arguments.
11208compiler=$CC
11209
11210
11211# save warnings/boilerplate of simple test code
11212ac_outfile=conftest.$ac_objext
11213echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11214eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11215_lt_compiler_boilerplate=`cat conftest.err`
11216$rm conftest*
11217
11218ac_outfile=conftest.$ac_objext
11219echo "$lt_simple_link_test_code" >conftest.$ac_ext
11220eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11221_lt_linker_boilerplate=`cat conftest.err`
11222$rm -r conftest*
11223
11224
11225# Allow CC to be a program name with arguments.
11226lt_save_CC=$CC
11227lt_save_LD=$LD
11228lt_save_GCC=$GCC
11229GCC=$GXX
11230lt_save_with_gnu_ld=$with_gnu_ld
11231lt_save_path_LD=$lt_cv_path_LD
11232if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11233  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11234else
11235  $as_unset lt_cv_prog_gnu_ld
11236fi
11237if test -n "${lt_cv_path_LDCXX+set}"; then
11238  lt_cv_path_LD=$lt_cv_path_LDCXX
11239else
11240  $as_unset lt_cv_path_LD
11241fi
11242test -z "${LDCXX+set}" || LD=$LDCXX
11243CC=${CXX-"c++"}
11244compiler=$CC
11245compiler_CXX=$CC
11246for cc_temp in $compiler""; do
11247  case $cc_temp in
11248    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11249    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11250    \-*) ;;
11251    *) break;;
11252  esac
11253done
11254cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11255
11256
11257# We don't want -fno-exception wen compiling C++ code, so set the
11258# no_builtin_flag separately
11259if test "$GXX" = yes; then
11260  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11261else
11262  lt_prog_compiler_no_builtin_flag_CXX=
11263fi
11264
11265if test "$GXX" = yes; then
11266  # Set up default GNU C++ configuration
11267
11268
11269# Check whether --with-gnu-ld was given.
11270if test "${with_gnu_ld+set}" = set; then
11271  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11272else
11273  with_gnu_ld=no
11274fi
11275
11276ac_prog=ld
11277if test "$GCC" = yes; then
11278  # Check if gcc -print-prog-name=ld gives a path.
11279  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11280$as_echo_n "checking for ld used by $CC... " >&6; }
11281  case $host in
11282  *-*-mingw*)
11283    # gcc leaves a trailing carriage return which upsets mingw
11284    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11285  *)
11286    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11287  esac
11288  case $ac_prog in
11289    # Accept absolute paths.
11290    [\\/]* | ?:[\\/]*)
11291      re_direlt='/[^/][^/]*/\.\./'
11292      # Canonicalize the pathname of ld
11293      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11294      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11295	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11296      done
11297      test -z "$LD" && LD="$ac_prog"
11298      ;;
11299  "")
11300    # If it fails, then pretend we aren't using GCC.
11301    ac_prog=ld
11302    ;;
11303  *)
11304    # If it is relative, then search for the first ld in PATH.
11305    with_gnu_ld=unknown
11306    ;;
11307  esac
11308elif test "$with_gnu_ld" = yes; then
11309  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11310$as_echo_n "checking for GNU ld... " >&6; }
11311else
11312  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11313$as_echo_n "checking for non-GNU ld... " >&6; }
11314fi
11315if test "${lt_cv_path_LD+set}" = set; then
11316  $as_echo_n "(cached) " >&6
11317else
11318  if test -z "$LD"; then
11319  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11320  for ac_dir in $PATH; do
11321    IFS="$lt_save_ifs"
11322    test -z "$ac_dir" && ac_dir=.
11323    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11324      lt_cv_path_LD="$ac_dir/$ac_prog"
11325      # Check to see if the program is GNU ld.  I'd rather use --version,
11326      # but apparently some variants of GNU ld only accept -v.
11327      # Break only if it was the GNU/non-GNU ld that we prefer.
11328      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11329      *GNU* | *'with BFD'*)
11330	test "$with_gnu_ld" != no && break
11331	;;
11332      *)
11333	test "$with_gnu_ld" != yes && break
11334	;;
11335      esac
11336    fi
11337  done
11338  IFS="$lt_save_ifs"
11339else
11340  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11341fi
11342fi
11343
11344LD="$lt_cv_path_LD"
11345if test -n "$LD"; then
11346  { $as_echo "$as_me:$LINENO: result: $LD" >&5
11347$as_echo "$LD" >&6; }
11348else
11349  { $as_echo "$as_me:$LINENO: result: no" >&5
11350$as_echo "no" >&6; }
11351fi
11352test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11353$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11354   { (exit 1); exit 1; }; }
11355{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11356$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11357if test "${lt_cv_prog_gnu_ld+set}" = set; then
11358  $as_echo_n "(cached) " >&6
11359else
11360  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11361case `$LD -v 2>&1 </dev/null` in
11362*GNU* | *'with BFD'*)
11363  lt_cv_prog_gnu_ld=yes
11364  ;;
11365*)
11366  lt_cv_prog_gnu_ld=no
11367  ;;
11368esac
11369fi
11370{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11371$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11372with_gnu_ld=$lt_cv_prog_gnu_ld
11373
11374
11375
11376  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11377  # archiving commands below assume that GNU ld is being used.
11378  if test "$with_gnu_ld" = yes; then
11379    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11380    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'
11381
11382    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11383    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11384
11385    # If archive_cmds runs LD, not CC, wlarc should be empty
11386    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11387    #     investigate it a little bit more. (MM)
11388    wlarc='${wl}'
11389
11390    # ancient GNU ld didn't support --whole-archive et. al.
11391    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11392	grep 'no-whole-archive' > /dev/null; then
11393      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11394    else
11395      whole_archive_flag_spec_CXX=
11396    fi
11397  else
11398    with_gnu_ld=no
11399    wlarc=
11400
11401    # A generic and very simple default shared library creation
11402    # command for GNU C++ for the case where it uses the native
11403    # linker, instead of GNU ld.  If possible, this setting should
11404    # overridden to take advantage of the native linker features on
11405    # the platform it is being used on.
11406    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11407  fi
11408
11409  # Commands to make compiler produce verbose output that lists
11410  # what "hidden" libraries, object files and flags are used when
11411  # linking a shared library.
11412  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11413
11414else
11415  GXX=no
11416  with_gnu_ld=no
11417  wlarc=
11418fi
11419
11420# PORTME: fill in a description of your system's C++ link characteristics
11421{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11422$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11423ld_shlibs_CXX=yes
11424case $host_os in
11425  aix3*)
11426    # FIXME: insert proper C++ library support
11427    ld_shlibs_CXX=no
11428    ;;
11429  aix[4-9]*)
11430    if test "$host_cpu" = ia64; then
11431      # On IA64, the linker does run time linking by default, so we don't
11432      # have to do anything special.
11433      aix_use_runtimelinking=no
11434      exp_sym_flag='-Bexport'
11435      no_entry_flag=""
11436    else
11437      aix_use_runtimelinking=no
11438
11439      # Test if we are trying to use run time linking or normal
11440      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11441      # need to do runtime linking.
11442      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11443	for ld_flag in $LDFLAGS; do
11444	  case $ld_flag in
11445	  *-brtl*)
11446	    aix_use_runtimelinking=yes
11447	    break
11448	    ;;
11449	  esac
11450	done
11451	;;
11452      esac
11453
11454      exp_sym_flag='-bexport'
11455      no_entry_flag='-bnoentry'
11456    fi
11457
11458    # When large executables or shared objects are built, AIX ld can
11459    # have problems creating the table of contents.  If linking a library
11460    # or program results in "error TOC overflow" add -mminimal-toc to
11461    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11462    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11463
11464    archive_cmds_CXX=''
11465    hardcode_direct_CXX=yes
11466    hardcode_libdir_separator_CXX=':'
11467    link_all_deplibs_CXX=yes
11468
11469    if test "$GXX" = yes; then
11470      case $host_os in aix4.[012]|aix4.[012].*)
11471      # We only want to do this on AIX 4.2 and lower, the check
11472      # below for broken collect2 doesn't work under 4.3+
11473	collect2name=`${CC} -print-prog-name=collect2`
11474	if test -f "$collect2name" && \
11475	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11476	then
11477	  # We have reworked collect2
11478	  :
11479	else
11480	  # We have old collect2
11481	  hardcode_direct_CXX=unsupported
11482	  # It fails to find uninstalled libraries when the uninstalled
11483	  # path is not listed in the libpath.  Setting hardcode_minus_L
11484	  # to unsupported forces relinking
11485	  hardcode_minus_L_CXX=yes
11486	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11487	  hardcode_libdir_separator_CXX=
11488	fi
11489	;;
11490      esac
11491      shared_flag='-shared'
11492      if test "$aix_use_runtimelinking" = yes; then
11493	shared_flag="$shared_flag "'${wl}-G'
11494      fi
11495    else
11496      # not using gcc
11497      if test "$host_cpu" = ia64; then
11498	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11499	# chokes on -Wl,-G. The following line is correct:
11500	shared_flag='-G'
11501      else
11502	if test "$aix_use_runtimelinking" = yes; then
11503	  shared_flag='${wl}-G'
11504	else
11505	  shared_flag='${wl}-bM:SRE'
11506	fi
11507      fi
11508    fi
11509
11510    # It seems that -bexpall does not export symbols beginning with
11511    # underscore (_), so it is better to generate a list of symbols to export.
11512    always_export_symbols_CXX=yes
11513    if test "$aix_use_runtimelinking" = yes; then
11514      # Warning - without using the other runtime loading flags (-brtl),
11515      # -berok will link without error, but may produce a broken library.
11516      allow_undefined_flag_CXX='-berok'
11517      # Determine the default libpath from the value encoded in an empty executable.
11518      cat >conftest.$ac_ext <<_ACEOF
11519/* confdefs.h.  */
11520_ACEOF
11521cat confdefs.h >>conftest.$ac_ext
11522cat >>conftest.$ac_ext <<_ACEOF
11523/* end confdefs.h.  */
11524
11525int
11526main ()
11527{
11528
11529  ;
11530  return 0;
11531}
11532_ACEOF
11533rm -f conftest.$ac_objext conftest$ac_exeext
11534if { (ac_try="$ac_link"
11535case "(($ac_try" in
11536  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537  *) ac_try_echo=$ac_try;;
11538esac
11539eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11540$as_echo "$ac_try_echo") >&5
11541  (eval "$ac_link") 2>conftest.er1
11542  ac_status=$?
11543  grep -v '^ *+' conftest.er1 >conftest.err
11544  rm -f conftest.er1
11545  cat conftest.err >&5
11546  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547  (exit $ac_status); } && {
11548	 test -z "$ac_cxx_werror_flag" ||
11549	 test ! -s conftest.err
11550       } && test -s conftest$ac_exeext && {
11551	 test "$cross_compiling" = yes ||
11552	 $as_test_x conftest$ac_exeext
11553       }; then
11554
11555lt_aix_libpath_sed='
11556    /Import File Strings/,/^$/ {
11557	/^0/ {
11558	    s/^0  *\(.*\)$/\1/
11559	    p
11560	}
11561    }'
11562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11563# Check for a 64-bit object if we didn't find anything.
11564if test -z "$aix_libpath"; then
11565  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11566fi
11567else
11568  $as_echo "$as_me: failed program was:" >&5
11569sed 's/^/| /' conftest.$ac_ext >&5
11570
11571
11572fi
11573
11574rm -rf conftest.dSYM
11575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576      conftest$ac_exeext conftest.$ac_ext
11577if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11578
11579      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11580
11581      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"
11582     else
11583      if test "$host_cpu" = ia64; then
11584	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11585	allow_undefined_flag_CXX="-z nodefs"
11586	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"
11587      else
11588	# Determine the default libpath from the value encoded in an empty executable.
11589	cat >conftest.$ac_ext <<_ACEOF
11590/* confdefs.h.  */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h.  */
11595
11596int
11597main ()
11598{
11599
11600  ;
11601  return 0;
11602}
11603_ACEOF
11604rm -f conftest.$ac_objext conftest$ac_exeext
11605if { (ac_try="$ac_link"
11606case "(($ac_try" in
11607  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608  *) ac_try_echo=$ac_try;;
11609esac
11610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11611$as_echo "$ac_try_echo") >&5
11612  (eval "$ac_link") 2>conftest.er1
11613  ac_status=$?
11614  grep -v '^ *+' conftest.er1 >conftest.err
11615  rm -f conftest.er1
11616  cat conftest.err >&5
11617  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618  (exit $ac_status); } && {
11619	 test -z "$ac_cxx_werror_flag" ||
11620	 test ! -s conftest.err
11621       } && test -s conftest$ac_exeext && {
11622	 test "$cross_compiling" = yes ||
11623	 $as_test_x conftest$ac_exeext
11624       }; then
11625
11626lt_aix_libpath_sed='
11627    /Import File Strings/,/^$/ {
11628	/^0/ {
11629	    s/^0  *\(.*\)$/\1/
11630	    p
11631	}
11632    }'
11633aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11634# Check for a 64-bit object if we didn't find anything.
11635if test -z "$aix_libpath"; then
11636  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11637fi
11638else
11639  $as_echo "$as_me: failed program was:" >&5
11640sed 's/^/| /' conftest.$ac_ext >&5
11641
11642
11643fi
11644
11645rm -rf conftest.dSYM
11646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647      conftest$ac_exeext conftest.$ac_ext
11648if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11649
11650	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11651	# Warning - without using the other run time loading flags,
11652	# -berok will link without error, but may produce a broken library.
11653	no_undefined_flag_CXX=' ${wl}-bernotok'
11654	allow_undefined_flag_CXX=' ${wl}-berok'
11655	# Exported symbols can be pulled into shared objects from archives
11656	whole_archive_flag_spec_CXX='$convenience'
11657	archive_cmds_need_lc_CXX=yes
11658	# This is similar to how AIX traditionally builds its shared libraries.
11659	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'
11660      fi
11661    fi
11662    ;;
11663
11664  beos*)
11665    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11666      allow_undefined_flag_CXX=unsupported
11667      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11668      # support --undefined.  This deserves some investigation.  FIXME
11669      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11670    else
11671      ld_shlibs_CXX=no
11672    fi
11673    ;;
11674
11675  chorus*)
11676    case $cc_basename in
11677      *)
11678	# FIXME: insert proper C++ library support
11679	ld_shlibs_CXX=no
11680	;;
11681    esac
11682    ;;
11683
11684  cygwin* | mingw* | pw32*)
11685    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11686    # as there is no search path for DLLs.
11687    hardcode_libdir_flag_spec_CXX='-L$libdir'
11688    allow_undefined_flag_CXX=unsupported
11689    always_export_symbols_CXX=no
11690    enable_shared_with_static_runtimes_CXX=yes
11691
11692    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11693      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'
11694      # If the export-symbols file already is a .def file (1st line
11695      # is EXPORTS), use it as is; otherwise, prepend...
11696      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11697	cp $export_symbols $output_objdir/$soname.def;
11698      else
11699	echo EXPORTS > $output_objdir/$soname.def;
11700	cat $export_symbols >> $output_objdir/$soname.def;
11701      fi~
11702      $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'
11703    else
11704      ld_shlibs_CXX=no
11705    fi
11706  ;;
11707      darwin* | rhapsody*)
11708      archive_cmds_need_lc_CXX=no
11709      hardcode_direct_CXX=no
11710      hardcode_automatic_CXX=yes
11711      hardcode_shlibpath_var_CXX=unsupported
11712      whole_archive_flag_spec_CXX=''
11713      link_all_deplibs_CXX=yes
11714      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11715      if test "$GXX" = yes ; then
11716      output_verbose_link_cmd='echo'
11717      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11718      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11719      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11720      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11721      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11722        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11723        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11724      fi
11725      else
11726      case $cc_basename in
11727        xlc*)
11728         output_verbose_link_cmd='echo'
11729          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11730          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11731          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11732          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11733          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}'
11734          ;;
11735       *)
11736         ld_shlibs_CXX=no
11737          ;;
11738      esac
11739      fi
11740        ;;
11741
11742  dgux*)
11743    case $cc_basename in
11744      ec++*)
11745	# FIXME: insert proper C++ library support
11746	ld_shlibs_CXX=no
11747	;;
11748      ghcx*)
11749	# Green Hills C++ Compiler
11750	# FIXME: insert proper C++ library support
11751	ld_shlibs_CXX=no
11752	;;
11753      *)
11754	# FIXME: insert proper C++ library support
11755	ld_shlibs_CXX=no
11756	;;
11757    esac
11758    ;;
11759  freebsd[12]*)
11760    # C++ shared libraries reported to be fairly broken before switch to ELF
11761    ld_shlibs_CXX=no
11762    ;;
11763  freebsd-elf*)
11764    archive_cmds_need_lc_CXX=no
11765    ;;
11766  freebsd* | dragonfly*)
11767    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11768    # conventions
11769    ld_shlibs_CXX=yes
11770    ;;
11771  gnu*)
11772    ;;
11773  hpux9*)
11774    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11775    hardcode_libdir_separator_CXX=:
11776    export_dynamic_flag_spec_CXX='${wl}-E'
11777    hardcode_direct_CXX=yes
11778    hardcode_minus_L_CXX=yes # Not in the search PATH,
11779				# but as the default
11780				# location of the library.
11781
11782    case $cc_basename in
11783    CC*)
11784      # FIXME: insert proper C++ library support
11785      ld_shlibs_CXX=no
11786      ;;
11787    aCC*)
11788      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'
11789      # Commands to make compiler produce verbose output that lists
11790      # what "hidden" libraries, object files and flags are used when
11791      # linking a shared library.
11792      #
11793      # There doesn't appear to be a way to prevent this compiler from
11794      # explicitly linking system object files so we need to strip them
11795      # from the output so that they don't get included in the library
11796      # dependencies.
11797      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'
11798      ;;
11799    *)
11800      if test "$GXX" = yes; then
11801        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'
11802      else
11803        # FIXME: insert proper C++ library support
11804        ld_shlibs_CXX=no
11805      fi
11806      ;;
11807    esac
11808    ;;
11809  hpux10*|hpux11*)
11810    if test $with_gnu_ld = no; then
11811      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11812      hardcode_libdir_separator_CXX=:
11813
11814      case $host_cpu in
11815      hppa*64*|ia64*) ;;
11816      *)
11817	export_dynamic_flag_spec_CXX='${wl}-E'
11818        ;;
11819      esac
11820    fi
11821    case $host_cpu in
11822    hppa*64*|ia64*)
11823      hardcode_direct_CXX=no
11824      hardcode_shlibpath_var_CXX=no
11825      ;;
11826    *)
11827      hardcode_direct_CXX=yes
11828      hardcode_minus_L_CXX=yes # Not in the search PATH,
11829					      # but as the default
11830					      # location of the library.
11831      ;;
11832    esac
11833
11834    case $cc_basename in
11835      CC*)
11836	# FIXME: insert proper C++ library support
11837	ld_shlibs_CXX=no
11838	;;
11839      aCC*)
11840	case $host_cpu in
11841	hppa*64*)
11842	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11843	  ;;
11844	ia64*)
11845	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11846	  ;;
11847	*)
11848	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11849	  ;;
11850	esac
11851	# Commands to make compiler produce verbose output that lists
11852	# what "hidden" libraries, object files and flags are used when
11853	# linking a shared library.
11854	#
11855	# There doesn't appear to be a way to prevent this compiler from
11856	# explicitly linking system object files so we need to strip them
11857	# from the output so that they don't get included in the library
11858	# dependencies.
11859	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'
11860	;;
11861      *)
11862	if test "$GXX" = yes; then
11863	  if test $with_gnu_ld = no; then
11864	    case $host_cpu in
11865	    hppa*64*)
11866	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11867	      ;;
11868	    ia64*)
11869	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11870	      ;;
11871	    *)
11872	      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'
11873	      ;;
11874	    esac
11875	  fi
11876	else
11877	  # FIXME: insert proper C++ library support
11878	  ld_shlibs_CXX=no
11879	fi
11880	;;
11881    esac
11882    ;;
11883  interix[3-9]*)
11884    hardcode_direct_CXX=no
11885    hardcode_shlibpath_var_CXX=no
11886    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11887    export_dynamic_flag_spec_CXX='${wl}-E'
11888    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11889    # Instead, shared libraries are loaded at an image base (0x10000000 by
11890    # default) and relocated if they conflict, which is a slow very memory
11891    # consuming and fragmenting process.  To avoid this, we pick a random,
11892    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11893    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11894    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'
11895    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'
11896    ;;
11897  irix5* | irix6*)
11898    case $cc_basename in
11899      CC*)
11900	# SGI C++
11901	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'
11902
11903	# Archives containing C++ object files must be created using
11904	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11905	# necessary to make sure instantiated templates are included
11906	# in the archive.
11907	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11908	;;
11909      *)
11910	if test "$GXX" = yes; then
11911	  if test "$with_gnu_ld" = no; then
11912	    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'
11913	  else
11914	    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'
11915	  fi
11916	fi
11917	link_all_deplibs_CXX=yes
11918	;;
11919    esac
11920    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11921    hardcode_libdir_separator_CXX=:
11922    ;;
11923  linux* | k*bsd*-gnu)
11924    case $cc_basename in
11925      KCC*)
11926	# Kuck and Associates, Inc. (KAI) C++ Compiler
11927
11928	# KCC will only create a shared library if the output file
11929	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11930	# to its proper name (with version) after linking.
11931	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'
11932	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'
11933	# Commands to make compiler produce verbose output that lists
11934	# what "hidden" libraries, object files and flags are used when
11935	# linking a shared library.
11936	#
11937	# There doesn't appear to be a way to prevent this compiler from
11938	# explicitly linking system object files so we need to strip them
11939	# from the output so that they don't get included in the library
11940	# dependencies.
11941	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'
11942
11943	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11944	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11945
11946	# Archives containing C++ object files must be created using
11947	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11948	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11949	;;
11950      icpc*)
11951	# Intel C++
11952	with_gnu_ld=yes
11953	# version 8.0 and above of icpc choke on multiply defined symbols
11954	# if we add $predep_objects and $postdep_objects, however 7.1 and
11955	# earlier do not add the objects themselves.
11956	case `$CC -V 2>&1` in
11957	*"Version 7."*)
11958  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11959  	  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'
11960	  ;;
11961	*)  # Version 8.0 or newer
11962	  tmp_idyn=
11963	  case $host_cpu in
11964	    ia64*) tmp_idyn=' -i_dynamic';;
11965	  esac
11966  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11967	  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'
11968	  ;;
11969	esac
11970	archive_cmds_need_lc_CXX=no
11971	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11972	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11973	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11974	;;
11975      pgCC* | pgcpp*)
11976        # Portland Group C++ compiler
11977	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11978  	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'
11979
11980	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11981	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11982	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'
11983        ;;
11984      cxx*)
11985	# Compaq C++
11986	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11987	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'
11988
11989	runpath_var=LD_RUN_PATH
11990	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11991	hardcode_libdir_separator_CXX=:
11992
11993	# Commands to make compiler produce verbose output that lists
11994	# what "hidden" libraries, object files and flags are used when
11995	# linking a shared library.
11996	#
11997	# There doesn't appear to be a way to prevent this compiler from
11998	# explicitly linking system object files so we need to strip them
11999	# from the output so that they don't get included in the library
12000	# dependencies.
12001	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'
12002	;;
12003      *)
12004	case `$CC -V 2>&1 | sed 5q` in
12005	*Sun\ C*)
12006	  # Sun C++ 5.9
12007	  no_undefined_flag_CXX=' -zdefs'
12008	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12009	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12010	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12011	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12012
12013	  # Not sure whether something based on
12014	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12015	  # would be better.
12016	  output_verbose_link_cmd='echo'
12017
12018	  # Archives containing C++ object files must be created using
12019	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12020	  # necessary to make sure instantiated templates are included
12021	  # in the archive.
12022	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12023	  ;;
12024	esac
12025	;;
12026    esac
12027    ;;
12028  lynxos*)
12029    # FIXME: insert proper C++ library support
12030    ld_shlibs_CXX=no
12031    ;;
12032  m88k*)
12033    # FIXME: insert proper C++ library support
12034    ld_shlibs_CXX=no
12035    ;;
12036  mvs*)
12037    case $cc_basename in
12038      cxx*)
12039	# FIXME: insert proper C++ library support
12040	ld_shlibs_CXX=no
12041	;;
12042      *)
12043	# FIXME: insert proper C++ library support
12044	ld_shlibs_CXX=no
12045	;;
12046    esac
12047    ;;
12048  netbsd*)
12049    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12050      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12051      wlarc=
12052      hardcode_libdir_flag_spec_CXX='-R$libdir'
12053      hardcode_direct_CXX=yes
12054      hardcode_shlibpath_var_CXX=no
12055    fi
12056    # Workaround some broken pre-1.5 toolchains
12057    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12058    ;;
12059  openbsd2*)
12060    # C++ shared libraries are fairly broken
12061    ld_shlibs_CXX=no
12062    ;;
12063  openbsd*)
12064    if test -f /usr/libexec/ld.so; then
12065      hardcode_direct_CXX=yes
12066      hardcode_shlibpath_var_CXX=no
12067      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12068      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12069      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12070	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12071	export_dynamic_flag_spec_CXX='${wl}-E'
12072	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12073      fi
12074      output_verbose_link_cmd='echo'
12075    else
12076      ld_shlibs_CXX=no
12077    fi
12078    ;;
12079  osf3*)
12080    case $cc_basename in
12081      KCC*)
12082	# Kuck and Associates, Inc. (KAI) C++ Compiler
12083
12084	# KCC will only create a shared library if the output file
12085	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12086	# to its proper name (with version) after linking.
12087	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'
12088
12089	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12090	hardcode_libdir_separator_CXX=:
12091
12092	# Archives containing C++ object files must be created using
12093	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12094	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12095
12096	;;
12097      RCC*)
12098	# Rational C++ 2.4.1
12099	# FIXME: insert proper C++ library support
12100	ld_shlibs_CXX=no
12101	;;
12102      cxx*)
12103	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12104	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'
12105
12106	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12107	hardcode_libdir_separator_CXX=:
12108
12109	# Commands to make compiler produce verbose output that lists
12110	# what "hidden" libraries, object files and flags are used when
12111	# linking a shared library.
12112	#
12113	# There doesn't appear to be a way to prevent this compiler from
12114	# explicitly linking system object files so we need to strip them
12115	# from the output so that they don't get included in the library
12116	# dependencies.
12117	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'
12118	;;
12119      *)
12120	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12121	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12122	  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'
12123
12124	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12125	  hardcode_libdir_separator_CXX=:
12126
12127	  # Commands to make compiler produce verbose output that lists
12128	  # what "hidden" libraries, object files and flags are used when
12129	  # linking a shared library.
12130	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12131
12132	else
12133	  # FIXME: insert proper C++ library support
12134	  ld_shlibs_CXX=no
12135	fi
12136	;;
12137    esac
12138    ;;
12139  osf4* | osf5*)
12140    case $cc_basename in
12141      KCC*)
12142	# Kuck and Associates, Inc. (KAI) C++ Compiler
12143
12144	# KCC will only create a shared library if the output file
12145	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12146	# to its proper name (with version) after linking.
12147	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'
12148
12149	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12150	hardcode_libdir_separator_CXX=:
12151
12152	# Archives containing C++ object files must be created using
12153	# the KAI C++ compiler.
12154	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12155	;;
12156      RCC*)
12157	# Rational C++ 2.4.1
12158	# FIXME: insert proper C++ library support
12159	ld_shlibs_CXX=no
12160	;;
12161      cxx*)
12162	allow_undefined_flag_CXX=' -expect_unresolved \*'
12163	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'
12164	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12165	  echo "-hidden">> $lib.exp~
12166	  $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~
12167	  $rm $lib.exp'
12168
12169	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12170	hardcode_libdir_separator_CXX=:
12171
12172	# Commands to make compiler produce verbose output that lists
12173	# what "hidden" libraries, object files and flags are used when
12174	# linking a shared library.
12175	#
12176	# There doesn't appear to be a way to prevent this compiler from
12177	# explicitly linking system object files so we need to strip them
12178	# from the output so that they don't get included in the library
12179	# dependencies.
12180	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'
12181	;;
12182      *)
12183	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12184	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12185	 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'
12186
12187	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12188	  hardcode_libdir_separator_CXX=:
12189
12190	  # Commands to make compiler produce verbose output that lists
12191	  # what "hidden" libraries, object files and flags are used when
12192	  # linking a shared library.
12193	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12194
12195	else
12196	  # FIXME: insert proper C++ library support
12197	  ld_shlibs_CXX=no
12198	fi
12199	;;
12200    esac
12201    ;;
12202  psos*)
12203    # FIXME: insert proper C++ library support
12204    ld_shlibs_CXX=no
12205    ;;
12206  sunos4*)
12207    case $cc_basename in
12208      CC*)
12209	# Sun C++ 4.x
12210	# FIXME: insert proper C++ library support
12211	ld_shlibs_CXX=no
12212	;;
12213      lcc*)
12214	# Lucid
12215	# FIXME: insert proper C++ library support
12216	ld_shlibs_CXX=no
12217	;;
12218      *)
12219	# FIXME: insert proper C++ library support
12220	ld_shlibs_CXX=no
12221	;;
12222    esac
12223    ;;
12224  solaris*)
12225    case $cc_basename in
12226      CC*)
12227	# Sun C++ 4.2, 5.x and Centerline C++
12228        archive_cmds_need_lc_CXX=yes
12229	no_undefined_flag_CXX=' -zdefs'
12230	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12231	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12232	$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'
12233
12234	hardcode_libdir_flag_spec_CXX='-R$libdir'
12235	hardcode_shlibpath_var_CXX=no
12236	case $host_os in
12237	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12238	  *)
12239	    # The compiler driver will combine and reorder linker options,
12240	    # but understands `-z linker_flag'.
12241	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12242	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12243	    ;;
12244	esac
12245	link_all_deplibs_CXX=yes
12246
12247	output_verbose_link_cmd='echo'
12248
12249	# Archives containing C++ object files must be created using
12250	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12251	# necessary to make sure instantiated templates are included
12252	# in the archive.
12253	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12254	;;
12255      gcx*)
12256	# Green Hills C++ Compiler
12257	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12258
12259	# The C++ compiler must be used to create the archive.
12260	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12261	;;
12262      *)
12263	# GNU C++ compiler with Solaris linker
12264	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12265	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12266	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12267	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12268	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12269		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12270
12271	    # Commands to make compiler produce verbose output that lists
12272	    # what "hidden" libraries, object files and flags are used when
12273	    # linking a shared library.
12274	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12275	  else
12276	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12277	    # platform.
12278	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12279	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12280		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12281
12282	    # Commands to make compiler produce verbose output that lists
12283	    # what "hidden" libraries, object files and flags are used when
12284	    # linking a shared library.
12285	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12286	  fi
12287
12288	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12289	  case $host_os in
12290	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12291	  *)
12292	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12293	    ;;
12294	  esac
12295	fi
12296	;;
12297    esac
12298    ;;
12299  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12300    no_undefined_flag_CXX='${wl}-z,text'
12301    archive_cmds_need_lc_CXX=no
12302    hardcode_shlibpath_var_CXX=no
12303    runpath_var='LD_RUN_PATH'
12304
12305    case $cc_basename in
12306      CC*)
12307	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12308	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12309	;;
12310      *)
12311	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12312	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12313	;;
12314    esac
12315    ;;
12316  sysv5* | sco3.2v5* | sco5v6*)
12317    # Note: We can NOT use -z defs as we might desire, because we do not
12318    # link with -lc, and that would cause any symbols used from libc to
12319    # always be unresolved, which means just about no library would
12320    # ever link correctly.  If we're not using GNU ld we use -z text
12321    # though, which does catch some bad symbols but isn't as heavy-handed
12322    # as -z defs.
12323    # For security reasons, it is highly recommended that you always
12324    # use absolute paths for naming shared libraries, and exclude the
12325    # DT_RUNPATH tag from executables and libraries.  But doing so
12326    # requires that you compile everything twice, which is a pain.
12327    # So that behaviour is only enabled if SCOABSPATH is set to a
12328    # non-empty value in the environment.  Most likely only useful for
12329    # creating official distributions of packages.
12330    # This is a hack until libtool officially supports absolute path
12331    # names for shared libraries.
12332    no_undefined_flag_CXX='${wl}-z,text'
12333    allow_undefined_flag_CXX='${wl}-z,nodefs'
12334    archive_cmds_need_lc_CXX=no
12335    hardcode_shlibpath_var_CXX=no
12336    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12337    hardcode_libdir_separator_CXX=':'
12338    link_all_deplibs_CXX=yes
12339    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12340    runpath_var='LD_RUN_PATH'
12341
12342    case $cc_basename in
12343      CC*)
12344	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12345	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12346	;;
12347      *)
12348	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12349	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12350	;;
12351    esac
12352    ;;
12353  tandem*)
12354    case $cc_basename in
12355      NCC*)
12356	# NonStop-UX NCC 3.20
12357	# FIXME: insert proper C++ library support
12358	ld_shlibs_CXX=no
12359	;;
12360      *)
12361	# FIXME: insert proper C++ library support
12362	ld_shlibs_CXX=no
12363	;;
12364    esac
12365    ;;
12366  vxworks*)
12367    # FIXME: insert proper C++ library support
12368    ld_shlibs_CXX=no
12369    ;;
12370  *)
12371    # FIXME: insert proper C++ library support
12372    ld_shlibs_CXX=no
12373    ;;
12374esac
12375{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12376$as_echo "$ld_shlibs_CXX" >&6; }
12377test "$ld_shlibs_CXX" = no && can_build_shared=no
12378
12379GCC_CXX="$GXX"
12380LD_CXX="$LD"
12381
12382cat > conftest.$ac_ext <<EOF
12383class Foo
12384{
12385public:
12386  Foo (void) { a = 0; }
12387private:
12388  int a;
12389};
12390EOF
12391
12392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12393  (eval $ac_compile) 2>&5
12394  ac_status=$?
12395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396  (exit $ac_status); }; then
12397  # Parse the compiler output and extract the necessary
12398  # objects, libraries and library flags.
12399
12400  # Sentinel used to keep track of whether or not we are before
12401  # the conftest object file.
12402  pre_test_object_deps_done=no
12403
12404  # The `*' in the case matches for architectures that use `case' in
12405  # $output_verbose_cmd can trigger glob expansion during the loop
12406  # eval without this substitution.
12407  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12408
12409  for p in `eval $output_verbose_link_cmd`; do
12410    case $p in
12411
12412    -L* | -R* | -l*)
12413       # Some compilers place space between "-{L,R}" and the path.
12414       # Remove the space.
12415       if test $p = "-L" \
12416	  || test $p = "-R"; then
12417	 prev=$p
12418	 continue
12419       else
12420	 prev=
12421       fi
12422
12423       if test "$pre_test_object_deps_done" = no; then
12424	 case $p in
12425	 -L* | -R*)
12426	   # Internal compiler library paths should come after those
12427	   # provided the user.  The postdeps already come after the
12428	   # user supplied libs so there is no need to process them.
12429	   if test -z "$compiler_lib_search_path_CXX"; then
12430	     compiler_lib_search_path_CXX="${prev}${p}"
12431	   else
12432	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12433	   fi
12434	   ;;
12435	 # The "-l" case would never come before the object being
12436	 # linked, so don't bother handling this case.
12437	 esac
12438       else
12439	 if test -z "$postdeps_CXX"; then
12440	   postdeps_CXX="${prev}${p}"
12441	 else
12442	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12443	 fi
12444       fi
12445       ;;
12446
12447    *.$objext)
12448       # This assumes that the test object file only shows up
12449       # once in the compiler output.
12450       if test "$p" = "conftest.$objext"; then
12451	 pre_test_object_deps_done=yes
12452	 continue
12453       fi
12454
12455       if test "$pre_test_object_deps_done" = no; then
12456	 if test -z "$predep_objects_CXX"; then
12457	   predep_objects_CXX="$p"
12458	 else
12459	   predep_objects_CXX="$predep_objects_CXX $p"
12460	 fi
12461       else
12462	 if test -z "$postdep_objects_CXX"; then
12463	   postdep_objects_CXX="$p"
12464	 else
12465	   postdep_objects_CXX="$postdep_objects_CXX $p"
12466	 fi
12467       fi
12468       ;;
12469
12470    *) ;; # Ignore the rest.
12471
12472    esac
12473  done
12474
12475  # Clean up.
12476  rm -f a.out a.exe
12477else
12478  echo "libtool.m4: error: problem compiling CXX test program"
12479fi
12480
12481$rm -f confest.$objext
12482
12483compiler_lib_search_dirs_CXX=
12484if test -n "$compiler_lib_search_path_CXX"; then
12485  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12486fi
12487
12488# PORTME: override above test on systems where it is broken
12489case $host_os in
12490interix[3-9]*)
12491  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12492  # hack all around it, let's just trust "g++" to DTRT.
12493  predep_objects_CXX=
12494  postdep_objects_CXX=
12495  postdeps_CXX=
12496  ;;
12497
12498linux*)
12499  case `$CC -V 2>&1 | sed 5q` in
12500  *Sun\ C*)
12501    # Sun C++ 5.9
12502    #
12503    # The more standards-conforming stlport4 library is
12504    # incompatible with the Cstd library. Avoid specifying
12505    # it if it's in CXXFLAGS. Ignore libCrun as
12506    # -library=stlport4 depends on it.
12507    case " $CXX $CXXFLAGS " in
12508    *" -library=stlport4 "*)
12509      solaris_use_stlport4=yes
12510      ;;
12511    esac
12512    if test "$solaris_use_stlport4" != yes; then
12513      postdeps_CXX='-library=Cstd -library=Crun'
12514    fi
12515    ;;
12516  esac
12517  ;;
12518
12519solaris*)
12520  case $cc_basename in
12521  CC*)
12522    # The more standards-conforming stlport4 library is
12523    # incompatible with the Cstd library. Avoid specifying
12524    # it if it's in CXXFLAGS. Ignore libCrun as
12525    # -library=stlport4 depends on it.
12526    case " $CXX $CXXFLAGS " in
12527    *" -library=stlport4 "*)
12528      solaris_use_stlport4=yes
12529      ;;
12530    esac
12531
12532    # Adding this requires a known-good setup of shared libraries for
12533    # Sun compiler versions before 5.6, else PIC objects from an old
12534    # archive will be linked into the output, leading to subtle bugs.
12535    if test "$solaris_use_stlport4" != yes; then
12536      postdeps_CXX='-library=Cstd -library=Crun'
12537    fi
12538    ;;
12539  esac
12540  ;;
12541esac
12542
12543case " $postdeps_CXX " in
12544*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12545esac
12546
12547lt_prog_compiler_wl_CXX=
12548lt_prog_compiler_pic_CXX=
12549lt_prog_compiler_static_CXX=
12550
12551{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12552$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12553
12554  # C++ specific cases for pic, static, wl, etc.
12555  if test "$GXX" = yes; then
12556    lt_prog_compiler_wl_CXX='-Wl,'
12557    lt_prog_compiler_static_CXX='-static'
12558
12559    case $host_os in
12560    aix*)
12561      # All AIX code is PIC.
12562      if test "$host_cpu" = ia64; then
12563	# AIX 5 now supports IA64 processor
12564	lt_prog_compiler_static_CXX='-Bstatic'
12565      fi
12566      ;;
12567    amigaos*)
12568      # FIXME: we need at least 68020 code to build shared libraries, but
12569      # adding the `-m68020' flag to GCC prevents building anything better,
12570      # like `-m68040'.
12571      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12572      ;;
12573    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12574      # PIC is the default for these OSes.
12575      ;;
12576    mingw* | cygwin* | os2* | pw32*)
12577      # This hack is so that the source file can tell whether it is being
12578      # built for inclusion in a dll (and should export symbols for example).
12579      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12580      # (--disable-auto-import) libraries
12581      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12582      ;;
12583    darwin* | rhapsody*)
12584      # PIC is the default on this platform
12585      # Common symbols not allowed in MH_DYLIB files
12586      lt_prog_compiler_pic_CXX='-fno-common'
12587      ;;
12588    *djgpp*)
12589      # DJGPP does not support shared libraries at all
12590      lt_prog_compiler_pic_CXX=
12591      ;;
12592    interix[3-9]*)
12593      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12594      # Instead, we relocate shared libraries at runtime.
12595      ;;
12596    sysv4*MP*)
12597      if test -d /usr/nec; then
12598	lt_prog_compiler_pic_CXX=-Kconform_pic
12599      fi
12600      ;;
12601    hpux*)
12602      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12603      # not for PA HP-UX.
12604      case $host_cpu in
12605      hppa*64*|ia64*)
12606	;;
12607      *)
12608	lt_prog_compiler_pic_CXX='-fPIC'
12609	;;
12610      esac
12611      ;;
12612    *)
12613      lt_prog_compiler_pic_CXX='-fPIC'
12614      ;;
12615    esac
12616  else
12617    case $host_os in
12618      aix[4-9]*)
12619	# All AIX code is PIC.
12620	if test "$host_cpu" = ia64; then
12621	  # AIX 5 now supports IA64 processor
12622	  lt_prog_compiler_static_CXX='-Bstatic'
12623	else
12624	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12625	fi
12626	;;
12627      chorus*)
12628	case $cc_basename in
12629	cxch68*)
12630	  # Green Hills C++ Compiler
12631	  # _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"
12632	  ;;
12633	esac
12634	;;
12635       darwin*)
12636         # PIC is the default on this platform
12637         # Common symbols not allowed in MH_DYLIB files
12638         case $cc_basename in
12639           xlc*)
12640           lt_prog_compiler_pic_CXX='-qnocommon'
12641           lt_prog_compiler_wl_CXX='-Wl,'
12642           ;;
12643         esac
12644       ;;
12645      dgux*)
12646	case $cc_basename in
12647	  ec++*)
12648	    lt_prog_compiler_pic_CXX='-KPIC'
12649	    ;;
12650	  ghcx*)
12651	    # Green Hills C++ Compiler
12652	    lt_prog_compiler_pic_CXX='-pic'
12653	    ;;
12654	  *)
12655	    ;;
12656	esac
12657	;;
12658      freebsd* | dragonfly*)
12659	# FreeBSD uses GNU C++
12660	;;
12661      hpux9* | hpux10* | hpux11*)
12662	case $cc_basename in
12663	  CC*)
12664	    lt_prog_compiler_wl_CXX='-Wl,'
12665	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12666	    if test "$host_cpu" != ia64; then
12667	      lt_prog_compiler_pic_CXX='+Z'
12668	    fi
12669	    ;;
12670	  aCC*)
12671	    lt_prog_compiler_wl_CXX='-Wl,'
12672	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12673	    case $host_cpu in
12674	    hppa*64*|ia64*)
12675	      # +Z the default
12676	      ;;
12677	    *)
12678	      lt_prog_compiler_pic_CXX='+Z'
12679	      ;;
12680	    esac
12681	    ;;
12682	  *)
12683	    ;;
12684	esac
12685	;;
12686      interix*)
12687	# This is c89, which is MS Visual C++ (no shared libs)
12688	# Anyone wants to do a port?
12689	;;
12690      irix5* | irix6* | nonstopux*)
12691	case $cc_basename in
12692	  CC*)
12693	    lt_prog_compiler_wl_CXX='-Wl,'
12694	    lt_prog_compiler_static_CXX='-non_shared'
12695	    # CC pic flag -KPIC is the default.
12696	    ;;
12697	  *)
12698	    ;;
12699	esac
12700	;;
12701      linux* | k*bsd*-gnu)
12702	case $cc_basename in
12703	  KCC*)
12704	    # KAI C++ Compiler
12705	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12706	    lt_prog_compiler_pic_CXX='-fPIC'
12707	    ;;
12708	  icpc* | ecpc*)
12709	    # Intel C++
12710	    lt_prog_compiler_wl_CXX='-Wl,'
12711	    lt_prog_compiler_pic_CXX='-KPIC'
12712	    lt_prog_compiler_static_CXX='-static'
12713	    ;;
12714	  pgCC* | pgcpp*)
12715	    # Portland Group C++ compiler.
12716	    lt_prog_compiler_wl_CXX='-Wl,'
12717	    lt_prog_compiler_pic_CXX='-fpic'
12718	    lt_prog_compiler_static_CXX='-Bstatic'
12719	    ;;
12720	  cxx*)
12721	    # Compaq C++
12722	    # Make sure the PIC flag is empty.  It appears that all Alpha
12723	    # Linux and Compaq Tru64 Unix objects are PIC.
12724	    lt_prog_compiler_pic_CXX=
12725	    lt_prog_compiler_static_CXX='-non_shared'
12726	    ;;
12727	  *)
12728	    case `$CC -V 2>&1 | sed 5q` in
12729	    *Sun\ C*)
12730	      # Sun C++ 5.9
12731	      lt_prog_compiler_pic_CXX='-KPIC'
12732	      lt_prog_compiler_static_CXX='-Bstatic'
12733	      lt_prog_compiler_wl_CXX='-Qoption ld '
12734	      ;;
12735	    esac
12736	    ;;
12737	esac
12738	;;
12739      lynxos*)
12740	;;
12741      m88k*)
12742	;;
12743      mvs*)
12744	case $cc_basename in
12745	  cxx*)
12746	    lt_prog_compiler_pic_CXX='-W c,exportall'
12747	    ;;
12748	  *)
12749	    ;;
12750	esac
12751	;;
12752      netbsd*)
12753	;;
12754      osf3* | osf4* | osf5*)
12755	case $cc_basename in
12756	  KCC*)
12757	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12758	    ;;
12759	  RCC*)
12760	    # Rational C++ 2.4.1
12761	    lt_prog_compiler_pic_CXX='-pic'
12762	    ;;
12763	  cxx*)
12764	    # Digital/Compaq C++
12765	    lt_prog_compiler_wl_CXX='-Wl,'
12766	    # Make sure the PIC flag is empty.  It appears that all Alpha
12767	    # Linux and Compaq Tru64 Unix objects are PIC.
12768	    lt_prog_compiler_pic_CXX=
12769	    lt_prog_compiler_static_CXX='-non_shared'
12770	    ;;
12771	  *)
12772	    ;;
12773	esac
12774	;;
12775      psos*)
12776	;;
12777      solaris*)
12778	case $cc_basename in
12779	  CC*)
12780	    # Sun C++ 4.2, 5.x and Centerline C++
12781	    lt_prog_compiler_pic_CXX='-KPIC'
12782	    lt_prog_compiler_static_CXX='-Bstatic'
12783	    lt_prog_compiler_wl_CXX='-Qoption ld '
12784	    ;;
12785	  gcx*)
12786	    # Green Hills C++ Compiler
12787	    lt_prog_compiler_pic_CXX='-PIC'
12788	    ;;
12789	  *)
12790	    ;;
12791	esac
12792	;;
12793      sunos4*)
12794	case $cc_basename in
12795	  CC*)
12796	    # Sun C++ 4.x
12797	    lt_prog_compiler_pic_CXX='-pic'
12798	    lt_prog_compiler_static_CXX='-Bstatic'
12799	    ;;
12800	  lcc*)
12801	    # Lucid
12802	    lt_prog_compiler_pic_CXX='-pic'
12803	    ;;
12804	  *)
12805	    ;;
12806	esac
12807	;;
12808      tandem*)
12809	case $cc_basename in
12810	  NCC*)
12811	    # NonStop-UX NCC 3.20
12812	    lt_prog_compiler_pic_CXX='-KPIC'
12813	    ;;
12814	  *)
12815	    ;;
12816	esac
12817	;;
12818      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12819	case $cc_basename in
12820	  CC*)
12821	    lt_prog_compiler_wl_CXX='-Wl,'
12822	    lt_prog_compiler_pic_CXX='-KPIC'
12823	    lt_prog_compiler_static_CXX='-Bstatic'
12824	    ;;
12825	esac
12826	;;
12827      vxworks*)
12828	;;
12829      *)
12830	lt_prog_compiler_can_build_shared_CXX=no
12831	;;
12832    esac
12833  fi
12834
12835{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12836$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12837
12838#
12839# Check to make sure the PIC flag actually works.
12840#
12841if test -n "$lt_prog_compiler_pic_CXX"; then
12842
12843{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12844$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12845if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12846  $as_echo_n "(cached) " >&6
12847else
12848  lt_cv_prog_compiler_pic_works_CXX=no
12849  ac_outfile=conftest.$ac_objext
12850   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12851   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12852   # Insert the option either (1) after the last *FLAGS variable, or
12853   # (2) before a word containing "conftest.", or (3) at the end.
12854   # Note that $ac_compile itself does not contain backslashes and begins
12855   # with a dollar sign (not a hyphen), so the echo should work correctly.
12856   # The option is referenced via a variable to avoid confusing sed.
12857   lt_compile=`echo "$ac_compile" | $SED \
12858   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12859   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12860   -e 's:$: $lt_compiler_flag:'`
12861   (eval echo "\"\$as_me:12861: $lt_compile\"" >&5)
12862   (eval "$lt_compile" 2>conftest.err)
12863   ac_status=$?
12864   cat conftest.err >&5
12865   echo "$as_me:12865: \$? = $ac_status" >&5
12866   if (exit $ac_status) && test -s "$ac_outfile"; then
12867     # The compiler can only warn and ignore the option if not recognized
12868     # So say no if there are warnings other than the usual output.
12869     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12870     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12871     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12872       lt_cv_prog_compiler_pic_works_CXX=yes
12873     fi
12874   fi
12875   $rm conftest*
12876
12877fi
12878{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12879$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12880
12881if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12882    case $lt_prog_compiler_pic_CXX in
12883     "" | " "*) ;;
12884     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12885     esac
12886else
12887    lt_prog_compiler_pic_CXX=
12888     lt_prog_compiler_can_build_shared_CXX=no
12889fi
12890
12891fi
12892case $host_os in
12893  # For platforms which do not support PIC, -DPIC is meaningless:
12894  *djgpp*)
12895    lt_prog_compiler_pic_CXX=
12896    ;;
12897  *)
12898    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12899    ;;
12900esac
12901
12902#
12903# Check to make sure the static flag actually works.
12904#
12905wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12906{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12907$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12908if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12909  $as_echo_n "(cached) " >&6
12910else
12911  lt_cv_prog_compiler_static_works_CXX=no
12912   save_LDFLAGS="$LDFLAGS"
12913   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12914   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12915   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12916     # The linker can only warn and ignore the option if not recognized
12917     # So say no if there are warnings
12918     if test -s conftest.err; then
12919       # Append any errors to the config.log.
12920       cat conftest.err 1>&5
12921       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12922       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12923       if diff conftest.exp conftest.er2 >/dev/null; then
12924         lt_cv_prog_compiler_static_works_CXX=yes
12925       fi
12926     else
12927       lt_cv_prog_compiler_static_works_CXX=yes
12928     fi
12929   fi
12930   $rm -r conftest*
12931   LDFLAGS="$save_LDFLAGS"
12932
12933fi
12934{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12935$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12936
12937if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12938    :
12939else
12940    lt_prog_compiler_static_CXX=
12941fi
12942
12943
12944{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12945$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12946if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12947  $as_echo_n "(cached) " >&6
12948else
12949  lt_cv_prog_compiler_c_o_CXX=no
12950   $rm -r conftest 2>/dev/null
12951   mkdir conftest
12952   cd conftest
12953   mkdir out
12954   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12955
12956   lt_compiler_flag="-o out/conftest2.$ac_objext"
12957   # Insert the option either (1) after the last *FLAGS variable, or
12958   # (2) before a word containing "conftest.", or (3) at the end.
12959   # Note that $ac_compile itself does not contain backslashes and begins
12960   # with a dollar sign (not a hyphen), so the echo should work correctly.
12961   lt_compile=`echo "$ac_compile" | $SED \
12962   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12963   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12964   -e 's:$: $lt_compiler_flag:'`
12965   (eval echo "\"\$as_me:12965: $lt_compile\"" >&5)
12966   (eval "$lt_compile" 2>out/conftest.err)
12967   ac_status=$?
12968   cat out/conftest.err >&5
12969   echo "$as_me:12969: \$? = $ac_status" >&5
12970   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12971   then
12972     # The compiler can only warn and ignore the option if not recognized
12973     # So say no if there are warnings
12974     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12975     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12976     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12977       lt_cv_prog_compiler_c_o_CXX=yes
12978     fi
12979   fi
12980   chmod u+w . 2>&5
12981   $rm conftest*
12982   # SGI C++ compiler will create directory out/ii_files/ for
12983   # template instantiation
12984   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12985   $rm out/* && rmdir out
12986   cd ..
12987   rmdir conftest
12988   $rm conftest*
12989
12990fi
12991{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12992$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12993
12994
12995hard_links="nottested"
12996if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12997  # do not overwrite the value of need_locks provided by the user
12998  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12999$as_echo_n "checking if we can lock with hard links... " >&6; }
13000  hard_links=yes
13001  $rm conftest*
13002  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13003  touch conftest.a
13004  ln conftest.a conftest.b 2>&5 || hard_links=no
13005  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13006  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13007$as_echo "$hard_links" >&6; }
13008  if test "$hard_links" = no; then
13009    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13010$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13011    need_locks=warn
13012  fi
13013else
13014  need_locks=no
13015fi
13016
13017{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13018$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13019
13020  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13021  case $host_os in
13022  aix[4-9]*)
13023    # If we're using GNU nm, then we don't want the "-C" option.
13024    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13025    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13026      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'
13027    else
13028      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'
13029    fi
13030    ;;
13031  pw32*)
13032    export_symbols_cmds_CXX="$ltdll_cmds"
13033  ;;
13034  cygwin* | mingw*)
13035    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'
13036  ;;
13037  *)
13038    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13039  ;;
13040  esac
13041  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13042
13043{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13044$as_echo "$ld_shlibs_CXX" >&6; }
13045test "$ld_shlibs_CXX" = no && can_build_shared=no
13046
13047#
13048# Do we need to explicitly link libc?
13049#
13050case "x$archive_cmds_need_lc_CXX" in
13051x|xyes)
13052  # Assume -lc should be added
13053  archive_cmds_need_lc_CXX=yes
13054
13055  if test "$enable_shared" = yes && test "$GCC" = yes; then
13056    case $archive_cmds_CXX in
13057    *'~'*)
13058      # FIXME: we may have to deal with multi-command sequences.
13059      ;;
13060    '$CC '*)
13061      # Test whether the compiler implicitly links with -lc since on some
13062      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13063      # to ld, don't add -lc before -lgcc.
13064      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13065$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13066      $rm conftest*
13067      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13068
13069      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13070  (eval $ac_compile) 2>&5
13071  ac_status=$?
13072  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073  (exit $ac_status); } 2>conftest.err; then
13074        soname=conftest
13075        lib=conftest
13076        libobjs=conftest.$ac_objext
13077        deplibs=
13078        wl=$lt_prog_compiler_wl_CXX
13079	pic_flag=$lt_prog_compiler_pic_CXX
13080        compiler_flags=-v
13081        linker_flags=-v
13082        verstring=
13083        output_objdir=.
13084        libname=conftest
13085        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13086        allow_undefined_flag_CXX=
13087        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13088  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13089  ac_status=$?
13090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091  (exit $ac_status); }
13092        then
13093	  archive_cmds_need_lc_CXX=no
13094        else
13095	  archive_cmds_need_lc_CXX=yes
13096        fi
13097        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13098      else
13099        cat conftest.err 1>&5
13100      fi
13101      $rm conftest*
13102      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13103$as_echo "$archive_cmds_need_lc_CXX" >&6; }
13104      ;;
13105    esac
13106  fi
13107  ;;
13108esac
13109
13110{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13111$as_echo_n "checking dynamic linker characteristics... " >&6; }
13112library_names_spec=
13113libname_spec='lib$name'
13114soname_spec=
13115shrext_cmds=".so"
13116postinstall_cmds=
13117postuninstall_cmds=
13118finish_cmds=
13119finish_eval=
13120shlibpath_var=
13121shlibpath_overrides_runpath=unknown
13122version_type=none
13123dynamic_linker="$host_os ld.so"
13124sys_lib_dlsearch_path_spec="/lib /usr/lib"
13125
13126need_lib_prefix=unknown
13127hardcode_into_libs=no
13128
13129# when you set need_version to no, make sure it does not cause -set_version
13130# flags to be left without arguments
13131need_version=unknown
13132
13133case $host_os in
13134aix3*)
13135  version_type=linux
13136  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13137  shlibpath_var=LIBPATH
13138
13139  # AIX 3 has no versioning support, so we append a major version to the name.
13140  soname_spec='${libname}${release}${shared_ext}$major'
13141  ;;
13142
13143aix[4-9]*)
13144  version_type=linux
13145  need_lib_prefix=no
13146  need_version=no
13147  hardcode_into_libs=yes
13148  if test "$host_cpu" = ia64; then
13149    # AIX 5 supports IA64
13150    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13151    shlibpath_var=LD_LIBRARY_PATH
13152  else
13153    # With GCC up to 2.95.x, collect2 would create an import file
13154    # for dependence libraries.  The import file would start with
13155    # the line `#! .'.  This would cause the generated library to
13156    # depend on `.', always an invalid library.  This was fixed in
13157    # development snapshots of GCC prior to 3.0.
13158    case $host_os in
13159      aix4 | aix4.[01] | aix4.[01].*)
13160      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13161	   echo ' yes '
13162	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13163	:
13164      else
13165	can_build_shared=no
13166      fi
13167      ;;
13168    esac
13169    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13170    # soname into executable. Probably we can add versioning support to
13171    # collect2, so additional links can be useful in future.
13172    if test "$aix_use_runtimelinking" = yes; then
13173      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13174      # instead of lib<name>.a to let people know that these are not
13175      # typical AIX shared libraries.
13176      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177    else
13178      # We preserve .a as extension for shared libraries through AIX4.2
13179      # and later when we are not doing run time linking.
13180      library_names_spec='${libname}${release}.a $libname.a'
13181      soname_spec='${libname}${release}${shared_ext}$major'
13182    fi
13183    shlibpath_var=LIBPATH
13184  fi
13185  ;;
13186
13187amigaos*)
13188  library_names_spec='$libname.ixlibrary $libname.a'
13189  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13190  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'
13191  ;;
13192
13193beos*)
13194  library_names_spec='${libname}${shared_ext}'
13195  dynamic_linker="$host_os ld.so"
13196  shlibpath_var=LIBRARY_PATH
13197  ;;
13198
13199bsdi[45]*)
13200  version_type=linux
13201  need_version=no
13202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203  soname_spec='${libname}${release}${shared_ext}$major'
13204  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13205  shlibpath_var=LD_LIBRARY_PATH
13206  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13207  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13208  # the default ld.so.conf also contains /usr/contrib/lib and
13209  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13210  # libtool to hard-code these into programs
13211  ;;
13212
13213cygwin* | mingw* | pw32*)
13214  version_type=windows
13215  shrext_cmds=".dll"
13216  need_version=no
13217  need_lib_prefix=no
13218
13219  case $GCC,$host_os in
13220  yes,cygwin* | yes,mingw* | yes,pw32*)
13221    library_names_spec='$libname.dll.a'
13222    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13223    postinstall_cmds='base_file=`basename \${file}`~
13224      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13225      dldir=$destdir/`dirname \$dlpath`~
13226      test -d \$dldir || mkdir -p \$dldir~
13227      $install_prog $dir/$dlname \$dldir/$dlname~
13228      chmod a+x \$dldir/$dlname'
13229    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13230      dlpath=$dir/\$dldll~
13231       $rm \$dlpath'
13232    shlibpath_overrides_runpath=yes
13233
13234    case $host_os in
13235    cygwin*)
13236      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13237      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13238      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13239      ;;
13240    mingw*)
13241      # MinGW DLLs use traditional 'lib' prefix
13242      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13243      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13244      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13245        # It is most probably a Windows format PATH printed by
13246        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13247        # path with ; separators, and with drive letters. We can handle the
13248        # drive letters (cygwin fileutils understands them), so leave them,
13249        # especially as we might pass files found there to a mingw objdump,
13250        # which wouldn't understand a cygwinified path. Ahh.
13251        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13252      else
13253        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13254      fi
13255      ;;
13256    pw32*)
13257      # pw32 DLLs use 'pw' prefix rather than 'lib'
13258      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13259      ;;
13260    esac
13261    ;;
13262
13263  *)
13264    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13265    ;;
13266  esac
13267  dynamic_linker='Win32 ld.exe'
13268  # FIXME: first we should search . and the directory the executable is in
13269  shlibpath_var=PATH
13270  ;;
13271
13272darwin* | rhapsody*)
13273  dynamic_linker="$host_os dyld"
13274  version_type=darwin
13275  need_lib_prefix=no
13276  need_version=no
13277  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13278  soname_spec='${libname}${release}${major}$shared_ext'
13279  shlibpath_overrides_runpath=yes
13280  shlibpath_var=DYLD_LIBRARY_PATH
13281  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13282
13283  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13284  ;;
13285
13286dgux*)
13287  version_type=linux
13288  need_lib_prefix=no
13289  need_version=no
13290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13291  soname_spec='${libname}${release}${shared_ext}$major'
13292  shlibpath_var=LD_LIBRARY_PATH
13293  ;;
13294
13295freebsd1*)
13296  dynamic_linker=no
13297  ;;
13298
13299freebsd* | dragonfly*)
13300  # DragonFly does not have aout.  When/if they implement a new
13301  # versioning mechanism, adjust this.
13302  if test -x /usr/bin/objformat; then
13303    objformat=`/usr/bin/objformat`
13304  else
13305    case $host_os in
13306    freebsd[123]*) objformat=aout ;;
13307    *) objformat=elf ;;
13308    esac
13309  fi
13310  version_type=freebsd-$objformat
13311  case $version_type in
13312    freebsd-elf*)
13313      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13314      need_version=no
13315      need_lib_prefix=no
13316      ;;
13317    freebsd-*)
13318      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13319      need_version=yes
13320      ;;
13321  esac
13322  shlibpath_var=LD_LIBRARY_PATH
13323  case $host_os in
13324  freebsd2*)
13325    shlibpath_overrides_runpath=yes
13326    ;;
13327  freebsd3.[01]* | freebsdelf3.[01]*)
13328    shlibpath_overrides_runpath=yes
13329    hardcode_into_libs=yes
13330    ;;
13331  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13332  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13333    shlibpath_overrides_runpath=no
13334    hardcode_into_libs=yes
13335    ;;
13336  *) # from 4.6 on, and DragonFly
13337    shlibpath_overrides_runpath=yes
13338    hardcode_into_libs=yes
13339    ;;
13340  esac
13341  ;;
13342
13343gnu*)
13344  version_type=linux
13345  need_lib_prefix=no
13346  need_version=no
13347  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13348  soname_spec='${libname}${release}${shared_ext}$major'
13349  shlibpath_var=LD_LIBRARY_PATH
13350  hardcode_into_libs=yes
13351  ;;
13352
13353hpux9* | hpux10* | hpux11*)
13354  # Give a soname corresponding to the major version so that dld.sl refuses to
13355  # link against other versions.
13356  version_type=sunos
13357  need_lib_prefix=no
13358  need_version=no
13359  case $host_cpu in
13360  ia64*)
13361    shrext_cmds='.so'
13362    hardcode_into_libs=yes
13363    dynamic_linker="$host_os dld.so"
13364    shlibpath_var=LD_LIBRARY_PATH
13365    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13367    soname_spec='${libname}${release}${shared_ext}$major'
13368    if test "X$HPUX_IA64_MODE" = X32; then
13369      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13370    else
13371      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13372    fi
13373    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13374    ;;
13375   hppa*64*)
13376     shrext_cmds='.sl'
13377     hardcode_into_libs=yes
13378     dynamic_linker="$host_os dld.sl"
13379     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13380     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13381     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13382     soname_spec='${libname}${release}${shared_ext}$major'
13383     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13384     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13385     ;;
13386   *)
13387    shrext_cmds='.sl'
13388    dynamic_linker="$host_os dld.sl"
13389    shlibpath_var=SHLIB_PATH
13390    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13391    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13392    soname_spec='${libname}${release}${shared_ext}$major'
13393    ;;
13394  esac
13395  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13396  postinstall_cmds='chmod 555 $lib'
13397  ;;
13398
13399interix[3-9]*)
13400  version_type=linux
13401  need_lib_prefix=no
13402  need_version=no
13403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13404  soname_spec='${libname}${release}${shared_ext}$major'
13405  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13406  shlibpath_var=LD_LIBRARY_PATH
13407  shlibpath_overrides_runpath=no
13408  hardcode_into_libs=yes
13409  ;;
13410
13411irix5* | irix6* | nonstopux*)
13412  case $host_os in
13413    nonstopux*) version_type=nonstopux ;;
13414    *)
13415	if test "$lt_cv_prog_gnu_ld" = yes; then
13416		version_type=linux
13417	else
13418		version_type=irix
13419	fi ;;
13420  esac
13421  need_lib_prefix=no
13422  need_version=no
13423  soname_spec='${libname}${release}${shared_ext}$major'
13424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13425  case $host_os in
13426  irix5* | nonstopux*)
13427    libsuff= shlibsuff=
13428    ;;
13429  *)
13430    case $LD in # libtool.m4 will add one of these switches to LD
13431    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13432      libsuff= shlibsuff= libmagic=32-bit;;
13433    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13434      libsuff=32 shlibsuff=N32 libmagic=N32;;
13435    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13436      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13437    *) libsuff= shlibsuff= libmagic=never-match;;
13438    esac
13439    ;;
13440  esac
13441  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13442  shlibpath_overrides_runpath=no
13443  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13444  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13445  hardcode_into_libs=yes
13446  ;;
13447
13448# No shared lib support for Linux oldld, aout, or coff.
13449linux*oldld* | linux*aout* | linux*coff*)
13450  dynamic_linker=no
13451  ;;
13452
13453# This must be Linux ELF.
13454linux* | k*bsd*-gnu)
13455  version_type=linux
13456  need_lib_prefix=no
13457  need_version=no
13458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13459  soname_spec='${libname}${release}${shared_ext}$major'
13460  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13461  shlibpath_var=LD_LIBRARY_PATH
13462  shlibpath_overrides_runpath=no
13463  # This implies no fast_install, which is unacceptable.
13464  # Some rework will be needed to allow for fast_install
13465  # before this can be enabled.
13466  hardcode_into_libs=yes
13467
13468  # Append ld.so.conf contents to the search path
13469  if test -f /etc/ld.so.conf; then
13470    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13471    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13472  fi
13473
13474  # We used to test for /lib/ld.so.1 and disable shared libraries on
13475  # powerpc, because MkLinux only supported shared libraries with the
13476  # GNU dynamic linker.  Since this was broken with cross compilers,
13477  # most powerpc-linux boxes support dynamic linking these days and
13478  # people can always --disable-shared, the test was removed, and we
13479  # assume the GNU/Linux dynamic linker is in use.
13480  dynamic_linker='GNU/Linux ld.so'
13481  ;;
13482
13483netbsd*)
13484  version_type=sunos
13485  need_lib_prefix=no
13486  need_version=no
13487  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13488    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13489    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13490    dynamic_linker='NetBSD (a.out) ld.so'
13491  else
13492    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13493    soname_spec='${libname}${release}${shared_ext}$major'
13494    dynamic_linker='NetBSD ld.elf_so'
13495  fi
13496  shlibpath_var=LD_LIBRARY_PATH
13497  shlibpath_overrides_runpath=yes
13498  hardcode_into_libs=yes
13499  ;;
13500
13501newsos6)
13502  version_type=linux
13503  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13504  shlibpath_var=LD_LIBRARY_PATH
13505  shlibpath_overrides_runpath=yes
13506  ;;
13507
13508nto-qnx*)
13509  version_type=linux
13510  need_lib_prefix=no
13511  need_version=no
13512  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13513  soname_spec='${libname}${release}${shared_ext}$major'
13514  shlibpath_var=LD_LIBRARY_PATH
13515  shlibpath_overrides_runpath=yes
13516  ;;
13517
13518openbsd*)
13519  version_type=sunos
13520  sys_lib_dlsearch_path_spec="/usr/lib"
13521  need_lib_prefix=no
13522  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13523  case $host_os in
13524    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13525    *)                         need_version=no  ;;
13526  esac
13527  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13528  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13529  shlibpath_var=LD_LIBRARY_PATH
13530  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13531    case $host_os in
13532      openbsd2.[89] | openbsd2.[89].*)
13533	shlibpath_overrides_runpath=no
13534	;;
13535      *)
13536	shlibpath_overrides_runpath=yes
13537	;;
13538      esac
13539  else
13540    shlibpath_overrides_runpath=yes
13541  fi
13542  ;;
13543
13544os2*)
13545  libname_spec='$name'
13546  shrext_cmds=".dll"
13547  need_lib_prefix=no
13548  library_names_spec='$libname${shared_ext} $libname.a'
13549  dynamic_linker='OS/2 ld.exe'
13550  shlibpath_var=LIBPATH
13551  ;;
13552
13553osf3* | osf4* | osf5*)
13554  version_type=osf
13555  need_lib_prefix=no
13556  need_version=no
13557  soname_spec='${libname}${release}${shared_ext}$major'
13558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13559  shlibpath_var=LD_LIBRARY_PATH
13560  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13561  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13562  ;;
13563
13564rdos*)
13565  dynamic_linker=no
13566  ;;
13567
13568solaris*)
13569  version_type=linux
13570  need_lib_prefix=no
13571  need_version=no
13572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13573  soname_spec='${libname}${release}${shared_ext}$major'
13574  shlibpath_var=LD_LIBRARY_PATH
13575  shlibpath_overrides_runpath=yes
13576  hardcode_into_libs=yes
13577  # ldd complains unless libraries are executable
13578  postinstall_cmds='chmod +x $lib'
13579  ;;
13580
13581sunos4*)
13582  version_type=sunos
13583  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13584  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13585  shlibpath_var=LD_LIBRARY_PATH
13586  shlibpath_overrides_runpath=yes
13587  if test "$with_gnu_ld" = yes; then
13588    need_lib_prefix=no
13589  fi
13590  need_version=yes
13591  ;;
13592
13593sysv4 | sysv4.3*)
13594  version_type=linux
13595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13596  soname_spec='${libname}${release}${shared_ext}$major'
13597  shlibpath_var=LD_LIBRARY_PATH
13598  case $host_vendor in
13599    sni)
13600      shlibpath_overrides_runpath=no
13601      need_lib_prefix=no
13602      export_dynamic_flag_spec='${wl}-Blargedynsym'
13603      runpath_var=LD_RUN_PATH
13604      ;;
13605    siemens)
13606      need_lib_prefix=no
13607      ;;
13608    motorola)
13609      need_lib_prefix=no
13610      need_version=no
13611      shlibpath_overrides_runpath=no
13612      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13613      ;;
13614  esac
13615  ;;
13616
13617sysv4*MP*)
13618  if test -d /usr/nec ;then
13619    version_type=linux
13620    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13621    soname_spec='$libname${shared_ext}.$major'
13622    shlibpath_var=LD_LIBRARY_PATH
13623  fi
13624  ;;
13625
13626sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13627  version_type=freebsd-elf
13628  need_lib_prefix=no
13629  need_version=no
13630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13631  soname_spec='${libname}${release}${shared_ext}$major'
13632  shlibpath_var=LD_LIBRARY_PATH
13633  hardcode_into_libs=yes
13634  if test "$with_gnu_ld" = yes; then
13635    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13636    shlibpath_overrides_runpath=no
13637  else
13638    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13639    shlibpath_overrides_runpath=yes
13640    case $host_os in
13641      sco3.2v5*)
13642        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13643	;;
13644    esac
13645  fi
13646  sys_lib_dlsearch_path_spec='/usr/lib'
13647  ;;
13648
13649uts4*)
13650  version_type=linux
13651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13652  soname_spec='${libname}${release}${shared_ext}$major'
13653  shlibpath_var=LD_LIBRARY_PATH
13654  ;;
13655
13656*)
13657  dynamic_linker=no
13658  ;;
13659esac
13660{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13661$as_echo "$dynamic_linker" >&6; }
13662test "$dynamic_linker" = no && can_build_shared=no
13663
13664if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13665  $as_echo_n "(cached) " >&6
13666else
13667  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13668fi
13669
13670sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13671if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13672  $as_echo_n "(cached) " >&6
13673else
13674  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13675fi
13676
13677sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13678
13679variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13680if test "$GCC" = yes; then
13681  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13682fi
13683
13684{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13685$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13686hardcode_action_CXX=
13687if test -n "$hardcode_libdir_flag_spec_CXX" || \
13688   test -n "$runpath_var_CXX" || \
13689   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13690
13691  # We can hardcode non-existant directories.
13692  if test "$hardcode_direct_CXX" != no &&
13693     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13694     # have to relink, otherwise we might link with an installed library
13695     # when we should be linking with a yet-to-be-installed one
13696     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13697     test "$hardcode_minus_L_CXX" != no; then
13698    # Linking always hardcodes the temporary library directory.
13699    hardcode_action_CXX=relink
13700  else
13701    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13702    hardcode_action_CXX=immediate
13703  fi
13704else
13705  # We cannot hardcode anything, or else we can only hardcode existing
13706  # directories.
13707  hardcode_action_CXX=unsupported
13708fi
13709{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13710$as_echo "$hardcode_action_CXX" >&6; }
13711
13712if test "$hardcode_action_CXX" = relink; then
13713  # Fast installation is not supported
13714  enable_fast_install=no
13715elif test "$shlibpath_overrides_runpath" = yes ||
13716     test "$enable_shared" = no; then
13717  # Fast installation is not necessary
13718  enable_fast_install=needless
13719fi
13720
13721
13722# The else clause should only fire when bootstrapping the
13723# libtool distribution, otherwise you forgot to ship ltmain.sh
13724# with your package, and you will get complaints that there are
13725# no rules to generate ltmain.sh.
13726if test -f "$ltmain"; then
13727  # See if we are running on zsh, and set the options which allow our commands through
13728  # without removal of \ escapes.
13729  if test -n "${ZSH_VERSION+set}" ; then
13730    setopt NO_GLOB_SUBST
13731  fi
13732  # Now quote all the things that may contain metacharacters while being
13733  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13734  # variables and quote the copies for generation of the libtool script.
13735  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13736    SED SHELL STRIP \
13737    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13738    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13739    deplibs_check_method reload_flag reload_cmds need_locks \
13740    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13741    lt_cv_sys_global_symbol_to_c_name_address \
13742    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13743    old_postinstall_cmds old_postuninstall_cmds \
13744    compiler_CXX \
13745    CC_CXX \
13746    LD_CXX \
13747    lt_prog_compiler_wl_CXX \
13748    lt_prog_compiler_pic_CXX \
13749    lt_prog_compiler_static_CXX \
13750    lt_prog_compiler_no_builtin_flag_CXX \
13751    export_dynamic_flag_spec_CXX \
13752    thread_safe_flag_spec_CXX \
13753    whole_archive_flag_spec_CXX \
13754    enable_shared_with_static_runtimes_CXX \
13755    old_archive_cmds_CXX \
13756    old_archive_from_new_cmds_CXX \
13757    predep_objects_CXX \
13758    postdep_objects_CXX \
13759    predeps_CXX \
13760    postdeps_CXX \
13761    compiler_lib_search_path_CXX \
13762    compiler_lib_search_dirs_CXX \
13763    archive_cmds_CXX \
13764    archive_expsym_cmds_CXX \
13765    postinstall_cmds_CXX \
13766    postuninstall_cmds_CXX \
13767    old_archive_from_expsyms_cmds_CXX \
13768    allow_undefined_flag_CXX \
13769    no_undefined_flag_CXX \
13770    export_symbols_cmds_CXX \
13771    hardcode_libdir_flag_spec_CXX \
13772    hardcode_libdir_flag_spec_ld_CXX \
13773    hardcode_libdir_separator_CXX \
13774    hardcode_automatic_CXX \
13775    module_cmds_CXX \
13776    module_expsym_cmds_CXX \
13777    lt_cv_prog_compiler_c_o_CXX \
13778    fix_srcfile_path_CXX \
13779    exclude_expsyms_CXX \
13780    include_expsyms_CXX; do
13781
13782    case $var in
13783    old_archive_cmds_CXX | \
13784    old_archive_from_new_cmds_CXX | \
13785    archive_cmds_CXX | \
13786    archive_expsym_cmds_CXX | \
13787    module_cmds_CXX | \
13788    module_expsym_cmds_CXX | \
13789    old_archive_from_expsyms_cmds_CXX | \
13790    export_symbols_cmds_CXX | \
13791    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13792    postinstall_cmds | postuninstall_cmds | \
13793    old_postinstall_cmds | old_postuninstall_cmds | \
13794    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13795      # Double-quote double-evaled strings.
13796      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13797      ;;
13798    *)
13799      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13800      ;;
13801    esac
13802  done
13803
13804  case $lt_echo in
13805  *'\$0 --fallback-echo"')
13806    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13807    ;;
13808  esac
13809
13810cfgfile="$ofile"
13811
13812  cat <<__EOF__ >> "$cfgfile"
13813# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13814
13815# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13816
13817# Shell to use when invoking shell scripts.
13818SHELL=$lt_SHELL
13819
13820# Whether or not to build shared libraries.
13821build_libtool_libs=$enable_shared
13822
13823# Whether or not to build static libraries.
13824build_old_libs=$enable_static
13825
13826# Whether or not to add -lc for building shared libraries.
13827build_libtool_need_lc=$archive_cmds_need_lc_CXX
13828
13829# Whether or not to disallow shared libs when runtime libs are static
13830allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13831
13832# Whether or not to optimize for fast installation.
13833fast_install=$enable_fast_install
13834
13835# The host system.
13836host_alias=$host_alias
13837host=$host
13838host_os=$host_os
13839
13840# The build system.
13841build_alias=$build_alias
13842build=$build
13843build_os=$build_os
13844
13845# An echo program that does not interpret backslashes.
13846echo=$lt_echo
13847
13848# The archiver.
13849AR=$lt_AR
13850AR_FLAGS=$lt_AR_FLAGS
13851
13852# A C compiler.
13853LTCC=$lt_LTCC
13854
13855# LTCC compiler flags.
13856LTCFLAGS=$lt_LTCFLAGS
13857
13858# A language-specific compiler.
13859CC=$lt_compiler_CXX
13860
13861# Is the compiler the GNU C compiler?
13862with_gcc=$GCC_CXX
13863
13864# An ERE matcher.
13865EGREP=$lt_EGREP
13866
13867# The linker used to build libraries.
13868LD=$lt_LD_CXX
13869
13870# Whether we need hard or soft links.
13871LN_S=$lt_LN_S
13872
13873# A BSD-compatible nm program.
13874NM=$lt_NM
13875
13876# A symbol stripping program
13877STRIP=$lt_STRIP
13878
13879# Used to examine libraries when file_magic_cmd begins "file"
13880MAGIC_CMD=$MAGIC_CMD
13881
13882# Used on cygwin: DLL creation program.
13883DLLTOOL="$DLLTOOL"
13884
13885# Used on cygwin: object dumper.
13886OBJDUMP="$OBJDUMP"
13887
13888# Used on cygwin: assembler.
13889AS="$AS"
13890
13891# The name of the directory that contains temporary libtool files.
13892objdir=$objdir
13893
13894# How to create reloadable object files.
13895reload_flag=$lt_reload_flag
13896reload_cmds=$lt_reload_cmds
13897
13898# How to pass a linker flag through the compiler.
13899wl=$lt_lt_prog_compiler_wl_CXX
13900
13901# Object file suffix (normally "o").
13902objext="$ac_objext"
13903
13904# Old archive suffix (normally "a").
13905libext="$libext"
13906
13907# Shared library suffix (normally ".so").
13908shrext_cmds='$shrext_cmds'
13909
13910# Executable file suffix (normally "").
13911exeext="$exeext"
13912
13913# Additional compiler flags for building library objects.
13914pic_flag=$lt_lt_prog_compiler_pic_CXX
13915pic_mode=$pic_mode
13916
13917# What is the maximum length of a command?
13918max_cmd_len=$lt_cv_sys_max_cmd_len
13919
13920# Does compiler simultaneously support -c and -o options?
13921compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13922
13923# Must we lock files when doing compilation?
13924need_locks=$lt_need_locks
13925
13926# Do we need the lib prefix for modules?
13927need_lib_prefix=$need_lib_prefix
13928
13929# Do we need a version for libraries?
13930need_version=$need_version
13931
13932# Whether dlopen is supported.
13933dlopen_support=$enable_dlopen
13934
13935# Whether dlopen of programs is supported.
13936dlopen_self=$enable_dlopen_self
13937
13938# Whether dlopen of statically linked programs is supported.
13939dlopen_self_static=$enable_dlopen_self_static
13940
13941# Compiler flag to prevent dynamic linking.
13942link_static_flag=$lt_lt_prog_compiler_static_CXX
13943
13944# Compiler flag to turn off builtin functions.
13945no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13946
13947# Compiler flag to allow reflexive dlopens.
13948export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13949
13950# Compiler flag to generate shared objects directly from archives.
13951whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13952
13953# Compiler flag to generate thread-safe objects.
13954thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13955
13956# Library versioning type.
13957version_type=$version_type
13958
13959# Format of library name prefix.
13960libname_spec=$lt_libname_spec
13961
13962# List of archive names.  First name is the real one, the rest are links.
13963# The last name is the one that the linker finds with -lNAME.
13964library_names_spec=$lt_library_names_spec
13965
13966# The coded name of the library, if different from the real name.
13967soname_spec=$lt_soname_spec
13968
13969# Commands used to build and install an old-style archive.
13970RANLIB=$lt_RANLIB
13971old_archive_cmds=$lt_old_archive_cmds_CXX
13972old_postinstall_cmds=$lt_old_postinstall_cmds
13973old_postuninstall_cmds=$lt_old_postuninstall_cmds
13974
13975# Create an old-style archive from a shared archive.
13976old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13977
13978# Create a temporary old-style archive to link instead of a shared archive.
13979old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13980
13981# Commands used to build and install a shared archive.
13982archive_cmds=$lt_archive_cmds_CXX
13983archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13984postinstall_cmds=$lt_postinstall_cmds
13985postuninstall_cmds=$lt_postuninstall_cmds
13986
13987# Commands used to build a loadable module (assumed same as above if empty)
13988module_cmds=$lt_module_cmds_CXX
13989module_expsym_cmds=$lt_module_expsym_cmds_CXX
13990
13991# Commands to strip libraries.
13992old_striplib=$lt_old_striplib
13993striplib=$lt_striplib
13994
13995# Dependencies to place before the objects being linked to create a
13996# shared library.
13997predep_objects=$lt_predep_objects_CXX
13998
13999# Dependencies to place after the objects being linked to create a
14000# shared library.
14001postdep_objects=$lt_postdep_objects_CXX
14002
14003# Dependencies to place before the objects being linked to create a
14004# shared library.
14005predeps=$lt_predeps_CXX
14006
14007# Dependencies to place after the objects being linked to create a
14008# shared library.
14009postdeps=$lt_postdeps_CXX
14010
14011# The directories searched by this compiler when creating a shared
14012# library
14013compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14014
14015# The library search path used internally by the compiler when linking
14016# a shared library.
14017compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14018
14019# Method to check whether dependent libraries are shared objects.
14020deplibs_check_method=$lt_deplibs_check_method
14021
14022# Command to use when deplibs_check_method == file_magic.
14023file_magic_cmd=$lt_file_magic_cmd
14024
14025# Flag that allows shared libraries with undefined symbols to be built.
14026allow_undefined_flag=$lt_allow_undefined_flag_CXX
14027
14028# Flag that forces no undefined symbols.
14029no_undefined_flag=$lt_no_undefined_flag_CXX
14030
14031# Commands used to finish a libtool library installation in a directory.
14032finish_cmds=$lt_finish_cmds
14033
14034# Same as above, but a single script fragment to be evaled but not shown.
14035finish_eval=$lt_finish_eval
14036
14037# Take the output of nm and produce a listing of raw symbols and C names.
14038global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14039
14040# Transform the output of nm in a proper C declaration
14041global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14042
14043# Transform the output of nm in a C name address pair
14044global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14045
14046# This is the shared library runtime path variable.
14047runpath_var=$runpath_var
14048
14049# This is the shared library path variable.
14050shlibpath_var=$shlibpath_var
14051
14052# Is shlibpath searched before the hard-coded library search path?
14053shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14054
14055# How to hardcode a shared library path into an executable.
14056hardcode_action=$hardcode_action_CXX
14057
14058# Whether we should hardcode library paths into libraries.
14059hardcode_into_libs=$hardcode_into_libs
14060
14061# Flag to hardcode \$libdir into a binary during linking.
14062# This must work even if \$libdir does not exist.
14063hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14064
14065# If ld is used when linking, flag to hardcode \$libdir into
14066# a binary during linking. This must work even if \$libdir does
14067# not exist.
14068hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14069
14070# Whether we need a single -rpath flag with a separated argument.
14071hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14072
14073# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14074# resulting binary.
14075hardcode_direct=$hardcode_direct_CXX
14076
14077# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14078# resulting binary.
14079hardcode_minus_L=$hardcode_minus_L_CXX
14080
14081# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14082# the resulting binary.
14083hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14084
14085# Set to yes if building a shared library automatically hardcodes DIR into the library
14086# and all subsequent libraries and executables linked against it.
14087hardcode_automatic=$hardcode_automatic_CXX
14088
14089# Variables whose values should be saved in libtool wrapper scripts and
14090# restored at relink time.
14091variables_saved_for_relink="$variables_saved_for_relink"
14092
14093# Whether libtool must link a program against all its dependency libraries.
14094link_all_deplibs=$link_all_deplibs_CXX
14095
14096# Compile-time system search path for libraries
14097sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14098
14099# Run-time system search path for libraries
14100sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14101
14102# Fix the shell variable \$srcfile for the compiler.
14103fix_srcfile_path=$lt_fix_srcfile_path
14104
14105# Set to yes if exported symbols are required.
14106always_export_symbols=$always_export_symbols_CXX
14107
14108# The commands to list exported symbols.
14109export_symbols_cmds=$lt_export_symbols_cmds_CXX
14110
14111# The commands to extract the exported symbol list from a shared archive.
14112extract_expsyms_cmds=$lt_extract_expsyms_cmds
14113
14114# Symbols that should not be listed in the preloaded symbols.
14115exclude_expsyms=$lt_exclude_expsyms_CXX
14116
14117# Symbols that must always be exported.
14118include_expsyms=$lt_include_expsyms_CXX
14119
14120# ### END LIBTOOL TAG CONFIG: $tagname
14121
14122__EOF__
14123
14124
14125else
14126  # If there is no Makefile yet, we rely on a make rule to execute
14127  # `config.status --recheck' to rerun these tests and create the
14128  # libtool script then.
14129  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14130  if test -f "$ltmain_in"; then
14131    test -f Makefile && make "$ltmain"
14132  fi
14133fi
14134
14135
14136ac_ext=c
14137ac_cpp='$CPP $CPPFLAGS'
14138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14140ac_compiler_gnu=$ac_cv_c_compiler_gnu
14141
14142CC=$lt_save_CC
14143LDCXX=$LD
14144LD=$lt_save_LD
14145GCC=$lt_save_GCC
14146with_gnu_ldcxx=$with_gnu_ld
14147with_gnu_ld=$lt_save_with_gnu_ld
14148lt_cv_path_LDCXX=$lt_cv_path_LD
14149lt_cv_path_LD=$lt_save_path_LD
14150lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14151lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14152
14153	else
14154	  tagname=""
14155	fi
14156	;;
14157
14158      F77)
14159	if test -n "$F77" && test "X$F77" != "Xno"; then
14160
14161ac_ext=f
14162ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14163ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14164ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14165
14166
14167archive_cmds_need_lc_F77=no
14168allow_undefined_flag_F77=
14169always_export_symbols_F77=no
14170archive_expsym_cmds_F77=
14171export_dynamic_flag_spec_F77=
14172hardcode_direct_F77=no
14173hardcode_libdir_flag_spec_F77=
14174hardcode_libdir_flag_spec_ld_F77=
14175hardcode_libdir_separator_F77=
14176hardcode_minus_L_F77=no
14177hardcode_automatic_F77=no
14178module_cmds_F77=
14179module_expsym_cmds_F77=
14180link_all_deplibs_F77=unknown
14181old_archive_cmds_F77=$old_archive_cmds
14182no_undefined_flag_F77=
14183whole_archive_flag_spec_F77=
14184enable_shared_with_static_runtimes_F77=no
14185
14186# Source file extension for f77 test sources.
14187ac_ext=f
14188
14189# Object file extension for compiled f77 test sources.
14190objext=o
14191objext_F77=$objext
14192
14193# Code to be used in simple compile tests
14194lt_simple_compile_test_code="\
14195      subroutine t
14196      return
14197      end
14198"
14199
14200# Code to be used in simple link tests
14201lt_simple_link_test_code="\
14202      program t
14203      end
14204"
14205
14206# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14207
14208# If no C compiler was specified, use CC.
14209LTCC=${LTCC-"$CC"}
14210
14211# If no C compiler flags were specified, use CFLAGS.
14212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14213
14214# Allow CC to be a program name with arguments.
14215compiler=$CC
14216
14217
14218# save warnings/boilerplate of simple test code
14219ac_outfile=conftest.$ac_objext
14220echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14221eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14222_lt_compiler_boilerplate=`cat conftest.err`
14223$rm conftest*
14224
14225ac_outfile=conftest.$ac_objext
14226echo "$lt_simple_link_test_code" >conftest.$ac_ext
14227eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14228_lt_linker_boilerplate=`cat conftest.err`
14229$rm -r conftest*
14230
14231
14232# Allow CC to be a program name with arguments.
14233lt_save_CC="$CC"
14234CC=${F77-"f77"}
14235compiler=$CC
14236compiler_F77=$CC
14237for cc_temp in $compiler""; do
14238  case $cc_temp in
14239    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14240    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14241    \-*) ;;
14242    *) break;;
14243  esac
14244done
14245cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14246
14247
14248{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14249$as_echo_n "checking if libtool supports shared libraries... " >&6; }
14250{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14251$as_echo "$can_build_shared" >&6; }
14252
14253{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14254$as_echo_n "checking whether to build shared libraries... " >&6; }
14255test "$can_build_shared" = "no" && enable_shared=no
14256
14257# On AIX, shared libraries and static libraries use the same namespace, and
14258# are all built from PIC.
14259case $host_os in
14260aix3*)
14261  test "$enable_shared" = yes && enable_static=no
14262  if test -n "$RANLIB"; then
14263    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14264    postinstall_cmds='$RANLIB $lib'
14265  fi
14266  ;;
14267aix[4-9]*)
14268  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14269    test "$enable_shared" = yes && enable_static=no
14270  fi
14271  ;;
14272esac
14273{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14274$as_echo "$enable_shared" >&6; }
14275
14276{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14277$as_echo_n "checking whether to build static libraries... " >&6; }
14278# Make sure either enable_shared or enable_static is yes.
14279test "$enable_shared" = yes || enable_static=yes
14280{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14281$as_echo "$enable_static" >&6; }
14282
14283GCC_F77="$G77"
14284LD_F77="$LD"
14285
14286lt_prog_compiler_wl_F77=
14287lt_prog_compiler_pic_F77=
14288lt_prog_compiler_static_F77=
14289
14290{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14291$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14292
14293  if test "$GCC" = yes; then
14294    lt_prog_compiler_wl_F77='-Wl,'
14295    lt_prog_compiler_static_F77='-static'
14296
14297    case $host_os in
14298      aix*)
14299      # All AIX code is PIC.
14300      if test "$host_cpu" = ia64; then
14301	# AIX 5 now supports IA64 processor
14302	lt_prog_compiler_static_F77='-Bstatic'
14303      fi
14304      ;;
14305
14306    amigaos*)
14307      # FIXME: we need at least 68020 code to build shared libraries, but
14308      # adding the `-m68020' flag to GCC prevents building anything better,
14309      # like `-m68040'.
14310      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14311      ;;
14312
14313    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14314      # PIC is the default for these OSes.
14315      ;;
14316
14317    mingw* | cygwin* | pw32* | os2*)
14318      # This hack is so that the source file can tell whether it is being
14319      # built for inclusion in a dll (and should export symbols for example).
14320      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14321      # (--disable-auto-import) libraries
14322      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14323      ;;
14324
14325    darwin* | rhapsody*)
14326      # PIC is the default on this platform
14327      # Common symbols not allowed in MH_DYLIB files
14328      lt_prog_compiler_pic_F77='-fno-common'
14329      ;;
14330
14331    interix[3-9]*)
14332      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14333      # Instead, we relocate shared libraries at runtime.
14334      ;;
14335
14336    msdosdjgpp*)
14337      # Just because we use GCC doesn't mean we suddenly get shared libraries
14338      # on systems that don't support them.
14339      lt_prog_compiler_can_build_shared_F77=no
14340      enable_shared=no
14341      ;;
14342
14343    sysv4*MP*)
14344      if test -d /usr/nec; then
14345	lt_prog_compiler_pic_F77=-Kconform_pic
14346      fi
14347      ;;
14348
14349    hpux*)
14350      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14351      # not for PA HP-UX.
14352      case $host_cpu in
14353      hppa*64*|ia64*)
14354	# +Z the default
14355	;;
14356      *)
14357	lt_prog_compiler_pic_F77='-fPIC'
14358	;;
14359      esac
14360      ;;
14361
14362    *)
14363      lt_prog_compiler_pic_F77='-fPIC'
14364      ;;
14365    esac
14366  else
14367    # PORTME Check for flag to pass linker flags through the system compiler.
14368    case $host_os in
14369    aix*)
14370      lt_prog_compiler_wl_F77='-Wl,'
14371      if test "$host_cpu" = ia64; then
14372	# AIX 5 now supports IA64 processor
14373	lt_prog_compiler_static_F77='-Bstatic'
14374      else
14375	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14376      fi
14377      ;;
14378      darwin*)
14379        # PIC is the default on this platform
14380        # Common symbols not allowed in MH_DYLIB files
14381       case $cc_basename in
14382         xlc*)
14383         lt_prog_compiler_pic_F77='-qnocommon'
14384         lt_prog_compiler_wl_F77='-Wl,'
14385         ;;
14386       esac
14387       ;;
14388
14389    mingw* | cygwin* | pw32* | os2*)
14390      # This hack is so that the source file can tell whether it is being
14391      # built for inclusion in a dll (and should export symbols for example).
14392      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14393      ;;
14394
14395    hpux9* | hpux10* | hpux11*)
14396      lt_prog_compiler_wl_F77='-Wl,'
14397      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14398      # not for PA HP-UX.
14399      case $host_cpu in
14400      hppa*64*|ia64*)
14401	# +Z the default
14402	;;
14403      *)
14404	lt_prog_compiler_pic_F77='+Z'
14405	;;
14406      esac
14407      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14408      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14409      ;;
14410
14411    irix5* | irix6* | nonstopux*)
14412      lt_prog_compiler_wl_F77='-Wl,'
14413      # PIC (with -KPIC) is the default.
14414      lt_prog_compiler_static_F77='-non_shared'
14415      ;;
14416
14417    newsos6)
14418      lt_prog_compiler_pic_F77='-KPIC'
14419      lt_prog_compiler_static_F77='-Bstatic'
14420      ;;
14421
14422    linux* | k*bsd*-gnu)
14423      case $cc_basename in
14424      icc* | ecc*)
14425	lt_prog_compiler_wl_F77='-Wl,'
14426	lt_prog_compiler_pic_F77='-KPIC'
14427	lt_prog_compiler_static_F77='-static'
14428        ;;
14429      pgcc* | pgf77* | pgf90* | pgf95*)
14430        # Portland Group compilers (*not* the Pentium gcc compiler,
14431	# which looks to be a dead project)
14432	lt_prog_compiler_wl_F77='-Wl,'
14433	lt_prog_compiler_pic_F77='-fpic'
14434	lt_prog_compiler_static_F77='-Bstatic'
14435        ;;
14436      ccc*)
14437        lt_prog_compiler_wl_F77='-Wl,'
14438        # All Alpha code is PIC.
14439        lt_prog_compiler_static_F77='-non_shared'
14440        ;;
14441      *)
14442        case `$CC -V 2>&1 | sed 5q` in
14443	*Sun\ C*)
14444	  # Sun C 5.9
14445	  lt_prog_compiler_pic_F77='-KPIC'
14446	  lt_prog_compiler_static_F77='-Bstatic'
14447	  lt_prog_compiler_wl_F77='-Wl,'
14448	  ;;
14449	*Sun\ F*)
14450	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
14451	  lt_prog_compiler_pic_F77='-KPIC'
14452	  lt_prog_compiler_static_F77='-Bstatic'
14453	  lt_prog_compiler_wl_F77=''
14454	  ;;
14455	esac
14456	;;
14457      esac
14458      ;;
14459
14460    osf3* | osf4* | osf5*)
14461      lt_prog_compiler_wl_F77='-Wl,'
14462      # All OSF/1 code is PIC.
14463      lt_prog_compiler_static_F77='-non_shared'
14464      ;;
14465
14466    rdos*)
14467      lt_prog_compiler_static_F77='-non_shared'
14468      ;;
14469
14470    solaris*)
14471      lt_prog_compiler_pic_F77='-KPIC'
14472      lt_prog_compiler_static_F77='-Bstatic'
14473      case $cc_basename in
14474      f77* | f90* | f95*)
14475	lt_prog_compiler_wl_F77='-Qoption ld ';;
14476      *)
14477	lt_prog_compiler_wl_F77='-Wl,';;
14478      esac
14479      ;;
14480
14481    sunos4*)
14482      lt_prog_compiler_wl_F77='-Qoption ld '
14483      lt_prog_compiler_pic_F77='-PIC'
14484      lt_prog_compiler_static_F77='-Bstatic'
14485      ;;
14486
14487    sysv4 | sysv4.2uw2* | sysv4.3*)
14488      lt_prog_compiler_wl_F77='-Wl,'
14489      lt_prog_compiler_pic_F77='-KPIC'
14490      lt_prog_compiler_static_F77='-Bstatic'
14491      ;;
14492
14493    sysv4*MP*)
14494      if test -d /usr/nec ;then
14495	lt_prog_compiler_pic_F77='-Kconform_pic'
14496	lt_prog_compiler_static_F77='-Bstatic'
14497      fi
14498      ;;
14499
14500    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14501      lt_prog_compiler_wl_F77='-Wl,'
14502      lt_prog_compiler_pic_F77='-KPIC'
14503      lt_prog_compiler_static_F77='-Bstatic'
14504      ;;
14505
14506    unicos*)
14507      lt_prog_compiler_wl_F77='-Wl,'
14508      lt_prog_compiler_can_build_shared_F77=no
14509      ;;
14510
14511    uts4*)
14512      lt_prog_compiler_pic_F77='-pic'
14513      lt_prog_compiler_static_F77='-Bstatic'
14514      ;;
14515
14516    *)
14517      lt_prog_compiler_can_build_shared_F77=no
14518      ;;
14519    esac
14520  fi
14521
14522{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14523$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14524
14525#
14526# Check to make sure the PIC flag actually works.
14527#
14528if test -n "$lt_prog_compiler_pic_F77"; then
14529
14530{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14531$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14532if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14533  $as_echo_n "(cached) " >&6
14534else
14535  lt_cv_prog_compiler_pic_works_F77=no
14536  ac_outfile=conftest.$ac_objext
14537   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14538   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14539   # Insert the option either (1) after the last *FLAGS variable, or
14540   # (2) before a word containing "conftest.", or (3) at the end.
14541   # Note that $ac_compile itself does not contain backslashes and begins
14542   # with a dollar sign (not a hyphen), so the echo should work correctly.
14543   # The option is referenced via a variable to avoid confusing sed.
14544   lt_compile=`echo "$ac_compile" | $SED \
14545   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14546   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14547   -e 's:$: $lt_compiler_flag:'`
14548   (eval echo "\"\$as_me:14548: $lt_compile\"" >&5)
14549   (eval "$lt_compile" 2>conftest.err)
14550   ac_status=$?
14551   cat conftest.err >&5
14552   echo "$as_me:14552: \$? = $ac_status" >&5
14553   if (exit $ac_status) && test -s "$ac_outfile"; then
14554     # The compiler can only warn and ignore the option if not recognized
14555     # So say no if there are warnings other than the usual output.
14556     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14557     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14558     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14559       lt_cv_prog_compiler_pic_works_F77=yes
14560     fi
14561   fi
14562   $rm conftest*
14563
14564fi
14565{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14566$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14567
14568if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14569    case $lt_prog_compiler_pic_F77 in
14570     "" | " "*) ;;
14571     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14572     esac
14573else
14574    lt_prog_compiler_pic_F77=
14575     lt_prog_compiler_can_build_shared_F77=no
14576fi
14577
14578fi
14579case $host_os in
14580  # For platforms which do not support PIC, -DPIC is meaningless:
14581  *djgpp*)
14582    lt_prog_compiler_pic_F77=
14583    ;;
14584  *)
14585    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14586    ;;
14587esac
14588
14589#
14590# Check to make sure the static flag actually works.
14591#
14592wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14593{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14594$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14595if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14596  $as_echo_n "(cached) " >&6
14597else
14598  lt_cv_prog_compiler_static_works_F77=no
14599   save_LDFLAGS="$LDFLAGS"
14600   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14601   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14602   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14603     # The linker can only warn and ignore the option if not recognized
14604     # So say no if there are warnings
14605     if test -s conftest.err; then
14606       # Append any errors to the config.log.
14607       cat conftest.err 1>&5
14608       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14609       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14610       if diff conftest.exp conftest.er2 >/dev/null; then
14611         lt_cv_prog_compiler_static_works_F77=yes
14612       fi
14613     else
14614       lt_cv_prog_compiler_static_works_F77=yes
14615     fi
14616   fi
14617   $rm -r conftest*
14618   LDFLAGS="$save_LDFLAGS"
14619
14620fi
14621{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14622$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14623
14624if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14625    :
14626else
14627    lt_prog_compiler_static_F77=
14628fi
14629
14630
14631{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14632$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14633if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14634  $as_echo_n "(cached) " >&6
14635else
14636  lt_cv_prog_compiler_c_o_F77=no
14637   $rm -r conftest 2>/dev/null
14638   mkdir conftest
14639   cd conftest
14640   mkdir out
14641   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14642
14643   lt_compiler_flag="-o out/conftest2.$ac_objext"
14644   # Insert the option either (1) after the last *FLAGS variable, or
14645   # (2) before a word containing "conftest.", or (3) at the end.
14646   # Note that $ac_compile itself does not contain backslashes and begins
14647   # with a dollar sign (not a hyphen), so the echo should work correctly.
14648   lt_compile=`echo "$ac_compile" | $SED \
14649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14651   -e 's:$: $lt_compiler_flag:'`
14652   (eval echo "\"\$as_me:14652: $lt_compile\"" >&5)
14653   (eval "$lt_compile" 2>out/conftest.err)
14654   ac_status=$?
14655   cat out/conftest.err >&5
14656   echo "$as_me:14656: \$? = $ac_status" >&5
14657   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14658   then
14659     # The compiler can only warn and ignore the option if not recognized
14660     # So say no if there are warnings
14661     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14662     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14663     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14664       lt_cv_prog_compiler_c_o_F77=yes
14665     fi
14666   fi
14667   chmod u+w . 2>&5
14668   $rm conftest*
14669   # SGI C++ compiler will create directory out/ii_files/ for
14670   # template instantiation
14671   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14672   $rm out/* && rmdir out
14673   cd ..
14674   rmdir conftest
14675   $rm conftest*
14676
14677fi
14678{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14679$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14680
14681
14682hard_links="nottested"
14683if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14684  # do not overwrite the value of need_locks provided by the user
14685  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14686$as_echo_n "checking if we can lock with hard links... " >&6; }
14687  hard_links=yes
14688  $rm conftest*
14689  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14690  touch conftest.a
14691  ln conftest.a conftest.b 2>&5 || hard_links=no
14692  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14693  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14694$as_echo "$hard_links" >&6; }
14695  if test "$hard_links" = no; then
14696    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14697$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14698    need_locks=warn
14699  fi
14700else
14701  need_locks=no
14702fi
14703
14704{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14705$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14706
14707  runpath_var=
14708  allow_undefined_flag_F77=
14709  enable_shared_with_static_runtimes_F77=no
14710  archive_cmds_F77=
14711  archive_expsym_cmds_F77=
14712  old_archive_From_new_cmds_F77=
14713  old_archive_from_expsyms_cmds_F77=
14714  export_dynamic_flag_spec_F77=
14715  whole_archive_flag_spec_F77=
14716  thread_safe_flag_spec_F77=
14717  hardcode_libdir_flag_spec_F77=
14718  hardcode_libdir_flag_spec_ld_F77=
14719  hardcode_libdir_separator_F77=
14720  hardcode_direct_F77=no
14721  hardcode_minus_L_F77=no
14722  hardcode_shlibpath_var_F77=unsupported
14723  link_all_deplibs_F77=unknown
14724  hardcode_automatic_F77=no
14725  module_cmds_F77=
14726  module_expsym_cmds_F77=
14727  always_export_symbols_F77=no
14728  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14729  # include_expsyms should be a list of space-separated symbols to be *always*
14730  # included in the symbol list
14731  include_expsyms_F77=
14732  # exclude_expsyms can be an extended regexp of symbols to exclude
14733  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14734  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14735  # as well as any symbol that contains `d'.
14736  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14737  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14738  # platforms (ab)use it in PIC code, but their linkers get confused if
14739  # the symbol is explicitly referenced.  Since portable code cannot
14740  # rely on this symbol name, it's probably fine to never include it in
14741  # preloaded symbol tables.
14742  # Exclude shared library initialization/finalization symbols.
14743  extract_expsyms_cmds=
14744  # Just being paranoid about ensuring that cc_basename is set.
14745  for cc_temp in $compiler""; do
14746  case $cc_temp in
14747    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14748    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14749    \-*) ;;
14750    *) break;;
14751  esac
14752done
14753cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14754
14755  case $host_os in
14756  cygwin* | mingw* | pw32*)
14757    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14758    # When not using gcc, we currently assume that we are using
14759    # Microsoft Visual C++.
14760    if test "$GCC" != yes; then
14761      with_gnu_ld=no
14762    fi
14763    ;;
14764  interix*)
14765    # we just hope/assume this is gcc and not c89 (= MSVC++)
14766    with_gnu_ld=yes
14767    ;;
14768  openbsd*)
14769    with_gnu_ld=no
14770    ;;
14771  esac
14772
14773  ld_shlibs_F77=yes
14774  if test "$with_gnu_ld" = yes; then
14775    # If archive_cmds runs LD, not CC, wlarc should be empty
14776    wlarc='${wl}'
14777
14778    # Set some defaults for GNU ld with shared library support. These
14779    # are reset later if shared libraries are not supported. Putting them
14780    # here allows them to be overridden if necessary.
14781    runpath_var=LD_RUN_PATH
14782    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14783    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14784    # ancient GNU ld didn't support --whole-archive et. al.
14785    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14786	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14787      else
14788  	whole_archive_flag_spec_F77=
14789    fi
14790    supports_anon_versioning=no
14791    case `$LD -v 2>/dev/null` in
14792      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14793      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14794      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14795      *\ 2.11.*) ;; # other 2.11 versions
14796      *) supports_anon_versioning=yes ;;
14797    esac
14798
14799    # See if GNU ld supports shared libraries.
14800    case $host_os in
14801    aix[3-9]*)
14802      # On AIX/PPC, the GNU linker is very broken
14803      if test "$host_cpu" != ia64; then
14804	ld_shlibs_F77=no
14805	cat <<EOF 1>&2
14806
14807*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14808*** to be unable to reliably create shared libraries on AIX.
14809*** Therefore, libtool is disabling shared libraries support.  If you
14810*** really care for shared libraries, you may want to modify your PATH
14811*** so that a non-GNU linker is found, and then restart.
14812
14813EOF
14814      fi
14815      ;;
14816
14817    amigaos*)
14818      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)'
14819      hardcode_libdir_flag_spec_F77='-L$libdir'
14820      hardcode_minus_L_F77=yes
14821
14822      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14823      # that the semantics of dynamic libraries on AmigaOS, at least up
14824      # to version 4, is to share data among multiple programs linked
14825      # with the same dynamic library.  Since this doesn't match the
14826      # behavior of shared libraries on other platforms, we can't use
14827      # them.
14828      ld_shlibs_F77=no
14829      ;;
14830
14831    beos*)
14832      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14833	allow_undefined_flag_F77=unsupported
14834	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14835	# support --undefined.  This deserves some investigation.  FIXME
14836	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14837      else
14838	ld_shlibs_F77=no
14839      fi
14840      ;;
14841
14842    cygwin* | mingw* | pw32*)
14843      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14844      # as there is no search path for DLLs.
14845      hardcode_libdir_flag_spec_F77='-L$libdir'
14846      allow_undefined_flag_F77=unsupported
14847      always_export_symbols_F77=no
14848      enable_shared_with_static_runtimes_F77=yes
14849      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14850
14851      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14852        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14853	# If the export-symbols file already is a .def file (1st line
14854	# is EXPORTS), use it as is; otherwise, prepend...
14855	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14856	  cp $export_symbols $output_objdir/$soname.def;
14857	else
14858	  echo EXPORTS > $output_objdir/$soname.def;
14859	  cat $export_symbols >> $output_objdir/$soname.def;
14860	fi~
14861	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14862      else
14863	ld_shlibs_F77=no
14864      fi
14865      ;;
14866
14867    interix[3-9]*)
14868      hardcode_direct_F77=no
14869      hardcode_shlibpath_var_F77=no
14870      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14871      export_dynamic_flag_spec_F77='${wl}-E'
14872      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14873      # Instead, shared libraries are loaded at an image base (0x10000000 by
14874      # default) and relocated if they conflict, which is a slow very memory
14875      # consuming and fragmenting process.  To avoid this, we pick a random,
14876      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14877      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14878      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'
14879      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'
14880      ;;
14881
14882    gnu* | linux* | k*bsd*-gnu)
14883      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14884	tmp_addflag=
14885	case $cc_basename,$host_cpu in
14886	pgcc*)				# Portland Group C compiler
14887	  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'
14888	  tmp_addflag=' $pic_flag'
14889	  ;;
14890	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14891	  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'
14892	  tmp_addflag=' $pic_flag -Mnomain' ;;
14893	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14894	  tmp_addflag=' -i_dynamic' ;;
14895	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14896	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14897	ifc* | ifort*)			# Intel Fortran compiler
14898	  tmp_addflag=' -nofor_main' ;;
14899	esac
14900	case `$CC -V 2>&1 | sed 5q` in
14901	*Sun\ C*)			# Sun C 5.9
14902	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14903	  tmp_sharedflag='-G' ;;
14904	*Sun\ F*)			# Sun Fortran 8.3
14905	  tmp_sharedflag='-G' ;;
14906	*)
14907	  tmp_sharedflag='-shared' ;;
14908	esac
14909	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14910
14911	if test $supports_anon_versioning = yes; then
14912	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14913  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14914  $echo "local: *; };" >> $output_objdir/$libname.ver~
14915	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14916	fi
14917      else
14918	ld_shlibs_F77=no
14919      fi
14920      ;;
14921
14922    netbsd*)
14923      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14924	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14925	wlarc=
14926      else
14927	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14928	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14929      fi
14930      ;;
14931
14932    solaris*)
14933      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14934	ld_shlibs_F77=no
14935	cat <<EOF 1>&2
14936
14937*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14938*** create shared libraries on Solaris systems.  Therefore, libtool
14939*** is disabling shared libraries support.  We urge you to upgrade GNU
14940*** binutils to release 2.9.1 or newer.  Another option is to modify
14941*** your PATH or compiler configuration so that the native linker is
14942*** used, and then restart.
14943
14944EOF
14945      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14946	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14947	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14948      else
14949	ld_shlibs_F77=no
14950      fi
14951      ;;
14952
14953    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14954      case `$LD -v 2>&1` in
14955        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14956	ld_shlibs_F77=no
14957	cat <<_LT_EOF 1>&2
14958
14959*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14960*** reliably create shared libraries on SCO systems.  Therefore, libtool
14961*** is disabling shared libraries support.  We urge you to upgrade GNU
14962*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14963*** your PATH or compiler configuration so that the native linker is
14964*** used, and then restart.
14965
14966_LT_EOF
14967	;;
14968	*)
14969	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14970	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14971	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14972	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14973	  else
14974	    ld_shlibs_F77=no
14975	  fi
14976	;;
14977      esac
14978      ;;
14979
14980    sunos4*)
14981      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14982      wlarc=
14983      hardcode_direct_F77=yes
14984      hardcode_shlibpath_var_F77=no
14985      ;;
14986
14987    *)
14988      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14989	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14990	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14991      else
14992	ld_shlibs_F77=no
14993      fi
14994      ;;
14995    esac
14996
14997    if test "$ld_shlibs_F77" = no; then
14998      runpath_var=
14999      hardcode_libdir_flag_spec_F77=
15000      export_dynamic_flag_spec_F77=
15001      whole_archive_flag_spec_F77=
15002    fi
15003  else
15004    # PORTME fill in a description of your system's linker (not GNU ld)
15005    case $host_os in
15006    aix3*)
15007      allow_undefined_flag_F77=unsupported
15008      always_export_symbols_F77=yes
15009      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'
15010      # Note: this linker hardcodes the directories in LIBPATH if there
15011      # are no directories specified by -L.
15012      hardcode_minus_L_F77=yes
15013      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15014	# Neither direct hardcoding nor static linking is supported with a
15015	# broken collect2.
15016	hardcode_direct_F77=unsupported
15017      fi
15018      ;;
15019
15020    aix[4-9]*)
15021      if test "$host_cpu" = ia64; then
15022	# On IA64, the linker does run time linking by default, so we don't
15023	# have to do anything special.
15024	aix_use_runtimelinking=no
15025	exp_sym_flag='-Bexport'
15026	no_entry_flag=""
15027      else
15028	# If we're using GNU nm, then we don't want the "-C" option.
15029	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15030	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15031	  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'
15032	else
15033	  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'
15034	fi
15035	aix_use_runtimelinking=no
15036
15037	# Test if we are trying to use run time linking or normal
15038	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15039	# need to do runtime linking.
15040	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15041	  for ld_flag in $LDFLAGS; do
15042  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15043  	    aix_use_runtimelinking=yes
15044  	    break
15045  	  fi
15046	  done
15047	  ;;
15048	esac
15049
15050	exp_sym_flag='-bexport'
15051	no_entry_flag='-bnoentry'
15052      fi
15053
15054      # When large executables or shared objects are built, AIX ld can
15055      # have problems creating the table of contents.  If linking a library
15056      # or program results in "error TOC overflow" add -mminimal-toc to
15057      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15058      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15059
15060      archive_cmds_F77=''
15061      hardcode_direct_F77=yes
15062      hardcode_libdir_separator_F77=':'
15063      link_all_deplibs_F77=yes
15064
15065      if test "$GCC" = yes; then
15066	case $host_os in aix4.[012]|aix4.[012].*)
15067	# We only want to do this on AIX 4.2 and lower, the check
15068	# below for broken collect2 doesn't work under 4.3+
15069	  collect2name=`${CC} -print-prog-name=collect2`
15070	  if test -f "$collect2name" && \
15071  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15072	  then
15073  	  # We have reworked collect2
15074  	  :
15075	  else
15076  	  # We have old collect2
15077  	  hardcode_direct_F77=unsupported
15078  	  # It fails to find uninstalled libraries when the uninstalled
15079  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15080  	  # to unsupported forces relinking
15081  	  hardcode_minus_L_F77=yes
15082  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15083  	  hardcode_libdir_separator_F77=
15084	  fi
15085	  ;;
15086	esac
15087	shared_flag='-shared'
15088	if test "$aix_use_runtimelinking" = yes; then
15089	  shared_flag="$shared_flag "'${wl}-G'
15090	fi
15091      else
15092	# not using gcc
15093	if test "$host_cpu" = ia64; then
15094  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15095  	# chokes on -Wl,-G. The following line is correct:
15096	  shared_flag='-G'
15097	else
15098	  if test "$aix_use_runtimelinking" = yes; then
15099	    shared_flag='${wl}-G'
15100	  else
15101	    shared_flag='${wl}-bM:SRE'
15102	  fi
15103	fi
15104      fi
15105
15106      # It seems that -bexpall does not export symbols beginning with
15107      # underscore (_), so it is better to generate a list of symbols to export.
15108      always_export_symbols_F77=yes
15109      if test "$aix_use_runtimelinking" = yes; then
15110	# Warning - without using the other runtime loading flags (-brtl),
15111	# -berok will link without error, but may produce a broken library.
15112	allow_undefined_flag_F77='-berok'
15113       # Determine the default libpath from the value encoded in an empty executable.
15114       cat >conftest.$ac_ext <<_ACEOF
15115      program main
15116
15117      end
15118_ACEOF
15119rm -f conftest.$ac_objext conftest$ac_exeext
15120if { (ac_try="$ac_link"
15121case "(($ac_try" in
15122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123  *) ac_try_echo=$ac_try;;
15124esac
15125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15126$as_echo "$ac_try_echo") >&5
15127  (eval "$ac_link") 2>conftest.er1
15128  ac_status=$?
15129  grep -v '^ *+' conftest.er1 >conftest.err
15130  rm -f conftest.er1
15131  cat conftest.err >&5
15132  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133  (exit $ac_status); } && {
15134	 test -z "$ac_f77_werror_flag" ||
15135	 test ! -s conftest.err
15136       } && test -s conftest$ac_exeext && {
15137	 test "$cross_compiling" = yes ||
15138	 $as_test_x conftest$ac_exeext
15139       }; then
15140
15141lt_aix_libpath_sed='
15142    /Import File Strings/,/^$/ {
15143	/^0/ {
15144	    s/^0  *\(.*\)$/\1/
15145	    p
15146	}
15147    }'
15148aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15149# Check for a 64-bit object if we didn't find anything.
15150if test -z "$aix_libpath"; then
15151  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15152fi
15153else
15154  $as_echo "$as_me: failed program was:" >&5
15155sed 's/^/| /' conftest.$ac_ext >&5
15156
15157
15158fi
15159
15160rm -rf conftest.dSYM
15161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15162      conftest$ac_exeext conftest.$ac_ext
15163if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15164
15165       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15166	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"
15167       else
15168	if test "$host_cpu" = ia64; then
15169	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15170	  allow_undefined_flag_F77="-z nodefs"
15171	  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"
15172	else
15173	 # Determine the default libpath from the value encoded in an empty executable.
15174	 cat >conftest.$ac_ext <<_ACEOF
15175      program main
15176
15177      end
15178_ACEOF
15179rm -f conftest.$ac_objext conftest$ac_exeext
15180if { (ac_try="$ac_link"
15181case "(($ac_try" in
15182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183  *) ac_try_echo=$ac_try;;
15184esac
15185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15186$as_echo "$ac_try_echo") >&5
15187  (eval "$ac_link") 2>conftest.er1
15188  ac_status=$?
15189  grep -v '^ *+' conftest.er1 >conftest.err
15190  rm -f conftest.er1
15191  cat conftest.err >&5
15192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193  (exit $ac_status); } && {
15194	 test -z "$ac_f77_werror_flag" ||
15195	 test ! -s conftest.err
15196       } && test -s conftest$ac_exeext && {
15197	 test "$cross_compiling" = yes ||
15198	 $as_test_x conftest$ac_exeext
15199       }; then
15200
15201lt_aix_libpath_sed='
15202    /Import File Strings/,/^$/ {
15203	/^0/ {
15204	    s/^0  *\(.*\)$/\1/
15205	    p
15206	}
15207    }'
15208aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15209# Check for a 64-bit object if we didn't find anything.
15210if test -z "$aix_libpath"; then
15211  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15212fi
15213else
15214  $as_echo "$as_me: failed program was:" >&5
15215sed 's/^/| /' conftest.$ac_ext >&5
15216
15217
15218fi
15219
15220rm -rf conftest.dSYM
15221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15222      conftest$ac_exeext conftest.$ac_ext
15223if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15224
15225	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15226	  # Warning - without using the other run time loading flags,
15227	  # -berok will link without error, but may produce a broken library.
15228	  no_undefined_flag_F77=' ${wl}-bernotok'
15229	  allow_undefined_flag_F77=' ${wl}-berok'
15230	  # Exported symbols can be pulled into shared objects from archives
15231	  whole_archive_flag_spec_F77='$convenience'
15232	  archive_cmds_need_lc_F77=yes
15233	  # This is similar to how AIX traditionally builds its shared libraries.
15234	  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'
15235	fi
15236      fi
15237      ;;
15238
15239    amigaos*)
15240      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)'
15241      hardcode_libdir_flag_spec_F77='-L$libdir'
15242      hardcode_minus_L_F77=yes
15243      # see comment about different semantics on the GNU ld section
15244      ld_shlibs_F77=no
15245      ;;
15246
15247    bsdi[45]*)
15248      export_dynamic_flag_spec_F77=-rdynamic
15249      ;;
15250
15251    cygwin* | mingw* | pw32*)
15252      # When not using gcc, we currently assume that we are using
15253      # Microsoft Visual C++.
15254      # hardcode_libdir_flag_spec is actually meaningless, as there is
15255      # no search path for DLLs.
15256      hardcode_libdir_flag_spec_F77=' '
15257      allow_undefined_flag_F77=unsupported
15258      # Tell ltmain to make .lib files, not .a files.
15259      libext=lib
15260      # Tell ltmain to make .dll files, not .so files.
15261      shrext_cmds=".dll"
15262      # FIXME: Setting linknames here is a bad hack.
15263      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15264      # The linker will automatically build a .lib file if we build a DLL.
15265      old_archive_From_new_cmds_F77='true'
15266      # FIXME: Should let the user specify the lib program.
15267      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15268      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15269      enable_shared_with_static_runtimes_F77=yes
15270      ;;
15271
15272    darwin* | rhapsody*)
15273      case $host_os in
15274        rhapsody* | darwin1.[012])
15275         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15276         ;;
15277       *) # Darwin 1.3 on
15278         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15279           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15280         else
15281           case ${MACOSX_DEPLOYMENT_TARGET} in
15282             10.[012])
15283               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15284               ;;
15285             10.*)
15286               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15287               ;;
15288           esac
15289         fi
15290         ;;
15291      esac
15292      archive_cmds_need_lc_F77=no
15293      hardcode_direct_F77=no
15294      hardcode_automatic_F77=yes
15295      hardcode_shlibpath_var_F77=unsupported
15296      whole_archive_flag_spec_F77=''
15297      link_all_deplibs_F77=yes
15298    if test "$GCC" = yes ; then
15299    	output_verbose_link_cmd='echo'
15300        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15301        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15302        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15303        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15304    else
15305      case $cc_basename in
15306        xlc*)
15307         output_verbose_link_cmd='echo'
15308         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15309         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15310          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15311         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15312          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}'
15313          ;;
15314       *)
15315         ld_shlibs_F77=no
15316          ;;
15317      esac
15318    fi
15319      ;;
15320
15321    dgux*)
15322      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15323      hardcode_libdir_flag_spec_F77='-L$libdir'
15324      hardcode_shlibpath_var_F77=no
15325      ;;
15326
15327    freebsd1*)
15328      ld_shlibs_F77=no
15329      ;;
15330
15331    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15332    # support.  Future versions do this automatically, but an explicit c++rt0.o
15333    # does not break anything, and helps significantly (at the cost of a little
15334    # extra space).
15335    freebsd2.2*)
15336      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15337      hardcode_libdir_flag_spec_F77='-R$libdir'
15338      hardcode_direct_F77=yes
15339      hardcode_shlibpath_var_F77=no
15340      ;;
15341
15342    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15343    freebsd2*)
15344      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15345      hardcode_direct_F77=yes
15346      hardcode_minus_L_F77=yes
15347      hardcode_shlibpath_var_F77=no
15348      ;;
15349
15350    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15351    freebsd* | dragonfly*)
15352      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15353      hardcode_libdir_flag_spec_F77='-R$libdir'
15354      hardcode_direct_F77=yes
15355      hardcode_shlibpath_var_F77=no
15356      ;;
15357
15358    hpux9*)
15359      if test "$GCC" = yes; then
15360	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'
15361      else
15362	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'
15363      fi
15364      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15365      hardcode_libdir_separator_F77=:
15366      hardcode_direct_F77=yes
15367
15368      # hardcode_minus_L: Not really in the search PATH,
15369      # but as the default location of the library.
15370      hardcode_minus_L_F77=yes
15371      export_dynamic_flag_spec_F77='${wl}-E'
15372      ;;
15373
15374    hpux10*)
15375      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15376	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15377      else
15378	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15379      fi
15380      if test "$with_gnu_ld" = no; then
15381	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15382	hardcode_libdir_separator_F77=:
15383
15384	hardcode_direct_F77=yes
15385	export_dynamic_flag_spec_F77='${wl}-E'
15386
15387	# hardcode_minus_L: Not really in the search PATH,
15388	# but as the default location of the library.
15389	hardcode_minus_L_F77=yes
15390      fi
15391      ;;
15392
15393    hpux11*)
15394      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15395	case $host_cpu in
15396	hppa*64*)
15397	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15398	  ;;
15399	ia64*)
15400	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15401	  ;;
15402	*)
15403	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15404	  ;;
15405	esac
15406      else
15407	case $host_cpu in
15408	hppa*64*)
15409	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15410	  ;;
15411	ia64*)
15412	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15413	  ;;
15414	*)
15415	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15416	  ;;
15417	esac
15418      fi
15419      if test "$with_gnu_ld" = no; then
15420	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15421	hardcode_libdir_separator_F77=:
15422
15423	case $host_cpu in
15424	hppa*64*|ia64*)
15425	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15426	  hardcode_direct_F77=no
15427	  hardcode_shlibpath_var_F77=no
15428	  ;;
15429	*)
15430	  hardcode_direct_F77=yes
15431	  export_dynamic_flag_spec_F77='${wl}-E'
15432
15433	  # hardcode_minus_L: Not really in the search PATH,
15434	  # but as the default location of the library.
15435	  hardcode_minus_L_F77=yes
15436	  ;;
15437	esac
15438      fi
15439      ;;
15440
15441    irix5* | irix6* | nonstopux*)
15442      if test "$GCC" = yes; then
15443	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'
15444      else
15445	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'
15446	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15447      fi
15448      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15449      hardcode_libdir_separator_F77=:
15450      link_all_deplibs_F77=yes
15451      ;;
15452
15453    netbsd*)
15454      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15455	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15456      else
15457	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15458      fi
15459      hardcode_libdir_flag_spec_F77='-R$libdir'
15460      hardcode_direct_F77=yes
15461      hardcode_shlibpath_var_F77=no
15462      ;;
15463
15464    newsos6)
15465      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15466      hardcode_direct_F77=yes
15467      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15468      hardcode_libdir_separator_F77=:
15469      hardcode_shlibpath_var_F77=no
15470      ;;
15471
15472    openbsd*)
15473      if test -f /usr/libexec/ld.so; then
15474	hardcode_direct_F77=yes
15475	hardcode_shlibpath_var_F77=no
15476	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15477	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15478	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15479	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15480	  export_dynamic_flag_spec_F77='${wl}-E'
15481	else
15482	  case $host_os in
15483	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15484	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15485	     hardcode_libdir_flag_spec_F77='-R$libdir'
15486	     ;;
15487	   *)
15488	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15489	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15490	     ;;
15491	  esac
15492        fi
15493      else
15494	ld_shlibs_F77=no
15495      fi
15496      ;;
15497
15498    os2*)
15499      hardcode_libdir_flag_spec_F77='-L$libdir'
15500      hardcode_minus_L_F77=yes
15501      allow_undefined_flag_F77=unsupported
15502      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'
15503      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15504      ;;
15505
15506    osf3*)
15507      if test "$GCC" = yes; then
15508	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15509	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'
15510      else
15511	allow_undefined_flag_F77=' -expect_unresolved \*'
15512	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'
15513      fi
15514      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15515      hardcode_libdir_separator_F77=:
15516      ;;
15517
15518    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15519      if test "$GCC" = yes; then
15520	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15521	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'
15522	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15523      else
15524	allow_undefined_flag_F77=' -expect_unresolved \*'
15525	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'
15526	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~
15527	$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'
15528
15529	# Both c and cxx compiler support -rpath directly
15530	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15531      fi
15532      hardcode_libdir_separator_F77=:
15533      ;;
15534
15535    solaris*)
15536      no_undefined_flag_F77=' -z text'
15537      if test "$GCC" = yes; then
15538	wlarc='${wl}'
15539	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15540	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15541	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15542      else
15543	wlarc=''
15544	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15546  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15547      fi
15548      hardcode_libdir_flag_spec_F77='-R$libdir'
15549      hardcode_shlibpath_var_F77=no
15550      case $host_os in
15551      solaris2.[0-5] | solaris2.[0-5].*) ;;
15552      *)
15553	# The compiler driver will combine and reorder linker options,
15554	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15555	# but is careful enough not to reorder.
15556 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15557	if test "$GCC" = yes; then
15558	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15559	else
15560	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15561	fi
15562	;;
15563      esac
15564      link_all_deplibs_F77=yes
15565      ;;
15566
15567    sunos4*)
15568      if test "x$host_vendor" = xsequent; then
15569	# Use $CC to link under sequent, because it throws in some extra .o
15570	# files that make .init and .fini sections work.
15571	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15572      else
15573	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15574      fi
15575      hardcode_libdir_flag_spec_F77='-L$libdir'
15576      hardcode_direct_F77=yes
15577      hardcode_minus_L_F77=yes
15578      hardcode_shlibpath_var_F77=no
15579      ;;
15580
15581    sysv4)
15582      case $host_vendor in
15583	sni)
15584	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15585	  hardcode_direct_F77=yes # is this really true???
15586	;;
15587	siemens)
15588	  ## LD is ld it makes a PLAMLIB
15589	  ## CC just makes a GrossModule.
15590	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15591	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15592	  hardcode_direct_F77=no
15593        ;;
15594	motorola)
15595	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15596	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15597	;;
15598      esac
15599      runpath_var='LD_RUN_PATH'
15600      hardcode_shlibpath_var_F77=no
15601      ;;
15602
15603    sysv4.3*)
15604      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15605      hardcode_shlibpath_var_F77=no
15606      export_dynamic_flag_spec_F77='-Bexport'
15607      ;;
15608
15609    sysv4*MP*)
15610      if test -d /usr/nec; then
15611	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15612	hardcode_shlibpath_var_F77=no
15613	runpath_var=LD_RUN_PATH
15614	hardcode_runpath_var=yes
15615	ld_shlibs_F77=yes
15616      fi
15617      ;;
15618
15619    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15620      no_undefined_flag_F77='${wl}-z,text'
15621      archive_cmds_need_lc_F77=no
15622      hardcode_shlibpath_var_F77=no
15623      runpath_var='LD_RUN_PATH'
15624
15625      if test "$GCC" = yes; then
15626	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15627	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15628      else
15629	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15630	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15631      fi
15632      ;;
15633
15634    sysv5* | sco3.2v5* | sco5v6*)
15635      # Note: We can NOT use -z defs as we might desire, because we do not
15636      # link with -lc, and that would cause any symbols used from libc to
15637      # always be unresolved, which means just about no library would
15638      # ever link correctly.  If we're not using GNU ld we use -z text
15639      # though, which does catch some bad symbols but isn't as heavy-handed
15640      # as -z defs.
15641      no_undefined_flag_F77='${wl}-z,text'
15642      allow_undefined_flag_F77='${wl}-z,nodefs'
15643      archive_cmds_need_lc_F77=no
15644      hardcode_shlibpath_var_F77=no
15645      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15646      hardcode_libdir_separator_F77=':'
15647      link_all_deplibs_F77=yes
15648      export_dynamic_flag_spec_F77='${wl}-Bexport'
15649      runpath_var='LD_RUN_PATH'
15650
15651      if test "$GCC" = yes; then
15652	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15653	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15654      else
15655	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15656	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15657      fi
15658      ;;
15659
15660    uts4*)
15661      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15662      hardcode_libdir_flag_spec_F77='-L$libdir'
15663      hardcode_shlibpath_var_F77=no
15664      ;;
15665
15666    *)
15667      ld_shlibs_F77=no
15668      ;;
15669    esac
15670  fi
15671
15672{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15673$as_echo "$ld_shlibs_F77" >&6; }
15674test "$ld_shlibs_F77" = no && can_build_shared=no
15675
15676#
15677# Do we need to explicitly link libc?
15678#
15679case "x$archive_cmds_need_lc_F77" in
15680x|xyes)
15681  # Assume -lc should be added
15682  archive_cmds_need_lc_F77=yes
15683
15684  if test "$enable_shared" = yes && test "$GCC" = yes; then
15685    case $archive_cmds_F77 in
15686    *'~'*)
15687      # FIXME: we may have to deal with multi-command sequences.
15688      ;;
15689    '$CC '*)
15690      # Test whether the compiler implicitly links with -lc since on some
15691      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15692      # to ld, don't add -lc before -lgcc.
15693      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15694$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15695      $rm conftest*
15696      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15697
15698      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15699  (eval $ac_compile) 2>&5
15700  ac_status=$?
15701  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702  (exit $ac_status); } 2>conftest.err; then
15703        soname=conftest
15704        lib=conftest
15705        libobjs=conftest.$ac_objext
15706        deplibs=
15707        wl=$lt_prog_compiler_wl_F77
15708	pic_flag=$lt_prog_compiler_pic_F77
15709        compiler_flags=-v
15710        linker_flags=-v
15711        verstring=
15712        output_objdir=.
15713        libname=conftest
15714        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15715        allow_undefined_flag_F77=
15716        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15717  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15718  ac_status=$?
15719  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720  (exit $ac_status); }
15721        then
15722	  archive_cmds_need_lc_F77=no
15723        else
15724	  archive_cmds_need_lc_F77=yes
15725        fi
15726        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15727      else
15728        cat conftest.err 1>&5
15729      fi
15730      $rm conftest*
15731      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15732$as_echo "$archive_cmds_need_lc_F77" >&6; }
15733      ;;
15734    esac
15735  fi
15736  ;;
15737esac
15738
15739{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15740$as_echo_n "checking dynamic linker characteristics... " >&6; }
15741library_names_spec=
15742libname_spec='lib$name'
15743soname_spec=
15744shrext_cmds=".so"
15745postinstall_cmds=
15746postuninstall_cmds=
15747finish_cmds=
15748finish_eval=
15749shlibpath_var=
15750shlibpath_overrides_runpath=unknown
15751version_type=none
15752dynamic_linker="$host_os ld.so"
15753sys_lib_dlsearch_path_spec="/lib /usr/lib"
15754
15755need_lib_prefix=unknown
15756hardcode_into_libs=no
15757
15758# when you set need_version to no, make sure it does not cause -set_version
15759# flags to be left without arguments
15760need_version=unknown
15761
15762case $host_os in
15763aix3*)
15764  version_type=linux
15765  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15766  shlibpath_var=LIBPATH
15767
15768  # AIX 3 has no versioning support, so we append a major version to the name.
15769  soname_spec='${libname}${release}${shared_ext}$major'
15770  ;;
15771
15772aix[4-9]*)
15773  version_type=linux
15774  need_lib_prefix=no
15775  need_version=no
15776  hardcode_into_libs=yes
15777  if test "$host_cpu" = ia64; then
15778    # AIX 5 supports IA64
15779    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15780    shlibpath_var=LD_LIBRARY_PATH
15781  else
15782    # With GCC up to 2.95.x, collect2 would create an import file
15783    # for dependence libraries.  The import file would start with
15784    # the line `#! .'.  This would cause the generated library to
15785    # depend on `.', always an invalid library.  This was fixed in
15786    # development snapshots of GCC prior to 3.0.
15787    case $host_os in
15788      aix4 | aix4.[01] | aix4.[01].*)
15789      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15790	   echo ' yes '
15791	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15792	:
15793      else
15794	can_build_shared=no
15795      fi
15796      ;;
15797    esac
15798    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15799    # soname into executable. Probably we can add versioning support to
15800    # collect2, so additional links can be useful in future.
15801    if test "$aix_use_runtimelinking" = yes; then
15802      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15803      # instead of lib<name>.a to let people know that these are not
15804      # typical AIX shared libraries.
15805      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15806    else
15807      # We preserve .a as extension for shared libraries through AIX4.2
15808      # and later when we are not doing run time linking.
15809      library_names_spec='${libname}${release}.a $libname.a'
15810      soname_spec='${libname}${release}${shared_ext}$major'
15811    fi
15812    shlibpath_var=LIBPATH
15813  fi
15814  ;;
15815
15816amigaos*)
15817  library_names_spec='$libname.ixlibrary $libname.a'
15818  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15819  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'
15820  ;;
15821
15822beos*)
15823  library_names_spec='${libname}${shared_ext}'
15824  dynamic_linker="$host_os ld.so"
15825  shlibpath_var=LIBRARY_PATH
15826  ;;
15827
15828bsdi[45]*)
15829  version_type=linux
15830  need_version=no
15831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832  soname_spec='${libname}${release}${shared_ext}$major'
15833  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15834  shlibpath_var=LD_LIBRARY_PATH
15835  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15836  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15837  # the default ld.so.conf also contains /usr/contrib/lib and
15838  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15839  # libtool to hard-code these into programs
15840  ;;
15841
15842cygwin* | mingw* | pw32*)
15843  version_type=windows
15844  shrext_cmds=".dll"
15845  need_version=no
15846  need_lib_prefix=no
15847
15848  case $GCC,$host_os in
15849  yes,cygwin* | yes,mingw* | yes,pw32*)
15850    library_names_spec='$libname.dll.a'
15851    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15852    postinstall_cmds='base_file=`basename \${file}`~
15853      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15854      dldir=$destdir/`dirname \$dlpath`~
15855      test -d \$dldir || mkdir -p \$dldir~
15856      $install_prog $dir/$dlname \$dldir/$dlname~
15857      chmod a+x \$dldir/$dlname'
15858    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15859      dlpath=$dir/\$dldll~
15860       $rm \$dlpath'
15861    shlibpath_overrides_runpath=yes
15862
15863    case $host_os in
15864    cygwin*)
15865      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15866      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15867      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15868      ;;
15869    mingw*)
15870      # MinGW DLLs use traditional 'lib' prefix
15871      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15872      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15873      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15874        # It is most probably a Windows format PATH printed by
15875        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15876        # path with ; separators, and with drive letters. We can handle the
15877        # drive letters (cygwin fileutils understands them), so leave them,
15878        # especially as we might pass files found there to a mingw objdump,
15879        # which wouldn't understand a cygwinified path. Ahh.
15880        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15881      else
15882        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15883      fi
15884      ;;
15885    pw32*)
15886      # pw32 DLLs use 'pw' prefix rather than 'lib'
15887      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15888      ;;
15889    esac
15890    ;;
15891
15892  *)
15893    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15894    ;;
15895  esac
15896  dynamic_linker='Win32 ld.exe'
15897  # FIXME: first we should search . and the directory the executable is in
15898  shlibpath_var=PATH
15899  ;;
15900
15901darwin* | rhapsody*)
15902  dynamic_linker="$host_os dyld"
15903  version_type=darwin
15904  need_lib_prefix=no
15905  need_version=no
15906  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15907  soname_spec='${libname}${release}${major}$shared_ext'
15908  shlibpath_overrides_runpath=yes
15909  shlibpath_var=DYLD_LIBRARY_PATH
15910  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15911
15912  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15913  ;;
15914
15915dgux*)
15916  version_type=linux
15917  need_lib_prefix=no
15918  need_version=no
15919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15920  soname_spec='${libname}${release}${shared_ext}$major'
15921  shlibpath_var=LD_LIBRARY_PATH
15922  ;;
15923
15924freebsd1*)
15925  dynamic_linker=no
15926  ;;
15927
15928freebsd* | dragonfly*)
15929  # DragonFly does not have aout.  When/if they implement a new
15930  # versioning mechanism, adjust this.
15931  if test -x /usr/bin/objformat; then
15932    objformat=`/usr/bin/objformat`
15933  else
15934    case $host_os in
15935    freebsd[123]*) objformat=aout ;;
15936    *) objformat=elf ;;
15937    esac
15938  fi
15939  version_type=freebsd-$objformat
15940  case $version_type in
15941    freebsd-elf*)
15942      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15943      need_version=no
15944      need_lib_prefix=no
15945      ;;
15946    freebsd-*)
15947      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15948      need_version=yes
15949      ;;
15950  esac
15951  shlibpath_var=LD_LIBRARY_PATH
15952  case $host_os in
15953  freebsd2*)
15954    shlibpath_overrides_runpath=yes
15955    ;;
15956  freebsd3.[01]* | freebsdelf3.[01]*)
15957    shlibpath_overrides_runpath=yes
15958    hardcode_into_libs=yes
15959    ;;
15960  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15961  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15962    shlibpath_overrides_runpath=no
15963    hardcode_into_libs=yes
15964    ;;
15965  *) # from 4.6 on, and DragonFly
15966    shlibpath_overrides_runpath=yes
15967    hardcode_into_libs=yes
15968    ;;
15969  esac
15970  ;;
15971
15972gnu*)
15973  version_type=linux
15974  need_lib_prefix=no
15975  need_version=no
15976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15977  soname_spec='${libname}${release}${shared_ext}$major'
15978  shlibpath_var=LD_LIBRARY_PATH
15979  hardcode_into_libs=yes
15980  ;;
15981
15982hpux9* | hpux10* | hpux11*)
15983  # Give a soname corresponding to the major version so that dld.sl refuses to
15984  # link against other versions.
15985  version_type=sunos
15986  need_lib_prefix=no
15987  need_version=no
15988  case $host_cpu in
15989  ia64*)
15990    shrext_cmds='.so'
15991    hardcode_into_libs=yes
15992    dynamic_linker="$host_os dld.so"
15993    shlibpath_var=LD_LIBRARY_PATH
15994    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15995    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996    soname_spec='${libname}${release}${shared_ext}$major'
15997    if test "X$HPUX_IA64_MODE" = X32; then
15998      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15999    else
16000      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16001    fi
16002    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16003    ;;
16004   hppa*64*)
16005     shrext_cmds='.sl'
16006     hardcode_into_libs=yes
16007     dynamic_linker="$host_os dld.sl"
16008     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16009     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16010     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011     soname_spec='${libname}${release}${shared_ext}$major'
16012     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16013     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16014     ;;
16015   *)
16016    shrext_cmds='.sl'
16017    dynamic_linker="$host_os dld.sl"
16018    shlibpath_var=SHLIB_PATH
16019    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16020    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16021    soname_spec='${libname}${release}${shared_ext}$major'
16022    ;;
16023  esac
16024  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16025  postinstall_cmds='chmod 555 $lib'
16026  ;;
16027
16028interix[3-9]*)
16029  version_type=linux
16030  need_lib_prefix=no
16031  need_version=no
16032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16033  soname_spec='${libname}${release}${shared_ext}$major'
16034  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16035  shlibpath_var=LD_LIBRARY_PATH
16036  shlibpath_overrides_runpath=no
16037  hardcode_into_libs=yes
16038  ;;
16039
16040irix5* | irix6* | nonstopux*)
16041  case $host_os in
16042    nonstopux*) version_type=nonstopux ;;
16043    *)
16044	if test "$lt_cv_prog_gnu_ld" = yes; then
16045		version_type=linux
16046	else
16047		version_type=irix
16048	fi ;;
16049  esac
16050  need_lib_prefix=no
16051  need_version=no
16052  soname_spec='${libname}${release}${shared_ext}$major'
16053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16054  case $host_os in
16055  irix5* | nonstopux*)
16056    libsuff= shlibsuff=
16057    ;;
16058  *)
16059    case $LD in # libtool.m4 will add one of these switches to LD
16060    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16061      libsuff= shlibsuff= libmagic=32-bit;;
16062    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16063      libsuff=32 shlibsuff=N32 libmagic=N32;;
16064    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16065      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16066    *) libsuff= shlibsuff= libmagic=never-match;;
16067    esac
16068    ;;
16069  esac
16070  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16071  shlibpath_overrides_runpath=no
16072  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16073  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16074  hardcode_into_libs=yes
16075  ;;
16076
16077# No shared lib support for Linux oldld, aout, or coff.
16078linux*oldld* | linux*aout* | linux*coff*)
16079  dynamic_linker=no
16080  ;;
16081
16082# This must be Linux ELF.
16083linux* | k*bsd*-gnu)
16084  version_type=linux
16085  need_lib_prefix=no
16086  need_version=no
16087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16088  soname_spec='${libname}${release}${shared_ext}$major'
16089  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16090  shlibpath_var=LD_LIBRARY_PATH
16091  shlibpath_overrides_runpath=no
16092  # This implies no fast_install, which is unacceptable.
16093  # Some rework will be needed to allow for fast_install
16094  # before this can be enabled.
16095  hardcode_into_libs=yes
16096
16097  # Append ld.so.conf contents to the search path
16098  if test -f /etc/ld.so.conf; then
16099    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16100    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16101  fi
16102
16103  # We used to test for /lib/ld.so.1 and disable shared libraries on
16104  # powerpc, because MkLinux only supported shared libraries with the
16105  # GNU dynamic linker.  Since this was broken with cross compilers,
16106  # most powerpc-linux boxes support dynamic linking these days and
16107  # people can always --disable-shared, the test was removed, and we
16108  # assume the GNU/Linux dynamic linker is in use.
16109  dynamic_linker='GNU/Linux ld.so'
16110  ;;
16111
16112netbsd*)
16113  version_type=sunos
16114  need_lib_prefix=no
16115  need_version=no
16116  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16118    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16119    dynamic_linker='NetBSD (a.out) ld.so'
16120  else
16121    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16122    soname_spec='${libname}${release}${shared_ext}$major'
16123    dynamic_linker='NetBSD ld.elf_so'
16124  fi
16125  shlibpath_var=LD_LIBRARY_PATH
16126  shlibpath_overrides_runpath=yes
16127  hardcode_into_libs=yes
16128  ;;
16129
16130newsos6)
16131  version_type=linux
16132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16133  shlibpath_var=LD_LIBRARY_PATH
16134  shlibpath_overrides_runpath=yes
16135  ;;
16136
16137nto-qnx*)
16138  version_type=linux
16139  need_lib_prefix=no
16140  need_version=no
16141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142  soname_spec='${libname}${release}${shared_ext}$major'
16143  shlibpath_var=LD_LIBRARY_PATH
16144  shlibpath_overrides_runpath=yes
16145  ;;
16146
16147openbsd*)
16148  version_type=sunos
16149  sys_lib_dlsearch_path_spec="/usr/lib"
16150  need_lib_prefix=no
16151  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16152  case $host_os in
16153    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16154    *)                         need_version=no  ;;
16155  esac
16156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16157  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16158  shlibpath_var=LD_LIBRARY_PATH
16159  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16160    case $host_os in
16161      openbsd2.[89] | openbsd2.[89].*)
16162	shlibpath_overrides_runpath=no
16163	;;
16164      *)
16165	shlibpath_overrides_runpath=yes
16166	;;
16167      esac
16168  else
16169    shlibpath_overrides_runpath=yes
16170  fi
16171  ;;
16172
16173os2*)
16174  libname_spec='$name'
16175  shrext_cmds=".dll"
16176  need_lib_prefix=no
16177  library_names_spec='$libname${shared_ext} $libname.a'
16178  dynamic_linker='OS/2 ld.exe'
16179  shlibpath_var=LIBPATH
16180  ;;
16181
16182osf3* | osf4* | osf5*)
16183  version_type=osf
16184  need_lib_prefix=no
16185  need_version=no
16186  soname_spec='${libname}${release}${shared_ext}$major'
16187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16188  shlibpath_var=LD_LIBRARY_PATH
16189  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16190  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16191  ;;
16192
16193rdos*)
16194  dynamic_linker=no
16195  ;;
16196
16197solaris*)
16198  version_type=linux
16199  need_lib_prefix=no
16200  need_version=no
16201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16202  soname_spec='${libname}${release}${shared_ext}$major'
16203  shlibpath_var=LD_LIBRARY_PATH
16204  shlibpath_overrides_runpath=yes
16205  hardcode_into_libs=yes
16206  # ldd complains unless libraries are executable
16207  postinstall_cmds='chmod +x $lib'
16208  ;;
16209
16210sunos4*)
16211  version_type=sunos
16212  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16213  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16214  shlibpath_var=LD_LIBRARY_PATH
16215  shlibpath_overrides_runpath=yes
16216  if test "$with_gnu_ld" = yes; then
16217    need_lib_prefix=no
16218  fi
16219  need_version=yes
16220  ;;
16221
16222sysv4 | sysv4.3*)
16223  version_type=linux
16224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225  soname_spec='${libname}${release}${shared_ext}$major'
16226  shlibpath_var=LD_LIBRARY_PATH
16227  case $host_vendor in
16228    sni)
16229      shlibpath_overrides_runpath=no
16230      need_lib_prefix=no
16231      export_dynamic_flag_spec='${wl}-Blargedynsym'
16232      runpath_var=LD_RUN_PATH
16233      ;;
16234    siemens)
16235      need_lib_prefix=no
16236      ;;
16237    motorola)
16238      need_lib_prefix=no
16239      need_version=no
16240      shlibpath_overrides_runpath=no
16241      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16242      ;;
16243  esac
16244  ;;
16245
16246sysv4*MP*)
16247  if test -d /usr/nec ;then
16248    version_type=linux
16249    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16250    soname_spec='$libname${shared_ext}.$major'
16251    shlibpath_var=LD_LIBRARY_PATH
16252  fi
16253  ;;
16254
16255sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16256  version_type=freebsd-elf
16257  need_lib_prefix=no
16258  need_version=no
16259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16260  soname_spec='${libname}${release}${shared_ext}$major'
16261  shlibpath_var=LD_LIBRARY_PATH
16262  hardcode_into_libs=yes
16263  if test "$with_gnu_ld" = yes; then
16264    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16265    shlibpath_overrides_runpath=no
16266  else
16267    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16268    shlibpath_overrides_runpath=yes
16269    case $host_os in
16270      sco3.2v5*)
16271        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16272	;;
16273    esac
16274  fi
16275  sys_lib_dlsearch_path_spec='/usr/lib'
16276  ;;
16277
16278uts4*)
16279  version_type=linux
16280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16281  soname_spec='${libname}${release}${shared_ext}$major'
16282  shlibpath_var=LD_LIBRARY_PATH
16283  ;;
16284
16285*)
16286  dynamic_linker=no
16287  ;;
16288esac
16289{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16290$as_echo "$dynamic_linker" >&6; }
16291test "$dynamic_linker" = no && can_build_shared=no
16292
16293if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16294  $as_echo_n "(cached) " >&6
16295else
16296  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16297fi
16298
16299sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16300if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16301  $as_echo_n "(cached) " >&6
16302else
16303  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16304fi
16305
16306sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16307
16308variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16309if test "$GCC" = yes; then
16310  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16311fi
16312
16313{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16314$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16315hardcode_action_F77=
16316if test -n "$hardcode_libdir_flag_spec_F77" || \
16317   test -n "$runpath_var_F77" || \
16318   test "X$hardcode_automatic_F77" = "Xyes" ; then
16319
16320  # We can hardcode non-existant directories.
16321  if test "$hardcode_direct_F77" != no &&
16322     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16323     # have to relink, otherwise we might link with an installed library
16324     # when we should be linking with a yet-to-be-installed one
16325     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16326     test "$hardcode_minus_L_F77" != no; then
16327    # Linking always hardcodes the temporary library directory.
16328    hardcode_action_F77=relink
16329  else
16330    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16331    hardcode_action_F77=immediate
16332  fi
16333else
16334  # We cannot hardcode anything, or else we can only hardcode existing
16335  # directories.
16336  hardcode_action_F77=unsupported
16337fi
16338{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16339$as_echo "$hardcode_action_F77" >&6; }
16340
16341if test "$hardcode_action_F77" = relink; then
16342  # Fast installation is not supported
16343  enable_fast_install=no
16344elif test "$shlibpath_overrides_runpath" = yes ||
16345     test "$enable_shared" = no; then
16346  # Fast installation is not necessary
16347  enable_fast_install=needless
16348fi
16349
16350
16351# The else clause should only fire when bootstrapping the
16352# libtool distribution, otherwise you forgot to ship ltmain.sh
16353# with your package, and you will get complaints that there are
16354# no rules to generate ltmain.sh.
16355if test -f "$ltmain"; then
16356  # See if we are running on zsh, and set the options which allow our commands through
16357  # without removal of \ escapes.
16358  if test -n "${ZSH_VERSION+set}" ; then
16359    setopt NO_GLOB_SUBST
16360  fi
16361  # Now quote all the things that may contain metacharacters while being
16362  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16363  # variables and quote the copies for generation of the libtool script.
16364  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16365    SED SHELL STRIP \
16366    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16367    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16368    deplibs_check_method reload_flag reload_cmds need_locks \
16369    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16370    lt_cv_sys_global_symbol_to_c_name_address \
16371    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16372    old_postinstall_cmds old_postuninstall_cmds \
16373    compiler_F77 \
16374    CC_F77 \
16375    LD_F77 \
16376    lt_prog_compiler_wl_F77 \
16377    lt_prog_compiler_pic_F77 \
16378    lt_prog_compiler_static_F77 \
16379    lt_prog_compiler_no_builtin_flag_F77 \
16380    export_dynamic_flag_spec_F77 \
16381    thread_safe_flag_spec_F77 \
16382    whole_archive_flag_spec_F77 \
16383    enable_shared_with_static_runtimes_F77 \
16384    old_archive_cmds_F77 \
16385    old_archive_from_new_cmds_F77 \
16386    predep_objects_F77 \
16387    postdep_objects_F77 \
16388    predeps_F77 \
16389    postdeps_F77 \
16390    compiler_lib_search_path_F77 \
16391    compiler_lib_search_dirs_F77 \
16392    archive_cmds_F77 \
16393    archive_expsym_cmds_F77 \
16394    postinstall_cmds_F77 \
16395    postuninstall_cmds_F77 \
16396    old_archive_from_expsyms_cmds_F77 \
16397    allow_undefined_flag_F77 \
16398    no_undefined_flag_F77 \
16399    export_symbols_cmds_F77 \
16400    hardcode_libdir_flag_spec_F77 \
16401    hardcode_libdir_flag_spec_ld_F77 \
16402    hardcode_libdir_separator_F77 \
16403    hardcode_automatic_F77 \
16404    module_cmds_F77 \
16405    module_expsym_cmds_F77 \
16406    lt_cv_prog_compiler_c_o_F77 \
16407    fix_srcfile_path_F77 \
16408    exclude_expsyms_F77 \
16409    include_expsyms_F77; do
16410
16411    case $var in
16412    old_archive_cmds_F77 | \
16413    old_archive_from_new_cmds_F77 | \
16414    archive_cmds_F77 | \
16415    archive_expsym_cmds_F77 | \
16416    module_cmds_F77 | \
16417    module_expsym_cmds_F77 | \
16418    old_archive_from_expsyms_cmds_F77 | \
16419    export_symbols_cmds_F77 | \
16420    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16421    postinstall_cmds | postuninstall_cmds | \
16422    old_postinstall_cmds | old_postuninstall_cmds | \
16423    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16424      # Double-quote double-evaled strings.
16425      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16426      ;;
16427    *)
16428      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16429      ;;
16430    esac
16431  done
16432
16433  case $lt_echo in
16434  *'\$0 --fallback-echo"')
16435    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16436    ;;
16437  esac
16438
16439cfgfile="$ofile"
16440
16441  cat <<__EOF__ >> "$cfgfile"
16442# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16443
16444# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16445
16446# Shell to use when invoking shell scripts.
16447SHELL=$lt_SHELL
16448
16449# Whether or not to build shared libraries.
16450build_libtool_libs=$enable_shared
16451
16452# Whether or not to build static libraries.
16453build_old_libs=$enable_static
16454
16455# Whether or not to add -lc for building shared libraries.
16456build_libtool_need_lc=$archive_cmds_need_lc_F77
16457
16458# Whether or not to disallow shared libs when runtime libs are static
16459allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16460
16461# Whether or not to optimize for fast installation.
16462fast_install=$enable_fast_install
16463
16464# The host system.
16465host_alias=$host_alias
16466host=$host
16467host_os=$host_os
16468
16469# The build system.
16470build_alias=$build_alias
16471build=$build
16472build_os=$build_os
16473
16474# An echo program that does not interpret backslashes.
16475echo=$lt_echo
16476
16477# The archiver.
16478AR=$lt_AR
16479AR_FLAGS=$lt_AR_FLAGS
16480
16481# A C compiler.
16482LTCC=$lt_LTCC
16483
16484# LTCC compiler flags.
16485LTCFLAGS=$lt_LTCFLAGS
16486
16487# A language-specific compiler.
16488CC=$lt_compiler_F77
16489
16490# Is the compiler the GNU C compiler?
16491with_gcc=$GCC_F77
16492
16493# An ERE matcher.
16494EGREP=$lt_EGREP
16495
16496# The linker used to build libraries.
16497LD=$lt_LD_F77
16498
16499# Whether we need hard or soft links.
16500LN_S=$lt_LN_S
16501
16502# A BSD-compatible nm program.
16503NM=$lt_NM
16504
16505# A symbol stripping program
16506STRIP=$lt_STRIP
16507
16508# Used to examine libraries when file_magic_cmd begins "file"
16509MAGIC_CMD=$MAGIC_CMD
16510
16511# Used on cygwin: DLL creation program.
16512DLLTOOL="$DLLTOOL"
16513
16514# Used on cygwin: object dumper.
16515OBJDUMP="$OBJDUMP"
16516
16517# Used on cygwin: assembler.
16518AS="$AS"
16519
16520# The name of the directory that contains temporary libtool files.
16521objdir=$objdir
16522
16523# How to create reloadable object files.
16524reload_flag=$lt_reload_flag
16525reload_cmds=$lt_reload_cmds
16526
16527# How to pass a linker flag through the compiler.
16528wl=$lt_lt_prog_compiler_wl_F77
16529
16530# Object file suffix (normally "o").
16531objext="$ac_objext"
16532
16533# Old archive suffix (normally "a").
16534libext="$libext"
16535
16536# Shared library suffix (normally ".so").
16537shrext_cmds='$shrext_cmds'
16538
16539# Executable file suffix (normally "").
16540exeext="$exeext"
16541
16542# Additional compiler flags for building library objects.
16543pic_flag=$lt_lt_prog_compiler_pic_F77
16544pic_mode=$pic_mode
16545
16546# What is the maximum length of a command?
16547max_cmd_len=$lt_cv_sys_max_cmd_len
16548
16549# Does compiler simultaneously support -c and -o options?
16550compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16551
16552# Must we lock files when doing compilation?
16553need_locks=$lt_need_locks
16554
16555# Do we need the lib prefix for modules?
16556need_lib_prefix=$need_lib_prefix
16557
16558# Do we need a version for libraries?
16559need_version=$need_version
16560
16561# Whether dlopen is supported.
16562dlopen_support=$enable_dlopen
16563
16564# Whether dlopen of programs is supported.
16565dlopen_self=$enable_dlopen_self
16566
16567# Whether dlopen of statically linked programs is supported.
16568dlopen_self_static=$enable_dlopen_self_static
16569
16570# Compiler flag to prevent dynamic linking.
16571link_static_flag=$lt_lt_prog_compiler_static_F77
16572
16573# Compiler flag to turn off builtin functions.
16574no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16575
16576# Compiler flag to allow reflexive dlopens.
16577export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16578
16579# Compiler flag to generate shared objects directly from archives.
16580whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16581
16582# Compiler flag to generate thread-safe objects.
16583thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16584
16585# Library versioning type.
16586version_type=$version_type
16587
16588# Format of library name prefix.
16589libname_spec=$lt_libname_spec
16590
16591# List of archive names.  First name is the real one, the rest are links.
16592# The last name is the one that the linker finds with -lNAME.
16593library_names_spec=$lt_library_names_spec
16594
16595# The coded name of the library, if different from the real name.
16596soname_spec=$lt_soname_spec
16597
16598# Commands used to build and install an old-style archive.
16599RANLIB=$lt_RANLIB
16600old_archive_cmds=$lt_old_archive_cmds_F77
16601old_postinstall_cmds=$lt_old_postinstall_cmds
16602old_postuninstall_cmds=$lt_old_postuninstall_cmds
16603
16604# Create an old-style archive from a shared archive.
16605old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16606
16607# Create a temporary old-style archive to link instead of a shared archive.
16608old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16609
16610# Commands used to build and install a shared archive.
16611archive_cmds=$lt_archive_cmds_F77
16612archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16613postinstall_cmds=$lt_postinstall_cmds
16614postuninstall_cmds=$lt_postuninstall_cmds
16615
16616# Commands used to build a loadable module (assumed same as above if empty)
16617module_cmds=$lt_module_cmds_F77
16618module_expsym_cmds=$lt_module_expsym_cmds_F77
16619
16620# Commands to strip libraries.
16621old_striplib=$lt_old_striplib
16622striplib=$lt_striplib
16623
16624# Dependencies to place before the objects being linked to create a
16625# shared library.
16626predep_objects=$lt_predep_objects_F77
16627
16628# Dependencies to place after the objects being linked to create a
16629# shared library.
16630postdep_objects=$lt_postdep_objects_F77
16631
16632# Dependencies to place before the objects being linked to create a
16633# shared library.
16634predeps=$lt_predeps_F77
16635
16636# Dependencies to place after the objects being linked to create a
16637# shared library.
16638postdeps=$lt_postdeps_F77
16639
16640# The directories searched by this compiler when creating a shared
16641# library
16642compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16643
16644# The library search path used internally by the compiler when linking
16645# a shared library.
16646compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16647
16648# Method to check whether dependent libraries are shared objects.
16649deplibs_check_method=$lt_deplibs_check_method
16650
16651# Command to use when deplibs_check_method == file_magic.
16652file_magic_cmd=$lt_file_magic_cmd
16653
16654# Flag that allows shared libraries with undefined symbols to be built.
16655allow_undefined_flag=$lt_allow_undefined_flag_F77
16656
16657# Flag that forces no undefined symbols.
16658no_undefined_flag=$lt_no_undefined_flag_F77
16659
16660# Commands used to finish a libtool library installation in a directory.
16661finish_cmds=$lt_finish_cmds
16662
16663# Same as above, but a single script fragment to be evaled but not shown.
16664finish_eval=$lt_finish_eval
16665
16666# Take the output of nm and produce a listing of raw symbols and C names.
16667global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16668
16669# Transform the output of nm in a proper C declaration
16670global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16671
16672# Transform the output of nm in a C name address pair
16673global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16674
16675# This is the shared library runtime path variable.
16676runpath_var=$runpath_var
16677
16678# This is the shared library path variable.
16679shlibpath_var=$shlibpath_var
16680
16681# Is shlibpath searched before the hard-coded library search path?
16682shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16683
16684# How to hardcode a shared library path into an executable.
16685hardcode_action=$hardcode_action_F77
16686
16687# Whether we should hardcode library paths into libraries.
16688hardcode_into_libs=$hardcode_into_libs
16689
16690# Flag to hardcode \$libdir into a binary during linking.
16691# This must work even if \$libdir does not exist.
16692hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16693
16694# If ld is used when linking, flag to hardcode \$libdir into
16695# a binary during linking. This must work even if \$libdir does
16696# not exist.
16697hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16698
16699# Whether we need a single -rpath flag with a separated argument.
16700hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16701
16702# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16703# resulting binary.
16704hardcode_direct=$hardcode_direct_F77
16705
16706# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16707# resulting binary.
16708hardcode_minus_L=$hardcode_minus_L_F77
16709
16710# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16711# the resulting binary.
16712hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16713
16714# Set to yes if building a shared library automatically hardcodes DIR into the library
16715# and all subsequent libraries and executables linked against it.
16716hardcode_automatic=$hardcode_automatic_F77
16717
16718# Variables whose values should be saved in libtool wrapper scripts and
16719# restored at relink time.
16720variables_saved_for_relink="$variables_saved_for_relink"
16721
16722# Whether libtool must link a program against all its dependency libraries.
16723link_all_deplibs=$link_all_deplibs_F77
16724
16725# Compile-time system search path for libraries
16726sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16727
16728# Run-time system search path for libraries
16729sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16730
16731# Fix the shell variable \$srcfile for the compiler.
16732fix_srcfile_path=$lt_fix_srcfile_path
16733
16734# Set to yes if exported symbols are required.
16735always_export_symbols=$always_export_symbols_F77
16736
16737# The commands to list exported symbols.
16738export_symbols_cmds=$lt_export_symbols_cmds_F77
16739
16740# The commands to extract the exported symbol list from a shared archive.
16741extract_expsyms_cmds=$lt_extract_expsyms_cmds
16742
16743# Symbols that should not be listed in the preloaded symbols.
16744exclude_expsyms=$lt_exclude_expsyms_F77
16745
16746# Symbols that must always be exported.
16747include_expsyms=$lt_include_expsyms_F77
16748
16749# ### END LIBTOOL TAG CONFIG: $tagname
16750
16751__EOF__
16752
16753
16754else
16755  # If there is no Makefile yet, we rely on a make rule to execute
16756  # `config.status --recheck' to rerun these tests and create the
16757  # libtool script then.
16758  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16759  if test -f "$ltmain_in"; then
16760    test -f Makefile && make "$ltmain"
16761  fi
16762fi
16763
16764
16765ac_ext=c
16766ac_cpp='$CPP $CPPFLAGS'
16767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16769ac_compiler_gnu=$ac_cv_c_compiler_gnu
16770
16771CC="$lt_save_CC"
16772
16773	else
16774	  tagname=""
16775	fi
16776	;;
16777
16778      GCJ)
16779	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16780
16781
16782# Source file extension for Java test sources.
16783ac_ext=java
16784
16785# Object file extension for compiled Java test sources.
16786objext=o
16787objext_GCJ=$objext
16788
16789# Code to be used in simple compile tests
16790lt_simple_compile_test_code="class foo {}"
16791
16792# Code to be used in simple link tests
16793lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16794
16795# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16796
16797# If no C compiler was specified, use CC.
16798LTCC=${LTCC-"$CC"}
16799
16800# If no C compiler flags were specified, use CFLAGS.
16801LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16802
16803# Allow CC to be a program name with arguments.
16804compiler=$CC
16805
16806
16807# save warnings/boilerplate of simple test code
16808ac_outfile=conftest.$ac_objext
16809echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16810eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16811_lt_compiler_boilerplate=`cat conftest.err`
16812$rm conftest*
16813
16814ac_outfile=conftest.$ac_objext
16815echo "$lt_simple_link_test_code" >conftest.$ac_ext
16816eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16817_lt_linker_boilerplate=`cat conftest.err`
16818$rm -r conftest*
16819
16820
16821# Allow CC to be a program name with arguments.
16822lt_save_CC="$CC"
16823CC=${GCJ-"gcj"}
16824compiler=$CC
16825compiler_GCJ=$CC
16826for cc_temp in $compiler""; do
16827  case $cc_temp in
16828    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16829    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16830    \-*) ;;
16831    *) break;;
16832  esac
16833done
16834cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16835
16836
16837# GCJ did not exist at the time GCC didn't implicitly link libc in.
16838archive_cmds_need_lc_GCJ=no
16839
16840old_archive_cmds_GCJ=$old_archive_cmds
16841
16842
16843lt_prog_compiler_no_builtin_flag_GCJ=
16844
16845if test "$GCC" = yes; then
16846  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16847
16848
16849{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16850$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16851if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16852  $as_echo_n "(cached) " >&6
16853else
16854  lt_cv_prog_compiler_rtti_exceptions=no
16855  ac_outfile=conftest.$ac_objext
16856   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16857   lt_compiler_flag="-fno-rtti -fno-exceptions"
16858   # Insert the option either (1) after the last *FLAGS variable, or
16859   # (2) before a word containing "conftest.", or (3) at the end.
16860   # Note that $ac_compile itself does not contain backslashes and begins
16861   # with a dollar sign (not a hyphen), so the echo should work correctly.
16862   # The option is referenced via a variable to avoid confusing sed.
16863   lt_compile=`echo "$ac_compile" | $SED \
16864   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16865   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16866   -e 's:$: $lt_compiler_flag:'`
16867   (eval echo "\"\$as_me:16867: $lt_compile\"" >&5)
16868   (eval "$lt_compile" 2>conftest.err)
16869   ac_status=$?
16870   cat conftest.err >&5
16871   echo "$as_me:16871: \$? = $ac_status" >&5
16872   if (exit $ac_status) && test -s "$ac_outfile"; then
16873     # The compiler can only warn and ignore the option if not recognized
16874     # So say no if there are warnings other than the usual output.
16875     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16876     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16877     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16878       lt_cv_prog_compiler_rtti_exceptions=yes
16879     fi
16880   fi
16881   $rm conftest*
16882
16883fi
16884{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16885$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16886
16887if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16888    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16889else
16890    :
16891fi
16892
16893fi
16894
16895lt_prog_compiler_wl_GCJ=
16896lt_prog_compiler_pic_GCJ=
16897lt_prog_compiler_static_GCJ=
16898
16899{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16900$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16901
16902  if test "$GCC" = yes; then
16903    lt_prog_compiler_wl_GCJ='-Wl,'
16904    lt_prog_compiler_static_GCJ='-static'
16905
16906    case $host_os in
16907      aix*)
16908      # All AIX code is PIC.
16909      if test "$host_cpu" = ia64; then
16910	# AIX 5 now supports IA64 processor
16911	lt_prog_compiler_static_GCJ='-Bstatic'
16912      fi
16913      ;;
16914
16915    amigaos*)
16916      # FIXME: we need at least 68020 code to build shared libraries, but
16917      # adding the `-m68020' flag to GCC prevents building anything better,
16918      # like `-m68040'.
16919      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16920      ;;
16921
16922    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16923      # PIC is the default for these OSes.
16924      ;;
16925
16926    mingw* | cygwin* | pw32* | os2*)
16927      # This hack is so that the source file can tell whether it is being
16928      # built for inclusion in a dll (and should export symbols for example).
16929      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16930      # (--disable-auto-import) libraries
16931
16932      ;;
16933
16934    darwin* | rhapsody*)
16935      # PIC is the default on this platform
16936      # Common symbols not allowed in MH_DYLIB files
16937      lt_prog_compiler_pic_GCJ='-fno-common'
16938      ;;
16939
16940    interix[3-9]*)
16941      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16942      # Instead, we relocate shared libraries at runtime.
16943      ;;
16944
16945    msdosdjgpp*)
16946      # Just because we use GCC doesn't mean we suddenly get shared libraries
16947      # on systems that don't support them.
16948      lt_prog_compiler_can_build_shared_GCJ=no
16949      enable_shared=no
16950      ;;
16951
16952    sysv4*MP*)
16953      if test -d /usr/nec; then
16954	lt_prog_compiler_pic_GCJ=-Kconform_pic
16955      fi
16956      ;;
16957
16958    hpux*)
16959      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16960      # not for PA HP-UX.
16961      case $host_cpu in
16962      hppa*64*|ia64*)
16963	# +Z the default
16964	;;
16965      *)
16966	lt_prog_compiler_pic_GCJ='-fPIC'
16967	;;
16968      esac
16969      ;;
16970
16971    *)
16972      lt_prog_compiler_pic_GCJ='-fPIC'
16973      ;;
16974    esac
16975  else
16976    # PORTME Check for flag to pass linker flags through the system compiler.
16977    case $host_os in
16978    aix*)
16979      lt_prog_compiler_wl_GCJ='-Wl,'
16980      if test "$host_cpu" = ia64; then
16981	# AIX 5 now supports IA64 processor
16982	lt_prog_compiler_static_GCJ='-Bstatic'
16983      else
16984	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16985      fi
16986      ;;
16987      darwin*)
16988        # PIC is the default on this platform
16989        # Common symbols not allowed in MH_DYLIB files
16990       case $cc_basename in
16991         xlc*)
16992         lt_prog_compiler_pic_GCJ='-qnocommon'
16993         lt_prog_compiler_wl_GCJ='-Wl,'
16994         ;;
16995       esac
16996       ;;
16997
16998    mingw* | cygwin* | pw32* | os2*)
16999      # This hack is so that the source file can tell whether it is being
17000      # built for inclusion in a dll (and should export symbols for example).
17001
17002      ;;
17003
17004    hpux9* | hpux10* | hpux11*)
17005      lt_prog_compiler_wl_GCJ='-Wl,'
17006      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17007      # not for PA HP-UX.
17008      case $host_cpu in
17009      hppa*64*|ia64*)
17010	# +Z the default
17011	;;
17012      *)
17013	lt_prog_compiler_pic_GCJ='+Z'
17014	;;
17015      esac
17016      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17017      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17018      ;;
17019
17020    irix5* | irix6* | nonstopux*)
17021      lt_prog_compiler_wl_GCJ='-Wl,'
17022      # PIC (with -KPIC) is the default.
17023      lt_prog_compiler_static_GCJ='-non_shared'
17024      ;;
17025
17026    newsos6)
17027      lt_prog_compiler_pic_GCJ='-KPIC'
17028      lt_prog_compiler_static_GCJ='-Bstatic'
17029      ;;
17030
17031    linux* | k*bsd*-gnu)
17032      case $cc_basename in
17033      icc* | ecc*)
17034	lt_prog_compiler_wl_GCJ='-Wl,'
17035	lt_prog_compiler_pic_GCJ='-KPIC'
17036	lt_prog_compiler_static_GCJ='-static'
17037        ;;
17038      pgcc* | pgf77* | pgf90* | pgf95*)
17039        # Portland Group compilers (*not* the Pentium gcc compiler,
17040	# which looks to be a dead project)
17041	lt_prog_compiler_wl_GCJ='-Wl,'
17042	lt_prog_compiler_pic_GCJ='-fpic'
17043	lt_prog_compiler_static_GCJ='-Bstatic'
17044        ;;
17045      ccc*)
17046        lt_prog_compiler_wl_GCJ='-Wl,'
17047        # All Alpha code is PIC.
17048        lt_prog_compiler_static_GCJ='-non_shared'
17049        ;;
17050      *)
17051        case `$CC -V 2>&1 | sed 5q` in
17052	*Sun\ C*)
17053	  # Sun C 5.9
17054	  lt_prog_compiler_pic_GCJ='-KPIC'
17055	  lt_prog_compiler_static_GCJ='-Bstatic'
17056	  lt_prog_compiler_wl_GCJ='-Wl,'
17057	  ;;
17058	*Sun\ F*)
17059	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17060	  lt_prog_compiler_pic_GCJ='-KPIC'
17061	  lt_prog_compiler_static_GCJ='-Bstatic'
17062	  lt_prog_compiler_wl_GCJ=''
17063	  ;;
17064	esac
17065	;;
17066      esac
17067      ;;
17068
17069    osf3* | osf4* | osf5*)
17070      lt_prog_compiler_wl_GCJ='-Wl,'
17071      # All OSF/1 code is PIC.
17072      lt_prog_compiler_static_GCJ='-non_shared'
17073      ;;
17074
17075    rdos*)
17076      lt_prog_compiler_static_GCJ='-non_shared'
17077      ;;
17078
17079    solaris*)
17080      lt_prog_compiler_pic_GCJ='-KPIC'
17081      lt_prog_compiler_static_GCJ='-Bstatic'
17082      case $cc_basename in
17083      f77* | f90* | f95*)
17084	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17085      *)
17086	lt_prog_compiler_wl_GCJ='-Wl,';;
17087      esac
17088      ;;
17089
17090    sunos4*)
17091      lt_prog_compiler_wl_GCJ='-Qoption ld '
17092      lt_prog_compiler_pic_GCJ='-PIC'
17093      lt_prog_compiler_static_GCJ='-Bstatic'
17094      ;;
17095
17096    sysv4 | sysv4.2uw2* | sysv4.3*)
17097      lt_prog_compiler_wl_GCJ='-Wl,'
17098      lt_prog_compiler_pic_GCJ='-KPIC'
17099      lt_prog_compiler_static_GCJ='-Bstatic'
17100      ;;
17101
17102    sysv4*MP*)
17103      if test -d /usr/nec ;then
17104	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17105	lt_prog_compiler_static_GCJ='-Bstatic'
17106      fi
17107      ;;
17108
17109    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17110      lt_prog_compiler_wl_GCJ='-Wl,'
17111      lt_prog_compiler_pic_GCJ='-KPIC'
17112      lt_prog_compiler_static_GCJ='-Bstatic'
17113      ;;
17114
17115    unicos*)
17116      lt_prog_compiler_wl_GCJ='-Wl,'
17117      lt_prog_compiler_can_build_shared_GCJ=no
17118      ;;
17119
17120    uts4*)
17121      lt_prog_compiler_pic_GCJ='-pic'
17122      lt_prog_compiler_static_GCJ='-Bstatic'
17123      ;;
17124
17125    *)
17126      lt_prog_compiler_can_build_shared_GCJ=no
17127      ;;
17128    esac
17129  fi
17130
17131{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17132$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17133
17134#
17135# Check to make sure the PIC flag actually works.
17136#
17137if test -n "$lt_prog_compiler_pic_GCJ"; then
17138
17139{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17140$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17141if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17142  $as_echo_n "(cached) " >&6
17143else
17144  lt_cv_prog_compiler_pic_works_GCJ=no
17145  ac_outfile=conftest.$ac_objext
17146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17147   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17148   # Insert the option either (1) after the last *FLAGS variable, or
17149   # (2) before a word containing "conftest.", or (3) at the end.
17150   # Note that $ac_compile itself does not contain backslashes and begins
17151   # with a dollar sign (not a hyphen), so the echo should work correctly.
17152   # The option is referenced via a variable to avoid confusing sed.
17153   lt_compile=`echo "$ac_compile" | $SED \
17154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17156   -e 's:$: $lt_compiler_flag:'`
17157   (eval echo "\"\$as_me:17157: $lt_compile\"" >&5)
17158   (eval "$lt_compile" 2>conftest.err)
17159   ac_status=$?
17160   cat conftest.err >&5
17161   echo "$as_me:17161: \$? = $ac_status" >&5
17162   if (exit $ac_status) && test -s "$ac_outfile"; then
17163     # The compiler can only warn and ignore the option if not recognized
17164     # So say no if there are warnings other than the usual output.
17165     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17168       lt_cv_prog_compiler_pic_works_GCJ=yes
17169     fi
17170   fi
17171   $rm conftest*
17172
17173fi
17174{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17175$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17176
17177if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17178    case $lt_prog_compiler_pic_GCJ in
17179     "" | " "*) ;;
17180     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17181     esac
17182else
17183    lt_prog_compiler_pic_GCJ=
17184     lt_prog_compiler_can_build_shared_GCJ=no
17185fi
17186
17187fi
17188case $host_os in
17189  # For platforms which do not support PIC, -DPIC is meaningless:
17190  *djgpp*)
17191    lt_prog_compiler_pic_GCJ=
17192    ;;
17193  *)
17194    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17195    ;;
17196esac
17197
17198#
17199# Check to make sure the static flag actually works.
17200#
17201wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17202{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17203$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17204if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17205  $as_echo_n "(cached) " >&6
17206else
17207  lt_cv_prog_compiler_static_works_GCJ=no
17208   save_LDFLAGS="$LDFLAGS"
17209   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17210   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17211   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17212     # The linker can only warn and ignore the option if not recognized
17213     # So say no if there are warnings
17214     if test -s conftest.err; then
17215       # Append any errors to the config.log.
17216       cat conftest.err 1>&5
17217       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17218       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17219       if diff conftest.exp conftest.er2 >/dev/null; then
17220         lt_cv_prog_compiler_static_works_GCJ=yes
17221       fi
17222     else
17223       lt_cv_prog_compiler_static_works_GCJ=yes
17224     fi
17225   fi
17226   $rm -r conftest*
17227   LDFLAGS="$save_LDFLAGS"
17228
17229fi
17230{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17231$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17232
17233if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17234    :
17235else
17236    lt_prog_compiler_static_GCJ=
17237fi
17238
17239
17240{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17241$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17242if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17243  $as_echo_n "(cached) " >&6
17244else
17245  lt_cv_prog_compiler_c_o_GCJ=no
17246   $rm -r conftest 2>/dev/null
17247   mkdir conftest
17248   cd conftest
17249   mkdir out
17250   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17251
17252   lt_compiler_flag="-o out/conftest2.$ac_objext"
17253   # Insert the option either (1) after the last *FLAGS variable, or
17254   # (2) before a word containing "conftest.", or (3) at the end.
17255   # Note that $ac_compile itself does not contain backslashes and begins
17256   # with a dollar sign (not a hyphen), so the echo should work correctly.
17257   lt_compile=`echo "$ac_compile" | $SED \
17258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17260   -e 's:$: $lt_compiler_flag:'`
17261   (eval echo "\"\$as_me:17261: $lt_compile\"" >&5)
17262   (eval "$lt_compile" 2>out/conftest.err)
17263   ac_status=$?
17264   cat out/conftest.err >&5
17265   echo "$as_me:17265: \$? = $ac_status" >&5
17266   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17267   then
17268     # The compiler can only warn and ignore the option if not recognized
17269     # So say no if there are warnings
17270     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17271     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17272     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17273       lt_cv_prog_compiler_c_o_GCJ=yes
17274     fi
17275   fi
17276   chmod u+w . 2>&5
17277   $rm conftest*
17278   # SGI C++ compiler will create directory out/ii_files/ for
17279   # template instantiation
17280   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17281   $rm out/* && rmdir out
17282   cd ..
17283   rmdir conftest
17284   $rm conftest*
17285
17286fi
17287{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17288$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17289
17290
17291hard_links="nottested"
17292if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17293  # do not overwrite the value of need_locks provided by the user
17294  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17295$as_echo_n "checking if we can lock with hard links... " >&6; }
17296  hard_links=yes
17297  $rm conftest*
17298  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17299  touch conftest.a
17300  ln conftest.a conftest.b 2>&5 || hard_links=no
17301  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17302  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17303$as_echo "$hard_links" >&6; }
17304  if test "$hard_links" = no; then
17305    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17306$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17307    need_locks=warn
17308  fi
17309else
17310  need_locks=no
17311fi
17312
17313{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17314$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17315
17316  runpath_var=
17317  allow_undefined_flag_GCJ=
17318  enable_shared_with_static_runtimes_GCJ=no
17319  archive_cmds_GCJ=
17320  archive_expsym_cmds_GCJ=
17321  old_archive_From_new_cmds_GCJ=
17322  old_archive_from_expsyms_cmds_GCJ=
17323  export_dynamic_flag_spec_GCJ=
17324  whole_archive_flag_spec_GCJ=
17325  thread_safe_flag_spec_GCJ=
17326  hardcode_libdir_flag_spec_GCJ=
17327  hardcode_libdir_flag_spec_ld_GCJ=
17328  hardcode_libdir_separator_GCJ=
17329  hardcode_direct_GCJ=no
17330  hardcode_minus_L_GCJ=no
17331  hardcode_shlibpath_var_GCJ=unsupported
17332  link_all_deplibs_GCJ=unknown
17333  hardcode_automatic_GCJ=no
17334  module_cmds_GCJ=
17335  module_expsym_cmds_GCJ=
17336  always_export_symbols_GCJ=no
17337  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17338  # include_expsyms should be a list of space-separated symbols to be *always*
17339  # included in the symbol list
17340  include_expsyms_GCJ=
17341  # exclude_expsyms can be an extended regexp of symbols to exclude
17342  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17343  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17344  # as well as any symbol that contains `d'.
17345  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17346  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17347  # platforms (ab)use it in PIC code, but their linkers get confused if
17348  # the symbol is explicitly referenced.  Since portable code cannot
17349  # rely on this symbol name, it's probably fine to never include it in
17350  # preloaded symbol tables.
17351  # Exclude shared library initialization/finalization symbols.
17352  extract_expsyms_cmds=
17353  # Just being paranoid about ensuring that cc_basename is set.
17354  for cc_temp in $compiler""; do
17355  case $cc_temp in
17356    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17357    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17358    \-*) ;;
17359    *) break;;
17360  esac
17361done
17362cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17363
17364  case $host_os in
17365  cygwin* | mingw* | pw32*)
17366    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17367    # When not using gcc, we currently assume that we are using
17368    # Microsoft Visual C++.
17369    if test "$GCC" != yes; then
17370      with_gnu_ld=no
17371    fi
17372    ;;
17373  interix*)
17374    # we just hope/assume this is gcc and not c89 (= MSVC++)
17375    with_gnu_ld=yes
17376    ;;
17377  openbsd*)
17378    with_gnu_ld=no
17379    ;;
17380  esac
17381
17382  ld_shlibs_GCJ=yes
17383  if test "$with_gnu_ld" = yes; then
17384    # If archive_cmds runs LD, not CC, wlarc should be empty
17385    wlarc='${wl}'
17386
17387    # Set some defaults for GNU ld with shared library support. These
17388    # are reset later if shared libraries are not supported. Putting them
17389    # here allows them to be overridden if necessary.
17390    runpath_var=LD_RUN_PATH
17391    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17392    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17393    # ancient GNU ld didn't support --whole-archive et. al.
17394    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17395	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17396      else
17397  	whole_archive_flag_spec_GCJ=
17398    fi
17399    supports_anon_versioning=no
17400    case `$LD -v 2>/dev/null` in
17401      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17402      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17403      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17404      *\ 2.11.*) ;; # other 2.11 versions
17405      *) supports_anon_versioning=yes ;;
17406    esac
17407
17408    # See if GNU ld supports shared libraries.
17409    case $host_os in
17410    aix[3-9]*)
17411      # On AIX/PPC, the GNU linker is very broken
17412      if test "$host_cpu" != ia64; then
17413	ld_shlibs_GCJ=no
17414	cat <<EOF 1>&2
17415
17416*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17417*** to be unable to reliably create shared libraries on AIX.
17418*** Therefore, libtool is disabling shared libraries support.  If you
17419*** really care for shared libraries, you may want to modify your PATH
17420*** so that a non-GNU linker is found, and then restart.
17421
17422EOF
17423      fi
17424      ;;
17425
17426    amigaos*)
17427      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)'
17428      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17429      hardcode_minus_L_GCJ=yes
17430
17431      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17432      # that the semantics of dynamic libraries on AmigaOS, at least up
17433      # to version 4, is to share data among multiple programs linked
17434      # with the same dynamic library.  Since this doesn't match the
17435      # behavior of shared libraries on other platforms, we can't use
17436      # them.
17437      ld_shlibs_GCJ=no
17438      ;;
17439
17440    beos*)
17441      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17442	allow_undefined_flag_GCJ=unsupported
17443	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17444	# support --undefined.  This deserves some investigation.  FIXME
17445	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17446      else
17447	ld_shlibs_GCJ=no
17448      fi
17449      ;;
17450
17451    cygwin* | mingw* | pw32*)
17452      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17453      # as there is no search path for DLLs.
17454      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17455      allow_undefined_flag_GCJ=unsupported
17456      always_export_symbols_GCJ=no
17457      enable_shared_with_static_runtimes_GCJ=yes
17458      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17459
17460      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17461        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17462	# If the export-symbols file already is a .def file (1st line
17463	# is EXPORTS), use it as is; otherwise, prepend...
17464	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17465	  cp $export_symbols $output_objdir/$soname.def;
17466	else
17467	  echo EXPORTS > $output_objdir/$soname.def;
17468	  cat $export_symbols >> $output_objdir/$soname.def;
17469	fi~
17470	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17471      else
17472	ld_shlibs_GCJ=no
17473      fi
17474      ;;
17475
17476    interix[3-9]*)
17477      hardcode_direct_GCJ=no
17478      hardcode_shlibpath_var_GCJ=no
17479      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17480      export_dynamic_flag_spec_GCJ='${wl}-E'
17481      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17482      # Instead, shared libraries are loaded at an image base (0x10000000 by
17483      # default) and relocated if they conflict, which is a slow very memory
17484      # consuming and fragmenting process.  To avoid this, we pick a random,
17485      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17486      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17487      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'
17488      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'
17489      ;;
17490
17491    gnu* | linux* | k*bsd*-gnu)
17492      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17493	tmp_addflag=
17494	case $cc_basename,$host_cpu in
17495	pgcc*)				# Portland Group C compiler
17496	  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'
17497	  tmp_addflag=' $pic_flag'
17498	  ;;
17499	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17500	  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'
17501	  tmp_addflag=' $pic_flag -Mnomain' ;;
17502	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17503	  tmp_addflag=' -i_dynamic' ;;
17504	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17505	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17506	ifc* | ifort*)			# Intel Fortran compiler
17507	  tmp_addflag=' -nofor_main' ;;
17508	esac
17509	case `$CC -V 2>&1 | sed 5q` in
17510	*Sun\ C*)			# Sun C 5.9
17511	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17512	  tmp_sharedflag='-G' ;;
17513	*Sun\ F*)			# Sun Fortran 8.3
17514	  tmp_sharedflag='-G' ;;
17515	*)
17516	  tmp_sharedflag='-shared' ;;
17517	esac
17518	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17519
17520	if test $supports_anon_versioning = yes; then
17521	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17522  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17523  $echo "local: *; };" >> $output_objdir/$libname.ver~
17524	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17525	fi
17526      else
17527	ld_shlibs_GCJ=no
17528      fi
17529      ;;
17530
17531    netbsd*)
17532      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17533	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17534	wlarc=
17535      else
17536	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17537	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17538      fi
17539      ;;
17540
17541    solaris*)
17542      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17543	ld_shlibs_GCJ=no
17544	cat <<EOF 1>&2
17545
17546*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17547*** create shared libraries on Solaris systems.  Therefore, libtool
17548*** is disabling shared libraries support.  We urge you to upgrade GNU
17549*** binutils to release 2.9.1 or newer.  Another option is to modify
17550*** your PATH or compiler configuration so that the native linker is
17551*** used, and then restart.
17552
17553EOF
17554      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17555	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17556	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17557      else
17558	ld_shlibs_GCJ=no
17559      fi
17560      ;;
17561
17562    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17563      case `$LD -v 2>&1` in
17564        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17565	ld_shlibs_GCJ=no
17566	cat <<_LT_EOF 1>&2
17567
17568*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17569*** reliably create shared libraries on SCO systems.  Therefore, libtool
17570*** is disabling shared libraries support.  We urge you to upgrade GNU
17571*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17572*** your PATH or compiler configuration so that the native linker is
17573*** used, and then restart.
17574
17575_LT_EOF
17576	;;
17577	*)
17578	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17579	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17580	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17581	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17582	  else
17583	    ld_shlibs_GCJ=no
17584	  fi
17585	;;
17586      esac
17587      ;;
17588
17589    sunos4*)
17590      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17591      wlarc=
17592      hardcode_direct_GCJ=yes
17593      hardcode_shlibpath_var_GCJ=no
17594      ;;
17595
17596    *)
17597      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17598	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17599	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17600      else
17601	ld_shlibs_GCJ=no
17602      fi
17603      ;;
17604    esac
17605
17606    if test "$ld_shlibs_GCJ" = no; then
17607      runpath_var=
17608      hardcode_libdir_flag_spec_GCJ=
17609      export_dynamic_flag_spec_GCJ=
17610      whole_archive_flag_spec_GCJ=
17611    fi
17612  else
17613    # PORTME fill in a description of your system's linker (not GNU ld)
17614    case $host_os in
17615    aix3*)
17616      allow_undefined_flag_GCJ=unsupported
17617      always_export_symbols_GCJ=yes
17618      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'
17619      # Note: this linker hardcodes the directories in LIBPATH if there
17620      # are no directories specified by -L.
17621      hardcode_minus_L_GCJ=yes
17622      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17623	# Neither direct hardcoding nor static linking is supported with a
17624	# broken collect2.
17625	hardcode_direct_GCJ=unsupported
17626      fi
17627      ;;
17628
17629    aix[4-9]*)
17630      if test "$host_cpu" = ia64; then
17631	# On IA64, the linker does run time linking by default, so we don't
17632	# have to do anything special.
17633	aix_use_runtimelinking=no
17634	exp_sym_flag='-Bexport'
17635	no_entry_flag=""
17636      else
17637	# If we're using GNU nm, then we don't want the "-C" option.
17638	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17639	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17640	  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'
17641	else
17642	  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'
17643	fi
17644	aix_use_runtimelinking=no
17645
17646	# Test if we are trying to use run time linking or normal
17647	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17648	# need to do runtime linking.
17649	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17650	  for ld_flag in $LDFLAGS; do
17651  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17652  	    aix_use_runtimelinking=yes
17653  	    break
17654  	  fi
17655	  done
17656	  ;;
17657	esac
17658
17659	exp_sym_flag='-bexport'
17660	no_entry_flag='-bnoentry'
17661      fi
17662
17663      # When large executables or shared objects are built, AIX ld can
17664      # have problems creating the table of contents.  If linking a library
17665      # or program results in "error TOC overflow" add -mminimal-toc to
17666      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17667      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17668
17669      archive_cmds_GCJ=''
17670      hardcode_direct_GCJ=yes
17671      hardcode_libdir_separator_GCJ=':'
17672      link_all_deplibs_GCJ=yes
17673
17674      if test "$GCC" = yes; then
17675	case $host_os in aix4.[012]|aix4.[012].*)
17676	# We only want to do this on AIX 4.2 and lower, the check
17677	# below for broken collect2 doesn't work under 4.3+
17678	  collect2name=`${CC} -print-prog-name=collect2`
17679	  if test -f "$collect2name" && \
17680  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17681	  then
17682  	  # We have reworked collect2
17683  	  :
17684	  else
17685  	  # We have old collect2
17686  	  hardcode_direct_GCJ=unsupported
17687  	  # It fails to find uninstalled libraries when the uninstalled
17688  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17689  	  # to unsupported forces relinking
17690  	  hardcode_minus_L_GCJ=yes
17691  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17692  	  hardcode_libdir_separator_GCJ=
17693	  fi
17694	  ;;
17695	esac
17696	shared_flag='-shared'
17697	if test "$aix_use_runtimelinking" = yes; then
17698	  shared_flag="$shared_flag "'${wl}-G'
17699	fi
17700      else
17701	# not using gcc
17702	if test "$host_cpu" = ia64; then
17703  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17704  	# chokes on -Wl,-G. The following line is correct:
17705	  shared_flag='-G'
17706	else
17707	  if test "$aix_use_runtimelinking" = yes; then
17708	    shared_flag='${wl}-G'
17709	  else
17710	    shared_flag='${wl}-bM:SRE'
17711	  fi
17712	fi
17713      fi
17714
17715      # It seems that -bexpall does not export symbols beginning with
17716      # underscore (_), so it is better to generate a list of symbols to export.
17717      always_export_symbols_GCJ=yes
17718      if test "$aix_use_runtimelinking" = yes; then
17719	# Warning - without using the other runtime loading flags (-brtl),
17720	# -berok will link without error, but may produce a broken library.
17721	allow_undefined_flag_GCJ='-berok'
17722       # Determine the default libpath from the value encoded in an empty executable.
17723       cat >conftest.$ac_ext <<_ACEOF
17724/* confdefs.h.  */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h.  */
17729
17730int
17731main ()
17732{
17733
17734  ;
17735  return 0;
17736}
17737_ACEOF
17738rm -f conftest.$ac_objext conftest$ac_exeext
17739if { (ac_try="$ac_link"
17740case "(($ac_try" in
17741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742  *) ac_try_echo=$ac_try;;
17743esac
17744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17745$as_echo "$ac_try_echo") >&5
17746  (eval "$ac_link") 2>conftest.er1
17747  ac_status=$?
17748  grep -v '^ *+' conftest.er1 >conftest.err
17749  rm -f conftest.er1
17750  cat conftest.err >&5
17751  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752  (exit $ac_status); } && {
17753	 test -z "$ac_c_werror_flag" ||
17754	 test ! -s conftest.err
17755       } && test -s conftest$ac_exeext && {
17756	 test "$cross_compiling" = yes ||
17757	 $as_test_x conftest$ac_exeext
17758       }; then
17759
17760lt_aix_libpath_sed='
17761    /Import File Strings/,/^$/ {
17762	/^0/ {
17763	    s/^0  *\(.*\)$/\1/
17764	    p
17765	}
17766    }'
17767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17768# Check for a 64-bit object if we didn't find anything.
17769if test -z "$aix_libpath"; then
17770  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17771fi
17772else
17773  $as_echo "$as_me: failed program was:" >&5
17774sed 's/^/| /' conftest.$ac_ext >&5
17775
17776
17777fi
17778
17779rm -rf conftest.dSYM
17780rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17781      conftest$ac_exeext conftest.$ac_ext
17782if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17783
17784       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17785	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"
17786       else
17787	if test "$host_cpu" = ia64; then
17788	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17789	  allow_undefined_flag_GCJ="-z nodefs"
17790	  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"
17791	else
17792	 # Determine the default libpath from the value encoded in an empty executable.
17793	 cat >conftest.$ac_ext <<_ACEOF
17794/* confdefs.h.  */
17795_ACEOF
17796cat confdefs.h >>conftest.$ac_ext
17797cat >>conftest.$ac_ext <<_ACEOF
17798/* end confdefs.h.  */
17799
17800int
17801main ()
17802{
17803
17804  ;
17805  return 0;
17806}
17807_ACEOF
17808rm -f conftest.$ac_objext conftest$ac_exeext
17809if { (ac_try="$ac_link"
17810case "(($ac_try" in
17811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812  *) ac_try_echo=$ac_try;;
17813esac
17814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17815$as_echo "$ac_try_echo") >&5
17816  (eval "$ac_link") 2>conftest.er1
17817  ac_status=$?
17818  grep -v '^ *+' conftest.er1 >conftest.err
17819  rm -f conftest.er1
17820  cat conftest.err >&5
17821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822  (exit $ac_status); } && {
17823	 test -z "$ac_c_werror_flag" ||
17824	 test ! -s conftest.err
17825       } && test -s conftest$ac_exeext && {
17826	 test "$cross_compiling" = yes ||
17827	 $as_test_x conftest$ac_exeext
17828       }; then
17829
17830lt_aix_libpath_sed='
17831    /Import File Strings/,/^$/ {
17832	/^0/ {
17833	    s/^0  *\(.*\)$/\1/
17834	    p
17835	}
17836    }'
17837aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17838# Check for a 64-bit object if we didn't find anything.
17839if test -z "$aix_libpath"; then
17840  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17841fi
17842else
17843  $as_echo "$as_me: failed program was:" >&5
17844sed 's/^/| /' conftest.$ac_ext >&5
17845
17846
17847fi
17848
17849rm -rf conftest.dSYM
17850rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17851      conftest$ac_exeext conftest.$ac_ext
17852if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17853
17854	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17855	  # Warning - without using the other run time loading flags,
17856	  # -berok will link without error, but may produce a broken library.
17857	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17858	  allow_undefined_flag_GCJ=' ${wl}-berok'
17859	  # Exported symbols can be pulled into shared objects from archives
17860	  whole_archive_flag_spec_GCJ='$convenience'
17861	  archive_cmds_need_lc_GCJ=yes
17862	  # This is similar to how AIX traditionally builds its shared libraries.
17863	  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'
17864	fi
17865      fi
17866      ;;
17867
17868    amigaos*)
17869      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)'
17870      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17871      hardcode_minus_L_GCJ=yes
17872      # see comment about different semantics on the GNU ld section
17873      ld_shlibs_GCJ=no
17874      ;;
17875
17876    bsdi[45]*)
17877      export_dynamic_flag_spec_GCJ=-rdynamic
17878      ;;
17879
17880    cygwin* | mingw* | pw32*)
17881      # When not using gcc, we currently assume that we are using
17882      # Microsoft Visual C++.
17883      # hardcode_libdir_flag_spec is actually meaningless, as there is
17884      # no search path for DLLs.
17885      hardcode_libdir_flag_spec_GCJ=' '
17886      allow_undefined_flag_GCJ=unsupported
17887      # Tell ltmain to make .lib files, not .a files.
17888      libext=lib
17889      # Tell ltmain to make .dll files, not .so files.
17890      shrext_cmds=".dll"
17891      # FIXME: Setting linknames here is a bad hack.
17892      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17893      # The linker will automatically build a .lib file if we build a DLL.
17894      old_archive_From_new_cmds_GCJ='true'
17895      # FIXME: Should let the user specify the lib program.
17896      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17897      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17898      enable_shared_with_static_runtimes_GCJ=yes
17899      ;;
17900
17901    darwin* | rhapsody*)
17902      case $host_os in
17903        rhapsody* | darwin1.[012])
17904         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17905         ;;
17906       *) # Darwin 1.3 on
17907         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17908           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17909         else
17910           case ${MACOSX_DEPLOYMENT_TARGET} in
17911             10.[012])
17912               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17913               ;;
17914             10.*)
17915               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17916               ;;
17917           esac
17918         fi
17919         ;;
17920      esac
17921      archive_cmds_need_lc_GCJ=no
17922      hardcode_direct_GCJ=no
17923      hardcode_automatic_GCJ=yes
17924      hardcode_shlibpath_var_GCJ=unsupported
17925      whole_archive_flag_spec_GCJ=''
17926      link_all_deplibs_GCJ=yes
17927    if test "$GCC" = yes ; then
17928    	output_verbose_link_cmd='echo'
17929        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17930        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17931        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17932        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17933    else
17934      case $cc_basename in
17935        xlc*)
17936         output_verbose_link_cmd='echo'
17937         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17938         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17939          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17940         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17941          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}'
17942          ;;
17943       *)
17944         ld_shlibs_GCJ=no
17945          ;;
17946      esac
17947    fi
17948      ;;
17949
17950    dgux*)
17951      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17952      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17953      hardcode_shlibpath_var_GCJ=no
17954      ;;
17955
17956    freebsd1*)
17957      ld_shlibs_GCJ=no
17958      ;;
17959
17960    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17961    # support.  Future versions do this automatically, but an explicit c++rt0.o
17962    # does not break anything, and helps significantly (at the cost of a little
17963    # extra space).
17964    freebsd2.2*)
17965      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17966      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17967      hardcode_direct_GCJ=yes
17968      hardcode_shlibpath_var_GCJ=no
17969      ;;
17970
17971    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17972    freebsd2*)
17973      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17974      hardcode_direct_GCJ=yes
17975      hardcode_minus_L_GCJ=yes
17976      hardcode_shlibpath_var_GCJ=no
17977      ;;
17978
17979    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17980    freebsd* | dragonfly*)
17981      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17982      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17983      hardcode_direct_GCJ=yes
17984      hardcode_shlibpath_var_GCJ=no
17985      ;;
17986
17987    hpux9*)
17988      if test "$GCC" = yes; then
17989	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'
17990      else
17991	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'
17992      fi
17993      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17994      hardcode_libdir_separator_GCJ=:
17995      hardcode_direct_GCJ=yes
17996
17997      # hardcode_minus_L: Not really in the search PATH,
17998      # but as the default location of the library.
17999      hardcode_minus_L_GCJ=yes
18000      export_dynamic_flag_spec_GCJ='${wl}-E'
18001      ;;
18002
18003    hpux10*)
18004      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18005	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18006      else
18007	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18008      fi
18009      if test "$with_gnu_ld" = no; then
18010	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18011	hardcode_libdir_separator_GCJ=:
18012
18013	hardcode_direct_GCJ=yes
18014	export_dynamic_flag_spec_GCJ='${wl}-E'
18015
18016	# hardcode_minus_L: Not really in the search PATH,
18017	# but as the default location of the library.
18018	hardcode_minus_L_GCJ=yes
18019      fi
18020      ;;
18021
18022    hpux11*)
18023      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18024	case $host_cpu in
18025	hppa*64*)
18026	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18027	  ;;
18028	ia64*)
18029	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18030	  ;;
18031	*)
18032	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18033	  ;;
18034	esac
18035      else
18036	case $host_cpu in
18037	hppa*64*)
18038	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18039	  ;;
18040	ia64*)
18041	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18042	  ;;
18043	*)
18044	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18045	  ;;
18046	esac
18047      fi
18048      if test "$with_gnu_ld" = no; then
18049	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18050	hardcode_libdir_separator_GCJ=:
18051
18052	case $host_cpu in
18053	hppa*64*|ia64*)
18054	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18055	  hardcode_direct_GCJ=no
18056	  hardcode_shlibpath_var_GCJ=no
18057	  ;;
18058	*)
18059	  hardcode_direct_GCJ=yes
18060	  export_dynamic_flag_spec_GCJ='${wl}-E'
18061
18062	  # hardcode_minus_L: Not really in the search PATH,
18063	  # but as the default location of the library.
18064	  hardcode_minus_L_GCJ=yes
18065	  ;;
18066	esac
18067      fi
18068      ;;
18069
18070    irix5* | irix6* | nonstopux*)
18071      if test "$GCC" = yes; then
18072	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'
18073      else
18074	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'
18075	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18076      fi
18077      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18078      hardcode_libdir_separator_GCJ=:
18079      link_all_deplibs_GCJ=yes
18080      ;;
18081
18082    netbsd*)
18083      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18084	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18085      else
18086	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18087      fi
18088      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18089      hardcode_direct_GCJ=yes
18090      hardcode_shlibpath_var_GCJ=no
18091      ;;
18092
18093    newsos6)
18094      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18095      hardcode_direct_GCJ=yes
18096      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18097      hardcode_libdir_separator_GCJ=:
18098      hardcode_shlibpath_var_GCJ=no
18099      ;;
18100
18101    openbsd*)
18102      if test -f /usr/libexec/ld.so; then
18103	hardcode_direct_GCJ=yes
18104	hardcode_shlibpath_var_GCJ=no
18105	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18106	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18107	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18108	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18109	  export_dynamic_flag_spec_GCJ='${wl}-E'
18110	else
18111	  case $host_os in
18112	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18113	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18114	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
18115	     ;;
18116	   *)
18117	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18118	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18119	     ;;
18120	  esac
18121        fi
18122      else
18123	ld_shlibs_GCJ=no
18124      fi
18125      ;;
18126
18127    os2*)
18128      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18129      hardcode_minus_L_GCJ=yes
18130      allow_undefined_flag_GCJ=unsupported
18131      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'
18132      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18133      ;;
18134
18135    osf3*)
18136      if test "$GCC" = yes; then
18137	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18138	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'
18139      else
18140	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18141	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'
18142      fi
18143      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18144      hardcode_libdir_separator_GCJ=:
18145      ;;
18146
18147    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18148      if test "$GCC" = yes; then
18149	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18150	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'
18151	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18152      else
18153	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18154	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'
18155	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~
18156	$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'
18157
18158	# Both c and cxx compiler support -rpath directly
18159	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18160      fi
18161      hardcode_libdir_separator_GCJ=:
18162      ;;
18163
18164    solaris*)
18165      no_undefined_flag_GCJ=' -z text'
18166      if test "$GCC" = yes; then
18167	wlarc='${wl}'
18168	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18169	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18170	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18171      else
18172	wlarc=''
18173	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18174	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18175  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18176      fi
18177      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18178      hardcode_shlibpath_var_GCJ=no
18179      case $host_os in
18180      solaris2.[0-5] | solaris2.[0-5].*) ;;
18181      *)
18182	# The compiler driver will combine and reorder linker options,
18183	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18184	# but is careful enough not to reorder.
18185 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18186	if test "$GCC" = yes; then
18187	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18188	else
18189	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18190	fi
18191	;;
18192      esac
18193      link_all_deplibs_GCJ=yes
18194      ;;
18195
18196    sunos4*)
18197      if test "x$host_vendor" = xsequent; then
18198	# Use $CC to link under sequent, because it throws in some extra .o
18199	# files that make .init and .fini sections work.
18200	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18201      else
18202	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18203      fi
18204      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18205      hardcode_direct_GCJ=yes
18206      hardcode_minus_L_GCJ=yes
18207      hardcode_shlibpath_var_GCJ=no
18208      ;;
18209
18210    sysv4)
18211      case $host_vendor in
18212	sni)
18213	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18214	  hardcode_direct_GCJ=yes # is this really true???
18215	;;
18216	siemens)
18217	  ## LD is ld it makes a PLAMLIB
18218	  ## CC just makes a GrossModule.
18219	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18220	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18221	  hardcode_direct_GCJ=no
18222        ;;
18223	motorola)
18224	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18225	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18226	;;
18227      esac
18228      runpath_var='LD_RUN_PATH'
18229      hardcode_shlibpath_var_GCJ=no
18230      ;;
18231
18232    sysv4.3*)
18233      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18234      hardcode_shlibpath_var_GCJ=no
18235      export_dynamic_flag_spec_GCJ='-Bexport'
18236      ;;
18237
18238    sysv4*MP*)
18239      if test -d /usr/nec; then
18240	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18241	hardcode_shlibpath_var_GCJ=no
18242	runpath_var=LD_RUN_PATH
18243	hardcode_runpath_var=yes
18244	ld_shlibs_GCJ=yes
18245      fi
18246      ;;
18247
18248    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18249      no_undefined_flag_GCJ='${wl}-z,text'
18250      archive_cmds_need_lc_GCJ=no
18251      hardcode_shlibpath_var_GCJ=no
18252      runpath_var='LD_RUN_PATH'
18253
18254      if test "$GCC" = yes; then
18255	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18256	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18257      else
18258	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18259	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18260      fi
18261      ;;
18262
18263    sysv5* | sco3.2v5* | sco5v6*)
18264      # Note: We can NOT use -z defs as we might desire, because we do not
18265      # link with -lc, and that would cause any symbols used from libc to
18266      # always be unresolved, which means just about no library would
18267      # ever link correctly.  If we're not using GNU ld we use -z text
18268      # though, which does catch some bad symbols but isn't as heavy-handed
18269      # as -z defs.
18270      no_undefined_flag_GCJ='${wl}-z,text'
18271      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18272      archive_cmds_need_lc_GCJ=no
18273      hardcode_shlibpath_var_GCJ=no
18274      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18275      hardcode_libdir_separator_GCJ=':'
18276      link_all_deplibs_GCJ=yes
18277      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18278      runpath_var='LD_RUN_PATH'
18279
18280      if test "$GCC" = yes; then
18281	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18282	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18283      else
18284	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18285	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18286      fi
18287      ;;
18288
18289    uts4*)
18290      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18291      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18292      hardcode_shlibpath_var_GCJ=no
18293      ;;
18294
18295    *)
18296      ld_shlibs_GCJ=no
18297      ;;
18298    esac
18299  fi
18300
18301{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18302$as_echo "$ld_shlibs_GCJ" >&6; }
18303test "$ld_shlibs_GCJ" = no && can_build_shared=no
18304
18305#
18306# Do we need to explicitly link libc?
18307#
18308case "x$archive_cmds_need_lc_GCJ" in
18309x|xyes)
18310  # Assume -lc should be added
18311  archive_cmds_need_lc_GCJ=yes
18312
18313  if test "$enable_shared" = yes && test "$GCC" = yes; then
18314    case $archive_cmds_GCJ in
18315    *'~'*)
18316      # FIXME: we may have to deal with multi-command sequences.
18317      ;;
18318    '$CC '*)
18319      # Test whether the compiler implicitly links with -lc since on some
18320      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18321      # to ld, don't add -lc before -lgcc.
18322      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18323$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18324      $rm conftest*
18325      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18326
18327      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18328  (eval $ac_compile) 2>&5
18329  ac_status=$?
18330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331  (exit $ac_status); } 2>conftest.err; then
18332        soname=conftest
18333        lib=conftest
18334        libobjs=conftest.$ac_objext
18335        deplibs=
18336        wl=$lt_prog_compiler_wl_GCJ
18337	pic_flag=$lt_prog_compiler_pic_GCJ
18338        compiler_flags=-v
18339        linker_flags=-v
18340        verstring=
18341        output_objdir=.
18342        libname=conftest
18343        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18344        allow_undefined_flag_GCJ=
18345        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18346  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18347  ac_status=$?
18348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349  (exit $ac_status); }
18350        then
18351	  archive_cmds_need_lc_GCJ=no
18352        else
18353	  archive_cmds_need_lc_GCJ=yes
18354        fi
18355        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18356      else
18357        cat conftest.err 1>&5
18358      fi
18359      $rm conftest*
18360      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18361$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18362      ;;
18363    esac
18364  fi
18365  ;;
18366esac
18367
18368{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18369$as_echo_n "checking dynamic linker characteristics... " >&6; }
18370library_names_spec=
18371libname_spec='lib$name'
18372soname_spec=
18373shrext_cmds=".so"
18374postinstall_cmds=
18375postuninstall_cmds=
18376finish_cmds=
18377finish_eval=
18378shlibpath_var=
18379shlibpath_overrides_runpath=unknown
18380version_type=none
18381dynamic_linker="$host_os ld.so"
18382sys_lib_dlsearch_path_spec="/lib /usr/lib"
18383
18384need_lib_prefix=unknown
18385hardcode_into_libs=no
18386
18387# when you set need_version to no, make sure it does not cause -set_version
18388# flags to be left without arguments
18389need_version=unknown
18390
18391case $host_os in
18392aix3*)
18393  version_type=linux
18394  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18395  shlibpath_var=LIBPATH
18396
18397  # AIX 3 has no versioning support, so we append a major version to the name.
18398  soname_spec='${libname}${release}${shared_ext}$major'
18399  ;;
18400
18401aix[4-9]*)
18402  version_type=linux
18403  need_lib_prefix=no
18404  need_version=no
18405  hardcode_into_libs=yes
18406  if test "$host_cpu" = ia64; then
18407    # AIX 5 supports IA64
18408    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18409    shlibpath_var=LD_LIBRARY_PATH
18410  else
18411    # With GCC up to 2.95.x, collect2 would create an import file
18412    # for dependence libraries.  The import file would start with
18413    # the line `#! .'.  This would cause the generated library to
18414    # depend on `.', always an invalid library.  This was fixed in
18415    # development snapshots of GCC prior to 3.0.
18416    case $host_os in
18417      aix4 | aix4.[01] | aix4.[01].*)
18418      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18419	   echo ' yes '
18420	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18421	:
18422      else
18423	can_build_shared=no
18424      fi
18425      ;;
18426    esac
18427    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18428    # soname into executable. Probably we can add versioning support to
18429    # collect2, so additional links can be useful in future.
18430    if test "$aix_use_runtimelinking" = yes; then
18431      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18432      # instead of lib<name>.a to let people know that these are not
18433      # typical AIX shared libraries.
18434      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435    else
18436      # We preserve .a as extension for shared libraries through AIX4.2
18437      # and later when we are not doing run time linking.
18438      library_names_spec='${libname}${release}.a $libname.a'
18439      soname_spec='${libname}${release}${shared_ext}$major'
18440    fi
18441    shlibpath_var=LIBPATH
18442  fi
18443  ;;
18444
18445amigaos*)
18446  library_names_spec='$libname.ixlibrary $libname.a'
18447  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18448  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'
18449  ;;
18450
18451beos*)
18452  library_names_spec='${libname}${shared_ext}'
18453  dynamic_linker="$host_os ld.so"
18454  shlibpath_var=LIBRARY_PATH
18455  ;;
18456
18457bsdi[45]*)
18458  version_type=linux
18459  need_version=no
18460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18461  soname_spec='${libname}${release}${shared_ext}$major'
18462  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18463  shlibpath_var=LD_LIBRARY_PATH
18464  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18465  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18466  # the default ld.so.conf also contains /usr/contrib/lib and
18467  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18468  # libtool to hard-code these into programs
18469  ;;
18470
18471cygwin* | mingw* | pw32*)
18472  version_type=windows
18473  shrext_cmds=".dll"
18474  need_version=no
18475  need_lib_prefix=no
18476
18477  case $GCC,$host_os in
18478  yes,cygwin* | yes,mingw* | yes,pw32*)
18479    library_names_spec='$libname.dll.a'
18480    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18481    postinstall_cmds='base_file=`basename \${file}`~
18482      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18483      dldir=$destdir/`dirname \$dlpath`~
18484      test -d \$dldir || mkdir -p \$dldir~
18485      $install_prog $dir/$dlname \$dldir/$dlname~
18486      chmod a+x \$dldir/$dlname'
18487    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18488      dlpath=$dir/\$dldll~
18489       $rm \$dlpath'
18490    shlibpath_overrides_runpath=yes
18491
18492    case $host_os in
18493    cygwin*)
18494      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18495      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18496      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18497      ;;
18498    mingw*)
18499      # MinGW DLLs use traditional 'lib' prefix
18500      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18501      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18502      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18503        # It is most probably a Windows format PATH printed by
18504        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18505        # path with ; separators, and with drive letters. We can handle the
18506        # drive letters (cygwin fileutils understands them), so leave them,
18507        # especially as we might pass files found there to a mingw objdump,
18508        # which wouldn't understand a cygwinified path. Ahh.
18509        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18510      else
18511        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18512      fi
18513      ;;
18514    pw32*)
18515      # pw32 DLLs use 'pw' prefix rather than 'lib'
18516      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18517      ;;
18518    esac
18519    ;;
18520
18521  *)
18522    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18523    ;;
18524  esac
18525  dynamic_linker='Win32 ld.exe'
18526  # FIXME: first we should search . and the directory the executable is in
18527  shlibpath_var=PATH
18528  ;;
18529
18530darwin* | rhapsody*)
18531  dynamic_linker="$host_os dyld"
18532  version_type=darwin
18533  need_lib_prefix=no
18534  need_version=no
18535  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18536  soname_spec='${libname}${release}${major}$shared_ext'
18537  shlibpath_overrides_runpath=yes
18538  shlibpath_var=DYLD_LIBRARY_PATH
18539  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18540
18541  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18542  ;;
18543
18544dgux*)
18545  version_type=linux
18546  need_lib_prefix=no
18547  need_version=no
18548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18549  soname_spec='${libname}${release}${shared_ext}$major'
18550  shlibpath_var=LD_LIBRARY_PATH
18551  ;;
18552
18553freebsd1*)
18554  dynamic_linker=no
18555  ;;
18556
18557freebsd* | dragonfly*)
18558  # DragonFly does not have aout.  When/if they implement a new
18559  # versioning mechanism, adjust this.
18560  if test -x /usr/bin/objformat; then
18561    objformat=`/usr/bin/objformat`
18562  else
18563    case $host_os in
18564    freebsd[123]*) objformat=aout ;;
18565    *) objformat=elf ;;
18566    esac
18567  fi
18568  version_type=freebsd-$objformat
18569  case $version_type in
18570    freebsd-elf*)
18571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18572      need_version=no
18573      need_lib_prefix=no
18574      ;;
18575    freebsd-*)
18576      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18577      need_version=yes
18578      ;;
18579  esac
18580  shlibpath_var=LD_LIBRARY_PATH
18581  case $host_os in
18582  freebsd2*)
18583    shlibpath_overrides_runpath=yes
18584    ;;
18585  freebsd3.[01]* | freebsdelf3.[01]*)
18586    shlibpath_overrides_runpath=yes
18587    hardcode_into_libs=yes
18588    ;;
18589  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18590  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18591    shlibpath_overrides_runpath=no
18592    hardcode_into_libs=yes
18593    ;;
18594  *) # from 4.6 on, and DragonFly
18595    shlibpath_overrides_runpath=yes
18596    hardcode_into_libs=yes
18597    ;;
18598  esac
18599  ;;
18600
18601gnu*)
18602  version_type=linux
18603  need_lib_prefix=no
18604  need_version=no
18605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18606  soname_spec='${libname}${release}${shared_ext}$major'
18607  shlibpath_var=LD_LIBRARY_PATH
18608  hardcode_into_libs=yes
18609  ;;
18610
18611hpux9* | hpux10* | hpux11*)
18612  # Give a soname corresponding to the major version so that dld.sl refuses to
18613  # link against other versions.
18614  version_type=sunos
18615  need_lib_prefix=no
18616  need_version=no
18617  case $host_cpu in
18618  ia64*)
18619    shrext_cmds='.so'
18620    hardcode_into_libs=yes
18621    dynamic_linker="$host_os dld.so"
18622    shlibpath_var=LD_LIBRARY_PATH
18623    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18624    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625    soname_spec='${libname}${release}${shared_ext}$major'
18626    if test "X$HPUX_IA64_MODE" = X32; then
18627      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18628    else
18629      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18630    fi
18631    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18632    ;;
18633   hppa*64*)
18634     shrext_cmds='.sl'
18635     hardcode_into_libs=yes
18636     dynamic_linker="$host_os dld.sl"
18637     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18638     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18639     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18640     soname_spec='${libname}${release}${shared_ext}$major'
18641     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18642     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18643     ;;
18644   *)
18645    shrext_cmds='.sl'
18646    dynamic_linker="$host_os dld.sl"
18647    shlibpath_var=SHLIB_PATH
18648    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18649    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18650    soname_spec='${libname}${release}${shared_ext}$major'
18651    ;;
18652  esac
18653  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18654  postinstall_cmds='chmod 555 $lib'
18655  ;;
18656
18657interix[3-9]*)
18658  version_type=linux
18659  need_lib_prefix=no
18660  need_version=no
18661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18662  soname_spec='${libname}${release}${shared_ext}$major'
18663  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18664  shlibpath_var=LD_LIBRARY_PATH
18665  shlibpath_overrides_runpath=no
18666  hardcode_into_libs=yes
18667  ;;
18668
18669irix5* | irix6* | nonstopux*)
18670  case $host_os in
18671    nonstopux*) version_type=nonstopux ;;
18672    *)
18673	if test "$lt_cv_prog_gnu_ld" = yes; then
18674		version_type=linux
18675	else
18676		version_type=irix
18677	fi ;;
18678  esac
18679  need_lib_prefix=no
18680  need_version=no
18681  soname_spec='${libname}${release}${shared_ext}$major'
18682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18683  case $host_os in
18684  irix5* | nonstopux*)
18685    libsuff= shlibsuff=
18686    ;;
18687  *)
18688    case $LD in # libtool.m4 will add one of these switches to LD
18689    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18690      libsuff= shlibsuff= libmagic=32-bit;;
18691    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18692      libsuff=32 shlibsuff=N32 libmagic=N32;;
18693    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18694      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18695    *) libsuff= shlibsuff= libmagic=never-match;;
18696    esac
18697    ;;
18698  esac
18699  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18700  shlibpath_overrides_runpath=no
18701  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18702  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18703  hardcode_into_libs=yes
18704  ;;
18705
18706# No shared lib support for Linux oldld, aout, or coff.
18707linux*oldld* | linux*aout* | linux*coff*)
18708  dynamic_linker=no
18709  ;;
18710
18711# This must be Linux ELF.
18712linux* | k*bsd*-gnu)
18713  version_type=linux
18714  need_lib_prefix=no
18715  need_version=no
18716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18717  soname_spec='${libname}${release}${shared_ext}$major'
18718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18719  shlibpath_var=LD_LIBRARY_PATH
18720  shlibpath_overrides_runpath=no
18721  # This implies no fast_install, which is unacceptable.
18722  # Some rework will be needed to allow for fast_install
18723  # before this can be enabled.
18724  hardcode_into_libs=yes
18725
18726  # Append ld.so.conf contents to the search path
18727  if test -f /etc/ld.so.conf; then
18728    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18729    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18730  fi
18731
18732  # We used to test for /lib/ld.so.1 and disable shared libraries on
18733  # powerpc, because MkLinux only supported shared libraries with the
18734  # GNU dynamic linker.  Since this was broken with cross compilers,
18735  # most powerpc-linux boxes support dynamic linking these days and
18736  # people can always --disable-shared, the test was removed, and we
18737  # assume the GNU/Linux dynamic linker is in use.
18738  dynamic_linker='GNU/Linux ld.so'
18739  ;;
18740
18741netbsd*)
18742  version_type=sunos
18743  need_lib_prefix=no
18744  need_version=no
18745  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18746    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18747    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18748    dynamic_linker='NetBSD (a.out) ld.so'
18749  else
18750    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18751    soname_spec='${libname}${release}${shared_ext}$major'
18752    dynamic_linker='NetBSD ld.elf_so'
18753  fi
18754  shlibpath_var=LD_LIBRARY_PATH
18755  shlibpath_overrides_runpath=yes
18756  hardcode_into_libs=yes
18757  ;;
18758
18759newsos6)
18760  version_type=linux
18761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762  shlibpath_var=LD_LIBRARY_PATH
18763  shlibpath_overrides_runpath=yes
18764  ;;
18765
18766nto-qnx*)
18767  version_type=linux
18768  need_lib_prefix=no
18769  need_version=no
18770  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18771  soname_spec='${libname}${release}${shared_ext}$major'
18772  shlibpath_var=LD_LIBRARY_PATH
18773  shlibpath_overrides_runpath=yes
18774  ;;
18775
18776openbsd*)
18777  version_type=sunos
18778  sys_lib_dlsearch_path_spec="/usr/lib"
18779  need_lib_prefix=no
18780  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18781  case $host_os in
18782    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18783    *)                         need_version=no  ;;
18784  esac
18785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18786  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18787  shlibpath_var=LD_LIBRARY_PATH
18788  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18789    case $host_os in
18790      openbsd2.[89] | openbsd2.[89].*)
18791	shlibpath_overrides_runpath=no
18792	;;
18793      *)
18794	shlibpath_overrides_runpath=yes
18795	;;
18796      esac
18797  else
18798    shlibpath_overrides_runpath=yes
18799  fi
18800  ;;
18801
18802os2*)
18803  libname_spec='$name'
18804  shrext_cmds=".dll"
18805  need_lib_prefix=no
18806  library_names_spec='$libname${shared_ext} $libname.a'
18807  dynamic_linker='OS/2 ld.exe'
18808  shlibpath_var=LIBPATH
18809  ;;
18810
18811osf3* | osf4* | osf5*)
18812  version_type=osf
18813  need_lib_prefix=no
18814  need_version=no
18815  soname_spec='${libname}${release}${shared_ext}$major'
18816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18817  shlibpath_var=LD_LIBRARY_PATH
18818  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18819  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18820  ;;
18821
18822rdos*)
18823  dynamic_linker=no
18824  ;;
18825
18826solaris*)
18827  version_type=linux
18828  need_lib_prefix=no
18829  need_version=no
18830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18831  soname_spec='${libname}${release}${shared_ext}$major'
18832  shlibpath_var=LD_LIBRARY_PATH
18833  shlibpath_overrides_runpath=yes
18834  hardcode_into_libs=yes
18835  # ldd complains unless libraries are executable
18836  postinstall_cmds='chmod +x $lib'
18837  ;;
18838
18839sunos4*)
18840  version_type=sunos
18841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18842  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18843  shlibpath_var=LD_LIBRARY_PATH
18844  shlibpath_overrides_runpath=yes
18845  if test "$with_gnu_ld" = yes; then
18846    need_lib_prefix=no
18847  fi
18848  need_version=yes
18849  ;;
18850
18851sysv4 | sysv4.3*)
18852  version_type=linux
18853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18854  soname_spec='${libname}${release}${shared_ext}$major'
18855  shlibpath_var=LD_LIBRARY_PATH
18856  case $host_vendor in
18857    sni)
18858      shlibpath_overrides_runpath=no
18859      need_lib_prefix=no
18860      export_dynamic_flag_spec='${wl}-Blargedynsym'
18861      runpath_var=LD_RUN_PATH
18862      ;;
18863    siemens)
18864      need_lib_prefix=no
18865      ;;
18866    motorola)
18867      need_lib_prefix=no
18868      need_version=no
18869      shlibpath_overrides_runpath=no
18870      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18871      ;;
18872  esac
18873  ;;
18874
18875sysv4*MP*)
18876  if test -d /usr/nec ;then
18877    version_type=linux
18878    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18879    soname_spec='$libname${shared_ext}.$major'
18880    shlibpath_var=LD_LIBRARY_PATH
18881  fi
18882  ;;
18883
18884sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18885  version_type=freebsd-elf
18886  need_lib_prefix=no
18887  need_version=no
18888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18889  soname_spec='${libname}${release}${shared_ext}$major'
18890  shlibpath_var=LD_LIBRARY_PATH
18891  hardcode_into_libs=yes
18892  if test "$with_gnu_ld" = yes; then
18893    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18894    shlibpath_overrides_runpath=no
18895  else
18896    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18897    shlibpath_overrides_runpath=yes
18898    case $host_os in
18899      sco3.2v5*)
18900        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18901	;;
18902    esac
18903  fi
18904  sys_lib_dlsearch_path_spec='/usr/lib'
18905  ;;
18906
18907uts4*)
18908  version_type=linux
18909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18910  soname_spec='${libname}${release}${shared_ext}$major'
18911  shlibpath_var=LD_LIBRARY_PATH
18912  ;;
18913
18914*)
18915  dynamic_linker=no
18916  ;;
18917esac
18918{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18919$as_echo "$dynamic_linker" >&6; }
18920test "$dynamic_linker" = no && can_build_shared=no
18921
18922if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18923  $as_echo_n "(cached) " >&6
18924else
18925  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18926fi
18927
18928sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18929if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18930  $as_echo_n "(cached) " >&6
18931else
18932  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18933fi
18934
18935sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18936
18937variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18938if test "$GCC" = yes; then
18939  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18940fi
18941
18942{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18943$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18944hardcode_action_GCJ=
18945if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18946   test -n "$runpath_var_GCJ" || \
18947   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18948
18949  # We can hardcode non-existant directories.
18950  if test "$hardcode_direct_GCJ" != no &&
18951     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18952     # have to relink, otherwise we might link with an installed library
18953     # when we should be linking with a yet-to-be-installed one
18954     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18955     test "$hardcode_minus_L_GCJ" != no; then
18956    # Linking always hardcodes the temporary library directory.
18957    hardcode_action_GCJ=relink
18958  else
18959    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18960    hardcode_action_GCJ=immediate
18961  fi
18962else
18963  # We cannot hardcode anything, or else we can only hardcode existing
18964  # directories.
18965  hardcode_action_GCJ=unsupported
18966fi
18967{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18968$as_echo "$hardcode_action_GCJ" >&6; }
18969
18970if test "$hardcode_action_GCJ" = relink; then
18971  # Fast installation is not supported
18972  enable_fast_install=no
18973elif test "$shlibpath_overrides_runpath" = yes ||
18974     test "$enable_shared" = no; then
18975  # Fast installation is not necessary
18976  enable_fast_install=needless
18977fi
18978
18979
18980# The else clause should only fire when bootstrapping the
18981# libtool distribution, otherwise you forgot to ship ltmain.sh
18982# with your package, and you will get complaints that there are
18983# no rules to generate ltmain.sh.
18984if test -f "$ltmain"; then
18985  # See if we are running on zsh, and set the options which allow our commands through
18986  # without removal of \ escapes.
18987  if test -n "${ZSH_VERSION+set}" ; then
18988    setopt NO_GLOB_SUBST
18989  fi
18990  # Now quote all the things that may contain metacharacters while being
18991  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18992  # variables and quote the copies for generation of the libtool script.
18993  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18994    SED SHELL STRIP \
18995    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18996    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18997    deplibs_check_method reload_flag reload_cmds need_locks \
18998    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18999    lt_cv_sys_global_symbol_to_c_name_address \
19000    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19001    old_postinstall_cmds old_postuninstall_cmds \
19002    compiler_GCJ \
19003    CC_GCJ \
19004    LD_GCJ \
19005    lt_prog_compiler_wl_GCJ \
19006    lt_prog_compiler_pic_GCJ \
19007    lt_prog_compiler_static_GCJ \
19008    lt_prog_compiler_no_builtin_flag_GCJ \
19009    export_dynamic_flag_spec_GCJ \
19010    thread_safe_flag_spec_GCJ \
19011    whole_archive_flag_spec_GCJ \
19012    enable_shared_with_static_runtimes_GCJ \
19013    old_archive_cmds_GCJ \
19014    old_archive_from_new_cmds_GCJ \
19015    predep_objects_GCJ \
19016    postdep_objects_GCJ \
19017    predeps_GCJ \
19018    postdeps_GCJ \
19019    compiler_lib_search_path_GCJ \
19020    compiler_lib_search_dirs_GCJ \
19021    archive_cmds_GCJ \
19022    archive_expsym_cmds_GCJ \
19023    postinstall_cmds_GCJ \
19024    postuninstall_cmds_GCJ \
19025    old_archive_from_expsyms_cmds_GCJ \
19026    allow_undefined_flag_GCJ \
19027    no_undefined_flag_GCJ \
19028    export_symbols_cmds_GCJ \
19029    hardcode_libdir_flag_spec_GCJ \
19030    hardcode_libdir_flag_spec_ld_GCJ \
19031    hardcode_libdir_separator_GCJ \
19032    hardcode_automatic_GCJ \
19033    module_cmds_GCJ \
19034    module_expsym_cmds_GCJ \
19035    lt_cv_prog_compiler_c_o_GCJ \
19036    fix_srcfile_path_GCJ \
19037    exclude_expsyms_GCJ \
19038    include_expsyms_GCJ; do
19039
19040    case $var in
19041    old_archive_cmds_GCJ | \
19042    old_archive_from_new_cmds_GCJ | \
19043    archive_cmds_GCJ | \
19044    archive_expsym_cmds_GCJ | \
19045    module_cmds_GCJ | \
19046    module_expsym_cmds_GCJ | \
19047    old_archive_from_expsyms_cmds_GCJ | \
19048    export_symbols_cmds_GCJ | \
19049    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19050    postinstall_cmds | postuninstall_cmds | \
19051    old_postinstall_cmds | old_postuninstall_cmds | \
19052    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19053      # Double-quote double-evaled strings.
19054      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19055      ;;
19056    *)
19057      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19058      ;;
19059    esac
19060  done
19061
19062  case $lt_echo in
19063  *'\$0 --fallback-echo"')
19064    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19065    ;;
19066  esac
19067
19068cfgfile="$ofile"
19069
19070  cat <<__EOF__ >> "$cfgfile"
19071# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19072
19073# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19074
19075# Shell to use when invoking shell scripts.
19076SHELL=$lt_SHELL
19077
19078# Whether or not to build shared libraries.
19079build_libtool_libs=$enable_shared
19080
19081# Whether or not to build static libraries.
19082build_old_libs=$enable_static
19083
19084# Whether or not to add -lc for building shared libraries.
19085build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19086
19087# Whether or not to disallow shared libs when runtime libs are static
19088allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19089
19090# Whether or not to optimize for fast installation.
19091fast_install=$enable_fast_install
19092
19093# The host system.
19094host_alias=$host_alias
19095host=$host
19096host_os=$host_os
19097
19098# The build system.
19099build_alias=$build_alias
19100build=$build
19101build_os=$build_os
19102
19103# An echo program that does not interpret backslashes.
19104echo=$lt_echo
19105
19106# The archiver.
19107AR=$lt_AR
19108AR_FLAGS=$lt_AR_FLAGS
19109
19110# A C compiler.
19111LTCC=$lt_LTCC
19112
19113# LTCC compiler flags.
19114LTCFLAGS=$lt_LTCFLAGS
19115
19116# A language-specific compiler.
19117CC=$lt_compiler_GCJ
19118
19119# Is the compiler the GNU C compiler?
19120with_gcc=$GCC_GCJ
19121
19122# An ERE matcher.
19123EGREP=$lt_EGREP
19124
19125# The linker used to build libraries.
19126LD=$lt_LD_GCJ
19127
19128# Whether we need hard or soft links.
19129LN_S=$lt_LN_S
19130
19131# A BSD-compatible nm program.
19132NM=$lt_NM
19133
19134# A symbol stripping program
19135STRIP=$lt_STRIP
19136
19137# Used to examine libraries when file_magic_cmd begins "file"
19138MAGIC_CMD=$MAGIC_CMD
19139
19140# Used on cygwin: DLL creation program.
19141DLLTOOL="$DLLTOOL"
19142
19143# Used on cygwin: object dumper.
19144OBJDUMP="$OBJDUMP"
19145
19146# Used on cygwin: assembler.
19147AS="$AS"
19148
19149# The name of the directory that contains temporary libtool files.
19150objdir=$objdir
19151
19152# How to create reloadable object files.
19153reload_flag=$lt_reload_flag
19154reload_cmds=$lt_reload_cmds
19155
19156# How to pass a linker flag through the compiler.
19157wl=$lt_lt_prog_compiler_wl_GCJ
19158
19159# Object file suffix (normally "o").
19160objext="$ac_objext"
19161
19162# Old archive suffix (normally "a").
19163libext="$libext"
19164
19165# Shared library suffix (normally ".so").
19166shrext_cmds='$shrext_cmds'
19167
19168# Executable file suffix (normally "").
19169exeext="$exeext"
19170
19171# Additional compiler flags for building library objects.
19172pic_flag=$lt_lt_prog_compiler_pic_GCJ
19173pic_mode=$pic_mode
19174
19175# What is the maximum length of a command?
19176max_cmd_len=$lt_cv_sys_max_cmd_len
19177
19178# Does compiler simultaneously support -c and -o options?
19179compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19180
19181# Must we lock files when doing compilation?
19182need_locks=$lt_need_locks
19183
19184# Do we need the lib prefix for modules?
19185need_lib_prefix=$need_lib_prefix
19186
19187# Do we need a version for libraries?
19188need_version=$need_version
19189
19190# Whether dlopen is supported.
19191dlopen_support=$enable_dlopen
19192
19193# Whether dlopen of programs is supported.
19194dlopen_self=$enable_dlopen_self
19195
19196# Whether dlopen of statically linked programs is supported.
19197dlopen_self_static=$enable_dlopen_self_static
19198
19199# Compiler flag to prevent dynamic linking.
19200link_static_flag=$lt_lt_prog_compiler_static_GCJ
19201
19202# Compiler flag to turn off builtin functions.
19203no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19204
19205# Compiler flag to allow reflexive dlopens.
19206export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19207
19208# Compiler flag to generate shared objects directly from archives.
19209whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19210
19211# Compiler flag to generate thread-safe objects.
19212thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19213
19214# Library versioning type.
19215version_type=$version_type
19216
19217# Format of library name prefix.
19218libname_spec=$lt_libname_spec
19219
19220# List of archive names.  First name is the real one, the rest are links.
19221# The last name is the one that the linker finds with -lNAME.
19222library_names_spec=$lt_library_names_spec
19223
19224# The coded name of the library, if different from the real name.
19225soname_spec=$lt_soname_spec
19226
19227# Commands used to build and install an old-style archive.
19228RANLIB=$lt_RANLIB
19229old_archive_cmds=$lt_old_archive_cmds_GCJ
19230old_postinstall_cmds=$lt_old_postinstall_cmds
19231old_postuninstall_cmds=$lt_old_postuninstall_cmds
19232
19233# Create an old-style archive from a shared archive.
19234old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19235
19236# Create a temporary old-style archive to link instead of a shared archive.
19237old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19238
19239# Commands used to build and install a shared archive.
19240archive_cmds=$lt_archive_cmds_GCJ
19241archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19242postinstall_cmds=$lt_postinstall_cmds
19243postuninstall_cmds=$lt_postuninstall_cmds
19244
19245# Commands used to build a loadable module (assumed same as above if empty)
19246module_cmds=$lt_module_cmds_GCJ
19247module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19248
19249# Commands to strip libraries.
19250old_striplib=$lt_old_striplib
19251striplib=$lt_striplib
19252
19253# Dependencies to place before the objects being linked to create a
19254# shared library.
19255predep_objects=$lt_predep_objects_GCJ
19256
19257# Dependencies to place after the objects being linked to create a
19258# shared library.
19259postdep_objects=$lt_postdep_objects_GCJ
19260
19261# Dependencies to place before the objects being linked to create a
19262# shared library.
19263predeps=$lt_predeps_GCJ
19264
19265# Dependencies to place after the objects being linked to create a
19266# shared library.
19267postdeps=$lt_postdeps_GCJ
19268
19269# The directories searched by this compiler when creating a shared
19270# library
19271compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19272
19273# The library search path used internally by the compiler when linking
19274# a shared library.
19275compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19276
19277# Method to check whether dependent libraries are shared objects.
19278deplibs_check_method=$lt_deplibs_check_method
19279
19280# Command to use when deplibs_check_method == file_magic.
19281file_magic_cmd=$lt_file_magic_cmd
19282
19283# Flag that allows shared libraries with undefined symbols to be built.
19284allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19285
19286# Flag that forces no undefined symbols.
19287no_undefined_flag=$lt_no_undefined_flag_GCJ
19288
19289# Commands used to finish a libtool library installation in a directory.
19290finish_cmds=$lt_finish_cmds
19291
19292# Same as above, but a single script fragment to be evaled but not shown.
19293finish_eval=$lt_finish_eval
19294
19295# Take the output of nm and produce a listing of raw symbols and C names.
19296global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19297
19298# Transform the output of nm in a proper C declaration
19299global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19300
19301# Transform the output of nm in a C name address pair
19302global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19303
19304# This is the shared library runtime path variable.
19305runpath_var=$runpath_var
19306
19307# This is the shared library path variable.
19308shlibpath_var=$shlibpath_var
19309
19310# Is shlibpath searched before the hard-coded library search path?
19311shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19312
19313# How to hardcode a shared library path into an executable.
19314hardcode_action=$hardcode_action_GCJ
19315
19316# Whether we should hardcode library paths into libraries.
19317hardcode_into_libs=$hardcode_into_libs
19318
19319# Flag to hardcode \$libdir into a binary during linking.
19320# This must work even if \$libdir does not exist.
19321hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19322
19323# If ld is used when linking, flag to hardcode \$libdir into
19324# a binary during linking. This must work even if \$libdir does
19325# not exist.
19326hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19327
19328# Whether we need a single -rpath flag with a separated argument.
19329hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19330
19331# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19332# resulting binary.
19333hardcode_direct=$hardcode_direct_GCJ
19334
19335# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19336# resulting binary.
19337hardcode_minus_L=$hardcode_minus_L_GCJ
19338
19339# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19340# the resulting binary.
19341hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19342
19343# Set to yes if building a shared library automatically hardcodes DIR into the library
19344# and all subsequent libraries and executables linked against it.
19345hardcode_automatic=$hardcode_automatic_GCJ
19346
19347# Variables whose values should be saved in libtool wrapper scripts and
19348# restored at relink time.
19349variables_saved_for_relink="$variables_saved_for_relink"
19350
19351# Whether libtool must link a program against all its dependency libraries.
19352link_all_deplibs=$link_all_deplibs_GCJ
19353
19354# Compile-time system search path for libraries
19355sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19356
19357# Run-time system search path for libraries
19358sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19359
19360# Fix the shell variable \$srcfile for the compiler.
19361fix_srcfile_path=$lt_fix_srcfile_path
19362
19363# Set to yes if exported symbols are required.
19364always_export_symbols=$always_export_symbols_GCJ
19365
19366# The commands to list exported symbols.
19367export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19368
19369# The commands to extract the exported symbol list from a shared archive.
19370extract_expsyms_cmds=$lt_extract_expsyms_cmds
19371
19372# Symbols that should not be listed in the preloaded symbols.
19373exclude_expsyms=$lt_exclude_expsyms_GCJ
19374
19375# Symbols that must always be exported.
19376include_expsyms=$lt_include_expsyms_GCJ
19377
19378# ### END LIBTOOL TAG CONFIG: $tagname
19379
19380__EOF__
19381
19382
19383else
19384  # If there is no Makefile yet, we rely on a make rule to execute
19385  # `config.status --recheck' to rerun these tests and create the
19386  # libtool script then.
19387  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19388  if test -f "$ltmain_in"; then
19389    test -f Makefile && make "$ltmain"
19390  fi
19391fi
19392
19393
19394ac_ext=c
19395ac_cpp='$CPP $CPPFLAGS'
19396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19398ac_compiler_gnu=$ac_cv_c_compiler_gnu
19399
19400CC="$lt_save_CC"
19401
19402	else
19403	  tagname=""
19404	fi
19405	;;
19406
19407      RC)
19408
19409
19410# Source file extension for RC test sources.
19411ac_ext=rc
19412
19413# Object file extension for compiled RC test sources.
19414objext=o
19415objext_RC=$objext
19416
19417# Code to be used in simple compile tests
19418lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19419
19420# Code to be used in simple link tests
19421lt_simple_link_test_code="$lt_simple_compile_test_code"
19422
19423# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19424
19425# If no C compiler was specified, use CC.
19426LTCC=${LTCC-"$CC"}
19427
19428# If no C compiler flags were specified, use CFLAGS.
19429LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19430
19431# Allow CC to be a program name with arguments.
19432compiler=$CC
19433
19434
19435# save warnings/boilerplate of simple test code
19436ac_outfile=conftest.$ac_objext
19437echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19438eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19439_lt_compiler_boilerplate=`cat conftest.err`
19440$rm conftest*
19441
19442ac_outfile=conftest.$ac_objext
19443echo "$lt_simple_link_test_code" >conftest.$ac_ext
19444eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19445_lt_linker_boilerplate=`cat conftest.err`
19446$rm -r conftest*
19447
19448
19449# Allow CC to be a program name with arguments.
19450lt_save_CC="$CC"
19451CC=${RC-"windres"}
19452compiler=$CC
19453compiler_RC=$CC
19454for cc_temp in $compiler""; do
19455  case $cc_temp in
19456    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19457    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19458    \-*) ;;
19459    *) break;;
19460  esac
19461done
19462cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19463
19464lt_cv_prog_compiler_c_o_RC=yes
19465
19466# The else clause should only fire when bootstrapping the
19467# libtool distribution, otherwise you forgot to ship ltmain.sh
19468# with your package, and you will get complaints that there are
19469# no rules to generate ltmain.sh.
19470if test -f "$ltmain"; then
19471  # See if we are running on zsh, and set the options which allow our commands through
19472  # without removal of \ escapes.
19473  if test -n "${ZSH_VERSION+set}" ; then
19474    setopt NO_GLOB_SUBST
19475  fi
19476  # Now quote all the things that may contain metacharacters while being
19477  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19478  # variables and quote the copies for generation of the libtool script.
19479  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19480    SED SHELL STRIP \
19481    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19482    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19483    deplibs_check_method reload_flag reload_cmds need_locks \
19484    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19485    lt_cv_sys_global_symbol_to_c_name_address \
19486    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19487    old_postinstall_cmds old_postuninstall_cmds \
19488    compiler_RC \
19489    CC_RC \
19490    LD_RC \
19491    lt_prog_compiler_wl_RC \
19492    lt_prog_compiler_pic_RC \
19493    lt_prog_compiler_static_RC \
19494    lt_prog_compiler_no_builtin_flag_RC \
19495    export_dynamic_flag_spec_RC \
19496    thread_safe_flag_spec_RC \
19497    whole_archive_flag_spec_RC \
19498    enable_shared_with_static_runtimes_RC \
19499    old_archive_cmds_RC \
19500    old_archive_from_new_cmds_RC \
19501    predep_objects_RC \
19502    postdep_objects_RC \
19503    predeps_RC \
19504    postdeps_RC \
19505    compiler_lib_search_path_RC \
19506    compiler_lib_search_dirs_RC \
19507    archive_cmds_RC \
19508    archive_expsym_cmds_RC \
19509    postinstall_cmds_RC \
19510    postuninstall_cmds_RC \
19511    old_archive_from_expsyms_cmds_RC \
19512    allow_undefined_flag_RC \
19513    no_undefined_flag_RC \
19514    export_symbols_cmds_RC \
19515    hardcode_libdir_flag_spec_RC \
19516    hardcode_libdir_flag_spec_ld_RC \
19517    hardcode_libdir_separator_RC \
19518    hardcode_automatic_RC \
19519    module_cmds_RC \
19520    module_expsym_cmds_RC \
19521    lt_cv_prog_compiler_c_o_RC \
19522    fix_srcfile_path_RC \
19523    exclude_expsyms_RC \
19524    include_expsyms_RC; do
19525
19526    case $var in
19527    old_archive_cmds_RC | \
19528    old_archive_from_new_cmds_RC | \
19529    archive_cmds_RC | \
19530    archive_expsym_cmds_RC | \
19531    module_cmds_RC | \
19532    module_expsym_cmds_RC | \
19533    old_archive_from_expsyms_cmds_RC | \
19534    export_symbols_cmds_RC | \
19535    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19536    postinstall_cmds | postuninstall_cmds | \
19537    old_postinstall_cmds | old_postuninstall_cmds | \
19538    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19539      # Double-quote double-evaled strings.
19540      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19541      ;;
19542    *)
19543      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19544      ;;
19545    esac
19546  done
19547
19548  case $lt_echo in
19549  *'\$0 --fallback-echo"')
19550    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19551    ;;
19552  esac
19553
19554cfgfile="$ofile"
19555
19556  cat <<__EOF__ >> "$cfgfile"
19557# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19558
19559# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19560
19561# Shell to use when invoking shell scripts.
19562SHELL=$lt_SHELL
19563
19564# Whether or not to build shared libraries.
19565build_libtool_libs=$enable_shared
19566
19567# Whether or not to build static libraries.
19568build_old_libs=$enable_static
19569
19570# Whether or not to add -lc for building shared libraries.
19571build_libtool_need_lc=$archive_cmds_need_lc_RC
19572
19573# Whether or not to disallow shared libs when runtime libs are static
19574allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19575
19576# Whether or not to optimize for fast installation.
19577fast_install=$enable_fast_install
19578
19579# The host system.
19580host_alias=$host_alias
19581host=$host
19582host_os=$host_os
19583
19584# The build system.
19585build_alias=$build_alias
19586build=$build
19587build_os=$build_os
19588
19589# An echo program that does not interpret backslashes.
19590echo=$lt_echo
19591
19592# The archiver.
19593AR=$lt_AR
19594AR_FLAGS=$lt_AR_FLAGS
19595
19596# A C compiler.
19597LTCC=$lt_LTCC
19598
19599# LTCC compiler flags.
19600LTCFLAGS=$lt_LTCFLAGS
19601
19602# A language-specific compiler.
19603CC=$lt_compiler_RC
19604
19605# Is the compiler the GNU C compiler?
19606with_gcc=$GCC_RC
19607
19608# An ERE matcher.
19609EGREP=$lt_EGREP
19610
19611# The linker used to build libraries.
19612LD=$lt_LD_RC
19613
19614# Whether we need hard or soft links.
19615LN_S=$lt_LN_S
19616
19617# A BSD-compatible nm program.
19618NM=$lt_NM
19619
19620# A symbol stripping program
19621STRIP=$lt_STRIP
19622
19623# Used to examine libraries when file_magic_cmd begins "file"
19624MAGIC_CMD=$MAGIC_CMD
19625
19626# Used on cygwin: DLL creation program.
19627DLLTOOL="$DLLTOOL"
19628
19629# Used on cygwin: object dumper.
19630OBJDUMP="$OBJDUMP"
19631
19632# Used on cygwin: assembler.
19633AS="$AS"
19634
19635# The name of the directory that contains temporary libtool files.
19636objdir=$objdir
19637
19638# How to create reloadable object files.
19639reload_flag=$lt_reload_flag
19640reload_cmds=$lt_reload_cmds
19641
19642# How to pass a linker flag through the compiler.
19643wl=$lt_lt_prog_compiler_wl_RC
19644
19645# Object file suffix (normally "o").
19646objext="$ac_objext"
19647
19648# Old archive suffix (normally "a").
19649libext="$libext"
19650
19651# Shared library suffix (normally ".so").
19652shrext_cmds='$shrext_cmds'
19653
19654# Executable file suffix (normally "").
19655exeext="$exeext"
19656
19657# Additional compiler flags for building library objects.
19658pic_flag=$lt_lt_prog_compiler_pic_RC
19659pic_mode=$pic_mode
19660
19661# What is the maximum length of a command?
19662max_cmd_len=$lt_cv_sys_max_cmd_len
19663
19664# Does compiler simultaneously support -c and -o options?
19665compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19666
19667# Must we lock files when doing compilation?
19668need_locks=$lt_need_locks
19669
19670# Do we need the lib prefix for modules?
19671need_lib_prefix=$need_lib_prefix
19672
19673# Do we need a version for libraries?
19674need_version=$need_version
19675
19676# Whether dlopen is supported.
19677dlopen_support=$enable_dlopen
19678
19679# Whether dlopen of programs is supported.
19680dlopen_self=$enable_dlopen_self
19681
19682# Whether dlopen of statically linked programs is supported.
19683dlopen_self_static=$enable_dlopen_self_static
19684
19685# Compiler flag to prevent dynamic linking.
19686link_static_flag=$lt_lt_prog_compiler_static_RC
19687
19688# Compiler flag to turn off builtin functions.
19689no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19690
19691# Compiler flag to allow reflexive dlopens.
19692export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19693
19694# Compiler flag to generate shared objects directly from archives.
19695whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19696
19697# Compiler flag to generate thread-safe objects.
19698thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19699
19700# Library versioning type.
19701version_type=$version_type
19702
19703# Format of library name prefix.
19704libname_spec=$lt_libname_spec
19705
19706# List of archive names.  First name is the real one, the rest are links.
19707# The last name is the one that the linker finds with -lNAME.
19708library_names_spec=$lt_library_names_spec
19709
19710# The coded name of the library, if different from the real name.
19711soname_spec=$lt_soname_spec
19712
19713# Commands used to build and install an old-style archive.
19714RANLIB=$lt_RANLIB
19715old_archive_cmds=$lt_old_archive_cmds_RC
19716old_postinstall_cmds=$lt_old_postinstall_cmds
19717old_postuninstall_cmds=$lt_old_postuninstall_cmds
19718
19719# Create an old-style archive from a shared archive.
19720old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19721
19722# Create a temporary old-style archive to link instead of a shared archive.
19723old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19724
19725# Commands used to build and install a shared archive.
19726archive_cmds=$lt_archive_cmds_RC
19727archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19728postinstall_cmds=$lt_postinstall_cmds
19729postuninstall_cmds=$lt_postuninstall_cmds
19730
19731# Commands used to build a loadable module (assumed same as above if empty)
19732module_cmds=$lt_module_cmds_RC
19733module_expsym_cmds=$lt_module_expsym_cmds_RC
19734
19735# Commands to strip libraries.
19736old_striplib=$lt_old_striplib
19737striplib=$lt_striplib
19738
19739# Dependencies to place before the objects being linked to create a
19740# shared library.
19741predep_objects=$lt_predep_objects_RC
19742
19743# Dependencies to place after the objects being linked to create a
19744# shared library.
19745postdep_objects=$lt_postdep_objects_RC
19746
19747# Dependencies to place before the objects being linked to create a
19748# shared library.
19749predeps=$lt_predeps_RC
19750
19751# Dependencies to place after the objects being linked to create a
19752# shared library.
19753postdeps=$lt_postdeps_RC
19754
19755# The directories searched by this compiler when creating a shared
19756# library
19757compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19758
19759# The library search path used internally by the compiler when linking
19760# a shared library.
19761compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19762
19763# Method to check whether dependent libraries are shared objects.
19764deplibs_check_method=$lt_deplibs_check_method
19765
19766# Command to use when deplibs_check_method == file_magic.
19767file_magic_cmd=$lt_file_magic_cmd
19768
19769# Flag that allows shared libraries with undefined symbols to be built.
19770allow_undefined_flag=$lt_allow_undefined_flag_RC
19771
19772# Flag that forces no undefined symbols.
19773no_undefined_flag=$lt_no_undefined_flag_RC
19774
19775# Commands used to finish a libtool library installation in a directory.
19776finish_cmds=$lt_finish_cmds
19777
19778# Same as above, but a single script fragment to be evaled but not shown.
19779finish_eval=$lt_finish_eval
19780
19781# Take the output of nm and produce a listing of raw symbols and C names.
19782global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19783
19784# Transform the output of nm in a proper C declaration
19785global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19786
19787# Transform the output of nm in a C name address pair
19788global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19789
19790# This is the shared library runtime path variable.
19791runpath_var=$runpath_var
19792
19793# This is the shared library path variable.
19794shlibpath_var=$shlibpath_var
19795
19796# Is shlibpath searched before the hard-coded library search path?
19797shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19798
19799# How to hardcode a shared library path into an executable.
19800hardcode_action=$hardcode_action_RC
19801
19802# Whether we should hardcode library paths into libraries.
19803hardcode_into_libs=$hardcode_into_libs
19804
19805# Flag to hardcode \$libdir into a binary during linking.
19806# This must work even if \$libdir does not exist.
19807hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19808
19809# If ld is used when linking, flag to hardcode \$libdir into
19810# a binary during linking. This must work even if \$libdir does
19811# not exist.
19812hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19813
19814# Whether we need a single -rpath flag with a separated argument.
19815hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19816
19817# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19818# resulting binary.
19819hardcode_direct=$hardcode_direct_RC
19820
19821# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19822# resulting binary.
19823hardcode_minus_L=$hardcode_minus_L_RC
19824
19825# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19826# the resulting binary.
19827hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19828
19829# Set to yes if building a shared library automatically hardcodes DIR into the library
19830# and all subsequent libraries and executables linked against it.
19831hardcode_automatic=$hardcode_automatic_RC
19832
19833# Variables whose values should be saved in libtool wrapper scripts and
19834# restored at relink time.
19835variables_saved_for_relink="$variables_saved_for_relink"
19836
19837# Whether libtool must link a program against all its dependency libraries.
19838link_all_deplibs=$link_all_deplibs_RC
19839
19840# Compile-time system search path for libraries
19841sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19842
19843# Run-time system search path for libraries
19844sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19845
19846# Fix the shell variable \$srcfile for the compiler.
19847fix_srcfile_path=$lt_fix_srcfile_path
19848
19849# Set to yes if exported symbols are required.
19850always_export_symbols=$always_export_symbols_RC
19851
19852# The commands to list exported symbols.
19853export_symbols_cmds=$lt_export_symbols_cmds_RC
19854
19855# The commands to extract the exported symbol list from a shared archive.
19856extract_expsyms_cmds=$lt_extract_expsyms_cmds
19857
19858# Symbols that should not be listed in the preloaded symbols.
19859exclude_expsyms=$lt_exclude_expsyms_RC
19860
19861# Symbols that must always be exported.
19862include_expsyms=$lt_include_expsyms_RC
19863
19864# ### END LIBTOOL TAG CONFIG: $tagname
19865
19866__EOF__
19867
19868
19869else
19870  # If there is no Makefile yet, we rely on a make rule to execute
19871  # `config.status --recheck' to rerun these tests and create the
19872  # libtool script then.
19873  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19874  if test -f "$ltmain_in"; then
19875    test -f Makefile && make "$ltmain"
19876  fi
19877fi
19878
19879
19880ac_ext=c
19881ac_cpp='$CPP $CPPFLAGS'
19882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19884ac_compiler_gnu=$ac_cv_c_compiler_gnu
19885
19886CC="$lt_save_CC"
19887
19888	;;
19889
19890      *)
19891	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19892$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19893   { (exit 1); exit 1; }; }
19894	;;
19895      esac
19896
19897      # Append the new tag name to the list of available tags.
19898      if test -n "$tagname" ; then
19899      available_tags="$available_tags $tagname"
19900    fi
19901    fi
19902  done
19903  IFS="$lt_save_ifs"
19904
19905  # Now substitute the updated list of available tags.
19906  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19907    mv "${ofile}T" "$ofile"
19908    chmod +x "$ofile"
19909  else
19910    rm -f "${ofile}T"
19911    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19912$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19913   { (exit 1); exit 1; }; }
19914  fi
19915fi
19916
19917
19918
19919# This can be used to rebuild libtool when needed
19920LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19921
19922# Always use our own libtool.
19923LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19924
19925# Prevent multiple expansion
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19950	if test -n "$ac_tool_prefix"; then
19951  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19952set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19953{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19954$as_echo_n "checking for $ac_word... " >&6; }
19955if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19956  $as_echo_n "(cached) " >&6
19957else
19958  case $PKG_CONFIG in
19959  [\\/]* | ?:[\\/]*)
19960  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19961  ;;
19962  *)
19963  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19964for as_dir in $PATH
19965do
19966  IFS=$as_save_IFS
19967  test -z "$as_dir" && as_dir=.
19968  for ac_exec_ext in '' $ac_executable_extensions; do
19969  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19970    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19971    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19972    break 2
19973  fi
19974done
19975done
19976IFS=$as_save_IFS
19977
19978  ;;
19979esac
19980fi
19981PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19982if test -n "$PKG_CONFIG"; then
19983  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19984$as_echo "$PKG_CONFIG" >&6; }
19985else
19986  { $as_echo "$as_me:$LINENO: result: no" >&5
19987$as_echo "no" >&6; }
19988fi
19989
19990
19991fi
19992if test -z "$ac_cv_path_PKG_CONFIG"; then
19993  ac_pt_PKG_CONFIG=$PKG_CONFIG
19994  # Extract the first word of "pkg-config", so it can be a program name with args.
19995set dummy pkg-config; ac_word=$2
19996{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
19997$as_echo_n "checking for $ac_word... " >&6; }
19998if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19999  $as_echo_n "(cached) " >&6
20000else
20001  case $ac_pt_PKG_CONFIG in
20002  [\\/]* | ?:[\\/]*)
20003  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20004  ;;
20005  *)
20006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20007for as_dir in $PATH
20008do
20009  IFS=$as_save_IFS
20010  test -z "$as_dir" && as_dir=.
20011  for ac_exec_ext in '' $ac_executable_extensions; do
20012  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20013    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20014    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20015    break 2
20016  fi
20017done
20018done
20019IFS=$as_save_IFS
20020
20021  ;;
20022esac
20023fi
20024ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20025if test -n "$ac_pt_PKG_CONFIG"; then
20026  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20027$as_echo "$ac_pt_PKG_CONFIG" >&6; }
20028else
20029  { $as_echo "$as_me:$LINENO: result: no" >&5
20030$as_echo "no" >&6; }
20031fi
20032
20033  if test "x$ac_pt_PKG_CONFIG" = x; then
20034    PKG_CONFIG=""
20035  else
20036    case $cross_compiling:$ac_tool_warned in
20037yes:)
20038{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20040ac_tool_warned=yes ;;
20041esac
20042    PKG_CONFIG=$ac_pt_PKG_CONFIG
20043  fi
20044else
20045  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20046fi
20047
20048fi
20049if test -n "$PKG_CONFIG"; then
20050	_pkg_min_version=0.9.0
20051	{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20052$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20053	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20054		{ $as_echo "$as_me:$LINENO: result: yes" >&5
20055$as_echo "yes" >&6; }
20056	else
20057		{ $as_echo "$as_me:$LINENO: result: no" >&5
20058$as_echo "no" >&6; }
20059		PKG_CONFIG=""
20060	fi
20061
20062fi
20063
20064pkg_failed=no
20065{ $as_echo "$as_me:$LINENO: checking for libg19" >&5
20066$as_echo_n "checking for libg19... " >&6; }
20067
20068if test -n "$libg19_CFLAGS"; then
20069    pkg_cv_libg19_CFLAGS="$libg19_CFLAGS"
20070 elif test -n "$PKG_CONFIG"; then
20071    if test -n "$PKG_CONFIG" && \
20072    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\"") >&5
20073  ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
20074  ac_status=$?
20075  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076  (exit $ac_status); }; then
20077  pkg_cv_libg19_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
20078else
20079  pkg_failed=yes
20080fi
20081 else
20082    pkg_failed=untried
20083fi
20084if test -n "$libg19_LIBS"; then
20085    pkg_cv_libg19_LIBS="$libg19_LIBS"
20086 elif test -n "$PKG_CONFIG"; then
20087    if test -n "$PKG_CONFIG" && \
20088    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\"") >&5
20089  ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
20090  ac_status=$?
20091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092  (exit $ac_status); }; then
20093  pkg_cv_libg19_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
20094else
20095  pkg_failed=yes
20096fi
20097 else
20098    pkg_failed=untried
20099fi
20100
20101
20102
20103if test $pkg_failed = yes; then
20104
20105if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20106        _pkg_short_errors_supported=yes
20107else
20108        _pkg_short_errors_supported=no
20109fi
20110        if test $_pkg_short_errors_supported = yes; then
20111	        libg19_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libusb-1.0" 2>&1`
20112        else
20113	        libg19_PKG_ERRORS=`$PKG_CONFIG --print-errors "libusb-1.0" 2>&1`
20114        fi
20115	# Put the nasty error message in config.log where it belongs
20116	echo "$libg19_PKG_ERRORS" >&5
20117
20118	{ { $as_echo "$as_me:$LINENO: error: Package requirements (libusb-1.0) were not met:
20119
20120$libg19_PKG_ERRORS
20121
20122Consider adjusting the PKG_CONFIG_PATH environment variable if you
20123installed software in a non-standard prefix.
20124
20125Alternatively, you may set the environment variables libg19_CFLAGS
20126and libg19_LIBS to avoid the need to call pkg-config.
20127See the pkg-config man page for more details.
20128" >&5
20129$as_echo "$as_me: error: Package requirements (libusb-1.0) were not met:
20130
20131$libg19_PKG_ERRORS
20132
20133Consider adjusting the PKG_CONFIG_PATH environment variable if you
20134installed software in a non-standard prefix.
20135
20136Alternatively, you may set the environment variables libg19_CFLAGS
20137and libg19_LIBS to avoid the need to call pkg-config.
20138See the pkg-config man page for more details.
20139" >&2;}
20140   { (exit 1); exit 1; }; }
20141elif test $pkg_failed = untried; then
20142	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20144{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20145is in your PATH or set the PKG_CONFIG environment variable to the full
20146path to pkg-config.
20147
20148Alternatively, you may set the environment variables libg19_CFLAGS
20149and libg19_LIBS to avoid the need to call pkg-config.
20150See the pkg-config man page for more details.
20151
20152To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20153See \`config.log' for more details." >&5
20154$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20155is in your PATH or set the PKG_CONFIG environment variable to the full
20156path to pkg-config.
20157
20158Alternatively, you may set the environment variables libg19_CFLAGS
20159and libg19_LIBS to avoid the need to call pkg-config.
20160See the pkg-config man page for more details.
20161
20162To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20163See \`config.log' for more details." >&2;}
20164   { (exit 1); exit 1; }; }; }
20165else
20166	libg19_CFLAGS=$pkg_cv_libg19_CFLAGS
20167	libg19_LIBS=$pkg_cv_libg19_LIBS
20168        { $as_echo "$as_me:$LINENO: result: yes" >&5
20169$as_echo "yes" >&6; }
20170	:
20171fi
20172
20173{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20174$as_echo_n "checking for ANSI C header files... " >&6; }
20175if test "${ac_cv_header_stdc+set}" = set; then
20176  $as_echo_n "(cached) " >&6
20177else
20178  cat >conftest.$ac_ext <<_ACEOF
20179/* confdefs.h.  */
20180_ACEOF
20181cat confdefs.h >>conftest.$ac_ext
20182cat >>conftest.$ac_ext <<_ACEOF
20183/* end confdefs.h.  */
20184#include <stdlib.h>
20185#include <stdarg.h>
20186#include <string.h>
20187#include <float.h>
20188
20189int
20190main ()
20191{
20192
20193  ;
20194  return 0;
20195}
20196_ACEOF
20197rm -f conftest.$ac_objext
20198if { (ac_try="$ac_compile"
20199case "(($ac_try" in
20200  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201  *) ac_try_echo=$ac_try;;
20202esac
20203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20204$as_echo "$ac_try_echo") >&5
20205  (eval "$ac_compile") 2>conftest.er1
20206  ac_status=$?
20207  grep -v '^ *+' conftest.er1 >conftest.err
20208  rm -f conftest.er1
20209  cat conftest.err >&5
20210  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211  (exit $ac_status); } && {
20212	 test -z "$ac_c_werror_flag" ||
20213	 test ! -s conftest.err
20214       } && test -s conftest.$ac_objext; then
20215  ac_cv_header_stdc=yes
20216else
20217  $as_echo "$as_me: failed program was:" >&5
20218sed 's/^/| /' conftest.$ac_ext >&5
20219
20220	ac_cv_header_stdc=no
20221fi
20222
20223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20224
20225if test $ac_cv_header_stdc = yes; then
20226  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20227  cat >conftest.$ac_ext <<_ACEOF
20228/* confdefs.h.  */
20229_ACEOF
20230cat confdefs.h >>conftest.$ac_ext
20231cat >>conftest.$ac_ext <<_ACEOF
20232/* end confdefs.h.  */
20233#include <string.h>
20234
20235_ACEOF
20236if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20237  $EGREP "memchr" >/dev/null 2>&1; then
20238  :
20239else
20240  ac_cv_header_stdc=no
20241fi
20242rm -f conftest*
20243
20244fi
20245
20246if test $ac_cv_header_stdc = yes; then
20247  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20248  cat >conftest.$ac_ext <<_ACEOF
20249/* confdefs.h.  */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h.  */
20254#include <stdlib.h>
20255
20256_ACEOF
20257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20258  $EGREP "free" >/dev/null 2>&1; then
20259  :
20260else
20261  ac_cv_header_stdc=no
20262fi
20263rm -f conftest*
20264
20265fi
20266
20267if test $ac_cv_header_stdc = yes; then
20268  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20269  if test "$cross_compiling" = yes; then
20270  :
20271else
20272  cat >conftest.$ac_ext <<_ACEOF
20273/* confdefs.h.  */
20274_ACEOF
20275cat confdefs.h >>conftest.$ac_ext
20276cat >>conftest.$ac_ext <<_ACEOF
20277/* end confdefs.h.  */
20278#include <ctype.h>
20279#include <stdlib.h>
20280#if ((' ' & 0x0FF) == 0x020)
20281# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20282# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20283#else
20284# define ISLOWER(c) \
20285		   (('a' <= (c) && (c) <= 'i') \
20286		     || ('j' <= (c) && (c) <= 'r') \
20287		     || ('s' <= (c) && (c) <= 'z'))
20288# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20289#endif
20290
20291#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20292int
20293main ()
20294{
20295  int i;
20296  for (i = 0; i < 256; i++)
20297    if (XOR (islower (i), ISLOWER (i))
20298	|| toupper (i) != TOUPPER (i))
20299      return 2;
20300  return 0;
20301}
20302_ACEOF
20303rm -f conftest$ac_exeext
20304if { (ac_try="$ac_link"
20305case "(($ac_try" in
20306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20307  *) ac_try_echo=$ac_try;;
20308esac
20309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20310$as_echo "$ac_try_echo") >&5
20311  (eval "$ac_link") 2>&5
20312  ac_status=$?
20313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20315  { (case "(($ac_try" in
20316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20317  *) ac_try_echo=$ac_try;;
20318esac
20319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20320$as_echo "$ac_try_echo") >&5
20321  (eval "$ac_try") 2>&5
20322  ac_status=$?
20323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324  (exit $ac_status); }; }; then
20325  :
20326else
20327  $as_echo "$as_me: program exited with status $ac_status" >&5
20328$as_echo "$as_me: failed program was:" >&5
20329sed 's/^/| /' conftest.$ac_ext >&5
20330
20331( exit $ac_status )
20332ac_cv_header_stdc=no
20333fi
20334rm -rf conftest.dSYM
20335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20336fi
20337
20338
20339fi
20340fi
20341{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20342$as_echo "$ac_cv_header_stdc" >&6; }
20343if test $ac_cv_header_stdc = yes; then
20344
20345cat >>confdefs.h <<\_ACEOF
20346#define STDC_HEADERS 1
20347_ACEOF
20348
20349fi
20350
20351
20352for ac_header in errno.h
20353do
20354as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20356  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20357$as_echo_n "checking for $ac_header... " >&6; }
20358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20359  $as_echo_n "(cached) " >&6
20360fi
20361ac_res=`eval 'as_val=${'$as_ac_Header'}
20362		 $as_echo "$as_val"'`
20363	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20364$as_echo "$ac_res" >&6; }
20365else
20366  # Is the header compilable?
20367{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20368$as_echo_n "checking $ac_header usability... " >&6; }
20369cat >conftest.$ac_ext <<_ACEOF
20370/* confdefs.h.  */
20371_ACEOF
20372cat confdefs.h >>conftest.$ac_ext
20373cat >>conftest.$ac_ext <<_ACEOF
20374/* end confdefs.h.  */
20375$ac_includes_default
20376#include <$ac_header>
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (ac_try="$ac_compile"
20380case "(($ac_try" in
20381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382  *) ac_try_echo=$ac_try;;
20383esac
20384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20385$as_echo "$ac_try_echo") >&5
20386  (eval "$ac_compile") 2>conftest.er1
20387  ac_status=$?
20388  grep -v '^ *+' conftest.er1 >conftest.err
20389  rm -f conftest.er1
20390  cat conftest.err >&5
20391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392  (exit $ac_status); } && {
20393	 test -z "$ac_c_werror_flag" ||
20394	 test ! -s conftest.err
20395       } && test -s conftest.$ac_objext; then
20396  ac_header_compiler=yes
20397else
20398  $as_echo "$as_me: failed program was:" >&5
20399sed 's/^/| /' conftest.$ac_ext >&5
20400
20401	ac_header_compiler=no
20402fi
20403
20404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20405{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20406$as_echo "$ac_header_compiler" >&6; }
20407
20408# Is the header present?
20409{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20410$as_echo_n "checking $ac_header presence... " >&6; }
20411cat >conftest.$ac_ext <<_ACEOF
20412/* confdefs.h.  */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h.  */
20417#include <$ac_header>
20418_ACEOF
20419if { (ac_try="$ac_cpp conftest.$ac_ext"
20420case "(($ac_try" in
20421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422  *) ac_try_echo=$ac_try;;
20423esac
20424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20425$as_echo "$ac_try_echo") >&5
20426  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20427  ac_status=$?
20428  grep -v '^ *+' conftest.er1 >conftest.err
20429  rm -f conftest.er1
20430  cat conftest.err >&5
20431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432  (exit $ac_status); } >/dev/null && {
20433	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20434	 test ! -s conftest.err
20435       }; then
20436  ac_header_preproc=yes
20437else
20438  $as_echo "$as_me: failed program was:" >&5
20439sed 's/^/| /' conftest.$ac_ext >&5
20440
20441  ac_header_preproc=no
20442fi
20443
20444rm -f conftest.err conftest.$ac_ext
20445{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20446$as_echo "$ac_header_preproc" >&6; }
20447
20448# So?  What about this header?
20449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20450  yes:no: )
20451    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20452$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20453    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20454$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20455    ac_header_preproc=yes
20456    ;;
20457  no:yes:* )
20458    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20459$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20460    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20461$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20462    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20463$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20464    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20465$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20466    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20467$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20468    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20469$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20470    ( cat <<\_ASBOX
20471## --------------------------------------------- ##
20472## Report this to jgeboski@users.sourceforge.net ##
20473## --------------------------------------------- ##
20474_ASBOX
20475     ) | sed "s/^/$as_me: WARNING:     /" >&2
20476    ;;
20477esac
20478{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20479$as_echo_n "checking for $ac_header... " >&6; }
20480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20481  $as_echo_n "(cached) " >&6
20482else
20483  eval "$as_ac_Header=\$ac_header_preproc"
20484fi
20485ac_res=`eval 'as_val=${'$as_ac_Header'}
20486		 $as_echo "$as_val"'`
20487	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20488$as_echo "$ac_res" >&6; }
20489
20490fi
20491as_val=`eval 'as_val=${'$as_ac_Header'}
20492		 $as_echo "$as_val"'`
20493   if test "x$as_val" = x""yes; then
20494  cat >>confdefs.h <<_ACEOF
20495#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20496_ACEOF
20497
20498fi
20499
20500done
20501
20502
20503for ac_header in pthread.h
20504do
20505as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20507  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20508$as_echo_n "checking for $ac_header... " >&6; }
20509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20510  $as_echo_n "(cached) " >&6
20511fi
20512ac_res=`eval 'as_val=${'$as_ac_Header'}
20513		 $as_echo "$as_val"'`
20514	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20515$as_echo "$ac_res" >&6; }
20516else
20517  # Is the header compilable?
20518{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20519$as_echo_n "checking $ac_header usability... " >&6; }
20520cat >conftest.$ac_ext <<_ACEOF
20521/* confdefs.h.  */
20522_ACEOF
20523cat confdefs.h >>conftest.$ac_ext
20524cat >>conftest.$ac_ext <<_ACEOF
20525/* end confdefs.h.  */
20526$ac_includes_default
20527#include <$ac_header>
20528_ACEOF
20529rm -f conftest.$ac_objext
20530if { (ac_try="$ac_compile"
20531case "(($ac_try" in
20532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533  *) ac_try_echo=$ac_try;;
20534esac
20535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20536$as_echo "$ac_try_echo") >&5
20537  (eval "$ac_compile") 2>conftest.er1
20538  ac_status=$?
20539  grep -v '^ *+' conftest.er1 >conftest.err
20540  rm -f conftest.er1
20541  cat conftest.err >&5
20542  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543  (exit $ac_status); } && {
20544	 test -z "$ac_c_werror_flag" ||
20545	 test ! -s conftest.err
20546       } && test -s conftest.$ac_objext; then
20547  ac_header_compiler=yes
20548else
20549  $as_echo "$as_me: failed program was:" >&5
20550sed 's/^/| /' conftest.$ac_ext >&5
20551
20552	ac_header_compiler=no
20553fi
20554
20555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20557$as_echo "$ac_header_compiler" >&6; }
20558
20559# Is the header present?
20560{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20561$as_echo_n "checking $ac_header presence... " >&6; }
20562cat >conftest.$ac_ext <<_ACEOF
20563/* confdefs.h.  */
20564_ACEOF
20565cat confdefs.h >>conftest.$ac_ext
20566cat >>conftest.$ac_ext <<_ACEOF
20567/* end confdefs.h.  */
20568#include <$ac_header>
20569_ACEOF
20570if { (ac_try="$ac_cpp conftest.$ac_ext"
20571case "(($ac_try" in
20572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20573  *) ac_try_echo=$ac_try;;
20574esac
20575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20576$as_echo "$ac_try_echo") >&5
20577  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20578  ac_status=$?
20579  grep -v '^ *+' conftest.er1 >conftest.err
20580  rm -f conftest.er1
20581  cat conftest.err >&5
20582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583  (exit $ac_status); } >/dev/null && {
20584	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20585	 test ! -s conftest.err
20586       }; then
20587  ac_header_preproc=yes
20588else
20589  $as_echo "$as_me: failed program was:" >&5
20590sed 's/^/| /' conftest.$ac_ext >&5
20591
20592  ac_header_preproc=no
20593fi
20594
20595rm -f conftest.err conftest.$ac_ext
20596{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20597$as_echo "$ac_header_preproc" >&6; }
20598
20599# So?  What about this header?
20600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20601  yes:no: )
20602    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20603$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20604    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20605$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20606    ac_header_preproc=yes
20607    ;;
20608  no:yes:* )
20609    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20610$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20611    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20612$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20613    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20614$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20615    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20616$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20617    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20618$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20619    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20620$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20621    ( cat <<\_ASBOX
20622## --------------------------------------------- ##
20623## Report this to jgeboski@users.sourceforge.net ##
20624## --------------------------------------------- ##
20625_ASBOX
20626     ) | sed "s/^/$as_me: WARNING:     /" >&2
20627    ;;
20628esac
20629{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20630$as_echo_n "checking for $ac_header... " >&6; }
20631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20632  $as_echo_n "(cached) " >&6
20633else
20634  eval "$as_ac_Header=\$ac_header_preproc"
20635fi
20636ac_res=`eval 'as_val=${'$as_ac_Header'}
20637		 $as_echo "$as_val"'`
20638	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20639$as_echo "$ac_res" >&6; }
20640
20641fi
20642as_val=`eval 'as_val=${'$as_ac_Header'}
20643		 $as_echo "$as_val"'`
20644   if test "x$as_val" = x""yes; then
20645  cat >>confdefs.h <<_ACEOF
20646#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20647_ACEOF
20648
20649fi
20650
20651done
20652
20653
20654for ac_header in string.h
20655do
20656as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20658  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20659$as_echo_n "checking for $ac_header... " >&6; }
20660if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20661  $as_echo_n "(cached) " >&6
20662fi
20663ac_res=`eval 'as_val=${'$as_ac_Header'}
20664		 $as_echo "$as_val"'`
20665	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20666$as_echo "$ac_res" >&6; }
20667else
20668  # Is the header compilable?
20669{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20670$as_echo_n "checking $ac_header usability... " >&6; }
20671cat >conftest.$ac_ext <<_ACEOF
20672/* confdefs.h.  */
20673_ACEOF
20674cat confdefs.h >>conftest.$ac_ext
20675cat >>conftest.$ac_ext <<_ACEOF
20676/* end confdefs.h.  */
20677$ac_includes_default
20678#include <$ac_header>
20679_ACEOF
20680rm -f conftest.$ac_objext
20681if { (ac_try="$ac_compile"
20682case "(($ac_try" in
20683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684  *) ac_try_echo=$ac_try;;
20685esac
20686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20687$as_echo "$ac_try_echo") >&5
20688  (eval "$ac_compile") 2>conftest.er1
20689  ac_status=$?
20690  grep -v '^ *+' conftest.er1 >conftest.err
20691  rm -f conftest.er1
20692  cat conftest.err >&5
20693  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694  (exit $ac_status); } && {
20695	 test -z "$ac_c_werror_flag" ||
20696	 test ! -s conftest.err
20697       } && test -s conftest.$ac_objext; then
20698  ac_header_compiler=yes
20699else
20700  $as_echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703	ac_header_compiler=no
20704fi
20705
20706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20708$as_echo "$ac_header_compiler" >&6; }
20709
20710# Is the header present?
20711{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20712$as_echo_n "checking $ac_header presence... " >&6; }
20713cat >conftest.$ac_ext <<_ACEOF
20714/* confdefs.h.  */
20715_ACEOF
20716cat confdefs.h >>conftest.$ac_ext
20717cat >>conftest.$ac_ext <<_ACEOF
20718/* end confdefs.h.  */
20719#include <$ac_header>
20720_ACEOF
20721if { (ac_try="$ac_cpp conftest.$ac_ext"
20722case "(($ac_try" in
20723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724  *) ac_try_echo=$ac_try;;
20725esac
20726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20727$as_echo "$ac_try_echo") >&5
20728  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20729  ac_status=$?
20730  grep -v '^ *+' conftest.er1 >conftest.err
20731  rm -f conftest.er1
20732  cat conftest.err >&5
20733  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734  (exit $ac_status); } >/dev/null && {
20735	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20736	 test ! -s conftest.err
20737       }; then
20738  ac_header_preproc=yes
20739else
20740  $as_echo "$as_me: failed program was:" >&5
20741sed 's/^/| /' conftest.$ac_ext >&5
20742
20743  ac_header_preproc=no
20744fi
20745
20746rm -f conftest.err conftest.$ac_ext
20747{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20748$as_echo "$ac_header_preproc" >&6; }
20749
20750# So?  What about this header?
20751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20752  yes:no: )
20753    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20754$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20755    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20756$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20757    ac_header_preproc=yes
20758    ;;
20759  no:yes:* )
20760    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20761$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20762    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20763$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20764    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20765$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20766    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20767$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20768    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20769$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20770    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20771$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20772    ( cat <<\_ASBOX
20773## --------------------------------------------- ##
20774## Report this to jgeboski@users.sourceforge.net ##
20775## --------------------------------------------- ##
20776_ASBOX
20777     ) | sed "s/^/$as_me: WARNING:     /" >&2
20778    ;;
20779esac
20780{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20781$as_echo_n "checking for $ac_header... " >&6; }
20782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20783  $as_echo_n "(cached) " >&6
20784else
20785  eval "$as_ac_Header=\$ac_header_preproc"
20786fi
20787ac_res=`eval 'as_val=${'$as_ac_Header'}
20788		 $as_echo "$as_val"'`
20789	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20790$as_echo "$ac_res" >&6; }
20791
20792fi
20793as_val=`eval 'as_val=${'$as_ac_Header'}
20794		 $as_echo "$as_val"'`
20795   if test "x$as_val" = x""yes; then
20796  cat >>confdefs.h <<_ACEOF
20797#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20798_ACEOF
20799
20800fi
20801
20802done
20803
20804
20805{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20806$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20807if test "${ac_cv_c_const+set}" = set; then
20808  $as_echo_n "(cached) " >&6
20809else
20810  cat >conftest.$ac_ext <<_ACEOF
20811/* confdefs.h.  */
20812_ACEOF
20813cat confdefs.h >>conftest.$ac_ext
20814cat >>conftest.$ac_ext <<_ACEOF
20815/* end confdefs.h.  */
20816
20817int
20818main ()
20819{
20820/* FIXME: Include the comments suggested by Paul. */
20821#ifndef __cplusplus
20822  /* Ultrix mips cc rejects this.  */
20823  typedef int charset[2];
20824  const charset cs;
20825  /* SunOS 4.1.1 cc rejects this.  */
20826  char const *const *pcpcc;
20827  char **ppc;
20828  /* NEC SVR4.0.2 mips cc rejects this.  */
20829  struct point {int x, y;};
20830  static struct point const zero = {0,0};
20831  /* AIX XL C 1.02.0.0 rejects this.
20832     It does not let you subtract one const X* pointer from another in
20833     an arm of an if-expression whose if-part is not a constant
20834     expression */
20835  const char *g = "string";
20836  pcpcc = &g + (g ? g-g : 0);
20837  /* HPUX 7.0 cc rejects these. */
20838  ++pcpcc;
20839  ppc = (char**) pcpcc;
20840  pcpcc = (char const *const *) ppc;
20841  { /* SCO 3.2v4 cc rejects this.  */
20842    char *t;
20843    char const *s = 0 ? (char *) 0 : (char const *) 0;
20844
20845    *t++ = 0;
20846    if (s) return 0;
20847  }
20848  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20849    int x[] = {25, 17};
20850    const int *foo = &x[0];
20851    ++foo;
20852  }
20853  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20854    typedef const int *iptr;
20855    iptr p = 0;
20856    ++p;
20857  }
20858  { /* AIX XL C 1.02.0.0 rejects this saying
20859       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20860    struct s { int j; const int *ap[3]; };
20861    struct s *b; b->j = 5;
20862  }
20863  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20864    const int foo = 10;
20865    if (!foo) return 0;
20866  }
20867  return !cs[0] && !zero.x;
20868#endif
20869
20870  ;
20871  return 0;
20872}
20873_ACEOF
20874rm -f conftest.$ac_objext
20875if { (ac_try="$ac_compile"
20876case "(($ac_try" in
20877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878  *) ac_try_echo=$ac_try;;
20879esac
20880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20881$as_echo "$ac_try_echo") >&5
20882  (eval "$ac_compile") 2>conftest.er1
20883  ac_status=$?
20884  grep -v '^ *+' conftest.er1 >conftest.err
20885  rm -f conftest.er1
20886  cat conftest.err >&5
20887  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888  (exit $ac_status); } && {
20889	 test -z "$ac_c_werror_flag" ||
20890	 test ! -s conftest.err
20891       } && test -s conftest.$ac_objext; then
20892  ac_cv_c_const=yes
20893else
20894  $as_echo "$as_me: failed program was:" >&5
20895sed 's/^/| /' conftest.$ac_ext >&5
20896
20897	ac_cv_c_const=no
20898fi
20899
20900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901fi
20902{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20903$as_echo "$ac_cv_c_const" >&6; }
20904if test $ac_cv_c_const = no; then
20905
20906cat >>confdefs.h <<\_ACEOF
20907#define const /**/
20908_ACEOF
20909
20910fi
20911
20912
20913
20914for ac_func in memset
20915do
20916as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20917{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20918$as_echo_n "checking for $ac_func... " >&6; }
20919if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20920  $as_echo_n "(cached) " >&6
20921else
20922  cat >conftest.$ac_ext <<_ACEOF
20923/* confdefs.h.  */
20924_ACEOF
20925cat confdefs.h >>conftest.$ac_ext
20926cat >>conftest.$ac_ext <<_ACEOF
20927/* end confdefs.h.  */
20928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20929   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20930#define $ac_func innocuous_$ac_func
20931
20932/* System header to define __stub macros and hopefully few prototypes,
20933    which can conflict with char $ac_func (); below.
20934    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20935    <limits.h> exists even on freestanding compilers.  */
20936
20937#ifdef __STDC__
20938# include <limits.h>
20939#else
20940# include <assert.h>
20941#endif
20942
20943#undef $ac_func
20944
20945/* Override any GCC internal prototype to avoid an error.
20946   Use char because int might match the return type of a GCC
20947   builtin and then its argument prototype would still apply.  */
20948#ifdef __cplusplus
20949extern "C"
20950#endif
20951char $ac_func ();
20952/* The GNU C library defines this for functions which it implements
20953    to always fail with ENOSYS.  Some functions are actually named
20954    something starting with __ and the normal name is an alias.  */
20955#if defined __stub_$ac_func || defined __stub___$ac_func
20956choke me
20957#endif
20958
20959int
20960main ()
20961{
20962return $ac_func ();
20963  ;
20964  return 0;
20965}
20966_ACEOF
20967rm -f conftest.$ac_objext conftest$ac_exeext
20968if { (ac_try="$ac_link"
20969case "(($ac_try" in
20970  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971  *) ac_try_echo=$ac_try;;
20972esac
20973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20974$as_echo "$ac_try_echo") >&5
20975  (eval "$ac_link") 2>conftest.er1
20976  ac_status=$?
20977  grep -v '^ *+' conftest.er1 >conftest.err
20978  rm -f conftest.er1
20979  cat conftest.err >&5
20980  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981  (exit $ac_status); } && {
20982	 test -z "$ac_c_werror_flag" ||
20983	 test ! -s conftest.err
20984       } && test -s conftest$ac_exeext && {
20985	 test "$cross_compiling" = yes ||
20986	 $as_test_x conftest$ac_exeext
20987       }; then
20988  eval "$as_ac_var=yes"
20989else
20990  $as_echo "$as_me: failed program was:" >&5
20991sed 's/^/| /' conftest.$ac_ext >&5
20992
20993	eval "$as_ac_var=no"
20994fi
20995
20996rm -rf conftest.dSYM
20997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20998      conftest$ac_exeext conftest.$ac_ext
20999fi
21000ac_res=`eval 'as_val=${'$as_ac_var'}
21001		 $as_echo "$as_val"'`
21002	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21003$as_echo "$ac_res" >&6; }
21004as_val=`eval 'as_val=${'$as_ac_var'}
21005		 $as_echo "$as_val"'`
21006   if test "x$as_val" = x""yes; then
21007  cat >>confdefs.h <<_ACEOF
21008#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21009_ACEOF
21010
21011fi
21012done
21013
21014
21015for ac_func in memcpy
21016do
21017as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21018{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21019$as_echo_n "checking for $ac_func... " >&6; }
21020if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21021  $as_echo_n "(cached) " >&6
21022else
21023  cat >conftest.$ac_ext <<_ACEOF
21024/* confdefs.h.  */
21025_ACEOF
21026cat confdefs.h >>conftest.$ac_ext
21027cat >>conftest.$ac_ext <<_ACEOF
21028/* end confdefs.h.  */
21029/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21030   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21031#define $ac_func innocuous_$ac_func
21032
21033/* System header to define __stub macros and hopefully few prototypes,
21034    which can conflict with char $ac_func (); below.
21035    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21036    <limits.h> exists even on freestanding compilers.  */
21037
21038#ifdef __STDC__
21039# include <limits.h>
21040#else
21041# include <assert.h>
21042#endif
21043
21044#undef $ac_func
21045
21046/* Override any GCC internal prototype to avoid an error.
21047   Use char because int might match the return type of a GCC
21048   builtin and then its argument prototype would still apply.  */
21049#ifdef __cplusplus
21050extern "C"
21051#endif
21052char $ac_func ();
21053/* The GNU C library defines this for functions which it implements
21054    to always fail with ENOSYS.  Some functions are actually named
21055    something starting with __ and the normal name is an alias.  */
21056#if defined __stub_$ac_func || defined __stub___$ac_func
21057choke me
21058#endif
21059
21060int
21061main ()
21062{
21063return $ac_func ();
21064  ;
21065  return 0;
21066}
21067_ACEOF
21068rm -f conftest.$ac_objext conftest$ac_exeext
21069if { (ac_try="$ac_link"
21070case "(($ac_try" in
21071  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072  *) ac_try_echo=$ac_try;;
21073esac
21074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21075$as_echo "$ac_try_echo") >&5
21076  (eval "$ac_link") 2>conftest.er1
21077  ac_status=$?
21078  grep -v '^ *+' conftest.er1 >conftest.err
21079  rm -f conftest.er1
21080  cat conftest.err >&5
21081  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082  (exit $ac_status); } && {
21083	 test -z "$ac_c_werror_flag" ||
21084	 test ! -s conftest.err
21085       } && test -s conftest$ac_exeext && {
21086	 test "$cross_compiling" = yes ||
21087	 $as_test_x conftest$ac_exeext
21088       }; then
21089  eval "$as_ac_var=yes"
21090else
21091  $as_echo "$as_me: failed program was:" >&5
21092sed 's/^/| /' conftest.$ac_ext >&5
21093
21094	eval "$as_ac_var=no"
21095fi
21096
21097rm -rf conftest.dSYM
21098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21099      conftest$ac_exeext conftest.$ac_ext
21100fi
21101ac_res=`eval 'as_val=${'$as_ac_var'}
21102		 $as_echo "$as_val"'`
21103	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21104$as_echo "$ac_res" >&6; }
21105as_val=`eval 'as_val=${'$as_ac_var'}
21106		 $as_echo "$as_val"'`
21107   if test "x$as_val" = x""yes; then
21108  cat >>confdefs.h <<_ACEOF
21109#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21110_ACEOF
21111
21112fi
21113done
21114
21115
21116ac_config_files="$ac_config_files Makefile"
21117
21118cat >confcache <<\_ACEOF
21119# This file is a shell script that caches the results of configure
21120# tests run on this system so they can be shared between configure
21121# scripts and configure runs, see configure's option --config-cache.
21122# It is not useful on other systems.  If it contains results you don't
21123# want to keep, you may remove or edit it.
21124#
21125# config.status only pays attention to the cache file if you give it
21126# the --recheck option to rerun configure.
21127#
21128# `ac_cv_env_foo' variables (set or unset) will be overridden when
21129# loading this file, other *unset* `ac_cv_foo' will be assigned the
21130# following values.
21131
21132_ACEOF
21133
21134# The following way of writing the cache mishandles newlines in values,
21135# but we know of no workaround that is simple, portable, and efficient.
21136# So, we kill variables containing newlines.
21137# Ultrix sh set writes to stderr and can't be redirected directly,
21138# and sets the high bit in the cache file unless we assign to the vars.
21139(
21140  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21141    eval ac_val=\$$ac_var
21142    case $ac_val in #(
21143    *${as_nl}*)
21144      case $ac_var in #(
21145      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
21146$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21147      esac
21148      case $ac_var in #(
21149      _ | IFS | as_nl) ;; #(
21150      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21151      *) $as_unset $ac_var ;;
21152      esac ;;
21153    esac
21154  done
21155
21156  (set) 2>&1 |
21157    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21158    *${as_nl}ac_space=\ *)
21159      # `set' does not quote correctly, so add quotes (double-quote
21160      # substitution turns \\\\ into \\, and sed turns \\ into \).
21161      sed -n \
21162	"s/'/'\\\\''/g;
21163	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21164      ;; #(
21165    *)
21166      # `set' quotes correctly as required by POSIX, so do not add quotes.
21167      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21168      ;;
21169    esac |
21170    sort
21171) |
21172  sed '
21173     /^ac_cv_env_/b end
21174     t clear
21175     :clear
21176     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21177     t end
21178     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21179     :end' >>confcache
21180if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21181  if test -w "$cache_file"; then
21182    test "x$cache_file" != "x/dev/null" &&
21183      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21184$as_echo "$as_me: updating cache $cache_file" >&6;}
21185    cat confcache >$cache_file
21186  else
21187    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21188$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21189  fi
21190fi
21191rm -f confcache
21192
21193test "x$prefix" = xNONE && prefix=$ac_default_prefix
21194# Let make expand exec_prefix.
21195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21196
21197# Transform confdefs.h into DEFS.
21198# Protect against shell expansion while executing Makefile rules.
21199# Protect against Makefile macro expansion.
21200#
21201# If the first sed substitution is executed (which looks for macros that
21202# take arguments), then branch to the quote section.  Otherwise,
21203# look for a macro that doesn't take arguments.
21204ac_script='
21205:mline
21206/\\$/{
21207 N
21208 s,\\\n,,
21209 b mline
21210}
21211t clear
21212:clear
21213s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
21214t quote
21215s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
21216t quote
21217b any
21218:quote
21219s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21220s/\[/\\&/g
21221s/\]/\\&/g
21222s/\$/$$/g
21223H
21224:any
21225${
21226	g
21227	s/^\n//
21228	s/\n/ /g
21229	p
21230}
21231'
21232DEFS=`sed -n "$ac_script" confdefs.h`
21233
21234
21235ac_libobjs=
21236ac_ltlibobjs=
21237for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21238  # 1. Remove the extension, and $U if already installed.
21239  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21240  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21241  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21242  #    will be set to the directory where LIBOBJS objects are built.
21243  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21244  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21245done
21246LIBOBJS=$ac_libobjs
21247
21248LTLIBOBJS=$ac_ltlibobjs
21249
21250
21251if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21252  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21253Usually this means the macro was only invoked conditionally." >&5
21254$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
21255Usually this means the macro was only invoked conditionally." >&2;}
21256   { (exit 1); exit 1; }; }
21257fi
21258if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21259  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21260Usually this means the macro was only invoked conditionally." >&5
21261$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21262Usually this means the macro was only invoked conditionally." >&2;}
21263   { (exit 1); exit 1; }; }
21264fi
21265if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21266  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21267Usually this means the macro was only invoked conditionally." >&5
21268$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21269Usually this means the macro was only invoked conditionally." >&2;}
21270   { (exit 1); exit 1; }; }
21271fi
21272
21273: ${CONFIG_STATUS=./config.status}
21274ac_write_fail=0
21275ac_clean_files_save=$ac_clean_files
21276ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21277{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21278$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21279cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21280#! $SHELL
21281# Generated by $as_me.
21282# Run this file to recreate the current configuration.
21283# Compiler output produced by configure, useful for debugging
21284# configure, is in config.log if it exists.
21285
21286debug=false
21287ac_cs_recheck=false
21288ac_cs_silent=false
21289SHELL=\${CONFIG_SHELL-$SHELL}
21290_ACEOF
21291
21292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21293## --------------------- ##
21294## M4sh Initialization.  ##
21295## --------------------- ##
21296
21297# Be more Bourne compatible
21298DUALCASE=1; export DUALCASE # for MKS sh
21299if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21300  emulate sh
21301  NULLCMD=:
21302  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21303  # is contrary to our usage.  Disable this feature.
21304  alias -g '${1+"$@"}'='"$@"'
21305  setopt NO_GLOB_SUBST
21306else
21307  case `(set -o) 2>/dev/null` in
21308  *posix*) set -o posix ;;
21309esac
21310
21311fi
21312
21313
21314
21315
21316# PATH needs CR
21317# Avoid depending upon Character Ranges.
21318as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21319as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21320as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21321as_cr_digits='0123456789'
21322as_cr_alnum=$as_cr_Letters$as_cr_digits
21323
21324as_nl='
21325'
21326export as_nl
21327# Printing a long string crashes Solaris 7 /usr/bin/printf.
21328as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21329as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21330as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21331if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21332  as_echo='printf %s\n'
21333  as_echo_n='printf %s'
21334else
21335  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21336    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21337    as_echo_n='/usr/ucb/echo -n'
21338  else
21339    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21340    as_echo_n_body='eval
21341      arg=$1;
21342      case $arg in
21343      *"$as_nl"*)
21344	expr "X$arg" : "X\\(.*\\)$as_nl";
21345	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21346      esac;
21347      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21348    '
21349    export as_echo_n_body
21350    as_echo_n='sh -c $as_echo_n_body as_echo'
21351  fi
21352  export as_echo_body
21353  as_echo='sh -c $as_echo_body as_echo'
21354fi
21355
21356# The user is always right.
21357if test "${PATH_SEPARATOR+set}" != set; then
21358  PATH_SEPARATOR=:
21359  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21360    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21361      PATH_SEPARATOR=';'
21362  }
21363fi
21364
21365# Support unset when possible.
21366if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21367  as_unset=unset
21368else
21369  as_unset=false
21370fi
21371
21372
21373# IFS
21374# We need space, tab and new line, in precisely that order.  Quoting is
21375# there to prevent editors from complaining about space-tab.
21376# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21377# splitting by setting IFS to empty value.)
21378IFS=" ""	$as_nl"
21379
21380# Find who we are.  Look in the path if we contain no directory separator.
21381case $0 in
21382  *[\\/]* ) as_myself=$0 ;;
21383  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21384for as_dir in $PATH
21385do
21386  IFS=$as_save_IFS
21387  test -z "$as_dir" && as_dir=.
21388  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21389done
21390IFS=$as_save_IFS
21391
21392     ;;
21393esac
21394# We did not find ourselves, most probably we were run as `sh COMMAND'
21395# in which case we are not to be found in the path.
21396if test "x$as_myself" = x; then
21397  as_myself=$0
21398fi
21399if test ! -f "$as_myself"; then
21400  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21401  { (exit 1); exit 1; }
21402fi
21403
21404# Work around bugs in pre-3.0 UWIN ksh.
21405for as_var in ENV MAIL MAILPATH
21406do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21407done
21408PS1='$ '
21409PS2='> '
21410PS4='+ '
21411
21412# NLS nuisances.
21413LC_ALL=C
21414export LC_ALL
21415LANGUAGE=C
21416export LANGUAGE
21417
21418# Required to use basename.
21419if expr a : '\(a\)' >/dev/null 2>&1 &&
21420   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21421  as_expr=expr
21422else
21423  as_expr=false
21424fi
21425
21426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21427  as_basename=basename
21428else
21429  as_basename=false
21430fi
21431
21432
21433# Name of the executable.
21434as_me=`$as_basename -- "$0" ||
21435$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21436	 X"$0" : 'X\(//\)$' \| \
21437	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21438$as_echo X/"$0" |
21439    sed '/^.*\/\([^/][^/]*\)\/*$/{
21440	    s//\1/
21441	    q
21442	  }
21443	  /^X\/\(\/\/\)$/{
21444	    s//\1/
21445	    q
21446	  }
21447	  /^X\/\(\/\).*/{
21448	    s//\1/
21449	    q
21450	  }
21451	  s/.*/./; q'`
21452
21453# CDPATH.
21454$as_unset CDPATH
21455
21456
21457
21458  as_lineno_1=$LINENO
21459  as_lineno_2=$LINENO
21460  test "x$as_lineno_1" != "x$as_lineno_2" &&
21461  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21462
21463  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21464  # uniformly replaced by the line number.  The first 'sed' inserts a
21465  # line-number line after each line using $LINENO; the second 'sed'
21466  # does the real work.  The second script uses 'N' to pair each
21467  # line-number line with the line containing $LINENO, and appends
21468  # trailing '-' during substitution so that $LINENO is not a special
21469  # case at line end.
21470  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21471  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21472  # E. McMahon (1931-1989) for sed's syntax.  :-)
21473  sed -n '
21474    p
21475    /[$]LINENO/=
21476  ' <$as_myself |
21477    sed '
21478      s/[$]LINENO.*/&-/
21479      t lineno
21480      b
21481      :lineno
21482      N
21483      :loop
21484      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21485      t loop
21486      s/-\n.*//
21487    ' >$as_me.lineno &&
21488  chmod +x "$as_me.lineno" ||
21489    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21490   { (exit 1); exit 1; }; }
21491
21492  # Don't try to exec as it changes $[0], causing all sort of problems
21493  # (the dirname of $[0] is not the place where we might find the
21494  # original and so on.  Autoconf is especially sensitive to this).
21495  . "./$as_me.lineno"
21496  # Exit status is that of the last command.
21497  exit
21498}
21499
21500
21501if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21502  as_dirname=dirname
21503else
21504  as_dirname=false
21505fi
21506
21507ECHO_C= ECHO_N= ECHO_T=
21508case `echo -n x` in
21509-n*)
21510  case `echo 'x\c'` in
21511  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21512  *)   ECHO_C='\c';;
21513  esac;;
21514*)
21515  ECHO_N='-n';;
21516esac
21517if expr a : '\(a\)' >/dev/null 2>&1 &&
21518   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21519  as_expr=expr
21520else
21521  as_expr=false
21522fi
21523
21524rm -f conf$$ conf$$.exe conf$$.file
21525if test -d conf$$.dir; then
21526  rm -f conf$$.dir/conf$$.file
21527else
21528  rm -f conf$$.dir
21529  mkdir conf$$.dir 2>/dev/null
21530fi
21531if (echo >conf$$.file) 2>/dev/null; then
21532  if ln -s conf$$.file conf$$ 2>/dev/null; then
21533    as_ln_s='ln -s'
21534    # ... but there are two gotchas:
21535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21537    # In both cases, we have to default to `cp -p'.
21538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21539      as_ln_s='cp -p'
21540  elif ln conf$$.file conf$$ 2>/dev/null; then
21541    as_ln_s=ln
21542  else
21543    as_ln_s='cp -p'
21544  fi
21545else
21546  as_ln_s='cp -p'
21547fi
21548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21549rmdir conf$$.dir 2>/dev/null
21550
21551if mkdir -p . 2>/dev/null; then
21552  as_mkdir_p=:
21553else
21554  test -d ./-p && rmdir ./-p
21555  as_mkdir_p=false
21556fi
21557
21558if test -x / >/dev/null 2>&1; then
21559  as_test_x='test -x'
21560else
21561  if ls -dL / >/dev/null 2>&1; then
21562    as_ls_L_option=L
21563  else
21564    as_ls_L_option=
21565  fi
21566  as_test_x='
21567    eval sh -c '\''
21568      if test -d "$1"; then
21569	test -d "$1/.";
21570      else
21571	case $1 in
21572	-*)set "./$1";;
21573	esac;
21574	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21575	???[sx]*):;;*)false;;esac;fi
21576    '\'' sh
21577  '
21578fi
21579as_executable_p=$as_test_x
21580
21581# Sed expression to map a string onto a valid CPP name.
21582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21583
21584# Sed expression to map a string onto a valid variable name.
21585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21586
21587
21588exec 6>&1
21589
21590# Save the log message, to keep $[0] and so on meaningful, and to
21591# report actual input values of CONFIG_FILES etc. instead of their
21592# values after options handling.
21593ac_log="
21594This file was extended by libg19 $as_me 1.1.1, which was
21595generated by GNU Autoconf 2.63.  Invocation command line was
21596
21597  CONFIG_FILES    = $CONFIG_FILES
21598  CONFIG_HEADERS  = $CONFIG_HEADERS
21599  CONFIG_LINKS    = $CONFIG_LINKS
21600  CONFIG_COMMANDS = $CONFIG_COMMANDS
21601  $ $0 $@
21602
21603on `(hostname || uname -n) 2>/dev/null | sed 1q`
21604"
21605
21606_ACEOF
21607
21608case $ac_config_files in *"
21609"*) set x $ac_config_files; shift; ac_config_files=$*;;
21610esac
21611
21612
21613
21614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21615# Files that config.status was made for.
21616config_files="$ac_config_files"
21617config_commands="$ac_config_commands"
21618
21619_ACEOF
21620
21621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21622ac_cs_usage="\
21623\`$as_me' instantiates files from templates according to the
21624current configuration.
21625
21626Usage: $0 [OPTION]... [FILE]...
21627
21628  -h, --help       print this help, then exit
21629  -V, --version    print version number and configuration settings, then exit
21630  -q, --quiet, --silent
21631                   do not print progress messages
21632  -d, --debug      don't remove temporary files
21633      --recheck    update $as_me by reconfiguring in the same conditions
21634      --file=FILE[:TEMPLATE]
21635                   instantiate the configuration file FILE
21636
21637Configuration files:
21638$config_files
21639
21640Configuration commands:
21641$config_commands
21642
21643Report bugs to <bug-autoconf@gnu.org>."
21644
21645_ACEOF
21646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21647ac_cs_version="\\
21648libg19 config.status 1.1.1
21649configured by $0, generated by GNU Autoconf 2.63,
21650  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21651
21652Copyright (C) 2008 Free Software Foundation, Inc.
21653This config.status script is free software; the Free Software Foundation
21654gives unlimited permission to copy, distribute and modify it."
21655
21656ac_pwd='$ac_pwd'
21657srcdir='$srcdir'
21658INSTALL='$INSTALL'
21659MKDIR_P='$MKDIR_P'
21660AWK='$AWK'
21661test -n "\$AWK" || AWK=awk
21662_ACEOF
21663
21664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21665# The default lists apply if the user does not specify any file.
21666ac_need_defaults=:
21667while test $# != 0
21668do
21669  case $1 in
21670  --*=*)
21671    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21672    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21673    ac_shift=:
21674    ;;
21675  *)
21676    ac_option=$1
21677    ac_optarg=$2
21678    ac_shift=shift
21679    ;;
21680  esac
21681
21682  case $ac_option in
21683  # Handling of the options.
21684  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21685    ac_cs_recheck=: ;;
21686  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21687    $as_echo "$ac_cs_version"; exit ;;
21688  --debug | --debu | --deb | --de | --d | -d )
21689    debug=: ;;
21690  --file | --fil | --fi | --f )
21691    $ac_shift
21692    case $ac_optarg in
21693    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21694    esac
21695    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21696    ac_need_defaults=false;;
21697  --he | --h |  --help | --hel | -h )
21698    $as_echo "$ac_cs_usage"; exit ;;
21699  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21700  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21701    ac_cs_silent=: ;;
21702
21703  # This is an error.
21704  -*) { $as_echo "$as_me: error: unrecognized option: $1
21705Try \`$0 --help' for more information." >&2
21706   { (exit 1); exit 1; }; } ;;
21707
21708  *) ac_config_targets="$ac_config_targets $1"
21709     ac_need_defaults=false ;;
21710
21711  esac
21712  shift
21713done
21714
21715ac_configure_extra_args=
21716
21717if $ac_cs_silent; then
21718  exec 6>/dev/null
21719  ac_configure_extra_args="$ac_configure_extra_args --silent"
21720fi
21721
21722_ACEOF
21723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21724if \$ac_cs_recheck; then
21725  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21726  shift
21727  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21728  CONFIG_SHELL='$SHELL'
21729  export CONFIG_SHELL
21730  exec "\$@"
21731fi
21732
21733_ACEOF
21734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21735exec 5>>config.log
21736{
21737  echo
21738  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21739## Running $as_me. ##
21740_ASBOX
21741  $as_echo "$ac_log"
21742} >&5
21743
21744_ACEOF
21745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21746#
21747# INIT-COMMANDS
21748#
21749AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21750
21751_ACEOF
21752
21753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21754
21755# Handling of arguments.
21756for ac_config_target in $ac_config_targets
21757do
21758  case $ac_config_target in
21759    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21760    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21761
21762  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21763$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21764   { (exit 1); exit 1; }; };;
21765  esac
21766done
21767
21768
21769# If the user did not use the arguments to specify the items to instantiate,
21770# then the envvar interface is used.  Set only those that are not.
21771# We use the long form for the default assignment because of an extremely
21772# bizarre bug on SunOS 4.1.3.
21773if $ac_need_defaults; then
21774  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21775  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21776fi
21777
21778# Have a temporary directory for convenience.  Make it in the build tree
21779# simply because there is no reason against having it here, and in addition,
21780# creating and moving files from /tmp can sometimes cause problems.
21781# Hook for its removal unless debugging.
21782# Note that there is a small window in which the directory will not be cleaned:
21783# after its creation but before its name has been assigned to `$tmp'.
21784$debug ||
21785{
21786  tmp=
21787  trap 'exit_status=$?
21788  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21789' 0
21790  trap '{ (exit 1); exit 1; }' 1 2 13 15
21791}
21792# Create a (secure) tmp directory for tmp files.
21793
21794{
21795  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21796  test -n "$tmp" && test -d "$tmp"
21797}  ||
21798{
21799  tmp=./conf$$-$RANDOM
21800  (umask 077 && mkdir "$tmp")
21801} ||
21802{
21803   $as_echo "$as_me: cannot create a temporary directory in ." >&2
21804   { (exit 1); exit 1; }
21805}
21806
21807# Set up the scripts for CONFIG_FILES section.
21808# No need to generate them if there are no CONFIG_FILES.
21809# This happens for instance with `./config.status config.h'.
21810if test -n "$CONFIG_FILES"; then
21811
21812
21813ac_cr='
21814'
21815ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21816if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21817  ac_cs_awk_cr='\\r'
21818else
21819  ac_cs_awk_cr=$ac_cr
21820fi
21821
21822echo 'BEGIN {' >"$tmp/subs1.awk" &&
21823_ACEOF
21824
21825
21826{
21827  echo "cat >conf$$subs.awk <<_ACEOF" &&
21828  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21829  echo "_ACEOF"
21830} >conf$$subs.sh ||
21831  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21832$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21833   { (exit 1); exit 1; }; }
21834ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21835ac_delim='%!_!# '
21836for ac_last_try in false false false false false :; do
21837  . ./conf$$subs.sh ||
21838    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21839$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21840   { (exit 1); exit 1; }; }
21841
21842  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21843  if test $ac_delim_n = $ac_delim_num; then
21844    break
21845  elif $ac_last_try; then
21846    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21847$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21848   { (exit 1); exit 1; }; }
21849  else
21850    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21851  fi
21852done
21853rm -f conf$$subs.sh
21854
21855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21856cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21857_ACEOF
21858sed -n '
21859h
21860s/^/S["/; s/!.*/"]=/
21861p
21862g
21863s/^[^!]*!//
21864:repl
21865t repl
21866s/'"$ac_delim"'$//
21867t delim
21868:nl
21869h
21870s/\(.\{148\}\).*/\1/
21871t more1
21872s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21873p
21874n
21875b repl
21876:more1
21877s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21878p
21879g
21880s/.\{148\}//
21881t nl
21882:delim
21883h
21884s/\(.\{148\}\).*/\1/
21885t more2
21886s/["\\]/\\&/g; s/^/"/; s/$/"/
21887p
21888b
21889:more2
21890s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21891p
21892g
21893s/.\{148\}//
21894t delim
21895' <conf$$subs.awk | sed '
21896/^[^""]/{
21897  N
21898  s/\n//
21899}
21900' >>$CONFIG_STATUS || ac_write_fail=1
21901rm -f conf$$subs.awk
21902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21903_ACAWK
21904cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21905  for (key in S) S_is_set[key] = 1
21906  FS = ""
21907
21908}
21909{
21910  line = $ 0
21911  nfields = split(line, field, "@")
21912  substed = 0
21913  len = length(field[1])
21914  for (i = 2; i < nfields; i++) {
21915    key = field[i]
21916    keylen = length(key)
21917    if (S_is_set[key]) {
21918      value = S[key]
21919      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21920      len += length(value) + length(field[++i])
21921      substed = 1
21922    } else
21923      len += 1 + keylen
21924  }
21925
21926  print line
21927}
21928
21929_ACAWK
21930_ACEOF
21931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21932if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21933  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21934else
21935  cat
21936fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21937  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21938$as_echo "$as_me: error: could not setup config files machinery" >&2;}
21939   { (exit 1); exit 1; }; }
21940_ACEOF
21941
21942# VPATH may cause trouble with some makes, so we remove $(srcdir),
21943# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21944# trailing colons and then remove the whole line if VPATH becomes empty
21945# (actually we leave an empty line to preserve line numbers).
21946if test "x$srcdir" = x.; then
21947  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21948s/:*\$(srcdir):*/:/
21949s/:*\${srcdir}:*/:/
21950s/:*@srcdir@:*/:/
21951s/^\([^=]*=[	 ]*\):*/\1/
21952s/:*$//
21953s/^[^=]*=[	 ]*$//
21954}'
21955fi
21956
21957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21958fi # test -n "$CONFIG_FILES"
21959
21960
21961eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
21962shift
21963for ac_tag
21964do
21965  case $ac_tag in
21966  :[FHLC]) ac_mode=$ac_tag; continue;;
21967  esac
21968  case $ac_mode$ac_tag in
21969  :[FHL]*:*);;
21970  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21971$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21972   { (exit 1); exit 1; }; };;
21973  :[FH]-) ac_tag=-:-;;
21974  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21975  esac
21976  ac_save_IFS=$IFS
21977  IFS=:
21978  set x $ac_tag
21979  IFS=$ac_save_IFS
21980  shift
21981  ac_file=$1
21982  shift
21983
21984  case $ac_mode in
21985  :L) ac_source=$1;;
21986  :[FH])
21987    ac_file_inputs=
21988    for ac_f
21989    do
21990      case $ac_f in
21991      -) ac_f="$tmp/stdin";;
21992      *) # Look for the file first in the build tree, then in the source tree
21993	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21994	 # because $ac_f cannot contain `:'.
21995	 test -f "$ac_f" ||
21996	   case $ac_f in
21997	   [\\/$]*) false;;
21998	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21999	   esac ||
22000	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22001$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22002   { (exit 1); exit 1; }; };;
22003      esac
22004      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22005      ac_file_inputs="$ac_file_inputs '$ac_f'"
22006    done
22007
22008    # Let's still pretend it is `configure' which instantiates (i.e., don't
22009    # use $as_me), people would be surprised to read:
22010    #    /* config.h.  Generated by config.status.  */
22011    configure_input='Generated from '`
22012	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22013	`' by configure.'
22014    if test x"$ac_file" != x-; then
22015      configure_input="$ac_file.  $configure_input"
22016      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
22017$as_echo "$as_me: creating $ac_file" >&6;}
22018    fi
22019    # Neutralize special characters interpreted by sed in replacement strings.
22020    case $configure_input in #(
22021    *\&* | *\|* | *\\* )
22022       ac_sed_conf_input=`$as_echo "$configure_input" |
22023       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22024    *) ac_sed_conf_input=$configure_input;;
22025    esac
22026
22027    case $ac_tag in
22028    *:-:* | *:-) cat >"$tmp/stdin" \
22029      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22030$as_echo "$as_me: error: could not create $ac_file" >&2;}
22031   { (exit 1); exit 1; }; } ;;
22032    esac
22033    ;;
22034  esac
22035
22036  ac_dir=`$as_dirname -- "$ac_file" ||
22037$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22038	 X"$ac_file" : 'X\(//\)[^/]' \| \
22039	 X"$ac_file" : 'X\(//\)$' \| \
22040	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22041$as_echo X"$ac_file" |
22042    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22043	    s//\1/
22044	    q
22045	  }
22046	  /^X\(\/\/\)[^/].*/{
22047	    s//\1/
22048	    q
22049	  }
22050	  /^X\(\/\/\)$/{
22051	    s//\1/
22052	    q
22053	  }
22054	  /^X\(\/\).*/{
22055	    s//\1/
22056	    q
22057	  }
22058	  s/.*/./; q'`
22059  { as_dir="$ac_dir"
22060  case $as_dir in #(
22061  -*) as_dir=./$as_dir;;
22062  esac
22063  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22064    as_dirs=
22065    while :; do
22066      case $as_dir in #(
22067      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22068      *) as_qdir=$as_dir;;
22069      esac
22070      as_dirs="'$as_qdir' $as_dirs"
22071      as_dir=`$as_dirname -- "$as_dir" ||
22072$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22073	 X"$as_dir" : 'X\(//\)[^/]' \| \
22074	 X"$as_dir" : 'X\(//\)$' \| \
22075	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22076$as_echo X"$as_dir" |
22077    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22078	    s//\1/
22079	    q
22080	  }
22081	  /^X\(\/\/\)[^/].*/{
22082	    s//\1/
22083	    q
22084	  }
22085	  /^X\(\/\/\)$/{
22086	    s//\1/
22087	    q
22088	  }
22089	  /^X\(\/\).*/{
22090	    s//\1/
22091	    q
22092	  }
22093	  s/.*/./; q'`
22094      test -d "$as_dir" && break
22095    done
22096    test -z "$as_dirs" || eval "mkdir $as_dirs"
22097  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22098$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22099   { (exit 1); exit 1; }; }; }
22100  ac_builddir=.
22101
22102case "$ac_dir" in
22103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22104*)
22105  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22106  # A ".." for each directory in $ac_dir_suffix.
22107  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22108  case $ac_top_builddir_sub in
22109  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22110  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22111  esac ;;
22112esac
22113ac_abs_top_builddir=$ac_pwd
22114ac_abs_builddir=$ac_pwd$ac_dir_suffix
22115# for backward compatibility:
22116ac_top_builddir=$ac_top_build_prefix
22117
22118case $srcdir in
22119  .)  # We are building in place.
22120    ac_srcdir=.
22121    ac_top_srcdir=$ac_top_builddir_sub
22122    ac_abs_top_srcdir=$ac_pwd ;;
22123  [\\/]* | ?:[\\/]* )  # Absolute name.
22124    ac_srcdir=$srcdir$ac_dir_suffix;
22125    ac_top_srcdir=$srcdir
22126    ac_abs_top_srcdir=$srcdir ;;
22127  *) # Relative name.
22128    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22129    ac_top_srcdir=$ac_top_build_prefix$srcdir
22130    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22131esac
22132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22133
22134
22135  case $ac_mode in
22136  :F)
22137  #
22138  # CONFIG_FILE
22139  #
22140
22141  case $INSTALL in
22142  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22143  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22144  esac
22145  ac_MKDIR_P=$MKDIR_P
22146  case $MKDIR_P in
22147  [\\/$]* | ?:[\\/]* ) ;;
22148  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22149  esac
22150_ACEOF
22151
22152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22153# If the template does not know about datarootdir, expand it.
22154# FIXME: This hack should be removed a few years after 2.60.
22155ac_datarootdir_hack=; ac_datarootdir_seen=
22156
22157ac_sed_dataroot='
22158/datarootdir/ {
22159  p
22160  q
22161}
22162/@datadir@/p
22163/@docdir@/p
22164/@infodir@/p
22165/@localedir@/p
22166/@mandir@/p
22167'
22168case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22169*datarootdir*) ac_datarootdir_seen=yes;;
22170*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22171  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22172$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22173_ACEOF
22174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22175  ac_datarootdir_hack='
22176  s&@datadir@&$datadir&g
22177  s&@docdir@&$docdir&g
22178  s&@infodir@&$infodir&g
22179  s&@localedir@&$localedir&g
22180  s&@mandir@&$mandir&g
22181    s&\\\${datarootdir}&$datarootdir&g' ;;
22182esac
22183_ACEOF
22184
22185# Neutralize VPATH when `$srcdir' = `.'.
22186# Shell code in configure.ac might set extrasub.
22187# FIXME: do we really want to maintain this feature?
22188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22189ac_sed_extra="$ac_vpsub
22190$extrasub
22191_ACEOF
22192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22193:t
22194/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22195s|@configure_input@|$ac_sed_conf_input|;t t
22196s&@top_builddir@&$ac_top_builddir_sub&;t t
22197s&@top_build_prefix@&$ac_top_build_prefix&;t t
22198s&@srcdir@&$ac_srcdir&;t t
22199s&@abs_srcdir@&$ac_abs_srcdir&;t t
22200s&@top_srcdir@&$ac_top_srcdir&;t t
22201s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22202s&@builddir@&$ac_builddir&;t t
22203s&@abs_builddir@&$ac_abs_builddir&;t t
22204s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22205s&@INSTALL@&$ac_INSTALL&;t t
22206s&@MKDIR_P@&$ac_MKDIR_P&;t t
22207$ac_datarootdir_hack
22208"
22209eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22210  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22211$as_echo "$as_me: error: could not create $ac_file" >&2;}
22212   { (exit 1); exit 1; }; }
22213
22214test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22215  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22216  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22217  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22218which seems to be undefined.  Please make sure it is defined." >&5
22219$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22220which seems to be undefined.  Please make sure it is defined." >&2;}
22221
22222  rm -f "$tmp/stdin"
22223  case $ac_file in
22224  -) cat "$tmp/out" && rm -f "$tmp/out";;
22225  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22226  esac \
22227  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
22228$as_echo "$as_me: error: could not create $ac_file" >&2;}
22229   { (exit 1); exit 1; }; }
22230 ;;
22231
22232
22233  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22234$as_echo "$as_me: executing $ac_file commands" >&6;}
22235 ;;
22236  esac
22237
22238
22239  case $ac_file$ac_mode in
22240    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22241  # Strip MF so we end up with the name of the file.
22242  mf=`echo "$mf" | sed -e 's/:.*$//'`
22243  # Check whether this is an Automake generated Makefile or not.
22244  # We used to match only the files named `Makefile.in', but
22245  # some people rename them; so instead we look at the file content.
22246  # Grep'ing the first line is not enough: some people post-process
22247  # each Makefile.in and add a new line on top of each file to say so.
22248  # Grep'ing the whole file is not good either: AIX grep has a line
22249  # limit of 2048, but all sed's we know have understand at least 4000.
22250  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22251    dirpart=`$as_dirname -- "$mf" ||
22252$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22253	 X"$mf" : 'X\(//\)[^/]' \| \
22254	 X"$mf" : 'X\(//\)$' \| \
22255	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22256$as_echo X"$mf" |
22257    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22258	    s//\1/
22259	    q
22260	  }
22261	  /^X\(\/\/\)[^/].*/{
22262	    s//\1/
22263	    q
22264	  }
22265	  /^X\(\/\/\)$/{
22266	    s//\1/
22267	    q
22268	  }
22269	  /^X\(\/\).*/{
22270	    s//\1/
22271	    q
22272	  }
22273	  s/.*/./; q'`
22274  else
22275    continue
22276  fi
22277  # Extract the definition of DEPDIR, am__include, and am__quote
22278  # from the Makefile without running `make'.
22279  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22280  test -z "$DEPDIR" && continue
22281  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22282  test -z "am__include" && continue
22283  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22284  # When using ansi2knr, U may be empty or an underscore; expand it
22285  U=`sed -n 's/^U = //p' < "$mf"`
22286  # Find all dependency output files, they are included files with
22287  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22288  # simplest approach to changing $(DEPDIR) to its actual value in the
22289  # expansion.
22290  for file in `sed -n "
22291    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22292       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22293    # Make sure the directory exists.
22294    test -f "$dirpart/$file" && continue
22295    fdir=`$as_dirname -- "$file" ||
22296$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22297	 X"$file" : 'X\(//\)[^/]' \| \
22298	 X"$file" : 'X\(//\)$' \| \
22299	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22300$as_echo X"$file" |
22301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22302	    s//\1/
22303	    q
22304	  }
22305	  /^X\(\/\/\)[^/].*/{
22306	    s//\1/
22307	    q
22308	  }
22309	  /^X\(\/\/\)$/{
22310	    s//\1/
22311	    q
22312	  }
22313	  /^X\(\/\).*/{
22314	    s//\1/
22315	    q
22316	  }
22317	  s/.*/./; q'`
22318    { as_dir=$dirpart/$fdir
22319  case $as_dir in #(
22320  -*) as_dir=./$as_dir;;
22321  esac
22322  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22323    as_dirs=
22324    while :; do
22325      case $as_dir in #(
22326      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22327      *) as_qdir=$as_dir;;
22328      esac
22329      as_dirs="'$as_qdir' $as_dirs"
22330      as_dir=`$as_dirname -- "$as_dir" ||
22331$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22332	 X"$as_dir" : 'X\(//\)[^/]' \| \
22333	 X"$as_dir" : 'X\(//\)$' \| \
22334	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22335$as_echo X"$as_dir" |
22336    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22337	    s//\1/
22338	    q
22339	  }
22340	  /^X\(\/\/\)[^/].*/{
22341	    s//\1/
22342	    q
22343	  }
22344	  /^X\(\/\/\)$/{
22345	    s//\1/
22346	    q
22347	  }
22348	  /^X\(\/\).*/{
22349	    s//\1/
22350	    q
22351	  }
22352	  s/.*/./; q'`
22353      test -d "$as_dir" && break
22354    done
22355    test -z "$as_dirs" || eval "mkdir $as_dirs"
22356  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22357$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22358   { (exit 1); exit 1; }; }; }
22359    # echo "creating $dirpart/$file"
22360    echo '# dummy' > "$dirpart/$file"
22361  done
22362done
22363 ;;
22364
22365  esac
22366done # for ac_tag
22367
22368
22369{ (exit 0); exit 0; }
22370_ACEOF
22371chmod +x $CONFIG_STATUS
22372ac_clean_files=$ac_clean_files_save
22373
22374test $ac_write_fail = 0 ||
22375  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22376$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22377   { (exit 1); exit 1; }; }
22378
22379
22380# configure is writing to config.log, and then calls config.status.
22381# config.status does its own redirection, appending to config.log.
22382# Unfortunately, on DOS this fails, as config.log is still kept open
22383# by configure, so config.status won't be able to write to it; its
22384# output is simply discarded.  So we exec the FD to /dev/null,
22385# effectively closing config.log, so it can be properly (re)opened and
22386# appended to by config.status.  When coming back to configure, we
22387# need to make the FD available again.
22388if test "$no_create" != yes; then
22389  ac_cs_success=:
22390  ac_config_status_args=
22391  test "$silent" = yes &&
22392    ac_config_status_args="$ac_config_status_args --quiet"
22393  exec 5>/dev/null
22394  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22395  exec 5>>config.log
22396  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22397  # would make configure fail if this is the last instruction.
22398  $ac_cs_success || { (exit 1); exit 1; }
22399fi
22400if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22401  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22402$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22403fi
22404
22405