1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for Animorph Library 0.3.
4#
5# Report bugs to <linux@brachttal.net>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization.  ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18  emulate sh
19  NULLCMD=:
20  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in
26  *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42# The user is always right.
43if test "${PATH_SEPARATOR+set}" != set; then
44  echo "#! /bin/sh" >conf$$.sh
45  echo  "exit 0"   >>conf$$.sh
46  chmod +x conf$$.sh
47  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48    PATH_SEPARATOR=';'
49  else
50    PATH_SEPARATOR=:
51  fi
52  rm -f conf$$.sh
53fi
54
55# Support unset when possible.
56if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57  as_unset=unset
58else
59  as_unset=false
60fi
61
62
63# IFS
64# We need space, tab and new line, in precisely that order.  Quoting is
65# there to prevent editors from complaining about space-tab.
66# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67# splitting by setting IFS to empty value.)
68as_nl='
69'
70IFS=" ""	$as_nl"
71
72# Find who we are.  Look in the path if we contain no directory separator.
73case $0 in
74  *[\\/]* ) as_myself=$0 ;;
75  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76for as_dir in $PATH
77do
78  IFS=$as_save_IFS
79  test -z "$as_dir" && as_dir=.
80  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81done
82IFS=$as_save_IFS
83
84     ;;
85esac
86# We did not find ourselves, most probably we were run as `sh COMMAND'
87# in which case we are not to be found in the path.
88if test "x$as_myself" = x; then
89  as_myself=$0
90fi
91if test ! -f "$as_myself"; then
92  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93  { (exit 1); exit 1; }
94fi
95
96# Work around bugs in pre-3.0 UWIN ksh.
97for as_var in ENV MAIL MAILPATH
98do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99done
100PS1='$ '
101PS2='> '
102PS4='+ '
103
104# NLS nuisances.
105for as_var in \
106  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108  LC_TELEPHONE LC_TIME
109do
110  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111    eval $as_var=C; export $as_var
112  else
113    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114  fi
115done
116
117# Required to use basename.
118if expr a : '\(a\)' >/dev/null 2>&1 &&
119   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120  as_expr=expr
121else
122  as_expr=false
123fi
124
125if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126  as_basename=basename
127else
128  as_basename=false
129fi
130
131
132# Name of the executable.
133as_me=`$as_basename -- "$0" ||
134$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135	 X"$0" : 'X\(//\)$' \| \
136	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137echo X/"$0" |
138    sed '/^.*\/\([^/][^/]*\)\/*$/{
139	    s//\1/
140	    q
141	  }
142	  /^X\/\(\/\/\)$/{
143	    s//\1/
144	    q
145	  }
146	  /^X\/\(\/\).*/{
147	    s//\1/
148	    q
149	  }
150	  s/.*/./; q'`
151
152# CDPATH.
153$as_unset CDPATH
154
155
156if test "x$CONFIG_SHELL" = x; then
157  if (eval ":") 2>/dev/null; then
158  as_have_required=yes
159else
160  as_have_required=no
161fi
162
163  if test $as_have_required = yes && 	 (eval ":
164(as_func_return () {
165  (exit \$1)
166}
167as_func_success () {
168  as_func_return 0
169}
170as_func_failure () {
171  as_func_return 1
172}
173as_func_ret_success () {
174  return 0
175}
176as_func_ret_failure () {
177  return 1
178}
179
180exitcode=0
181if as_func_success; then
182  :
183else
184  exitcode=1
185  echo as_func_success failed.
186fi
187
188if as_func_failure; then
189  exitcode=1
190  echo as_func_failure succeeded.
191fi
192
193if as_func_ret_success; then
194  :
195else
196  exitcode=1
197  echo as_func_ret_success failed.
198fi
199
200if as_func_ret_failure; then
201  exitcode=1
202  echo as_func_ret_failure succeeded.
203fi
204
205if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206  :
207else
208  exitcode=1
209  echo positional parameters were not saved.
210fi
211
212test \$exitcode = 0) || { (exit 1); exit 1; }
213
214(
215  as_lineno_1=\$LINENO
216  as_lineno_2=\$LINENO
217  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219") 2> /dev/null; then
220  :
221else
222  as_candidate_shells=
223    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225do
226  IFS=$as_save_IFS
227  test -z "$as_dir" && as_dir=.
228  case $as_dir in
229	 /*)
230	   for as_base in sh bash ksh sh5; do
231	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232	   done;;
233       esac
234done
235IFS=$as_save_IFS
236
237
238      for as_shell in $as_candidate_shells $SHELL; do
239	 # Try only shells that exist, to save several forks.
240	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241		{ ("$as_shell") 2> /dev/null <<\_ASEOF
242if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243  emulate sh
244  NULLCMD=:
245  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246  # is contrary to our usage.  Disable this feature.
247  alias -g '${1+"$@"}'='"$@"'
248  setopt NO_GLOB_SUBST
249else
250  case `(set -o) 2>/dev/null` in
251  *posix*) set -o posix ;;
252esac
253
254fi
255
256
257:
258_ASEOF
259}; then
260  CONFIG_SHELL=$as_shell
261	       as_have_required=yes
262	       if { "$as_shell" 2> /dev/null <<\_ASEOF
263if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264  emulate sh
265  NULLCMD=:
266  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267  # is contrary to our usage.  Disable this feature.
268  alias -g '${1+"$@"}'='"$@"'
269  setopt NO_GLOB_SUBST
270else
271  case `(set -o) 2>/dev/null` in
272  *posix*) set -o posix ;;
273esac
274
275fi
276
277
278:
279(as_func_return () {
280  (exit $1)
281}
282as_func_success () {
283  as_func_return 0
284}
285as_func_failure () {
286  as_func_return 1
287}
288as_func_ret_success () {
289  return 0
290}
291as_func_ret_failure () {
292  return 1
293}
294
295exitcode=0
296if as_func_success; then
297  :
298else
299  exitcode=1
300  echo as_func_success failed.
301fi
302
303if as_func_failure; then
304  exitcode=1
305  echo as_func_failure succeeded.
306fi
307
308if as_func_ret_success; then
309  :
310else
311  exitcode=1
312  echo as_func_ret_success failed.
313fi
314
315if as_func_ret_failure; then
316  exitcode=1
317  echo as_func_ret_failure succeeded.
318fi
319
320if ( set x; as_func_ret_success y && test x = "$1" ); then
321  :
322else
323  exitcode=1
324  echo positional parameters were not saved.
325fi
326
327test $exitcode = 0) || { (exit 1); exit 1; }
328
329(
330  as_lineno_1=$LINENO
331  as_lineno_2=$LINENO
332  test "x$as_lineno_1" != "x$as_lineno_2" &&
333  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
335_ASEOF
336}; then
337  break
338fi
339
340fi
341
342      done
343
344      if test "x$CONFIG_SHELL" != x; then
345  for as_var in BASH_ENV ENV
346        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347        done
348        export CONFIG_SHELL
349        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350fi
351
352
353    if test $as_have_required = no; then
354  echo This script requires a shell more modern than all the
355      echo shells that I found on your system.  Please install a
356      echo modern shell, or manually run the script under such a
357      echo shell if you do have one.
358      { (exit 1); exit 1; }
359fi
360
361
362fi
363
364fi
365
366
367
368(eval "as_func_return () {
369  (exit \$1)
370}
371as_func_success () {
372  as_func_return 0
373}
374as_func_failure () {
375  as_func_return 1
376}
377as_func_ret_success () {
378  return 0
379}
380as_func_ret_failure () {
381  return 1
382}
383
384exitcode=0
385if as_func_success; then
386  :
387else
388  exitcode=1
389  echo as_func_success failed.
390fi
391
392if as_func_failure; then
393  exitcode=1
394  echo as_func_failure succeeded.
395fi
396
397if as_func_ret_success; then
398  :
399else
400  exitcode=1
401  echo as_func_ret_success failed.
402fi
403
404if as_func_ret_failure; then
405  exitcode=1
406  echo as_func_ret_failure succeeded.
407fi
408
409if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410  :
411else
412  exitcode=1
413  echo positional parameters were not saved.
414fi
415
416test \$exitcode = 0") || {
417  echo No shell found that supports shell functions.
418  echo Please tell autoconf@gnu.org about your system,
419  echo including any error possibly output before this
420  echo message
421}
422
423
424
425  as_lineno_1=$LINENO
426  as_lineno_2=$LINENO
427  test "x$as_lineno_1" != "x$as_lineno_2" &&
428  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
430  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431  # uniformly replaced by the line number.  The first 'sed' inserts a
432  # line-number line after each line using $LINENO; the second 'sed'
433  # does the real work.  The second script uses 'N' to pair each
434  # line-number line with the line containing $LINENO, and appends
435  # trailing '-' during substitution so that $LINENO is not a special
436  # case at line end.
437  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439  # E. McMahon (1931-1989) for sed's syntax.  :-)
440  sed -n '
441    p
442    /[$]LINENO/=
443  ' <$as_myself |
444    sed '
445      s/[$]LINENO.*/&-/
446      t lineno
447      b
448      :lineno
449      N
450      :loop
451      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452      t loop
453      s/-\n.*//
454    ' >$as_me.lineno &&
455  chmod +x "$as_me.lineno" ||
456    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457   { (exit 1); exit 1; }; }
458
459  # Don't try to exec as it changes $[0], causing all sort of problems
460  # (the dirname of $[0] is not the place where we might find the
461  # original and so on.  Autoconf is especially sensitive to this).
462  . "./$as_me.lineno"
463  # Exit status is that of the last command.
464  exit
465}
466
467
468if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469  as_dirname=dirname
470else
471  as_dirname=false
472fi
473
474ECHO_C= ECHO_N= ECHO_T=
475case `echo -n x` in
476-n*)
477  case `echo 'x\c'` in
478  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
479  *)   ECHO_C='\c';;
480  esac;;
481*)
482  ECHO_N='-n';;
483esac
484
485if expr a : '\(a\)' >/dev/null 2>&1 &&
486   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487  as_expr=expr
488else
489  as_expr=false
490fi
491
492rm -f conf$$ conf$$.exe conf$$.file
493if test -d conf$$.dir; then
494  rm -f conf$$.dir/conf$$.file
495else
496  rm -f conf$$.dir
497  mkdir conf$$.dir
498fi
499echo >conf$$.file
500if ln -s conf$$.file conf$$ 2>/dev/null; then
501  as_ln_s='ln -s'
502  # ... but there are two gotchas:
503  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505  # In both cases, we have to default to `cp -p'.
506  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507    as_ln_s='cp -p'
508elif ln conf$$.file conf$$ 2>/dev/null; then
509  as_ln_s=ln
510else
511  as_ln_s='cp -p'
512fi
513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514rmdir conf$$.dir 2>/dev/null
515
516if mkdir -p . 2>/dev/null; then
517  as_mkdir_p=:
518else
519  test -d ./-p && rmdir ./-p
520  as_mkdir_p=false
521fi
522
523if test -x / >/dev/null 2>&1; then
524  as_test_x='test -x'
525else
526  if ls -dL / >/dev/null 2>&1; then
527    as_ls_L_option=L
528  else
529    as_ls_L_option=
530  fi
531  as_test_x='
532    eval sh -c '\''
533      if test -d "$1"; then
534        test -d "$1/.";
535      else
536	case $1 in
537        -*)set "./$1";;
538	esac;
539	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540	???[sx]*):;;*)false;;esac;fi
541    '\'' sh
542  '
543fi
544as_executable_p=$as_test_x
545
546# Sed expression to map a string onto a valid CPP name.
547as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
549# Sed expression to map a string onto a valid variable name.
550as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
552
553
554
555# Check that we are running under the correct shell.
556SHELL=${CONFIG_SHELL-/bin/sh}
557
558case X$ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565echo=${ECHO-echo}
566if test "X$1" = X--no-reexec; then
567  # Discard the --no-reexec flag, and continue.
568  shift
569elif test "X$1" = X--fallback-echo; then
570  # Avoid inline document here, it may be left over
571  :
572elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573  # Yippee, $echo works!
574  :
575else
576  # Restart under the correct shell.
577  exec $SHELL "$0" --no-reexec ${1+"$@"}
578fi
579
580if test "X$1" = X--fallback-echo; then
581  # used as fallback echo
582  shift
583  cat <<EOF
584$*
585EOF
586  exit 0
587fi
588
589# The HP-UX ksh and POSIX shell print the target directory to stdout
590# if CDPATH is set.
591(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
593if test -z "$ECHO"; then
594if test "X${echo_test_string+set}" != Xset; then
595# find a string as large as possible, as long as the shell can cope with it
596  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599       echo_test_string=`eval $cmd` &&
600       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601    then
602      break
603    fi
604  done
605fi
606
607if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609   test "X$echo_testing_string" = "X$echo_test_string"; then
610  :
611else
612  # The Solaris, AIX, and Digital Unix default echo programs unquote
613  # backslashes.  This makes it impossible to quote backslashes using
614  #   echo "$something" | sed 's/\\/\\\\/g'
615  #
616  # So, first we look for a working echo in the user's PATH.
617
618  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619  for dir in $PATH /usr/ucb; do
620    IFS="$lt_save_ifs"
621    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624       test "X$echo_testing_string" = "X$echo_test_string"; then
625      echo="$dir/echo"
626      break
627    fi
628  done
629  IFS="$lt_save_ifs"
630
631  if test "X$echo" = Xecho; then
632    # We didn't find a better echo, so look for alternatives.
633    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635       test "X$echo_testing_string" = "X$echo_test_string"; then
636      # This shell has a builtin print -r that does the trick.
637      echo='print -r'
638    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639	 test "X$CONFIG_SHELL" != X/bin/ksh; then
640      # If we have ksh, try running configure again with it.
641      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642      export ORIGINAL_CONFIG_SHELL
643      CONFIG_SHELL=/bin/ksh
644      export CONFIG_SHELL
645      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646    else
647      # Try using printf.
648      echo='printf %s\n'
649      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651	 test "X$echo_testing_string" = "X$echo_test_string"; then
652	# Cool, printf works
653	:
654      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655	   test "X$echo_testing_string" = 'X\t' &&
656	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657	   test "X$echo_testing_string" = "X$echo_test_string"; then
658	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659	export CONFIG_SHELL
660	SHELL="$CONFIG_SHELL"
661	export SHELL
662	echo="$CONFIG_SHELL $0 --fallback-echo"
663      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664	   test "X$echo_testing_string" = 'X\t' &&
665	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666	   test "X$echo_testing_string" = "X$echo_test_string"; then
667	echo="$CONFIG_SHELL $0 --fallback-echo"
668      else
669	# maybe with a smaller string...
670	prev=:
671
672	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674	  then
675	    break
676	  fi
677	  prev="$cmd"
678	done
679
680	if test "$prev" != 'sed 50q "$0"'; then
681	  echo_test_string=`eval $prev`
682	  export echo_test_string
683	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684	else
685	  # Oops.  We lost completely, so just stick with echo.
686	  echo=echo
687	fi
688      fi
689    fi
690  fi
691fi
692fi
693
694# Copy echo and quote the copy suitably for passing to libtool from
695# the Makefile, instead of quoting the original, which is used later.
696ECHO=$echo
697if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699fi
700
701
702
703
704tagnames=${tagnames+${tagnames},}CXX
705
706exec 7<&0 </dev/null 6>&1
707
708# Name of the host.
709# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710# so uname gets run too.
711ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713#
714# Initializations.
715#
716ac_default_prefix=/usr/local
717ac_clean_files=
718ac_config_libobj_dir=.
719LIBOBJS=
720cross_compiling=no
721subdirs=
722MFLAGS=
723MAKEFLAGS=
724SHELL=${CONFIG_SHELL-/bin/sh}
725
726# Identity of this package.
727PACKAGE_NAME='Animorph Library'
728PACKAGE_TARNAME='animorph-library'
729PACKAGE_VERSION='0.3'
730PACKAGE_STRING='Animorph Library 0.3'
731PACKAGE_BUGREPORT='linux@brachttal.net'
732
733# Factoring default headers for most tests.
734ac_includes_default="\
735#include <stdio.h>
736#ifdef HAVE_SYS_TYPES_H
737# include <sys/types.h>
738#endif
739#ifdef HAVE_SYS_STAT_H
740# include <sys/stat.h>
741#endif
742#ifdef STDC_HEADERS
743# include <stdlib.h>
744# include <stddef.h>
745#else
746# ifdef HAVE_STDLIB_H
747#  include <stdlib.h>
748# endif
749#endif
750#ifdef HAVE_STRING_H
751# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752#  include <memory.h>
753# endif
754# include <string.h>
755#endif
756#ifdef HAVE_STRINGS_H
757# include <strings.h>
758#endif
759#ifdef HAVE_INTTYPES_H
760# include <inttypes.h>
761#endif
762#ifdef HAVE_STDINT_H
763# include <stdint.h>
764#endif
765#ifdef HAVE_UNISTD_H
766# include <unistd.h>
767#endif"
768
769ac_subst_vars='SHELL
770PATH_SEPARATOR
771PACKAGE_NAME
772PACKAGE_TARNAME
773PACKAGE_VERSION
774PACKAGE_STRING
775PACKAGE_BUGREPORT
776exec_prefix
777prefix
778program_transform_name
779bindir
780sbindir
781libexecdir
782datarootdir
783datadir
784sysconfdir
785sharedstatedir
786localstatedir
787includedir
788oldincludedir
789docdir
790infodir
791htmldir
792dvidir
793pdfdir
794psdir
795libdir
796localedir
797mandir
798DEFS
799ECHO_C
800ECHO_N
801ECHO_T
802LIBS
803build_alias
804host_alias
805target_alias
806INSTALL_PROGRAM
807INSTALL_SCRIPT
808INSTALL_DATA
809am__isrc
810CYGPATH_W
811PACKAGE
812VERSION
813ACLOCAL
814AUTOCONF
815AUTOMAKE
816AUTOHEADER
817MAKEINFO
818install_sh
819STRIP
820INSTALL_STRIP_PROGRAM
821mkdir_p
822AWK
823SET_MAKE
824am__leading_dot
825AMTAR
826am__tar
827am__untar
828MAINTAINER_MODE_TRUE
829MAINTAINER_MODE_FALSE
830MAINT
831CC
832CFLAGS
833LDFLAGS
834CPPFLAGS
835ac_ct_CC
836EXEEXT
837OBJEXT
838DEPDIR
839am__include
840am__quote
841AMDEP_TRUE
842AMDEP_FALSE
843AMDEPBACKSLASH
844CCDEPMODE
845am__fastdepCC_TRUE
846am__fastdepCC_FALSE
847CPP
848CXX
849CXXFLAGS
850ac_ct_CXX
851CXXDEPMODE
852am__fastdepCXX_TRUE
853am__fastdepCXX_FALSE
854GREP
855EGREP
856build
857build_cpu
858build_vendor
859build_os
860host
861host_cpu
862host_vendor
863host_os
864SED
865LN_S
866ECHO
867AR
868RANLIB
869CXXCPP
870LIBTOOL
871PKG_CONFIG
872PACKAGE_CFLAGS
873PACKAGE_LIBS
874NO_PREFIX_PACKAGE_DATA_DIR
875PACKAGE_DATA_DIR
876NO_PREFIX_PACKAGE_DOC_DIR
877PACKAGE_DOC_DIR
878NO_PREFIX_PACKAGE_PIXMAPS_DIR
879PACKAGE_PIXMAPS_DIR
880PACKAGE_SOURCE_DIR
881LIBOBJS
882LTLIBOBJS'
883ac_subst_files=''
884      ac_precious_vars='build_alias
885host_alias
886target_alias
887CC
888CFLAGS
889LDFLAGS
890LIBS
891CPPFLAGS
892CPP
893CXX
894CXXFLAGS
895CCC
896CXXCPP
897PKG_CONFIG
898PACKAGE_CFLAGS
899PACKAGE_LIBS'
900
901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
905# The variables have the same names as the options, with
906# dashes changed to underlines.
907cache_file=/dev/null
908exec_prefix=NONE
909no_create=
910no_recursion=
911prefix=NONE
912program_prefix=NONE
913program_suffix=NONE
914program_transform_name=s,x,x,
915silent=
916site=
917srcdir=
918verbose=
919x_includes=NONE
920x_libraries=NONE
921
922# Installation directory options.
923# These are left unexpanded so users can "make install exec_prefix=/foo"
924# and all the variables that are supposed to be based on exec_prefix
925# by default will actually change.
926# Use braces instead of parens because sh, perl, etc. also accept them.
927# (The list follows the same order as the GNU Coding Standards.)
928bindir='${exec_prefix}/bin'
929sbindir='${exec_prefix}/sbin'
930libexecdir='${exec_prefix}/libexec'
931datarootdir='${prefix}/share'
932datadir='${datarootdir}'
933sysconfdir='${prefix}/etc'
934sharedstatedir='${prefix}/com'
935localstatedir='${prefix}/var'
936includedir='${prefix}/include'
937oldincludedir='/usr/include'
938docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
939infodir='${datarootdir}/info'
940htmldir='${docdir}'
941dvidir='${docdir}'
942pdfdir='${docdir}'
943psdir='${docdir}'
944libdir='${exec_prefix}/lib'
945localedir='${datarootdir}/locale'
946mandir='${datarootdir}/man'
947
948ac_prev=
949ac_dashdash=
950for ac_option
951do
952  # If the previous option needs an argument, assign it.
953  if test -n "$ac_prev"; then
954    eval $ac_prev=\$ac_option
955    ac_prev=
956    continue
957  fi
958
959  case $ac_option in
960  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961  *)	ac_optarg=yes ;;
962  esac
963
964  # Accept the important Cygnus configure options, so we can diagnose typos.
965
966  case $ac_dashdash$ac_option in
967  --)
968    ac_dashdash=yes ;;
969
970  -bindir | --bindir | --bindi | --bind | --bin | --bi)
971    ac_prev=bindir ;;
972  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973    bindir=$ac_optarg ;;
974
975  -build | --build | --buil | --bui | --bu)
976    ac_prev=build_alias ;;
977  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978    build_alias=$ac_optarg ;;
979
980  -cache-file | --cache-file | --cache-fil | --cache-fi \
981  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982    ac_prev=cache_file ;;
983  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985    cache_file=$ac_optarg ;;
986
987  --config-cache | -C)
988    cache_file=config.cache ;;
989
990  -datadir | --datadir | --datadi | --datad)
991    ac_prev=datadir ;;
992  -datadir=* | --datadir=* | --datadi=* | --datad=*)
993    datadir=$ac_optarg ;;
994
995  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996  | --dataroo | --dataro | --datar)
997    ac_prev=datarootdir ;;
998  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000    datarootdir=$ac_optarg ;;
1001
1002  -disable-* | --disable-*)
1003    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004    # Reject names that are not valid shell variable names.
1005    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007   { (exit 1); exit 1; }; }
1008    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009    eval enable_$ac_feature=no ;;
1010
1011  -docdir | --docdir | --docdi | --doc | --do)
1012    ac_prev=docdir ;;
1013  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1014    docdir=$ac_optarg ;;
1015
1016  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1017    ac_prev=dvidir ;;
1018  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1019    dvidir=$ac_optarg ;;
1020
1021  -enable-* | --enable-*)
1022    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1025      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1026   { (exit 1); exit 1; }; }
1027    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1028    eval enable_$ac_feature=\$ac_optarg ;;
1029
1030  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032  | --exec | --exe | --ex)
1033    ac_prev=exec_prefix ;;
1034  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036  | --exec=* | --exe=* | --ex=*)
1037    exec_prefix=$ac_optarg ;;
1038
1039  -gas | --gas | --ga | --g)
1040    # Obsolete; use --with-gas.
1041    with_gas=yes ;;
1042
1043  -help | --help | --hel | --he | -h)
1044    ac_init_help=long ;;
1045  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046    ac_init_help=recursive ;;
1047  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048    ac_init_help=short ;;
1049
1050  -host | --host | --hos | --ho)
1051    ac_prev=host_alias ;;
1052  -host=* | --host=* | --hos=* | --ho=*)
1053    host_alias=$ac_optarg ;;
1054
1055  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056    ac_prev=htmldir ;;
1057  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058  | --ht=*)
1059    htmldir=$ac_optarg ;;
1060
1061  -includedir | --includedir | --includedi | --included | --include \
1062  | --includ | --inclu | --incl | --inc)
1063    ac_prev=includedir ;;
1064  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065  | --includ=* | --inclu=* | --incl=* | --inc=*)
1066    includedir=$ac_optarg ;;
1067
1068  -infodir | --infodir | --infodi | --infod | --info | --inf)
1069    ac_prev=infodir ;;
1070  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071    infodir=$ac_optarg ;;
1072
1073  -libdir | --libdir | --libdi | --libd)
1074    ac_prev=libdir ;;
1075  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076    libdir=$ac_optarg ;;
1077
1078  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079  | --libexe | --libex | --libe)
1080    ac_prev=libexecdir ;;
1081  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082  | --libexe=* | --libex=* | --libe=*)
1083    libexecdir=$ac_optarg ;;
1084
1085  -localedir | --localedir | --localedi | --localed | --locale)
1086    ac_prev=localedir ;;
1087  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088    localedir=$ac_optarg ;;
1089
1090  -localstatedir | --localstatedir | --localstatedi | --localstated \
1091  | --localstate | --localstat | --localsta | --localst | --locals)
1092    ac_prev=localstatedir ;;
1093  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095    localstatedir=$ac_optarg ;;
1096
1097  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098    ac_prev=mandir ;;
1099  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100    mandir=$ac_optarg ;;
1101
1102  -nfp | --nfp | --nf)
1103    # Obsolete; use --without-fp.
1104    with_fp=no ;;
1105
1106  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107  | --no-cr | --no-c | -n)
1108    no_create=yes ;;
1109
1110  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112    no_recursion=yes ;;
1113
1114  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116  | --oldin | --oldi | --old | --ol | --o)
1117    ac_prev=oldincludedir ;;
1118  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121    oldincludedir=$ac_optarg ;;
1122
1123  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124    ac_prev=prefix ;;
1125  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126    prefix=$ac_optarg ;;
1127
1128  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129  | --program-pre | --program-pr | --program-p)
1130    ac_prev=program_prefix ;;
1131  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133    program_prefix=$ac_optarg ;;
1134
1135  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136  | --program-suf | --program-su | --program-s)
1137    ac_prev=program_suffix ;;
1138  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140    program_suffix=$ac_optarg ;;
1141
1142  -program-transform-name | --program-transform-name \
1143  | --program-transform-nam | --program-transform-na \
1144  | --program-transform-n | --program-transform- \
1145  | --program-transform | --program-transfor \
1146  | --program-transfo | --program-transf \
1147  | --program-trans | --program-tran \
1148  | --progr-tra | --program-tr | --program-t)
1149    ac_prev=program_transform_name ;;
1150  -program-transform-name=* | --program-transform-name=* \
1151  | --program-transform-nam=* | --program-transform-na=* \
1152  | --program-transform-n=* | --program-transform-=* \
1153  | --program-transform=* | --program-transfor=* \
1154  | --program-transfo=* | --program-transf=* \
1155  | --program-trans=* | --program-tran=* \
1156  | --progr-tra=* | --program-tr=* | --program-t=*)
1157    program_transform_name=$ac_optarg ;;
1158
1159  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160    ac_prev=pdfdir ;;
1161  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162    pdfdir=$ac_optarg ;;
1163
1164  -psdir | --psdir | --psdi | --psd | --ps)
1165    ac_prev=psdir ;;
1166  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167    psdir=$ac_optarg ;;
1168
1169  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170  | -silent | --silent | --silen | --sile | --sil)
1171    silent=yes ;;
1172
1173  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174    ac_prev=sbindir ;;
1175  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176  | --sbi=* | --sb=*)
1177    sbindir=$ac_optarg ;;
1178
1179  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181  | --sharedst | --shareds | --shared | --share | --shar \
1182  | --sha | --sh)
1183    ac_prev=sharedstatedir ;;
1184  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187  | --sha=* | --sh=*)
1188    sharedstatedir=$ac_optarg ;;
1189
1190  -site | --site | --sit)
1191    ac_prev=site ;;
1192  -site=* | --site=* | --sit=*)
1193    site=$ac_optarg ;;
1194
1195  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196    ac_prev=srcdir ;;
1197  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198    srcdir=$ac_optarg ;;
1199
1200  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201  | --syscon | --sysco | --sysc | --sys | --sy)
1202    ac_prev=sysconfdir ;;
1203  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205    sysconfdir=$ac_optarg ;;
1206
1207  -target | --target | --targe | --targ | --tar | --ta | --t)
1208    ac_prev=target_alias ;;
1209  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210    target_alias=$ac_optarg ;;
1211
1212  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213    verbose=yes ;;
1214
1215  -version | --version | --versio | --versi | --vers | -V)
1216    ac_init_version=: ;;
1217
1218  -with-* | --with-*)
1219    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220    # Reject names that are not valid shell variable names.
1221    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1222      { echo "$as_me: error: invalid package name: $ac_package" >&2
1223   { (exit 1); exit 1; }; }
1224    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1225    eval with_$ac_package=\$ac_optarg ;;
1226
1227  -without-* | --without-*)
1228    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1229    # Reject names that are not valid shell variable names.
1230    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231      { echo "$as_me: error: invalid package name: $ac_package" >&2
1232   { (exit 1); exit 1; }; }
1233    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234    eval with_$ac_package=no ;;
1235
1236  --x)
1237    # Obsolete; use --with-x.
1238    with_x=yes ;;
1239
1240  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241  | --x-incl | --x-inc | --x-in | --x-i)
1242    ac_prev=x_includes ;;
1243  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245    x_includes=$ac_optarg ;;
1246
1247  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249    ac_prev=x_libraries ;;
1250  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252    x_libraries=$ac_optarg ;;
1253
1254  -*) { echo "$as_me: error: unrecognized option: $ac_option
1255Try \`$0 --help' for more information." >&2
1256   { (exit 1); exit 1; }; }
1257    ;;
1258
1259  *=*)
1260    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261    # Reject names that are not valid shell variable names.
1262    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264   { (exit 1); exit 1; }; }
1265    eval $ac_envvar=\$ac_optarg
1266    export $ac_envvar ;;
1267
1268  *)
1269    # FIXME: should be removed in autoconf 3.0.
1270    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1274    ;;
1275
1276  esac
1277done
1278
1279if test -n "$ac_prev"; then
1280  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281  { echo "$as_me: error: missing argument to $ac_option" >&2
1282   { (exit 1); exit 1; }; }
1283fi
1284
1285# Be sure to have absolute directory names.
1286for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287		datadir sysconfdir sharedstatedir localstatedir includedir \
1288		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289		libdir localedir mandir
1290do
1291  eval ac_val=\$$ac_var
1292  case $ac_val in
1293    [\\/$]* | ?:[\\/]* )  continue;;
1294    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1295  esac
1296  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1297   { (exit 1); exit 1; }; }
1298done
1299
1300# There might be people who depend on the old broken behavior: `$host'
1301# used to hold the argument of --host etc.
1302# FIXME: To remove some day.
1303build=$build_alias
1304host=$host_alias
1305target=$target_alias
1306
1307# FIXME: To remove some day.
1308if test "x$host_alias" != x; then
1309  if test "x$build_alias" = x; then
1310    cross_compiling=maybe
1311    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1312    If a cross compiler is detected then cross compile mode will be used." >&2
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  { echo "$as_me: error: Working directory cannot be determined" >&2
1328   { (exit 1); exit 1; }; }
1329test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330  { echo "$as_me: error: pwd does not report name of working directory" >&2
1331   { (exit 1); exit 1; }; }
1332
1333
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336  ac_srcdir_defaulted=yes
1337  # Try the directory containing this script, then the parent directory.
1338  ac_confdir=`$as_dirname -- "$0" ||
1339$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340	 X"$0" : 'X\(//\)[^/]' \| \
1341	 X"$0" : 'X\(//\)$' \| \
1342	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1343echo X"$0" |
1344    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345	    s//\1/
1346	    q
1347	  }
1348	  /^X\(\/\/\)[^/].*/{
1349	    s//\1/
1350	    q
1351	  }
1352	  /^X\(\/\/\)$/{
1353	    s//\1/
1354	    q
1355	  }
1356	  /^X\(\/\).*/{
1357	    s//\1/
1358	    q
1359	  }
1360	  s/.*/./; q'`
1361  srcdir=$ac_confdir
1362  if test ! -r "$srcdir/$ac_unique_file"; then
1363    srcdir=..
1364  fi
1365else
1366  ac_srcdir_defaulted=no
1367fi
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1371   { (exit 1); exit 1; }; }
1372fi
1373ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1374ac_abs_confdir=`(
1375	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1376   { (exit 1); exit 1; }; }
1377	pwd)`
1378# When building in place, set srcdir=.
1379if test "$ac_abs_confdir" = "$ac_pwd"; then
1380  srcdir=.
1381fi
1382# Remove unnecessary trailing slashes from srcdir.
1383# Double slashes in file names in object file debugging info
1384# mess up M-x gdb in Emacs.
1385case $srcdir in
1386*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387esac
1388for ac_var in $ac_precious_vars; do
1389  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390  eval ac_env_${ac_var}_value=\$${ac_var}
1391  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393done
1394
1395#
1396# Report the --help message.
1397#
1398if test "$ac_init_help" = "long"; then
1399  # Omit some internal or obsolete options to make the list less imposing.
1400  # This message is too long to be a string in the A/UX 3.1 sh.
1401  cat <<_ACEOF
1402\`configure' configures Animorph Library 0.3 to adapt to many kinds of systems.
1403
1404Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407VAR=VALUE.  See below for descriptions of some of the useful variables.
1408
1409Defaults for the options are specified in brackets.
1410
1411Configuration:
1412  -h, --help              display this help and exit
1413      --help=short        display options specific to this package
1414      --help=recursive    display the short help of all the included packages
1415  -V, --version           display version information and exit
1416  -q, --quiet, --silent   do not print \`checking...' messages
1417      --cache-file=FILE   cache test results in FILE [disabled]
1418  -C, --config-cache      alias for \`--cache-file=config.cache'
1419  -n, --no-create         do not create output files
1420      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1421
1422Installation directories:
1423  --prefix=PREFIX         install architecture-independent files in PREFIX
1424			  [$ac_default_prefix]
1425  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1426			  [PREFIX]
1427
1428By default, \`make install' will install all the files in
1429\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1430an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431for instance \`--prefix=\$HOME'.
1432
1433For better control, use the options below.
1434
1435Fine tuning of the installation directories:
1436  --bindir=DIR           user executables [EPREFIX/bin]
1437  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1438  --libexecdir=DIR       program executables [EPREFIX/libexec]
1439  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1440  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1441  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1442  --libdir=DIR           object code libraries [EPREFIX/lib]
1443  --includedir=DIR       C header files [PREFIX/include]
1444  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1445  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1446  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1447  --infodir=DIR          info documentation [DATAROOTDIR/info]
1448  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1449  --mandir=DIR           man documentation [DATAROOTDIR/man]
1450  --docdir=DIR           documentation root [DATAROOTDIR/doc/animorph-library]
1451  --htmldir=DIR          html documentation [DOCDIR]
1452  --dvidir=DIR           dvi documentation [DOCDIR]
1453  --pdfdir=DIR           pdf documentation [DOCDIR]
1454  --psdir=DIR            ps documentation [DOCDIR]
1455_ACEOF
1456
1457  cat <<\_ACEOF
1458
1459Program names:
1460  --program-prefix=PREFIX            prepend PREFIX to installed program names
1461  --program-suffix=SUFFIX            append SUFFIX to installed program names
1462  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1463
1464System types:
1465  --build=BUILD     configure for building on BUILD [guessed]
1466  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467_ACEOF
1468fi
1469
1470if test -n "$ac_init_help"; then
1471  case $ac_init_help in
1472     short | recursive ) echo "Configuration of Animorph Library 0.3:";;
1473   esac
1474  cat <<\_ACEOF
1475
1476Optional Features:
1477  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1478  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1479  --enable-maintainer-mode  enable make rules and dependencies not useful
1480			  (and sometimes confusing) to the casual installer
1481  --disable-dependency-tracking  speeds up one-time build
1482  --enable-dependency-tracking   do not reject slow dependency extractors
1483  --enable-shared[=PKGS]  build shared libraries [default=yes]
1484  --enable-static[=PKGS]  build static libraries [default=yes]
1485  --enable-fast-install[=PKGS]
1486                          optimize for fast installation [default=yes]
1487  --disable-libtool-lock  avoid locking (might break parallel builds)
1488  --enable-debug=no/yes        enables debug build (default=no)
1489
1490Optional Packages:
1491  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1492  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1493  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1494  --with-pic              try to use only PIC/non-PIC objects [default=use
1495                          both]
1496  --with-tags[=TAGS]      include additional configurations [automatic]
1497
1498Some influential environment variables:
1499  CC          C compiler command
1500  CFLAGS      C compiler flags
1501  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502              nonstandard directory <lib dir>
1503  LIBS        libraries to pass to the linker, e.g. -l<library>
1504  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1505              you have headers in a nonstandard directory <include dir>
1506  CPP         C preprocessor
1507  CXX         C++ compiler command
1508  CXXFLAGS    C++ compiler flags
1509  CXXCPP      C++ preprocessor
1510  PKG_CONFIG  path to pkg-config utility
1511  PACKAGE_CFLAGS
1512              C compiler flags for PACKAGE, overriding pkg-config
1513  PACKAGE_LIBS
1514              linker flags for PACKAGE, overriding pkg-config
1515
1516Use these variables to override the choices made by `configure' or to help
1517it to find libraries and programs with nonstandard names/locations.
1518
1519Report bugs to <linux@brachttal.net>.
1520_ACEOF
1521ac_status=$?
1522fi
1523
1524if test "$ac_init_help" = "recursive"; then
1525  # If there are subdirs, report their specific --help.
1526  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1527    test -d "$ac_dir" || continue
1528    ac_builddir=.
1529
1530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
1533  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1534  # A ".." for each directory in $ac_dir_suffix.
1535  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1536  case $ac_top_builddir_sub in
1537  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539  esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
1545
1546case $srcdir in
1547  .)  # We are building in place.
1548    ac_srcdir=.
1549    ac_top_srcdir=$ac_top_builddir_sub
1550    ac_abs_top_srcdir=$ac_pwd ;;
1551  [\\/]* | ?:[\\/]* )  # Absolute name.
1552    ac_srcdir=$srcdir$ac_dir_suffix;
1553    ac_top_srcdir=$srcdir
1554    ac_abs_top_srcdir=$srcdir ;;
1555  *) # Relative name.
1556    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557    ac_top_srcdir=$ac_top_build_prefix$srcdir
1558    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559esac
1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562    cd "$ac_dir" || { ac_status=$?; continue; }
1563    # Check for guested configure.
1564    if test -f "$ac_srcdir/configure.gnu"; then
1565      echo &&
1566      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1567    elif test -f "$ac_srcdir/configure"; then
1568      echo &&
1569      $SHELL "$ac_srcdir/configure" --help=recursive
1570    else
1571      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1572    fi || ac_status=$?
1573    cd "$ac_pwd" || { ac_status=$?; break; }
1574  done
1575fi
1576
1577test -n "$ac_init_help" && exit $ac_status
1578if $ac_init_version; then
1579  cat <<\_ACEOF
1580Animorph Library configure 0.3
1581generated by GNU Autoconf 2.61
1582
1583Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15842002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1585This configure script is free software; the Free Software Foundation
1586gives unlimited permission to copy, distribute and modify it.
1587_ACEOF
1588  exit
1589fi
1590cat >config.log <<_ACEOF
1591This file contains any messages produced by compilers while
1592running configure, to aid debugging if configure makes a mistake.
1593
1594It was created by Animorph Library $as_me 0.3, which was
1595generated by GNU Autoconf 2.61.  Invocation command line was
1596
1597  $ $0 $@
1598
1599_ACEOF
1600exec 5>>config.log
1601{
1602cat <<_ASUNAME
1603## --------- ##
1604## Platform. ##
1605## --------- ##
1606
1607hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1608uname -m = `(uname -m) 2>/dev/null || echo unknown`
1609uname -r = `(uname -r) 2>/dev/null || echo unknown`
1610uname -s = `(uname -s) 2>/dev/null || echo unknown`
1611uname -v = `(uname -v) 2>/dev/null || echo unknown`
1612
1613/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1614/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1615
1616/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1617/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1618/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1619/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1620/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1621/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1622/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1623
1624_ASUNAME
1625
1626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627for as_dir in $PATH
1628do
1629  IFS=$as_save_IFS
1630  test -z "$as_dir" && as_dir=.
1631  echo "PATH: $as_dir"
1632done
1633IFS=$as_save_IFS
1634
1635} >&5
1636
1637cat >&5 <<_ACEOF
1638
1639
1640## ----------- ##
1641## Core tests. ##
1642## ----------- ##
1643
1644_ACEOF
1645
1646
1647# Keep a trace of the command line.
1648# Strip out --no-create and --no-recursion so they do not pile up.
1649# Strip out --silent because we don't want to record it for future runs.
1650# Also quote any args containing shell meta-characters.
1651# Make two passes to allow for proper duplicate-argument suppression.
1652ac_configure_args=
1653ac_configure_args0=
1654ac_configure_args1=
1655ac_must_keep_next=false
1656for ac_pass in 1 2
1657do
1658  for ac_arg
1659  do
1660    case $ac_arg in
1661    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1662    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1663    | -silent | --silent | --silen | --sile | --sil)
1664      continue ;;
1665    *\'*)
1666      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1667    esac
1668    case $ac_pass in
1669    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1670    2)
1671      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1672      if test $ac_must_keep_next = true; then
1673	ac_must_keep_next=false # Got value, back to normal.
1674      else
1675	case $ac_arg in
1676	  *=* | --config-cache | -C | -disable-* | --disable-* \
1677	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1678	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1679	  | -with-* | --with-* | -without-* | --without-* | --x)
1680	    case "$ac_configure_args0 " in
1681	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1682	    esac
1683	    ;;
1684	  -* ) ac_must_keep_next=true ;;
1685	esac
1686      fi
1687      ac_configure_args="$ac_configure_args '$ac_arg'"
1688      ;;
1689    esac
1690  done
1691done
1692$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1693$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1694
1695# When interrupted or exit'd, cleanup temporary files, and complete
1696# config.log.  We remove comments because anyway the quotes in there
1697# would cause problems or look ugly.
1698# WARNING: Use '\'' to represent an apostrophe within the trap.
1699# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1700trap 'exit_status=$?
1701  # Save into config.log some information that might help in debugging.
1702  {
1703    echo
1704
1705    cat <<\_ASBOX
1706## ---------------- ##
1707## Cache variables. ##
1708## ---------------- ##
1709_ASBOX
1710    echo
1711    # The following way of writing the cache mishandles newlines in values,
1712(
1713  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1714    eval ac_val=\$$ac_var
1715    case $ac_val in #(
1716    *${as_nl}*)
1717      case $ac_var in #(
1718      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1719echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1720      esac
1721      case $ac_var in #(
1722      _ | IFS | as_nl) ;; #(
1723      *) $as_unset $ac_var ;;
1724      esac ;;
1725    esac
1726  done
1727  (set) 2>&1 |
1728    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1729    *${as_nl}ac_space=\ *)
1730      sed -n \
1731	"s/'\''/'\''\\\\'\'''\''/g;
1732	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1733      ;; #(
1734    *)
1735      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1736      ;;
1737    esac |
1738    sort
1739)
1740    echo
1741
1742    cat <<\_ASBOX
1743## ----------------- ##
1744## Output variables. ##
1745## ----------------- ##
1746_ASBOX
1747    echo
1748    for ac_var in $ac_subst_vars
1749    do
1750      eval ac_val=\$$ac_var
1751      case $ac_val in
1752      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753      esac
1754      echo "$ac_var='\''$ac_val'\''"
1755    done | sort
1756    echo
1757
1758    if test -n "$ac_subst_files"; then
1759      cat <<\_ASBOX
1760## ------------------- ##
1761## File substitutions. ##
1762## ------------------- ##
1763_ASBOX
1764      echo
1765      for ac_var in $ac_subst_files
1766      do
1767	eval ac_val=\$$ac_var
1768	case $ac_val in
1769	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1770	esac
1771	echo "$ac_var='\''$ac_val'\''"
1772      done | sort
1773      echo
1774    fi
1775
1776    if test -s confdefs.h; then
1777      cat <<\_ASBOX
1778## ----------- ##
1779## confdefs.h. ##
1780## ----------- ##
1781_ASBOX
1782      echo
1783      cat confdefs.h
1784      echo
1785    fi
1786    test "$ac_signal" != 0 &&
1787      echo "$as_me: caught signal $ac_signal"
1788    echo "$as_me: exit $exit_status"
1789  } >&5
1790  rm -f core *.core core.conftest.* &&
1791    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1792    exit $exit_status
1793' 0
1794for ac_signal in 1 2 13 15; do
1795  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1796done
1797ac_signal=0
1798
1799# confdefs.h avoids OS command line length limits that DEFS can exceed.
1800rm -f -r conftest* confdefs.h
1801
1802# Predefined preprocessor variables.
1803
1804cat >>confdefs.h <<_ACEOF
1805#define PACKAGE_NAME "$PACKAGE_NAME"
1806_ACEOF
1807
1808
1809cat >>confdefs.h <<_ACEOF
1810#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1811_ACEOF
1812
1813
1814cat >>confdefs.h <<_ACEOF
1815#define PACKAGE_VERSION "$PACKAGE_VERSION"
1816_ACEOF
1817
1818
1819cat >>confdefs.h <<_ACEOF
1820#define PACKAGE_STRING "$PACKAGE_STRING"
1821_ACEOF
1822
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1826_ACEOF
1827
1828
1829# Let the site file select an alternate cache file if it wants to.
1830# Prefer explicitly selected file to automatically selected ones.
1831if test -n "$CONFIG_SITE"; then
1832  set x "$CONFIG_SITE"
1833elif test "x$prefix" != xNONE; then
1834  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1835else
1836  set x "$ac_default_prefix/share/config.site" \
1837	"$ac_default_prefix/etc/config.site"
1838fi
1839shift
1840for ac_site_file
1841do
1842  if test -r "$ac_site_file"; then
1843    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1844echo "$as_me: loading site script $ac_site_file" >&6;}
1845    sed 's/^/| /' "$ac_site_file" >&5
1846    . "$ac_site_file"
1847  fi
1848done
1849
1850if test -r "$cache_file"; then
1851  # Some versions of bash will fail to source /dev/null (special
1852  # files actually), so we avoid doing that.
1853  if test -f "$cache_file"; then
1854    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1855echo "$as_me: loading cache $cache_file" >&6;}
1856    case $cache_file in
1857      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1858      *)                      . "./$cache_file";;
1859    esac
1860  fi
1861else
1862  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1863echo "$as_me: creating cache $cache_file" >&6;}
1864  >$cache_file
1865fi
1866
1867# Check that the precious variables saved in the cache have kept the same
1868# value.
1869ac_cache_corrupted=false
1870for ac_var in $ac_precious_vars; do
1871  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1872  eval ac_new_set=\$ac_env_${ac_var}_set
1873  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1874  eval ac_new_val=\$ac_env_${ac_var}_value
1875  case $ac_old_set,$ac_new_set in
1876    set,)
1877      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1878echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1879      ac_cache_corrupted=: ;;
1880    ,set)
1881      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1882echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1883      ac_cache_corrupted=: ;;
1884    ,);;
1885    *)
1886      if test "x$ac_old_val" != "x$ac_new_val"; then
1887	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1888echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1889	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1890echo "$as_me:   former value:  $ac_old_val" >&2;}
1891	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1892echo "$as_me:   current value: $ac_new_val" >&2;}
1893	ac_cache_corrupted=:
1894      fi;;
1895  esac
1896  # Pass precious variables to config.status.
1897  if test "$ac_new_set" = set; then
1898    case $ac_new_val in
1899    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900    *) ac_arg=$ac_var=$ac_new_val ;;
1901    esac
1902    case " $ac_configure_args " in
1903      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1904      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905    esac
1906  fi
1907done
1908if $ac_cache_corrupted; then
1909  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913   { (exit 1); exit 1; }; }
1914fi
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940ac_ext=c
1941ac_cpp='$CPP $CPPFLAGS'
1942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1944ac_compiler_gnu=$ac_cv_c_compiler_gnu
1945
1946
1947am__api_version='1.10'
1948
1949ac_aux_dir=
1950for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1951  if test -f "$ac_dir/install-sh"; then
1952    ac_aux_dir=$ac_dir
1953    ac_install_sh="$ac_aux_dir/install-sh -c"
1954    break
1955  elif test -f "$ac_dir/install.sh"; then
1956    ac_aux_dir=$ac_dir
1957    ac_install_sh="$ac_aux_dir/install.sh -c"
1958    break
1959  elif test -f "$ac_dir/shtool"; then
1960    ac_aux_dir=$ac_dir
1961    ac_install_sh="$ac_aux_dir/shtool install -c"
1962    break
1963  fi
1964done
1965if test -z "$ac_aux_dir"; then
1966  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1967echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1968   { (exit 1); exit 1; }; }
1969fi
1970
1971# These three variables are undocumented and unsupported,
1972# and are intended to be withdrawn in a future Autoconf release.
1973# They can cause serious problems if a builder's source tree is in a directory
1974# whose full name contains unusual characters.
1975ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1976ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1977ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1978
1979
1980# Find a good install program.  We prefer a C program (faster),
1981# so one script is as good as another.  But avoid the broken or
1982# incompatible versions:
1983# SysV /etc/install, /usr/sbin/install
1984# SunOS /usr/etc/install
1985# IRIX /sbin/install
1986# AIX /bin/install
1987# AmigaOS /C/install, which installs bootblocks on floppy discs
1988# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1989# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1990# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1991# OS/2's system install, which has a completely different semantic
1992# ./install, which can be erroneously created by make from ./install.sh.
1993{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1994echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1995if test -z "$INSTALL"; then
1996if test "${ac_cv_path_install+set}" = set; then
1997  echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
1999  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH
2001do
2002  IFS=$as_save_IFS
2003  test -z "$as_dir" && as_dir=.
2004  # Account for people who put trailing slashes in PATH elements.
2005case $as_dir/ in
2006  ./ | .// | /cC/* | \
2007  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2008  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2009  /usr/ucb/* ) ;;
2010  *)
2011    # OSF1 and SCO ODT 3.0 have their own names for install.
2012    # Don't use installbsd from OSF since it installs stuff as root
2013    # by default.
2014    for ac_prog in ginstall scoinst install; do
2015      for ac_exec_ext in '' $ac_executable_extensions; do
2016	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2017	  if test $ac_prog = install &&
2018	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2019	    # AIX install.  It has an incompatible calling convention.
2020	    :
2021	  elif test $ac_prog = install &&
2022	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2023	    # program-specific install script used by HP pwplus--don't use.
2024	    :
2025	  else
2026	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2027	    break 3
2028	  fi
2029	fi
2030      done
2031    done
2032    ;;
2033esac
2034done
2035IFS=$as_save_IFS
2036
2037
2038fi
2039  if test "${ac_cv_path_install+set}" = set; then
2040    INSTALL=$ac_cv_path_install
2041  else
2042    # As a last resort, use the slow shell script.  Don't cache a
2043    # value for INSTALL within a source directory, because that will
2044    # break other packages using the cache if that directory is
2045    # removed, or if the value is a relative name.
2046    INSTALL=$ac_install_sh
2047  fi
2048fi
2049{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2050echo "${ECHO_T}$INSTALL" >&6; }
2051
2052# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2053# It thinks the first close brace ends the variable substitution.
2054test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2055
2056test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2057
2058test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2059
2060{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2061echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2062# Just in case
2063sleep 1
2064echo timestamp > conftest.file
2065# Do `set' in a subshell so we don't clobber the current shell's
2066# arguments.  Must try -L first in case configure is actually a
2067# symlink; some systems play weird games with the mod time of symlinks
2068# (eg FreeBSD returns the mod time of the symlink's containing
2069# directory).
2070if (
2071   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2072   if test "$*" = "X"; then
2073      # -L didn't work.
2074      set X `ls -t $srcdir/configure conftest.file`
2075   fi
2076   rm -f conftest.file
2077   if test "$*" != "X $srcdir/configure conftest.file" \
2078      && test "$*" != "X conftest.file $srcdir/configure"; then
2079
2080      # If neither matched, then we have a broken ls.  This can happen
2081      # if, for instance, CONFIG_SHELL is bash and it inherits a
2082      # broken ls alias from the environment.  This has actually
2083      # happened.  Such a system could not be considered "sane".
2084      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2085alias in your environment" >&5
2086echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2087alias in your environment" >&2;}
2088   { (exit 1); exit 1; }; }
2089   fi
2090
2091   test "$2" = conftest.file
2092   )
2093then
2094   # Ok.
2095   :
2096else
2097   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2098Check your system clock" >&5
2099echo "$as_me: error: newly created file is older than distributed files!
2100Check your system clock" >&2;}
2101   { (exit 1); exit 1; }; }
2102fi
2103{ echo "$as_me:$LINENO: result: yes" >&5
2104echo "${ECHO_T}yes" >&6; }
2105test "$program_prefix" != NONE &&
2106  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2107# Use a double $ so make ignores it.
2108test "$program_suffix" != NONE &&
2109  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2110# Double any \ or $.  echo might interpret backslashes.
2111# By default was `s,x,x', remove it if useless.
2112cat <<\_ACEOF >conftest.sed
2113s/[\\$]/&&/g;s/;s,x,x,$//
2114_ACEOF
2115program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2116rm -f conftest.sed
2117
2118# expand $ac_aux_dir to an absolute path
2119am_aux_dir=`cd $ac_aux_dir && pwd`
2120
2121test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2122# Use eval to expand $SHELL
2123if eval "$MISSING --run true"; then
2124  am_missing_run="$MISSING --run "
2125else
2126  am_missing_run=
2127  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2128echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2129fi
2130
2131{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2132echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2133if test -z "$MKDIR_P"; then
2134  if test "${ac_cv_path_mkdir+set}" = set; then
2135  echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
2137  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2139do
2140  IFS=$as_save_IFS
2141  test -z "$as_dir" && as_dir=.
2142  for ac_prog in mkdir gmkdir; do
2143	 for ac_exec_ext in '' $ac_executable_extensions; do
2144	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2145	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2146	     'mkdir (GNU coreutils) '* | \
2147	     'mkdir (coreutils) '* | \
2148	     'mkdir (fileutils) '4.1*)
2149	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2150	       break 3;;
2151	   esac
2152	 done
2153       done
2154done
2155IFS=$as_save_IFS
2156
2157fi
2158
2159  if test "${ac_cv_path_mkdir+set}" = set; then
2160    MKDIR_P="$ac_cv_path_mkdir -p"
2161  else
2162    # As a last resort, use the slow shell script.  Don't cache a
2163    # value for MKDIR_P within a source directory, because that will
2164    # break other packages using the cache if that directory is
2165    # removed, or if the value is a relative name.
2166    test -d ./--version && rmdir ./--version
2167    MKDIR_P="$ac_install_sh -d"
2168  fi
2169fi
2170{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2171echo "${ECHO_T}$MKDIR_P" >&6; }
2172
2173mkdir_p="$MKDIR_P"
2174case $mkdir_p in
2175  [\\/$]* | ?:[\\/]*) ;;
2176  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2177esac
2178
2179for ac_prog in gawk mawk nawk awk
2180do
2181  # Extract the first word of "$ac_prog", so it can be a program name with args.
2182set dummy $ac_prog; ac_word=$2
2183{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185if test "${ac_cv_prog_AWK+set}" = set; then
2186  echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188  if test -n "$AWK"; then
2189  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2190else
2191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192for as_dir in $PATH
2193do
2194  IFS=$as_save_IFS
2195  test -z "$as_dir" && as_dir=.
2196  for ac_exec_ext in '' $ac_executable_extensions; do
2197  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2198    ac_cv_prog_AWK="$ac_prog"
2199    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200    break 2
2201  fi
2202done
2203done
2204IFS=$as_save_IFS
2205
2206fi
2207fi
2208AWK=$ac_cv_prog_AWK
2209if test -n "$AWK"; then
2210  { echo "$as_me:$LINENO: result: $AWK" >&5
2211echo "${ECHO_T}$AWK" >&6; }
2212else
2213  { echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6; }
2215fi
2216
2217
2218  test -n "$AWK" && break
2219done
2220
2221{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2222echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2223set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2224if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2225  echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227  cat >conftest.make <<\_ACEOF
2228SHELL = /bin/sh
2229all:
2230	@echo '@@@%%%=$(MAKE)=@@@%%%'
2231_ACEOF
2232# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2233case `${MAKE-make} -f conftest.make 2>/dev/null` in
2234  *@@@%%%=?*=@@@%%%*)
2235    eval ac_cv_prog_make_${ac_make}_set=yes;;
2236  *)
2237    eval ac_cv_prog_make_${ac_make}_set=no;;
2238esac
2239rm -f conftest.make
2240fi
2241if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2242  { echo "$as_me:$LINENO: result: yes" >&5
2243echo "${ECHO_T}yes" >&6; }
2244  SET_MAKE=
2245else
2246  { echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6; }
2248  SET_MAKE="MAKE=${MAKE-make}"
2249fi
2250
2251rm -rf .tst 2>/dev/null
2252mkdir .tst 2>/dev/null
2253if test -d .tst; then
2254  am__leading_dot=.
2255else
2256  am__leading_dot=_
2257fi
2258rmdir .tst 2>/dev/null
2259
2260if test "`cd $srcdir && pwd`" != "`pwd`"; then
2261  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2262  # is not polluted with repeated "-I."
2263  am__isrc=' -I$(srcdir)'
2264  # test to see if srcdir already configured
2265  if test -f $srcdir/config.status; then
2266    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2267echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2268   { (exit 1); exit 1; }; }
2269  fi
2270fi
2271
2272# test whether we have cygpath
2273if test -z "$CYGPATH_W"; then
2274  if (cygpath --version) >/dev/null 2>/dev/null; then
2275    CYGPATH_W='cygpath -w'
2276  else
2277    CYGPATH_W=echo
2278  fi
2279fi
2280
2281
2282# Define the identity of the package.
2283 PACKAGE=animorph
2284 VERSION=0.3
2285
2286
2287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE "$PACKAGE"
2289_ACEOF
2290
2291
2292cat >>confdefs.h <<_ACEOF
2293#define VERSION "$VERSION"
2294_ACEOF
2295
2296# Some tools Automake needs.
2297
2298ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2299
2300
2301AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2302
2303
2304AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2305
2306
2307AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2308
2309
2310MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2311
2312install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2313
2314# Installed binaries are usually stripped using `strip' when the user
2315# run `make install-strip'.  However `strip' might not be the right
2316# tool to use in cross-compilation environments, therefore Automake
2317# will honor the `STRIP' environment variable to overrule this program.
2318if test "$cross_compiling" != no; then
2319  if test -n "$ac_tool_prefix"; then
2320  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321set dummy ${ac_tool_prefix}strip; ac_word=$2
2322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2324if test "${ac_cv_prog_STRIP+set}" = set; then
2325  echo $ECHO_N "(cached) $ECHO_C" >&6
2326else
2327  if test -n "$STRIP"; then
2328  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329else
2330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331for as_dir in $PATH
2332do
2333  IFS=$as_save_IFS
2334  test -z "$as_dir" && as_dir=.
2335  for ac_exec_ext in '' $ac_executable_extensions; do
2336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339    break 2
2340  fi
2341done
2342done
2343IFS=$as_save_IFS
2344
2345fi
2346fi
2347STRIP=$ac_cv_prog_STRIP
2348if test -n "$STRIP"; then
2349  { echo "$as_me:$LINENO: result: $STRIP" >&5
2350echo "${ECHO_T}$STRIP" >&6; }
2351else
2352  { echo "$as_me:$LINENO: result: no" >&5
2353echo "${ECHO_T}no" >&6; }
2354fi
2355
2356
2357fi
2358if test -z "$ac_cv_prog_STRIP"; then
2359  ac_ct_STRIP=$STRIP
2360  # Extract the first word of "strip", so it can be a program name with args.
2361set dummy strip; ac_word=$2
2362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2365  echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367  if test -n "$ac_ct_STRIP"; then
2368  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2369else
2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371for as_dir in $PATH
2372do
2373  IFS=$as_save_IFS
2374  test -z "$as_dir" && as_dir=.
2375  for ac_exec_ext in '' $ac_executable_extensions; do
2376  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377    ac_cv_prog_ac_ct_STRIP="strip"
2378    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379    break 2
2380  fi
2381done
2382done
2383IFS=$as_save_IFS
2384
2385fi
2386fi
2387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2388if test -n "$ac_ct_STRIP"; then
2389  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2390echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2391else
2392  { echo "$as_me:$LINENO: result: no" >&5
2393echo "${ECHO_T}no" >&6; }
2394fi
2395
2396  if test "x$ac_ct_STRIP" = x; then
2397    STRIP=":"
2398  else
2399    case $cross_compiling:$ac_tool_warned in
2400yes:)
2401{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2402whose name does not start with the host triplet.  If you think this
2403configuration is useful to you, please write to autoconf@gnu.org." >&5
2404echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2405whose name does not start with the host triplet.  If you think this
2406configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2407ac_tool_warned=yes ;;
2408esac
2409    STRIP=$ac_ct_STRIP
2410  fi
2411else
2412  STRIP="$ac_cv_prog_STRIP"
2413fi
2414
2415fi
2416INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2417
2418# We need awk for the "check" target.  The system "awk" is bad on
2419# some platforms.
2420# Always define AMTAR for backward compatibility.
2421
2422AMTAR=${AMTAR-"${am_missing_run}tar"}
2423
2424am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2425
2426
2427
2428
2429
2430ac_config_headers="$ac_config_headers config.h"
2431
2432
2433
2434{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2435echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2436    # Check whether --enable-maintainer-mode was given.
2437if test "${enable_maintainer_mode+set}" = set; then
2438  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2439else
2440  USE_MAINTAINER_MODE=no
2441fi
2442
2443  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2444echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2445   if test $USE_MAINTAINER_MODE = yes; then
2446  MAINTAINER_MODE_TRUE=
2447  MAINTAINER_MODE_FALSE='#'
2448else
2449  MAINTAINER_MODE_TRUE='#'
2450  MAINTAINER_MODE_FALSE=
2451fi
2452
2453  MAINT=$MAINTAINER_MODE_TRUE
2454
2455
2456
2457ac_ext=c
2458ac_cpp='$CPP $CPPFLAGS'
2459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461ac_compiler_gnu=$ac_cv_c_compiler_gnu
2462if test -n "$ac_tool_prefix"; then
2463  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2464set dummy ${ac_tool_prefix}gcc; ac_word=$2
2465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2467if test "${ac_cv_prog_CC+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  if test -n "$CC"; then
2471  ac_cv_prog_CC="$CC" # Let the user override the test.
2472else
2473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474for as_dir in $PATH
2475do
2476  IFS=$as_save_IFS
2477  test -z "$as_dir" && as_dir=.
2478  for ac_exec_ext in '' $ac_executable_extensions; do
2479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2480    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482    break 2
2483  fi
2484done
2485done
2486IFS=$as_save_IFS
2487
2488fi
2489fi
2490CC=$ac_cv_prog_CC
2491if test -n "$CC"; then
2492  { echo "$as_me:$LINENO: result: $CC" >&5
2493echo "${ECHO_T}$CC" >&6; }
2494else
2495  { echo "$as_me:$LINENO: result: no" >&5
2496echo "${ECHO_T}no" >&6; }
2497fi
2498
2499
2500fi
2501if test -z "$ac_cv_prog_CC"; then
2502  ac_ct_CC=$CC
2503  # Extract the first word of "gcc", so it can be a program name with args.
2504set dummy gcc; ac_word=$2
2505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2508  echo $ECHO_N "(cached) $ECHO_C" >&6
2509else
2510  if test -n "$ac_ct_CC"; then
2511  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2512else
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516  IFS=$as_save_IFS
2517  test -z "$as_dir" && as_dir=.
2518  for ac_exec_ext in '' $ac_executable_extensions; do
2519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520    ac_cv_prog_ac_ct_CC="gcc"
2521    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522    break 2
2523  fi
2524done
2525done
2526IFS=$as_save_IFS
2527
2528fi
2529fi
2530ac_ct_CC=$ac_cv_prog_ac_ct_CC
2531if test -n "$ac_ct_CC"; then
2532  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2533echo "${ECHO_T}$ac_ct_CC" >&6; }
2534else
2535  { echo "$as_me:$LINENO: result: no" >&5
2536echo "${ECHO_T}no" >&6; }
2537fi
2538
2539  if test "x$ac_ct_CC" = x; then
2540    CC=""
2541  else
2542    case $cross_compiling:$ac_tool_warned in
2543yes:)
2544{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2545whose name does not start with the host triplet.  If you think this
2546configuration is useful to you, please write to autoconf@gnu.org." >&5
2547echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2548whose name does not start with the host triplet.  If you think this
2549configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2550ac_tool_warned=yes ;;
2551esac
2552    CC=$ac_ct_CC
2553  fi
2554else
2555  CC="$ac_cv_prog_CC"
2556fi
2557
2558if test -z "$CC"; then
2559          if test -n "$ac_tool_prefix"; then
2560    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2561set dummy ${ac_tool_prefix}cc; ac_word=$2
2562{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2564if test "${ac_cv_prog_CC+set}" = set; then
2565  echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567  if test -n "$CC"; then
2568  ac_cv_prog_CC="$CC" # Let the user override the test.
2569else
2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571for as_dir in $PATH
2572do
2573  IFS=$as_save_IFS
2574  test -z "$as_dir" && as_dir=.
2575  for ac_exec_ext in '' $ac_executable_extensions; do
2576  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577    ac_cv_prog_CC="${ac_tool_prefix}cc"
2578    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2579    break 2
2580  fi
2581done
2582done
2583IFS=$as_save_IFS
2584
2585fi
2586fi
2587CC=$ac_cv_prog_CC
2588if test -n "$CC"; then
2589  { echo "$as_me:$LINENO: result: $CC" >&5
2590echo "${ECHO_T}$CC" >&6; }
2591else
2592  { echo "$as_me:$LINENO: result: no" >&5
2593echo "${ECHO_T}no" >&6; }
2594fi
2595
2596
2597  fi
2598fi
2599if test -z "$CC"; then
2600  # Extract the first word of "cc", so it can be a program name with args.
2601set dummy cc; ac_word=$2
2602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604if test "${ac_cv_prog_CC+set}" = set; then
2605  echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
2607  if test -n "$CC"; then
2608  ac_cv_prog_CC="$CC" # Let the user override the test.
2609else
2610  ac_prog_rejected=no
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614  IFS=$as_save_IFS
2615  test -z "$as_dir" && as_dir=.
2616  for ac_exec_ext in '' $ac_executable_extensions; do
2617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2619       ac_prog_rejected=yes
2620       continue
2621     fi
2622    ac_cv_prog_CC="cc"
2623    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
2630if test $ac_prog_rejected = yes; then
2631  # We found a bogon in the path, so make sure we never use it.
2632  set dummy $ac_cv_prog_CC
2633  shift
2634  if test $# != 0; then
2635    # We chose a different compiler from the bogus one.
2636    # However, it has the same basename, so the bogon will be chosen
2637    # first if we set CC to just the basename; use the full file name.
2638    shift
2639    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2640  fi
2641fi
2642fi
2643fi
2644CC=$ac_cv_prog_CC
2645if test -n "$CC"; then
2646  { echo "$as_me:$LINENO: result: $CC" >&5
2647echo "${ECHO_T}$CC" >&6; }
2648else
2649  { echo "$as_me:$LINENO: result: no" >&5
2650echo "${ECHO_T}no" >&6; }
2651fi
2652
2653
2654fi
2655if test -z "$CC"; then
2656  if test -n "$ac_tool_prefix"; then
2657  for ac_prog in cl.exe
2658  do
2659    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2660set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2661{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663if test "${ac_cv_prog_CC+set}" = set; then
2664  echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666  if test -n "$CC"; then
2667  ac_cv_prog_CC="$CC" # Let the user override the test.
2668else
2669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670for as_dir in $PATH
2671do
2672  IFS=$as_save_IFS
2673  test -z "$as_dir" && as_dir=.
2674  for ac_exec_ext in '' $ac_executable_extensions; do
2675  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678    break 2
2679  fi
2680done
2681done
2682IFS=$as_save_IFS
2683
2684fi
2685fi
2686CC=$ac_cv_prog_CC
2687if test -n "$CC"; then
2688  { echo "$as_me:$LINENO: result: $CC" >&5
2689echo "${ECHO_T}$CC" >&6; }
2690else
2691  { echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6; }
2693fi
2694
2695
2696    test -n "$CC" && break
2697  done
2698fi
2699if test -z "$CC"; then
2700  ac_ct_CC=$CC
2701  for ac_prog in cl.exe
2702do
2703  # Extract the first word of "$ac_prog", so it can be a program name with args.
2704set dummy $ac_prog; ac_word=$2
2705{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2707if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2708  echo $ECHO_N "(cached) $ECHO_C" >&6
2709else
2710  if test -n "$ac_ct_CC"; then
2711  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712else
2713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714for as_dir in $PATH
2715do
2716  IFS=$as_save_IFS
2717  test -z "$as_dir" && as_dir=.
2718  for ac_exec_ext in '' $ac_executable_extensions; do
2719  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720    ac_cv_prog_ac_ct_CC="$ac_prog"
2721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722    break 2
2723  fi
2724done
2725done
2726IFS=$as_save_IFS
2727
2728fi
2729fi
2730ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731if test -n "$ac_ct_CC"; then
2732  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2733echo "${ECHO_T}$ac_ct_CC" >&6; }
2734else
2735  { echo "$as_me:$LINENO: result: no" >&5
2736echo "${ECHO_T}no" >&6; }
2737fi
2738
2739
2740  test -n "$ac_ct_CC" && break
2741done
2742
2743  if test "x$ac_ct_CC" = x; then
2744    CC=""
2745  else
2746    case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2749whose name does not start with the host triplet.  If you think this
2750configuration is useful to you, please write to autoconf@gnu.org." >&5
2751echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2752whose name does not start with the host triplet.  If you think this
2753configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756    CC=$ac_ct_CC
2757  fi
2758fi
2759
2760fi
2761
2762
2763test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2764See \`config.log' for more details." >&5
2765echo "$as_me: error: no acceptable C compiler found in \$PATH
2766See \`config.log' for more details." >&2;}
2767   { (exit 1); exit 1; }; }
2768
2769# Provide some information about the compiler.
2770echo "$as_me:$LINENO: checking for C compiler version" >&5
2771ac_compiler=`set X $ac_compile; echo $2`
2772{ (ac_try="$ac_compiler --version >&5"
2773case "(($ac_try" in
2774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775  *) ac_try_echo=$ac_try;;
2776esac
2777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778  (eval "$ac_compiler --version >&5") 2>&5
2779  ac_status=$?
2780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781  (exit $ac_status); }
2782{ (ac_try="$ac_compiler -v >&5"
2783case "(($ac_try" in
2784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785  *) ac_try_echo=$ac_try;;
2786esac
2787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788  (eval "$ac_compiler -v >&5") 2>&5
2789  ac_status=$?
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); }
2792{ (ac_try="$ac_compiler -V >&5"
2793case "(($ac_try" in
2794  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795  *) ac_try_echo=$ac_try;;
2796esac
2797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798  (eval "$ac_compiler -V >&5") 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }
2802
2803cat >conftest.$ac_ext <<_ACEOF
2804/* confdefs.h.  */
2805_ACEOF
2806cat confdefs.h >>conftest.$ac_ext
2807cat >>conftest.$ac_ext <<_ACEOF
2808/* end confdefs.h.  */
2809
2810int
2811main ()
2812{
2813
2814  ;
2815  return 0;
2816}
2817_ACEOF
2818ac_clean_files_save=$ac_clean_files
2819ac_clean_files="$ac_clean_files a.out a.exe b.out"
2820# Try to create an executable without -o first, disregard a.out.
2821# It will help us diagnose broken compilers, and finding out an intuition
2822# of exeext.
2823{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2824echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2825ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2826#
2827# List of possible output files, starting from the most likely.
2828# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2829# only as a last resort.  b.out is created by i960 compilers.
2830ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2831#
2832# The IRIX 6 linker writes into existing files which may not be
2833# executable, retaining their permissions.  Remove them first so a
2834# subsequent execution test works.
2835ac_rmfiles=
2836for ac_file in $ac_files
2837do
2838  case $ac_file in
2839    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2840    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2841  esac
2842done
2843rm -f $ac_rmfiles
2844
2845if { (ac_try="$ac_link_default"
2846case "(($ac_try" in
2847  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848  *) ac_try_echo=$ac_try;;
2849esac
2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851  (eval "$ac_link_default") 2>&5
2852  ac_status=$?
2853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854  (exit $ac_status); }; then
2855  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2856# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2857# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2858# so that the user can short-circuit this test for compilers unknown to
2859# Autoconf.
2860for ac_file in $ac_files ''
2861do
2862  test -f "$ac_file" || continue
2863  case $ac_file in
2864    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2865	;;
2866    [ab].out )
2867	# We found the default executable, but exeext='' is most
2868	# certainly right.
2869	break;;
2870    *.* )
2871        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2872	then :; else
2873	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2874	fi
2875	# We set ac_cv_exeext here because the later test for it is not
2876	# safe: cross compilers may not add the suffix if given an `-o'
2877	# argument, so we may need to know it at that point already.
2878	# Even if this section looks crufty: it has the advantage of
2879	# actually working.
2880	break;;
2881    * )
2882	break;;
2883  esac
2884done
2885test "$ac_cv_exeext" = no && ac_cv_exeext=
2886
2887else
2888  ac_file=''
2889fi
2890
2891{ echo "$as_me:$LINENO: result: $ac_file" >&5
2892echo "${ECHO_T}$ac_file" >&6; }
2893if test -z "$ac_file"; then
2894  echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2898See \`config.log' for more details." >&5
2899echo "$as_me: error: C compiler cannot create executables
2900See \`config.log' for more details." >&2;}
2901   { (exit 77); exit 77; }; }
2902fi
2903
2904ac_exeext=$ac_cv_exeext
2905
2906# Check that the compiler produces executables we can run.  If not, either
2907# the compiler is broken, or we cross compile.
2908{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2909echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2910# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2911# If not cross compiling, check that we can run a simple program.
2912if test "$cross_compiling" != yes; then
2913  if { ac_try='./$ac_file'
2914  { (case "(($ac_try" in
2915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916  *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919  (eval "$ac_try") 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; }; then
2923    cross_compiling=no
2924  else
2925    if test "$cross_compiling" = maybe; then
2926	cross_compiling=yes
2927    else
2928	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2929If you meant to cross compile, use \`--host'.
2930See \`config.log' for more details." >&5
2931echo "$as_me: error: cannot run C compiled programs.
2932If you meant to cross compile, use \`--host'.
2933See \`config.log' for more details." >&2;}
2934   { (exit 1); exit 1; }; }
2935    fi
2936  fi
2937fi
2938{ echo "$as_me:$LINENO: result: yes" >&5
2939echo "${ECHO_T}yes" >&6; }
2940
2941rm -f a.out a.exe conftest$ac_cv_exeext b.out
2942ac_clean_files=$ac_clean_files_save
2943# Check that the compiler produces executables we can run.  If not, either
2944# the compiler is broken, or we cross compile.
2945{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2946echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2947{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2948echo "${ECHO_T}$cross_compiling" >&6; }
2949
2950{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2951echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2952if { (ac_try="$ac_link"
2953case "(($ac_try" in
2954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955  *) ac_try_echo=$ac_try;;
2956esac
2957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958  (eval "$ac_link") 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; then
2962  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2963# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2964# work properly (i.e., refer to `conftest.exe'), while it won't with
2965# `rm'.
2966for ac_file in conftest.exe conftest conftest.*; do
2967  test -f "$ac_file" || continue
2968  case $ac_file in
2969    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2970    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2971	  break;;
2972    * ) break;;
2973  esac
2974done
2975else
2976  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2977See \`config.log' for more details." >&5
2978echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2979See \`config.log' for more details." >&2;}
2980   { (exit 1); exit 1; }; }
2981fi
2982
2983rm -f conftest$ac_cv_exeext
2984{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2985echo "${ECHO_T}$ac_cv_exeext" >&6; }
2986
2987rm -f conftest.$ac_ext
2988EXEEXT=$ac_cv_exeext
2989ac_exeext=$EXEEXT
2990{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2991echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2992if test "${ac_cv_objext+set}" = set; then
2993  echo $ECHO_N "(cached) $ECHO_C" >&6
2994else
2995  cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h.  */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010rm -f conftest.o conftest.obj
3011if { (ac_try="$ac_compile"
3012case "(($ac_try" in
3013  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014  *) ac_try_echo=$ac_try;;
3015esac
3016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017  (eval "$ac_compile") 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; then
3021  for ac_file in conftest.o conftest.obj conftest.*; do
3022  test -f "$ac_file" || continue;
3023  case $ac_file in
3024    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3025    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3026       break;;
3027  esac
3028done
3029else
3030  echo "$as_me: failed program was:" >&5
3031sed 's/^/| /' conftest.$ac_ext >&5
3032
3033{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3034See \`config.log' for more details." >&5
3035echo "$as_me: error: cannot compute suffix of object files: cannot compile
3036See \`config.log' for more details." >&2;}
3037   { (exit 1); exit 1; }; }
3038fi
3039
3040rm -f conftest.$ac_cv_objext conftest.$ac_ext
3041fi
3042{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3043echo "${ECHO_T}$ac_cv_objext" >&6; }
3044OBJEXT=$ac_cv_objext
3045ac_objext=$OBJEXT
3046{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3047echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3048if test "${ac_cv_c_compiler_gnu+set}" = set; then
3049  echo $ECHO_N "(cached) $ECHO_C" >&6
3050else
3051  cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061#ifndef __GNUC__
3062       choke me
3063#endif
3064
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext
3070if { (ac_try="$ac_compile"
3071case "(($ac_try" in
3072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073  *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076  (eval "$ac_compile") 2>conftest.er1
3077  ac_status=$?
3078  grep -v '^ *+' conftest.er1 >conftest.err
3079  rm -f conftest.er1
3080  cat conftest.err >&5
3081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082  (exit $ac_status); } && {
3083	 test -z "$ac_c_werror_flag" ||
3084	 test ! -s conftest.err
3085       } && test -s conftest.$ac_objext; then
3086  ac_compiler_gnu=yes
3087else
3088  echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091	ac_compiler_gnu=no
3092fi
3093
3094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3095ac_cv_c_compiler_gnu=$ac_compiler_gnu
3096
3097fi
3098{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3099echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3100GCC=`test $ac_compiler_gnu = yes && echo yes`
3101ac_test_CFLAGS=${CFLAGS+set}
3102ac_save_CFLAGS=$CFLAGS
3103{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3104echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3105if test "${ac_cv_prog_cc_g+set}" = set; then
3106  echo $ECHO_N "(cached) $ECHO_C" >&6
3107else
3108  ac_save_c_werror_flag=$ac_c_werror_flag
3109   ac_c_werror_flag=yes
3110   ac_cv_prog_cc_g=no
3111   CFLAGS="-g"
3112   cat >conftest.$ac_ext <<_ACEOF
3113/* confdefs.h.  */
3114_ACEOF
3115cat confdefs.h >>conftest.$ac_ext
3116cat >>conftest.$ac_ext <<_ACEOF
3117/* end confdefs.h.  */
3118
3119int
3120main ()
3121{
3122
3123  ;
3124  return 0;
3125}
3126_ACEOF
3127rm -f conftest.$ac_objext
3128if { (ac_try="$ac_compile"
3129case "(($ac_try" in
3130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131  *) ac_try_echo=$ac_try;;
3132esac
3133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134  (eval "$ac_compile") 2>conftest.er1
3135  ac_status=$?
3136  grep -v '^ *+' conftest.er1 >conftest.err
3137  rm -f conftest.er1
3138  cat conftest.err >&5
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); } && {
3141	 test -z "$ac_c_werror_flag" ||
3142	 test ! -s conftest.err
3143       } && test -s conftest.$ac_objext; then
3144  ac_cv_prog_cc_g=yes
3145else
3146  echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149	CFLAGS=""
3150      cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h.  */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h.  */
3156
3157int
3158main ()
3159{
3160
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext
3166if { (ac_try="$ac_compile"
3167case "(($ac_try" in
3168  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169  *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172  (eval "$ac_compile") 2>conftest.er1
3173  ac_status=$?
3174  grep -v '^ *+' conftest.er1 >conftest.err
3175  rm -f conftest.er1
3176  cat conftest.err >&5
3177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178  (exit $ac_status); } && {
3179	 test -z "$ac_c_werror_flag" ||
3180	 test ! -s conftest.err
3181       } && test -s conftest.$ac_objext; then
3182  :
3183else
3184  echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187	ac_c_werror_flag=$ac_save_c_werror_flag
3188	 CFLAGS="-g"
3189	 cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h.  */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h.  */
3195
3196int
3197main ()
3198{
3199
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204rm -f conftest.$ac_objext
3205if { (ac_try="$ac_compile"
3206case "(($ac_try" in
3207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208  *) ac_try_echo=$ac_try;;
3209esac
3210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3211  (eval "$ac_compile") 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } && {
3218	 test -z "$ac_c_werror_flag" ||
3219	 test ! -s conftest.err
3220       } && test -s conftest.$ac_objext; then
3221  ac_cv_prog_cc_g=yes
3222else
3223  echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230fi
3231
3232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233fi
3234
3235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236   ac_c_werror_flag=$ac_save_c_werror_flag
3237fi
3238{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3239echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3240if test "$ac_test_CFLAGS" = set; then
3241  CFLAGS=$ac_save_CFLAGS
3242elif test $ac_cv_prog_cc_g = yes; then
3243  if test "$GCC" = yes; then
3244    CFLAGS="-g -O2"
3245  else
3246    CFLAGS="-g"
3247  fi
3248else
3249  if test "$GCC" = yes; then
3250    CFLAGS="-O2"
3251  else
3252    CFLAGS=
3253  fi
3254fi
3255{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3256echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3257if test "${ac_cv_prog_cc_c89+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  ac_cv_prog_cc_c89=no
3261ac_save_CC=$CC
3262cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h.  */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h.  */
3268#include <stdarg.h>
3269#include <stdio.h>
3270#include <sys/types.h>
3271#include <sys/stat.h>
3272/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3273struct buf { int x; };
3274FILE * (*rcsopen) (struct buf *, struct stat *, int);
3275static char *e (p, i)
3276     char **p;
3277     int i;
3278{
3279  return p[i];
3280}
3281static char *f (char * (*g) (char **, int), char **p, ...)
3282{
3283  char *s;
3284  va_list v;
3285  va_start (v,p);
3286  s = g (p, va_arg (v,int));
3287  va_end (v);
3288  return s;
3289}
3290
3291/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3292   function prototypes and stuff, but not '\xHH' hex character constants.
3293   These don't provoke an error unfortunately, instead are silently treated
3294   as 'x'.  The following induces an error, until -std is added to get
3295   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3296   array size at least.  It's necessary to write '\x00'==0 to get something
3297   that's true only with -std.  */
3298int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3299
3300/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3301   inside strings and character constants.  */
3302#define FOO(x) 'x'
3303int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3304
3305int test (int i, double x);
3306struct s1 {int (*f) (int a);};
3307struct s2 {int (*f) (double a);};
3308int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309int argc;
3310char **argv;
3311int
3312main ()
3313{
3314return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3315  ;
3316  return 0;
3317}
3318_ACEOF
3319for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3320	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3321do
3322  CC="$ac_save_CC $ac_arg"
3323  rm -f conftest.$ac_objext
3324if { (ac_try="$ac_compile"
3325case "(($ac_try" in
3326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327  *) ac_try_echo=$ac_try;;
3328esac
3329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330  (eval "$ac_compile") 2>conftest.er1
3331  ac_status=$?
3332  grep -v '^ *+' conftest.er1 >conftest.err
3333  rm -f conftest.er1
3334  cat conftest.err >&5
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); } && {
3337	 test -z "$ac_c_werror_flag" ||
3338	 test ! -s conftest.err
3339       } && test -s conftest.$ac_objext; then
3340  ac_cv_prog_cc_c89=$ac_arg
3341else
3342  echo "$as_me: failed program was:" >&5
3343sed 's/^/| /' conftest.$ac_ext >&5
3344
3345
3346fi
3347
3348rm -f core conftest.err conftest.$ac_objext
3349  test "x$ac_cv_prog_cc_c89" != "xno" && break
3350done
3351rm -f conftest.$ac_ext
3352CC=$ac_save_CC
3353
3354fi
3355# AC_CACHE_VAL
3356case "x$ac_cv_prog_cc_c89" in
3357  x)
3358    { echo "$as_me:$LINENO: result: none needed" >&5
3359echo "${ECHO_T}none needed" >&6; } ;;
3360  xno)
3361    { echo "$as_me:$LINENO: result: unsupported" >&5
3362echo "${ECHO_T}unsupported" >&6; } ;;
3363  *)
3364    CC="$CC $ac_cv_prog_cc_c89"
3365    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3366echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3367esac
3368
3369
3370ac_ext=c
3371ac_cpp='$CPP $CPPFLAGS'
3372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375DEPDIR="${am__leading_dot}deps"
3376
3377ac_config_commands="$ac_config_commands depfiles"
3378
3379
3380am_make=${MAKE-make}
3381cat > confinc << 'END'
3382am__doit:
3383	@echo done
3384.PHONY: am__doit
3385END
3386# If we don't find an include directive, just comment out the code.
3387{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3388echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3389am__include="#"
3390am__quote=
3391_am_result=none
3392# First try GNU make style include.
3393echo "include confinc" > confmf
3394# We grep out `Entering directory' and `Leaving directory'
3395# messages which can occur if `w' ends up in MAKEFLAGS.
3396# In particular we don't look at `^make:' because GNU make might
3397# be invoked under some other name (usually "gmake"), in which
3398# case it prints its new name instead of `make'.
3399if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3400   am__include=include
3401   am__quote=
3402   _am_result=GNU
3403fi
3404# Now try BSD make style include.
3405if test "$am__include" = "#"; then
3406   echo '.include "confinc"' > confmf
3407   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3408      am__include=.include
3409      am__quote="\""
3410      _am_result=BSD
3411   fi
3412fi
3413
3414
3415{ echo "$as_me:$LINENO: result: $_am_result" >&5
3416echo "${ECHO_T}$_am_result" >&6; }
3417rm -f confinc confmf
3418
3419# Check whether --enable-dependency-tracking was given.
3420if test "${enable_dependency_tracking+set}" = set; then
3421  enableval=$enable_dependency_tracking;
3422fi
3423
3424if test "x$enable_dependency_tracking" != xno; then
3425  am_depcomp="$ac_aux_dir/depcomp"
3426  AMDEPBACKSLASH='\'
3427fi
3428 if test "x$enable_dependency_tracking" != xno; then
3429  AMDEP_TRUE=
3430  AMDEP_FALSE='#'
3431else
3432  AMDEP_TRUE='#'
3433  AMDEP_FALSE=
3434fi
3435
3436
3437
3438depcc="$CC"   am_compiler_list=
3439
3440{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3441echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3442if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3443  echo $ECHO_N "(cached) $ECHO_C" >&6
3444else
3445  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3446  # We make a subdir and do the tests there.  Otherwise we can end up
3447  # making bogus files that we don't know about and never remove.  For
3448  # instance it was reported that on HP-UX the gcc test will end up
3449  # making a dummy file named `D' -- because `-MD' means `put the output
3450  # in D'.
3451  mkdir conftest.dir
3452  # Copy depcomp to subdir because otherwise we won't find it if we're
3453  # using a relative directory.
3454  cp "$am_depcomp" conftest.dir
3455  cd conftest.dir
3456  # We will build objects and dependencies in a subdirectory because
3457  # it helps to detect inapplicable dependency modes.  For instance
3458  # both Tru64's cc and ICC support -MD to output dependencies as a
3459  # side effect of compilation, but ICC will put the dependencies in
3460  # the current directory while Tru64 will put them in the object
3461  # directory.
3462  mkdir sub
3463
3464  am_cv_CC_dependencies_compiler_type=none
3465  if test "$am_compiler_list" = ""; then
3466     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3467  fi
3468  for depmode in $am_compiler_list; do
3469    # Setup a source with many dependencies, because some compilers
3470    # like to wrap large dependency lists on column 80 (with \), and
3471    # we should not choose a depcomp mode which is confused by this.
3472    #
3473    # We need to recreate these files for each test, as the compiler may
3474    # overwrite some of them when testing with obscure command lines.
3475    # This happens at least with the AIX C compiler.
3476    : > sub/conftest.c
3477    for i in 1 2 3 4 5 6; do
3478      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3479      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3480      # Solaris 8's {/usr,}/bin/sh.
3481      touch sub/conftst$i.h
3482    done
3483    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3484
3485    case $depmode in
3486    nosideeffect)
3487      # after this tag, mechanisms are not by side-effect, so they'll
3488      # only be used when explicitly requested
3489      if test "x$enable_dependency_tracking" = xyes; then
3490	continue
3491      else
3492	break
3493      fi
3494      ;;
3495    none) break ;;
3496    esac
3497    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3498    # mode.  It turns out that the SunPro C++ compiler does not properly
3499    # handle `-M -o', and we need to detect this.
3500    if depmode=$depmode \
3501       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3502       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3503       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3504         >/dev/null 2>conftest.err &&
3505       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3506       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3507       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3508       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3509      # icc doesn't choke on unknown options, it will just issue warnings
3510      # or remarks (even with -Werror).  So we grep stderr for any message
3511      # that says an option was ignored or not supported.
3512      # When given -MP, icc 7.0 and 7.1 complain thusly:
3513      #   icc: Command line warning: ignoring option '-M'; no argument required
3514      # The diagnosis changed in icc 8.0:
3515      #   icc: Command line remark: option '-MP' not supported
3516      if (grep 'ignoring option' conftest.err ||
3517          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3518        am_cv_CC_dependencies_compiler_type=$depmode
3519        break
3520      fi
3521    fi
3522  done
3523
3524  cd ..
3525  rm -rf conftest.dir
3526else
3527  am_cv_CC_dependencies_compiler_type=none
3528fi
3529
3530fi
3531{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3532echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3533CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3534
3535 if
3536  test "x$enable_dependency_tracking" != xno \
3537  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3538  am__fastdepCC_TRUE=
3539  am__fastdepCC_FALSE='#'
3540else
3541  am__fastdepCC_TRUE='#'
3542  am__fastdepCC_FALSE=
3543fi
3544
3545
3546ac_ext=c
3547ac_cpp='$CPP $CPPFLAGS'
3548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551if test -n "$ac_tool_prefix"; then
3552  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3553set dummy ${ac_tool_prefix}gcc; ac_word=$2
3554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3556if test "${ac_cv_prog_CC+set}" = set; then
3557  echo $ECHO_N "(cached) $ECHO_C" >&6
3558else
3559  if test -n "$CC"; then
3560  ac_cv_prog_CC="$CC" # Let the user override the test.
3561else
3562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563for as_dir in $PATH
3564do
3565  IFS=$as_save_IFS
3566  test -z "$as_dir" && as_dir=.
3567  for ac_exec_ext in '' $ac_executable_extensions; do
3568  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571    break 2
3572  fi
3573done
3574done
3575IFS=$as_save_IFS
3576
3577fi
3578fi
3579CC=$ac_cv_prog_CC
3580if test -n "$CC"; then
3581  { echo "$as_me:$LINENO: result: $CC" >&5
3582echo "${ECHO_T}$CC" >&6; }
3583else
3584  { echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6; }
3586fi
3587
3588
3589fi
3590if test -z "$ac_cv_prog_CC"; then
3591  ac_ct_CC=$CC
3592  # Extract the first word of "gcc", so it can be a program name with args.
3593set dummy gcc; ac_word=$2
3594{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3596if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3597  echo $ECHO_N "(cached) $ECHO_C" >&6
3598else
3599  if test -n "$ac_ct_CC"; then
3600  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3601else
3602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603for as_dir in $PATH
3604do
3605  IFS=$as_save_IFS
3606  test -z "$as_dir" && as_dir=.
3607  for ac_exec_ext in '' $ac_executable_extensions; do
3608  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3609    ac_cv_prog_ac_ct_CC="gcc"
3610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611    break 2
3612  fi
3613done
3614done
3615IFS=$as_save_IFS
3616
3617fi
3618fi
3619ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620if test -n "$ac_ct_CC"; then
3621  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3622echo "${ECHO_T}$ac_ct_CC" >&6; }
3623else
3624  { echo "$as_me:$LINENO: result: no" >&5
3625echo "${ECHO_T}no" >&6; }
3626fi
3627
3628  if test "x$ac_ct_CC" = x; then
3629    CC=""
3630  else
3631    case $cross_compiling:$ac_tool_warned in
3632yes:)
3633{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3634whose name does not start with the host triplet.  If you think this
3635configuration is useful to you, please write to autoconf@gnu.org." >&5
3636echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3637whose name does not start with the host triplet.  If you think this
3638configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3639ac_tool_warned=yes ;;
3640esac
3641    CC=$ac_ct_CC
3642  fi
3643else
3644  CC="$ac_cv_prog_CC"
3645fi
3646
3647if test -z "$CC"; then
3648          if test -n "$ac_tool_prefix"; then
3649    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3650set dummy ${ac_tool_prefix}cc; ac_word=$2
3651{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3653if test "${ac_cv_prog_CC+set}" = set; then
3654  echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
3656  if test -n "$CC"; then
3657  ac_cv_prog_CC="$CC" # Let the user override the test.
3658else
3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660for as_dir in $PATH
3661do
3662  IFS=$as_save_IFS
3663  test -z "$as_dir" && as_dir=.
3664  for ac_exec_ext in '' $ac_executable_extensions; do
3665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666    ac_cv_prog_CC="${ac_tool_prefix}cc"
3667    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3668    break 2
3669  fi
3670done
3671done
3672IFS=$as_save_IFS
3673
3674fi
3675fi
3676CC=$ac_cv_prog_CC
3677if test -n "$CC"; then
3678  { echo "$as_me:$LINENO: result: $CC" >&5
3679echo "${ECHO_T}$CC" >&6; }
3680else
3681  { echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6; }
3683fi
3684
3685
3686  fi
3687fi
3688if test -z "$CC"; then
3689  # Extract the first word of "cc", so it can be a program name with args.
3690set dummy cc; ac_word=$2
3691{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3693if test "${ac_cv_prog_CC+set}" = set; then
3694  echo $ECHO_N "(cached) $ECHO_C" >&6
3695else
3696  if test -n "$CC"; then
3697  ac_cv_prog_CC="$CC" # Let the user override the test.
3698else
3699  ac_prog_rejected=no
3700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701for as_dir in $PATH
3702do
3703  IFS=$as_save_IFS
3704  test -z "$as_dir" && as_dir=.
3705  for ac_exec_ext in '' $ac_executable_extensions; do
3706  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3708       ac_prog_rejected=yes
3709       continue
3710     fi
3711    ac_cv_prog_CC="cc"
3712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713    break 2
3714  fi
3715done
3716done
3717IFS=$as_save_IFS
3718
3719if test $ac_prog_rejected = yes; then
3720  # We found a bogon in the path, so make sure we never use it.
3721  set dummy $ac_cv_prog_CC
3722  shift
3723  if test $# != 0; then
3724    # We chose a different compiler from the bogus one.
3725    # However, it has the same basename, so the bogon will be chosen
3726    # first if we set CC to just the basename; use the full file name.
3727    shift
3728    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3729  fi
3730fi
3731fi
3732fi
3733CC=$ac_cv_prog_CC
3734if test -n "$CC"; then
3735  { echo "$as_me:$LINENO: result: $CC" >&5
3736echo "${ECHO_T}$CC" >&6; }
3737else
3738  { echo "$as_me:$LINENO: result: no" >&5
3739echo "${ECHO_T}no" >&6; }
3740fi
3741
3742
3743fi
3744if test -z "$CC"; then
3745  if test -n "$ac_tool_prefix"; then
3746  for ac_prog in cl.exe
3747  do
3748    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3749set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3750{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3752if test "${ac_cv_prog_CC+set}" = set; then
3753  echo $ECHO_N "(cached) $ECHO_C" >&6
3754else
3755  if test -n "$CC"; then
3756  ac_cv_prog_CC="$CC" # Let the user override the test.
3757else
3758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759for as_dir in $PATH
3760do
3761  IFS=$as_save_IFS
3762  test -z "$as_dir" && as_dir=.
3763  for ac_exec_ext in '' $ac_executable_extensions; do
3764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3765    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3766    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767    break 2
3768  fi
3769done
3770done
3771IFS=$as_save_IFS
3772
3773fi
3774fi
3775CC=$ac_cv_prog_CC
3776if test -n "$CC"; then
3777  { echo "$as_me:$LINENO: result: $CC" >&5
3778echo "${ECHO_T}$CC" >&6; }
3779else
3780  { echo "$as_me:$LINENO: result: no" >&5
3781echo "${ECHO_T}no" >&6; }
3782fi
3783
3784
3785    test -n "$CC" && break
3786  done
3787fi
3788if test -z "$CC"; then
3789  ac_ct_CC=$CC
3790  for ac_prog in cl.exe
3791do
3792  # Extract the first word of "$ac_prog", so it can be a program name with args.
3793set dummy $ac_prog; ac_word=$2
3794{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3795echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3796if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3797  echo $ECHO_N "(cached) $ECHO_C" >&6
3798else
3799  if test -n "$ac_ct_CC"; then
3800  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3801else
3802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803for as_dir in $PATH
3804do
3805  IFS=$as_save_IFS
3806  test -z "$as_dir" && as_dir=.
3807  for ac_exec_ext in '' $ac_executable_extensions; do
3808  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809    ac_cv_prog_ac_ct_CC="$ac_prog"
3810    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811    break 2
3812  fi
3813done
3814done
3815IFS=$as_save_IFS
3816
3817fi
3818fi
3819ac_ct_CC=$ac_cv_prog_ac_ct_CC
3820if test -n "$ac_ct_CC"; then
3821  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3822echo "${ECHO_T}$ac_ct_CC" >&6; }
3823else
3824  { echo "$as_me:$LINENO: result: no" >&5
3825echo "${ECHO_T}no" >&6; }
3826fi
3827
3828
3829  test -n "$ac_ct_CC" && break
3830done
3831
3832  if test "x$ac_ct_CC" = x; then
3833    CC=""
3834  else
3835    case $cross_compiling:$ac_tool_warned in
3836yes:)
3837{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3838whose name does not start with the host triplet.  If you think this
3839configuration is useful to you, please write to autoconf@gnu.org." >&5
3840echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3841whose name does not start with the host triplet.  If you think this
3842configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3843ac_tool_warned=yes ;;
3844esac
3845    CC=$ac_ct_CC
3846  fi
3847fi
3848
3849fi
3850
3851
3852test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3853See \`config.log' for more details." >&5
3854echo "$as_me: error: no acceptable C compiler found in \$PATH
3855See \`config.log' for more details." >&2;}
3856   { (exit 1); exit 1; }; }
3857
3858# Provide some information about the compiler.
3859echo "$as_me:$LINENO: checking for C compiler version" >&5
3860ac_compiler=`set X $ac_compile; echo $2`
3861{ (ac_try="$ac_compiler --version >&5"
3862case "(($ac_try" in
3863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864  *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867  (eval "$ac_compiler --version >&5") 2>&5
3868  ac_status=$?
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); }
3871{ (ac_try="$ac_compiler -v >&5"
3872case "(($ac_try" in
3873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874  *) ac_try_echo=$ac_try;;
3875esac
3876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3877  (eval "$ac_compiler -v >&5") 2>&5
3878  ac_status=$?
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); }
3881{ (ac_try="$ac_compiler -V >&5"
3882case "(($ac_try" in
3883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884  *) ac_try_echo=$ac_try;;
3885esac
3886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3887  (eval "$ac_compiler -V >&5") 2>&5
3888  ac_status=$?
3889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890  (exit $ac_status); }
3891
3892{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3893echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3894if test "${ac_cv_c_compiler_gnu+set}" = set; then
3895  echo $ECHO_N "(cached) $ECHO_C" >&6
3896else
3897  cat >conftest.$ac_ext <<_ACEOF
3898/* confdefs.h.  */
3899_ACEOF
3900cat confdefs.h >>conftest.$ac_ext
3901cat >>conftest.$ac_ext <<_ACEOF
3902/* end confdefs.h.  */
3903
3904int
3905main ()
3906{
3907#ifndef __GNUC__
3908       choke me
3909#endif
3910
3911  ;
3912  return 0;
3913}
3914_ACEOF
3915rm -f conftest.$ac_objext
3916if { (ac_try="$ac_compile"
3917case "(($ac_try" in
3918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919  *) ac_try_echo=$ac_try;;
3920esac
3921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922  (eval "$ac_compile") 2>conftest.er1
3923  ac_status=$?
3924  grep -v '^ *+' conftest.er1 >conftest.err
3925  rm -f conftest.er1
3926  cat conftest.err >&5
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); } && {
3929	 test -z "$ac_c_werror_flag" ||
3930	 test ! -s conftest.err
3931       } && test -s conftest.$ac_objext; then
3932  ac_compiler_gnu=yes
3933else
3934  echo "$as_me: failed program was:" >&5
3935sed 's/^/| /' conftest.$ac_ext >&5
3936
3937	ac_compiler_gnu=no
3938fi
3939
3940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941ac_cv_c_compiler_gnu=$ac_compiler_gnu
3942
3943fi
3944{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3945echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3946GCC=`test $ac_compiler_gnu = yes && echo yes`
3947ac_test_CFLAGS=${CFLAGS+set}
3948ac_save_CFLAGS=$CFLAGS
3949{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3950echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3951if test "${ac_cv_prog_cc_g+set}" = set; then
3952  echo $ECHO_N "(cached) $ECHO_C" >&6
3953else
3954  ac_save_c_werror_flag=$ac_c_werror_flag
3955   ac_c_werror_flag=yes
3956   ac_cv_prog_cc_g=no
3957   CFLAGS="-g"
3958   cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h.  */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h.  */
3964
3965int
3966main ()
3967{
3968
3969  ;
3970  return 0;
3971}
3972_ACEOF
3973rm -f conftest.$ac_objext
3974if { (ac_try="$ac_compile"
3975case "(($ac_try" in
3976  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977  *) ac_try_echo=$ac_try;;
3978esac
3979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980  (eval "$ac_compile") 2>conftest.er1
3981  ac_status=$?
3982  grep -v '^ *+' conftest.er1 >conftest.err
3983  rm -f conftest.er1
3984  cat conftest.err >&5
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); } && {
3987	 test -z "$ac_c_werror_flag" ||
3988	 test ! -s conftest.err
3989       } && test -s conftest.$ac_objext; then
3990  ac_cv_prog_cc_g=yes
3991else
3992  echo "$as_me: failed program was:" >&5
3993sed 's/^/| /' conftest.$ac_ext >&5
3994
3995	CFLAGS=""
3996      cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h.  */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h.  */
4002
4003int
4004main ()
4005{
4006
4007  ;
4008  return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext
4012if { (ac_try="$ac_compile"
4013case "(($ac_try" in
4014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015  *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018  (eval "$ac_compile") 2>conftest.er1
4019  ac_status=$?
4020  grep -v '^ *+' conftest.er1 >conftest.err
4021  rm -f conftest.er1
4022  cat conftest.err >&5
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); } && {
4025	 test -z "$ac_c_werror_flag" ||
4026	 test ! -s conftest.err
4027       } && test -s conftest.$ac_objext; then
4028  :
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033	ac_c_werror_flag=$ac_save_c_werror_flag
4034	 CFLAGS="-g"
4035	 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h.  */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h.  */
4041
4042int
4043main ()
4044{
4045
4046  ;
4047  return 0;
4048}
4049_ACEOF
4050rm -f conftest.$ac_objext
4051if { (ac_try="$ac_compile"
4052case "(($ac_try" in
4053  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054  *) ac_try_echo=$ac_try;;
4055esac
4056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057  (eval "$ac_compile") 2>conftest.er1
4058  ac_status=$?
4059  grep -v '^ *+' conftest.er1 >conftest.err
4060  rm -f conftest.er1
4061  cat conftest.err >&5
4062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063  (exit $ac_status); } && {
4064	 test -z "$ac_c_werror_flag" ||
4065	 test ! -s conftest.err
4066       } && test -s conftest.$ac_objext; then
4067  ac_cv_prog_cc_g=yes
4068else
4069  echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072
4073fi
4074
4075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076fi
4077
4078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079fi
4080
4081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082   ac_c_werror_flag=$ac_save_c_werror_flag
4083fi
4084{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4085echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4086if test "$ac_test_CFLAGS" = set; then
4087  CFLAGS=$ac_save_CFLAGS
4088elif test $ac_cv_prog_cc_g = yes; then
4089  if test "$GCC" = yes; then
4090    CFLAGS="-g -O2"
4091  else
4092    CFLAGS="-g"
4093  fi
4094else
4095  if test "$GCC" = yes; then
4096    CFLAGS="-O2"
4097  else
4098    CFLAGS=
4099  fi
4100fi
4101{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4102echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4103if test "${ac_cv_prog_cc_c89+set}" = set; then
4104  echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106  ac_cv_prog_cc_c89=no
4107ac_save_CC=$CC
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h.  */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h.  */
4114#include <stdarg.h>
4115#include <stdio.h>
4116#include <sys/types.h>
4117#include <sys/stat.h>
4118/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4119struct buf { int x; };
4120FILE * (*rcsopen) (struct buf *, struct stat *, int);
4121static char *e (p, i)
4122     char **p;
4123     int i;
4124{
4125  return p[i];
4126}
4127static char *f (char * (*g) (char **, int), char **p, ...)
4128{
4129  char *s;
4130  va_list v;
4131  va_start (v,p);
4132  s = g (p, va_arg (v,int));
4133  va_end (v);
4134  return s;
4135}
4136
4137/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4138   function prototypes and stuff, but not '\xHH' hex character constants.
4139   These don't provoke an error unfortunately, instead are silently treated
4140   as 'x'.  The following induces an error, until -std is added to get
4141   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4142   array size at least.  It's necessary to write '\x00'==0 to get something
4143   that's true only with -std.  */
4144int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4145
4146/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4147   inside strings and character constants.  */
4148#define FOO(x) 'x'
4149int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4150
4151int test (int i, double x);
4152struct s1 {int (*f) (int a);};
4153struct s2 {int (*f) (double a);};
4154int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4155int argc;
4156char **argv;
4157int
4158main ()
4159{
4160return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4161  ;
4162  return 0;
4163}
4164_ACEOF
4165for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4166	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4167do
4168  CC="$ac_save_CC $ac_arg"
4169  rm -f conftest.$ac_objext
4170if { (ac_try="$ac_compile"
4171case "(($ac_try" in
4172  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173  *) ac_try_echo=$ac_try;;
4174esac
4175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176  (eval "$ac_compile") 2>conftest.er1
4177  ac_status=$?
4178  grep -v '^ *+' conftest.er1 >conftest.err
4179  rm -f conftest.er1
4180  cat conftest.err >&5
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); } && {
4183	 test -z "$ac_c_werror_flag" ||
4184	 test ! -s conftest.err
4185       } && test -s conftest.$ac_objext; then
4186  ac_cv_prog_cc_c89=$ac_arg
4187else
4188  echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
4190
4191
4192fi
4193
4194rm -f core conftest.err conftest.$ac_objext
4195  test "x$ac_cv_prog_cc_c89" != "xno" && break
4196done
4197rm -f conftest.$ac_ext
4198CC=$ac_save_CC
4199
4200fi
4201# AC_CACHE_VAL
4202case "x$ac_cv_prog_cc_c89" in
4203  x)
4204    { echo "$as_me:$LINENO: result: none needed" >&5
4205echo "${ECHO_T}none needed" >&6; } ;;
4206  xno)
4207    { echo "$as_me:$LINENO: result: unsupported" >&5
4208echo "${ECHO_T}unsupported" >&6; } ;;
4209  *)
4210    CC="$CC $ac_cv_prog_cc_c89"
4211    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4212echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4213esac
4214
4215
4216ac_ext=c
4217ac_cpp='$CPP $CPPFLAGS'
4218ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221
4222depcc="$CC"   am_compiler_list=
4223
4224{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4225echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4226if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4227  echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4230  # We make a subdir and do the tests there.  Otherwise we can end up
4231  # making bogus files that we don't know about and never remove.  For
4232  # instance it was reported that on HP-UX the gcc test will end up
4233  # making a dummy file named `D' -- because `-MD' means `put the output
4234  # in D'.
4235  mkdir conftest.dir
4236  # Copy depcomp to subdir because otherwise we won't find it if we're
4237  # using a relative directory.
4238  cp "$am_depcomp" conftest.dir
4239  cd conftest.dir
4240  # We will build objects and dependencies in a subdirectory because
4241  # it helps to detect inapplicable dependency modes.  For instance
4242  # both Tru64's cc and ICC support -MD to output dependencies as a
4243  # side effect of compilation, but ICC will put the dependencies in
4244  # the current directory while Tru64 will put them in the object
4245  # directory.
4246  mkdir sub
4247
4248  am_cv_CC_dependencies_compiler_type=none
4249  if test "$am_compiler_list" = ""; then
4250     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4251  fi
4252  for depmode in $am_compiler_list; do
4253    # Setup a source with many dependencies, because some compilers
4254    # like to wrap large dependency lists on column 80 (with \), and
4255    # we should not choose a depcomp mode which is confused by this.
4256    #
4257    # We need to recreate these files for each test, as the compiler may
4258    # overwrite some of them when testing with obscure command lines.
4259    # This happens at least with the AIX C compiler.
4260    : > sub/conftest.c
4261    for i in 1 2 3 4 5 6; do
4262      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4263      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4264      # Solaris 8's {/usr,}/bin/sh.
4265      touch sub/conftst$i.h
4266    done
4267    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4268
4269    case $depmode in
4270    nosideeffect)
4271      # after this tag, mechanisms are not by side-effect, so they'll
4272      # only be used when explicitly requested
4273      if test "x$enable_dependency_tracking" = xyes; then
4274	continue
4275      else
4276	break
4277      fi
4278      ;;
4279    none) break ;;
4280    esac
4281    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4282    # mode.  It turns out that the SunPro C++ compiler does not properly
4283    # handle `-M -o', and we need to detect this.
4284    if depmode=$depmode \
4285       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4286       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4287       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4288         >/dev/null 2>conftest.err &&
4289       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4290       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4291       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4292       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4293      # icc doesn't choke on unknown options, it will just issue warnings
4294      # or remarks (even with -Werror).  So we grep stderr for any message
4295      # that says an option was ignored or not supported.
4296      # When given -MP, icc 7.0 and 7.1 complain thusly:
4297      #   icc: Command line warning: ignoring option '-M'; no argument required
4298      # The diagnosis changed in icc 8.0:
4299      #   icc: Command line remark: option '-MP' not supported
4300      if (grep 'ignoring option' conftest.err ||
4301          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4302        am_cv_CC_dependencies_compiler_type=$depmode
4303        break
4304      fi
4305    fi
4306  done
4307
4308  cd ..
4309  rm -rf conftest.dir
4310else
4311  am_cv_CC_dependencies_compiler_type=none
4312fi
4313
4314fi
4315{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4316echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4317CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4318
4319 if
4320  test "x$enable_dependency_tracking" != xno \
4321  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4322  am__fastdepCC_TRUE=
4323  am__fastdepCC_FALSE='#'
4324else
4325  am__fastdepCC_TRUE='#'
4326  am__fastdepCC_FALSE=
4327fi
4328
4329
4330
4331am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4332
4333ac_ext=c
4334ac_cpp='$CPP $CPPFLAGS'
4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4339echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4340# On Suns, sometimes $CPP names a directory.
4341if test -n "$CPP" && test -d "$CPP"; then
4342  CPP=
4343fi
4344if test -z "$CPP"; then
4345  if test "${ac_cv_prog_CPP+set}" = set; then
4346  echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
4348      # Double quotes because CPP needs to be expanded
4349    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4350    do
4351      ac_preproc_ok=false
4352for ac_c_preproc_warn_flag in '' yes
4353do
4354  # Use a header file that comes with gcc, so configuring glibc
4355  # with a fresh cross-compiler works.
4356  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4357  # <limits.h> exists even on freestanding compilers.
4358  # On the NeXT, cc -E runs the code through the compiler's parser,
4359  # not just through cpp. "Syntax error" is here to catch this case.
4360  cat >conftest.$ac_ext <<_ACEOF
4361/* confdefs.h.  */
4362_ACEOF
4363cat confdefs.h >>conftest.$ac_ext
4364cat >>conftest.$ac_ext <<_ACEOF
4365/* end confdefs.h.  */
4366#ifdef __STDC__
4367# include <limits.h>
4368#else
4369# include <assert.h>
4370#endif
4371		     Syntax error
4372_ACEOF
4373if { (ac_try="$ac_cpp conftest.$ac_ext"
4374case "(($ac_try" in
4375  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376  *) ac_try_echo=$ac_try;;
4377esac
4378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4379  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4380  ac_status=$?
4381  grep -v '^ *+' conftest.er1 >conftest.err
4382  rm -f conftest.er1
4383  cat conftest.err >&5
4384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385  (exit $ac_status); } >/dev/null && {
4386	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4387	 test ! -s conftest.err
4388       }; then
4389  :
4390else
4391  echo "$as_me: failed program was:" >&5
4392sed 's/^/| /' conftest.$ac_ext >&5
4393
4394  # Broken: fails on valid input.
4395continue
4396fi
4397
4398rm -f conftest.err conftest.$ac_ext
4399
4400  # OK, works on sane cases.  Now check whether nonexistent headers
4401  # can be detected and how.
4402  cat >conftest.$ac_ext <<_ACEOF
4403/* confdefs.h.  */
4404_ACEOF
4405cat confdefs.h >>conftest.$ac_ext
4406cat >>conftest.$ac_ext <<_ACEOF
4407/* end confdefs.h.  */
4408#include <ac_nonexistent.h>
4409_ACEOF
4410if { (ac_try="$ac_cpp conftest.$ac_ext"
4411case "(($ac_try" in
4412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413  *) ac_try_echo=$ac_try;;
4414esac
4415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4417  ac_status=$?
4418  grep -v '^ *+' conftest.er1 >conftest.err
4419  rm -f conftest.er1
4420  cat conftest.err >&5
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); } >/dev/null && {
4423	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4424	 test ! -s conftest.err
4425       }; then
4426  # Broken: success on invalid input.
4427continue
4428else
4429  echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432  # Passes both tests.
4433ac_preproc_ok=:
4434break
4435fi
4436
4437rm -f conftest.err conftest.$ac_ext
4438
4439done
4440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4441rm -f conftest.err conftest.$ac_ext
4442if $ac_preproc_ok; then
4443  break
4444fi
4445
4446    done
4447    ac_cv_prog_CPP=$CPP
4448
4449fi
4450  CPP=$ac_cv_prog_CPP
4451else
4452  ac_cv_prog_CPP=$CPP
4453fi
4454{ echo "$as_me:$LINENO: result: $CPP" >&5
4455echo "${ECHO_T}$CPP" >&6; }
4456ac_preproc_ok=false
4457for ac_c_preproc_warn_flag in '' yes
4458do
4459  # Use a header file that comes with gcc, so configuring glibc
4460  # with a fresh cross-compiler works.
4461  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4462  # <limits.h> exists even on freestanding compilers.
4463  # On the NeXT, cc -E runs the code through the compiler's parser,
4464  # not just through cpp. "Syntax error" is here to catch this case.
4465  cat >conftest.$ac_ext <<_ACEOF
4466/* confdefs.h.  */
4467_ACEOF
4468cat confdefs.h >>conftest.$ac_ext
4469cat >>conftest.$ac_ext <<_ACEOF
4470/* end confdefs.h.  */
4471#ifdef __STDC__
4472# include <limits.h>
4473#else
4474# include <assert.h>
4475#endif
4476		     Syntax error
4477_ACEOF
4478if { (ac_try="$ac_cpp conftest.$ac_ext"
4479case "(($ac_try" in
4480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481  *) ac_try_echo=$ac_try;;
4482esac
4483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4485  ac_status=$?
4486  grep -v '^ *+' conftest.er1 >conftest.err
4487  rm -f conftest.er1
4488  cat conftest.err >&5
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); } >/dev/null && {
4491	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4492	 test ! -s conftest.err
4493       }; then
4494  :
4495else
4496  echo "$as_me: failed program was:" >&5
4497sed 's/^/| /' conftest.$ac_ext >&5
4498
4499  # Broken: fails on valid input.
4500continue
4501fi
4502
4503rm -f conftest.err conftest.$ac_ext
4504
4505  # OK, works on sane cases.  Now check whether nonexistent headers
4506  # can be detected and how.
4507  cat >conftest.$ac_ext <<_ACEOF
4508/* confdefs.h.  */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h.  */
4513#include <ac_nonexistent.h>
4514_ACEOF
4515if { (ac_try="$ac_cpp conftest.$ac_ext"
4516case "(($ac_try" in
4517  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518  *) ac_try_echo=$ac_try;;
4519esac
4520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4522  ac_status=$?
4523  grep -v '^ *+' conftest.er1 >conftest.err
4524  rm -f conftest.er1
4525  cat conftest.err >&5
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); } >/dev/null && {
4528	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4529	 test ! -s conftest.err
4530       }; then
4531  # Broken: success on invalid input.
4532continue
4533else
4534  echo "$as_me: failed program was:" >&5
4535sed 's/^/| /' conftest.$ac_ext >&5
4536
4537  # Passes both tests.
4538ac_preproc_ok=:
4539break
4540fi
4541
4542rm -f conftest.err conftest.$ac_ext
4543
4544done
4545# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4546rm -f conftest.err conftest.$ac_ext
4547if $ac_preproc_ok; then
4548  :
4549else
4550  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4551See \`config.log' for more details." >&5
4552echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4553See \`config.log' for more details." >&2;}
4554   { (exit 1); exit 1; }; }
4555fi
4556
4557ac_ext=c
4558ac_cpp='$CPP $CPPFLAGS'
4559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562
4563ac_ext=cpp
4564ac_cpp='$CXXCPP $CPPFLAGS'
4565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4568if test -z "$CXX"; then
4569  if test -n "$CCC"; then
4570    CXX=$CCC
4571  else
4572    if test -n "$ac_tool_prefix"; then
4573  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4574  do
4575    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4579if test "${ac_cv_prog_CXX+set}" = set; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582  if test -n "$CXX"; then
4583  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4584else
4585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH
4587do
4588  IFS=$as_save_IFS
4589  test -z "$as_dir" && as_dir=.
4590  for ac_exec_ext in '' $ac_executable_extensions; do
4591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4592    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594    break 2
4595  fi
4596done
4597done
4598IFS=$as_save_IFS
4599
4600fi
4601fi
4602CXX=$ac_cv_prog_CXX
4603if test -n "$CXX"; then
4604  { echo "$as_me:$LINENO: result: $CXX" >&5
4605echo "${ECHO_T}$CXX" >&6; }
4606else
4607  { echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6; }
4609fi
4610
4611
4612    test -n "$CXX" && break
4613  done
4614fi
4615if test -z "$CXX"; then
4616  ac_ct_CXX=$CXX
4617  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4618do
4619  # Extract the first word of "$ac_prog", so it can be a program name with args.
4620set dummy $ac_prog; ac_word=$2
4621{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4624  echo $ECHO_N "(cached) $ECHO_C" >&6
4625else
4626  if test -n "$ac_ct_CXX"; then
4627  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4628else
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634  for ac_exec_ext in '' $ac_executable_extensions; do
4635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636    ac_cv_prog_ac_ct_CXX="$ac_prog"
4637    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638    break 2
4639  fi
4640done
4641done
4642IFS=$as_save_IFS
4643
4644fi
4645fi
4646ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4647if test -n "$ac_ct_CXX"; then
4648  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4649echo "${ECHO_T}$ac_ct_CXX" >&6; }
4650else
4651  { echo "$as_me:$LINENO: result: no" >&5
4652echo "${ECHO_T}no" >&6; }
4653fi
4654
4655
4656  test -n "$ac_ct_CXX" && break
4657done
4658
4659  if test "x$ac_ct_CXX" = x; then
4660    CXX="g++"
4661  else
4662    case $cross_compiling:$ac_tool_warned in
4663yes:)
4664{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4665whose name does not start with the host triplet.  If you think this
4666configuration is useful to you, please write to autoconf@gnu.org." >&5
4667echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4668whose name does not start with the host triplet.  If you think this
4669configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4670ac_tool_warned=yes ;;
4671esac
4672    CXX=$ac_ct_CXX
4673  fi
4674fi
4675
4676  fi
4677fi
4678# Provide some information about the compiler.
4679echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4680ac_compiler=`set X $ac_compile; echo $2`
4681{ (ac_try="$ac_compiler --version >&5"
4682case "(($ac_try" in
4683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684  *) ac_try_echo=$ac_try;;
4685esac
4686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687  (eval "$ac_compiler --version >&5") 2>&5
4688  ac_status=$?
4689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690  (exit $ac_status); }
4691{ (ac_try="$ac_compiler -v >&5"
4692case "(($ac_try" in
4693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694  *) ac_try_echo=$ac_try;;
4695esac
4696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697  (eval "$ac_compiler -v >&5") 2>&5
4698  ac_status=$?
4699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700  (exit $ac_status); }
4701{ (ac_try="$ac_compiler -V >&5"
4702case "(($ac_try" in
4703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4704  *) ac_try_echo=$ac_try;;
4705esac
4706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4707  (eval "$ac_compiler -V >&5") 2>&5
4708  ac_status=$?
4709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710  (exit $ac_status); }
4711
4712{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4713echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4714if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4715  echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717  cat >conftest.$ac_ext <<_ACEOF
4718/* confdefs.h.  */
4719_ACEOF
4720cat confdefs.h >>conftest.$ac_ext
4721cat >>conftest.$ac_ext <<_ACEOF
4722/* end confdefs.h.  */
4723
4724int
4725main ()
4726{
4727#ifndef __GNUC__
4728       choke me
4729#endif
4730
4731  ;
4732  return 0;
4733}
4734_ACEOF
4735rm -f conftest.$ac_objext
4736if { (ac_try="$ac_compile"
4737case "(($ac_try" in
4738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739  *) ac_try_echo=$ac_try;;
4740esac
4741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742  (eval "$ac_compile") 2>conftest.er1
4743  ac_status=$?
4744  grep -v '^ *+' conftest.er1 >conftest.err
4745  rm -f conftest.er1
4746  cat conftest.err >&5
4747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748  (exit $ac_status); } && {
4749	 test -z "$ac_cxx_werror_flag" ||
4750	 test ! -s conftest.err
4751       } && test -s conftest.$ac_objext; then
4752  ac_compiler_gnu=yes
4753else
4754  echo "$as_me: failed program was:" >&5
4755sed 's/^/| /' conftest.$ac_ext >&5
4756
4757	ac_compiler_gnu=no
4758fi
4759
4760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4762
4763fi
4764{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4765echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4766GXX=`test $ac_compiler_gnu = yes && echo yes`
4767ac_test_CXXFLAGS=${CXXFLAGS+set}
4768ac_save_CXXFLAGS=$CXXFLAGS
4769{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4770echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4771if test "${ac_cv_prog_cxx_g+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4775   ac_cxx_werror_flag=yes
4776   ac_cv_prog_cxx_g=no
4777   CXXFLAGS="-g"
4778   cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h.  */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h.  */
4784
4785int
4786main ()
4787{
4788
4789  ;
4790  return 0;
4791}
4792_ACEOF
4793rm -f conftest.$ac_objext
4794if { (ac_try="$ac_compile"
4795case "(($ac_try" in
4796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797  *) ac_try_echo=$ac_try;;
4798esac
4799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800  (eval "$ac_compile") 2>conftest.er1
4801  ac_status=$?
4802  grep -v '^ *+' conftest.er1 >conftest.err
4803  rm -f conftest.er1
4804  cat conftest.err >&5
4805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806  (exit $ac_status); } && {
4807	 test -z "$ac_cxx_werror_flag" ||
4808	 test ! -s conftest.err
4809       } && test -s conftest.$ac_objext; then
4810  ac_cv_prog_cxx_g=yes
4811else
4812  echo "$as_me: failed program was:" >&5
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815	CXXFLAGS=""
4816      cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h.  */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h.  */
4822
4823int
4824main ()
4825{
4826
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831rm -f conftest.$ac_objext
4832if { (ac_try="$ac_compile"
4833case "(($ac_try" in
4834  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835  *) ac_try_echo=$ac_try;;
4836esac
4837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838  (eval "$ac_compile") 2>conftest.er1
4839  ac_status=$?
4840  grep -v '^ *+' conftest.er1 >conftest.err
4841  rm -f conftest.er1
4842  cat conftest.err >&5
4843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844  (exit $ac_status); } && {
4845	 test -z "$ac_cxx_werror_flag" ||
4846	 test ! -s conftest.err
4847       } && test -s conftest.$ac_objext; then
4848  :
4849else
4850  echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4854	 CXXFLAGS="-g"
4855	 cat >conftest.$ac_ext <<_ACEOF
4856/* confdefs.h.  */
4857_ACEOF
4858cat confdefs.h >>conftest.$ac_ext
4859cat >>conftest.$ac_ext <<_ACEOF
4860/* end confdefs.h.  */
4861
4862int
4863main ()
4864{
4865
4866  ;
4867  return 0;
4868}
4869_ACEOF
4870rm -f conftest.$ac_objext
4871if { (ac_try="$ac_compile"
4872case "(($ac_try" in
4873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874  *) ac_try_echo=$ac_try;;
4875esac
4876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4877  (eval "$ac_compile") 2>conftest.er1
4878  ac_status=$?
4879  grep -v '^ *+' conftest.er1 >conftest.err
4880  rm -f conftest.er1
4881  cat conftest.err >&5
4882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883  (exit $ac_status); } && {
4884	 test -z "$ac_cxx_werror_flag" ||
4885	 test ! -s conftest.err
4886       } && test -s conftest.$ac_objext; then
4887  ac_cv_prog_cxx_g=yes
4888else
4889  echo "$as_me: failed program was:" >&5
4890sed 's/^/| /' conftest.$ac_ext >&5
4891
4892
4893fi
4894
4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4896fi
4897
4898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899fi
4900
4901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4903fi
4904{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4905echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4906if test "$ac_test_CXXFLAGS" = set; then
4907  CXXFLAGS=$ac_save_CXXFLAGS
4908elif test $ac_cv_prog_cxx_g = yes; then
4909  if test "$GXX" = yes; then
4910    CXXFLAGS="-g -O2"
4911  else
4912    CXXFLAGS="-g"
4913  fi
4914else
4915  if test "$GXX" = yes; then
4916    CXXFLAGS="-O2"
4917  else
4918    CXXFLAGS=
4919  fi
4920fi
4921ac_ext=c
4922ac_cpp='$CPP $CPPFLAGS'
4923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927depcc="$CXX"  am_compiler_list=
4928
4929{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4930echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4931if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4932  echo $ECHO_N "(cached) $ECHO_C" >&6
4933else
4934  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4935  # We make a subdir and do the tests there.  Otherwise we can end up
4936  # making bogus files that we don't know about and never remove.  For
4937  # instance it was reported that on HP-UX the gcc test will end up
4938  # making a dummy file named `D' -- because `-MD' means `put the output
4939  # in D'.
4940  mkdir conftest.dir
4941  # Copy depcomp to subdir because otherwise we won't find it if we're
4942  # using a relative directory.
4943  cp "$am_depcomp" conftest.dir
4944  cd conftest.dir
4945  # We will build objects and dependencies in a subdirectory because
4946  # it helps to detect inapplicable dependency modes.  For instance
4947  # both Tru64's cc and ICC support -MD to output dependencies as a
4948  # side effect of compilation, but ICC will put the dependencies in
4949  # the current directory while Tru64 will put them in the object
4950  # directory.
4951  mkdir sub
4952
4953  am_cv_CXX_dependencies_compiler_type=none
4954  if test "$am_compiler_list" = ""; then
4955     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4956  fi
4957  for depmode in $am_compiler_list; do
4958    # Setup a source with many dependencies, because some compilers
4959    # like to wrap large dependency lists on column 80 (with \), and
4960    # we should not choose a depcomp mode which is confused by this.
4961    #
4962    # We need to recreate these files for each test, as the compiler may
4963    # overwrite some of them when testing with obscure command lines.
4964    # This happens at least with the AIX C compiler.
4965    : > sub/conftest.c
4966    for i in 1 2 3 4 5 6; do
4967      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4968      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4969      # Solaris 8's {/usr,}/bin/sh.
4970      touch sub/conftst$i.h
4971    done
4972    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4973
4974    case $depmode in
4975    nosideeffect)
4976      # after this tag, mechanisms are not by side-effect, so they'll
4977      # only be used when explicitly requested
4978      if test "x$enable_dependency_tracking" = xyes; then
4979	continue
4980      else
4981	break
4982      fi
4983      ;;
4984    none) break ;;
4985    esac
4986    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4987    # mode.  It turns out that the SunPro C++ compiler does not properly
4988    # handle `-M -o', and we need to detect this.
4989    if depmode=$depmode \
4990       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4991       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4992       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4993         >/dev/null 2>conftest.err &&
4994       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4995       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4996       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4997       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4998      # icc doesn't choke on unknown options, it will just issue warnings
4999      # or remarks (even with -Werror).  So we grep stderr for any message
5000      # that says an option was ignored or not supported.
5001      # When given -MP, icc 7.0 and 7.1 complain thusly:
5002      #   icc: Command line warning: ignoring option '-M'; no argument required
5003      # The diagnosis changed in icc 8.0:
5004      #   icc: Command line remark: option '-MP' not supported
5005      if (grep 'ignoring option' conftest.err ||
5006          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5007        am_cv_CXX_dependencies_compiler_type=$depmode
5008        break
5009      fi
5010    fi
5011  done
5012
5013  cd ..
5014  rm -rf conftest.dir
5015else
5016  am_cv_CXX_dependencies_compiler_type=none
5017fi
5018
5019fi
5020{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5021echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5022CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5023
5024 if
5025  test "x$enable_dependency_tracking" != xno \
5026  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5027  am__fastdepCXX_TRUE=
5028  am__fastdepCXX_FALSE='#'
5029else
5030  am__fastdepCXX_TRUE='#'
5031  am__fastdepCXX_FALSE=
5032fi
5033
5034
5035
5036
5037{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5038echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5039if test "${ac_cv_path_GREP+set}" = set; then
5040  echo $ECHO_N "(cached) $ECHO_C" >&6
5041else
5042  # Extract the first word of "grep ggrep" to use in msg output
5043if test -z "$GREP"; then
5044set dummy grep ggrep; ac_prog_name=$2
5045if test "${ac_cv_path_GREP+set}" = set; then
5046  echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048  ac_path_GREP_found=false
5049# Loop through the user's path and test for each of PROGNAME-LIST
5050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5052do
5053  IFS=$as_save_IFS
5054  test -z "$as_dir" && as_dir=.
5055  for ac_prog in grep ggrep; do
5056  for ac_exec_ext in '' $ac_executable_extensions; do
5057    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5058    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5059    # Check for GNU ac_path_GREP and select it if it is found.
5060  # Check for GNU $ac_path_GREP
5061case `"$ac_path_GREP" --version 2>&1` in
5062*GNU*)
5063  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5064*)
5065  ac_count=0
5066  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5067  while :
5068  do
5069    cat "conftest.in" "conftest.in" >"conftest.tmp"
5070    mv "conftest.tmp" "conftest.in"
5071    cp "conftest.in" "conftest.nl"
5072    echo 'GREP' >> "conftest.nl"
5073    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5074    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5075    ac_count=`expr $ac_count + 1`
5076    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5077      # Best one so far, save it but keep looking for a better one
5078      ac_cv_path_GREP="$ac_path_GREP"
5079      ac_path_GREP_max=$ac_count
5080    fi
5081    # 10*(2^10) chars as input seems more than enough
5082    test $ac_count -gt 10 && break
5083  done
5084  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5085esac
5086
5087
5088    $ac_path_GREP_found && break 3
5089  done
5090done
5091
5092done
5093IFS=$as_save_IFS
5094
5095
5096fi
5097
5098GREP="$ac_cv_path_GREP"
5099if test -z "$GREP"; then
5100  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5101echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5102   { (exit 1); exit 1; }; }
5103fi
5104
5105else
5106  ac_cv_path_GREP=$GREP
5107fi
5108
5109
5110fi
5111{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5112echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5113 GREP="$ac_cv_path_GREP"
5114
5115
5116{ echo "$as_me:$LINENO: checking for egrep" >&5
5117echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5118if test "${ac_cv_path_EGREP+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5122   then ac_cv_path_EGREP="$GREP -E"
5123   else
5124     # Extract the first word of "egrep" to use in msg output
5125if test -z "$EGREP"; then
5126set dummy egrep; ac_prog_name=$2
5127if test "${ac_cv_path_EGREP+set}" = set; then
5128  echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130  ac_path_EGREP_found=false
5131# Loop through the user's path and test for each of PROGNAME-LIST
5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5134do
5135  IFS=$as_save_IFS
5136  test -z "$as_dir" && as_dir=.
5137  for ac_prog in egrep; do
5138  for ac_exec_ext in '' $ac_executable_extensions; do
5139    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5140    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5141    # Check for GNU ac_path_EGREP and select it if it is found.
5142  # Check for GNU $ac_path_EGREP
5143case `"$ac_path_EGREP" --version 2>&1` in
5144*GNU*)
5145  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5146*)
5147  ac_count=0
5148  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5149  while :
5150  do
5151    cat "conftest.in" "conftest.in" >"conftest.tmp"
5152    mv "conftest.tmp" "conftest.in"
5153    cp "conftest.in" "conftest.nl"
5154    echo 'EGREP' >> "conftest.nl"
5155    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5156    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5157    ac_count=`expr $ac_count + 1`
5158    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5159      # Best one so far, save it but keep looking for a better one
5160      ac_cv_path_EGREP="$ac_path_EGREP"
5161      ac_path_EGREP_max=$ac_count
5162    fi
5163    # 10*(2^10) chars as input seems more than enough
5164    test $ac_count -gt 10 && break
5165  done
5166  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5167esac
5168
5169
5170    $ac_path_EGREP_found && break 3
5171  done
5172done
5173
5174done
5175IFS=$as_save_IFS
5176
5177
5178fi
5179
5180EGREP="$ac_cv_path_EGREP"
5181if test -z "$EGREP"; then
5182  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5183echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5184   { (exit 1); exit 1; }; }
5185fi
5186
5187else
5188  ac_cv_path_EGREP=$EGREP
5189fi
5190
5191
5192   fi
5193fi
5194{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5195echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5196 EGREP="$ac_cv_path_EGREP"
5197
5198
5199{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5200echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5201if test "${ac_cv_header_stdc+set}" = set; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204  cat >conftest.$ac_ext <<_ACEOF
5205/* confdefs.h.  */
5206_ACEOF
5207cat confdefs.h >>conftest.$ac_ext
5208cat >>conftest.$ac_ext <<_ACEOF
5209/* end confdefs.h.  */
5210#include <stdlib.h>
5211#include <stdarg.h>
5212#include <string.h>
5213#include <float.h>
5214
5215int
5216main ()
5217{
5218
5219  ;
5220  return 0;
5221}
5222_ACEOF
5223rm -f conftest.$ac_objext
5224if { (ac_try="$ac_compile"
5225case "(($ac_try" in
5226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5227  *) ac_try_echo=$ac_try;;
5228esac
5229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5230  (eval "$ac_compile") 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } && {
5237	 test -z "$ac_c_werror_flag" ||
5238	 test ! -s conftest.err
5239       } && test -s conftest.$ac_objext; then
5240  ac_cv_header_stdc=yes
5241else
5242  echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245	ac_cv_header_stdc=no
5246fi
5247
5248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249
5250if test $ac_cv_header_stdc = yes; then
5251  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5252  cat >conftest.$ac_ext <<_ACEOF
5253/* confdefs.h.  */
5254_ACEOF
5255cat confdefs.h >>conftest.$ac_ext
5256cat >>conftest.$ac_ext <<_ACEOF
5257/* end confdefs.h.  */
5258#include <string.h>
5259
5260_ACEOF
5261if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262  $EGREP "memchr" >/dev/null 2>&1; then
5263  :
5264else
5265  ac_cv_header_stdc=no
5266fi
5267rm -f conftest*
5268
5269fi
5270
5271if test $ac_cv_header_stdc = yes; then
5272  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5273  cat >conftest.$ac_ext <<_ACEOF
5274/* confdefs.h.  */
5275_ACEOF
5276cat confdefs.h >>conftest.$ac_ext
5277cat >>conftest.$ac_ext <<_ACEOF
5278/* end confdefs.h.  */
5279#include <stdlib.h>
5280
5281_ACEOF
5282if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283  $EGREP "free" >/dev/null 2>&1; then
5284  :
5285else
5286  ac_cv_header_stdc=no
5287fi
5288rm -f conftest*
5289
5290fi
5291
5292if test $ac_cv_header_stdc = yes; then
5293  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5294  if test "$cross_compiling" = yes; then
5295  :
5296else
5297  cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h.  */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h.  */
5303#include <ctype.h>
5304#include <stdlib.h>
5305#if ((' ' & 0x0FF) == 0x020)
5306# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5307# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5308#else
5309# define ISLOWER(c) \
5310		   (('a' <= (c) && (c) <= 'i') \
5311		     || ('j' <= (c) && (c) <= 'r') \
5312		     || ('s' <= (c) && (c) <= 'z'))
5313# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5314#endif
5315
5316#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5317int
5318main ()
5319{
5320  int i;
5321  for (i = 0; i < 256; i++)
5322    if (XOR (islower (i), ISLOWER (i))
5323	|| toupper (i) != TOUPPER (i))
5324      return 2;
5325  return 0;
5326}
5327_ACEOF
5328rm -f conftest$ac_exeext
5329if { (ac_try="$ac_link"
5330case "(($ac_try" in
5331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5332  *) ac_try_echo=$ac_try;;
5333esac
5334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335  (eval "$ac_link") 2>&5
5336  ac_status=$?
5337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5339  { (case "(($ac_try" in
5340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341  *) ac_try_echo=$ac_try;;
5342esac
5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344  (eval "$ac_try") 2>&5
5345  ac_status=$?
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); }; }; then
5348  :
5349else
5350  echo "$as_me: program exited with status $ac_status" >&5
5351echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354( exit $ac_status )
5355ac_cv_header_stdc=no
5356fi
5357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5358fi
5359
5360
5361fi
5362fi
5363{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5364echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5365if test $ac_cv_header_stdc = yes; then
5366
5367cat >>confdefs.h <<\_ACEOF
5368#define STDC_HEADERS 1
5369_ACEOF
5370
5371fi
5372
5373# Check whether --enable-shared was given.
5374if test "${enable_shared+set}" = set; then
5375  enableval=$enable_shared; p=${PACKAGE-default}
5376    case $enableval in
5377    yes) enable_shared=yes ;;
5378    no) enable_shared=no ;;
5379    *)
5380      enable_shared=no
5381      # Look at the argument we got.  We use all the common list separators.
5382      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5383      for pkg in $enableval; do
5384	IFS="$lt_save_ifs"
5385	if test "X$pkg" = "X$p"; then
5386	  enable_shared=yes
5387	fi
5388      done
5389      IFS="$lt_save_ifs"
5390      ;;
5391    esac
5392else
5393  enable_shared=yes
5394fi
5395
5396
5397# Check whether --enable-static was given.
5398if test "${enable_static+set}" = set; then
5399  enableval=$enable_static; p=${PACKAGE-default}
5400    case $enableval in
5401    yes) enable_static=yes ;;
5402    no) enable_static=no ;;
5403    *)
5404     enable_static=no
5405      # Look at the argument we got.  We use all the common list separators.
5406      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5407      for pkg in $enableval; do
5408	IFS="$lt_save_ifs"
5409	if test "X$pkg" = "X$p"; then
5410	  enable_static=yes
5411	fi
5412      done
5413      IFS="$lt_save_ifs"
5414      ;;
5415    esac
5416else
5417  enable_static=yes
5418fi
5419
5420
5421# Check whether --enable-fast-install was given.
5422if test "${enable_fast_install+set}" = set; then
5423  enableval=$enable_fast_install; p=${PACKAGE-default}
5424    case $enableval in
5425    yes) enable_fast_install=yes ;;
5426    no) enable_fast_install=no ;;
5427    *)
5428      enable_fast_install=no
5429      # Look at the argument we got.  We use all the common list separators.
5430      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5431      for pkg in $enableval; do
5432	IFS="$lt_save_ifs"
5433	if test "X$pkg" = "X$p"; then
5434	  enable_fast_install=yes
5435	fi
5436      done
5437      IFS="$lt_save_ifs"
5438      ;;
5439    esac
5440else
5441  enable_fast_install=yes
5442fi
5443
5444
5445# Make sure we can run config.sub.
5446$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5447  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5448echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5449   { (exit 1); exit 1; }; }
5450
5451{ echo "$as_me:$LINENO: checking build system type" >&5
5452echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5453if test "${ac_cv_build+set}" = set; then
5454  echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456  ac_build_alias=$build_alias
5457test "x$ac_build_alias" = x &&
5458  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5459test "x$ac_build_alias" = x &&
5460  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5461echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5462   { (exit 1); exit 1; }; }
5463ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5464  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5465echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5466   { (exit 1); exit 1; }; }
5467
5468fi
5469{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5470echo "${ECHO_T}$ac_cv_build" >&6; }
5471case $ac_cv_build in
5472*-*-*) ;;
5473*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5474echo "$as_me: error: invalid value of canonical build" >&2;}
5475   { (exit 1); exit 1; }; };;
5476esac
5477build=$ac_cv_build
5478ac_save_IFS=$IFS; IFS='-'
5479set x $ac_cv_build
5480shift
5481build_cpu=$1
5482build_vendor=$2
5483shift; shift
5484# Remember, the first character of IFS is used to create $*,
5485# except with old shells:
5486build_os=$*
5487IFS=$ac_save_IFS
5488case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5489
5490
5491{ echo "$as_me:$LINENO: checking host system type" >&5
5492echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5493if test "${ac_cv_host+set}" = set; then
5494  echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496  if test "x$host_alias" = x; then
5497  ac_cv_host=$ac_cv_build
5498else
5499  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5500    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5501echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5502   { (exit 1); exit 1; }; }
5503fi
5504
5505fi
5506{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5507echo "${ECHO_T}$ac_cv_host" >&6; }
5508case $ac_cv_host in
5509*-*-*) ;;
5510*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5511echo "$as_me: error: invalid value of canonical host" >&2;}
5512   { (exit 1); exit 1; }; };;
5513esac
5514host=$ac_cv_host
5515ac_save_IFS=$IFS; IFS='-'
5516set x $ac_cv_host
5517shift
5518host_cpu=$1
5519host_vendor=$2
5520shift; shift
5521# Remember, the first character of IFS is used to create $*,
5522# except with old shells:
5523host_os=$*
5524IFS=$ac_save_IFS
5525case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5526
5527
5528{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5529echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5530if test "${lt_cv_path_SED+set}" = set; then
5531  echo $ECHO_N "(cached) $ECHO_C" >&6
5532else
5533  # Loop through the user's path and test for sed and gsed.
5534# Then use that list of sed's as ones to test for truncation.
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538  IFS=$as_save_IFS
5539  test -z "$as_dir" && as_dir=.
5540  for lt_ac_prog in sed gsed; do
5541    for ac_exec_ext in '' $ac_executable_extensions; do
5542      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5543        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5544      fi
5545    done
5546  done
5547done
5548IFS=$as_save_IFS
5549lt_ac_max=0
5550lt_ac_count=0
5551# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5552# along with /bin/sed that truncates output.
5553for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5554  test ! -f $lt_ac_sed && continue
5555  cat /dev/null > conftest.in
5556  lt_ac_count=0
5557  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5558  # Check for GNU sed and select it if it is found.
5559  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5560    lt_cv_path_SED=$lt_ac_sed
5561    break
5562  fi
5563  while true; do
5564    cat conftest.in conftest.in >conftest.tmp
5565    mv conftest.tmp conftest.in
5566    cp conftest.in conftest.nl
5567    echo >>conftest.nl
5568    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5569    cmp -s conftest.out conftest.nl || break
5570    # 10000 chars as input seems more than enough
5571    test $lt_ac_count -gt 10 && break
5572    lt_ac_count=`expr $lt_ac_count + 1`
5573    if test $lt_ac_count -gt $lt_ac_max; then
5574      lt_ac_max=$lt_ac_count
5575      lt_cv_path_SED=$lt_ac_sed
5576    fi
5577  done
5578done
5579
5580fi
5581
5582SED=$lt_cv_path_SED
5583
5584{ echo "$as_me:$LINENO: result: $SED" >&5
5585echo "${ECHO_T}$SED" >&6; }
5586
5587
5588# Check whether --with-gnu-ld was given.
5589if test "${with_gnu_ld+set}" = set; then
5590  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5591else
5592  with_gnu_ld=no
5593fi
5594
5595ac_prog=ld
5596if test "$GCC" = yes; then
5597  # Check if gcc -print-prog-name=ld gives a path.
5598  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5599echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5600  case $host in
5601  *-*-mingw*)
5602    # gcc leaves a trailing carriage return which upsets mingw
5603    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5604  *)
5605    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5606  esac
5607  case $ac_prog in
5608    # Accept absolute paths.
5609    [\\/]* | ?:[\\/]*)
5610      re_direlt='/[^/][^/]*/\.\./'
5611      # Canonicalize the pathname of ld
5612      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5613      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5614	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5615      done
5616      test -z "$LD" && LD="$ac_prog"
5617      ;;
5618  "")
5619    # If it fails, then pretend we aren't using GCC.
5620    ac_prog=ld
5621    ;;
5622  *)
5623    # If it is relative, then search for the first ld in PATH.
5624    with_gnu_ld=unknown
5625    ;;
5626  esac
5627elif test "$with_gnu_ld" = yes; then
5628  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5629echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5630else
5631  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5632echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5633fi
5634if test "${lt_cv_path_LD+set}" = set; then
5635  echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637  if test -z "$LD"; then
5638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5639  for ac_dir in $PATH; do
5640    IFS="$lt_save_ifs"
5641    test -z "$ac_dir" && ac_dir=.
5642    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5643      lt_cv_path_LD="$ac_dir/$ac_prog"
5644      # Check to see if the program is GNU ld.  I'd rather use --version,
5645      # but apparently some variants of GNU ld only accept -v.
5646      # Break only if it was the GNU/non-GNU ld that we prefer.
5647      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5648      *GNU* | *'with BFD'*)
5649	test "$with_gnu_ld" != no && break
5650	;;
5651      *)
5652	test "$with_gnu_ld" != yes && break
5653	;;
5654      esac
5655    fi
5656  done
5657  IFS="$lt_save_ifs"
5658else
5659  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5660fi
5661fi
5662
5663LD="$lt_cv_path_LD"
5664if test -n "$LD"; then
5665  { echo "$as_me:$LINENO: result: $LD" >&5
5666echo "${ECHO_T}$LD" >&6; }
5667else
5668  { echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6; }
5670fi
5671test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5672echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5673   { (exit 1); exit 1; }; }
5674{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5675echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5676if test "${lt_cv_prog_gnu_ld+set}" = set; then
5677  echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5680case `$LD -v 2>&1 </dev/null` in
5681*GNU* | *'with BFD'*)
5682  lt_cv_prog_gnu_ld=yes
5683  ;;
5684*)
5685  lt_cv_prog_gnu_ld=no
5686  ;;
5687esac
5688fi
5689{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5690echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5691with_gnu_ld=$lt_cv_prog_gnu_ld
5692
5693
5694{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5695echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5696if test "${lt_cv_ld_reload_flag+set}" = set; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  lt_cv_ld_reload_flag='-r'
5700fi
5701{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5702echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5703reload_flag=$lt_cv_ld_reload_flag
5704case $reload_flag in
5705"" | " "*) ;;
5706*) reload_flag=" $reload_flag" ;;
5707esac
5708reload_cmds='$LD$reload_flag -o $output$reload_objs'
5709case $host_os in
5710  darwin*)
5711    if test "$GCC" = yes; then
5712      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5713    else
5714      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5715    fi
5716    ;;
5717esac
5718
5719{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5720echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5721if test "${lt_cv_path_NM+set}" = set; then
5722  echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724  if test -n "$NM"; then
5725  # Let the user override the test.
5726  lt_cv_path_NM="$NM"
5727else
5728  lt_nm_to_check="${ac_tool_prefix}nm"
5729  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5730    lt_nm_to_check="$lt_nm_to_check nm"
5731  fi
5732  for lt_tmp_nm in $lt_nm_to_check; do
5733    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5734    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5735      IFS="$lt_save_ifs"
5736      test -z "$ac_dir" && ac_dir=.
5737      tmp_nm="$ac_dir/$lt_tmp_nm"
5738      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5739	# Check to see if the nm accepts a BSD-compat flag.
5740	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5741	#   nm: unknown option "B" ignored
5742	# Tru64's nm complains that /dev/null is an invalid object file
5743	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5744	*/dev/null* | *'Invalid file or object type'*)
5745	  lt_cv_path_NM="$tmp_nm -B"
5746	  break
5747	  ;;
5748	*)
5749	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5750	  */dev/null*)
5751	    lt_cv_path_NM="$tmp_nm -p"
5752	    break
5753	    ;;
5754	  *)
5755	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5756	    continue # so that we can try to find one that supports BSD flags
5757	    ;;
5758	  esac
5759	  ;;
5760	esac
5761      fi
5762    done
5763    IFS="$lt_save_ifs"
5764  done
5765  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5766fi
5767fi
5768{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5769echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5770NM="$lt_cv_path_NM"
5771
5772{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5773echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5774LN_S=$as_ln_s
5775if test "$LN_S" = "ln -s"; then
5776  { echo "$as_me:$LINENO: result: yes" >&5
5777echo "${ECHO_T}yes" >&6; }
5778else
5779  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5780echo "${ECHO_T}no, using $LN_S" >&6; }
5781fi
5782
5783{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5784echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5785if test "${lt_cv_deplibs_check_method+set}" = set; then
5786  echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788  lt_cv_file_magic_cmd='$MAGIC_CMD'
5789lt_cv_file_magic_test_file=
5790lt_cv_deplibs_check_method='unknown'
5791# Need to set the preceding variable on all platforms that support
5792# interlibrary dependencies.
5793# 'none' -- dependencies not supported.
5794# `unknown' -- same as none, but documents that we really don't know.
5795# 'pass_all' -- all dependencies passed with no checks.
5796# 'test_compile' -- check by making test program.
5797# 'file_magic [[regex]]' -- check by looking for files in library path
5798# which responds to the $file_magic_cmd with a given extended regex.
5799# If you have `file' or equivalent on your system and you're not sure
5800# whether `pass_all' will *always* work, you probably want this one.
5801
5802case $host_os in
5803aix4* | aix5*)
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806
5807beos*)
5808  lt_cv_deplibs_check_method=pass_all
5809  ;;
5810
5811bsdi[45]*)
5812  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5813  lt_cv_file_magic_cmd='/usr/bin/file -L'
5814  lt_cv_file_magic_test_file=/shlib/libc.so
5815  ;;
5816
5817cygwin*)
5818  # func_win32_libid is a shell function defined in ltmain.sh
5819  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5820  lt_cv_file_magic_cmd='func_win32_libid'
5821  ;;
5822
5823mingw* | pw32*)
5824  # Base MSYS/MinGW do not provide the 'file' command needed by
5825  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5826  # unless we find 'file', for example because we are cross-compiling.
5827  if ( file / ) >/dev/null 2>&1; then
5828    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5829    lt_cv_file_magic_cmd='func_win32_libid'
5830  else
5831    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5832    lt_cv_file_magic_cmd='$OBJDUMP -f'
5833  fi
5834  ;;
5835
5836darwin* | rhapsody*)
5837  lt_cv_deplibs_check_method=pass_all
5838  ;;
5839
5840freebsd* | dragonfly*)
5841  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5842    case $host_cpu in
5843    i*86 )
5844      # Not sure whether the presence of OpenBSD here was a mistake.
5845      # Let's accept both of them until this is cleared up.
5846      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5847      lt_cv_file_magic_cmd=/usr/bin/file
5848      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5849      ;;
5850    esac
5851  else
5852    lt_cv_deplibs_check_method=pass_all
5853  fi
5854  ;;
5855
5856gnu*)
5857  lt_cv_deplibs_check_method=pass_all
5858  ;;
5859
5860hpux10.20* | hpux11*)
5861  lt_cv_file_magic_cmd=/usr/bin/file
5862  case $host_cpu in
5863  ia64*)
5864    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5865    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5866    ;;
5867  hppa*64*)
5868    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]'
5869    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5870    ;;
5871  *)
5872    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5873    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5874    ;;
5875  esac
5876  ;;
5877
5878interix[3-9]*)
5879  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5880  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5881  ;;
5882
5883irix5* | irix6* | nonstopux*)
5884  case $LD in
5885  *-32|*"-32 ") libmagic=32-bit;;
5886  *-n32|*"-n32 ") libmagic=N32;;
5887  *-64|*"-64 ") libmagic=64-bit;;
5888  *) libmagic=never-match;;
5889  esac
5890  lt_cv_deplibs_check_method=pass_all
5891  ;;
5892
5893# This must be Linux ELF.
5894linux* | k*bsd*-gnu)
5895  lt_cv_deplibs_check_method=pass_all
5896  ;;
5897
5898netbsd*)
5899  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5900    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5901  else
5902    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5903  fi
5904  ;;
5905
5906newos6*)
5907  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5908  lt_cv_file_magic_cmd=/usr/bin/file
5909  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5910  ;;
5911
5912nto-qnx*)
5913  lt_cv_deplibs_check_method=unknown
5914  ;;
5915
5916openbsd*)
5917  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5918    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5919  else
5920    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5921  fi
5922  ;;
5923
5924osf3* | osf4* | osf5*)
5925  lt_cv_deplibs_check_method=pass_all
5926  ;;
5927
5928rdos*)
5929  lt_cv_deplibs_check_method=pass_all
5930  ;;
5931
5932solaris*)
5933  lt_cv_deplibs_check_method=pass_all
5934  ;;
5935
5936sysv4 | sysv4.3*)
5937  case $host_vendor in
5938  motorola)
5939    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]'
5940    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5941    ;;
5942  ncr)
5943    lt_cv_deplibs_check_method=pass_all
5944    ;;
5945  sequent)
5946    lt_cv_file_magic_cmd='/bin/file'
5947    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5948    ;;
5949  sni)
5950    lt_cv_file_magic_cmd='/bin/file'
5951    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5952    lt_cv_file_magic_test_file=/lib/libc.so
5953    ;;
5954  siemens)
5955    lt_cv_deplibs_check_method=pass_all
5956    ;;
5957  pc)
5958    lt_cv_deplibs_check_method=pass_all
5959    ;;
5960  esac
5961  ;;
5962
5963sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5964  lt_cv_deplibs_check_method=pass_all
5965  ;;
5966esac
5967
5968fi
5969{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5970echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5971file_magic_cmd=$lt_cv_file_magic_cmd
5972deplibs_check_method=$lt_cv_deplibs_check_method
5973test -z "$deplibs_check_method" && deplibs_check_method=unknown
5974
5975
5976
5977
5978# If no C compiler was specified, use CC.
5979LTCC=${LTCC-"$CC"}
5980
5981# If no C compiler flags were specified, use CFLAGS.
5982LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5983
5984# Allow CC to be a program name with arguments.
5985compiler=$CC
5986
5987# Check whether --enable-libtool-lock was given.
5988if test "${enable_libtool_lock+set}" = set; then
5989  enableval=$enable_libtool_lock;
5990fi
5991
5992test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5993
5994# Some flags need to be propagated to the compiler or linker for good
5995# libtool support.
5996case $host in
5997ia64-*-hpux*)
5998  # Find out which ABI we are using.
5999  echo 'int i;' > conftest.$ac_ext
6000  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6001  (eval $ac_compile) 2>&5
6002  ac_status=$?
6003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004  (exit $ac_status); }; then
6005    case `/usr/bin/file conftest.$ac_objext` in
6006    *ELF-32*)
6007      HPUX_IA64_MODE="32"
6008      ;;
6009    *ELF-64*)
6010      HPUX_IA64_MODE="64"
6011      ;;
6012    esac
6013  fi
6014  rm -rf conftest*
6015  ;;
6016*-*-irix6*)
6017  # Find out which ABI we are using.
6018  echo '#line 6018 "configure"' > conftest.$ac_ext
6019  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6020  (eval $ac_compile) 2>&5
6021  ac_status=$?
6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023  (exit $ac_status); }; then
6024   if test "$lt_cv_prog_gnu_ld" = yes; then
6025    case `/usr/bin/file conftest.$ac_objext` in
6026    *32-bit*)
6027      LD="${LD-ld} -melf32bsmip"
6028      ;;
6029    *N32*)
6030      LD="${LD-ld} -melf32bmipn32"
6031      ;;
6032    *64-bit*)
6033      LD="${LD-ld} -melf64bmip"
6034      ;;
6035    esac
6036   else
6037    case `/usr/bin/file conftest.$ac_objext` in
6038    *32-bit*)
6039      LD="${LD-ld} -32"
6040      ;;
6041    *N32*)
6042      LD="${LD-ld} -n32"
6043      ;;
6044    *64-bit*)
6045      LD="${LD-ld} -64"
6046      ;;
6047    esac
6048   fi
6049  fi
6050  rm -rf conftest*
6051  ;;
6052
6053x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6054s390*-*linux*|sparc*-*linux*)
6055  # Find out which ABI we are using.
6056  echo 'int i;' > conftest.$ac_ext
6057  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058  (eval $ac_compile) 2>&5
6059  ac_status=$?
6060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061  (exit $ac_status); }; then
6062    case `/usr/bin/file conftest.o` in
6063    *32-bit*)
6064      case $host in
6065        x86_64-*kfreebsd*-gnu)
6066          LD="${LD-ld} -m elf_i386_fbsd"
6067          ;;
6068        x86_64-*linux*)
6069          LD="${LD-ld} -m elf_i386"
6070          ;;
6071        ppc64-*linux*|powerpc64-*linux*)
6072          LD="${LD-ld} -m elf32ppclinux"
6073          ;;
6074        s390x-*linux*)
6075          LD="${LD-ld} -m elf_s390"
6076          ;;
6077        sparc64-*linux*)
6078          LD="${LD-ld} -m elf32_sparc"
6079          ;;
6080      esac
6081      ;;
6082    *64-bit*)
6083      case $host in
6084        x86_64-*kfreebsd*-gnu)
6085          LD="${LD-ld} -m elf_x86_64_fbsd"
6086          ;;
6087        x86_64-*linux*)
6088          LD="${LD-ld} -m elf_x86_64"
6089          ;;
6090        ppc*-*linux*|powerpc*-*linux*)
6091          LD="${LD-ld} -m elf64ppc"
6092          ;;
6093        s390*-*linux*)
6094          LD="${LD-ld} -m elf64_s390"
6095          ;;
6096        sparc*-*linux*)
6097          LD="${LD-ld} -m elf64_sparc"
6098          ;;
6099      esac
6100      ;;
6101    esac
6102  fi
6103  rm -rf conftest*
6104  ;;
6105
6106*-*-sco3.2v5*)
6107  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6108  SAVE_CFLAGS="$CFLAGS"
6109  CFLAGS="$CFLAGS -belf"
6110  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6111echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6112if test "${lt_cv_cc_needs_belf+set}" = set; then
6113  echo $ECHO_N "(cached) $ECHO_C" >&6
6114else
6115  ac_ext=c
6116ac_cpp='$CPP $CPPFLAGS'
6117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119ac_compiler_gnu=$ac_cv_c_compiler_gnu
6120
6121     cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h.  */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h.  */
6127
6128int
6129main ()
6130{
6131
6132  ;
6133  return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext conftest$ac_exeext
6137if { (ac_try="$ac_link"
6138case "(($ac_try" in
6139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140  *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143  (eval "$ac_link") 2>conftest.er1
6144  ac_status=$?
6145  grep -v '^ *+' conftest.er1 >conftest.err
6146  rm -f conftest.er1
6147  cat conftest.err >&5
6148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149  (exit $ac_status); } && {
6150	 test -z "$ac_c_werror_flag" ||
6151	 test ! -s conftest.err
6152       } && test -s conftest$ac_exeext &&
6153       $as_test_x conftest$ac_exeext; then
6154  lt_cv_cc_needs_belf=yes
6155else
6156  echo "$as_me: failed program was:" >&5
6157sed 's/^/| /' conftest.$ac_ext >&5
6158
6159	lt_cv_cc_needs_belf=no
6160fi
6161
6162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6163      conftest$ac_exeext conftest.$ac_ext
6164     ac_ext=c
6165ac_cpp='$CPP $CPPFLAGS'
6166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6168ac_compiler_gnu=$ac_cv_c_compiler_gnu
6169
6170fi
6171{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6172echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6173  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6174    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6175    CFLAGS="$SAVE_CFLAGS"
6176  fi
6177  ;;
6178sparc*-*solaris*)
6179  # Find out which ABI we are using.
6180  echo 'int i;' > conftest.$ac_ext
6181  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6182  (eval $ac_compile) 2>&5
6183  ac_status=$?
6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); }; then
6186    case `/usr/bin/file conftest.o` in
6187    *64-bit*)
6188      case $lt_cv_prog_gnu_ld in
6189      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6190      *)    LD="${LD-ld} -64" ;;
6191      esac
6192      ;;
6193    esac
6194  fi
6195  rm -rf conftest*
6196  ;;
6197
6198
6199esac
6200
6201need_locks="$enable_libtool_lock"
6202
6203
6204# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6215		  inttypes.h stdint.h unistd.h
6216do
6217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6218{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  cat >conftest.$ac_ext <<_ACEOF
6224/* confdefs.h.  */
6225_ACEOF
6226cat confdefs.h >>conftest.$ac_ext
6227cat >>conftest.$ac_ext <<_ACEOF
6228/* end confdefs.h.  */
6229$ac_includes_default
6230
6231#include <$ac_header>
6232_ACEOF
6233rm -f conftest.$ac_objext
6234if { (ac_try="$ac_compile"
6235case "(($ac_try" in
6236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237  *) ac_try_echo=$ac_try;;
6238esac
6239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6240  (eval "$ac_compile") 2>conftest.er1
6241  ac_status=$?
6242  grep -v '^ *+' conftest.er1 >conftest.err
6243  rm -f conftest.er1
6244  cat conftest.err >&5
6245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246  (exit $ac_status); } && {
6247	 test -z "$ac_c_werror_flag" ||
6248	 test ! -s conftest.err
6249       } && test -s conftest.$ac_objext; then
6250  eval "$as_ac_Header=yes"
6251else
6252  echo "$as_me: failed program was:" >&5
6253sed 's/^/| /' conftest.$ac_ext >&5
6254
6255	eval "$as_ac_Header=no"
6256fi
6257
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6259fi
6260ac_res=`eval echo '${'$as_ac_Header'}'`
6261	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6262echo "${ECHO_T}$ac_res" >&6; }
6263if test `eval echo '${'$as_ac_Header'}'` = yes; then
6264  cat >>confdefs.h <<_ACEOF
6265#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6266_ACEOF
6267
6268fi
6269
6270done
6271
6272
6273
6274for ac_header in dlfcn.h
6275do
6276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6278  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6280if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6281  echo $ECHO_N "(cached) $ECHO_C" >&6
6282fi
6283ac_res=`eval echo '${'$as_ac_Header'}'`
6284	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6285echo "${ECHO_T}$ac_res" >&6; }
6286else
6287  # Is the header compilable?
6288{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6289echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6290cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h.  */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h.  */
6296$ac_includes_default
6297#include <$ac_header>
6298_ACEOF
6299rm -f conftest.$ac_objext
6300if { (ac_try="$ac_compile"
6301case "(($ac_try" in
6302  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6303  *) ac_try_echo=$ac_try;;
6304esac
6305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6306  (eval "$ac_compile") 2>conftest.er1
6307  ac_status=$?
6308  grep -v '^ *+' conftest.er1 >conftest.err
6309  rm -f conftest.er1
6310  cat conftest.err >&5
6311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); } && {
6313	 test -z "$ac_c_werror_flag" ||
6314	 test ! -s conftest.err
6315       } && test -s conftest.$ac_objext; then
6316  ac_header_compiler=yes
6317else
6318  echo "$as_me: failed program was:" >&5
6319sed 's/^/| /' conftest.$ac_ext >&5
6320
6321	ac_header_compiler=no
6322fi
6323
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6326echo "${ECHO_T}$ac_header_compiler" >&6; }
6327
6328# Is the header present?
6329{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6331cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h.  */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h.  */
6337#include <$ac_header>
6338_ACEOF
6339if { (ac_try="$ac_cpp conftest.$ac_ext"
6340case "(($ac_try" in
6341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342  *) ac_try_echo=$ac_try;;
6343esac
6344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6346  ac_status=$?
6347  grep -v '^ *+' conftest.er1 >conftest.err
6348  rm -f conftest.er1
6349  cat conftest.err >&5
6350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351  (exit $ac_status); } >/dev/null && {
6352	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6353	 test ! -s conftest.err
6354       }; then
6355  ac_header_preproc=yes
6356else
6357  echo "$as_me: failed program was:" >&5
6358sed 's/^/| /' conftest.$ac_ext >&5
6359
6360  ac_header_preproc=no
6361fi
6362
6363rm -f conftest.err conftest.$ac_ext
6364{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6365echo "${ECHO_T}$ac_header_preproc" >&6; }
6366
6367# So?  What about this header?
6368case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6369  yes:no: )
6370    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6371echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6372    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6373echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6374    ac_header_preproc=yes
6375    ;;
6376  no:yes:* )
6377    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6378echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6379    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6380echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6381    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6382echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6383    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6384echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6385    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6386echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6387    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6388echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6389    ( cat <<\_ASBOX
6390## ---------------------------------- ##
6391## Report this to linux@brachttal.net ##
6392## ---------------------------------- ##
6393_ASBOX
6394     ) | sed "s/^/$as_me: WARNING:     /" >&2
6395    ;;
6396esac
6397{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6398echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6399if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6400  echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402  eval "$as_ac_Header=\$ac_header_preproc"
6403fi
6404ac_res=`eval echo '${'$as_ac_Header'}'`
6405	       { echo "$as_me:$LINENO: result: $ac_res" >&5
6406echo "${ECHO_T}$ac_res" >&6; }
6407
6408fi
6409if test `eval echo '${'$as_ac_Header'}'` = yes; then
6410  cat >>confdefs.h <<_ACEOF
6411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6412_ACEOF
6413
6414fi
6415
6416done
6417
6418
6419
6420if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6421    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6422    (test "X$CXX" != "Xg++"))) ; then
6423  ac_ext=cpp
6424ac_cpp='$CXXCPP $CPPFLAGS'
6425ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6426ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6427ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6428{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6429echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6430if test -z "$CXXCPP"; then
6431  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6432  echo $ECHO_N "(cached) $ECHO_C" >&6
6433else
6434      # Double quotes because CXXCPP needs to be expanded
6435    for CXXCPP in "$CXX -E" "/lib/cpp"
6436    do
6437      ac_preproc_ok=false
6438for ac_cxx_preproc_warn_flag in '' yes
6439do
6440  # Use a header file that comes with gcc, so configuring glibc
6441  # with a fresh cross-compiler works.
6442  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6443  # <limits.h> exists even on freestanding compilers.
6444  # On the NeXT, cc -E runs the code through the compiler's parser,
6445  # not just through cpp. "Syntax error" is here to catch this case.
6446  cat >conftest.$ac_ext <<_ACEOF
6447/* confdefs.h.  */
6448_ACEOF
6449cat confdefs.h >>conftest.$ac_ext
6450cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h.  */
6452#ifdef __STDC__
6453# include <limits.h>
6454#else
6455# include <assert.h>
6456#endif
6457		     Syntax error
6458_ACEOF
6459if { (ac_try="$ac_cpp conftest.$ac_ext"
6460case "(($ac_try" in
6461  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462  *) ac_try_echo=$ac_try;;
6463esac
6464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6466  ac_status=$?
6467  grep -v '^ *+' conftest.er1 >conftest.err
6468  rm -f conftest.er1
6469  cat conftest.err >&5
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); } >/dev/null && {
6472	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6473	 test ! -s conftest.err
6474       }; then
6475  :
6476else
6477  echo "$as_me: failed program was:" >&5
6478sed 's/^/| /' conftest.$ac_ext >&5
6479
6480  # Broken: fails on valid input.
6481continue
6482fi
6483
6484rm -f conftest.err conftest.$ac_ext
6485
6486  # OK, works on sane cases.  Now check whether nonexistent headers
6487  # can be detected and how.
6488  cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h.  */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h.  */
6494#include <ac_nonexistent.h>
6495_ACEOF
6496if { (ac_try="$ac_cpp conftest.$ac_ext"
6497case "(($ac_try" in
6498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6499  *) ac_try_echo=$ac_try;;
6500esac
6501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6502  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6503  ac_status=$?
6504  grep -v '^ *+' conftest.er1 >conftest.err
6505  rm -f conftest.er1
6506  cat conftest.err >&5
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); } >/dev/null && {
6509	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6510	 test ! -s conftest.err
6511       }; then
6512  # Broken: success on invalid input.
6513continue
6514else
6515  echo "$as_me: failed program was:" >&5
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518  # Passes both tests.
6519ac_preproc_ok=:
6520break
6521fi
6522
6523rm -f conftest.err conftest.$ac_ext
6524
6525done
6526# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6527rm -f conftest.err conftest.$ac_ext
6528if $ac_preproc_ok; then
6529  break
6530fi
6531
6532    done
6533    ac_cv_prog_CXXCPP=$CXXCPP
6534
6535fi
6536  CXXCPP=$ac_cv_prog_CXXCPP
6537else
6538  ac_cv_prog_CXXCPP=$CXXCPP
6539fi
6540{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6541echo "${ECHO_T}$CXXCPP" >&6; }
6542ac_preproc_ok=false
6543for ac_cxx_preproc_warn_flag in '' yes
6544do
6545  # Use a header file that comes with gcc, so configuring glibc
6546  # with a fresh cross-compiler works.
6547  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6548  # <limits.h> exists even on freestanding compilers.
6549  # On the NeXT, cc -E runs the code through the compiler's parser,
6550  # not just through cpp. "Syntax error" is here to catch this case.
6551  cat >conftest.$ac_ext <<_ACEOF
6552/* confdefs.h.  */
6553_ACEOF
6554cat confdefs.h >>conftest.$ac_ext
6555cat >>conftest.$ac_ext <<_ACEOF
6556/* end confdefs.h.  */
6557#ifdef __STDC__
6558# include <limits.h>
6559#else
6560# include <assert.h>
6561#endif
6562		     Syntax error
6563_ACEOF
6564if { (ac_try="$ac_cpp conftest.$ac_ext"
6565case "(($ac_try" in
6566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6567  *) ac_try_echo=$ac_try;;
6568esac
6569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6571  ac_status=$?
6572  grep -v '^ *+' conftest.er1 >conftest.err
6573  rm -f conftest.er1
6574  cat conftest.err >&5
6575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576  (exit $ac_status); } >/dev/null && {
6577	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6578	 test ! -s conftest.err
6579       }; then
6580  :
6581else
6582  echo "$as_me: failed program was:" >&5
6583sed 's/^/| /' conftest.$ac_ext >&5
6584
6585  # Broken: fails on valid input.
6586continue
6587fi
6588
6589rm -f conftest.err conftest.$ac_ext
6590
6591  # OK, works on sane cases.  Now check whether nonexistent headers
6592  # can be detected and how.
6593  cat >conftest.$ac_ext <<_ACEOF
6594/* confdefs.h.  */
6595_ACEOF
6596cat confdefs.h >>conftest.$ac_ext
6597cat >>conftest.$ac_ext <<_ACEOF
6598/* end confdefs.h.  */
6599#include <ac_nonexistent.h>
6600_ACEOF
6601if { (ac_try="$ac_cpp conftest.$ac_ext"
6602case "(($ac_try" in
6603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604  *) ac_try_echo=$ac_try;;
6605esac
6606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6608  ac_status=$?
6609  grep -v '^ *+' conftest.er1 >conftest.err
6610  rm -f conftest.er1
6611  cat conftest.err >&5
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); } >/dev/null && {
6614	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6615	 test ! -s conftest.err
6616       }; then
6617  # Broken: success on invalid input.
6618continue
6619else
6620  echo "$as_me: failed program was:" >&5
6621sed 's/^/| /' conftest.$ac_ext >&5
6622
6623  # Passes both tests.
6624ac_preproc_ok=:
6625break
6626fi
6627
6628rm -f conftest.err conftest.$ac_ext
6629
6630done
6631# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6632rm -f conftest.err conftest.$ac_ext
6633if $ac_preproc_ok; then
6634  :
6635else
6636  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6637See \`config.log' for more details." >&5
6638echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6639See \`config.log' for more details." >&2;}
6640   { (exit 1); exit 1; }; }
6641fi
6642
6643ac_ext=cpp
6644ac_cpp='$CXXCPP $CPPFLAGS'
6645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6648
6649fi
6650
6651
6652
6653# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6654
6655# find the maximum length of command line arguments
6656{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6657echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6658if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661    i=0
6662  teststring="ABCD"
6663
6664  case $build_os in
6665  msdosdjgpp*)
6666    # On DJGPP, this test can blow up pretty badly due to problems in libc
6667    # (any single argument exceeding 2000 bytes causes a buffer overrun
6668    # during glob expansion).  Even if it were fixed, the result of this
6669    # check would be larger than it should be.
6670    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6671    ;;
6672
6673  gnu*)
6674    # Under GNU Hurd, this test is not required because there is
6675    # no limit to the length of command line arguments.
6676    # Libtool will interpret -1 as no limit whatsoever
6677    lt_cv_sys_max_cmd_len=-1;
6678    ;;
6679
6680  cygwin* | mingw*)
6681    # On Win9x/ME, this test blows up -- it succeeds, but takes
6682    # about 5 minutes as the teststring grows exponentially.
6683    # Worse, since 9x/ME are not pre-emptively multitasking,
6684    # you end up with a "frozen" computer, even though with patience
6685    # the test eventually succeeds (with a max line length of 256k).
6686    # Instead, let's just punt: use the minimum linelength reported by
6687    # all of the supported platforms: 8192 (on NT/2K/XP).
6688    lt_cv_sys_max_cmd_len=8192;
6689    ;;
6690
6691  amigaos*)
6692    # On AmigaOS with pdksh, this test takes hours, literally.
6693    # So we just punt and use a minimum line length of 8192.
6694    lt_cv_sys_max_cmd_len=8192;
6695    ;;
6696
6697  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6698    # This has been around since 386BSD, at least.  Likely further.
6699    if test -x /sbin/sysctl; then
6700      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6701    elif test -x /usr/sbin/sysctl; then
6702      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6703    else
6704      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6705    fi
6706    # And add a safety zone
6707    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6708    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6709    ;;
6710
6711  interix*)
6712    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6713    lt_cv_sys_max_cmd_len=196608
6714    ;;
6715
6716  osf*)
6717    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6718    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6719    # nice to cause kernel panics so lets avoid the loop below.
6720    # First set a reasonable default.
6721    lt_cv_sys_max_cmd_len=16384
6722    #
6723    if test -x /sbin/sysconfig; then
6724      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6725        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6726      esac
6727    fi
6728    ;;
6729  sco3.2v5*)
6730    lt_cv_sys_max_cmd_len=102400
6731    ;;
6732  sysv5* | sco5v6* | sysv4.2uw2*)
6733    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6734    if test -n "$kargmax"; then
6735      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6736    else
6737      lt_cv_sys_max_cmd_len=32768
6738    fi
6739    ;;
6740  *)
6741    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6742    if test -n "$lt_cv_sys_max_cmd_len"; then
6743      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6744      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6745    else
6746      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6747      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6748	       = "XX$teststring") >/dev/null 2>&1 &&
6749	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6750	      lt_cv_sys_max_cmd_len=$new_result &&
6751	      test $i != 17 # 1/2 MB should be enough
6752      do
6753        i=`expr $i + 1`
6754        teststring=$teststring$teststring
6755      done
6756      teststring=
6757      # Add a significant safety factor because C++ compilers can tack on massive
6758      # amounts of additional arguments before passing them to the linker.
6759      # It appears as though 1/2 is a usable value.
6760      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6761    fi
6762    ;;
6763  esac
6764
6765fi
6766
6767if test -n $lt_cv_sys_max_cmd_len ; then
6768  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6769echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6770else
6771  { echo "$as_me:$LINENO: result: none" >&5
6772echo "${ECHO_T}none" >&6; }
6773fi
6774
6775
6776
6777
6778
6779# Check for command to grab the raw symbol name followed by C symbol from nm.
6780{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6781echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6782if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785
6786# These are sane defaults that work on at least a few old systems.
6787# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6788
6789# Character class describing NM global symbol codes.
6790symcode='[BCDEGRST]'
6791
6792# Regexp to match symbols that can be accessed directly from C.
6793sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6794
6795# Transform an extracted symbol line into a proper C declaration
6796lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6797
6798# Transform an extracted symbol line into symbol name and symbol address
6799lt_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'"
6800
6801# Define system-specific variables.
6802case $host_os in
6803aix*)
6804  symcode='[BCDT]'
6805  ;;
6806cygwin* | mingw* | pw32*)
6807  symcode='[ABCDGISTW]'
6808  ;;
6809hpux*) # Its linker distinguishes data from code symbols
6810  if test "$host_cpu" = ia64; then
6811    symcode='[ABCDEGRST]'
6812  fi
6813  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6814  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'"
6815  ;;
6816linux* | k*bsd*-gnu)
6817  if test "$host_cpu" = ia64; then
6818    symcode='[ABCDGIRSTW]'
6819    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6820    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'"
6821  fi
6822  ;;
6823irix* | nonstopux*)
6824  symcode='[BCDEGRST]'
6825  ;;
6826osf*)
6827  symcode='[BCDEGQRST]'
6828  ;;
6829solaris*)
6830  symcode='[BDRT]'
6831  ;;
6832sco3.2v5*)
6833  symcode='[DT]'
6834  ;;
6835sysv4.2uw2*)
6836  symcode='[DT]'
6837  ;;
6838sysv5* | sco5v6* | unixware* | OpenUNIX*)
6839  symcode='[ABDT]'
6840  ;;
6841sysv4)
6842  symcode='[DFNSTU]'
6843  ;;
6844esac
6845
6846# Handle CRLF in mingw tool chain
6847opt_cr=
6848case $build_os in
6849mingw*)
6850  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6851  ;;
6852esac
6853
6854# If we're using GNU nm, then use its standard symbol codes.
6855case `$NM -V 2>&1` in
6856*GNU* | *'with BFD'*)
6857  symcode='[ABCDGIRSTW]' ;;
6858esac
6859
6860# Try without a prefix undercore, then with it.
6861for ac_symprfx in "" "_"; do
6862
6863  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6864  symxfrm="\\1 $ac_symprfx\\2 \\2"
6865
6866  # Write the raw and C identifiers.
6867  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6868
6869  # Check to see that the pipe works correctly.
6870  pipe_works=no
6871
6872  rm -f conftest*
6873  cat > conftest.$ac_ext <<EOF
6874#ifdef __cplusplus
6875extern "C" {
6876#endif
6877char nm_test_var;
6878void nm_test_func(){}
6879#ifdef __cplusplus
6880}
6881#endif
6882int main(){nm_test_var='a';nm_test_func();return(0);}
6883EOF
6884
6885  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6886  (eval $ac_compile) 2>&5
6887  ac_status=$?
6888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889  (exit $ac_status); }; then
6890    # Now try to grab the symbols.
6891    nlist=conftest.nm
6892    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6893  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6894  ac_status=$?
6895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896  (exit $ac_status); } && test -s "$nlist"; then
6897      # Try sorting and uniquifying the output.
6898      if sort "$nlist" | uniq > "$nlist"T; then
6899	mv -f "$nlist"T "$nlist"
6900      else
6901	rm -f "$nlist"T
6902      fi
6903
6904      # Make sure that we snagged all the symbols we need.
6905      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6906	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6907	  cat <<EOF > conftest.$ac_ext
6908#ifdef __cplusplus
6909extern "C" {
6910#endif
6911
6912EOF
6913	  # Now generate the symbol file.
6914	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6915
6916	  cat <<EOF >> conftest.$ac_ext
6917#if defined (__STDC__) && __STDC__
6918# define lt_ptr_t void *
6919#else
6920# define lt_ptr_t char *
6921# define const
6922#endif
6923
6924/* The mapping between symbol names and symbols. */
6925const struct {
6926  const char *name;
6927  lt_ptr_t address;
6928}
6929lt_preloaded_symbols[] =
6930{
6931EOF
6932	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6933	  cat <<\EOF >> conftest.$ac_ext
6934  {0, (lt_ptr_t) 0}
6935};
6936
6937#ifdef __cplusplus
6938}
6939#endif
6940EOF
6941	  # Now try linking the two files.
6942	  mv conftest.$ac_objext conftstm.$ac_objext
6943	  lt_save_LIBS="$LIBS"
6944	  lt_save_CFLAGS="$CFLAGS"
6945	  LIBS="conftstm.$ac_objext"
6946	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6947	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948  (eval $ac_link) 2>&5
6949  ac_status=$?
6950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6952	    pipe_works=yes
6953	  fi
6954	  LIBS="$lt_save_LIBS"
6955	  CFLAGS="$lt_save_CFLAGS"
6956	else
6957	  echo "cannot find nm_test_func in $nlist" >&5
6958	fi
6959      else
6960	echo "cannot find nm_test_var in $nlist" >&5
6961      fi
6962    else
6963      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6964    fi
6965  else
6966    echo "$progname: failed program was:" >&5
6967    cat conftest.$ac_ext >&5
6968  fi
6969  rm -f conftest* conftst*
6970
6971  # Do not use the global_symbol_pipe unless it works.
6972  if test "$pipe_works" = yes; then
6973    break
6974  else
6975    lt_cv_sys_global_symbol_pipe=
6976  fi
6977done
6978
6979fi
6980
6981if test -z "$lt_cv_sys_global_symbol_pipe"; then
6982  lt_cv_sys_global_symbol_to_cdecl=
6983fi
6984if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6985  { echo "$as_me:$LINENO: result: failed" >&5
6986echo "${ECHO_T}failed" >&6; }
6987else
6988  { echo "$as_me:$LINENO: result: ok" >&5
6989echo "${ECHO_T}ok" >&6; }
6990fi
6991
6992{ echo "$as_me:$LINENO: checking for objdir" >&5
6993echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6994if test "${lt_cv_objdir+set}" = set; then
6995  echo $ECHO_N "(cached) $ECHO_C" >&6
6996else
6997  rm -f .libs 2>/dev/null
6998mkdir .libs 2>/dev/null
6999if test -d .libs; then
7000  lt_cv_objdir=.libs
7001else
7002  # MS-DOS does not allow filenames that begin with a dot.
7003  lt_cv_objdir=_libs
7004fi
7005rmdir .libs 2>/dev/null
7006fi
7007{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7008echo "${ECHO_T}$lt_cv_objdir" >&6; }
7009objdir=$lt_cv_objdir
7010
7011
7012
7013
7014
7015case $host_os in
7016aix3*)
7017  # AIX sometimes has problems with the GCC collect2 program.  For some
7018  # reason, if we set the COLLECT_NAMES environment variable, the problems
7019  # vanish in a puff of smoke.
7020  if test "X${COLLECT_NAMES+set}" != Xset; then
7021    COLLECT_NAMES=
7022    export COLLECT_NAMES
7023  fi
7024  ;;
7025esac
7026
7027# Sed substitution that helps us do robust quoting.  It backslashifies
7028# metacharacters that are still active within double-quoted strings.
7029Xsed='sed -e 1s/^X//'
7030sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7031
7032# Same as above, but do not quote variable references.
7033double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7034
7035# Sed substitution to delay expansion of an escaped shell variable in a
7036# double_quote_subst'ed string.
7037delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7038
7039# Sed substitution to avoid accidental globbing in evaled expressions
7040no_glob_subst='s/\*/\\\*/g'
7041
7042# Constants:
7043rm="rm -f"
7044
7045# Global variables:
7046default_ofile=libtool
7047can_build_shared=yes
7048
7049# All known linkers require a `.a' archive for static linking (except MSVC,
7050# which needs '.lib').
7051libext=a
7052ltmain="$ac_aux_dir/ltmain.sh"
7053ofile="$default_ofile"
7054with_gnu_ld="$lt_cv_prog_gnu_ld"
7055
7056if test -n "$ac_tool_prefix"; then
7057  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7058set dummy ${ac_tool_prefix}ar; ac_word=$2
7059{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061if test "${ac_cv_prog_AR+set}" = set; then
7062  echo $ECHO_N "(cached) $ECHO_C" >&6
7063else
7064  if test -n "$AR"; then
7065  ac_cv_prog_AR="$AR" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070  IFS=$as_save_IFS
7071  test -z "$as_dir" && as_dir=.
7072  for ac_exec_ext in '' $ac_executable_extensions; do
7073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074    ac_cv_prog_AR="${ac_tool_prefix}ar"
7075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076    break 2
7077  fi
7078done
7079done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084AR=$ac_cv_prog_AR
7085if test -n "$AR"; then
7086  { echo "$as_me:$LINENO: result: $AR" >&5
7087echo "${ECHO_T}$AR" >&6; }
7088else
7089  { echo "$as_me:$LINENO: result: no" >&5
7090echo "${ECHO_T}no" >&6; }
7091fi
7092
7093
7094fi
7095if test -z "$ac_cv_prog_AR"; then
7096  ac_ct_AR=$AR
7097  # Extract the first word of "ar", so it can be a program name with args.
7098set dummy ar; ac_word=$2
7099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7102  echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104  if test -n "$ac_ct_AR"; then
7105  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112  for ac_exec_ext in '' $ac_executable_extensions; do
7113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114    ac_cv_prog_ac_ct_AR="ar"
7115    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124ac_ct_AR=$ac_cv_prog_ac_ct_AR
7125if test -n "$ac_ct_AR"; then
7126  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7127echo "${ECHO_T}$ac_ct_AR" >&6; }
7128else
7129  { echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6; }
7131fi
7132
7133  if test "x$ac_ct_AR" = x; then
7134    AR="false"
7135  else
7136    case $cross_compiling:$ac_tool_warned in
7137yes:)
7138{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7139whose name does not start with the host triplet.  If you think this
7140configuration is useful to you, please write to autoconf@gnu.org." >&5
7141echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7142whose name does not start with the host triplet.  If you think this
7143configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7144ac_tool_warned=yes ;;
7145esac
7146    AR=$ac_ct_AR
7147  fi
7148else
7149  AR="$ac_cv_prog_AR"
7150fi
7151
7152if test -n "$ac_tool_prefix"; then
7153  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7154set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7155{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7157if test "${ac_cv_prog_RANLIB+set}" = set; then
7158  echo $ECHO_N "(cached) $ECHO_C" >&6
7159else
7160  if test -n "$RANLIB"; then
7161  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7162else
7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164for as_dir in $PATH
7165do
7166  IFS=$as_save_IFS
7167  test -z "$as_dir" && as_dir=.
7168  for ac_exec_ext in '' $ac_executable_extensions; do
7169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172    break 2
7173  fi
7174done
7175done
7176IFS=$as_save_IFS
7177
7178fi
7179fi
7180RANLIB=$ac_cv_prog_RANLIB
7181if test -n "$RANLIB"; then
7182  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7183echo "${ECHO_T}$RANLIB" >&6; }
7184else
7185  { echo "$as_me:$LINENO: result: no" >&5
7186echo "${ECHO_T}no" >&6; }
7187fi
7188
7189
7190fi
7191if test -z "$ac_cv_prog_RANLIB"; then
7192  ac_ct_RANLIB=$RANLIB
7193  # Extract the first word of "ranlib", so it can be a program name with args.
7194set dummy ranlib; ac_word=$2
7195{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7198  echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200  if test -n "$ac_ct_RANLIB"; then
7201  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7202else
7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206  IFS=$as_save_IFS
7207  test -z "$as_dir" && as_dir=.
7208  for ac_exec_ext in '' $ac_executable_extensions; do
7209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7210    ac_cv_prog_ac_ct_RANLIB="ranlib"
7211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215done
7216IFS=$as_save_IFS
7217
7218fi
7219fi
7220ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7221if test -n "$ac_ct_RANLIB"; then
7222  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7223echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7224else
7225  { echo "$as_me:$LINENO: result: no" >&5
7226echo "${ECHO_T}no" >&6; }
7227fi
7228
7229  if test "x$ac_ct_RANLIB" = x; then
7230    RANLIB=":"
7231  else
7232    case $cross_compiling:$ac_tool_warned in
7233yes:)
7234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7235whose name does not start with the host triplet.  If you think this
7236configuration is useful to you, please write to autoconf@gnu.org." >&5
7237echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7238whose name does not start with the host triplet.  If you think this
7239configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7240ac_tool_warned=yes ;;
7241esac
7242    RANLIB=$ac_ct_RANLIB
7243  fi
7244else
7245  RANLIB="$ac_cv_prog_RANLIB"
7246fi
7247
7248if test -n "$ac_tool_prefix"; then
7249  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7250set dummy ${ac_tool_prefix}strip; ac_word=$2
7251{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7253if test "${ac_cv_prog_STRIP+set}" = set; then
7254  echo $ECHO_N "(cached) $ECHO_C" >&6
7255else
7256  if test -n "$STRIP"; then
7257  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7258else
7259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260for as_dir in $PATH
7261do
7262  IFS=$as_save_IFS
7263  test -z "$as_dir" && as_dir=.
7264  for ac_exec_ext in '' $ac_executable_extensions; do
7265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7266    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268    break 2
7269  fi
7270done
7271done
7272IFS=$as_save_IFS
7273
7274fi
7275fi
7276STRIP=$ac_cv_prog_STRIP
7277if test -n "$STRIP"; then
7278  { echo "$as_me:$LINENO: result: $STRIP" >&5
7279echo "${ECHO_T}$STRIP" >&6; }
7280else
7281  { echo "$as_me:$LINENO: result: no" >&5
7282echo "${ECHO_T}no" >&6; }
7283fi
7284
7285
7286fi
7287if test -z "$ac_cv_prog_STRIP"; then
7288  ac_ct_STRIP=$STRIP
7289  # Extract the first word of "strip", so it can be a program name with args.
7290set dummy strip; ac_word=$2
7291{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7293if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  if test -n "$ac_ct_STRIP"; then
7297  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7298else
7299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300for as_dir in $PATH
7301do
7302  IFS=$as_save_IFS
7303  test -z "$as_dir" && as_dir=.
7304  for ac_exec_ext in '' $ac_executable_extensions; do
7305  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7306    ac_cv_prog_ac_ct_STRIP="strip"
7307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308    break 2
7309  fi
7310done
7311done
7312IFS=$as_save_IFS
7313
7314fi
7315fi
7316ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7317if test -n "$ac_ct_STRIP"; then
7318  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7319echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7320else
7321  { echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6; }
7323fi
7324
7325  if test "x$ac_ct_STRIP" = x; then
7326    STRIP=":"
7327  else
7328    case $cross_compiling:$ac_tool_warned in
7329yes:)
7330{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7331whose name does not start with the host triplet.  If you think this
7332configuration is useful to you, please write to autoconf@gnu.org." >&5
7333echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7334whose name does not start with the host triplet.  If you think this
7335configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7336ac_tool_warned=yes ;;
7337esac
7338    STRIP=$ac_ct_STRIP
7339  fi
7340else
7341  STRIP="$ac_cv_prog_STRIP"
7342fi
7343
7344
7345old_CC="$CC"
7346old_CFLAGS="$CFLAGS"
7347
7348# Set sane defaults for various variables
7349test -z "$AR" && AR=ar
7350test -z "$AR_FLAGS" && AR_FLAGS=cru
7351test -z "$AS" && AS=as
7352test -z "$CC" && CC=cc
7353test -z "$LTCC" && LTCC=$CC
7354test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7355test -z "$DLLTOOL" && DLLTOOL=dlltool
7356test -z "$LD" && LD=ld
7357test -z "$LN_S" && LN_S="ln -s"
7358test -z "$MAGIC_CMD" && MAGIC_CMD=file
7359test -z "$NM" && NM=nm
7360test -z "$SED" && SED=sed
7361test -z "$OBJDUMP" && OBJDUMP=objdump
7362test -z "$RANLIB" && RANLIB=:
7363test -z "$STRIP" && STRIP=:
7364test -z "$ac_objext" && ac_objext=o
7365
7366# Determine commands to create old-style static archives.
7367old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7368old_postinstall_cmds='chmod 644 $oldlib'
7369old_postuninstall_cmds=
7370
7371if test -n "$RANLIB"; then
7372  case $host_os in
7373  openbsd*)
7374    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7375    ;;
7376  *)
7377    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7378    ;;
7379  esac
7380  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7381fi
7382
7383for cc_temp in $compiler""; do
7384  case $cc_temp in
7385    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7386    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7387    \-*) ;;
7388    *) break;;
7389  esac
7390done
7391cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7392
7393
7394# Only perform the check for file, if the check method requires it
7395case $deplibs_check_method in
7396file_magic*)
7397  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7398    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7399echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7400if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7401  echo $ECHO_N "(cached) $ECHO_C" >&6
7402else
7403  case $MAGIC_CMD in
7404[\\/*] |  ?:[\\/]*)
7405  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7406  ;;
7407*)
7408  lt_save_MAGIC_CMD="$MAGIC_CMD"
7409  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7411  for ac_dir in $ac_dummy; do
7412    IFS="$lt_save_ifs"
7413    test -z "$ac_dir" && ac_dir=.
7414    if test -f $ac_dir/${ac_tool_prefix}file; then
7415      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7416      if test -n "$file_magic_test_file"; then
7417	case $deplibs_check_method in
7418	"file_magic "*)
7419	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7420	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7421	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7422	    $EGREP "$file_magic_regex" > /dev/null; then
7423	    :
7424	  else
7425	    cat <<EOF 1>&2
7426
7427*** Warning: the command libtool uses to detect shared libraries,
7428*** $file_magic_cmd, produces output that libtool cannot recognize.
7429*** The result is that libtool may fail to recognize shared libraries
7430*** as such.  This will affect the creation of libtool libraries that
7431*** depend on shared libraries, but programs linked with such libtool
7432*** libraries will work regardless of this problem.  Nevertheless, you
7433*** may want to report the problem to your system manager and/or to
7434*** bug-libtool@gnu.org
7435
7436EOF
7437	  fi ;;
7438	esac
7439      fi
7440      break
7441    fi
7442  done
7443  IFS="$lt_save_ifs"
7444  MAGIC_CMD="$lt_save_MAGIC_CMD"
7445  ;;
7446esac
7447fi
7448
7449MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450if test -n "$MAGIC_CMD"; then
7451  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7452echo "${ECHO_T}$MAGIC_CMD" >&6; }
7453else
7454  { echo "$as_me:$LINENO: result: no" >&5
7455echo "${ECHO_T}no" >&6; }
7456fi
7457
7458if test -z "$lt_cv_path_MAGIC_CMD"; then
7459  if test -n "$ac_tool_prefix"; then
7460    { echo "$as_me:$LINENO: checking for file" >&5
7461echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7462if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7463  echo $ECHO_N "(cached) $ECHO_C" >&6
7464else
7465  case $MAGIC_CMD in
7466[\\/*] |  ?:[\\/]*)
7467  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7468  ;;
7469*)
7470  lt_save_MAGIC_CMD="$MAGIC_CMD"
7471  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7472  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7473  for ac_dir in $ac_dummy; do
7474    IFS="$lt_save_ifs"
7475    test -z "$ac_dir" && ac_dir=.
7476    if test -f $ac_dir/file; then
7477      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7478      if test -n "$file_magic_test_file"; then
7479	case $deplibs_check_method in
7480	"file_magic "*)
7481	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7482	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7483	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7484	    $EGREP "$file_magic_regex" > /dev/null; then
7485	    :
7486	  else
7487	    cat <<EOF 1>&2
7488
7489*** Warning: the command libtool uses to detect shared libraries,
7490*** $file_magic_cmd, produces output that libtool cannot recognize.
7491*** The result is that libtool may fail to recognize shared libraries
7492*** as such.  This will affect the creation of libtool libraries that
7493*** depend on shared libraries, but programs linked with such libtool
7494*** libraries will work regardless of this problem.  Nevertheless, you
7495*** may want to report the problem to your system manager and/or to
7496*** bug-libtool@gnu.org
7497
7498EOF
7499	  fi ;;
7500	esac
7501      fi
7502      break
7503    fi
7504  done
7505  IFS="$lt_save_ifs"
7506  MAGIC_CMD="$lt_save_MAGIC_CMD"
7507  ;;
7508esac
7509fi
7510
7511MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7512if test -n "$MAGIC_CMD"; then
7513  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7514echo "${ECHO_T}$MAGIC_CMD" >&6; }
7515else
7516  { echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6; }
7518fi
7519
7520  else
7521    MAGIC_CMD=:
7522  fi
7523fi
7524
7525  fi
7526  ;;
7527esac
7528
7529enable_dlopen=no
7530enable_win32_dll=no
7531
7532# Check whether --enable-libtool-lock was given.
7533if test "${enable_libtool_lock+set}" = set; then
7534  enableval=$enable_libtool_lock;
7535fi
7536
7537test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7538
7539
7540# Check whether --with-pic was given.
7541if test "${with_pic+set}" = set; then
7542  withval=$with_pic; pic_mode="$withval"
7543else
7544  pic_mode=default
7545fi
7546
7547test -z "$pic_mode" && pic_mode=default
7548
7549# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7550#
7551# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7552#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7553#        calls AC_LIBTOOL_CONFIG and creates libtool.
7554#
7555{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7556echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
7557if test "x$ltmain" = "x" ; then
7558  { echo "$as_me:$LINENO: result: no" >&5
7559echo "${ECHO_T}no" >&6; }
7560  { { echo "$as_me:$LINENO: error:
7561
7562*** [Gentoo] sanity check failed! ***
7563*** \$ltmain is not defined, please check the patch for consistency! ***
7564" >&5
7565echo "$as_me: error:
7566
7567*** [Gentoo] sanity check failed! ***
7568*** \$ltmain is not defined, please check the patch for consistency! ***
7569" >&2;}
7570   { (exit 1); exit 1; }; }
7571fi
7572gentoo_lt_version="1.5.24"
7573gentoo_ltmain_version=`sed -n '/^[ 	]*VERSION=/{s/^[ 	]*VERSION=//;p;q;}' "$ltmain"`
7574if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7575  { echo "$as_me:$LINENO: result: no" >&5
7576echo "${ECHO_T}no" >&6; }
7577  { { echo "$as_me:$LINENO: error:
7578
7579*** [Gentoo] sanity check failed! ***
7580*** libtool.m4 and ltmain.sh have a version mismatch! ***
7581*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7582
7583Please run:
7584
7585  libtoolize --copy --force
7586
7587if appropriate, please contact the maintainer of this
7588package (or your distribution) for help.
7589" >&5
7590echo "$as_me: error:
7591
7592*** [Gentoo] sanity check failed! ***
7593*** libtool.m4 and ltmain.sh have a version mismatch! ***
7594*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7595
7596Please run:
7597
7598  libtoolize --copy --force
7599
7600if appropriate, please contact the maintainer of this
7601package (or your distribution) for help.
7602" >&2;}
7603   { (exit 1); exit 1; }; }
7604else
7605  { echo "$as_me:$LINENO: result: yes" >&5
7606echo "${ECHO_T}yes" >&6; }
7607fi
7608
7609
7610# Use C for the default configuration in the libtool script
7611tagname=
7612lt_save_CC="$CC"
7613ac_ext=c
7614ac_cpp='$CPP $CPPFLAGS'
7615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7617ac_compiler_gnu=$ac_cv_c_compiler_gnu
7618
7619
7620# Source file extension for C test sources.
7621ac_ext=c
7622
7623# Object file extension for compiled C test sources.
7624objext=o
7625objext=$objext
7626
7627# Code to be used in simple compile tests
7628lt_simple_compile_test_code="int some_variable = 0;"
7629
7630# Code to be used in simple link tests
7631lt_simple_link_test_code='int main(){return(0);}'
7632
7633
7634# If no C compiler was specified, use CC.
7635LTCC=${LTCC-"$CC"}
7636
7637# If no C compiler flags were specified, use CFLAGS.
7638LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7639
7640# Allow CC to be a program name with arguments.
7641compiler=$CC
7642
7643
7644# save warnings/boilerplate of simple test code
7645ac_outfile=conftest.$ac_objext
7646echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7647eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7648_lt_compiler_boilerplate=`cat conftest.err`
7649$rm conftest*
7650
7651ac_outfile=conftest.$ac_objext
7652echo "$lt_simple_link_test_code" >conftest.$ac_ext
7653eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7654_lt_linker_boilerplate=`cat conftest.err`
7655$rm conftest*
7656
7657
7658
7659lt_prog_compiler_no_builtin_flag=
7660
7661if test "$GCC" = yes; then
7662  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7663
7664
7665{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7666echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7667if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7668  echo $ECHO_N "(cached) $ECHO_C" >&6
7669else
7670  lt_cv_prog_compiler_rtti_exceptions=no
7671  ac_outfile=conftest.$ac_objext
7672   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7673   lt_compiler_flag="-fno-rtti -fno-exceptions"
7674   # Insert the option either (1) after the last *FLAGS variable, or
7675   # (2) before a word containing "conftest.", or (3) at the end.
7676   # Note that $ac_compile itself does not contain backslashes and begins
7677   # with a dollar sign (not a hyphen), so the echo should work correctly.
7678   # The option is referenced via a variable to avoid confusing sed.
7679   lt_compile=`echo "$ac_compile" | $SED \
7680   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7681   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7682   -e 's:$: $lt_compiler_flag:'`
7683   (eval echo "\"\$as_me:7683: $lt_compile\"" >&5)
7684   (eval "$lt_compile" 2>conftest.err)
7685   ac_status=$?
7686   cat conftest.err >&5
7687   echo "$as_me:7687: \$? = $ac_status" >&5
7688   if (exit $ac_status) && test -s "$ac_outfile"; then
7689     # The compiler can only warn and ignore the option if not recognized
7690     # So say no if there are warnings other than the usual output.
7691     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7692     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7693     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7694       lt_cv_prog_compiler_rtti_exceptions=yes
7695     fi
7696   fi
7697   $rm conftest*
7698
7699fi
7700{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7701echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7702
7703if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7704    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7705else
7706    :
7707fi
7708
7709fi
7710
7711lt_prog_compiler_wl=
7712lt_prog_compiler_pic=
7713lt_prog_compiler_static=
7714
7715{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7716echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7717
7718  if test "$GCC" = yes; then
7719    lt_prog_compiler_wl='-Wl,'
7720    lt_prog_compiler_static='-static'
7721
7722    case $host_os in
7723      aix*)
7724      # All AIX code is PIC.
7725      if test "$host_cpu" = ia64; then
7726	# AIX 5 now supports IA64 processor
7727	lt_prog_compiler_static='-Bstatic'
7728      fi
7729      ;;
7730
7731    amigaos*)
7732      # FIXME: we need at least 68020 code to build shared libraries, but
7733      # adding the `-m68020' flag to GCC prevents building anything better,
7734      # like `-m68040'.
7735      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7736      ;;
7737
7738    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7739      # PIC is the default for these OSes.
7740      ;;
7741
7742    mingw* | cygwin* | pw32* | os2*)
7743      # This hack is so that the source file can tell whether it is being
7744      # built for inclusion in a dll (and should export symbols for example).
7745      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7746      # (--disable-auto-import) libraries
7747      lt_prog_compiler_pic='-DDLL_EXPORT'
7748      ;;
7749
7750    darwin* | rhapsody*)
7751      # PIC is the default on this platform
7752      # Common symbols not allowed in MH_DYLIB files
7753      lt_prog_compiler_pic='-fno-common'
7754      ;;
7755
7756    interix[3-9]*)
7757      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7758      # Instead, we relocate shared libraries at runtime.
7759      ;;
7760
7761    msdosdjgpp*)
7762      # Just because we use GCC doesn't mean we suddenly get shared libraries
7763      # on systems that don't support them.
7764      lt_prog_compiler_can_build_shared=no
7765      enable_shared=no
7766      ;;
7767
7768    sysv4*MP*)
7769      if test -d /usr/nec; then
7770	lt_prog_compiler_pic=-Kconform_pic
7771      fi
7772      ;;
7773
7774    hpux*)
7775      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7776      # not for PA HP-UX.
7777      case $host_cpu in
7778      hppa*64*|ia64*)
7779	# +Z the default
7780	;;
7781      *)
7782	lt_prog_compiler_pic='-fPIC'
7783	;;
7784      esac
7785      ;;
7786
7787    *)
7788      lt_prog_compiler_pic='-fPIC'
7789      ;;
7790    esac
7791  else
7792    # PORTME Check for flag to pass linker flags through the system compiler.
7793    case $host_os in
7794    aix*)
7795      lt_prog_compiler_wl='-Wl,'
7796      if test "$host_cpu" = ia64; then
7797	# AIX 5 now supports IA64 processor
7798	lt_prog_compiler_static='-Bstatic'
7799      else
7800	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7801      fi
7802      ;;
7803      darwin*)
7804        # PIC is the default on this platform
7805        # Common symbols not allowed in MH_DYLIB files
7806       case $cc_basename in
7807         xlc*)
7808         lt_prog_compiler_pic='-qnocommon'
7809         lt_prog_compiler_wl='-Wl,'
7810         ;;
7811       esac
7812       ;;
7813
7814    mingw* | cygwin* | pw32* | os2*)
7815      # This hack is so that the source file can tell whether it is being
7816      # built for inclusion in a dll (and should export symbols for example).
7817      lt_prog_compiler_pic='-DDLL_EXPORT'
7818      ;;
7819
7820    hpux9* | hpux10* | hpux11*)
7821      lt_prog_compiler_wl='-Wl,'
7822      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7823      # not for PA HP-UX.
7824      case $host_cpu in
7825      hppa*64*|ia64*)
7826	# +Z the default
7827	;;
7828      *)
7829	lt_prog_compiler_pic='+Z'
7830	;;
7831      esac
7832      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7833      lt_prog_compiler_static='${wl}-a ${wl}archive'
7834      ;;
7835
7836    irix5* | irix6* | nonstopux*)
7837      lt_prog_compiler_wl='-Wl,'
7838      # PIC (with -KPIC) is the default.
7839      lt_prog_compiler_static='-non_shared'
7840      ;;
7841
7842    newsos6)
7843      lt_prog_compiler_pic='-KPIC'
7844      lt_prog_compiler_static='-Bstatic'
7845      ;;
7846
7847    linux* | k*bsd*-gnu)
7848      case $cc_basename in
7849      icc* | ecc*)
7850	lt_prog_compiler_wl='-Wl,'
7851	lt_prog_compiler_pic='-KPIC'
7852	lt_prog_compiler_static='-static'
7853        ;;
7854      pgcc* | pgf77* | pgf90* | pgf95*)
7855        # Portland Group compilers (*not* the Pentium gcc compiler,
7856	# which looks to be a dead project)
7857	lt_prog_compiler_wl='-Wl,'
7858	lt_prog_compiler_pic='-fpic'
7859	lt_prog_compiler_static='-Bstatic'
7860        ;;
7861      ccc*)
7862        lt_prog_compiler_wl='-Wl,'
7863        # All Alpha code is PIC.
7864        lt_prog_compiler_static='-non_shared'
7865        ;;
7866      *)
7867        case `$CC -V 2>&1 | sed 5q` in
7868	*Sun\ C*)
7869	  # Sun C 5.9
7870	  lt_prog_compiler_pic='-KPIC'
7871	  lt_prog_compiler_static='-Bstatic'
7872	  lt_prog_compiler_wl='-Wl,'
7873	  ;;
7874	*Sun\ F*)
7875	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7876	  lt_prog_compiler_pic='-KPIC'
7877	  lt_prog_compiler_static='-Bstatic'
7878	  lt_prog_compiler_wl=''
7879	  ;;
7880	esac
7881	;;
7882      esac
7883      ;;
7884
7885    osf3* | osf4* | osf5*)
7886      lt_prog_compiler_wl='-Wl,'
7887      # All OSF/1 code is PIC.
7888      lt_prog_compiler_static='-non_shared'
7889      ;;
7890
7891    rdos*)
7892      lt_prog_compiler_static='-non_shared'
7893      ;;
7894
7895    solaris*)
7896      lt_prog_compiler_pic='-KPIC'
7897      lt_prog_compiler_static='-Bstatic'
7898      case $cc_basename in
7899      f77* | f90* | f95*)
7900	lt_prog_compiler_wl='-Qoption ld ';;
7901      *)
7902	lt_prog_compiler_wl='-Wl,';;
7903      esac
7904      ;;
7905
7906    sunos4*)
7907      lt_prog_compiler_wl='-Qoption ld '
7908      lt_prog_compiler_pic='-PIC'
7909      lt_prog_compiler_static='-Bstatic'
7910      ;;
7911
7912    sysv4 | sysv4.2uw2* | sysv4.3*)
7913      lt_prog_compiler_wl='-Wl,'
7914      lt_prog_compiler_pic='-KPIC'
7915      lt_prog_compiler_static='-Bstatic'
7916      ;;
7917
7918    sysv4*MP*)
7919      if test -d /usr/nec ;then
7920	lt_prog_compiler_pic='-Kconform_pic'
7921	lt_prog_compiler_static='-Bstatic'
7922      fi
7923      ;;
7924
7925    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7926      lt_prog_compiler_wl='-Wl,'
7927      lt_prog_compiler_pic='-KPIC'
7928      lt_prog_compiler_static='-Bstatic'
7929      ;;
7930
7931    unicos*)
7932      lt_prog_compiler_wl='-Wl,'
7933      lt_prog_compiler_can_build_shared=no
7934      ;;
7935
7936    uts4*)
7937      lt_prog_compiler_pic='-pic'
7938      lt_prog_compiler_static='-Bstatic'
7939      ;;
7940
7941    *)
7942      lt_prog_compiler_can_build_shared=no
7943      ;;
7944    esac
7945  fi
7946
7947{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7948echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7949
7950#
7951# Check to make sure the PIC flag actually works.
7952#
7953if test -n "$lt_prog_compiler_pic"; then
7954
7955{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7956echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7957if test "${lt_prog_compiler_pic_works+set}" = set; then
7958  echo $ECHO_N "(cached) $ECHO_C" >&6
7959else
7960  lt_prog_compiler_pic_works=no
7961  ac_outfile=conftest.$ac_objext
7962   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7963   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7964   # Insert the option either (1) after the last *FLAGS variable, or
7965   # (2) before a word containing "conftest.", or (3) at the end.
7966   # Note that $ac_compile itself does not contain backslashes and begins
7967   # with a dollar sign (not a hyphen), so the echo should work correctly.
7968   # The option is referenced via a variable to avoid confusing sed.
7969   lt_compile=`echo "$ac_compile" | $SED \
7970   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7971   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7972   -e 's:$: $lt_compiler_flag:'`
7973   (eval echo "\"\$as_me:7973: $lt_compile\"" >&5)
7974   (eval "$lt_compile" 2>conftest.err)
7975   ac_status=$?
7976   cat conftest.err >&5
7977   echo "$as_me:7977: \$? = $ac_status" >&5
7978   if (exit $ac_status) && test -s "$ac_outfile"; then
7979     # The compiler can only warn and ignore the option if not recognized
7980     # So say no if there are warnings other than the usual output.
7981     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7982     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7983     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7984       lt_prog_compiler_pic_works=yes
7985     fi
7986   fi
7987   $rm conftest*
7988
7989fi
7990{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7991echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7992
7993if test x"$lt_prog_compiler_pic_works" = xyes; then
7994    case $lt_prog_compiler_pic in
7995     "" | " "*) ;;
7996     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7997     esac
7998else
7999    lt_prog_compiler_pic=
8000     lt_prog_compiler_can_build_shared=no
8001fi
8002
8003fi
8004case $host_os in
8005  # For platforms which do not support PIC, -DPIC is meaningless:
8006  *djgpp*)
8007    lt_prog_compiler_pic=
8008    ;;
8009  *)
8010    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8011    ;;
8012esac
8013
8014#
8015# Check to make sure the static flag actually works.
8016#
8017wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8018{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8019echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8020if test "${lt_prog_compiler_static_works+set}" = set; then
8021  echo $ECHO_N "(cached) $ECHO_C" >&6
8022else
8023  lt_prog_compiler_static_works=no
8024   save_LDFLAGS="$LDFLAGS"
8025   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8026   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8027   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8028     # The linker can only warn and ignore the option if not recognized
8029     # So say no if there are warnings
8030     if test -s conftest.err; then
8031       # Append any errors to the config.log.
8032       cat conftest.err 1>&5
8033       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8034       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8035       if diff conftest.exp conftest.er2 >/dev/null; then
8036         lt_prog_compiler_static_works=yes
8037       fi
8038     else
8039       lt_prog_compiler_static_works=yes
8040     fi
8041   fi
8042   $rm conftest*
8043   LDFLAGS="$save_LDFLAGS"
8044
8045fi
8046{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8047echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8048
8049if test x"$lt_prog_compiler_static_works" = xyes; then
8050    :
8051else
8052    lt_prog_compiler_static=
8053fi
8054
8055
8056{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8057echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8058if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8059  echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061  lt_cv_prog_compiler_c_o=no
8062   $rm -r conftest 2>/dev/null
8063   mkdir conftest
8064   cd conftest
8065   mkdir out
8066   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8067
8068   lt_compiler_flag="-o out/conftest2.$ac_objext"
8069   # Insert the option either (1) after the last *FLAGS variable, or
8070   # (2) before a word containing "conftest.", or (3) at the end.
8071   # Note that $ac_compile itself does not contain backslashes and begins
8072   # with a dollar sign (not a hyphen), so the echo should work correctly.
8073   lt_compile=`echo "$ac_compile" | $SED \
8074   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8075   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8076   -e 's:$: $lt_compiler_flag:'`
8077   (eval echo "\"\$as_me:8077: $lt_compile\"" >&5)
8078   (eval "$lt_compile" 2>out/conftest.err)
8079   ac_status=$?
8080   cat out/conftest.err >&5
8081   echo "$as_me:8081: \$? = $ac_status" >&5
8082   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8083   then
8084     # The compiler can only warn and ignore the option if not recognized
8085     # So say no if there are warnings
8086     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8087     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8088     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8089       lt_cv_prog_compiler_c_o=yes
8090     fi
8091   fi
8092   chmod u+w . 2>&5
8093   $rm conftest*
8094   # SGI C++ compiler will create directory out/ii_files/ for
8095   # template instantiation
8096   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8097   $rm out/* && rmdir out
8098   cd ..
8099   rmdir conftest
8100   $rm conftest*
8101
8102fi
8103{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8104echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8105
8106
8107hard_links="nottested"
8108if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8109  # do not overwrite the value of need_locks provided by the user
8110  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8111echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8112  hard_links=yes
8113  $rm conftest*
8114  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8115  touch conftest.a
8116  ln conftest.a conftest.b 2>&5 || hard_links=no
8117  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8118  { echo "$as_me:$LINENO: result: $hard_links" >&5
8119echo "${ECHO_T}$hard_links" >&6; }
8120  if test "$hard_links" = no; then
8121    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8122echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8123    need_locks=warn
8124  fi
8125else
8126  need_locks=no
8127fi
8128
8129{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8130echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8131
8132  runpath_var=
8133  allow_undefined_flag=
8134  enable_shared_with_static_runtimes=no
8135  archive_cmds=
8136  archive_expsym_cmds=
8137  old_archive_From_new_cmds=
8138  old_archive_from_expsyms_cmds=
8139  export_dynamic_flag_spec=
8140  whole_archive_flag_spec=
8141  thread_safe_flag_spec=
8142  hardcode_libdir_flag_spec=
8143  hardcode_libdir_flag_spec_ld=
8144  hardcode_libdir_separator=
8145  hardcode_direct=no
8146  hardcode_minus_L=no
8147  hardcode_shlibpath_var=unsupported
8148  link_all_deplibs=unknown
8149  hardcode_automatic=no
8150  module_cmds=
8151  module_expsym_cmds=
8152  always_export_symbols=no
8153  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8154  # include_expsyms should be a list of space-separated symbols to be *always*
8155  # included in the symbol list
8156  include_expsyms=
8157  # exclude_expsyms can be an extended regexp of symbols to exclude
8158  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8159  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8160  # as well as any symbol that contains `d'.
8161  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8162  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8163  # platforms (ab)use it in PIC code, but their linkers get confused if
8164  # the symbol is explicitly referenced.  Since portable code cannot
8165  # rely on this symbol name, it's probably fine to never include it in
8166  # preloaded symbol tables.
8167  extract_expsyms_cmds=
8168  # Just being paranoid about ensuring that cc_basename is set.
8169  for cc_temp in $compiler""; do
8170  case $cc_temp in
8171    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8172    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8173    \-*) ;;
8174    *) break;;
8175  esac
8176done
8177cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8178
8179  case $host_os in
8180  cygwin* | mingw* | pw32*)
8181    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8182    # When not using gcc, we currently assume that we are using
8183    # Microsoft Visual C++.
8184    if test "$GCC" != yes; then
8185      with_gnu_ld=no
8186    fi
8187    ;;
8188  interix*)
8189    # we just hope/assume this is gcc and not c89 (= MSVC++)
8190    with_gnu_ld=yes
8191    ;;
8192  openbsd*)
8193    with_gnu_ld=no
8194    ;;
8195  esac
8196
8197  ld_shlibs=yes
8198  if test "$with_gnu_ld" = yes; then
8199    # If archive_cmds runs LD, not CC, wlarc should be empty
8200    wlarc='${wl}'
8201
8202    # Set some defaults for GNU ld with shared library support. These
8203    # are reset later if shared libraries are not supported. Putting them
8204    # here allows them to be overridden if necessary.
8205    runpath_var=LD_RUN_PATH
8206    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8207    export_dynamic_flag_spec='${wl}--export-dynamic'
8208    # ancient GNU ld didn't support --whole-archive et. al.
8209    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8210	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8211      else
8212  	whole_archive_flag_spec=
8213    fi
8214    supports_anon_versioning=no
8215    case `$LD -v 2>/dev/null` in
8216      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8217      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8218      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8219      *\ 2.11.*) ;; # other 2.11 versions
8220      *) supports_anon_versioning=yes ;;
8221    esac
8222
8223    # See if GNU ld supports shared libraries.
8224    case $host_os in
8225    aix3* | aix4* | aix5*)
8226      # On AIX/PPC, the GNU linker is very broken
8227      if test "$host_cpu" != ia64; then
8228	ld_shlibs=no
8229	cat <<EOF 1>&2
8230
8231*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8232*** to be unable to reliably create shared libraries on AIX.
8233*** Therefore, libtool is disabling shared libraries support.  If you
8234*** really care for shared libraries, you may want to modify your PATH
8235*** so that a non-GNU linker is found, and then restart.
8236
8237EOF
8238      fi
8239      ;;
8240
8241    amigaos*)
8242      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)'
8243      hardcode_libdir_flag_spec='-L$libdir'
8244      hardcode_minus_L=yes
8245
8246      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8247      # that the semantics of dynamic libraries on AmigaOS, at least up
8248      # to version 4, is to share data among multiple programs linked
8249      # with the same dynamic library.  Since this doesn't match the
8250      # behavior of shared libraries on other platforms, we can't use
8251      # them.
8252      ld_shlibs=no
8253      ;;
8254
8255    beos*)
8256      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8257	allow_undefined_flag=unsupported
8258	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8259	# support --undefined.  This deserves some investigation.  FIXME
8260	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8261      else
8262	ld_shlibs=no
8263      fi
8264      ;;
8265
8266    cygwin* | mingw* | pw32*)
8267      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8268      # as there is no search path for DLLs.
8269      hardcode_libdir_flag_spec='-L$libdir'
8270      allow_undefined_flag=unsupported
8271      always_export_symbols=no
8272      enable_shared_with_static_runtimes=yes
8273      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8274
8275      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8276        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8277	# If the export-symbols file already is a .def file (1st line
8278	# is EXPORTS), use it as is; otherwise, prepend...
8279	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8280	  cp $export_symbols $output_objdir/$soname.def;
8281	else
8282	  echo EXPORTS > $output_objdir/$soname.def;
8283	  cat $export_symbols >> $output_objdir/$soname.def;
8284	fi~
8285	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8286      else
8287	ld_shlibs=no
8288      fi
8289      ;;
8290
8291    interix[3-9]*)
8292      hardcode_direct=no
8293      hardcode_shlibpath_var=no
8294      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8295      export_dynamic_flag_spec='${wl}-E'
8296      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8297      # Instead, shared libraries are loaded at an image base (0x10000000 by
8298      # default) and relocated if they conflict, which is a slow very memory
8299      # consuming and fragmenting process.  To avoid this, we pick a random,
8300      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8301      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8302      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8303      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'
8304      ;;
8305
8306    gnu* | linux* | k*bsd*-gnu)
8307      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8308	tmp_addflag=
8309	case $cc_basename,$host_cpu in
8310	pgcc*)				# Portland Group C compiler
8311	  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'
8312	  tmp_addflag=' $pic_flag'
8313	  ;;
8314	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8315	  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'
8316	  tmp_addflag=' $pic_flag -Mnomain' ;;
8317	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8318	  tmp_addflag=' -i_dynamic' ;;
8319	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8320	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8321	ifc* | ifort*)			# Intel Fortran compiler
8322	  tmp_addflag=' -nofor_main' ;;
8323	esac
8324	case `$CC -V 2>&1 | sed 5q` in
8325	*Sun\ C*)			# Sun C 5.9
8326	  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'
8327	  tmp_sharedflag='-G' ;;
8328	*Sun\ F*)			# Sun Fortran 8.3
8329	  tmp_sharedflag='-G' ;;
8330	*)
8331	  tmp_sharedflag='-shared' ;;
8332	esac
8333	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8334
8335	if test $supports_anon_versioning = yes; then
8336	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8337  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8338  $echo "local: *; };" >> $output_objdir/$libname.ver~
8339	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8340	fi
8341      else
8342	ld_shlibs=no
8343      fi
8344      ;;
8345
8346    netbsd*)
8347      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8348	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8349	wlarc=
8350      else
8351	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8352	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8353      fi
8354      ;;
8355
8356    solaris*)
8357      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8358	ld_shlibs=no
8359	cat <<EOF 1>&2
8360
8361*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8362*** create shared libraries on Solaris systems.  Therefore, libtool
8363*** is disabling shared libraries support.  We urge you to upgrade GNU
8364*** binutils to release 2.9.1 or newer.  Another option is to modify
8365*** your PATH or compiler configuration so that the native linker is
8366*** used, and then restart.
8367
8368EOF
8369      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8370	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8371	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8372      else
8373	ld_shlibs=no
8374      fi
8375      ;;
8376
8377    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8378      case `$LD -v 2>&1` in
8379        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8380	ld_shlibs=no
8381	cat <<_LT_EOF 1>&2
8382
8383*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8384*** reliably create shared libraries on SCO systems.  Therefore, libtool
8385*** is disabling shared libraries support.  We urge you to upgrade GNU
8386*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8387*** your PATH or compiler configuration so that the native linker is
8388*** used, and then restart.
8389
8390_LT_EOF
8391	;;
8392	*)
8393	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8395	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8396	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8397	  else
8398	    ld_shlibs=no
8399	  fi
8400	;;
8401      esac
8402      ;;
8403
8404    sunos4*)
8405      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8406      wlarc=
8407      hardcode_direct=yes
8408      hardcode_shlibpath_var=no
8409      ;;
8410
8411    *)
8412      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8413	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8415      else
8416	ld_shlibs=no
8417      fi
8418      ;;
8419    esac
8420
8421    if test "$ld_shlibs" = no; then
8422      runpath_var=
8423      hardcode_libdir_flag_spec=
8424      export_dynamic_flag_spec=
8425      whole_archive_flag_spec=
8426    fi
8427  else
8428    # PORTME fill in a description of your system's linker (not GNU ld)
8429    case $host_os in
8430    aix3*)
8431      allow_undefined_flag=unsupported
8432      always_export_symbols=yes
8433      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'
8434      # Note: this linker hardcodes the directories in LIBPATH if there
8435      # are no directories specified by -L.
8436      hardcode_minus_L=yes
8437      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8438	# Neither direct hardcoding nor static linking is supported with a
8439	# broken collect2.
8440	hardcode_direct=unsupported
8441      fi
8442      ;;
8443
8444    aix4* | aix5*)
8445      if test "$host_cpu" = ia64; then
8446	# On IA64, the linker does run time linking by default, so we don't
8447	# have to do anything special.
8448	aix_use_runtimelinking=no
8449	exp_sym_flag='-Bexport'
8450	no_entry_flag=""
8451      else
8452	# If we're using GNU nm, then we don't want the "-C" option.
8453	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8454	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8455	  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'
8456	else
8457	  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'
8458	fi
8459	aix_use_runtimelinking=no
8460
8461	# Test if we are trying to use run time linking or normal
8462	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8463	# need to do runtime linking.
8464	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8465	  for ld_flag in $LDFLAGS; do
8466  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8467  	    aix_use_runtimelinking=yes
8468  	    break
8469  	  fi
8470	  done
8471	  ;;
8472	esac
8473
8474	exp_sym_flag='-bexport'
8475	no_entry_flag='-bnoentry'
8476      fi
8477
8478      # When large executables or shared objects are built, AIX ld can
8479      # have problems creating the table of contents.  If linking a library
8480      # or program results in "error TOC overflow" add -mminimal-toc to
8481      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8482      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8483
8484      archive_cmds=''
8485      hardcode_direct=yes
8486      hardcode_libdir_separator=':'
8487      link_all_deplibs=yes
8488
8489      if test "$GCC" = yes; then
8490	case $host_os in aix4.[012]|aix4.[012].*)
8491	# We only want to do this on AIX 4.2 and lower, the check
8492	# below for broken collect2 doesn't work under 4.3+
8493	  collect2name=`${CC} -print-prog-name=collect2`
8494	  if test -f "$collect2name" && \
8495  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8496	  then
8497  	  # We have reworked collect2
8498  	  :
8499	  else
8500  	  # We have old collect2
8501  	  hardcode_direct=unsupported
8502  	  # It fails to find uninstalled libraries when the uninstalled
8503  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8504  	  # to unsupported forces relinking
8505  	  hardcode_minus_L=yes
8506  	  hardcode_libdir_flag_spec='-L$libdir'
8507  	  hardcode_libdir_separator=
8508	  fi
8509	  ;;
8510	esac
8511	shared_flag='-shared'
8512	if test "$aix_use_runtimelinking" = yes; then
8513	  shared_flag="$shared_flag "'${wl}-G'
8514	fi
8515      else
8516	# not using gcc
8517	if test "$host_cpu" = ia64; then
8518  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8519  	# chokes on -Wl,-G. The following line is correct:
8520	  shared_flag='-G'
8521	else
8522	  if test "$aix_use_runtimelinking" = yes; then
8523	    shared_flag='${wl}-G'
8524	  else
8525	    shared_flag='${wl}-bM:SRE'
8526	  fi
8527	fi
8528      fi
8529
8530      # It seems that -bexpall does not export symbols beginning with
8531      # underscore (_), so it is better to generate a list of symbols to export.
8532      always_export_symbols=yes
8533      if test "$aix_use_runtimelinking" = yes; then
8534	# Warning - without using the other runtime loading flags (-brtl),
8535	# -berok will link without error, but may produce a broken library.
8536	allow_undefined_flag='-berok'
8537       # Determine the default libpath from the value encoded in an empty executable.
8538       cat >conftest.$ac_ext <<_ACEOF
8539/* confdefs.h.  */
8540_ACEOF
8541cat confdefs.h >>conftest.$ac_ext
8542cat >>conftest.$ac_ext <<_ACEOF
8543/* end confdefs.h.  */
8544
8545int
8546main ()
8547{
8548
8549  ;
8550  return 0;
8551}
8552_ACEOF
8553rm -f conftest.$ac_objext conftest$ac_exeext
8554if { (ac_try="$ac_link"
8555case "(($ac_try" in
8556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557  *) ac_try_echo=$ac_try;;
8558esac
8559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560  (eval "$ac_link") 2>conftest.er1
8561  ac_status=$?
8562  grep -v '^ *+' conftest.er1 >conftest.err
8563  rm -f conftest.er1
8564  cat conftest.err >&5
8565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566  (exit $ac_status); } && {
8567	 test -z "$ac_c_werror_flag" ||
8568	 test ! -s conftest.err
8569       } && test -s conftest$ac_exeext &&
8570       $as_test_x conftest$ac_exeext; then
8571
8572lt_aix_libpath_sed='
8573    /Import File Strings/,/^$/ {
8574	/^0/ {
8575	    s/^0  *\(.*\)$/\1/
8576	    p
8577	}
8578    }'
8579aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8580# Check for a 64-bit object if we didn't find anything.
8581if test -z "$aix_libpath"; then
8582  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8583fi
8584else
8585  echo "$as_me: failed program was:" >&5
8586sed 's/^/| /' conftest.$ac_ext >&5
8587
8588
8589fi
8590
8591rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8592      conftest$ac_exeext conftest.$ac_ext
8593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8594
8595       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8596	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"
8597       else
8598	if test "$host_cpu" = ia64; then
8599	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8600	  allow_undefined_flag="-z nodefs"
8601	  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"
8602	else
8603	 # Determine the default libpath from the value encoded in an empty executable.
8604	 cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h.  */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h.  */
8610
8611int
8612main ()
8613{
8614
8615  ;
8616  return 0;
8617}
8618_ACEOF
8619rm -f conftest.$ac_objext conftest$ac_exeext
8620if { (ac_try="$ac_link"
8621case "(($ac_try" in
8622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623  *) ac_try_echo=$ac_try;;
8624esac
8625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626  (eval "$ac_link") 2>conftest.er1
8627  ac_status=$?
8628  grep -v '^ *+' conftest.er1 >conftest.err
8629  rm -f conftest.er1
8630  cat conftest.err >&5
8631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632  (exit $ac_status); } && {
8633	 test -z "$ac_c_werror_flag" ||
8634	 test ! -s conftest.err
8635       } && test -s conftest$ac_exeext &&
8636       $as_test_x conftest$ac_exeext; then
8637
8638lt_aix_libpath_sed='
8639    /Import File Strings/,/^$/ {
8640	/^0/ {
8641	    s/^0  *\(.*\)$/\1/
8642	    p
8643	}
8644    }'
8645aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8646# Check for a 64-bit object if we didn't find anything.
8647if test -z "$aix_libpath"; then
8648  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8649fi
8650else
8651  echo "$as_me: failed program was:" >&5
8652sed 's/^/| /' conftest.$ac_ext >&5
8653
8654
8655fi
8656
8657rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8658      conftest$ac_exeext conftest.$ac_ext
8659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8660
8661	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8662	  # Warning - without using the other run time loading flags,
8663	  # -berok will link without error, but may produce a broken library.
8664	  no_undefined_flag=' ${wl}-bernotok'
8665	  allow_undefined_flag=' ${wl}-berok'
8666	  # Exported symbols can be pulled into shared objects from archives
8667	  whole_archive_flag_spec='$convenience'
8668	  archive_cmds_need_lc=yes
8669	  # This is similar to how AIX traditionally builds its shared libraries.
8670	  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'
8671	fi
8672      fi
8673      ;;
8674
8675    amigaos*)
8676      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)'
8677      hardcode_libdir_flag_spec='-L$libdir'
8678      hardcode_minus_L=yes
8679      # see comment about different semantics on the GNU ld section
8680      ld_shlibs=no
8681      ;;
8682
8683    bsdi[45]*)
8684      export_dynamic_flag_spec=-rdynamic
8685      ;;
8686
8687    cygwin* | mingw* | pw32*)
8688      # When not using gcc, we currently assume that we are using
8689      # Microsoft Visual C++.
8690      # hardcode_libdir_flag_spec is actually meaningless, as there is
8691      # no search path for DLLs.
8692      hardcode_libdir_flag_spec=' '
8693      allow_undefined_flag=unsupported
8694      # Tell ltmain to make .lib files, not .a files.
8695      libext=lib
8696      # Tell ltmain to make .dll files, not .so files.
8697      shrext_cmds=".dll"
8698      # FIXME: Setting linknames here is a bad hack.
8699      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8700      # The linker will automatically build a .lib file if we build a DLL.
8701      old_archive_From_new_cmds='true'
8702      # FIXME: Should let the user specify the lib program.
8703      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8704      fix_srcfile_path='`cygpath -w "$srcfile"`'
8705      enable_shared_with_static_runtimes=yes
8706      ;;
8707
8708    darwin* | rhapsody*)
8709      case $host_os in
8710        rhapsody* | darwin1.[012])
8711         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8712         ;;
8713       *) # Darwin 1.3 on
8714         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8715           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8716         else
8717           case ${MACOSX_DEPLOYMENT_TARGET} in
8718             10.[012])
8719               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8720               ;;
8721             10.*)
8722               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8723               ;;
8724           esac
8725         fi
8726         ;;
8727      esac
8728      archive_cmds_need_lc=no
8729      hardcode_direct=no
8730      hardcode_automatic=yes
8731      hardcode_shlibpath_var=unsupported
8732      whole_archive_flag_spec=''
8733      link_all_deplibs=yes
8734    if test "$GCC" = yes ; then
8735    	output_verbose_link_cmd='echo'
8736        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8737      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8738      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8739      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8740      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}'
8741    else
8742      case $cc_basename in
8743        xlc*)
8744         output_verbose_link_cmd='echo'
8745         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8746         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8747          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8748         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}'
8749          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}'
8750          ;;
8751       *)
8752         ld_shlibs=no
8753          ;;
8754      esac
8755    fi
8756      ;;
8757
8758    dgux*)
8759      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8760      hardcode_libdir_flag_spec='-L$libdir'
8761      hardcode_shlibpath_var=no
8762      ;;
8763
8764    freebsd1*)
8765      ld_shlibs=no
8766      ;;
8767
8768    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8769    # support.  Future versions do this automatically, but an explicit c++rt0.o
8770    # does not break anything, and helps significantly (at the cost of a little
8771    # extra space).
8772    freebsd2.2*)
8773      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8774      hardcode_libdir_flag_spec='-R$libdir'
8775      hardcode_direct=yes
8776      hardcode_shlibpath_var=no
8777      ;;
8778
8779    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8780    freebsd2*)
8781      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782      hardcode_direct=yes
8783      hardcode_minus_L=yes
8784      hardcode_shlibpath_var=no
8785      ;;
8786
8787    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8788    freebsd* | dragonfly*)
8789      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8790      hardcode_libdir_flag_spec='-R$libdir'
8791      hardcode_direct=yes
8792      hardcode_shlibpath_var=no
8793      ;;
8794
8795    hpux9*)
8796      if test "$GCC" = yes; then
8797	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'
8798      else
8799	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'
8800      fi
8801      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8802      hardcode_libdir_separator=:
8803      hardcode_direct=yes
8804
8805      # hardcode_minus_L: Not really in the search PATH,
8806      # but as the default location of the library.
8807      hardcode_minus_L=yes
8808      export_dynamic_flag_spec='${wl}-E'
8809      ;;
8810
8811    hpux10*)
8812      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8813	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8814      else
8815	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8816      fi
8817      if test "$with_gnu_ld" = no; then
8818	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8819	hardcode_libdir_separator=:
8820
8821	hardcode_direct=yes
8822	export_dynamic_flag_spec='${wl}-E'
8823
8824	# hardcode_minus_L: Not really in the search PATH,
8825	# but as the default location of the library.
8826	hardcode_minus_L=yes
8827      fi
8828      ;;
8829
8830    hpux11*)
8831      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8832	case $host_cpu in
8833	hppa*64*)
8834	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8835	  ;;
8836	ia64*)
8837	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8838	  ;;
8839	*)
8840	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8841	  ;;
8842	esac
8843      else
8844	case $host_cpu in
8845	hppa*64*)
8846	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8847	  ;;
8848	ia64*)
8849	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8850	  ;;
8851	*)
8852	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8853	  ;;
8854	esac
8855      fi
8856      if test "$with_gnu_ld" = no; then
8857	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8858	hardcode_libdir_separator=:
8859
8860	case $host_cpu in
8861	hppa*64*|ia64*)
8862	  hardcode_libdir_flag_spec_ld='+b $libdir'
8863	  hardcode_direct=no
8864	  hardcode_shlibpath_var=no
8865	  ;;
8866	*)
8867	  hardcode_direct=yes
8868	  export_dynamic_flag_spec='${wl}-E'
8869
8870	  # hardcode_minus_L: Not really in the search PATH,
8871	  # but as the default location of the library.
8872	  hardcode_minus_L=yes
8873	  ;;
8874	esac
8875      fi
8876      ;;
8877
8878    irix5* | irix6* | nonstopux*)
8879      if test "$GCC" = yes; then
8880	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'
8881      else
8882	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'
8883	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8884      fi
8885      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8886      hardcode_libdir_separator=:
8887      link_all_deplibs=yes
8888      ;;
8889
8890    netbsd*)
8891      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8892	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8893      else
8894	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8895      fi
8896      hardcode_libdir_flag_spec='-R$libdir'
8897      hardcode_direct=yes
8898      hardcode_shlibpath_var=no
8899      ;;
8900
8901    newsos6)
8902      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8903      hardcode_direct=yes
8904      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905      hardcode_libdir_separator=:
8906      hardcode_shlibpath_var=no
8907      ;;
8908
8909    openbsd*)
8910      if test -f /usr/libexec/ld.so; then
8911	hardcode_direct=yes
8912	hardcode_shlibpath_var=no
8913	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8914	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8915	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8916	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8917	  export_dynamic_flag_spec='${wl}-E'
8918	else
8919	  case $host_os in
8920	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8921	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8922	     hardcode_libdir_flag_spec='-R$libdir'
8923	     ;;
8924	   *)
8925	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8926	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8927	     ;;
8928	  esac
8929        fi
8930      else
8931	ld_shlibs=no
8932      fi
8933      ;;
8934
8935    os2*)
8936      hardcode_libdir_flag_spec='-L$libdir'
8937      hardcode_minus_L=yes
8938      allow_undefined_flag=unsupported
8939      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'
8940      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8941      ;;
8942
8943    osf3*)
8944      if test "$GCC" = yes; then
8945	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8946	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'
8947      else
8948	allow_undefined_flag=' -expect_unresolved \*'
8949	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'
8950      fi
8951      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8952      hardcode_libdir_separator=:
8953      ;;
8954
8955    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8956      if test "$GCC" = yes; then
8957	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8958	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'
8959	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8960      else
8961	allow_undefined_flag=' -expect_unresolved \*'
8962	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'
8963	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8964	$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'
8965
8966	# Both c and cxx compiler support -rpath directly
8967	hardcode_libdir_flag_spec='-rpath $libdir'
8968      fi
8969      hardcode_libdir_separator=:
8970      ;;
8971
8972    solaris*)
8973      no_undefined_flag=' -z text'
8974      if test "$GCC" = yes; then
8975	wlarc='${wl}'
8976	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8977	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8978	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8979      else
8980	wlarc=''
8981	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8982	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8983  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8984      fi
8985      hardcode_libdir_flag_spec='-R$libdir'
8986      hardcode_shlibpath_var=no
8987      case $host_os in
8988      solaris2.[0-5] | solaris2.[0-5].*) ;;
8989      *)
8990	# The compiler driver will combine and reorder linker options,
8991	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8992	# but is careful enough not to reorder.
8993 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8994	if test "$GCC" = yes; then
8995	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8996	else
8997	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8998	fi
8999	;;
9000      esac
9001      link_all_deplibs=yes
9002      ;;
9003
9004    sunos4*)
9005      if test "x$host_vendor" = xsequent; then
9006	# Use $CC to link under sequent, because it throws in some extra .o
9007	# files that make .init and .fini sections work.
9008	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9009      else
9010	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9011      fi
9012      hardcode_libdir_flag_spec='-L$libdir'
9013      hardcode_direct=yes
9014      hardcode_minus_L=yes
9015      hardcode_shlibpath_var=no
9016      ;;
9017
9018    sysv4)
9019      case $host_vendor in
9020	sni)
9021	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022	  hardcode_direct=yes # is this really true???
9023	;;
9024	siemens)
9025	  ## LD is ld it makes a PLAMLIB
9026	  ## CC just makes a GrossModule.
9027	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9028	  reload_cmds='$CC -r -o $output$reload_objs'
9029	  hardcode_direct=no
9030        ;;
9031	motorola)
9032	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9034	;;
9035      esac
9036      runpath_var='LD_RUN_PATH'
9037      hardcode_shlibpath_var=no
9038      ;;
9039
9040    sysv4.3*)
9041      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9042      hardcode_shlibpath_var=no
9043      export_dynamic_flag_spec='-Bexport'
9044      ;;
9045
9046    sysv4*MP*)
9047      if test -d /usr/nec; then
9048	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049	hardcode_shlibpath_var=no
9050	runpath_var=LD_RUN_PATH
9051	hardcode_runpath_var=yes
9052	ld_shlibs=yes
9053      fi
9054      ;;
9055
9056    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9057      no_undefined_flag='${wl}-z,text'
9058      archive_cmds_need_lc=no
9059      hardcode_shlibpath_var=no
9060      runpath_var='LD_RUN_PATH'
9061
9062      if test "$GCC" = yes; then
9063	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9064	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9065      else
9066	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9067	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9068      fi
9069      ;;
9070
9071    sysv5* | sco3.2v5* | sco5v6*)
9072      # Note: We can NOT use -z defs as we might desire, because we do not
9073      # link with -lc, and that would cause any symbols used from libc to
9074      # always be unresolved, which means just about no library would
9075      # ever link correctly.  If we're not using GNU ld we use -z text
9076      # though, which does catch some bad symbols but isn't as heavy-handed
9077      # as -z defs.
9078      no_undefined_flag='${wl}-z,text'
9079      allow_undefined_flag='${wl}-z,nodefs'
9080      archive_cmds_need_lc=no
9081      hardcode_shlibpath_var=no
9082      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9083      hardcode_libdir_separator=':'
9084      link_all_deplibs=yes
9085      export_dynamic_flag_spec='${wl}-Bexport'
9086      runpath_var='LD_RUN_PATH'
9087
9088      if test "$GCC" = yes; then
9089	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9090	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091      else
9092	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9094      fi
9095      ;;
9096
9097    uts4*)
9098      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099      hardcode_libdir_flag_spec='-L$libdir'
9100      hardcode_shlibpath_var=no
9101      ;;
9102
9103    *)
9104      ld_shlibs=no
9105      ;;
9106    esac
9107  fi
9108
9109{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9110echo "${ECHO_T}$ld_shlibs" >&6; }
9111test "$ld_shlibs" = no && can_build_shared=no
9112
9113#
9114# Do we need to explicitly link libc?
9115#
9116case "x$archive_cmds_need_lc" in
9117x|xyes)
9118  # Assume -lc should be added
9119  archive_cmds_need_lc=yes
9120
9121  if test "$enable_shared" = yes && test "$GCC" = yes; then
9122    case $archive_cmds in
9123    *'~'*)
9124      # FIXME: we may have to deal with multi-command sequences.
9125      ;;
9126    '$CC '*)
9127      # Test whether the compiler implicitly links with -lc since on some
9128      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9129      # to ld, don't add -lc before -lgcc.
9130      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9131echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9132      $rm conftest*
9133      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9134
9135      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9136  (eval $ac_compile) 2>&5
9137  ac_status=$?
9138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); } 2>conftest.err; then
9140        soname=conftest
9141        lib=conftest
9142        libobjs=conftest.$ac_objext
9143        deplibs=
9144        wl=$lt_prog_compiler_wl
9145	pic_flag=$lt_prog_compiler_pic
9146        compiler_flags=-v
9147        linker_flags=-v
9148        verstring=
9149        output_objdir=.
9150        libname=conftest
9151        lt_save_allow_undefined_flag=$allow_undefined_flag
9152        allow_undefined_flag=
9153        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9154  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9155  ac_status=$?
9156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); }
9158        then
9159	  archive_cmds_need_lc=no
9160        else
9161	  archive_cmds_need_lc=yes
9162        fi
9163        allow_undefined_flag=$lt_save_allow_undefined_flag
9164      else
9165        cat conftest.err 1>&5
9166      fi
9167      $rm conftest*
9168      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9169echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9170      ;;
9171    esac
9172  fi
9173  ;;
9174esac
9175
9176{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9177echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9178library_names_spec=
9179libname_spec='lib$name'
9180soname_spec=
9181shrext_cmds=".so"
9182postinstall_cmds=
9183postuninstall_cmds=
9184finish_cmds=
9185finish_eval=
9186shlibpath_var=
9187shlibpath_overrides_runpath=unknown
9188version_type=none
9189dynamic_linker="$host_os ld.so"
9190sys_lib_dlsearch_path_spec="/lib /usr/lib"
9191
9192if test "$GCC" = yes; then
9193  case $host_os in
9194    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9195    *) lt_awk_arg="/^libraries:/" ;;
9196  esac
9197  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9198  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9199    # if the path contains ";" then we assume it to be the separator
9200    # otherwise default to the standard path separator (i.e. ":") - it is
9201    # assumed that no part of a normal pathname contains ";" but that should
9202    # okay in the real world where ";" in dirpaths is itself problematic.
9203    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9204  else
9205    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9206  fi
9207  # Ok, now we have the path, separated by spaces, we can step through it
9208  # and add multilib dir if necessary.
9209  lt_tmp_lt_search_path_spec=
9210  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9211  for lt_sys_path in $lt_search_path_spec; do
9212    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9213      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9214    else
9215      test -d "$lt_sys_path" && \
9216	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9217    fi
9218  done
9219  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9220BEGIN {RS=" "; FS="/|\n";} {
9221  lt_foo="";
9222  lt_count=0;
9223  for (lt_i = NF; lt_i > 0; lt_i--) {
9224    if ($lt_i != "" && $lt_i != ".") {
9225      if ($lt_i == "..") {
9226        lt_count++;
9227      } else {
9228        if (lt_count == 0) {
9229          lt_foo="/" $lt_i lt_foo;
9230        } else {
9231          lt_count--;
9232        }
9233      }
9234    }
9235  }
9236  if (lt_foo != "") { lt_freq[lt_foo]++; }
9237  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9238}'`
9239  sys_lib_search_path_spec=`echo $lt_search_path_spec`
9240else
9241  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9242fi
9243need_lib_prefix=unknown
9244hardcode_into_libs=no
9245
9246# when you set need_version to no, make sure it does not cause -set_version
9247# flags to be left without arguments
9248need_version=unknown
9249
9250case $host_os in
9251aix3*)
9252  version_type=linux
9253  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9254  shlibpath_var=LIBPATH
9255
9256  # AIX 3 has no versioning support, so we append a major version to the name.
9257  soname_spec='${libname}${release}${shared_ext}$major'
9258  ;;
9259
9260aix4* | aix5*)
9261  version_type=linux
9262  need_lib_prefix=no
9263  need_version=no
9264  hardcode_into_libs=yes
9265  if test "$host_cpu" = ia64; then
9266    # AIX 5 supports IA64
9267    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9268    shlibpath_var=LD_LIBRARY_PATH
9269  else
9270    # With GCC up to 2.95.x, collect2 would create an import file
9271    # for dependence libraries.  The import file would start with
9272    # the line `#! .'.  This would cause the generated library to
9273    # depend on `.', always an invalid library.  This was fixed in
9274    # development snapshots of GCC prior to 3.0.
9275    case $host_os in
9276      aix4 | aix4.[01] | aix4.[01].*)
9277      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9278	   echo ' yes '
9279	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9280	:
9281      else
9282	can_build_shared=no
9283      fi
9284      ;;
9285    esac
9286    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9287    # soname into executable. Probably we can add versioning support to
9288    # collect2, so additional links can be useful in future.
9289    if test "$aix_use_runtimelinking" = yes; then
9290      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9291      # instead of lib<name>.a to let people know that these are not
9292      # typical AIX shared libraries.
9293      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294    else
9295      # We preserve .a as extension for shared libraries through AIX4.2
9296      # and later when we are not doing run time linking.
9297      library_names_spec='${libname}${release}.a $libname.a'
9298      soname_spec='${libname}${release}${shared_ext}$major'
9299    fi
9300    shlibpath_var=LIBPATH
9301  fi
9302  ;;
9303
9304amigaos*)
9305  library_names_spec='$libname.ixlibrary $libname.a'
9306  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9307  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'
9308  ;;
9309
9310beos*)
9311  library_names_spec='${libname}${shared_ext}'
9312  dynamic_linker="$host_os ld.so"
9313  shlibpath_var=LIBRARY_PATH
9314  ;;
9315
9316bsdi[45]*)
9317  version_type=linux
9318  need_version=no
9319  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320  soname_spec='${libname}${release}${shared_ext}$major'
9321  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9322  shlibpath_var=LD_LIBRARY_PATH
9323  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9324  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9325  # the default ld.so.conf also contains /usr/contrib/lib and
9326  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9327  # libtool to hard-code these into programs
9328  ;;
9329
9330cygwin* | mingw* | pw32*)
9331  version_type=windows
9332  shrext_cmds=".dll"
9333  need_version=no
9334  need_lib_prefix=no
9335
9336  case $GCC,$host_os in
9337  yes,cygwin* | yes,mingw* | yes,pw32*)
9338    library_names_spec='$libname.dll.a'
9339    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9340    postinstall_cmds='base_file=`basename \${file}`~
9341      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9342      dldir=$destdir/`dirname \$dlpath`~
9343      test -d \$dldir || mkdir -p \$dldir~
9344      $install_prog $dir/$dlname \$dldir/$dlname~
9345      chmod a+x \$dldir/$dlname'
9346    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9347      dlpath=$dir/\$dldll~
9348       $rm \$dlpath'
9349    shlibpath_overrides_runpath=yes
9350
9351    case $host_os in
9352    cygwin*)
9353      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9354      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9355      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9356      ;;
9357    mingw*)
9358      # MinGW DLLs use traditional 'lib' prefix
9359      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9360      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9361      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9362        # It is most probably a Windows format PATH printed by
9363        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9364        # path with ; separators, and with drive letters. We can handle the
9365        # drive letters (cygwin fileutils understands them), so leave them,
9366        # especially as we might pass files found there to a mingw objdump,
9367        # which wouldn't understand a cygwinified path. Ahh.
9368        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9369      else
9370        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9371      fi
9372      ;;
9373    pw32*)
9374      # pw32 DLLs use 'pw' prefix rather than 'lib'
9375      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9376      ;;
9377    esac
9378    ;;
9379
9380  *)
9381    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9382    ;;
9383  esac
9384  dynamic_linker='Win32 ld.exe'
9385  # FIXME: first we should search . and the directory the executable is in
9386  shlibpath_var=PATH
9387  ;;
9388
9389darwin* | rhapsody*)
9390  dynamic_linker="$host_os dyld"
9391  version_type=darwin
9392  need_lib_prefix=no
9393  need_version=no
9394  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9395  soname_spec='${libname}${release}${major}$shared_ext'
9396  shlibpath_overrides_runpath=yes
9397  shlibpath_var=DYLD_LIBRARY_PATH
9398  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9399
9400  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9401  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9402  ;;
9403
9404dgux*)
9405  version_type=linux
9406  need_lib_prefix=no
9407  need_version=no
9408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9409  soname_spec='${libname}${release}${shared_ext}$major'
9410  shlibpath_var=LD_LIBRARY_PATH
9411  ;;
9412
9413freebsd1*)
9414  dynamic_linker=no
9415  ;;
9416
9417freebsd* | dragonfly*)
9418  # DragonFly does not have aout.  When/if they implement a new
9419  # versioning mechanism, adjust this.
9420  if test -x /usr/bin/objformat; then
9421    objformat=`/usr/bin/objformat`
9422  else
9423    case $host_os in
9424    freebsd[123]*) objformat=aout ;;
9425    *) objformat=elf ;;
9426    esac
9427  fi
9428  # Handle Gentoo/FreeBSD as it was Linux
9429  case $host_vendor in
9430    gentoo)
9431      version_type=linux ;;
9432    *)
9433      version_type=freebsd-$objformat ;;
9434  esac
9435
9436  case $version_type in
9437    freebsd-elf*)
9438      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9439      need_version=no
9440      need_lib_prefix=no
9441      ;;
9442    freebsd-*)
9443      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9444      need_version=yes
9445      ;;
9446    linux)
9447      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9448      soname_spec='${libname}${release}${shared_ext}$major'
9449      need_lib_prefix=no
9450      need_version=no
9451      ;;
9452  esac
9453  shlibpath_var=LD_LIBRARY_PATH
9454  case $host_os in
9455  freebsd2*)
9456    shlibpath_overrides_runpath=yes
9457    ;;
9458  freebsd3.[01]* | freebsdelf3.[01]*)
9459    shlibpath_overrides_runpath=yes
9460    hardcode_into_libs=yes
9461    ;;
9462  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9463  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9464    shlibpath_overrides_runpath=no
9465    hardcode_into_libs=yes
9466    ;;
9467  *) # from 4.6 on, and DragonFly
9468    shlibpath_overrides_runpath=yes
9469    hardcode_into_libs=yes
9470    ;;
9471  esac
9472  ;;
9473
9474gnu*)
9475  version_type=linux
9476  need_lib_prefix=no
9477  need_version=no
9478  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9479  soname_spec='${libname}${release}${shared_ext}$major'
9480  shlibpath_var=LD_LIBRARY_PATH
9481  hardcode_into_libs=yes
9482  ;;
9483
9484hpux9* | hpux10* | hpux11*)
9485  # Give a soname corresponding to the major version so that dld.sl refuses to
9486  # link against other versions.
9487  version_type=sunos
9488  need_lib_prefix=no
9489  need_version=no
9490  case $host_cpu in
9491  ia64*)
9492    shrext_cmds='.so'
9493    hardcode_into_libs=yes
9494    dynamic_linker="$host_os dld.so"
9495    shlibpath_var=LD_LIBRARY_PATH
9496    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9497    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9498    soname_spec='${libname}${release}${shared_ext}$major'
9499    if test "X$HPUX_IA64_MODE" = X32; then
9500      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9501    else
9502      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9503    fi
9504    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9505    ;;
9506   hppa*64*)
9507     shrext_cmds='.sl'
9508     hardcode_into_libs=yes
9509     dynamic_linker="$host_os dld.sl"
9510     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9511     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9512     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513     soname_spec='${libname}${release}${shared_ext}$major'
9514     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9515     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9516     ;;
9517   *)
9518    shrext_cmds='.sl'
9519    dynamic_linker="$host_os dld.sl"
9520    shlibpath_var=SHLIB_PATH
9521    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9522    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9523    soname_spec='${libname}${release}${shared_ext}$major'
9524    ;;
9525  esac
9526  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9527  postinstall_cmds='chmod 555 $lib'
9528  ;;
9529
9530interix[3-9]*)
9531  version_type=linux
9532  need_lib_prefix=no
9533  need_version=no
9534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9535  soname_spec='${libname}${release}${shared_ext}$major'
9536  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9537  shlibpath_var=LD_LIBRARY_PATH
9538  shlibpath_overrides_runpath=no
9539  hardcode_into_libs=yes
9540  ;;
9541
9542irix5* | irix6* | nonstopux*)
9543  case $host_os in
9544    nonstopux*) version_type=nonstopux ;;
9545    *)
9546	if test "$lt_cv_prog_gnu_ld" = yes; then
9547		version_type=linux
9548	else
9549		version_type=irix
9550	fi ;;
9551  esac
9552  need_lib_prefix=no
9553  need_version=no
9554  soname_spec='${libname}${release}${shared_ext}$major'
9555  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9556  case $host_os in
9557  irix5* | nonstopux*)
9558    libsuff= shlibsuff=
9559    ;;
9560  *)
9561    case $LD in # libtool.m4 will add one of these switches to LD
9562    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9563      libsuff= shlibsuff= libmagic=32-bit;;
9564    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9565      libsuff=32 shlibsuff=N32 libmagic=N32;;
9566    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9567      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9568    *) libsuff= shlibsuff= libmagic=never-match;;
9569    esac
9570    ;;
9571  esac
9572  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9573  shlibpath_overrides_runpath=no
9574  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9575  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9576  hardcode_into_libs=yes
9577  ;;
9578
9579# No shared lib support for Linux oldld, aout, or coff.
9580linux*oldld* | linux*aout* | linux*coff*)
9581  dynamic_linker=no
9582  ;;
9583
9584# This must be Linux ELF.
9585linux* | k*bsd*-gnu)
9586  version_type=linux
9587  need_lib_prefix=no
9588  need_version=no
9589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9590  soname_spec='${libname}${release}${shared_ext}$major'
9591  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9592  shlibpath_var=LD_LIBRARY_PATH
9593  shlibpath_overrides_runpath=no
9594  # This implies no fast_install, which is unacceptable.
9595  # Some rework will be needed to allow for fast_install
9596  # before this can be enabled.
9597  hardcode_into_libs=yes
9598
9599  # Append ld.so.conf contents to the search path
9600  if test -f /etc/ld.so.conf; then
9601    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' ' '`
9602    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9603  fi
9604
9605  # We used to test for /lib/ld.so.1 and disable shared libraries on
9606  # powerpc, because MkLinux only supported shared libraries with the
9607  # GNU dynamic linker.  Since this was broken with cross compilers,
9608  # most powerpc-linux boxes support dynamic linking these days and
9609  # people can always --disable-shared, the test was removed, and we
9610  # assume the GNU/Linux dynamic linker is in use.
9611  dynamic_linker='GNU/Linux ld.so'
9612  ;;
9613
9614netbsd*)
9615  version_type=sunos
9616  need_lib_prefix=no
9617  need_version=no
9618  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9619    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9621    dynamic_linker='NetBSD (a.out) ld.so'
9622  else
9623    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9624    soname_spec='${libname}${release}${shared_ext}$major'
9625    dynamic_linker='NetBSD ld.elf_so'
9626  fi
9627  shlibpath_var=LD_LIBRARY_PATH
9628  shlibpath_overrides_runpath=yes
9629  hardcode_into_libs=yes
9630  ;;
9631
9632newsos6)
9633  version_type=linux
9634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635  shlibpath_var=LD_LIBRARY_PATH
9636  shlibpath_overrides_runpath=yes
9637  ;;
9638
9639nto-qnx*)
9640  version_type=linux
9641  need_lib_prefix=no
9642  need_version=no
9643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644  soname_spec='${libname}${release}${shared_ext}$major'
9645  shlibpath_var=LD_LIBRARY_PATH
9646  shlibpath_overrides_runpath=yes
9647  ;;
9648
9649openbsd*)
9650  version_type=sunos
9651  sys_lib_dlsearch_path_spec="/usr/lib"
9652  need_lib_prefix=no
9653  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9654  case $host_os in
9655    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9656    *)                         need_version=no  ;;
9657  esac
9658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9659  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9660  shlibpath_var=LD_LIBRARY_PATH
9661  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9662    case $host_os in
9663      openbsd2.[89] | openbsd2.[89].*)
9664	shlibpath_overrides_runpath=no
9665	;;
9666      *)
9667	shlibpath_overrides_runpath=yes
9668	;;
9669      esac
9670  else
9671    shlibpath_overrides_runpath=yes
9672  fi
9673  ;;
9674
9675os2*)
9676  libname_spec='$name'
9677  shrext_cmds=".dll"
9678  need_lib_prefix=no
9679  library_names_spec='$libname${shared_ext} $libname.a'
9680  dynamic_linker='OS/2 ld.exe'
9681  shlibpath_var=LIBPATH
9682  ;;
9683
9684osf3* | osf4* | osf5*)
9685  version_type=osf
9686  need_lib_prefix=no
9687  need_version=no
9688  soname_spec='${libname}${release}${shared_ext}$major'
9689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9690  shlibpath_var=LD_LIBRARY_PATH
9691  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9692  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9693  ;;
9694
9695rdos*)
9696  dynamic_linker=no
9697  ;;
9698
9699solaris*)
9700  version_type=linux
9701  need_lib_prefix=no
9702  need_version=no
9703  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704  soname_spec='${libname}${release}${shared_ext}$major'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  shlibpath_overrides_runpath=yes
9707  hardcode_into_libs=yes
9708  # ldd complains unless libraries are executable
9709  postinstall_cmds='chmod +x $lib'
9710  ;;
9711
9712sunos4*)
9713  version_type=sunos
9714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9715  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9716  shlibpath_var=LD_LIBRARY_PATH
9717  shlibpath_overrides_runpath=yes
9718  if test "$with_gnu_ld" = yes; then
9719    need_lib_prefix=no
9720  fi
9721  need_version=yes
9722  ;;
9723
9724sysv4 | sysv4.3*)
9725  version_type=linux
9726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727  soname_spec='${libname}${release}${shared_ext}$major'
9728  shlibpath_var=LD_LIBRARY_PATH
9729  case $host_vendor in
9730    sni)
9731      shlibpath_overrides_runpath=no
9732      need_lib_prefix=no
9733      export_dynamic_flag_spec='${wl}-Blargedynsym'
9734      runpath_var=LD_RUN_PATH
9735      ;;
9736    siemens)
9737      need_lib_prefix=no
9738      ;;
9739    motorola)
9740      need_lib_prefix=no
9741      need_version=no
9742      shlibpath_overrides_runpath=no
9743      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9744      ;;
9745  esac
9746  ;;
9747
9748sysv4*MP*)
9749  if test -d /usr/nec ;then
9750    version_type=linux
9751    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9752    soname_spec='$libname${shared_ext}.$major'
9753    shlibpath_var=LD_LIBRARY_PATH
9754  fi
9755  ;;
9756
9757sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9758  version_type=freebsd-elf
9759  need_lib_prefix=no
9760  need_version=no
9761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9762  soname_spec='${libname}${release}${shared_ext}$major'
9763  shlibpath_var=LD_LIBRARY_PATH
9764  hardcode_into_libs=yes
9765  if test "$with_gnu_ld" = yes; then
9766    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9767    shlibpath_overrides_runpath=no
9768  else
9769    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9770    shlibpath_overrides_runpath=yes
9771    case $host_os in
9772      sco3.2v5*)
9773        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9774	;;
9775    esac
9776  fi
9777  sys_lib_dlsearch_path_spec='/usr/lib'
9778  ;;
9779
9780uts4*)
9781  version_type=linux
9782  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783  soname_spec='${libname}${release}${shared_ext}$major'
9784  shlibpath_var=LD_LIBRARY_PATH
9785  ;;
9786
9787*)
9788  dynamic_linker=no
9789  ;;
9790esac
9791{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9792echo "${ECHO_T}$dynamic_linker" >&6; }
9793test "$dynamic_linker" = no && can_build_shared=no
9794
9795variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9796if test "$GCC" = yes; then
9797  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9798fi
9799
9800{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9801echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9802hardcode_action=
9803if test -n "$hardcode_libdir_flag_spec" || \
9804   test -n "$runpath_var" || \
9805   test "X$hardcode_automatic" = "Xyes" ; then
9806
9807  # We can hardcode non-existant directories.
9808  if test "$hardcode_direct" != no &&
9809     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9810     # have to relink, otherwise we might link with an installed library
9811     # when we should be linking with a yet-to-be-installed one
9812     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9813     test "$hardcode_minus_L" != no; then
9814    # Linking always hardcodes the temporary library directory.
9815    hardcode_action=relink
9816  else
9817    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9818    hardcode_action=immediate
9819  fi
9820else
9821  # We cannot hardcode anything, or else we can only hardcode existing
9822  # directories.
9823  hardcode_action=unsupported
9824fi
9825{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9826echo "${ECHO_T}$hardcode_action" >&6; }
9827
9828if test "$hardcode_action" = relink; then
9829  # Fast installation is not supported
9830  enable_fast_install=no
9831elif test "$shlibpath_overrides_runpath" = yes ||
9832     test "$enable_shared" = no; then
9833  # Fast installation is not necessary
9834  enable_fast_install=needless
9835fi
9836
9837striplib=
9838old_striplib=
9839{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9840echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9841if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9842  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9843  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9844  { echo "$as_me:$LINENO: result: yes" >&5
9845echo "${ECHO_T}yes" >&6; }
9846else
9847# FIXME - insert some real tests, host_os isn't really good enough
9848  case $host_os in
9849   darwin*)
9850       if test -n "$STRIP" ; then
9851         striplib="$STRIP -x"
9852         old_striplib="$STRIP -S"
9853         { echo "$as_me:$LINENO: result: yes" >&5
9854echo "${ECHO_T}yes" >&6; }
9855       else
9856  { echo "$as_me:$LINENO: result: no" >&5
9857echo "${ECHO_T}no" >&6; }
9858fi
9859       ;;
9860   *)
9861  { echo "$as_me:$LINENO: result: no" >&5
9862echo "${ECHO_T}no" >&6; }
9863    ;;
9864  esac
9865fi
9866
9867if test "x$enable_dlopen" != xyes; then
9868  enable_dlopen=unknown
9869  enable_dlopen_self=unknown
9870  enable_dlopen_self_static=unknown
9871else
9872  lt_cv_dlopen=no
9873  lt_cv_dlopen_libs=
9874
9875  case $host_os in
9876  beos*)
9877    lt_cv_dlopen="load_add_on"
9878    lt_cv_dlopen_libs=
9879    lt_cv_dlopen_self=yes
9880    ;;
9881
9882  mingw* | pw32*)
9883    lt_cv_dlopen="LoadLibrary"
9884    lt_cv_dlopen_libs=
9885   ;;
9886
9887  cygwin*)
9888    lt_cv_dlopen="dlopen"
9889    lt_cv_dlopen_libs=
9890   ;;
9891
9892  darwin*)
9893  # if libdl is installed we need to link against it
9894    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9896if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897  echo $ECHO_N "(cached) $ECHO_C" >&6
9898else
9899  ac_check_lib_save_LIBS=$LIBS
9900LIBS="-ldl  $LIBS"
9901cat >conftest.$ac_ext <<_ACEOF
9902/* confdefs.h.  */
9903_ACEOF
9904cat confdefs.h >>conftest.$ac_ext
9905cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h.  */
9907
9908/* Override any GCC internal prototype to avoid an error.
9909   Use char because int might match the return type of a GCC
9910   builtin and then its argument prototype would still apply.  */
9911#ifdef __cplusplus
9912extern "C"
9913#endif
9914char dlopen ();
9915int
9916main ()
9917{
9918return dlopen ();
9919  ;
9920  return 0;
9921}
9922_ACEOF
9923rm -f conftest.$ac_objext conftest$ac_exeext
9924if { (ac_try="$ac_link"
9925case "(($ac_try" in
9926  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927  *) ac_try_echo=$ac_try;;
9928esac
9929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930  (eval "$ac_link") 2>conftest.er1
9931  ac_status=$?
9932  grep -v '^ *+' conftest.er1 >conftest.err
9933  rm -f conftest.er1
9934  cat conftest.err >&5
9935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936  (exit $ac_status); } && {
9937	 test -z "$ac_c_werror_flag" ||
9938	 test ! -s conftest.err
9939       } && test -s conftest$ac_exeext &&
9940       $as_test_x conftest$ac_exeext; then
9941  ac_cv_lib_dl_dlopen=yes
9942else
9943  echo "$as_me: failed program was:" >&5
9944sed 's/^/| /' conftest.$ac_ext >&5
9945
9946	ac_cv_lib_dl_dlopen=no
9947fi
9948
9949rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950      conftest$ac_exeext conftest.$ac_ext
9951LIBS=$ac_check_lib_save_LIBS
9952fi
9953{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9954echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9955if test $ac_cv_lib_dl_dlopen = yes; then
9956  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9957else
9958
9959    lt_cv_dlopen="dyld"
9960    lt_cv_dlopen_libs=
9961    lt_cv_dlopen_self=yes
9962
9963fi
9964
9965   ;;
9966
9967  *)
9968    { echo "$as_me:$LINENO: checking for shl_load" >&5
9969echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9970if test "${ac_cv_func_shl_load+set}" = set; then
9971  echo $ECHO_N "(cached) $ECHO_C" >&6
9972else
9973  cat >conftest.$ac_ext <<_ACEOF
9974/* confdefs.h.  */
9975_ACEOF
9976cat confdefs.h >>conftest.$ac_ext
9977cat >>conftest.$ac_ext <<_ACEOF
9978/* end confdefs.h.  */
9979/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9980   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9981#define shl_load innocuous_shl_load
9982
9983/* System header to define __stub macros and hopefully few prototypes,
9984    which can conflict with char shl_load (); below.
9985    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9986    <limits.h> exists even on freestanding compilers.  */
9987
9988#ifdef __STDC__
9989# include <limits.h>
9990#else
9991# include <assert.h>
9992#endif
9993
9994#undef shl_load
9995
9996/* Override any GCC internal prototype to avoid an error.
9997   Use char because int might match the return type of a GCC
9998   builtin and then its argument prototype would still apply.  */
9999#ifdef __cplusplus
10000extern "C"
10001#endif
10002char shl_load ();
10003/* The GNU C library defines this for functions which it implements
10004    to always fail with ENOSYS.  Some functions are actually named
10005    something starting with __ and the normal name is an alias.  */
10006#if defined __stub_shl_load || defined __stub___shl_load
10007choke me
10008#endif
10009
10010int
10011main ()
10012{
10013return shl_load ();
10014  ;
10015  return 0;
10016}
10017_ACEOF
10018rm -f conftest.$ac_objext conftest$ac_exeext
10019if { (ac_try="$ac_link"
10020case "(($ac_try" in
10021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022  *) ac_try_echo=$ac_try;;
10023esac
10024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025  (eval "$ac_link") 2>conftest.er1
10026  ac_status=$?
10027  grep -v '^ *+' conftest.er1 >conftest.err
10028  rm -f conftest.er1
10029  cat conftest.err >&5
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); } && {
10032	 test -z "$ac_c_werror_flag" ||
10033	 test ! -s conftest.err
10034       } && test -s conftest$ac_exeext &&
10035       $as_test_x conftest$ac_exeext; then
10036  ac_cv_func_shl_load=yes
10037else
10038  echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
10041	ac_cv_func_shl_load=no
10042fi
10043
10044rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045      conftest$ac_exeext conftest.$ac_ext
10046fi
10047{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10048echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10049if test $ac_cv_func_shl_load = yes; then
10050  lt_cv_dlopen="shl_load"
10051else
10052  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10053echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10054if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10055  echo $ECHO_N "(cached) $ECHO_C" >&6
10056else
10057  ac_check_lib_save_LIBS=$LIBS
10058LIBS="-ldld  $LIBS"
10059cat >conftest.$ac_ext <<_ACEOF
10060/* confdefs.h.  */
10061_ACEOF
10062cat confdefs.h >>conftest.$ac_ext
10063cat >>conftest.$ac_ext <<_ACEOF
10064/* end confdefs.h.  */
10065
10066/* Override any GCC internal prototype to avoid an error.
10067   Use char because int might match the return type of a GCC
10068   builtin and then its argument prototype would still apply.  */
10069#ifdef __cplusplus
10070extern "C"
10071#endif
10072char shl_load ();
10073int
10074main ()
10075{
10076return shl_load ();
10077  ;
10078  return 0;
10079}
10080_ACEOF
10081rm -f conftest.$ac_objext conftest$ac_exeext
10082if { (ac_try="$ac_link"
10083case "(($ac_try" in
10084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085  *) ac_try_echo=$ac_try;;
10086esac
10087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088  (eval "$ac_link") 2>conftest.er1
10089  ac_status=$?
10090  grep -v '^ *+' conftest.er1 >conftest.err
10091  rm -f conftest.er1
10092  cat conftest.err >&5
10093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094  (exit $ac_status); } && {
10095	 test -z "$ac_c_werror_flag" ||
10096	 test ! -s conftest.err
10097       } && test -s conftest$ac_exeext &&
10098       $as_test_x conftest$ac_exeext; then
10099  ac_cv_lib_dld_shl_load=yes
10100else
10101  echo "$as_me: failed program was:" >&5
10102sed 's/^/| /' conftest.$ac_ext >&5
10103
10104	ac_cv_lib_dld_shl_load=no
10105fi
10106
10107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10108      conftest$ac_exeext conftest.$ac_ext
10109LIBS=$ac_check_lib_save_LIBS
10110fi
10111{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10112echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10113if test $ac_cv_lib_dld_shl_load = yes; then
10114  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10115else
10116  { echo "$as_me:$LINENO: checking for dlopen" >&5
10117echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10118if test "${ac_cv_func_dlopen+set}" = set; then
10119  echo $ECHO_N "(cached) $ECHO_C" >&6
10120else
10121  cat >conftest.$ac_ext <<_ACEOF
10122/* confdefs.h.  */
10123_ACEOF
10124cat confdefs.h >>conftest.$ac_ext
10125cat >>conftest.$ac_ext <<_ACEOF
10126/* end confdefs.h.  */
10127/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10128   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10129#define dlopen innocuous_dlopen
10130
10131/* System header to define __stub macros and hopefully few prototypes,
10132    which can conflict with char dlopen (); below.
10133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10134    <limits.h> exists even on freestanding compilers.  */
10135
10136#ifdef __STDC__
10137# include <limits.h>
10138#else
10139# include <assert.h>
10140#endif
10141
10142#undef dlopen
10143
10144/* Override any GCC internal prototype to avoid an error.
10145   Use char because int might match the return type of a GCC
10146   builtin and then its argument prototype would still apply.  */
10147#ifdef __cplusplus
10148extern "C"
10149#endif
10150char dlopen ();
10151/* The GNU C library defines this for functions which it implements
10152    to always fail with ENOSYS.  Some functions are actually named
10153    something starting with __ and the normal name is an alias.  */
10154#if defined __stub_dlopen || defined __stub___dlopen
10155choke me
10156#endif
10157
10158int
10159main ()
10160{
10161return dlopen ();
10162  ;
10163  return 0;
10164}
10165_ACEOF
10166rm -f conftest.$ac_objext conftest$ac_exeext
10167if { (ac_try="$ac_link"
10168case "(($ac_try" in
10169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170  *) ac_try_echo=$ac_try;;
10171esac
10172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173  (eval "$ac_link") 2>conftest.er1
10174  ac_status=$?
10175  grep -v '^ *+' conftest.er1 >conftest.err
10176  rm -f conftest.er1
10177  cat conftest.err >&5
10178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179  (exit $ac_status); } && {
10180	 test -z "$ac_c_werror_flag" ||
10181	 test ! -s conftest.err
10182       } && test -s conftest$ac_exeext &&
10183       $as_test_x conftest$ac_exeext; then
10184  ac_cv_func_dlopen=yes
10185else
10186  echo "$as_me: failed program was:" >&5
10187sed 's/^/| /' conftest.$ac_ext >&5
10188
10189	ac_cv_func_dlopen=no
10190fi
10191
10192rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193      conftest$ac_exeext conftest.$ac_ext
10194fi
10195{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10196echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10197if test $ac_cv_func_dlopen = yes; then
10198  lt_cv_dlopen="dlopen"
10199else
10200  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10202if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203  echo $ECHO_N "(cached) $ECHO_C" >&6
10204else
10205  ac_check_lib_save_LIBS=$LIBS
10206LIBS="-ldl  $LIBS"
10207cat >conftest.$ac_ext <<_ACEOF
10208/* confdefs.h.  */
10209_ACEOF
10210cat confdefs.h >>conftest.$ac_ext
10211cat >>conftest.$ac_ext <<_ACEOF
10212/* end confdefs.h.  */
10213
10214/* Override any GCC internal prototype to avoid an error.
10215   Use char because int might match the return type of a GCC
10216   builtin and then its argument prototype would still apply.  */
10217#ifdef __cplusplus
10218extern "C"
10219#endif
10220char dlopen ();
10221int
10222main ()
10223{
10224return dlopen ();
10225  ;
10226  return 0;
10227}
10228_ACEOF
10229rm -f conftest.$ac_objext conftest$ac_exeext
10230if { (ac_try="$ac_link"
10231case "(($ac_try" in
10232  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233  *) ac_try_echo=$ac_try;;
10234esac
10235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236  (eval "$ac_link") 2>conftest.er1
10237  ac_status=$?
10238  grep -v '^ *+' conftest.er1 >conftest.err
10239  rm -f conftest.er1
10240  cat conftest.err >&5
10241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242  (exit $ac_status); } && {
10243	 test -z "$ac_c_werror_flag" ||
10244	 test ! -s conftest.err
10245       } && test -s conftest$ac_exeext &&
10246       $as_test_x conftest$ac_exeext; then
10247  ac_cv_lib_dl_dlopen=yes
10248else
10249  echo "$as_me: failed program was:" >&5
10250sed 's/^/| /' conftest.$ac_ext >&5
10251
10252	ac_cv_lib_dl_dlopen=no
10253fi
10254
10255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256      conftest$ac_exeext conftest.$ac_ext
10257LIBS=$ac_check_lib_save_LIBS
10258fi
10259{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10260echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10261if test $ac_cv_lib_dl_dlopen = yes; then
10262  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10263else
10264  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10265echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10266if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10267  echo $ECHO_N "(cached) $ECHO_C" >&6
10268else
10269  ac_check_lib_save_LIBS=$LIBS
10270LIBS="-lsvld  $LIBS"
10271cat >conftest.$ac_ext <<_ACEOF
10272/* confdefs.h.  */
10273_ACEOF
10274cat confdefs.h >>conftest.$ac_ext
10275cat >>conftest.$ac_ext <<_ACEOF
10276/* end confdefs.h.  */
10277
10278/* Override any GCC internal prototype to avoid an error.
10279   Use char because int might match the return type of a GCC
10280   builtin and then its argument prototype would still apply.  */
10281#ifdef __cplusplus
10282extern "C"
10283#endif
10284char dlopen ();
10285int
10286main ()
10287{
10288return dlopen ();
10289  ;
10290  return 0;
10291}
10292_ACEOF
10293rm -f conftest.$ac_objext conftest$ac_exeext
10294if { (ac_try="$ac_link"
10295case "(($ac_try" in
10296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297  *) ac_try_echo=$ac_try;;
10298esac
10299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300  (eval "$ac_link") 2>conftest.er1
10301  ac_status=$?
10302  grep -v '^ *+' conftest.er1 >conftest.err
10303  rm -f conftest.er1
10304  cat conftest.err >&5
10305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306  (exit $ac_status); } && {
10307	 test -z "$ac_c_werror_flag" ||
10308	 test ! -s conftest.err
10309       } && test -s conftest$ac_exeext &&
10310       $as_test_x conftest$ac_exeext; then
10311  ac_cv_lib_svld_dlopen=yes
10312else
10313  echo "$as_me: failed program was:" >&5
10314sed 's/^/| /' conftest.$ac_ext >&5
10315
10316	ac_cv_lib_svld_dlopen=no
10317fi
10318
10319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10320      conftest$ac_exeext conftest.$ac_ext
10321LIBS=$ac_check_lib_save_LIBS
10322fi
10323{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10324echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10325if test $ac_cv_lib_svld_dlopen = yes; then
10326  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10327else
10328  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10329echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10330if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10331  echo $ECHO_N "(cached) $ECHO_C" >&6
10332else
10333  ac_check_lib_save_LIBS=$LIBS
10334LIBS="-ldld  $LIBS"
10335cat >conftest.$ac_ext <<_ACEOF
10336/* confdefs.h.  */
10337_ACEOF
10338cat confdefs.h >>conftest.$ac_ext
10339cat >>conftest.$ac_ext <<_ACEOF
10340/* end confdefs.h.  */
10341
10342/* Override any GCC internal prototype to avoid an error.
10343   Use char because int might match the return type of a GCC
10344   builtin and then its argument prototype would still apply.  */
10345#ifdef __cplusplus
10346extern "C"
10347#endif
10348char dld_link ();
10349int
10350main ()
10351{
10352return dld_link ();
10353  ;
10354  return 0;
10355}
10356_ACEOF
10357rm -f conftest.$ac_objext conftest$ac_exeext
10358if { (ac_try="$ac_link"
10359case "(($ac_try" in
10360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361  *) ac_try_echo=$ac_try;;
10362esac
10363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364  (eval "$ac_link") 2>conftest.er1
10365  ac_status=$?
10366  grep -v '^ *+' conftest.er1 >conftest.err
10367  rm -f conftest.er1
10368  cat conftest.err >&5
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); } && {
10371	 test -z "$ac_c_werror_flag" ||
10372	 test ! -s conftest.err
10373       } && test -s conftest$ac_exeext &&
10374       $as_test_x conftest$ac_exeext; then
10375  ac_cv_lib_dld_dld_link=yes
10376else
10377  echo "$as_me: failed program was:" >&5
10378sed 's/^/| /' conftest.$ac_ext >&5
10379
10380	ac_cv_lib_dld_dld_link=no
10381fi
10382
10383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384      conftest$ac_exeext conftest.$ac_ext
10385LIBS=$ac_check_lib_save_LIBS
10386fi
10387{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10388echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10389if test $ac_cv_lib_dld_dld_link = yes; then
10390  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10391fi
10392
10393
10394fi
10395
10396
10397fi
10398
10399
10400fi
10401
10402
10403fi
10404
10405
10406fi
10407
10408    ;;
10409  esac
10410
10411  if test "x$lt_cv_dlopen" != xno; then
10412    enable_dlopen=yes
10413  else
10414    enable_dlopen=no
10415  fi
10416
10417  case $lt_cv_dlopen in
10418  dlopen)
10419    save_CPPFLAGS="$CPPFLAGS"
10420    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10421
10422    save_LDFLAGS="$LDFLAGS"
10423    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10424
10425    save_LIBS="$LIBS"
10426    LIBS="$lt_cv_dlopen_libs $LIBS"
10427
10428    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10429echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10430if test "${lt_cv_dlopen_self+set}" = set; then
10431  echo $ECHO_N "(cached) $ECHO_C" >&6
10432else
10433  	  if test "$cross_compiling" = yes; then :
10434  lt_cv_dlopen_self=cross
10435else
10436  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10437  lt_status=$lt_dlunknown
10438  cat > conftest.$ac_ext <<EOF
10439#line 10439 "configure"
10440#include "confdefs.h"
10441
10442#if HAVE_DLFCN_H
10443#include <dlfcn.h>
10444#endif
10445
10446#include <stdio.h>
10447
10448#ifdef RTLD_GLOBAL
10449#  define LT_DLGLOBAL		RTLD_GLOBAL
10450#else
10451#  ifdef DL_GLOBAL
10452#    define LT_DLGLOBAL		DL_GLOBAL
10453#  else
10454#    define LT_DLGLOBAL		0
10455#  endif
10456#endif
10457
10458/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10459   find out it does not work in some platform. */
10460#ifndef LT_DLLAZY_OR_NOW
10461#  ifdef RTLD_LAZY
10462#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10463#  else
10464#    ifdef DL_LAZY
10465#      define LT_DLLAZY_OR_NOW		DL_LAZY
10466#    else
10467#      ifdef RTLD_NOW
10468#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10469#      else
10470#        ifdef DL_NOW
10471#          define LT_DLLAZY_OR_NOW	DL_NOW
10472#        else
10473#          define LT_DLLAZY_OR_NOW	0
10474#        endif
10475#      endif
10476#    endif
10477#  endif
10478#endif
10479
10480#ifdef __cplusplus
10481extern "C" void exit (int);
10482#endif
10483
10484void fnord() { int i=42;}
10485int main ()
10486{
10487  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10488  int status = $lt_dlunknown;
10489
10490  if (self)
10491    {
10492      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10493      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10494      /* dlclose (self); */
10495    }
10496  else
10497    puts (dlerror ());
10498
10499    exit (status);
10500}
10501EOF
10502  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503  (eval $ac_link) 2>&5
10504  ac_status=$?
10505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10507    (./conftest; exit; ) >&5 2>/dev/null
10508    lt_status=$?
10509    case x$lt_status in
10510      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10511      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10512      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10513    esac
10514  else :
10515    # compilation failed
10516    lt_cv_dlopen_self=no
10517  fi
10518fi
10519rm -fr conftest*
10520
10521
10522fi
10523{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10524echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10525
10526    if test "x$lt_cv_dlopen_self" = xyes; then
10527      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10528      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10529echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10530if test "${lt_cv_dlopen_self_static+set}" = set; then
10531  echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533  	  if test "$cross_compiling" = yes; then :
10534  lt_cv_dlopen_self_static=cross
10535else
10536  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10537  lt_status=$lt_dlunknown
10538  cat > conftest.$ac_ext <<EOF
10539#line 10539 "configure"
10540#include "confdefs.h"
10541
10542#if HAVE_DLFCN_H
10543#include <dlfcn.h>
10544#endif
10545
10546#include <stdio.h>
10547
10548#ifdef RTLD_GLOBAL
10549#  define LT_DLGLOBAL		RTLD_GLOBAL
10550#else
10551#  ifdef DL_GLOBAL
10552#    define LT_DLGLOBAL		DL_GLOBAL
10553#  else
10554#    define LT_DLGLOBAL		0
10555#  endif
10556#endif
10557
10558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10559   find out it does not work in some platform. */
10560#ifndef LT_DLLAZY_OR_NOW
10561#  ifdef RTLD_LAZY
10562#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10563#  else
10564#    ifdef DL_LAZY
10565#      define LT_DLLAZY_OR_NOW		DL_LAZY
10566#    else
10567#      ifdef RTLD_NOW
10568#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10569#      else
10570#        ifdef DL_NOW
10571#          define LT_DLLAZY_OR_NOW	DL_NOW
10572#        else
10573#          define LT_DLLAZY_OR_NOW	0
10574#        endif
10575#      endif
10576#    endif
10577#  endif
10578#endif
10579
10580#ifdef __cplusplus
10581extern "C" void exit (int);
10582#endif
10583
10584void fnord() { int i=42;}
10585int main ()
10586{
10587  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10588  int status = $lt_dlunknown;
10589
10590  if (self)
10591    {
10592      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10593      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10594      /* dlclose (self); */
10595    }
10596  else
10597    puts (dlerror ());
10598
10599    exit (status);
10600}
10601EOF
10602  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603  (eval $ac_link) 2>&5
10604  ac_status=$?
10605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10607    (./conftest; exit; ) >&5 2>/dev/null
10608    lt_status=$?
10609    case x$lt_status in
10610      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10611      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10612      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10613    esac
10614  else :
10615    # compilation failed
10616    lt_cv_dlopen_self_static=no
10617  fi
10618fi
10619rm -fr conftest*
10620
10621
10622fi
10623{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10624echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10625    fi
10626
10627    CPPFLAGS="$save_CPPFLAGS"
10628    LDFLAGS="$save_LDFLAGS"
10629    LIBS="$save_LIBS"
10630    ;;
10631  esac
10632
10633  case $lt_cv_dlopen_self in
10634  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10635  *) enable_dlopen_self=unknown ;;
10636  esac
10637
10638  case $lt_cv_dlopen_self_static in
10639  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10640  *) enable_dlopen_self_static=unknown ;;
10641  esac
10642fi
10643
10644
10645# Report which library types will actually be built
10646{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10647echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10648{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10649echo "${ECHO_T}$can_build_shared" >&6; }
10650
10651{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10652echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10653test "$can_build_shared" = "no" && enable_shared=no
10654
10655# On AIX, shared libraries and static libraries use the same namespace, and
10656# are all built from PIC.
10657case $host_os in
10658aix3*)
10659  test "$enable_shared" = yes && enable_static=no
10660  if test -n "$RANLIB"; then
10661    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10662    postinstall_cmds='$RANLIB $lib'
10663  fi
10664  ;;
10665
10666aix4* | aix5*)
10667  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10668    test "$enable_shared" = yes && enable_static=no
10669  fi
10670    ;;
10671esac
10672{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10673echo "${ECHO_T}$enable_shared" >&6; }
10674
10675{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10676echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10677# Make sure either enable_shared or enable_static is yes.
10678test "$enable_shared" = yes || enable_static=yes
10679{ echo "$as_me:$LINENO: result: $enable_static" >&5
10680echo "${ECHO_T}$enable_static" >&6; }
10681
10682# The else clause should only fire when bootstrapping the
10683# libtool distribution, otherwise you forgot to ship ltmain.sh
10684# with your package, and you will get complaints that there are
10685# no rules to generate ltmain.sh.
10686if test -f "$ltmain"; then
10687  # See if we are running on zsh, and set the options which allow our commands through
10688  # without removal of \ escapes.
10689  if test -n "${ZSH_VERSION+set}" ; then
10690    setopt NO_GLOB_SUBST
10691  fi
10692  # Now quote all the things that may contain metacharacters while being
10693  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10694  # variables and quote the copies for generation of the libtool script.
10695  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10696    SED SHELL STRIP \
10697    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10698    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10699    deplibs_check_method reload_flag reload_cmds need_locks \
10700    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10701    lt_cv_sys_global_symbol_to_c_name_address \
10702    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10703    old_postinstall_cmds old_postuninstall_cmds \
10704    compiler \
10705    CC \
10706    LD \
10707    lt_prog_compiler_wl \
10708    lt_prog_compiler_pic \
10709    lt_prog_compiler_static \
10710    lt_prog_compiler_no_builtin_flag \
10711    export_dynamic_flag_spec \
10712    thread_safe_flag_spec \
10713    whole_archive_flag_spec \
10714    enable_shared_with_static_runtimes \
10715    old_archive_cmds \
10716    old_archive_from_new_cmds \
10717    predep_objects \
10718    postdep_objects \
10719    predeps \
10720    postdeps \
10721    compiler_lib_search_path \
10722    archive_cmds \
10723    archive_expsym_cmds \
10724    postinstall_cmds \
10725    postuninstall_cmds \
10726    old_archive_from_expsyms_cmds \
10727    allow_undefined_flag \
10728    no_undefined_flag \
10729    export_symbols_cmds \
10730    hardcode_libdir_flag_spec \
10731    hardcode_libdir_flag_spec_ld \
10732    hardcode_libdir_separator \
10733    hardcode_automatic \
10734    module_cmds \
10735    module_expsym_cmds \
10736    lt_cv_prog_compiler_c_o \
10737    fix_srcfile_path \
10738    exclude_expsyms \
10739    include_expsyms; do
10740
10741    case $var in
10742    old_archive_cmds | \
10743    old_archive_from_new_cmds | \
10744    archive_cmds | \
10745    archive_expsym_cmds | \
10746    module_cmds | \
10747    module_expsym_cmds | \
10748    old_archive_from_expsyms_cmds | \
10749    export_symbols_cmds | \
10750    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10751    postinstall_cmds | postuninstall_cmds | \
10752    old_postinstall_cmds | old_postuninstall_cmds | \
10753    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10754      # Double-quote double-evaled strings.
10755      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10756      ;;
10757    *)
10758      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10759      ;;
10760    esac
10761  done
10762
10763  case $lt_echo in
10764  *'\$0 --fallback-echo"')
10765    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10766    ;;
10767  esac
10768
10769cfgfile="${ofile}T"
10770  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10771  $rm -f "$cfgfile"
10772  { echo "$as_me:$LINENO: creating $ofile" >&5
10773echo "$as_me: creating $ofile" >&6;}
10774
10775  cat <<__EOF__ >> "$cfgfile"
10776#! $SHELL
10777
10778# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10779# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10780# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10781#
10782# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10783# Free Software Foundation, Inc.
10784#
10785# This file is part of GNU Libtool:
10786# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10787#
10788# This program is free software; you can redistribute it and/or modify
10789# it under the terms of the GNU General Public License as published by
10790# the Free Software Foundation; either version 2 of the License, or
10791# (at your option) any later version.
10792#
10793# This program is distributed in the hope that it will be useful, but
10794# WITHOUT ANY WARRANTY; without even the implied warranty of
10795# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10796# General Public License for more details.
10797#
10798# You should have received a copy of the GNU General Public License
10799# along with this program; if not, write to the Free Software
10800# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10801#
10802# As a special exception to the GNU General Public License, if you
10803# distribute this file as part of a program that contains a
10804# configuration script generated by Autoconf, you may include it under
10805# the same distribution terms that you use for the rest of that program.
10806
10807# A sed program that does not truncate output.
10808SED=$lt_SED
10809
10810# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10811Xsed="$SED -e 1s/^X//"
10812
10813# The HP-UX ksh and POSIX shell print the target directory to stdout
10814# if CDPATH is set.
10815(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10816
10817# The names of the tagged configurations supported by this script.
10818available_tags=
10819
10820# ### BEGIN LIBTOOL CONFIG
10821
10822# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10823
10824# Shell to use when invoking shell scripts.
10825SHELL=$lt_SHELL
10826
10827# Whether or not to build shared libraries.
10828build_libtool_libs=$enable_shared
10829
10830# Whether or not to build static libraries.
10831build_old_libs=$enable_static
10832
10833# Whether or not to add -lc for building shared libraries.
10834build_libtool_need_lc=$archive_cmds_need_lc
10835
10836# Whether or not to disallow shared libs when runtime libs are static
10837allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10838
10839# Whether or not to optimize for fast installation.
10840fast_install=$enable_fast_install
10841
10842# The host system.
10843host_alias=$host_alias
10844host=$host
10845host_os=$host_os
10846
10847# The build system.
10848build_alias=$build_alias
10849build=$build
10850build_os=$build_os
10851
10852# An echo program that does not interpret backslashes.
10853echo=$lt_echo
10854
10855# The archiver.
10856AR=$lt_AR
10857AR_FLAGS=$lt_AR_FLAGS
10858
10859# A C compiler.
10860LTCC=$lt_LTCC
10861
10862# LTCC compiler flags.
10863LTCFLAGS=$lt_LTCFLAGS
10864
10865# A language-specific compiler.
10866CC=$lt_compiler
10867
10868# Is the compiler the GNU C compiler?
10869with_gcc=$GCC
10870
10871# An ERE matcher.
10872EGREP=$lt_EGREP
10873
10874# The linker used to build libraries.
10875LD=$lt_LD
10876
10877# Whether we need hard or soft links.
10878LN_S=$lt_LN_S
10879
10880# A BSD-compatible nm program.
10881NM=$lt_NM
10882
10883# A symbol stripping program
10884STRIP=$lt_STRIP
10885
10886# Used to examine libraries when file_magic_cmd begins "file"
10887MAGIC_CMD=$MAGIC_CMD
10888
10889# Used on cygwin: DLL creation program.
10890DLLTOOL="$DLLTOOL"
10891
10892# Used on cygwin: object dumper.
10893OBJDUMP="$OBJDUMP"
10894
10895# Used on cygwin: assembler.
10896AS="$AS"
10897
10898# The name of the directory that contains temporary libtool files.
10899objdir=$objdir
10900
10901# How to create reloadable object files.
10902reload_flag=$lt_reload_flag
10903reload_cmds=$lt_reload_cmds
10904
10905# How to pass a linker flag through the compiler.
10906wl=$lt_lt_prog_compiler_wl
10907
10908# Object file suffix (normally "o").
10909objext="$ac_objext"
10910
10911# Old archive suffix (normally "a").
10912libext="$libext"
10913
10914# Shared library suffix (normally ".so").
10915shrext_cmds='$shrext_cmds'
10916
10917# Executable file suffix (normally "").
10918exeext="$exeext"
10919
10920# Additional compiler flags for building library objects.
10921pic_flag=$lt_lt_prog_compiler_pic
10922pic_mode=$pic_mode
10923
10924# What is the maximum length of a command?
10925max_cmd_len=$lt_cv_sys_max_cmd_len
10926
10927# Does compiler simultaneously support -c and -o options?
10928compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10929
10930# Must we lock files when doing compilation?
10931need_locks=$lt_need_locks
10932
10933# Do we need the lib prefix for modules?
10934need_lib_prefix=$need_lib_prefix
10935
10936# Do we need a version for libraries?
10937need_version=$need_version
10938
10939# Whether dlopen is supported.
10940dlopen_support=$enable_dlopen
10941
10942# Whether dlopen of programs is supported.
10943dlopen_self=$enable_dlopen_self
10944
10945# Whether dlopen of statically linked programs is supported.
10946dlopen_self_static=$enable_dlopen_self_static
10947
10948# Compiler flag to prevent dynamic linking.
10949link_static_flag=$lt_lt_prog_compiler_static
10950
10951# Compiler flag to turn off builtin functions.
10952no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10953
10954# Compiler flag to allow reflexive dlopens.
10955export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10956
10957# Compiler flag to generate shared objects directly from archives.
10958whole_archive_flag_spec=$lt_whole_archive_flag_spec
10959
10960# Compiler flag to generate thread-safe objects.
10961thread_safe_flag_spec=$lt_thread_safe_flag_spec
10962
10963# Library versioning type.
10964version_type=$version_type
10965
10966# Format of library name prefix.
10967libname_spec=$lt_libname_spec
10968
10969# List of archive names.  First name is the real one, the rest are links.
10970# The last name is the one that the linker finds with -lNAME.
10971library_names_spec=$lt_library_names_spec
10972
10973# The coded name of the library, if different from the real name.
10974soname_spec=$lt_soname_spec
10975
10976# Commands used to build and install an old-style archive.
10977RANLIB=$lt_RANLIB
10978old_archive_cmds=$lt_old_archive_cmds
10979old_postinstall_cmds=$lt_old_postinstall_cmds
10980old_postuninstall_cmds=$lt_old_postuninstall_cmds
10981
10982# Create an old-style archive from a shared archive.
10983old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10984
10985# Create a temporary old-style archive to link instead of a shared archive.
10986old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10987
10988# Commands used to build and install a shared archive.
10989archive_cmds=$lt_archive_cmds
10990archive_expsym_cmds=$lt_archive_expsym_cmds
10991postinstall_cmds=$lt_postinstall_cmds
10992postuninstall_cmds=$lt_postuninstall_cmds
10993
10994# Commands used to build a loadable module (assumed same as above if empty)
10995module_cmds=$lt_module_cmds
10996module_expsym_cmds=$lt_module_expsym_cmds
10997
10998# Commands to strip libraries.
10999old_striplib=$lt_old_striplib
11000striplib=$lt_striplib
11001
11002# Dependencies to place before the objects being linked to create a
11003# shared library.
11004predep_objects=$lt_predep_objects
11005
11006# Dependencies to place after the objects being linked to create a
11007# shared library.
11008postdep_objects=$lt_postdep_objects
11009
11010# Dependencies to place before the objects being linked to create a
11011# shared library.
11012predeps=$lt_predeps
11013
11014# Dependencies to place after the objects being linked to create a
11015# shared library.
11016postdeps=$lt_postdeps
11017
11018# The library search path used internally by the compiler when linking
11019# a shared library.
11020compiler_lib_search_path=$lt_compiler_lib_search_path
11021
11022# Method to check whether dependent libraries are shared objects.
11023deplibs_check_method=$lt_deplibs_check_method
11024
11025# Command to use when deplibs_check_method == file_magic.
11026file_magic_cmd=$lt_file_magic_cmd
11027
11028# Flag that allows shared libraries with undefined symbols to be built.
11029allow_undefined_flag=$lt_allow_undefined_flag
11030
11031# Flag that forces no undefined symbols.
11032no_undefined_flag=$lt_no_undefined_flag
11033
11034# Commands used to finish a libtool library installation in a directory.
11035finish_cmds=$lt_finish_cmds
11036
11037# Same as above, but a single script fragment to be evaled but not shown.
11038finish_eval=$lt_finish_eval
11039
11040# Take the output of nm and produce a listing of raw symbols and C names.
11041global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11042
11043# Transform the output of nm in a proper C declaration
11044global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11045
11046# Transform the output of nm in a C name address pair
11047global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11048
11049# This is the shared library runtime path variable.
11050runpath_var=$runpath_var
11051
11052# This is the shared library path variable.
11053shlibpath_var=$shlibpath_var
11054
11055# Is shlibpath searched before the hard-coded library search path?
11056shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11057
11058# How to hardcode a shared library path into an executable.
11059hardcode_action=$hardcode_action
11060
11061# Whether we should hardcode library paths into libraries.
11062hardcode_into_libs=$hardcode_into_libs
11063
11064# Flag to hardcode \$libdir into a binary during linking.
11065# This must work even if \$libdir does not exist.
11066hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11067
11068# If ld is used when linking, flag to hardcode \$libdir into
11069# a binary during linking. This must work even if \$libdir does
11070# not exist.
11071hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11072
11073# Whether we need a single -rpath flag with a separated argument.
11074hardcode_libdir_separator=$lt_hardcode_libdir_separator
11075
11076# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11077# resulting binary.
11078hardcode_direct=$hardcode_direct
11079
11080# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11081# resulting binary.
11082hardcode_minus_L=$hardcode_minus_L
11083
11084# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11085# the resulting binary.
11086hardcode_shlibpath_var=$hardcode_shlibpath_var
11087
11088# Set to yes if building a shared library automatically hardcodes DIR into the library
11089# and all subsequent libraries and executables linked against it.
11090hardcode_automatic=$hardcode_automatic
11091
11092# Variables whose values should be saved in libtool wrapper scripts and
11093# restored at relink time.
11094variables_saved_for_relink="$variables_saved_for_relink"
11095
11096# Whether libtool must link a program against all its dependency libraries.
11097link_all_deplibs=$link_all_deplibs
11098
11099# Compile-time system search path for libraries
11100sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11101
11102# Run-time system search path for libraries
11103sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11104
11105# Fix the shell variable \$srcfile for the compiler.
11106fix_srcfile_path=$lt_fix_srcfile_path
11107
11108# Set to yes if exported symbols are required.
11109always_export_symbols=$always_export_symbols
11110
11111# The commands to list exported symbols.
11112export_symbols_cmds=$lt_export_symbols_cmds
11113
11114# The commands to extract the exported symbol list from a shared archive.
11115extract_expsyms_cmds=$lt_extract_expsyms_cmds
11116
11117# Symbols that should not be listed in the preloaded symbols.
11118exclude_expsyms=$lt_exclude_expsyms
11119
11120# Symbols that must always be exported.
11121include_expsyms=$lt_include_expsyms
11122
11123# ### END LIBTOOL CONFIG
11124
11125__EOF__
11126
11127
11128  case $host_os in
11129  aix3*)
11130    cat <<\EOF >> "$cfgfile"
11131
11132# AIX sometimes has problems with the GCC collect2 program.  For some
11133# reason, if we set the COLLECT_NAMES environment variable, the problems
11134# vanish in a puff of smoke.
11135if test "X${COLLECT_NAMES+set}" != Xset; then
11136  COLLECT_NAMES=
11137  export COLLECT_NAMES
11138fi
11139EOF
11140    ;;
11141  esac
11142
11143  # We use sed instead of cat because bash on DJGPP gets confused if
11144  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11145  # text mode, it properly converts lines to CR/LF.  This bash problem
11146  # is reportedly fixed, but why not run on old versions too?
11147  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11148
11149  mv -f "$cfgfile" "$ofile" || \
11150    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11151  chmod +x "$ofile"
11152
11153else
11154  # If there is no Makefile yet, we rely on a make rule to execute
11155  # `config.status --recheck' to rerun these tests and create the
11156  # libtool script then.
11157  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11158  if test -f "$ltmain_in"; then
11159    test -f Makefile && make "$ltmain"
11160  fi
11161fi
11162
11163
11164ac_ext=c
11165ac_cpp='$CPP $CPPFLAGS'
11166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11168ac_compiler_gnu=$ac_cv_c_compiler_gnu
11169
11170CC="$lt_save_CC"
11171
11172
11173# Check whether --with-tags was given.
11174if test "${with_tags+set}" = set; then
11175  withval=$with_tags; tagnames="$withval"
11176fi
11177
11178
11179if test -f "$ltmain" && test -n "$tagnames"; then
11180  if test ! -f "${ofile}"; then
11181    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11182echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11183  fi
11184
11185  if test -z "$LTCC"; then
11186    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11187    if test -z "$LTCC"; then
11188      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11189echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11190    else
11191      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11192echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11193    fi
11194  fi
11195  if test -z "$LTCFLAGS"; then
11196    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11197  fi
11198
11199  # Extract list of available tagged configurations in $ofile.
11200  # Note that this assumes the entire list is on one line.
11201  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11202
11203  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11204  for tagname in $tagnames; do
11205    IFS="$lt_save_ifs"
11206    # Check whether tagname contains only valid characters
11207    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11208    "") ;;
11209    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11210echo "$as_me: error: invalid tag name: $tagname" >&2;}
11211   { (exit 1); exit 1; }; }
11212	;;
11213    esac
11214
11215    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11216    then
11217      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11218echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11219   { (exit 1); exit 1; }; }
11220    fi
11221
11222    # Update the list of available tags.
11223    if test -n "$tagname"; then
11224      echo appending configuration tag \"$tagname\" to $ofile
11225
11226      case $tagname in
11227      CXX)
11228	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11229	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11230	    (test "X$CXX" != "Xg++"))) ; then
11231	  ac_ext=cpp
11232ac_cpp='$CXXCPP $CPPFLAGS'
11233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11236
11237
11238
11239
11240archive_cmds_need_lc_CXX=no
11241allow_undefined_flag_CXX=
11242always_export_symbols_CXX=no
11243archive_expsym_cmds_CXX=
11244export_dynamic_flag_spec_CXX=
11245hardcode_direct_CXX=no
11246hardcode_libdir_flag_spec_CXX=
11247hardcode_libdir_flag_spec_ld_CXX=
11248hardcode_libdir_separator_CXX=
11249hardcode_minus_L_CXX=no
11250hardcode_shlibpath_var_CXX=unsupported
11251hardcode_automatic_CXX=no
11252module_cmds_CXX=
11253module_expsym_cmds_CXX=
11254link_all_deplibs_CXX=unknown
11255old_archive_cmds_CXX=$old_archive_cmds
11256no_undefined_flag_CXX=
11257whole_archive_flag_spec_CXX=
11258enable_shared_with_static_runtimes_CXX=no
11259
11260# Dependencies to place before and after the object being linked:
11261predep_objects_CXX=
11262postdep_objects_CXX=
11263predeps_CXX=
11264postdeps_CXX=
11265compiler_lib_search_path_CXX=
11266
11267# Source file extension for C++ test sources.
11268ac_ext=cpp
11269
11270# Object file extension for compiled C++ test sources.
11271objext=o
11272objext_CXX=$objext
11273
11274# Code to be used in simple compile tests
11275lt_simple_compile_test_code="int some_variable = 0;"
11276
11277# Code to be used in simple link tests
11278lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11279
11280# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11281
11282# If no C compiler was specified, use CC.
11283LTCC=${LTCC-"$CC"}
11284
11285# If no C compiler flags were specified, use CFLAGS.
11286LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11287
11288# Allow CC to be a program name with arguments.
11289compiler=$CC
11290
11291
11292# save warnings/boilerplate of simple test code
11293ac_outfile=conftest.$ac_objext
11294echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11295eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11296_lt_compiler_boilerplate=`cat conftest.err`
11297$rm conftest*
11298
11299ac_outfile=conftest.$ac_objext
11300echo "$lt_simple_link_test_code" >conftest.$ac_ext
11301eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11302_lt_linker_boilerplate=`cat conftest.err`
11303$rm conftest*
11304
11305
11306# Allow CC to be a program name with arguments.
11307lt_save_CC=$CC
11308lt_save_LD=$LD
11309lt_save_GCC=$GCC
11310GCC=$GXX
11311lt_save_with_gnu_ld=$with_gnu_ld
11312lt_save_path_LD=$lt_cv_path_LD
11313if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11314  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11315else
11316  $as_unset lt_cv_prog_gnu_ld
11317fi
11318if test -n "${lt_cv_path_LDCXX+set}"; then
11319  lt_cv_path_LD=$lt_cv_path_LDCXX
11320else
11321  $as_unset lt_cv_path_LD
11322fi
11323test -z "${LDCXX+set}" || LD=$LDCXX
11324CC=${CXX-"c++"}
11325compiler=$CC
11326compiler_CXX=$CC
11327for cc_temp in $compiler""; do
11328  case $cc_temp in
11329    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11330    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11331    \-*) ;;
11332    *) break;;
11333  esac
11334done
11335cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11336
11337
11338# We don't want -fno-exception wen compiling C++ code, so set the
11339# no_builtin_flag separately
11340if test "$GXX" = yes; then
11341  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11342else
11343  lt_prog_compiler_no_builtin_flag_CXX=
11344fi
11345
11346if test "$GXX" = yes; then
11347  # Set up default GNU C++ configuration
11348
11349
11350# Check whether --with-gnu-ld was given.
11351if test "${with_gnu_ld+set}" = set; then
11352  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11353else
11354  with_gnu_ld=no
11355fi
11356
11357ac_prog=ld
11358if test "$GCC" = yes; then
11359  # Check if gcc -print-prog-name=ld gives a path.
11360  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11361echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11362  case $host in
11363  *-*-mingw*)
11364    # gcc leaves a trailing carriage return which upsets mingw
11365    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11366  *)
11367    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11368  esac
11369  case $ac_prog in
11370    # Accept absolute paths.
11371    [\\/]* | ?:[\\/]*)
11372      re_direlt='/[^/][^/]*/\.\./'
11373      # Canonicalize the pathname of ld
11374      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11375      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11376	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11377      done
11378      test -z "$LD" && LD="$ac_prog"
11379      ;;
11380  "")
11381    # If it fails, then pretend we aren't using GCC.
11382    ac_prog=ld
11383    ;;
11384  *)
11385    # If it is relative, then search for the first ld in PATH.
11386    with_gnu_ld=unknown
11387    ;;
11388  esac
11389elif test "$with_gnu_ld" = yes; then
11390  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11391echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11392else
11393  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11394echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11395fi
11396if test "${lt_cv_path_LD+set}" = set; then
11397  echo $ECHO_N "(cached) $ECHO_C" >&6
11398else
11399  if test -z "$LD"; then
11400  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11401  for ac_dir in $PATH; do
11402    IFS="$lt_save_ifs"
11403    test -z "$ac_dir" && ac_dir=.
11404    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11405      lt_cv_path_LD="$ac_dir/$ac_prog"
11406      # Check to see if the program is GNU ld.  I'd rather use --version,
11407      # but apparently some variants of GNU ld only accept -v.
11408      # Break only if it was the GNU/non-GNU ld that we prefer.
11409      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11410      *GNU* | *'with BFD'*)
11411	test "$with_gnu_ld" != no && break
11412	;;
11413      *)
11414	test "$with_gnu_ld" != yes && break
11415	;;
11416      esac
11417    fi
11418  done
11419  IFS="$lt_save_ifs"
11420else
11421  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11422fi
11423fi
11424
11425LD="$lt_cv_path_LD"
11426if test -n "$LD"; then
11427  { echo "$as_me:$LINENO: result: $LD" >&5
11428echo "${ECHO_T}$LD" >&6; }
11429else
11430  { echo "$as_me:$LINENO: result: no" >&5
11431echo "${ECHO_T}no" >&6; }
11432fi
11433test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11434echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11435   { (exit 1); exit 1; }; }
11436{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11437echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11438if test "${lt_cv_prog_gnu_ld+set}" = set; then
11439  echo $ECHO_N "(cached) $ECHO_C" >&6
11440else
11441  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11442case `$LD -v 2>&1 </dev/null` in
11443*GNU* | *'with BFD'*)
11444  lt_cv_prog_gnu_ld=yes
11445  ;;
11446*)
11447  lt_cv_prog_gnu_ld=no
11448  ;;
11449esac
11450fi
11451{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11452echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11453with_gnu_ld=$lt_cv_prog_gnu_ld
11454
11455
11456
11457  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11458  # archiving commands below assume that GNU ld is being used.
11459  if test "$with_gnu_ld" = yes; then
11460    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461    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'
11462
11463    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11464    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11465
11466    # If archive_cmds runs LD, not CC, wlarc should be empty
11467    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11468    #     investigate it a little bit more. (MM)
11469    wlarc='${wl}'
11470
11471    # ancient GNU ld didn't support --whole-archive et. al.
11472    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11473	grep 'no-whole-archive' > /dev/null; then
11474      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11475    else
11476      whole_archive_flag_spec_CXX=
11477    fi
11478  else
11479    with_gnu_ld=no
11480    wlarc=
11481
11482    # A generic and very simple default shared library creation
11483    # command for GNU C++ for the case where it uses the native
11484    # linker, instead of GNU ld.  If possible, this setting should
11485    # overridden to take advantage of the native linker features on
11486    # the platform it is being used on.
11487    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11488  fi
11489
11490  # Commands to make compiler produce verbose output that lists
11491  # what "hidden" libraries, object files and flags are used when
11492  # linking a shared library.
11493  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11494
11495else
11496  GXX=no
11497  with_gnu_ld=no
11498  wlarc=
11499fi
11500
11501# PORTME: fill in a description of your system's C++ link characteristics
11502{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11503echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11504ld_shlibs_CXX=yes
11505case $host_os in
11506  aix3*)
11507    # FIXME: insert proper C++ library support
11508    ld_shlibs_CXX=no
11509    ;;
11510  aix4* | aix5*)
11511    if test "$host_cpu" = ia64; then
11512      # On IA64, the linker does run time linking by default, so we don't
11513      # have to do anything special.
11514      aix_use_runtimelinking=no
11515      exp_sym_flag='-Bexport'
11516      no_entry_flag=""
11517    else
11518      aix_use_runtimelinking=no
11519
11520      # Test if we are trying to use run time linking or normal
11521      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11522      # need to do runtime linking.
11523      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11524	for ld_flag in $LDFLAGS; do
11525	  case $ld_flag in
11526	  *-brtl*)
11527	    aix_use_runtimelinking=yes
11528	    break
11529	    ;;
11530	  esac
11531	done
11532	;;
11533      esac
11534
11535      exp_sym_flag='-bexport'
11536      no_entry_flag='-bnoentry'
11537    fi
11538
11539    # When large executables or shared objects are built, AIX ld can
11540    # have problems creating the table of contents.  If linking a library
11541    # or program results in "error TOC overflow" add -mminimal-toc to
11542    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11543    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11544
11545    archive_cmds_CXX=''
11546    hardcode_direct_CXX=yes
11547    hardcode_libdir_separator_CXX=':'
11548    link_all_deplibs_CXX=yes
11549
11550    if test "$GXX" = yes; then
11551      case $host_os in aix4.[012]|aix4.[012].*)
11552      # We only want to do this on AIX 4.2 and lower, the check
11553      # below for broken collect2 doesn't work under 4.3+
11554	collect2name=`${CC} -print-prog-name=collect2`
11555	if test -f "$collect2name" && \
11556	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11557	then
11558	  # We have reworked collect2
11559	  :
11560	else
11561	  # We have old collect2
11562	  hardcode_direct_CXX=unsupported
11563	  # It fails to find uninstalled libraries when the uninstalled
11564	  # path is not listed in the libpath.  Setting hardcode_minus_L
11565	  # to unsupported forces relinking
11566	  hardcode_minus_L_CXX=yes
11567	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11568	  hardcode_libdir_separator_CXX=
11569	fi
11570	;;
11571      esac
11572      shared_flag='-shared'
11573      if test "$aix_use_runtimelinking" = yes; then
11574	shared_flag="$shared_flag "'${wl}-G'
11575      fi
11576    else
11577      # not using gcc
11578      if test "$host_cpu" = ia64; then
11579	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11580	# chokes on -Wl,-G. The following line is correct:
11581	shared_flag='-G'
11582      else
11583	if test "$aix_use_runtimelinking" = yes; then
11584	  shared_flag='${wl}-G'
11585	else
11586	  shared_flag='${wl}-bM:SRE'
11587	fi
11588      fi
11589    fi
11590
11591    # It seems that -bexpall does not export symbols beginning with
11592    # underscore (_), so it is better to generate a list of symbols to export.
11593    always_export_symbols_CXX=yes
11594    if test "$aix_use_runtimelinking" = yes; then
11595      # Warning - without using the other runtime loading flags (-brtl),
11596      # -berok will link without error, but may produce a broken library.
11597      allow_undefined_flag_CXX='-berok'
11598      # Determine the default libpath from the value encoded in an empty executable.
11599      cat >conftest.$ac_ext <<_ACEOF
11600/* confdefs.h.  */
11601_ACEOF
11602cat confdefs.h >>conftest.$ac_ext
11603cat >>conftest.$ac_ext <<_ACEOF
11604/* end confdefs.h.  */
11605
11606int
11607main ()
11608{
11609
11610  ;
11611  return 0;
11612}
11613_ACEOF
11614rm -f conftest.$ac_objext conftest$ac_exeext
11615if { (ac_try="$ac_link"
11616case "(($ac_try" in
11617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11618  *) ac_try_echo=$ac_try;;
11619esac
11620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621  (eval "$ac_link") 2>conftest.er1
11622  ac_status=$?
11623  grep -v '^ *+' conftest.er1 >conftest.err
11624  rm -f conftest.er1
11625  cat conftest.err >&5
11626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627  (exit $ac_status); } && {
11628	 test -z "$ac_cxx_werror_flag" ||
11629	 test ! -s conftest.err
11630       } && test -s conftest$ac_exeext &&
11631       $as_test_x conftest$ac_exeext; then
11632
11633lt_aix_libpath_sed='
11634    /Import File Strings/,/^$/ {
11635	/^0/ {
11636	    s/^0  *\(.*\)$/\1/
11637	    p
11638	}
11639    }'
11640aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11641# Check for a 64-bit object if we didn't find anything.
11642if test -z "$aix_libpath"; then
11643  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11644fi
11645else
11646  echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
11649
11650fi
11651
11652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11653      conftest$ac_exeext conftest.$ac_ext
11654if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11655
11656      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11657
11658      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"
11659     else
11660      if test "$host_cpu" = ia64; then
11661	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11662	allow_undefined_flag_CXX="-z nodefs"
11663	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"
11664      else
11665	# Determine the default libpath from the value encoded in an empty executable.
11666	cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h.  */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h.  */
11672
11673int
11674main ()
11675{
11676
11677  ;
11678  return 0;
11679}
11680_ACEOF
11681rm -f conftest.$ac_objext conftest$ac_exeext
11682if { (ac_try="$ac_link"
11683case "(($ac_try" in
11684  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685  *) ac_try_echo=$ac_try;;
11686esac
11687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688  (eval "$ac_link") 2>conftest.er1
11689  ac_status=$?
11690  grep -v '^ *+' conftest.er1 >conftest.err
11691  rm -f conftest.er1
11692  cat conftest.err >&5
11693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694  (exit $ac_status); } && {
11695	 test -z "$ac_cxx_werror_flag" ||
11696	 test ! -s conftest.err
11697       } && test -s conftest$ac_exeext &&
11698       $as_test_x conftest$ac_exeext; then
11699
11700lt_aix_libpath_sed='
11701    /Import File Strings/,/^$/ {
11702	/^0/ {
11703	    s/^0  *\(.*\)$/\1/
11704	    p
11705	}
11706    }'
11707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11708# Check for a 64-bit object if we didn't find anything.
11709if test -z "$aix_libpath"; then
11710  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11711fi
11712else
11713  echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716
11717fi
11718
11719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11720      conftest$ac_exeext conftest.$ac_ext
11721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11722
11723	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11724	# Warning - without using the other run time loading flags,
11725	# -berok will link without error, but may produce a broken library.
11726	no_undefined_flag_CXX=' ${wl}-bernotok'
11727	allow_undefined_flag_CXX=' ${wl}-berok'
11728	# Exported symbols can be pulled into shared objects from archives
11729	whole_archive_flag_spec_CXX='$convenience'
11730	archive_cmds_need_lc_CXX=yes
11731	# This is similar to how AIX traditionally builds its shared libraries.
11732	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'
11733      fi
11734    fi
11735    ;;
11736
11737  beos*)
11738    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11739      allow_undefined_flag_CXX=unsupported
11740      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11741      # support --undefined.  This deserves some investigation.  FIXME
11742      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11743    else
11744      ld_shlibs_CXX=no
11745    fi
11746    ;;
11747
11748  chorus*)
11749    case $cc_basename in
11750      *)
11751	# FIXME: insert proper C++ library support
11752	ld_shlibs_CXX=no
11753	;;
11754    esac
11755    ;;
11756
11757  cygwin* | mingw* | pw32*)
11758    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11759    # as there is no search path for DLLs.
11760    hardcode_libdir_flag_spec_CXX='-L$libdir'
11761    allow_undefined_flag_CXX=unsupported
11762    always_export_symbols_CXX=no
11763    enable_shared_with_static_runtimes_CXX=yes
11764
11765    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11766      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'
11767      # If the export-symbols file already is a .def file (1st line
11768      # is EXPORTS), use it as is; otherwise, prepend...
11769      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11770	cp $export_symbols $output_objdir/$soname.def;
11771      else
11772	echo EXPORTS > $output_objdir/$soname.def;
11773	cat $export_symbols >> $output_objdir/$soname.def;
11774      fi~
11775      $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'
11776    else
11777      ld_shlibs_CXX=no
11778    fi
11779  ;;
11780      darwin* | rhapsody*)
11781        case $host_os in
11782        rhapsody* | darwin1.[012])
11783         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11784         ;;
11785       *) # Darwin 1.3 on
11786         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11787           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11788         else
11789           case ${MACOSX_DEPLOYMENT_TARGET} in
11790             10.[012])
11791               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11792               ;;
11793             10.*)
11794               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11795               ;;
11796           esac
11797         fi
11798         ;;
11799        esac
11800      archive_cmds_need_lc_CXX=no
11801      hardcode_direct_CXX=no
11802      hardcode_automatic_CXX=yes
11803      hardcode_shlibpath_var_CXX=unsupported
11804      whole_archive_flag_spec_CXX=''
11805      link_all_deplibs_CXX=yes
11806
11807    if test "$GXX" = yes ; then
11808      lt_int_apple_cc_single_mod=no
11809      output_verbose_link_cmd='echo'
11810      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11811       lt_int_apple_cc_single_mod=yes
11812      fi
11813      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11814       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11815      else
11816          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'
11817        fi
11818        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11819        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11820          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11821            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11822          else
11823            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11824          fi
11825            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}'
11826      else
11827      case $cc_basename in
11828        xlc*)
11829         output_verbose_link_cmd='echo'
11830          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'
11831          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11832          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11833          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}'
11834          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}'
11835          ;;
11836       *)
11837         ld_shlibs_CXX=no
11838          ;;
11839      esac
11840      fi
11841        ;;
11842
11843  dgux*)
11844    case $cc_basename in
11845      ec++*)
11846	# FIXME: insert proper C++ library support
11847	ld_shlibs_CXX=no
11848	;;
11849      ghcx*)
11850	# Green Hills C++ Compiler
11851	# FIXME: insert proper C++ library support
11852	ld_shlibs_CXX=no
11853	;;
11854      *)
11855	# FIXME: insert proper C++ library support
11856	ld_shlibs_CXX=no
11857	;;
11858    esac
11859    ;;
11860  freebsd[12]*)
11861    # C++ shared libraries reported to be fairly broken before switch to ELF
11862    ld_shlibs_CXX=no
11863    ;;
11864  freebsd-elf*)
11865    archive_cmds_need_lc_CXX=no
11866    ;;
11867  freebsd* | dragonfly*)
11868    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11869    # conventions
11870    ld_shlibs_CXX=yes
11871    ;;
11872  gnu*)
11873    ;;
11874  hpux9*)
11875    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11876    hardcode_libdir_separator_CXX=:
11877    export_dynamic_flag_spec_CXX='${wl}-E'
11878    hardcode_direct_CXX=yes
11879    hardcode_minus_L_CXX=yes # Not in the search PATH,
11880				# but as the default
11881				# location of the library.
11882
11883    case $cc_basename in
11884    CC*)
11885      # FIXME: insert proper C++ library support
11886      ld_shlibs_CXX=no
11887      ;;
11888    aCC*)
11889      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'
11890      # Commands to make compiler produce verbose output that lists
11891      # what "hidden" libraries, object files and flags are used when
11892      # linking a shared library.
11893      #
11894      # There doesn't appear to be a way to prevent this compiler from
11895      # explicitly linking system object files so we need to strip them
11896      # from the output so that they don't get included in the library
11897      # dependencies.
11898      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'
11899      ;;
11900    *)
11901      if test "$GXX" = yes; then
11902        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'
11903      else
11904        # FIXME: insert proper C++ library support
11905        ld_shlibs_CXX=no
11906      fi
11907      ;;
11908    esac
11909    ;;
11910  hpux10*|hpux11*)
11911    if test $with_gnu_ld = no; then
11912      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11913      hardcode_libdir_separator_CXX=:
11914
11915      case $host_cpu in
11916      hppa*64*|ia64*) ;;
11917      *)
11918	export_dynamic_flag_spec_CXX='${wl}-E'
11919        ;;
11920      esac
11921    fi
11922    case $host_cpu in
11923    hppa*64*|ia64*)
11924      hardcode_direct_CXX=no
11925      hardcode_shlibpath_var_CXX=no
11926      ;;
11927    *)
11928      hardcode_direct_CXX=yes
11929      hardcode_minus_L_CXX=yes # Not in the search PATH,
11930					      # but as the default
11931					      # location of the library.
11932      ;;
11933    esac
11934
11935    case $cc_basename in
11936      CC*)
11937	# FIXME: insert proper C++ library support
11938	ld_shlibs_CXX=no
11939	;;
11940      aCC*)
11941	case $host_cpu in
11942	hppa*64*)
11943	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11944	  ;;
11945	ia64*)
11946	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11947	  ;;
11948	*)
11949	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11950	  ;;
11951	esac
11952	# Commands to make compiler produce verbose output that lists
11953	# what "hidden" libraries, object files and flags are used when
11954	# linking a shared library.
11955	#
11956	# There doesn't appear to be a way to prevent this compiler from
11957	# explicitly linking system object files so we need to strip them
11958	# from the output so that they don't get included in the library
11959	# dependencies.
11960	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'
11961	;;
11962      *)
11963	if test "$GXX" = yes; then
11964	  if test $with_gnu_ld = no; then
11965	    case $host_cpu in
11966	    hppa*64*)
11967	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11968	      ;;
11969	    ia64*)
11970	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11971	      ;;
11972	    *)
11973	      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'
11974	      ;;
11975	    esac
11976	  fi
11977	else
11978	  # FIXME: insert proper C++ library support
11979	  ld_shlibs_CXX=no
11980	fi
11981	;;
11982    esac
11983    ;;
11984  interix[3-9]*)
11985    hardcode_direct_CXX=no
11986    hardcode_shlibpath_var_CXX=no
11987    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11988    export_dynamic_flag_spec_CXX='${wl}-E'
11989    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11990    # Instead, shared libraries are loaded at an image base (0x10000000 by
11991    # default) and relocated if they conflict, which is a slow very memory
11992    # consuming and fragmenting process.  To avoid this, we pick a random,
11993    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11994    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11995    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'
11996    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'
11997    ;;
11998  irix5* | irix6*)
11999    case $cc_basename in
12000      CC*)
12001	# SGI C++
12002	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'
12003
12004	# Archives containing C++ object files must be created using
12005	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12006	# necessary to make sure instantiated templates are included
12007	# in the archive.
12008	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12009	;;
12010      *)
12011	if test "$GXX" = yes; then
12012	  if test "$with_gnu_ld" = no; then
12013	    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'
12014	  else
12015	    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'
12016	  fi
12017	fi
12018	link_all_deplibs_CXX=yes
12019	;;
12020    esac
12021    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12022    hardcode_libdir_separator_CXX=:
12023    ;;
12024  linux* | k*bsd*-gnu)
12025    case $cc_basename in
12026      KCC*)
12027	# Kuck and Associates, Inc. (KAI) C++ Compiler
12028
12029	# KCC will only create a shared library if the output file
12030	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12031	# to its proper name (with version) after linking.
12032	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'
12033	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'
12034	# Commands to make compiler produce verbose output that lists
12035	# what "hidden" libraries, object files and flags are used when
12036	# linking a shared library.
12037	#
12038	# There doesn't appear to be a way to prevent this compiler from
12039	# explicitly linking system object files so we need to strip them
12040	# from the output so that they don't get included in the library
12041	# dependencies.
12042	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'
12043
12044	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12045	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12046
12047	# Archives containing C++ object files must be created using
12048	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12049	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12050	;;
12051      icpc*)
12052	# Intel C++
12053	with_gnu_ld=yes
12054	# version 8.0 and above of icpc choke on multiply defined symbols
12055	# if we add $predep_objects and $postdep_objects, however 7.1 and
12056	# earlier do not add the objects themselves.
12057	case `$CC -V 2>&1` in
12058	*"Version 7."*)
12059  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12060  	  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'
12061	  ;;
12062	*)  # Version 8.0 or newer
12063	  tmp_idyn=
12064	  case $host_cpu in
12065	    ia64*) tmp_idyn=' -i_dynamic';;
12066	  esac
12067  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12068	  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'
12069	  ;;
12070	esac
12071	archive_cmds_need_lc_CXX=no
12072	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12073	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12074	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12075	;;
12076      pgCC*)
12077        # Portland Group C++ compiler
12078	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12079  	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'
12080
12081	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12082	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12083	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'
12084        ;;
12085      cxx*)
12086	# Compaq C++
12087	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12088	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'
12089
12090	runpath_var=LD_RUN_PATH
12091	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12092	hardcode_libdir_separator_CXX=:
12093
12094	# Commands to make compiler produce verbose output that lists
12095	# what "hidden" libraries, object files and flags are used when
12096	# linking a shared library.
12097	#
12098	# There doesn't appear to be a way to prevent this compiler from
12099	# explicitly linking system object files so we need to strip them
12100	# from the output so that they don't get included in the library
12101	# dependencies.
12102	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'
12103	;;
12104      *)
12105	case `$CC -V 2>&1 | sed 5q` in
12106	*Sun\ C*)
12107	  # Sun C++ 5.9
12108	  no_undefined_flag_CXX=' -zdefs'
12109	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12110	  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'
12111	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12112	  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'
12113
12114	  # Not sure whether something based on
12115	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12116	  # would be better.
12117	  output_verbose_link_cmd='echo'
12118
12119	  # Archives containing C++ object files must be created using
12120	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12121	  # necessary to make sure instantiated templates are included
12122	  # in the archive.
12123	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12124	  ;;
12125	esac
12126	;;
12127    esac
12128    ;;
12129  lynxos*)
12130    # FIXME: insert proper C++ library support
12131    ld_shlibs_CXX=no
12132    ;;
12133  m88k*)
12134    # FIXME: insert proper C++ library support
12135    ld_shlibs_CXX=no
12136    ;;
12137  mvs*)
12138    case $cc_basename in
12139      cxx*)
12140	# FIXME: insert proper C++ library support
12141	ld_shlibs_CXX=no
12142	;;
12143      *)
12144	# FIXME: insert proper C++ library support
12145	ld_shlibs_CXX=no
12146	;;
12147    esac
12148    ;;
12149  netbsd*)
12150    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12151      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12152      wlarc=
12153      hardcode_libdir_flag_spec_CXX='-R$libdir'
12154      hardcode_direct_CXX=yes
12155      hardcode_shlibpath_var_CXX=no
12156    fi
12157    # Workaround some broken pre-1.5 toolchains
12158    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12159    ;;
12160  openbsd2*)
12161    # C++ shared libraries are fairly broken
12162    ld_shlibs_CXX=no
12163    ;;
12164  openbsd*)
12165    if test -f /usr/libexec/ld.so; then
12166      hardcode_direct_CXX=yes
12167      hardcode_shlibpath_var_CXX=no
12168      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12169      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12170      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12171	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12172	export_dynamic_flag_spec_CXX='${wl}-E'
12173	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12174      fi
12175      output_verbose_link_cmd='echo'
12176    else
12177      ld_shlibs_CXX=no
12178    fi
12179    ;;
12180  osf3*)
12181    case $cc_basename in
12182      KCC*)
12183	# Kuck and Associates, Inc. (KAI) C++ Compiler
12184
12185	# KCC will only create a shared library if the output file
12186	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12187	# to its proper name (with version) after linking.
12188	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'
12189
12190	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12191	hardcode_libdir_separator_CXX=:
12192
12193	# Archives containing C++ object files must be created using
12194	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12195	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12196
12197	;;
12198      RCC*)
12199	# Rational C++ 2.4.1
12200	# FIXME: insert proper C++ library support
12201	ld_shlibs_CXX=no
12202	;;
12203      cxx*)
12204	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12205	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'
12206
12207	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12208	hardcode_libdir_separator_CXX=:
12209
12210	# Commands to make compiler produce verbose output that lists
12211	# what "hidden" libraries, object files and flags are used when
12212	# linking a shared library.
12213	#
12214	# There doesn't appear to be a way to prevent this compiler from
12215	# explicitly linking system object files so we need to strip them
12216	# from the output so that they don't get included in the library
12217	# dependencies.
12218	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'
12219	;;
12220      *)
12221	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12222	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12223	  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'
12224
12225	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12226	  hardcode_libdir_separator_CXX=:
12227
12228	  # Commands to make compiler produce verbose output that lists
12229	  # what "hidden" libraries, object files and flags are used when
12230	  # linking a shared library.
12231	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12232
12233	else
12234	  # FIXME: insert proper C++ library support
12235	  ld_shlibs_CXX=no
12236	fi
12237	;;
12238    esac
12239    ;;
12240  osf4* | osf5*)
12241    case $cc_basename in
12242      KCC*)
12243	# Kuck and Associates, Inc. (KAI) C++ Compiler
12244
12245	# KCC will only create a shared library if the output file
12246	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12247	# to its proper name (with version) after linking.
12248	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'
12249
12250	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12251	hardcode_libdir_separator_CXX=:
12252
12253	# Archives containing C++ object files must be created using
12254	# the KAI C++ compiler.
12255	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12256	;;
12257      RCC*)
12258	# Rational C++ 2.4.1
12259	# FIXME: insert proper C++ library support
12260	ld_shlibs_CXX=no
12261	;;
12262      cxx*)
12263	allow_undefined_flag_CXX=' -expect_unresolved \*'
12264	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'
12265	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12266	  echo "-hidden">> $lib.exp~
12267	  $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~
12268	  $rm $lib.exp'
12269
12270	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12271	hardcode_libdir_separator_CXX=:
12272
12273	# Commands to make compiler produce verbose output that lists
12274	# what "hidden" libraries, object files and flags are used when
12275	# linking a shared library.
12276	#
12277	# There doesn't appear to be a way to prevent this compiler from
12278	# explicitly linking system object files so we need to strip them
12279	# from the output so that they don't get included in the library
12280	# dependencies.
12281	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'
12282	;;
12283      *)
12284	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12285	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12286	 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'
12287
12288	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12289	  hardcode_libdir_separator_CXX=:
12290
12291	  # Commands to make compiler produce verbose output that lists
12292	  # what "hidden" libraries, object files and flags are used when
12293	  # linking a shared library.
12294	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12295
12296	else
12297	  # FIXME: insert proper C++ library support
12298	  ld_shlibs_CXX=no
12299	fi
12300	;;
12301    esac
12302    ;;
12303  psos*)
12304    # FIXME: insert proper C++ library support
12305    ld_shlibs_CXX=no
12306    ;;
12307  sunos4*)
12308    case $cc_basename in
12309      CC*)
12310	# Sun C++ 4.x
12311	# FIXME: insert proper C++ library support
12312	ld_shlibs_CXX=no
12313	;;
12314      lcc*)
12315	# Lucid
12316	# FIXME: insert proper C++ library support
12317	ld_shlibs_CXX=no
12318	;;
12319      *)
12320	# FIXME: insert proper C++ library support
12321	ld_shlibs_CXX=no
12322	;;
12323    esac
12324    ;;
12325  solaris*)
12326    case $cc_basename in
12327      CC*)
12328	# Sun C++ 4.2, 5.x and Centerline C++
12329        archive_cmds_need_lc_CXX=yes
12330	no_undefined_flag_CXX=' -zdefs'
12331	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12332	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12333	$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'
12334
12335	hardcode_libdir_flag_spec_CXX='-R$libdir'
12336	hardcode_shlibpath_var_CXX=no
12337	case $host_os in
12338	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12339	  *)
12340	    # The compiler driver will combine and reorder linker options,
12341	    # but understands `-z linker_flag'.
12342	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12343	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12344	    ;;
12345	esac
12346	link_all_deplibs_CXX=yes
12347
12348	output_verbose_link_cmd='echo'
12349
12350	# Archives containing C++ object files must be created using
12351	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12352	# necessary to make sure instantiated templates are included
12353	# in the archive.
12354	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12355	;;
12356      gcx*)
12357	# Green Hills C++ Compiler
12358	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12359
12360	# The C++ compiler must be used to create the archive.
12361	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12362	;;
12363      *)
12364	# GNU C++ compiler with Solaris linker
12365	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12366	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12367	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12368	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12369	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12370		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12371
12372	    # Commands to make compiler produce verbose output that lists
12373	    # what "hidden" libraries, object files and flags are used when
12374	    # linking a shared library.
12375	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12376	  else
12377	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12378	    # platform.
12379	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12380	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12381		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12382
12383	    # Commands to make compiler produce verbose output that lists
12384	    # what "hidden" libraries, object files and flags are used when
12385	    # linking a shared library.
12386	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12387	  fi
12388
12389	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12390	  case $host_os in
12391	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12392	  *)
12393	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12394	    ;;
12395	  esac
12396	fi
12397	;;
12398    esac
12399    ;;
12400  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12401    no_undefined_flag_CXX='${wl}-z,text'
12402    archive_cmds_need_lc_CXX=no
12403    hardcode_shlibpath_var_CXX=no
12404    runpath_var='LD_RUN_PATH'
12405
12406    case $cc_basename in
12407      CC*)
12408	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12409	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12410	;;
12411      *)
12412	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12413	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12414	;;
12415    esac
12416    ;;
12417  sysv5* | sco3.2v5* | sco5v6*)
12418    # Note: We can NOT use -z defs as we might desire, because we do not
12419    # link with -lc, and that would cause any symbols used from libc to
12420    # always be unresolved, which means just about no library would
12421    # ever link correctly.  If we're not using GNU ld we use -z text
12422    # though, which does catch some bad symbols but isn't as heavy-handed
12423    # as -z defs.
12424    # For security reasons, it is highly recommended that you always
12425    # use absolute paths for naming shared libraries, and exclude the
12426    # DT_RUNPATH tag from executables and libraries.  But doing so
12427    # requires that you compile everything twice, which is a pain.
12428    # So that behaviour is only enabled if SCOABSPATH is set to a
12429    # non-empty value in the environment.  Most likely only useful for
12430    # creating official distributions of packages.
12431    # This is a hack until libtool officially supports absolute path
12432    # names for shared libraries.
12433    no_undefined_flag_CXX='${wl}-z,text'
12434    allow_undefined_flag_CXX='${wl}-z,nodefs'
12435    archive_cmds_need_lc_CXX=no
12436    hardcode_shlibpath_var_CXX=no
12437    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12438    hardcode_libdir_separator_CXX=':'
12439    link_all_deplibs_CXX=yes
12440    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12441    runpath_var='LD_RUN_PATH'
12442
12443    case $cc_basename in
12444      CC*)
12445	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12446	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12447	;;
12448      *)
12449	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12450	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12451	;;
12452    esac
12453    ;;
12454  tandem*)
12455    case $cc_basename in
12456      NCC*)
12457	# NonStop-UX NCC 3.20
12458	# FIXME: insert proper C++ library support
12459	ld_shlibs_CXX=no
12460	;;
12461      *)
12462	# FIXME: insert proper C++ library support
12463	ld_shlibs_CXX=no
12464	;;
12465    esac
12466    ;;
12467  vxworks*)
12468    # FIXME: insert proper C++ library support
12469    ld_shlibs_CXX=no
12470    ;;
12471  *)
12472    # FIXME: insert proper C++ library support
12473    ld_shlibs_CXX=no
12474    ;;
12475esac
12476{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12477echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12478test "$ld_shlibs_CXX" = no && can_build_shared=no
12479
12480GCC_CXX="$GXX"
12481LD_CXX="$LD"
12482
12483
12484cat > conftest.$ac_ext <<EOF
12485class Foo
12486{
12487public:
12488  Foo (void) { a = 0; }
12489private:
12490  int a;
12491};
12492EOF
12493
12494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12495  (eval $ac_compile) 2>&5
12496  ac_status=$?
12497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498  (exit $ac_status); }; then
12499  # Parse the compiler output and extract the necessary
12500  # objects, libraries and library flags.
12501
12502  # Sentinel used to keep track of whether or not we are before
12503  # the conftest object file.
12504  pre_test_object_deps_done=no
12505
12506  # The `*' in the case matches for architectures that use `case' in
12507  # $output_verbose_cmd can trigger glob expansion during the loop
12508  # eval without this substitution.
12509  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12510
12511  for p in `eval $output_verbose_link_cmd`; do
12512    case $p in
12513
12514    -L* | -R* | -l*)
12515       # Some compilers place space between "-{L,R}" and the path.
12516       # Remove the space.
12517       if test $p = "-L" \
12518	  || test $p = "-R"; then
12519	 prev=$p
12520	 continue
12521       else
12522	 prev=
12523       fi
12524
12525       if test "$pre_test_object_deps_done" = no; then
12526	 case $p in
12527	 -L* | -R*)
12528	   # Internal compiler library paths should come after those
12529	   # provided the user.  The postdeps already come after the
12530	   # user supplied libs so there is no need to process them.
12531	   if test -z "$compiler_lib_search_path_CXX"; then
12532	     compiler_lib_search_path_CXX="${prev}${p}"
12533	   else
12534	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12535	   fi
12536	   ;;
12537	 # The "-l" case would never come before the object being
12538	 # linked, so don't bother handling this case.
12539	 esac
12540       else
12541	 if test -z "$postdeps_CXX"; then
12542	   postdeps_CXX="${prev}${p}"
12543	 else
12544	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12545	 fi
12546       fi
12547       ;;
12548
12549    *.$objext)
12550       # This assumes that the test object file only shows up
12551       # once in the compiler output.
12552       if test "$p" = "conftest.$objext"; then
12553	 pre_test_object_deps_done=yes
12554	 continue
12555       fi
12556
12557       if test "$pre_test_object_deps_done" = no; then
12558	 if test -z "$predep_objects_CXX"; then
12559	   predep_objects_CXX="$p"
12560	 else
12561	   predep_objects_CXX="$predep_objects_CXX $p"
12562	 fi
12563       else
12564	 if test -z "$postdep_objects_CXX"; then
12565	   postdep_objects_CXX="$p"
12566	 else
12567	   postdep_objects_CXX="$postdep_objects_CXX $p"
12568	 fi
12569       fi
12570       ;;
12571
12572    *) ;; # Ignore the rest.
12573
12574    esac
12575  done
12576
12577  # Clean up.
12578  rm -f a.out a.exe
12579else
12580  echo "libtool.m4: error: problem compiling CXX test program"
12581fi
12582
12583$rm -f confest.$objext
12584
12585# PORTME: override above test on systems where it is broken
12586case $host_os in
12587interix[3-9]*)
12588  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12589  # hack all around it, let's just trust "g++" to DTRT.
12590  predep_objects_CXX=
12591  postdep_objects_CXX=
12592  postdeps_CXX=
12593  ;;
12594
12595linux*)
12596  case `$CC -V 2>&1 | sed 5q` in
12597  *Sun\ C*)
12598    # Sun C++ 5.9
12599    #
12600    # The more standards-conforming stlport4 library is
12601    # incompatible with the Cstd library. Avoid specifying
12602    # it if it's in CXXFLAGS. Ignore libCrun as
12603    # -library=stlport4 depends on it.
12604    case " $CXX $CXXFLAGS " in
12605    *" -library=stlport4 "*)
12606      solaris_use_stlport4=yes
12607      ;;
12608    esac
12609    if test "$solaris_use_stlport4" != yes; then
12610      postdeps_CXX='-library=Cstd -library=Crun'
12611    fi
12612    ;;
12613  esac
12614  ;;
12615
12616solaris*)
12617  case $cc_basename in
12618  CC*)
12619    # The more standards-conforming stlport4 library is
12620    # incompatible with the Cstd library. Avoid specifying
12621    # it if it's in CXXFLAGS. Ignore libCrun as
12622    # -library=stlport4 depends on it.
12623    case " $CXX $CXXFLAGS " in
12624    *" -library=stlport4 "*)
12625      solaris_use_stlport4=yes
12626      ;;
12627    esac
12628
12629    # Adding this requires a known-good setup of shared libraries for
12630    # Sun compiler versions before 5.6, else PIC objects from an old
12631    # archive will be linked into the output, leading to subtle bugs.
12632    if test "$solaris_use_stlport4" != yes; then
12633      postdeps_CXX='-library=Cstd -library=Crun'
12634    fi
12635    ;;
12636  esac
12637  ;;
12638esac
12639
12640
12641case " $postdeps_CXX " in
12642*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12643esac
12644
12645lt_prog_compiler_wl_CXX=
12646lt_prog_compiler_pic_CXX=
12647lt_prog_compiler_static_CXX=
12648
12649{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12650echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12651
12652  # C++ specific cases for pic, static, wl, etc.
12653  if test "$GXX" = yes; then
12654    lt_prog_compiler_wl_CXX='-Wl,'
12655    lt_prog_compiler_static_CXX='-static'
12656
12657    case $host_os in
12658    aix*)
12659      # All AIX code is PIC.
12660      if test "$host_cpu" = ia64; then
12661	# AIX 5 now supports IA64 processor
12662	lt_prog_compiler_static_CXX='-Bstatic'
12663      fi
12664      ;;
12665    amigaos*)
12666      # FIXME: we need at least 68020 code to build shared libraries, but
12667      # adding the `-m68020' flag to GCC prevents building anything better,
12668      # like `-m68040'.
12669      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12670      ;;
12671    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12672      # PIC is the default for these OSes.
12673      ;;
12674    mingw* | cygwin* | os2* | pw32*)
12675      # This hack is so that the source file can tell whether it is being
12676      # built for inclusion in a dll (and should export symbols for example).
12677      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12678      # (--disable-auto-import) libraries
12679      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12680      ;;
12681    darwin* | rhapsody*)
12682      # PIC is the default on this platform
12683      # Common symbols not allowed in MH_DYLIB files
12684      lt_prog_compiler_pic_CXX='-fno-common'
12685      ;;
12686    *djgpp*)
12687      # DJGPP does not support shared libraries at all
12688      lt_prog_compiler_pic_CXX=
12689      ;;
12690    interix[3-9]*)
12691      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12692      # Instead, we relocate shared libraries at runtime.
12693      ;;
12694    sysv4*MP*)
12695      if test -d /usr/nec; then
12696	lt_prog_compiler_pic_CXX=-Kconform_pic
12697      fi
12698      ;;
12699    hpux*)
12700      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12701      # not for PA HP-UX.
12702      case $host_cpu in
12703      hppa*64*|ia64*)
12704	;;
12705      *)
12706	lt_prog_compiler_pic_CXX='-fPIC'
12707	;;
12708      esac
12709      ;;
12710    *)
12711      lt_prog_compiler_pic_CXX='-fPIC'
12712      ;;
12713    esac
12714  else
12715    case $host_os in
12716      aix4* | aix5*)
12717	# All AIX code is PIC.
12718	if test "$host_cpu" = ia64; then
12719	  # AIX 5 now supports IA64 processor
12720	  lt_prog_compiler_static_CXX='-Bstatic'
12721	else
12722	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12723	fi
12724	;;
12725      chorus*)
12726	case $cc_basename in
12727	cxch68*)
12728	  # Green Hills C++ Compiler
12729	  # _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"
12730	  ;;
12731	esac
12732	;;
12733       darwin*)
12734         # PIC is the default on this platform
12735         # Common symbols not allowed in MH_DYLIB files
12736         case $cc_basename in
12737           xlc*)
12738           lt_prog_compiler_pic_CXX='-qnocommon'
12739           lt_prog_compiler_wl_CXX='-Wl,'
12740           ;;
12741         esac
12742       ;;
12743      dgux*)
12744	case $cc_basename in
12745	  ec++*)
12746	    lt_prog_compiler_pic_CXX='-KPIC'
12747	    ;;
12748	  ghcx*)
12749	    # Green Hills C++ Compiler
12750	    lt_prog_compiler_pic_CXX='-pic'
12751	    ;;
12752	  *)
12753	    ;;
12754	esac
12755	;;
12756      freebsd* | dragonfly*)
12757	# FreeBSD uses GNU C++
12758	;;
12759      hpux9* | hpux10* | hpux11*)
12760	case $cc_basename in
12761	  CC*)
12762	    lt_prog_compiler_wl_CXX='-Wl,'
12763	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12764	    if test "$host_cpu" != ia64; then
12765	      lt_prog_compiler_pic_CXX='+Z'
12766	    fi
12767	    ;;
12768	  aCC*)
12769	    lt_prog_compiler_wl_CXX='-Wl,'
12770	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12771	    case $host_cpu in
12772	    hppa*64*|ia64*)
12773	      # +Z the default
12774	      ;;
12775	    *)
12776	      lt_prog_compiler_pic_CXX='+Z'
12777	      ;;
12778	    esac
12779	    ;;
12780	  *)
12781	    ;;
12782	esac
12783	;;
12784      interix*)
12785	# This is c89, which is MS Visual C++ (no shared libs)
12786	# Anyone wants to do a port?
12787	;;
12788      irix5* | irix6* | nonstopux*)
12789	case $cc_basename in
12790	  CC*)
12791	    lt_prog_compiler_wl_CXX='-Wl,'
12792	    lt_prog_compiler_static_CXX='-non_shared'
12793	    # CC pic flag -KPIC is the default.
12794	    ;;
12795	  *)
12796	    ;;
12797	esac
12798	;;
12799      linux* | k*bsd*-gnu)
12800	case $cc_basename in
12801	  KCC*)
12802	    # KAI C++ Compiler
12803	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12804	    lt_prog_compiler_pic_CXX='-fPIC'
12805	    ;;
12806	  icpc* | ecpc*)
12807	    # Intel C++
12808	    lt_prog_compiler_wl_CXX='-Wl,'
12809	    lt_prog_compiler_pic_CXX='-KPIC'
12810	    lt_prog_compiler_static_CXX='-static'
12811	    ;;
12812	  pgCC*)
12813	    # Portland Group C++ compiler.
12814	    lt_prog_compiler_wl_CXX='-Wl,'
12815	    lt_prog_compiler_pic_CXX='-fpic'
12816	    lt_prog_compiler_static_CXX='-Bstatic'
12817	    ;;
12818	  cxx*)
12819	    # Compaq C++
12820	    # Make sure the PIC flag is empty.  It appears that all Alpha
12821	    # Linux and Compaq Tru64 Unix objects are PIC.
12822	    lt_prog_compiler_pic_CXX=
12823	    lt_prog_compiler_static_CXX='-non_shared'
12824	    ;;
12825	  *)
12826	    case `$CC -V 2>&1 | sed 5q` in
12827	    *Sun\ C*)
12828	      # Sun C++ 5.9
12829	      lt_prog_compiler_pic_CXX='-KPIC'
12830	      lt_prog_compiler_static_CXX='-Bstatic'
12831	      lt_prog_compiler_wl_CXX='-Qoption ld '
12832	      ;;
12833	    esac
12834	    ;;
12835	esac
12836	;;
12837      lynxos*)
12838	;;
12839      m88k*)
12840	;;
12841      mvs*)
12842	case $cc_basename in
12843	  cxx*)
12844	    lt_prog_compiler_pic_CXX='-W c,exportall'
12845	    ;;
12846	  *)
12847	    ;;
12848	esac
12849	;;
12850      netbsd*)
12851	;;
12852      osf3* | osf4* | osf5*)
12853	case $cc_basename in
12854	  KCC*)
12855	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12856	    ;;
12857	  RCC*)
12858	    # Rational C++ 2.4.1
12859	    lt_prog_compiler_pic_CXX='-pic'
12860	    ;;
12861	  cxx*)
12862	    # Digital/Compaq C++
12863	    lt_prog_compiler_wl_CXX='-Wl,'
12864	    # Make sure the PIC flag is empty.  It appears that all Alpha
12865	    # Linux and Compaq Tru64 Unix objects are PIC.
12866	    lt_prog_compiler_pic_CXX=
12867	    lt_prog_compiler_static_CXX='-non_shared'
12868	    ;;
12869	  *)
12870	    ;;
12871	esac
12872	;;
12873      psos*)
12874	;;
12875      solaris*)
12876	case $cc_basename in
12877	  CC*)
12878	    # Sun C++ 4.2, 5.x and Centerline C++
12879	    lt_prog_compiler_pic_CXX='-KPIC'
12880	    lt_prog_compiler_static_CXX='-Bstatic'
12881	    lt_prog_compiler_wl_CXX='-Qoption ld '
12882	    ;;
12883	  gcx*)
12884	    # Green Hills C++ Compiler
12885	    lt_prog_compiler_pic_CXX='-PIC'
12886	    ;;
12887	  *)
12888	    ;;
12889	esac
12890	;;
12891      sunos4*)
12892	case $cc_basename in
12893	  CC*)
12894	    # Sun C++ 4.x
12895	    lt_prog_compiler_pic_CXX='-pic'
12896	    lt_prog_compiler_static_CXX='-Bstatic'
12897	    ;;
12898	  lcc*)
12899	    # Lucid
12900	    lt_prog_compiler_pic_CXX='-pic'
12901	    ;;
12902	  *)
12903	    ;;
12904	esac
12905	;;
12906      tandem*)
12907	case $cc_basename in
12908	  NCC*)
12909	    # NonStop-UX NCC 3.20
12910	    lt_prog_compiler_pic_CXX='-KPIC'
12911	    ;;
12912	  *)
12913	    ;;
12914	esac
12915	;;
12916      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12917	case $cc_basename in
12918	  CC*)
12919	    lt_prog_compiler_wl_CXX='-Wl,'
12920	    lt_prog_compiler_pic_CXX='-KPIC'
12921	    lt_prog_compiler_static_CXX='-Bstatic'
12922	    ;;
12923	esac
12924	;;
12925      vxworks*)
12926	;;
12927      *)
12928	lt_prog_compiler_can_build_shared_CXX=no
12929	;;
12930    esac
12931  fi
12932
12933{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12934echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12935
12936#
12937# Check to make sure the PIC flag actually works.
12938#
12939if test -n "$lt_prog_compiler_pic_CXX"; then
12940
12941{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12942echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12943if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12944  echo $ECHO_N "(cached) $ECHO_C" >&6
12945else
12946  lt_prog_compiler_pic_works_CXX=no
12947  ac_outfile=conftest.$ac_objext
12948   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12949   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12950   # Insert the option either (1) after the last *FLAGS variable, or
12951   # (2) before a word containing "conftest.", or (3) at the end.
12952   # Note that $ac_compile itself does not contain backslashes and begins
12953   # with a dollar sign (not a hyphen), so the echo should work correctly.
12954   # The option is referenced via a variable to avoid confusing sed.
12955   lt_compile=`echo "$ac_compile" | $SED \
12956   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12957   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12958   -e 's:$: $lt_compiler_flag:'`
12959   (eval echo "\"\$as_me:12959: $lt_compile\"" >&5)
12960   (eval "$lt_compile" 2>conftest.err)
12961   ac_status=$?
12962   cat conftest.err >&5
12963   echo "$as_me:12963: \$? = $ac_status" >&5
12964   if (exit $ac_status) && test -s "$ac_outfile"; then
12965     # The compiler can only warn and ignore the option if not recognized
12966     # So say no if there are warnings other than the usual output.
12967     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12968     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12969     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12970       lt_prog_compiler_pic_works_CXX=yes
12971     fi
12972   fi
12973   $rm conftest*
12974
12975fi
12976{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12977echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12978
12979if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12980    case $lt_prog_compiler_pic_CXX in
12981     "" | " "*) ;;
12982     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12983     esac
12984else
12985    lt_prog_compiler_pic_CXX=
12986     lt_prog_compiler_can_build_shared_CXX=no
12987fi
12988
12989fi
12990case $host_os in
12991  # For platforms which do not support PIC, -DPIC is meaningless:
12992  *djgpp*)
12993    lt_prog_compiler_pic_CXX=
12994    ;;
12995  *)
12996    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12997    ;;
12998esac
12999
13000#
13001# Check to make sure the static flag actually works.
13002#
13003wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13004{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13005echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13006if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13007  echo $ECHO_N "(cached) $ECHO_C" >&6
13008else
13009  lt_prog_compiler_static_works_CXX=no
13010   save_LDFLAGS="$LDFLAGS"
13011   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13012   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13013   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13014     # The linker can only warn and ignore the option if not recognized
13015     # So say no if there are warnings
13016     if test -s conftest.err; then
13017       # Append any errors to the config.log.
13018       cat conftest.err 1>&5
13019       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13020       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13021       if diff conftest.exp conftest.er2 >/dev/null; then
13022         lt_prog_compiler_static_works_CXX=yes
13023       fi
13024     else
13025       lt_prog_compiler_static_works_CXX=yes
13026     fi
13027   fi
13028   $rm conftest*
13029   LDFLAGS="$save_LDFLAGS"
13030
13031fi
13032{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13033echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13034
13035if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13036    :
13037else
13038    lt_prog_compiler_static_CXX=
13039fi
13040
13041
13042{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13043echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13044if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13045  echo $ECHO_N "(cached) $ECHO_C" >&6
13046else
13047  lt_cv_prog_compiler_c_o_CXX=no
13048   $rm -r conftest 2>/dev/null
13049   mkdir conftest
13050   cd conftest
13051   mkdir out
13052   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13053
13054   lt_compiler_flag="-o out/conftest2.$ac_objext"
13055   # Insert the option either (1) after the last *FLAGS variable, or
13056   # (2) before a word containing "conftest.", or (3) at the end.
13057   # Note that $ac_compile itself does not contain backslashes and begins
13058   # with a dollar sign (not a hyphen), so the echo should work correctly.
13059   lt_compile=`echo "$ac_compile" | $SED \
13060   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13061   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13062   -e 's:$: $lt_compiler_flag:'`
13063   (eval echo "\"\$as_me:13063: $lt_compile\"" >&5)
13064   (eval "$lt_compile" 2>out/conftest.err)
13065   ac_status=$?
13066   cat out/conftest.err >&5
13067   echo "$as_me:13067: \$? = $ac_status" >&5
13068   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13069   then
13070     # The compiler can only warn and ignore the option if not recognized
13071     # So say no if there are warnings
13072     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13073     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13074     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13075       lt_cv_prog_compiler_c_o_CXX=yes
13076     fi
13077   fi
13078   chmod u+w . 2>&5
13079   $rm conftest*
13080   # SGI C++ compiler will create directory out/ii_files/ for
13081   # template instantiation
13082   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13083   $rm out/* && rmdir out
13084   cd ..
13085   rmdir conftest
13086   $rm conftest*
13087
13088fi
13089{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13090echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13091
13092
13093hard_links="nottested"
13094if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13095  # do not overwrite the value of need_locks provided by the user
13096  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13097echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13098  hard_links=yes
13099  $rm conftest*
13100  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13101  touch conftest.a
13102  ln conftest.a conftest.b 2>&5 || hard_links=no
13103  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13104  { echo "$as_me:$LINENO: result: $hard_links" >&5
13105echo "${ECHO_T}$hard_links" >&6; }
13106  if test "$hard_links" = no; then
13107    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13108echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13109    need_locks=warn
13110  fi
13111else
13112  need_locks=no
13113fi
13114
13115{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13116echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13117
13118  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13119  case $host_os in
13120  aix4* | aix5*)
13121    # If we're using GNU nm, then we don't want the "-C" option.
13122    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13123    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13124      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'
13125    else
13126      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'
13127    fi
13128    ;;
13129  pw32*)
13130    export_symbols_cmds_CXX="$ltdll_cmds"
13131  ;;
13132  cygwin* | mingw*)
13133    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'
13134  ;;
13135  *)
13136    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13137  ;;
13138  esac
13139
13140{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13141echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13142test "$ld_shlibs_CXX" = no && can_build_shared=no
13143
13144#
13145# Do we need to explicitly link libc?
13146#
13147case "x$archive_cmds_need_lc_CXX" in
13148x|xyes)
13149  # Assume -lc should be added
13150  archive_cmds_need_lc_CXX=yes
13151
13152  if test "$enable_shared" = yes && test "$GCC" = yes; then
13153    case $archive_cmds_CXX in
13154    *'~'*)
13155      # FIXME: we may have to deal with multi-command sequences.
13156      ;;
13157    '$CC '*)
13158      # Test whether the compiler implicitly links with -lc since on some
13159      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13160      # to ld, don't add -lc before -lgcc.
13161      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13162echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13163      $rm conftest*
13164      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13165
13166      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167  (eval $ac_compile) 2>&5
13168  ac_status=$?
13169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170  (exit $ac_status); } 2>conftest.err; then
13171        soname=conftest
13172        lib=conftest
13173        libobjs=conftest.$ac_objext
13174        deplibs=
13175        wl=$lt_prog_compiler_wl_CXX
13176	pic_flag=$lt_prog_compiler_pic_CXX
13177        compiler_flags=-v
13178        linker_flags=-v
13179        verstring=
13180        output_objdir=.
13181        libname=conftest
13182        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13183        allow_undefined_flag_CXX=
13184        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13185  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13186  ac_status=$?
13187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188  (exit $ac_status); }
13189        then
13190	  archive_cmds_need_lc_CXX=no
13191        else
13192	  archive_cmds_need_lc_CXX=yes
13193        fi
13194        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13195      else
13196        cat conftest.err 1>&5
13197      fi
13198      $rm conftest*
13199      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13200echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13201      ;;
13202    esac
13203  fi
13204  ;;
13205esac
13206
13207{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13208echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13209library_names_spec=
13210libname_spec='lib$name'
13211soname_spec=
13212shrext_cmds=".so"
13213postinstall_cmds=
13214postuninstall_cmds=
13215finish_cmds=
13216finish_eval=
13217shlibpath_var=
13218shlibpath_overrides_runpath=unknown
13219version_type=none
13220dynamic_linker="$host_os ld.so"
13221sys_lib_dlsearch_path_spec="/lib /usr/lib"
13222
13223need_lib_prefix=unknown
13224hardcode_into_libs=no
13225
13226# when you set need_version to no, make sure it does not cause -set_version
13227# flags to be left without arguments
13228need_version=unknown
13229
13230case $host_os in
13231aix3*)
13232  version_type=linux
13233  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13234  shlibpath_var=LIBPATH
13235
13236  # AIX 3 has no versioning support, so we append a major version to the name.
13237  soname_spec='${libname}${release}${shared_ext}$major'
13238  ;;
13239
13240aix4* | aix5*)
13241  version_type=linux
13242  need_lib_prefix=no
13243  need_version=no
13244  hardcode_into_libs=yes
13245  if test "$host_cpu" = ia64; then
13246    # AIX 5 supports IA64
13247    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13248    shlibpath_var=LD_LIBRARY_PATH
13249  else
13250    # With GCC up to 2.95.x, collect2 would create an import file
13251    # for dependence libraries.  The import file would start with
13252    # the line `#! .'.  This would cause the generated library to
13253    # depend on `.', always an invalid library.  This was fixed in
13254    # development snapshots of GCC prior to 3.0.
13255    case $host_os in
13256      aix4 | aix4.[01] | aix4.[01].*)
13257      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13258	   echo ' yes '
13259	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13260	:
13261      else
13262	can_build_shared=no
13263      fi
13264      ;;
13265    esac
13266    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13267    # soname into executable. Probably we can add versioning support to
13268    # collect2, so additional links can be useful in future.
13269    if test "$aix_use_runtimelinking" = yes; then
13270      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13271      # instead of lib<name>.a to let people know that these are not
13272      # typical AIX shared libraries.
13273      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13274    else
13275      # We preserve .a as extension for shared libraries through AIX4.2
13276      # and later when we are not doing run time linking.
13277      library_names_spec='${libname}${release}.a $libname.a'
13278      soname_spec='${libname}${release}${shared_ext}$major'
13279    fi
13280    shlibpath_var=LIBPATH
13281  fi
13282  ;;
13283
13284amigaos*)
13285  library_names_spec='$libname.ixlibrary $libname.a'
13286  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13287  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'
13288  ;;
13289
13290beos*)
13291  library_names_spec='${libname}${shared_ext}'
13292  dynamic_linker="$host_os ld.so"
13293  shlibpath_var=LIBRARY_PATH
13294  ;;
13295
13296bsdi[45]*)
13297  version_type=linux
13298  need_version=no
13299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13300  soname_spec='${libname}${release}${shared_ext}$major'
13301  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13302  shlibpath_var=LD_LIBRARY_PATH
13303  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13304  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13305  # the default ld.so.conf also contains /usr/contrib/lib and
13306  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13307  # libtool to hard-code these into programs
13308  ;;
13309
13310cygwin* | mingw* | pw32*)
13311  version_type=windows
13312  shrext_cmds=".dll"
13313  need_version=no
13314  need_lib_prefix=no
13315
13316  case $GCC,$host_os in
13317  yes,cygwin* | yes,mingw* | yes,pw32*)
13318    library_names_spec='$libname.dll.a'
13319    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13320    postinstall_cmds='base_file=`basename \${file}`~
13321      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13322      dldir=$destdir/`dirname \$dlpath`~
13323      test -d \$dldir || mkdir -p \$dldir~
13324      $install_prog $dir/$dlname \$dldir/$dlname~
13325      chmod a+x \$dldir/$dlname'
13326    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13327      dlpath=$dir/\$dldll~
13328       $rm \$dlpath'
13329    shlibpath_overrides_runpath=yes
13330
13331    case $host_os in
13332    cygwin*)
13333      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13334      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13335      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13336      ;;
13337    mingw*)
13338      # MinGW DLLs use traditional 'lib' prefix
13339      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13340      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13341      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13342        # It is most probably a Windows format PATH printed by
13343        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13344        # path with ; separators, and with drive letters. We can handle the
13345        # drive letters (cygwin fileutils understands them), so leave them,
13346        # especially as we might pass files found there to a mingw objdump,
13347        # which wouldn't understand a cygwinified path. Ahh.
13348        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13349      else
13350        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13351      fi
13352      ;;
13353    pw32*)
13354      # pw32 DLLs use 'pw' prefix rather than 'lib'
13355      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13356      ;;
13357    esac
13358    ;;
13359
13360  *)
13361    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13362    ;;
13363  esac
13364  dynamic_linker='Win32 ld.exe'
13365  # FIXME: first we should search . and the directory the executable is in
13366  shlibpath_var=PATH
13367  ;;
13368
13369darwin* | rhapsody*)
13370  dynamic_linker="$host_os dyld"
13371  version_type=darwin
13372  need_lib_prefix=no
13373  need_version=no
13374  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13375  soname_spec='${libname}${release}${major}$shared_ext'
13376  shlibpath_overrides_runpath=yes
13377  shlibpath_var=DYLD_LIBRARY_PATH
13378  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13379
13380  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13381  ;;
13382
13383dgux*)
13384  version_type=linux
13385  need_lib_prefix=no
13386  need_version=no
13387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13388  soname_spec='${libname}${release}${shared_ext}$major'
13389  shlibpath_var=LD_LIBRARY_PATH
13390  ;;
13391
13392freebsd1*)
13393  dynamic_linker=no
13394  ;;
13395
13396freebsd* | dragonfly*)
13397  # DragonFly does not have aout.  When/if they implement a new
13398  # versioning mechanism, adjust this.
13399  if test -x /usr/bin/objformat; then
13400    objformat=`/usr/bin/objformat`
13401  else
13402    case $host_os in
13403    freebsd[123]*) objformat=aout ;;
13404    *) objformat=elf ;;
13405    esac
13406  fi
13407  # Handle Gentoo/FreeBSD as it was Linux
13408  case $host_vendor in
13409    gentoo)
13410      version_type=linux ;;
13411    *)
13412      version_type=freebsd-$objformat ;;
13413  esac
13414
13415  case $version_type in
13416    freebsd-elf*)
13417      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13418      need_version=no
13419      need_lib_prefix=no
13420      ;;
13421    freebsd-*)
13422      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13423      need_version=yes
13424      ;;
13425    linux)
13426      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13427      soname_spec='${libname}${release}${shared_ext}$major'
13428      need_lib_prefix=no
13429      need_version=no
13430      ;;
13431  esac
13432  shlibpath_var=LD_LIBRARY_PATH
13433  case $host_os in
13434  freebsd2*)
13435    shlibpath_overrides_runpath=yes
13436    ;;
13437  freebsd3.[01]* | freebsdelf3.[01]*)
13438    shlibpath_overrides_runpath=yes
13439    hardcode_into_libs=yes
13440    ;;
13441  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13442  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13443    shlibpath_overrides_runpath=no
13444    hardcode_into_libs=yes
13445    ;;
13446  *) # from 4.6 on, and DragonFly
13447    shlibpath_overrides_runpath=yes
13448    hardcode_into_libs=yes
13449    ;;
13450  esac
13451  ;;
13452
13453gnu*)
13454  version_type=linux
13455  need_lib_prefix=no
13456  need_version=no
13457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13458  soname_spec='${libname}${release}${shared_ext}$major'
13459  shlibpath_var=LD_LIBRARY_PATH
13460  hardcode_into_libs=yes
13461  ;;
13462
13463hpux9* | hpux10* | hpux11*)
13464  # Give a soname corresponding to the major version so that dld.sl refuses to
13465  # link against other versions.
13466  version_type=sunos
13467  need_lib_prefix=no
13468  need_version=no
13469  case $host_cpu in
13470  ia64*)
13471    shrext_cmds='.so'
13472    hardcode_into_libs=yes
13473    dynamic_linker="$host_os dld.so"
13474    shlibpath_var=LD_LIBRARY_PATH
13475    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13476    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477    soname_spec='${libname}${release}${shared_ext}$major'
13478    if test "X$HPUX_IA64_MODE" = X32; then
13479      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13480    else
13481      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13482    fi
13483    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13484    ;;
13485   hppa*64*)
13486     shrext_cmds='.sl'
13487     hardcode_into_libs=yes
13488     dynamic_linker="$host_os dld.sl"
13489     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13490     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13491     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13492     soname_spec='${libname}${release}${shared_ext}$major'
13493     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13494     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13495     ;;
13496   *)
13497    shrext_cmds='.sl'
13498    dynamic_linker="$host_os dld.sl"
13499    shlibpath_var=SHLIB_PATH
13500    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13501    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502    soname_spec='${libname}${release}${shared_ext}$major'
13503    ;;
13504  esac
13505  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13506  postinstall_cmds='chmod 555 $lib'
13507  ;;
13508
13509interix[3-9]*)
13510  version_type=linux
13511  need_lib_prefix=no
13512  need_version=no
13513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13514  soname_spec='${libname}${release}${shared_ext}$major'
13515  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13516  shlibpath_var=LD_LIBRARY_PATH
13517  shlibpath_overrides_runpath=no
13518  hardcode_into_libs=yes
13519  ;;
13520
13521irix5* | irix6* | nonstopux*)
13522  case $host_os in
13523    nonstopux*) version_type=nonstopux ;;
13524    *)
13525	if test "$lt_cv_prog_gnu_ld" = yes; then
13526		version_type=linux
13527	else
13528		version_type=irix
13529	fi ;;
13530  esac
13531  need_lib_prefix=no
13532  need_version=no
13533  soname_spec='${libname}${release}${shared_ext}$major'
13534  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13535  case $host_os in
13536  irix5* | nonstopux*)
13537    libsuff= shlibsuff=
13538    ;;
13539  *)
13540    case $LD in # libtool.m4 will add one of these switches to LD
13541    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13542      libsuff= shlibsuff= libmagic=32-bit;;
13543    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13544      libsuff=32 shlibsuff=N32 libmagic=N32;;
13545    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13546      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13547    *) libsuff= shlibsuff= libmagic=never-match;;
13548    esac
13549    ;;
13550  esac
13551  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13552  shlibpath_overrides_runpath=no
13553  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13554  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13555  hardcode_into_libs=yes
13556  ;;
13557
13558# No shared lib support for Linux oldld, aout, or coff.
13559linux*oldld* | linux*aout* | linux*coff*)
13560  dynamic_linker=no
13561  ;;
13562
13563# This must be Linux ELF.
13564linux* | k*bsd*-gnu)
13565  version_type=linux
13566  need_lib_prefix=no
13567  need_version=no
13568  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13569  soname_spec='${libname}${release}${shared_ext}$major'
13570  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13571  shlibpath_var=LD_LIBRARY_PATH
13572  shlibpath_overrides_runpath=no
13573  # This implies no fast_install, which is unacceptable.
13574  # Some rework will be needed to allow for fast_install
13575  # before this can be enabled.
13576  hardcode_into_libs=yes
13577
13578  # Append ld.so.conf contents to the search path
13579  if test -f /etc/ld.so.conf; then
13580    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' ' '`
13581    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13582  fi
13583
13584  # We used to test for /lib/ld.so.1 and disable shared libraries on
13585  # powerpc, because MkLinux only supported shared libraries with the
13586  # GNU dynamic linker.  Since this was broken with cross compilers,
13587  # most powerpc-linux boxes support dynamic linking these days and
13588  # people can always --disable-shared, the test was removed, and we
13589  # assume the GNU/Linux dynamic linker is in use.
13590  dynamic_linker='GNU/Linux ld.so'
13591  ;;
13592
13593netbsd*)
13594  version_type=sunos
13595  need_lib_prefix=no
13596  need_version=no
13597  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13598    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13599    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13600    dynamic_linker='NetBSD (a.out) ld.so'
13601  else
13602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13603    soname_spec='${libname}${release}${shared_ext}$major'
13604    dynamic_linker='NetBSD ld.elf_so'
13605  fi
13606  shlibpath_var=LD_LIBRARY_PATH
13607  shlibpath_overrides_runpath=yes
13608  hardcode_into_libs=yes
13609  ;;
13610
13611newsos6)
13612  version_type=linux
13613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13614  shlibpath_var=LD_LIBRARY_PATH
13615  shlibpath_overrides_runpath=yes
13616  ;;
13617
13618nto-qnx*)
13619  version_type=linux
13620  need_lib_prefix=no
13621  need_version=no
13622  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623  soname_spec='${libname}${release}${shared_ext}$major'
13624  shlibpath_var=LD_LIBRARY_PATH
13625  shlibpath_overrides_runpath=yes
13626  ;;
13627
13628openbsd*)
13629  version_type=sunos
13630  sys_lib_dlsearch_path_spec="/usr/lib"
13631  need_lib_prefix=no
13632  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13633  case $host_os in
13634    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13635    *)                         need_version=no  ;;
13636  esac
13637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13638  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13639  shlibpath_var=LD_LIBRARY_PATH
13640  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13641    case $host_os in
13642      openbsd2.[89] | openbsd2.[89].*)
13643	shlibpath_overrides_runpath=no
13644	;;
13645      *)
13646	shlibpath_overrides_runpath=yes
13647	;;
13648      esac
13649  else
13650    shlibpath_overrides_runpath=yes
13651  fi
13652  ;;
13653
13654os2*)
13655  libname_spec='$name'
13656  shrext_cmds=".dll"
13657  need_lib_prefix=no
13658  library_names_spec='$libname${shared_ext} $libname.a'
13659  dynamic_linker='OS/2 ld.exe'
13660  shlibpath_var=LIBPATH
13661  ;;
13662
13663osf3* | osf4* | osf5*)
13664  version_type=osf
13665  need_lib_prefix=no
13666  need_version=no
13667  soname_spec='${libname}${release}${shared_ext}$major'
13668  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669  shlibpath_var=LD_LIBRARY_PATH
13670  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13671  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13672  ;;
13673
13674rdos*)
13675  dynamic_linker=no
13676  ;;
13677
13678solaris*)
13679  version_type=linux
13680  need_lib_prefix=no
13681  need_version=no
13682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13683  soname_spec='${libname}${release}${shared_ext}$major'
13684  shlibpath_var=LD_LIBRARY_PATH
13685  shlibpath_overrides_runpath=yes
13686  hardcode_into_libs=yes
13687  # ldd complains unless libraries are executable
13688  postinstall_cmds='chmod +x $lib'
13689  ;;
13690
13691sunos4*)
13692  version_type=sunos
13693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13694  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13695  shlibpath_var=LD_LIBRARY_PATH
13696  shlibpath_overrides_runpath=yes
13697  if test "$with_gnu_ld" = yes; then
13698    need_lib_prefix=no
13699  fi
13700  need_version=yes
13701  ;;
13702
13703sysv4 | sysv4.3*)
13704  version_type=linux
13705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13706  soname_spec='${libname}${release}${shared_ext}$major'
13707  shlibpath_var=LD_LIBRARY_PATH
13708  case $host_vendor in
13709    sni)
13710      shlibpath_overrides_runpath=no
13711      need_lib_prefix=no
13712      export_dynamic_flag_spec='${wl}-Blargedynsym'
13713      runpath_var=LD_RUN_PATH
13714      ;;
13715    siemens)
13716      need_lib_prefix=no
13717      ;;
13718    motorola)
13719      need_lib_prefix=no
13720      need_version=no
13721      shlibpath_overrides_runpath=no
13722      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13723      ;;
13724  esac
13725  ;;
13726
13727sysv4*MP*)
13728  if test -d /usr/nec ;then
13729    version_type=linux
13730    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13731    soname_spec='$libname${shared_ext}.$major'
13732    shlibpath_var=LD_LIBRARY_PATH
13733  fi
13734  ;;
13735
13736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13737  version_type=freebsd-elf
13738  need_lib_prefix=no
13739  need_version=no
13740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13741  soname_spec='${libname}${release}${shared_ext}$major'
13742  shlibpath_var=LD_LIBRARY_PATH
13743  hardcode_into_libs=yes
13744  if test "$with_gnu_ld" = yes; then
13745    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13746    shlibpath_overrides_runpath=no
13747  else
13748    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13749    shlibpath_overrides_runpath=yes
13750    case $host_os in
13751      sco3.2v5*)
13752        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13753	;;
13754    esac
13755  fi
13756  sys_lib_dlsearch_path_spec='/usr/lib'
13757  ;;
13758
13759uts4*)
13760  version_type=linux
13761  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13762  soname_spec='${libname}${release}${shared_ext}$major'
13763  shlibpath_var=LD_LIBRARY_PATH
13764  ;;
13765
13766*)
13767  dynamic_linker=no
13768  ;;
13769esac
13770{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13771echo "${ECHO_T}$dynamic_linker" >&6; }
13772test "$dynamic_linker" = no && can_build_shared=no
13773
13774variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13775if test "$GCC" = yes; then
13776  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13777fi
13778
13779{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13780echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13781hardcode_action_CXX=
13782if test -n "$hardcode_libdir_flag_spec_CXX" || \
13783   test -n "$runpath_var_CXX" || \
13784   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13785
13786  # We can hardcode non-existant directories.
13787  if test "$hardcode_direct_CXX" != no &&
13788     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13789     # have to relink, otherwise we might link with an installed library
13790     # when we should be linking with a yet-to-be-installed one
13791     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13792     test "$hardcode_minus_L_CXX" != no; then
13793    # Linking always hardcodes the temporary library directory.
13794    hardcode_action_CXX=relink
13795  else
13796    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13797    hardcode_action_CXX=immediate
13798  fi
13799else
13800  # We cannot hardcode anything, or else we can only hardcode existing
13801  # directories.
13802  hardcode_action_CXX=unsupported
13803fi
13804{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13805echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13806
13807if test "$hardcode_action_CXX" = relink; then
13808  # Fast installation is not supported
13809  enable_fast_install=no
13810elif test "$shlibpath_overrides_runpath" = yes ||
13811     test "$enable_shared" = no; then
13812  # Fast installation is not necessary
13813  enable_fast_install=needless
13814fi
13815
13816
13817# The else clause should only fire when bootstrapping the
13818# libtool distribution, otherwise you forgot to ship ltmain.sh
13819# with your package, and you will get complaints that there are
13820# no rules to generate ltmain.sh.
13821if test -f "$ltmain"; then
13822  # See if we are running on zsh, and set the options which allow our commands through
13823  # without removal of \ escapes.
13824  if test -n "${ZSH_VERSION+set}" ; then
13825    setopt NO_GLOB_SUBST
13826  fi
13827  # Now quote all the things that may contain metacharacters while being
13828  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13829  # variables and quote the copies for generation of the libtool script.
13830  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13831    SED SHELL STRIP \
13832    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13833    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13834    deplibs_check_method reload_flag reload_cmds need_locks \
13835    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13836    lt_cv_sys_global_symbol_to_c_name_address \
13837    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13838    old_postinstall_cmds old_postuninstall_cmds \
13839    compiler_CXX \
13840    CC_CXX \
13841    LD_CXX \
13842    lt_prog_compiler_wl_CXX \
13843    lt_prog_compiler_pic_CXX \
13844    lt_prog_compiler_static_CXX \
13845    lt_prog_compiler_no_builtin_flag_CXX \
13846    export_dynamic_flag_spec_CXX \
13847    thread_safe_flag_spec_CXX \
13848    whole_archive_flag_spec_CXX \
13849    enable_shared_with_static_runtimes_CXX \
13850    old_archive_cmds_CXX \
13851    old_archive_from_new_cmds_CXX \
13852    predep_objects_CXX \
13853    postdep_objects_CXX \
13854    predeps_CXX \
13855    postdeps_CXX \
13856    compiler_lib_search_path_CXX \
13857    archive_cmds_CXX \
13858    archive_expsym_cmds_CXX \
13859    postinstall_cmds_CXX \
13860    postuninstall_cmds_CXX \
13861    old_archive_from_expsyms_cmds_CXX \
13862    allow_undefined_flag_CXX \
13863    no_undefined_flag_CXX \
13864    export_symbols_cmds_CXX \
13865    hardcode_libdir_flag_spec_CXX \
13866    hardcode_libdir_flag_spec_ld_CXX \
13867    hardcode_libdir_separator_CXX \
13868    hardcode_automatic_CXX \
13869    module_cmds_CXX \
13870    module_expsym_cmds_CXX \
13871    lt_cv_prog_compiler_c_o_CXX \
13872    fix_srcfile_path_CXX \
13873    exclude_expsyms_CXX \
13874    include_expsyms_CXX; do
13875
13876    case $var in
13877    old_archive_cmds_CXX | \
13878    old_archive_from_new_cmds_CXX | \
13879    archive_cmds_CXX | \
13880    archive_expsym_cmds_CXX | \
13881    module_cmds_CXX | \
13882    module_expsym_cmds_CXX | \
13883    old_archive_from_expsyms_cmds_CXX | \
13884    export_symbols_cmds_CXX | \
13885    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13886    postinstall_cmds | postuninstall_cmds | \
13887    old_postinstall_cmds | old_postuninstall_cmds | \
13888    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13889      # Double-quote double-evaled strings.
13890      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13891      ;;
13892    *)
13893      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13894      ;;
13895    esac
13896  done
13897
13898  case $lt_echo in
13899  *'\$0 --fallback-echo"')
13900    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13901    ;;
13902  esac
13903
13904cfgfile="$ofile"
13905
13906  cat <<__EOF__ >> "$cfgfile"
13907# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13908
13909# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13910
13911# Shell to use when invoking shell scripts.
13912SHELL=$lt_SHELL
13913
13914# Whether or not to build shared libraries.
13915build_libtool_libs=$enable_shared
13916
13917# Whether or not to build static libraries.
13918build_old_libs=$enable_static
13919
13920# Whether or not to add -lc for building shared libraries.
13921build_libtool_need_lc=$archive_cmds_need_lc_CXX
13922
13923# Whether or not to disallow shared libs when runtime libs are static
13924allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13925
13926# Whether or not to optimize for fast installation.
13927fast_install=$enable_fast_install
13928
13929# The host system.
13930host_alias=$host_alias
13931host=$host
13932host_os=$host_os
13933
13934# The build system.
13935build_alias=$build_alias
13936build=$build
13937build_os=$build_os
13938
13939# An echo program that does not interpret backslashes.
13940echo=$lt_echo
13941
13942# The archiver.
13943AR=$lt_AR
13944AR_FLAGS=$lt_AR_FLAGS
13945
13946# A C compiler.
13947LTCC=$lt_LTCC
13948
13949# LTCC compiler flags.
13950LTCFLAGS=$lt_LTCFLAGS
13951
13952# A language-specific compiler.
13953CC=$lt_compiler_CXX
13954
13955# Is the compiler the GNU C compiler?
13956with_gcc=$GCC_CXX
13957
13958# An ERE matcher.
13959EGREP=$lt_EGREP
13960
13961# The linker used to build libraries.
13962LD=$lt_LD_CXX
13963
13964# Whether we need hard or soft links.
13965LN_S=$lt_LN_S
13966
13967# A BSD-compatible nm program.
13968NM=$lt_NM
13969
13970# A symbol stripping program
13971STRIP=$lt_STRIP
13972
13973# Used to examine libraries when file_magic_cmd begins "file"
13974MAGIC_CMD=$MAGIC_CMD
13975
13976# Used on cygwin: DLL creation program.
13977DLLTOOL="$DLLTOOL"
13978
13979# Used on cygwin: object dumper.
13980OBJDUMP="$OBJDUMP"
13981
13982# Used on cygwin: assembler.
13983AS="$AS"
13984
13985# The name of the directory that contains temporary libtool files.
13986objdir=$objdir
13987
13988# How to create reloadable object files.
13989reload_flag=$lt_reload_flag
13990reload_cmds=$lt_reload_cmds
13991
13992# How to pass a linker flag through the compiler.
13993wl=$lt_lt_prog_compiler_wl_CXX
13994
13995# Object file suffix (normally "o").
13996objext="$ac_objext"
13997
13998# Old archive suffix (normally "a").
13999libext="$libext"
14000
14001# Shared library suffix (normally ".so").
14002shrext_cmds='$shrext_cmds'
14003
14004# Executable file suffix (normally "").
14005exeext="$exeext"
14006
14007# Additional compiler flags for building library objects.
14008pic_flag=$lt_lt_prog_compiler_pic_CXX
14009pic_mode=$pic_mode
14010
14011# What is the maximum length of a command?
14012max_cmd_len=$lt_cv_sys_max_cmd_len
14013
14014# Does compiler simultaneously support -c and -o options?
14015compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14016
14017# Must we lock files when doing compilation?
14018need_locks=$lt_need_locks
14019
14020# Do we need the lib prefix for modules?
14021need_lib_prefix=$need_lib_prefix
14022
14023# Do we need a version for libraries?
14024need_version=$need_version
14025
14026# Whether dlopen is supported.
14027dlopen_support=$enable_dlopen
14028
14029# Whether dlopen of programs is supported.
14030dlopen_self=$enable_dlopen_self
14031
14032# Whether dlopen of statically linked programs is supported.
14033dlopen_self_static=$enable_dlopen_self_static
14034
14035# Compiler flag to prevent dynamic linking.
14036link_static_flag=$lt_lt_prog_compiler_static_CXX
14037
14038# Compiler flag to turn off builtin functions.
14039no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14040
14041# Compiler flag to allow reflexive dlopens.
14042export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14043
14044# Compiler flag to generate shared objects directly from archives.
14045whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14046
14047# Compiler flag to generate thread-safe objects.
14048thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14049
14050# Library versioning type.
14051version_type=$version_type
14052
14053# Format of library name prefix.
14054libname_spec=$lt_libname_spec
14055
14056# List of archive names.  First name is the real one, the rest are links.
14057# The last name is the one that the linker finds with -lNAME.
14058library_names_spec=$lt_library_names_spec
14059
14060# The coded name of the library, if different from the real name.
14061soname_spec=$lt_soname_spec
14062
14063# Commands used to build and install an old-style archive.
14064RANLIB=$lt_RANLIB
14065old_archive_cmds=$lt_old_archive_cmds_CXX
14066old_postinstall_cmds=$lt_old_postinstall_cmds
14067old_postuninstall_cmds=$lt_old_postuninstall_cmds
14068
14069# Create an old-style archive from a shared archive.
14070old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14071
14072# Create a temporary old-style archive to link instead of a shared archive.
14073old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14074
14075# Commands used to build and install a shared archive.
14076archive_cmds=$lt_archive_cmds_CXX
14077archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14078postinstall_cmds=$lt_postinstall_cmds
14079postuninstall_cmds=$lt_postuninstall_cmds
14080
14081# Commands used to build a loadable module (assumed same as above if empty)
14082module_cmds=$lt_module_cmds_CXX
14083module_expsym_cmds=$lt_module_expsym_cmds_CXX
14084
14085# Commands to strip libraries.
14086old_striplib=$lt_old_striplib
14087striplib=$lt_striplib
14088
14089# Dependencies to place before the objects being linked to create a
14090# shared library.
14091predep_objects=$lt_predep_objects_CXX
14092
14093# Dependencies to place after the objects being linked to create a
14094# shared library.
14095postdep_objects=$lt_postdep_objects_CXX
14096
14097# Dependencies to place before the objects being linked to create a
14098# shared library.
14099predeps=$lt_predeps_CXX
14100
14101# Dependencies to place after the objects being linked to create a
14102# shared library.
14103postdeps=$lt_postdeps_CXX
14104
14105# The library search path used internally by the compiler when linking
14106# a shared library.
14107compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14108
14109# Method to check whether dependent libraries are shared objects.
14110deplibs_check_method=$lt_deplibs_check_method
14111
14112# Command to use when deplibs_check_method == file_magic.
14113file_magic_cmd=$lt_file_magic_cmd
14114
14115# Flag that allows shared libraries with undefined symbols to be built.
14116allow_undefined_flag=$lt_allow_undefined_flag_CXX
14117
14118# Flag that forces no undefined symbols.
14119no_undefined_flag=$lt_no_undefined_flag_CXX
14120
14121# Commands used to finish a libtool library installation in a directory.
14122finish_cmds=$lt_finish_cmds
14123
14124# Same as above, but a single script fragment to be evaled but not shown.
14125finish_eval=$lt_finish_eval
14126
14127# Take the output of nm and produce a listing of raw symbols and C names.
14128global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14129
14130# Transform the output of nm in a proper C declaration
14131global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14132
14133# Transform the output of nm in a C name address pair
14134global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14135
14136# This is the shared library runtime path variable.
14137runpath_var=$runpath_var
14138
14139# This is the shared library path variable.
14140shlibpath_var=$shlibpath_var
14141
14142# Is shlibpath searched before the hard-coded library search path?
14143shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14144
14145# How to hardcode a shared library path into an executable.
14146hardcode_action=$hardcode_action_CXX
14147
14148# Whether we should hardcode library paths into libraries.
14149hardcode_into_libs=$hardcode_into_libs
14150
14151# Flag to hardcode \$libdir into a binary during linking.
14152# This must work even if \$libdir does not exist.
14153hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14154
14155# If ld is used when linking, flag to hardcode \$libdir into
14156# a binary during linking. This must work even if \$libdir does
14157# not exist.
14158hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14159
14160# Whether we need a single -rpath flag with a separated argument.
14161hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14162
14163# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14164# resulting binary.
14165hardcode_direct=$hardcode_direct_CXX
14166
14167# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14168# resulting binary.
14169hardcode_minus_L=$hardcode_minus_L_CXX
14170
14171# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14172# the resulting binary.
14173hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14174
14175# Set to yes if building a shared library automatically hardcodes DIR into the library
14176# and all subsequent libraries and executables linked against it.
14177hardcode_automatic=$hardcode_automatic_CXX
14178
14179# Variables whose values should be saved in libtool wrapper scripts and
14180# restored at relink time.
14181variables_saved_for_relink="$variables_saved_for_relink"
14182
14183# Whether libtool must link a program against all its dependency libraries.
14184link_all_deplibs=$link_all_deplibs_CXX
14185
14186# Compile-time system search path for libraries
14187sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14188
14189# Run-time system search path for libraries
14190sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14191
14192# Fix the shell variable \$srcfile for the compiler.
14193fix_srcfile_path=$lt_fix_srcfile_path
14194
14195# Set to yes if exported symbols are required.
14196always_export_symbols=$always_export_symbols_CXX
14197
14198# The commands to list exported symbols.
14199export_symbols_cmds=$lt_export_symbols_cmds_CXX
14200
14201# The commands to extract the exported symbol list from a shared archive.
14202extract_expsyms_cmds=$lt_extract_expsyms_cmds
14203
14204# Symbols that should not be listed in the preloaded symbols.
14205exclude_expsyms=$lt_exclude_expsyms_CXX
14206
14207# Symbols that must always be exported.
14208include_expsyms=$lt_include_expsyms_CXX
14209
14210# ### END LIBTOOL TAG CONFIG: $tagname
14211
14212__EOF__
14213
14214
14215else
14216  # If there is no Makefile yet, we rely on a make rule to execute
14217  # `config.status --recheck' to rerun these tests and create the
14218  # libtool script then.
14219  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14220  if test -f "$ltmain_in"; then
14221    test -f Makefile && make "$ltmain"
14222  fi
14223fi
14224
14225
14226ac_ext=c
14227ac_cpp='$CPP $CPPFLAGS'
14228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14230ac_compiler_gnu=$ac_cv_c_compiler_gnu
14231
14232CC=$lt_save_CC
14233LDCXX=$LD
14234LD=$lt_save_LD
14235GCC=$lt_save_GCC
14236with_gnu_ldcxx=$with_gnu_ld
14237with_gnu_ld=$lt_save_with_gnu_ld
14238lt_cv_path_LDCXX=$lt_cv_path_LD
14239lt_cv_path_LD=$lt_save_path_LD
14240lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14241lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14242
14243	else
14244	  tagname=""
14245	fi
14246	;;
14247
14248      F77)
14249	if test -n "$F77" && test "X$F77" != "Xno"; then
14250	  :
14251	else
14252	  tagname=""
14253	fi
14254	;;
14255
14256      GCJ)
14257	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14258	  :
14259	else
14260	  tagname=""
14261	fi
14262	;;
14263
14264      RC)
14265
14266
14267# Source file extension for RC test sources.
14268ac_ext=rc
14269
14270# Object file extension for compiled RC test sources.
14271objext=o
14272objext_RC=$objext
14273
14274# Code to be used in simple compile tests
14275lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
14276
14277# Code to be used in simple link tests
14278lt_simple_link_test_code="$lt_simple_compile_test_code"
14279
14280# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14281
14282# If no C compiler was specified, use CC.
14283LTCC=${LTCC-"$CC"}
14284
14285# If no C compiler flags were specified, use CFLAGS.
14286LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14287
14288# Allow CC to be a program name with arguments.
14289compiler=$CC
14290
14291
14292# save warnings/boilerplate of simple test code
14293ac_outfile=conftest.$ac_objext
14294echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14295eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14296_lt_compiler_boilerplate=`cat conftest.err`
14297$rm conftest*
14298
14299ac_outfile=conftest.$ac_objext
14300echo "$lt_simple_link_test_code" >conftest.$ac_ext
14301eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14302_lt_linker_boilerplate=`cat conftest.err`
14303$rm conftest*
14304
14305
14306# Allow CC to be a program name with arguments.
14307lt_save_CC="$CC"
14308CC=${RC-"windres"}
14309compiler=$CC
14310compiler_RC=$CC
14311for cc_temp in $compiler""; do
14312  case $cc_temp in
14313    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14314    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14315    \-*) ;;
14316    *) break;;
14317  esac
14318done
14319cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14320
14321lt_cv_prog_compiler_c_o_RC=yes
14322
14323# The else clause should only fire when bootstrapping the
14324# libtool distribution, otherwise you forgot to ship ltmain.sh
14325# with your package, and you will get complaints that there are
14326# no rules to generate ltmain.sh.
14327if test -f "$ltmain"; then
14328  # See if we are running on zsh, and set the options which allow our commands through
14329  # without removal of \ escapes.
14330  if test -n "${ZSH_VERSION+set}" ; then
14331    setopt NO_GLOB_SUBST
14332  fi
14333  # Now quote all the things that may contain metacharacters while being
14334  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14335  # variables and quote the copies for generation of the libtool script.
14336  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14337    SED SHELL STRIP \
14338    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14339    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14340    deplibs_check_method reload_flag reload_cmds need_locks \
14341    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14342    lt_cv_sys_global_symbol_to_c_name_address \
14343    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14344    old_postinstall_cmds old_postuninstall_cmds \
14345    compiler_RC \
14346    CC_RC \
14347    LD_RC \
14348    lt_prog_compiler_wl_RC \
14349    lt_prog_compiler_pic_RC \
14350    lt_prog_compiler_static_RC \
14351    lt_prog_compiler_no_builtin_flag_RC \
14352    export_dynamic_flag_spec_RC \
14353    thread_safe_flag_spec_RC \
14354    whole_archive_flag_spec_RC \
14355    enable_shared_with_static_runtimes_RC \
14356    old_archive_cmds_RC \
14357    old_archive_from_new_cmds_RC \
14358    predep_objects_RC \
14359    postdep_objects_RC \
14360    predeps_RC \
14361    postdeps_RC \
14362    compiler_lib_search_path_RC \
14363    archive_cmds_RC \
14364    archive_expsym_cmds_RC \
14365    postinstall_cmds_RC \
14366    postuninstall_cmds_RC \
14367    old_archive_from_expsyms_cmds_RC \
14368    allow_undefined_flag_RC \
14369    no_undefined_flag_RC \
14370    export_symbols_cmds_RC \
14371    hardcode_libdir_flag_spec_RC \
14372    hardcode_libdir_flag_spec_ld_RC \
14373    hardcode_libdir_separator_RC \
14374    hardcode_automatic_RC \
14375    module_cmds_RC \
14376    module_expsym_cmds_RC \
14377    lt_cv_prog_compiler_c_o_RC \
14378    fix_srcfile_path_RC \
14379    exclude_expsyms_RC \
14380    include_expsyms_RC; do
14381
14382    case $var in
14383    old_archive_cmds_RC | \
14384    old_archive_from_new_cmds_RC | \
14385    archive_cmds_RC | \
14386    archive_expsym_cmds_RC | \
14387    module_cmds_RC | \
14388    module_expsym_cmds_RC | \
14389    old_archive_from_expsyms_cmds_RC | \
14390    export_symbols_cmds_RC | \
14391    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14392    postinstall_cmds | postuninstall_cmds | \
14393    old_postinstall_cmds | old_postuninstall_cmds | \
14394    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14395      # Double-quote double-evaled strings.
14396      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14397      ;;
14398    *)
14399      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14400      ;;
14401    esac
14402  done
14403
14404  case $lt_echo in
14405  *'\$0 --fallback-echo"')
14406    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14407    ;;
14408  esac
14409
14410cfgfile="$ofile"
14411
14412  cat <<__EOF__ >> "$cfgfile"
14413# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14414
14415# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14416
14417# Shell to use when invoking shell scripts.
14418SHELL=$lt_SHELL
14419
14420# Whether or not to build shared libraries.
14421build_libtool_libs=$enable_shared
14422
14423# Whether or not to build static libraries.
14424build_old_libs=$enable_static
14425
14426# Whether or not to add -lc for building shared libraries.
14427build_libtool_need_lc=$archive_cmds_need_lc_RC
14428
14429# Whether or not to disallow shared libs when runtime libs are static
14430allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
14431
14432# Whether or not to optimize for fast installation.
14433fast_install=$enable_fast_install
14434
14435# The host system.
14436host_alias=$host_alias
14437host=$host
14438host_os=$host_os
14439
14440# The build system.
14441build_alias=$build_alias
14442build=$build
14443build_os=$build_os
14444
14445# An echo program that does not interpret backslashes.
14446echo=$lt_echo
14447
14448# The archiver.
14449AR=$lt_AR
14450AR_FLAGS=$lt_AR_FLAGS
14451
14452# A C compiler.
14453LTCC=$lt_LTCC
14454
14455# LTCC compiler flags.
14456LTCFLAGS=$lt_LTCFLAGS
14457
14458# A language-specific compiler.
14459CC=$lt_compiler_RC
14460
14461# Is the compiler the GNU C compiler?
14462with_gcc=$GCC_RC
14463
14464# An ERE matcher.
14465EGREP=$lt_EGREP
14466
14467# The linker used to build libraries.
14468LD=$lt_LD_RC
14469
14470# Whether we need hard or soft links.
14471LN_S=$lt_LN_S
14472
14473# A BSD-compatible nm program.
14474NM=$lt_NM
14475
14476# A symbol stripping program
14477STRIP=$lt_STRIP
14478
14479# Used to examine libraries when file_magic_cmd begins "file"
14480MAGIC_CMD=$MAGIC_CMD
14481
14482# Used on cygwin: DLL creation program.
14483DLLTOOL="$DLLTOOL"
14484
14485# Used on cygwin: object dumper.
14486OBJDUMP="$OBJDUMP"
14487
14488# Used on cygwin: assembler.
14489AS="$AS"
14490
14491# The name of the directory that contains temporary libtool files.
14492objdir=$objdir
14493
14494# How to create reloadable object files.
14495reload_flag=$lt_reload_flag
14496reload_cmds=$lt_reload_cmds
14497
14498# How to pass a linker flag through the compiler.
14499wl=$lt_lt_prog_compiler_wl_RC
14500
14501# Object file suffix (normally "o").
14502objext="$ac_objext"
14503
14504# Old archive suffix (normally "a").
14505libext="$libext"
14506
14507# Shared library suffix (normally ".so").
14508shrext_cmds='$shrext_cmds'
14509
14510# Executable file suffix (normally "").
14511exeext="$exeext"
14512
14513# Additional compiler flags for building library objects.
14514pic_flag=$lt_lt_prog_compiler_pic_RC
14515pic_mode=$pic_mode
14516
14517# What is the maximum length of a command?
14518max_cmd_len=$lt_cv_sys_max_cmd_len
14519
14520# Does compiler simultaneously support -c and -o options?
14521compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
14522
14523# Must we lock files when doing compilation?
14524need_locks=$lt_need_locks
14525
14526# Do we need the lib prefix for modules?
14527need_lib_prefix=$need_lib_prefix
14528
14529# Do we need a version for libraries?
14530need_version=$need_version
14531
14532# Whether dlopen is supported.
14533dlopen_support=$enable_dlopen
14534
14535# Whether dlopen of programs is supported.
14536dlopen_self=$enable_dlopen_self
14537
14538# Whether dlopen of statically linked programs is supported.
14539dlopen_self_static=$enable_dlopen_self_static
14540
14541# Compiler flag to prevent dynamic linking.
14542link_static_flag=$lt_lt_prog_compiler_static_RC
14543
14544# Compiler flag to turn off builtin functions.
14545no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
14546
14547# Compiler flag to allow reflexive dlopens.
14548export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
14549
14550# Compiler flag to generate shared objects directly from archives.
14551whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
14552
14553# Compiler flag to generate thread-safe objects.
14554thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
14555
14556# Library versioning type.
14557version_type=$version_type
14558
14559# Format of library name prefix.
14560libname_spec=$lt_libname_spec
14561
14562# List of archive names.  First name is the real one, the rest are links.
14563# The last name is the one that the linker finds with -lNAME.
14564library_names_spec=$lt_library_names_spec
14565
14566# The coded name of the library, if different from the real name.
14567soname_spec=$lt_soname_spec
14568
14569# Commands used to build and install an old-style archive.
14570RANLIB=$lt_RANLIB
14571old_archive_cmds=$lt_old_archive_cmds_RC
14572old_postinstall_cmds=$lt_old_postinstall_cmds
14573old_postuninstall_cmds=$lt_old_postuninstall_cmds
14574
14575# Create an old-style archive from a shared archive.
14576old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
14577
14578# Create a temporary old-style archive to link instead of a shared archive.
14579old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
14580
14581# Commands used to build and install a shared archive.
14582archive_cmds=$lt_archive_cmds_RC
14583archive_expsym_cmds=$lt_archive_expsym_cmds_RC
14584postinstall_cmds=$lt_postinstall_cmds
14585postuninstall_cmds=$lt_postuninstall_cmds
14586
14587# Commands used to build a loadable module (assumed same as above if empty)
14588module_cmds=$lt_module_cmds_RC
14589module_expsym_cmds=$lt_module_expsym_cmds_RC
14590
14591# Commands to strip libraries.
14592old_striplib=$lt_old_striplib
14593striplib=$lt_striplib
14594
14595# Dependencies to place before the objects being linked to create a
14596# shared library.
14597predep_objects=$lt_predep_objects_RC
14598
14599# Dependencies to place after the objects being linked to create a
14600# shared library.
14601postdep_objects=$lt_postdep_objects_RC
14602
14603# Dependencies to place before the objects being linked to create a
14604# shared library.
14605predeps=$lt_predeps_RC
14606
14607# Dependencies to place after the objects being linked to create a
14608# shared library.
14609postdeps=$lt_postdeps_RC
14610
14611# The library search path used internally by the compiler when linking
14612# a shared library.
14613compiler_lib_search_path=$lt_compiler_lib_search_path_RC
14614
14615# Method to check whether dependent libraries are shared objects.
14616deplibs_check_method=$lt_deplibs_check_method
14617
14618# Command to use when deplibs_check_method == file_magic.
14619file_magic_cmd=$lt_file_magic_cmd
14620
14621# Flag that allows shared libraries with undefined symbols to be built.
14622allow_undefined_flag=$lt_allow_undefined_flag_RC
14623
14624# Flag that forces no undefined symbols.
14625no_undefined_flag=$lt_no_undefined_flag_RC
14626
14627# Commands used to finish a libtool library installation in a directory.
14628finish_cmds=$lt_finish_cmds
14629
14630# Same as above, but a single script fragment to be evaled but not shown.
14631finish_eval=$lt_finish_eval
14632
14633# Take the output of nm and produce a listing of raw symbols and C names.
14634global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14635
14636# Transform the output of nm in a proper C declaration
14637global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14638
14639# Transform the output of nm in a C name address pair
14640global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14641
14642# This is the shared library runtime path variable.
14643runpath_var=$runpath_var
14644
14645# This is the shared library path variable.
14646shlibpath_var=$shlibpath_var
14647
14648# Is shlibpath searched before the hard-coded library search path?
14649shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14650
14651# How to hardcode a shared library path into an executable.
14652hardcode_action=$hardcode_action_RC
14653
14654# Whether we should hardcode library paths into libraries.
14655hardcode_into_libs=$hardcode_into_libs
14656
14657# Flag to hardcode \$libdir into a binary during linking.
14658# This must work even if \$libdir does not exist.
14659hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
14660
14661# If ld is used when linking, flag to hardcode \$libdir into
14662# a binary during linking. This must work even if \$libdir does
14663# not exist.
14664hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
14665
14666# Whether we need a single -rpath flag with a separated argument.
14667hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
14668
14669# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14670# resulting binary.
14671hardcode_direct=$hardcode_direct_RC
14672
14673# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14674# resulting binary.
14675hardcode_minus_L=$hardcode_minus_L_RC
14676
14677# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14678# the resulting binary.
14679hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
14680
14681# Set to yes if building a shared library automatically hardcodes DIR into the library
14682# and all subsequent libraries and executables linked against it.
14683hardcode_automatic=$hardcode_automatic_RC
14684
14685# Variables whose values should be saved in libtool wrapper scripts and
14686# restored at relink time.
14687variables_saved_for_relink="$variables_saved_for_relink"
14688
14689# Whether libtool must link a program against all its dependency libraries.
14690link_all_deplibs=$link_all_deplibs_RC
14691
14692# Compile-time system search path for libraries
14693sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14694
14695# Run-time system search path for libraries
14696sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14697
14698# Fix the shell variable \$srcfile for the compiler.
14699fix_srcfile_path=$lt_fix_srcfile_path
14700
14701# Set to yes if exported symbols are required.
14702always_export_symbols=$always_export_symbols_RC
14703
14704# The commands to list exported symbols.
14705export_symbols_cmds=$lt_export_symbols_cmds_RC
14706
14707# The commands to extract the exported symbol list from a shared archive.
14708extract_expsyms_cmds=$lt_extract_expsyms_cmds
14709
14710# Symbols that should not be listed in the preloaded symbols.
14711exclude_expsyms=$lt_exclude_expsyms_RC
14712
14713# Symbols that must always be exported.
14714include_expsyms=$lt_include_expsyms_RC
14715
14716# ### END LIBTOOL TAG CONFIG: $tagname
14717
14718__EOF__
14719
14720
14721else
14722  # If there is no Makefile yet, we rely on a make rule to execute
14723  # `config.status --recheck' to rerun these tests and create the
14724  # libtool script then.
14725  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14726  if test -f "$ltmain_in"; then
14727    test -f Makefile && make "$ltmain"
14728  fi
14729fi
14730
14731
14732ac_ext=c
14733ac_cpp='$CPP $CPPFLAGS'
14734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14736ac_compiler_gnu=$ac_cv_c_compiler_gnu
14737
14738CC="$lt_save_CC"
14739
14740	;;
14741
14742      *)
14743	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
14744echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
14745   { (exit 1); exit 1; }; }
14746	;;
14747      esac
14748
14749      # Append the new tag name to the list of available tags.
14750      if test -n "$tagname" ; then
14751      available_tags="$available_tags $tagname"
14752    fi
14753    fi
14754  done
14755  IFS="$lt_save_ifs"
14756
14757  # Now substitute the updated list of available tags.
14758  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
14759    mv "${ofile}T" "$ofile"
14760    chmod +x "$ofile"
14761  else
14762    rm -f "${ofile}T"
14763    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
14764echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
14765   { (exit 1); exit 1; }; }
14766  fi
14767fi
14768
14769
14770
14771# This can be used to rebuild libtool when needed
14772LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
14773
14774# Always use our own libtool.
14775LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14776
14777# Prevent multiple expansion
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794{ echo "$as_me:$LINENO: checking whether to enable debugging" >&5
14795echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6; }
14796# Check whether --enable-debug was given.
14797if test "${enable_debug+set}" = set; then
14798  enableval=$enable_debug;
14799else
14800  enable_debug=no
14801fi
14802
14803
14804
14805if  ! test "x$enable_debug" != "xyes"; then
14806
14807cat >>confdefs.h <<\_ACEOF
14808#define DEBUG 1
14809_ACEOF
14810
14811  CXXFLAGS="${CXXFLAGS} -g"
14812  pkg_modules="StopClock >= 0.1"
14813  { echo "$as_me:$LINENO: result: yes" >&5
14814echo "${ECHO_T}yes" >&6; }
14815  # check for pkg-config stuff
14816
14817
14818if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14819	if test -n "$ac_tool_prefix"; then
14820  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14821set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14822{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14824if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14825  echo $ECHO_N "(cached) $ECHO_C" >&6
14826else
14827  case $PKG_CONFIG in
14828  [\\/]* | ?:[\\/]*)
14829  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14830  ;;
14831  *)
14832  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14833for as_dir in $PATH
14834do
14835  IFS=$as_save_IFS
14836  test -z "$as_dir" && as_dir=.
14837  for ac_exec_ext in '' $ac_executable_extensions; do
14838  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14839    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14840    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14841    break 2
14842  fi
14843done
14844done
14845IFS=$as_save_IFS
14846
14847  ;;
14848esac
14849fi
14850PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14851if test -n "$PKG_CONFIG"; then
14852  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14853echo "${ECHO_T}$PKG_CONFIG" >&6; }
14854else
14855  { echo "$as_me:$LINENO: result: no" >&5
14856echo "${ECHO_T}no" >&6; }
14857fi
14858
14859
14860fi
14861if test -z "$ac_cv_path_PKG_CONFIG"; then
14862  ac_pt_PKG_CONFIG=$PKG_CONFIG
14863  # Extract the first word of "pkg-config", so it can be a program name with args.
14864set dummy pkg-config; ac_word=$2
14865{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14866echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14867if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
14868  echo $ECHO_N "(cached) $ECHO_C" >&6
14869else
14870  case $ac_pt_PKG_CONFIG in
14871  [\\/]* | ?:[\\/]*)
14872  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14873  ;;
14874  *)
14875  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14876for as_dir in $PATH
14877do
14878  IFS=$as_save_IFS
14879  test -z "$as_dir" && as_dir=.
14880  for ac_exec_ext in '' $ac_executable_extensions; do
14881  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14882    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14884    break 2
14885  fi
14886done
14887done
14888IFS=$as_save_IFS
14889
14890  ;;
14891esac
14892fi
14893ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14894if test -n "$ac_pt_PKG_CONFIG"; then
14895  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
14896echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
14897else
14898  { echo "$as_me:$LINENO: result: no" >&5
14899echo "${ECHO_T}no" >&6; }
14900fi
14901
14902  if test "x$ac_pt_PKG_CONFIG" = x; then
14903    PKG_CONFIG=""
14904  else
14905    case $cross_compiling:$ac_tool_warned in
14906yes:)
14907{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14908whose name does not start with the host triplet.  If you think this
14909configuration is useful to you, please write to autoconf@gnu.org." >&5
14910echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14911whose name does not start with the host triplet.  If you think this
14912configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14913ac_tool_warned=yes ;;
14914esac
14915    PKG_CONFIG=$ac_pt_PKG_CONFIG
14916  fi
14917else
14918  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14919fi
14920
14921fi
14922if test -n "$PKG_CONFIG"; then
14923	_pkg_min_version=0.9.0
14924	{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
14925echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
14926	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14927		{ echo "$as_me:$LINENO: result: yes" >&5
14928echo "${ECHO_T}yes" >&6; }
14929	else
14930		{ echo "$as_me:$LINENO: result: no" >&5
14931echo "${ECHO_T}no" >&6; }
14932		PKG_CONFIG=""
14933	fi
14934
14935fi
14936
14937pkg_failed=no
14938{ echo "$as_me:$LINENO: checking for PACKAGE" >&5
14939echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
14940
14941if test -n "$PKG_CONFIG"; then
14942    if test -n "$PACKAGE_CFLAGS"; then
14943        pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
14944    else
14945        if test -n "$PKG_CONFIG" && \
14946    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
14947  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
14948  ac_status=$?
14949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950  (exit $ac_status); }; then
14951  pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
14952else
14953  pkg_failed=yes
14954fi
14955    fi
14956else
14957	pkg_failed=untried
14958fi
14959if test -n "$PKG_CONFIG"; then
14960    if test -n "$PACKAGE_LIBS"; then
14961        pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
14962    else
14963        if test -n "$PKG_CONFIG" && \
14964    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5
14965  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
14966  ac_status=$?
14967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968  (exit $ac_status); }; then
14969  pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
14970else
14971  pkg_failed=yes
14972fi
14973    fi
14974else
14975	pkg_failed=untried
14976fi
14977
14978
14979
14980if test $pkg_failed = yes; then
14981
14982if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14983        _pkg_short_errors_supported=yes
14984else
14985        _pkg_short_errors_supported=no
14986fi
14987        if test $_pkg_short_errors_supported = yes; then
14988	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"`
14989        else
14990	        PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
14991        fi
14992	# Put the nasty error message in config.log where it belongs
14993	echo "$PACKAGE_PKG_ERRORS" >&5
14994
14995	{ { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met:
14996
14997$PACKAGE_PKG_ERRORS
14998
14999Consider adjusting the PKG_CONFIG_PATH environment variable if you
15000installed software in a non-standard prefix.
15001
15002Alternatively, you may set the environment variables PACKAGE_CFLAGS
15003and PACKAGE_LIBS to avoid the need to call pkg-config.
15004See the pkg-config man page for more details.
15005" >&5
15006echo "$as_me: error: Package requirements ($pkg_modules) were not met:
15007
15008$PACKAGE_PKG_ERRORS
15009
15010Consider adjusting the PKG_CONFIG_PATH environment variable if you
15011installed software in a non-standard prefix.
15012
15013Alternatively, you may set the environment variables PACKAGE_CFLAGS
15014and PACKAGE_LIBS to avoid the need to call pkg-config.
15015See the pkg-config man page for more details.
15016" >&2;}
15017   { (exit 1); exit 1; }; }
15018elif test $pkg_failed = untried; then
15019	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
15020is in your PATH or set the PKG_CONFIG environment variable to the full
15021path to pkg-config.
15022
15023Alternatively, you may set the environment variables PACKAGE_CFLAGS
15024and PACKAGE_LIBS to avoid the need to call pkg-config.
15025See the pkg-config man page for more details.
15026
15027To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15028See \`config.log' for more details." >&5
15029echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
15030is in your PATH or set the PKG_CONFIG environment variable to the full
15031path to pkg-config.
15032
15033Alternatively, you may set the environment variables PACKAGE_CFLAGS
15034and PACKAGE_LIBS to avoid the need to call pkg-config.
15035See the pkg-config man page for more details.
15036
15037To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
15038See \`config.log' for more details." >&2;}
15039   { (exit 1); exit 1; }; }
15040else
15041	PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
15042	PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
15043        { echo "$as_me:$LINENO: result: yes" >&5
15044echo "${ECHO_T}yes" >&6; }
15045	:
15046fi
15047
15048
15049else
15050  { echo "$as_me:$LINENO: result: no" >&5
15051echo "${ECHO_T}no" >&6; }
15052fi
15053
15054
15055
15056packagesrcdir=`cd $srcdir && pwd`
15057
15058if test "x${prefix}" = "xNONE"; then
15059  packageprefix=${ac_default_prefix}
15060else
15061  packageprefix=${prefix}
15062fi
15063
15064packagedatadir=share/${PACKAGE}
15065packagedocdir=doc/${PACKAGE}
15066packagepixmapsdir=share/pixmaps/${PACKAGE}
15067
15068NO_PREFIX_PACKAGE_DATA_DIR="${packagedatadir}"
15069
15070PACKAGE_DATA_DIR="${packageprefix}/${packagedatadir}"
15071
15072
15073NO_PREFIX_PACKAGE_DOC_DIR="${packagedocdir}"
15074
15075PACKAGE_DOC_DIR="${packageprefix}/${packagedocdir}"
15076
15077
15078NO_PREFIX_PACKAGE_PIXMAPS_DIR="${packagepixmapsdir}"
15079
15080PACKAGE_PIXMAPS_DIR="${packageprefix}/${packagepixmapsdir}"
15081
15082
15083PACKAGE_SOURCE_DIR="${packagesrcdir}"
15084
15085
15086
15087cat >>confdefs.h <<_ACEOF
15088#define PACKAGE_DATA_DIR "${packageprefix}/${packagedatadir}"
15089_ACEOF
15090
15091
15092cat >>confdefs.h <<_ACEOF
15093#define SYSTEM_DATA_DIR "${packageprefix}/${systemdatadir}"
15094_ACEOF
15095
15096
15097cat >>confdefs.h <<_ACEOF
15098#define PACKAGE_DOC_DIR "${packageprefix}/${packagedocdir}"
15099_ACEOF
15100
15101
15102cat >>confdefs.h <<_ACEOF
15103#define PACKAGE_PIXMAPS_DIR "${packageprefix}/${packagepixmapsdir}"
15104_ACEOF
15105
15106
15107cat >>confdefs.h <<_ACEOF
15108#define SYSTEM_PIXMAPS_DIR "${packageprefix}/${systempixmapsdir}"
15109_ACEOF
15110
15111
15112cat >>confdefs.h <<_ACEOF
15113#define PACKAGE_SOURCE_DIR "${packagesrcdir}"
15114_ACEOF
15115
15116
15117ac_config_files="$ac_config_files Makefile include/Makefile include/animorph/Makefile src/Makefile animorph.pc animorph-uninstalled.pc animorph-env.sh animorph.DevPackage"
15118
15119cat >confcache <<\_ACEOF
15120# This file is a shell script that caches the results of configure
15121# tests run on this system so they can be shared between configure
15122# scripts and configure runs, see configure's option --config-cache.
15123# It is not useful on other systems.  If it contains results you don't
15124# want to keep, you may remove or edit it.
15125#
15126# config.status only pays attention to the cache file if you give it
15127# the --recheck option to rerun configure.
15128#
15129# `ac_cv_env_foo' variables (set or unset) will be overridden when
15130# loading this file, other *unset* `ac_cv_foo' will be assigned the
15131# following values.
15132
15133_ACEOF
15134
15135# The following way of writing the cache mishandles newlines in values,
15136# but we know of no workaround that is simple, portable, and efficient.
15137# So, we kill variables containing newlines.
15138# Ultrix sh set writes to stderr and can't be redirected directly,
15139# and sets the high bit in the cache file unless we assign to the vars.
15140(
15141  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15142    eval ac_val=\$$ac_var
15143    case $ac_val in #(
15144    *${as_nl}*)
15145      case $ac_var in #(
15146      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15147echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15148      esac
15149      case $ac_var in #(
15150      _ | IFS | as_nl) ;; #(
15151      *) $as_unset $ac_var ;;
15152      esac ;;
15153    esac
15154  done
15155
15156  (set) 2>&1 |
15157    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15158    *${as_nl}ac_space=\ *)
15159      # `set' does not quote correctly, so add quotes (double-quote
15160      # substitution turns \\\\ into \\, and sed turns \\ into \).
15161      sed -n \
15162	"s/'/'\\\\''/g;
15163	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15164      ;; #(
15165    *)
15166      # `set' quotes correctly as required by POSIX, so do not add quotes.
15167      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15168      ;;
15169    esac |
15170    sort
15171) |
15172  sed '
15173     /^ac_cv_env_/b end
15174     t clear
15175     :clear
15176     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15177     t end
15178     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15179     :end' >>confcache
15180if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15181  if test -w "$cache_file"; then
15182    test "x$cache_file" != "x/dev/null" &&
15183      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15184echo "$as_me: updating cache $cache_file" >&6;}
15185    cat confcache >$cache_file
15186  else
15187    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15188echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15189  fi
15190fi
15191rm -f confcache
15192
15193test "x$prefix" = xNONE && prefix=$ac_default_prefix
15194# Let make expand exec_prefix.
15195test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15196
15197DEFS=-DHAVE_CONFIG_H
15198
15199ac_libobjs=
15200ac_ltlibobjs=
15201for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15202  # 1. Remove the extension, and $U if already installed.
15203  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15204  ac_i=`echo "$ac_i" | sed "$ac_script"`
15205  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15206  #    will be set to the directory where LIBOBJS objects are built.
15207  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15208  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15209done
15210LIBOBJS=$ac_libobjs
15211
15212LTLIBOBJS=$ac_ltlibobjs
15213
15214
15215if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15216  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15217Usually this means the macro was only invoked conditionally." >&5
15218echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15219Usually this means the macro was only invoked conditionally." >&2;}
15220   { (exit 1); exit 1; }; }
15221fi
15222if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15223  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15224Usually this means the macro was only invoked conditionally." >&5
15225echo "$as_me: error: conditional \"AMDEP\" was never defined.
15226Usually this means the macro was only invoked conditionally." >&2;}
15227   { (exit 1); exit 1; }; }
15228fi
15229if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15230  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15231Usually this means the macro was only invoked conditionally." >&5
15232echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15233Usually this means the macro was only invoked conditionally." >&2;}
15234   { (exit 1); exit 1; }; }
15235fi
15236if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15237  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15238Usually this means the macro was only invoked conditionally." >&5
15239echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15240Usually this means the macro was only invoked conditionally." >&2;}
15241   { (exit 1); exit 1; }; }
15242fi
15243if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15244  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15245Usually this means the macro was only invoked conditionally." >&5
15246echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15247Usually this means the macro was only invoked conditionally." >&2;}
15248   { (exit 1); exit 1; }; }
15249fi
15250
15251: ${CONFIG_STATUS=./config.status}
15252ac_clean_files_save=$ac_clean_files
15253ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15254{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15255echo "$as_me: creating $CONFIG_STATUS" >&6;}
15256cat >$CONFIG_STATUS <<_ACEOF
15257#! $SHELL
15258# Generated by $as_me.
15259# Run this file to recreate the current configuration.
15260# Compiler output produced by configure, useful for debugging
15261# configure, is in config.log if it exists.
15262
15263debug=false
15264ac_cs_recheck=false
15265ac_cs_silent=false
15266SHELL=\${CONFIG_SHELL-$SHELL}
15267_ACEOF
15268
15269cat >>$CONFIG_STATUS <<\_ACEOF
15270## --------------------- ##
15271## M4sh Initialization.  ##
15272## --------------------- ##
15273
15274# Be more Bourne compatible
15275DUALCASE=1; export DUALCASE # for MKS sh
15276if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15277  emulate sh
15278  NULLCMD=:
15279  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15280  # is contrary to our usage.  Disable this feature.
15281  alias -g '${1+"$@"}'='"$@"'
15282  setopt NO_GLOB_SUBST
15283else
15284  case `(set -o) 2>/dev/null` in
15285  *posix*) set -o posix ;;
15286esac
15287
15288fi
15289
15290
15291
15292
15293# PATH needs CR
15294# Avoid depending upon Character Ranges.
15295as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15296as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15297as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15298as_cr_digits='0123456789'
15299as_cr_alnum=$as_cr_Letters$as_cr_digits
15300
15301# The user is always right.
15302if test "${PATH_SEPARATOR+set}" != set; then
15303  echo "#! /bin/sh" >conf$$.sh
15304  echo  "exit 0"   >>conf$$.sh
15305  chmod +x conf$$.sh
15306  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15307    PATH_SEPARATOR=';'
15308  else
15309    PATH_SEPARATOR=:
15310  fi
15311  rm -f conf$$.sh
15312fi
15313
15314# Support unset when possible.
15315if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15316  as_unset=unset
15317else
15318  as_unset=false
15319fi
15320
15321
15322# IFS
15323# We need space, tab and new line, in precisely that order.  Quoting is
15324# there to prevent editors from complaining about space-tab.
15325# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15326# splitting by setting IFS to empty value.)
15327as_nl='
15328'
15329IFS=" ""	$as_nl"
15330
15331# Find who we are.  Look in the path if we contain no directory separator.
15332case $0 in
15333  *[\\/]* ) as_myself=$0 ;;
15334  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15335for as_dir in $PATH
15336do
15337  IFS=$as_save_IFS
15338  test -z "$as_dir" && as_dir=.
15339  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15340done
15341IFS=$as_save_IFS
15342
15343     ;;
15344esac
15345# We did not find ourselves, most probably we were run as `sh COMMAND'
15346# in which case we are not to be found in the path.
15347if test "x$as_myself" = x; then
15348  as_myself=$0
15349fi
15350if test ! -f "$as_myself"; then
15351  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15352  { (exit 1); exit 1; }
15353fi
15354
15355# Work around bugs in pre-3.0 UWIN ksh.
15356for as_var in ENV MAIL MAILPATH
15357do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15358done
15359PS1='$ '
15360PS2='> '
15361PS4='+ '
15362
15363# NLS nuisances.
15364for as_var in \
15365  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15366  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15367  LC_TELEPHONE LC_TIME
15368do
15369  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15370    eval $as_var=C; export $as_var
15371  else
15372    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15373  fi
15374done
15375
15376# Required to use basename.
15377if expr a : '\(a\)' >/dev/null 2>&1 &&
15378   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15379  as_expr=expr
15380else
15381  as_expr=false
15382fi
15383
15384if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15385  as_basename=basename
15386else
15387  as_basename=false
15388fi
15389
15390
15391# Name of the executable.
15392as_me=`$as_basename -- "$0" ||
15393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15394	 X"$0" : 'X\(//\)$' \| \
15395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15396echo X/"$0" |
15397    sed '/^.*\/\([^/][^/]*\)\/*$/{
15398	    s//\1/
15399	    q
15400	  }
15401	  /^X\/\(\/\/\)$/{
15402	    s//\1/
15403	    q
15404	  }
15405	  /^X\/\(\/\).*/{
15406	    s//\1/
15407	    q
15408	  }
15409	  s/.*/./; q'`
15410
15411# CDPATH.
15412$as_unset CDPATH
15413
15414
15415
15416  as_lineno_1=$LINENO
15417  as_lineno_2=$LINENO
15418  test "x$as_lineno_1" != "x$as_lineno_2" &&
15419  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15420
15421  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15422  # uniformly replaced by the line number.  The first 'sed' inserts a
15423  # line-number line after each line using $LINENO; the second 'sed'
15424  # does the real work.  The second script uses 'N' to pair each
15425  # line-number line with the line containing $LINENO, and appends
15426  # trailing '-' during substitution so that $LINENO is not a special
15427  # case at line end.
15428  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15429  # scripts with optimization help from Paolo Bonzini.  Blame Lee
15430  # E. McMahon (1931-1989) for sed's syntax.  :-)
15431  sed -n '
15432    p
15433    /[$]LINENO/=
15434  ' <$as_myself |
15435    sed '
15436      s/[$]LINENO.*/&-/
15437      t lineno
15438      b
15439      :lineno
15440      N
15441      :loop
15442      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15443      t loop
15444      s/-\n.*//
15445    ' >$as_me.lineno &&
15446  chmod +x "$as_me.lineno" ||
15447    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15448   { (exit 1); exit 1; }; }
15449
15450  # Don't try to exec as it changes $[0], causing all sort of problems
15451  # (the dirname of $[0] is not the place where we might find the
15452  # original and so on.  Autoconf is especially sensitive to this).
15453  . "./$as_me.lineno"
15454  # Exit status is that of the last command.
15455  exit
15456}
15457
15458
15459if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15460  as_dirname=dirname
15461else
15462  as_dirname=false
15463fi
15464
15465ECHO_C= ECHO_N= ECHO_T=
15466case `echo -n x` in
15467-n*)
15468  case `echo 'x\c'` in
15469  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15470  *)   ECHO_C='\c';;
15471  esac;;
15472*)
15473  ECHO_N='-n';;
15474esac
15475
15476if expr a : '\(a\)' >/dev/null 2>&1 &&
15477   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15478  as_expr=expr
15479else
15480  as_expr=false
15481fi
15482
15483rm -f conf$$ conf$$.exe conf$$.file
15484if test -d conf$$.dir; then
15485  rm -f conf$$.dir/conf$$.file
15486else
15487  rm -f conf$$.dir
15488  mkdir conf$$.dir
15489fi
15490echo >conf$$.file
15491if ln -s conf$$.file conf$$ 2>/dev/null; then
15492  as_ln_s='ln -s'
15493  # ... but there are two gotchas:
15494  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15495  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15496  # In both cases, we have to default to `cp -p'.
15497  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15498    as_ln_s='cp -p'
15499elif ln conf$$.file conf$$ 2>/dev/null; then
15500  as_ln_s=ln
15501else
15502  as_ln_s='cp -p'
15503fi
15504rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15505rmdir conf$$.dir 2>/dev/null
15506
15507if mkdir -p . 2>/dev/null; then
15508  as_mkdir_p=:
15509else
15510  test -d ./-p && rmdir ./-p
15511  as_mkdir_p=false
15512fi
15513
15514if test -x / >/dev/null 2>&1; then
15515  as_test_x='test -x'
15516else
15517  if ls -dL / >/dev/null 2>&1; then
15518    as_ls_L_option=L
15519  else
15520    as_ls_L_option=
15521  fi
15522  as_test_x='
15523    eval sh -c '\''
15524      if test -d "$1"; then
15525        test -d "$1/.";
15526      else
15527	case $1 in
15528        -*)set "./$1";;
15529	esac;
15530	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15531	???[sx]*):;;*)false;;esac;fi
15532    '\'' sh
15533  '
15534fi
15535as_executable_p=$as_test_x
15536
15537# Sed expression to map a string onto a valid CPP name.
15538as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15539
15540# Sed expression to map a string onto a valid variable name.
15541as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15542
15543
15544exec 6>&1
15545
15546# Save the log message, to keep $[0] and so on meaningful, and to
15547# report actual input values of CONFIG_FILES etc. instead of their
15548# values after options handling.
15549ac_log="
15550This file was extended by Animorph Library $as_me 0.3, which was
15551generated by GNU Autoconf 2.61.  Invocation command line was
15552
15553  CONFIG_FILES    = $CONFIG_FILES
15554  CONFIG_HEADERS  = $CONFIG_HEADERS
15555  CONFIG_LINKS    = $CONFIG_LINKS
15556  CONFIG_COMMANDS = $CONFIG_COMMANDS
15557  $ $0 $@
15558
15559on `(hostname || uname -n) 2>/dev/null | sed 1q`
15560"
15561
15562_ACEOF
15563
15564cat >>$CONFIG_STATUS <<_ACEOF
15565# Files that config.status was made for.
15566config_files="$ac_config_files"
15567config_headers="$ac_config_headers"
15568config_commands="$ac_config_commands"
15569
15570_ACEOF
15571
15572cat >>$CONFIG_STATUS <<\_ACEOF
15573ac_cs_usage="\
15574\`$as_me' instantiates files from templates according to the
15575current configuration.
15576
15577Usage: $0 [OPTIONS] [FILE]...
15578
15579  -h, --help       print this help, then exit
15580  -V, --version    print version number and configuration settings, then exit
15581  -q, --quiet      do not print progress messages
15582  -d, --debug      don't remove temporary files
15583      --recheck    update $as_me by reconfiguring in the same conditions
15584  --file=FILE[:TEMPLATE]
15585		   instantiate the configuration file FILE
15586  --header=FILE[:TEMPLATE]
15587		   instantiate the configuration header FILE
15588
15589Configuration files:
15590$config_files
15591
15592Configuration headers:
15593$config_headers
15594
15595Configuration commands:
15596$config_commands
15597
15598Report bugs to <bug-autoconf@gnu.org>."
15599
15600_ACEOF
15601cat >>$CONFIG_STATUS <<_ACEOF
15602ac_cs_version="\\
15603Animorph Library config.status 0.3
15604configured by $0, generated by GNU Autoconf 2.61,
15605  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15606
15607Copyright (C) 2006 Free Software Foundation, Inc.
15608This config.status script is free software; the Free Software Foundation
15609gives unlimited permission to copy, distribute and modify it."
15610
15611ac_pwd='$ac_pwd'
15612srcdir='$srcdir'
15613INSTALL='$INSTALL'
15614MKDIR_P='$MKDIR_P'
15615_ACEOF
15616
15617cat >>$CONFIG_STATUS <<\_ACEOF
15618# If no file are specified by the user, then we need to provide default
15619# value.  By we need to know if files were specified by the user.
15620ac_need_defaults=:
15621while test $# != 0
15622do
15623  case $1 in
15624  --*=*)
15625    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15626    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15627    ac_shift=:
15628    ;;
15629  *)
15630    ac_option=$1
15631    ac_optarg=$2
15632    ac_shift=shift
15633    ;;
15634  esac
15635
15636  case $ac_option in
15637  # Handling of the options.
15638  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15639    ac_cs_recheck=: ;;
15640  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15641    echo "$ac_cs_version"; exit ;;
15642  --debug | --debu | --deb | --de | --d | -d )
15643    debug=: ;;
15644  --file | --fil | --fi | --f )
15645    $ac_shift
15646    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15647    ac_need_defaults=false;;
15648  --header | --heade | --head | --hea )
15649    $ac_shift
15650    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15651    ac_need_defaults=false;;
15652  --he | --h)
15653    # Conflict between --help and --header
15654    { echo "$as_me: error: ambiguous option: $1
15655Try \`$0 --help' for more information." >&2
15656   { (exit 1); exit 1; }; };;
15657  --help | --hel | -h )
15658    echo "$ac_cs_usage"; exit ;;
15659  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15660  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15661    ac_cs_silent=: ;;
15662
15663  # This is an error.
15664  -*) { echo "$as_me: error: unrecognized option: $1
15665Try \`$0 --help' for more information." >&2
15666   { (exit 1); exit 1; }; } ;;
15667
15668  *) ac_config_targets="$ac_config_targets $1"
15669     ac_need_defaults=false ;;
15670
15671  esac
15672  shift
15673done
15674
15675ac_configure_extra_args=
15676
15677if $ac_cs_silent; then
15678  exec 6>/dev/null
15679  ac_configure_extra_args="$ac_configure_extra_args --silent"
15680fi
15681
15682_ACEOF
15683cat >>$CONFIG_STATUS <<_ACEOF
15684if \$ac_cs_recheck; then
15685  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15686  CONFIG_SHELL=$SHELL
15687  export CONFIG_SHELL
15688  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15689fi
15690
15691_ACEOF
15692cat >>$CONFIG_STATUS <<\_ACEOF
15693exec 5>>config.log
15694{
15695  echo
15696  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15697## Running $as_me. ##
15698_ASBOX
15699  echo "$ac_log"
15700} >&5
15701
15702_ACEOF
15703cat >>$CONFIG_STATUS <<_ACEOF
15704#
15705# INIT-COMMANDS
15706#
15707AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15708
15709_ACEOF
15710
15711cat >>$CONFIG_STATUS <<\_ACEOF
15712
15713# Handling of arguments.
15714for ac_config_target in $ac_config_targets
15715do
15716  case $ac_config_target in
15717    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15718    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15719    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15720    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15721    "include/animorph/Makefile") CONFIG_FILES="$CONFIG_FILES include/animorph/Makefile" ;;
15722    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15723    "animorph.pc") CONFIG_FILES="$CONFIG_FILES animorph.pc" ;;
15724    "animorph-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES animorph-uninstalled.pc" ;;
15725    "animorph-env.sh") CONFIG_FILES="$CONFIG_FILES animorph-env.sh" ;;
15726    "animorph.DevPackage") CONFIG_FILES="$CONFIG_FILES animorph.DevPackage" ;;
15727
15728  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15729echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15730   { (exit 1); exit 1; }; };;
15731  esac
15732done
15733
15734
15735# If the user did not use the arguments to specify the items to instantiate,
15736# then the envvar interface is used.  Set only those that are not.
15737# We use the long form for the default assignment because of an extremely
15738# bizarre bug on SunOS 4.1.3.
15739if $ac_need_defaults; then
15740  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15741  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15742  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15743fi
15744
15745# Have a temporary directory for convenience.  Make it in the build tree
15746# simply because there is no reason against having it here, and in addition,
15747# creating and moving files from /tmp can sometimes cause problems.
15748# Hook for its removal unless debugging.
15749# Note that there is a small window in which the directory will not be cleaned:
15750# after its creation but before its name has been assigned to `$tmp'.
15751$debug ||
15752{
15753  tmp=
15754  trap 'exit_status=$?
15755  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15756' 0
15757  trap '{ (exit 1); exit 1; }' 1 2 13 15
15758}
15759# Create a (secure) tmp directory for tmp files.
15760
15761{
15762  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15763  test -n "$tmp" && test -d "$tmp"
15764}  ||
15765{
15766  tmp=./conf$$-$RANDOM
15767  (umask 077 && mkdir "$tmp")
15768} ||
15769{
15770   echo "$me: cannot create a temporary directory in ." >&2
15771   { (exit 1); exit 1; }
15772}
15773
15774#
15775# Set up the sed scripts for CONFIG_FILES section.
15776#
15777
15778# No need to generate the scripts if there are no CONFIG_FILES.
15779# This happens for instance when ./config.status config.h
15780if test -n "$CONFIG_FILES"; then
15781
15782_ACEOF
15783
15784
15785
15786ac_delim='%!_!# '
15787for ac_last_try in false false false false false :; do
15788  cat >conf$$subs.sed <<_ACEOF
15789SHELL!$SHELL$ac_delim
15790PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15791PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15792PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15793PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15794PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15795PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15796exec_prefix!$exec_prefix$ac_delim
15797prefix!$prefix$ac_delim
15798program_transform_name!$program_transform_name$ac_delim
15799bindir!$bindir$ac_delim
15800sbindir!$sbindir$ac_delim
15801libexecdir!$libexecdir$ac_delim
15802datarootdir!$datarootdir$ac_delim
15803datadir!$datadir$ac_delim
15804sysconfdir!$sysconfdir$ac_delim
15805sharedstatedir!$sharedstatedir$ac_delim
15806localstatedir!$localstatedir$ac_delim
15807includedir!$includedir$ac_delim
15808oldincludedir!$oldincludedir$ac_delim
15809docdir!$docdir$ac_delim
15810infodir!$infodir$ac_delim
15811htmldir!$htmldir$ac_delim
15812dvidir!$dvidir$ac_delim
15813pdfdir!$pdfdir$ac_delim
15814psdir!$psdir$ac_delim
15815libdir!$libdir$ac_delim
15816localedir!$localedir$ac_delim
15817mandir!$mandir$ac_delim
15818DEFS!$DEFS$ac_delim
15819ECHO_C!$ECHO_C$ac_delim
15820ECHO_N!$ECHO_N$ac_delim
15821ECHO_T!$ECHO_T$ac_delim
15822LIBS!$LIBS$ac_delim
15823build_alias!$build_alias$ac_delim
15824host_alias!$host_alias$ac_delim
15825target_alias!$target_alias$ac_delim
15826INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15827INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15828INSTALL_DATA!$INSTALL_DATA$ac_delim
15829am__isrc!$am__isrc$ac_delim
15830CYGPATH_W!$CYGPATH_W$ac_delim
15831PACKAGE!$PACKAGE$ac_delim
15832VERSION!$VERSION$ac_delim
15833ACLOCAL!$ACLOCAL$ac_delim
15834AUTOCONF!$AUTOCONF$ac_delim
15835AUTOMAKE!$AUTOMAKE$ac_delim
15836AUTOHEADER!$AUTOHEADER$ac_delim
15837MAKEINFO!$MAKEINFO$ac_delim
15838install_sh!$install_sh$ac_delim
15839STRIP!$STRIP$ac_delim
15840INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
15841mkdir_p!$mkdir_p$ac_delim
15842AWK!$AWK$ac_delim
15843SET_MAKE!$SET_MAKE$ac_delim
15844am__leading_dot!$am__leading_dot$ac_delim
15845AMTAR!$AMTAR$ac_delim
15846am__tar!$am__tar$ac_delim
15847am__untar!$am__untar$ac_delim
15848MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
15849MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
15850MAINT!$MAINT$ac_delim
15851CC!$CC$ac_delim
15852CFLAGS!$CFLAGS$ac_delim
15853LDFLAGS!$LDFLAGS$ac_delim
15854CPPFLAGS!$CPPFLAGS$ac_delim
15855ac_ct_CC!$ac_ct_CC$ac_delim
15856EXEEXT!$EXEEXT$ac_delim
15857OBJEXT!$OBJEXT$ac_delim
15858DEPDIR!$DEPDIR$ac_delim
15859am__include!$am__include$ac_delim
15860am__quote!$am__quote$ac_delim
15861AMDEP_TRUE!$AMDEP_TRUE$ac_delim
15862AMDEP_FALSE!$AMDEP_FALSE$ac_delim
15863AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
15864CCDEPMODE!$CCDEPMODE$ac_delim
15865am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
15866am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
15867CPP!$CPP$ac_delim
15868CXX!$CXX$ac_delim
15869CXXFLAGS!$CXXFLAGS$ac_delim
15870ac_ct_CXX!$ac_ct_CXX$ac_delim
15871CXXDEPMODE!$CXXDEPMODE$ac_delim
15872am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
15873am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
15874GREP!$GREP$ac_delim
15875EGREP!$EGREP$ac_delim
15876build!$build$ac_delim
15877build_cpu!$build_cpu$ac_delim
15878build_vendor!$build_vendor$ac_delim
15879build_os!$build_os$ac_delim
15880host!$host$ac_delim
15881host_cpu!$host_cpu$ac_delim
15882host_vendor!$host_vendor$ac_delim
15883host_os!$host_os$ac_delim
15884SED!$SED$ac_delim
15885LN_S!$LN_S$ac_delim
15886_ACEOF
15887
15888  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
15889    break
15890  elif $ac_last_try; then
15891    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15892echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15893   { (exit 1); exit 1; }; }
15894  else
15895    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15896  fi
15897done
15898
15899ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15900if test -n "$ac_eof"; then
15901  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15902  ac_eof=`expr $ac_eof + 1`
15903fi
15904
15905cat >>$CONFIG_STATUS <<_ACEOF
15906cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15907/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15908_ACEOF
15909sed '
15910s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15911s/^/s,@/; s/!/@,|#_!!_#|/
15912:n
15913t n
15914s/'"$ac_delim"'$/,g/; t
15915s/$/\\/; p
15916N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15917' >>$CONFIG_STATUS <conf$$subs.sed
15918rm -f conf$$subs.sed
15919cat >>$CONFIG_STATUS <<_ACEOF
15920CEOF$ac_eof
15921_ACEOF
15922
15923
15924ac_delim='%!_!# '
15925for ac_last_try in false false false false false :; do
15926  cat >conf$$subs.sed <<_ACEOF
15927ECHO!$ECHO$ac_delim
15928AR!$AR$ac_delim
15929RANLIB!$RANLIB$ac_delim
15930CXXCPP!$CXXCPP$ac_delim
15931LIBTOOL!$LIBTOOL$ac_delim
15932PKG_CONFIG!$PKG_CONFIG$ac_delim
15933PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
15934PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
15935NO_PREFIX_PACKAGE_DATA_DIR!$NO_PREFIX_PACKAGE_DATA_DIR$ac_delim
15936PACKAGE_DATA_DIR!$PACKAGE_DATA_DIR$ac_delim
15937NO_PREFIX_PACKAGE_DOC_DIR!$NO_PREFIX_PACKAGE_DOC_DIR$ac_delim
15938PACKAGE_DOC_DIR!$PACKAGE_DOC_DIR$ac_delim
15939NO_PREFIX_PACKAGE_PIXMAPS_DIR!$NO_PREFIX_PACKAGE_PIXMAPS_DIR$ac_delim
15940PACKAGE_PIXMAPS_DIR!$PACKAGE_PIXMAPS_DIR$ac_delim
15941PACKAGE_SOURCE_DIR!$PACKAGE_SOURCE_DIR$ac_delim
15942LIBOBJS!$LIBOBJS$ac_delim
15943LTLIBOBJS!$LTLIBOBJS$ac_delim
15944_ACEOF
15945
15946  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
15947    break
15948  elif $ac_last_try; then
15949    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15950echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15951   { (exit 1); exit 1; }; }
15952  else
15953    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15954  fi
15955done
15956
15957ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15958if test -n "$ac_eof"; then
15959  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15960  ac_eof=`expr $ac_eof + 1`
15961fi
15962
15963cat >>$CONFIG_STATUS <<_ACEOF
15964cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15965/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15966_ACEOF
15967sed '
15968s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15969s/^/s,@/; s/!/@,|#_!!_#|/
15970:n
15971t n
15972s/'"$ac_delim"'$/,g/; t
15973s/$/\\/; p
15974N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15975' >>$CONFIG_STATUS <conf$$subs.sed
15976rm -f conf$$subs.sed
15977cat >>$CONFIG_STATUS <<_ACEOF
15978:end
15979s/|#_!!_#|//g
15980CEOF$ac_eof
15981_ACEOF
15982
15983
15984# VPATH may cause trouble with some makes, so we remove $(srcdir),
15985# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15986# trailing colons and then remove the whole line if VPATH becomes empty
15987# (actually we leave an empty line to preserve line numbers).
15988if test "x$srcdir" = x.; then
15989  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15990s/:*\$(srcdir):*/:/
15991s/:*\${srcdir}:*/:/
15992s/:*@srcdir@:*/:/
15993s/^\([^=]*=[	 ]*\):*/\1/
15994s/:*$//
15995s/^[^=]*=[	 ]*$//
15996}'
15997fi
15998
15999cat >>$CONFIG_STATUS <<\_ACEOF
16000fi # test -n "$CONFIG_FILES"
16001
16002
16003for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
16004do
16005  case $ac_tag in
16006  :[FHLC]) ac_mode=$ac_tag; continue;;
16007  esac
16008  case $ac_mode$ac_tag in
16009  :[FHL]*:*);;
16010  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16011echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16012   { (exit 1); exit 1; }; };;
16013  :[FH]-) ac_tag=-:-;;
16014  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16015  esac
16016  ac_save_IFS=$IFS
16017  IFS=:
16018  set x $ac_tag
16019  IFS=$ac_save_IFS
16020  shift
16021  ac_file=$1
16022  shift
16023
16024  case $ac_mode in
16025  :L) ac_source=$1;;
16026  :[FH])
16027    ac_file_inputs=
16028    for ac_f
16029    do
16030      case $ac_f in
16031      -) ac_f="$tmp/stdin";;
16032      *) # Look for the file first in the build tree, then in the source tree
16033	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16034	 # because $ac_f cannot contain `:'.
16035	 test -f "$ac_f" ||
16036	   case $ac_f in
16037	   [\\/$]*) false;;
16038	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16039	   esac ||
16040	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16041echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16042   { (exit 1); exit 1; }; };;
16043      esac
16044      ac_file_inputs="$ac_file_inputs $ac_f"
16045    done
16046
16047    # Let's still pretend it is `configure' which instantiates (i.e., don't
16048    # use $as_me), people would be surprised to read:
16049    #    /* config.h.  Generated by config.status.  */
16050    configure_input="Generated from "`IFS=:
16051	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16052    if test x"$ac_file" != x-; then
16053      configure_input="$ac_file.  $configure_input"
16054      { echo "$as_me:$LINENO: creating $ac_file" >&5
16055echo "$as_me: creating $ac_file" >&6;}
16056    fi
16057
16058    case $ac_tag in
16059    *:-:* | *:-) cat >"$tmp/stdin";;
16060    esac
16061    ;;
16062  esac
16063
16064  ac_dir=`$as_dirname -- "$ac_file" ||
16065$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16066	 X"$ac_file" : 'X\(//\)[^/]' \| \
16067	 X"$ac_file" : 'X\(//\)$' \| \
16068	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16069echo X"$ac_file" |
16070    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16071	    s//\1/
16072	    q
16073	  }
16074	  /^X\(\/\/\)[^/].*/{
16075	    s//\1/
16076	    q
16077	  }
16078	  /^X\(\/\/\)$/{
16079	    s//\1/
16080	    q
16081	  }
16082	  /^X\(\/\).*/{
16083	    s//\1/
16084	    q
16085	  }
16086	  s/.*/./; q'`
16087  { as_dir="$ac_dir"
16088  case $as_dir in #(
16089  -*) as_dir=./$as_dir;;
16090  esac
16091  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16092    as_dirs=
16093    while :; do
16094      case $as_dir in #(
16095      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16096      *) as_qdir=$as_dir;;
16097      esac
16098      as_dirs="'$as_qdir' $as_dirs"
16099      as_dir=`$as_dirname -- "$as_dir" ||
16100$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16101	 X"$as_dir" : 'X\(//\)[^/]' \| \
16102	 X"$as_dir" : 'X\(//\)$' \| \
16103	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16104echo X"$as_dir" |
16105    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16106	    s//\1/
16107	    q
16108	  }
16109	  /^X\(\/\/\)[^/].*/{
16110	    s//\1/
16111	    q
16112	  }
16113	  /^X\(\/\/\)$/{
16114	    s//\1/
16115	    q
16116	  }
16117	  /^X\(\/\).*/{
16118	    s//\1/
16119	    q
16120	  }
16121	  s/.*/./; q'`
16122      test -d "$as_dir" && break
16123    done
16124    test -z "$as_dirs" || eval "mkdir $as_dirs"
16125  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16126echo "$as_me: error: cannot create directory $as_dir" >&2;}
16127   { (exit 1); exit 1; }; }; }
16128  ac_builddir=.
16129
16130case "$ac_dir" in
16131.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16132*)
16133  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16134  # A ".." for each directory in $ac_dir_suffix.
16135  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16136  case $ac_top_builddir_sub in
16137  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16138  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16139  esac ;;
16140esac
16141ac_abs_top_builddir=$ac_pwd
16142ac_abs_builddir=$ac_pwd$ac_dir_suffix
16143# for backward compatibility:
16144ac_top_builddir=$ac_top_build_prefix
16145
16146case $srcdir in
16147  .)  # We are building in place.
16148    ac_srcdir=.
16149    ac_top_srcdir=$ac_top_builddir_sub
16150    ac_abs_top_srcdir=$ac_pwd ;;
16151  [\\/]* | ?:[\\/]* )  # Absolute name.
16152    ac_srcdir=$srcdir$ac_dir_suffix;
16153    ac_top_srcdir=$srcdir
16154    ac_abs_top_srcdir=$srcdir ;;
16155  *) # Relative name.
16156    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16157    ac_top_srcdir=$ac_top_build_prefix$srcdir
16158    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16159esac
16160ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16161
16162
16163  case $ac_mode in
16164  :F)
16165  #
16166  # CONFIG_FILE
16167  #
16168
16169  case $INSTALL in
16170  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16171  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16172  esac
16173  ac_MKDIR_P=$MKDIR_P
16174  case $MKDIR_P in
16175  [\\/$]* | ?:[\\/]* ) ;;
16176  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16177  esac
16178_ACEOF
16179
16180cat >>$CONFIG_STATUS <<\_ACEOF
16181# If the template does not know about datarootdir, expand it.
16182# FIXME: This hack should be removed a few years after 2.60.
16183ac_datarootdir_hack=; ac_datarootdir_seen=
16184
16185case `sed -n '/datarootdir/ {
16186  p
16187  q
16188}
16189/@datadir@/p
16190/@docdir@/p
16191/@infodir@/p
16192/@localedir@/p
16193/@mandir@/p
16194' $ac_file_inputs` in
16195*datarootdir*) ac_datarootdir_seen=yes;;
16196*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16197  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16198echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16199_ACEOF
16200cat >>$CONFIG_STATUS <<_ACEOF
16201  ac_datarootdir_hack='
16202  s&@datadir@&$datadir&g
16203  s&@docdir@&$docdir&g
16204  s&@infodir@&$infodir&g
16205  s&@localedir@&$localedir&g
16206  s&@mandir@&$mandir&g
16207    s&\\\${datarootdir}&$datarootdir&g' ;;
16208esac
16209_ACEOF
16210
16211# Neutralize VPATH when `$srcdir' = `.'.
16212# Shell code in configure.ac might set extrasub.
16213# FIXME: do we really want to maintain this feature?
16214cat >>$CONFIG_STATUS <<_ACEOF
16215  sed "$ac_vpsub
16216$extrasub
16217_ACEOF
16218cat >>$CONFIG_STATUS <<\_ACEOF
16219:t
16220/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16221s&@configure_input@&$configure_input&;t t
16222s&@top_builddir@&$ac_top_builddir_sub&;t t
16223s&@srcdir@&$ac_srcdir&;t t
16224s&@abs_srcdir@&$ac_abs_srcdir&;t t
16225s&@top_srcdir@&$ac_top_srcdir&;t t
16226s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16227s&@builddir@&$ac_builddir&;t t
16228s&@abs_builddir@&$ac_abs_builddir&;t t
16229s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16230s&@INSTALL@&$ac_INSTALL&;t t
16231s&@MKDIR_P@&$ac_MKDIR_P&;t t
16232$ac_datarootdir_hack
16233" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16234
16235test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16236  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16237  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16238  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16239which seems to be undefined.  Please make sure it is defined." >&5
16240echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16241which seems to be undefined.  Please make sure it is defined." >&2;}
16242
16243  rm -f "$tmp/stdin"
16244  case $ac_file in
16245  -) cat "$tmp/out"; rm -f "$tmp/out";;
16246  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16247  esac
16248 ;;
16249  :H)
16250  #
16251  # CONFIG_HEADER
16252  #
16253_ACEOF
16254
16255# Transform confdefs.h into a sed script `conftest.defines', that
16256# substitutes the proper values into config.h.in to produce config.h.
16257rm -f conftest.defines conftest.tail
16258# First, append a space to every undef/define line, to ease matching.
16259echo 's/$/ /' >conftest.defines
16260# Then, protect against being on the right side of a sed subst, or in
16261# an unquoted here document, in config.status.  If some macros were
16262# called several times there might be several #defines for the same
16263# symbol, which is useless.  But do not sort them, since the last
16264# AC_DEFINE must be honored.
16265ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16266# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16267# NAME is the cpp macro being defined, VALUE is the value it is being given.
16268# PARAMS is the parameter list in the macro definition--in most cases, it's
16269# just an empty string.
16270ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
16271ac_dB='\\)[	 (].*,\\1define\\2'
16272ac_dC=' '
16273ac_dD=' ,'
16274
16275uniq confdefs.h |
16276  sed -n '
16277	t rset
16278	:rset
16279	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
16280	t ok
16281	d
16282	:ok
16283	s/[\\&,]/\\&/g
16284	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16285	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16286  ' >>conftest.defines
16287
16288# Remove the space that was appended to ease matching.
16289# Then replace #undef with comments.  This is necessary, for
16290# example, in the case of _POSIX_SOURCE, which is predefined and required
16291# on some systems where configure will not decide to define it.
16292# (The regexp can be short, since the line contains either #define or #undef.)
16293echo 's/ $//
16294s,^[	 #]*u.*,/* & */,' >>conftest.defines
16295
16296# Break up conftest.defines:
16297ac_max_sed_lines=50
16298
16299# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16300# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16301# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16302# et cetera.
16303ac_in='$ac_file_inputs'
16304ac_out='"$tmp/out1"'
16305ac_nxt='"$tmp/out2"'
16306
16307while :
16308do
16309  # Write a here document:
16310    cat >>$CONFIG_STATUS <<_ACEOF
16311    # First, check the format of the line:
16312    cat >"\$tmp/defines.sed" <<\\CEOF
16313/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
16314/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
16315b
16316:def
16317_ACEOF
16318  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16319  echo 'CEOF
16320    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16321  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16322  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16323  grep . conftest.tail >/dev/null || break
16324  rm -f conftest.defines
16325  mv conftest.tail conftest.defines
16326done
16327rm -f conftest.defines conftest.tail
16328
16329echo "ac_result=$ac_in" >>$CONFIG_STATUS
16330cat >>$CONFIG_STATUS <<\_ACEOF
16331  if test x"$ac_file" != x-; then
16332    echo "/* $configure_input  */" >"$tmp/config.h"
16333    cat "$ac_result" >>"$tmp/config.h"
16334    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16335      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16336echo "$as_me: $ac_file is unchanged" >&6;}
16337    else
16338      rm -f $ac_file
16339      mv "$tmp/config.h" $ac_file
16340    fi
16341  else
16342    echo "/* $configure_input  */"
16343    cat "$ac_result"
16344  fi
16345  rm -f "$tmp/out12"
16346# Compute $ac_file's index in $config_headers.
16347_am_stamp_count=1
16348for _am_header in $config_headers :; do
16349  case $_am_header in
16350    $ac_file | $ac_file:* )
16351      break ;;
16352    * )
16353      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16354  esac
16355done
16356echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
16357$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16358	 X$ac_file : 'X\(//\)[^/]' \| \
16359	 X$ac_file : 'X\(//\)$' \| \
16360	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
16361echo X$ac_file |
16362    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16363	    s//\1/
16364	    q
16365	  }
16366	  /^X\(\/\/\)[^/].*/{
16367	    s//\1/
16368	    q
16369	  }
16370	  /^X\(\/\/\)$/{
16371	    s//\1/
16372	    q
16373	  }
16374	  /^X\(\/\).*/{
16375	    s//\1/
16376	    q
16377	  }
16378	  s/.*/./; q'`/stamp-h$_am_stamp_count
16379 ;;
16380
16381  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16382echo "$as_me: executing $ac_file commands" >&6;}
16383 ;;
16384  esac
16385
16386
16387  case $ac_file$ac_mode in
16388    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16389  # Strip MF so we end up with the name of the file.
16390  mf=`echo "$mf" | sed -e 's/:.*$//'`
16391  # Check whether this is an Automake generated Makefile or not.
16392  # We used to match only the files named `Makefile.in', but
16393  # some people rename them; so instead we look at the file content.
16394  # Grep'ing the first line is not enough: some people post-process
16395  # each Makefile.in and add a new line on top of each file to say so.
16396  # Grep'ing the whole file is not good either: AIX grep has a line
16397  # limit of 2048, but all sed's we know have understand at least 4000.
16398  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
16399    dirpart=`$as_dirname -- "$mf" ||
16400$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16401	 X"$mf" : 'X\(//\)[^/]' \| \
16402	 X"$mf" : 'X\(//\)$' \| \
16403	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16404echo X"$mf" |
16405    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16406	    s//\1/
16407	    q
16408	  }
16409	  /^X\(\/\/\)[^/].*/{
16410	    s//\1/
16411	    q
16412	  }
16413	  /^X\(\/\/\)$/{
16414	    s//\1/
16415	    q
16416	  }
16417	  /^X\(\/\).*/{
16418	    s//\1/
16419	    q
16420	  }
16421	  s/.*/./; q'`
16422  else
16423    continue
16424  fi
16425  # Extract the definition of DEPDIR, am__include, and am__quote
16426  # from the Makefile without running `make'.
16427  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16428  test -z "$DEPDIR" && continue
16429  am__include=`sed -n 's/^am__include = //p' < "$mf"`
16430  test -z "am__include" && continue
16431  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16432  # When using ansi2knr, U may be empty or an underscore; expand it
16433  U=`sed -n 's/^U = //p' < "$mf"`
16434  # Find all dependency output files, they are included files with
16435  # $(DEPDIR) in their names.  We invoke sed twice because it is the
16436  # simplest approach to changing $(DEPDIR) to its actual value in the
16437  # expansion.
16438  for file in `sed -n "
16439    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16440       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16441    # Make sure the directory exists.
16442    test -f "$dirpart/$file" && continue
16443    fdir=`$as_dirname -- "$file" ||
16444$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16445	 X"$file" : 'X\(//\)[^/]' \| \
16446	 X"$file" : 'X\(//\)$' \| \
16447	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16448echo X"$file" |
16449    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16450	    s//\1/
16451	    q
16452	  }
16453	  /^X\(\/\/\)[^/].*/{
16454	    s//\1/
16455	    q
16456	  }
16457	  /^X\(\/\/\)$/{
16458	    s//\1/
16459	    q
16460	  }
16461	  /^X\(\/\).*/{
16462	    s//\1/
16463	    q
16464	  }
16465	  s/.*/./; q'`
16466    { as_dir=$dirpart/$fdir
16467  case $as_dir in #(
16468  -*) as_dir=./$as_dir;;
16469  esac
16470  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16471    as_dirs=
16472    while :; do
16473      case $as_dir in #(
16474      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16475      *) as_qdir=$as_dir;;
16476      esac
16477      as_dirs="'$as_qdir' $as_dirs"
16478      as_dir=`$as_dirname -- "$as_dir" ||
16479$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480	 X"$as_dir" : 'X\(//\)[^/]' \| \
16481	 X"$as_dir" : 'X\(//\)$' \| \
16482	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16483echo X"$as_dir" |
16484    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16485	    s//\1/
16486	    q
16487	  }
16488	  /^X\(\/\/\)[^/].*/{
16489	    s//\1/
16490	    q
16491	  }
16492	  /^X\(\/\/\)$/{
16493	    s//\1/
16494	    q
16495	  }
16496	  /^X\(\/\).*/{
16497	    s//\1/
16498	    q
16499	  }
16500	  s/.*/./; q'`
16501      test -d "$as_dir" && break
16502    done
16503    test -z "$as_dirs" || eval "mkdir $as_dirs"
16504  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16505echo "$as_me: error: cannot create directory $as_dir" >&2;}
16506   { (exit 1); exit 1; }; }; }
16507    # echo "creating $dirpart/$file"
16508    echo '# dummy' > "$dirpart/$file"
16509  done
16510done
16511 ;;
16512
16513  esac
16514done # for ac_tag
16515
16516
16517{ (exit 0); exit 0; }
16518_ACEOF
16519chmod +x $CONFIG_STATUS
16520ac_clean_files=$ac_clean_files_save
16521
16522
16523# configure is writing to config.log, and then calls config.status.
16524# config.status does its own redirection, appending to config.log.
16525# Unfortunately, on DOS this fails, as config.log is still kept open
16526# by configure, so config.status won't be able to write to it; its
16527# output is simply discarded.  So we exec the FD to /dev/null,
16528# effectively closing config.log, so it can be properly (re)opened and
16529# appended to by config.status.  When coming back to configure, we
16530# need to make the FD available again.
16531if test "$no_create" != yes; then
16532  ac_cs_success=:
16533  ac_config_status_args=
16534  test "$silent" = yes &&
16535    ac_config_status_args="$ac_config_status_args --quiet"
16536  exec 5>/dev/null
16537  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16538  exec 5>>config.log
16539  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16540  # would make configure fail if this is the last instruction.
16541  $ac_cs_success || { (exit 1); exit 1; }
16542fi
16543
16544