1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for Protocol Buffers 2.3.0.
4#
5# Report bugs to <protobuf@googlegroups.com>.
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$lt_ECHO in
559X*--fallback-echo)
560  # Remove one level of quotation (which was required for Make).
561  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
562  ;;
563esac
564
565ECHO=${lt_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 <<_LT_EOF
584$*
585_LT_EOF
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 "$lt_ECHO"; then
594  if test "X${echo_test_string+set}" != Xset; then
595    # find a string as large as possible, as long as the shell can cope with it
596    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
600      then
601        break
602      fi
603    done
604  fi
605
606  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608     test "X$echo_testing_string" = "X$echo_test_string"; then
609    :
610  else
611    # The Solaris, AIX, and Digital Unix default echo programs unquote
612    # backslashes.  This makes it impossible to quote backslashes using
613    #   echo "$something" | sed 's/\\/\\\\/g'
614    #
615    # So, first we look for a working echo in the user's PATH.
616
617    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618    for dir in $PATH /usr/ucb; do
619      IFS="$lt_save_ifs"
620      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623         test "X$echo_testing_string" = "X$echo_test_string"; then
624        ECHO="$dir/echo"
625        break
626      fi
627    done
628    IFS="$lt_save_ifs"
629
630    if test "X$ECHO" = Xecho; then
631      # We didn't find a better echo, so look for alternatives.
632      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634         test "X$echo_testing_string" = "X$echo_test_string"; then
635        # This shell has a builtin print -r that does the trick.
636        ECHO='print -r'
637      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638	   test "X$CONFIG_SHELL" != X/bin/ksh; then
639        # If we have ksh, try running configure again with it.
640        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641        export ORIGINAL_CONFIG_SHELL
642        CONFIG_SHELL=/bin/ksh
643        export CONFIG_SHELL
644        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645      else
646        # Try using printf.
647        ECHO='printf %s\n'
648        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650	   test "X$echo_testing_string" = "X$echo_test_string"; then
651	  # Cool, printf works
652	  :
653        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654	     test "X$echo_testing_string" = 'X\t' &&
655	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656	     test "X$echo_testing_string" = "X$echo_test_string"; then
657	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658	  export CONFIG_SHELL
659	  SHELL="$CONFIG_SHELL"
660	  export SHELL
661	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
662        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663	     test "X$echo_testing_string" = 'X\t' &&
664	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665	     test "X$echo_testing_string" = "X$echo_test_string"; then
666	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
667        else
668	  # maybe with a smaller string...
669	  prev=:
670
671	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
673	    then
674	      break
675	    fi
676	    prev="$cmd"
677	  done
678
679	  if test "$prev" != 'sed 50q "$0"'; then
680	    echo_test_string=`eval $prev`
681	    export echo_test_string
682	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683	  else
684	    # Oops.  We lost completely, so just stick with echo.
685	    ECHO=echo
686	  fi
687        fi
688      fi
689    fi
690  fi
691fi
692
693# Copy echo and quote the copy suitably for passing to libtool from
694# the Makefile, instead of quoting the original, which is used later.
695lt_ECHO=$ECHO
696if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698fi
699
700
701
702
703exec 7<&0 </dev/null 6>&1
704
705# Name of the host.
706# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707# so uname gets run too.
708ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
709
710#
711# Initializations.
712#
713ac_default_prefix=/usr/local
714ac_clean_files=
715ac_config_libobj_dir=.
716LIBOBJS=
717cross_compiling=no
718subdirs=
719MFLAGS=
720MAKEFLAGS=
721SHELL=${CONFIG_SHELL-/bin/sh}
722
723# Identity of this package.
724PACKAGE_NAME='Protocol Buffers'
725PACKAGE_TARNAME='protobuf'
726PACKAGE_VERSION='2.3.0'
727PACKAGE_STRING='Protocol Buffers 2.3.0'
728PACKAGE_BUGREPORT='protobuf@googlegroups.com'
729
730ac_unique_file="src/google/protobuf/message.cc"
731# Factoring default headers for most tests.
732ac_includes_default="\
733#include <stdio.h>
734#ifdef HAVE_SYS_TYPES_H
735# include <sys/types.h>
736#endif
737#ifdef HAVE_SYS_STAT_H
738# include <sys/stat.h>
739#endif
740#ifdef STDC_HEADERS
741# include <stdlib.h>
742# include <stddef.h>
743#else
744# ifdef HAVE_STDLIB_H
745#  include <stdlib.h>
746# endif
747#endif
748#ifdef HAVE_STRING_H
749# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
750#  include <memory.h>
751# endif
752# include <string.h>
753#endif
754#ifdef HAVE_STRINGS_H
755# include <strings.h>
756#endif
757#ifdef HAVE_INTTYPES_H
758# include <inttypes.h>
759#endif
760#ifdef HAVE_STDINT_H
761# include <stdint.h>
762#endif
763#ifdef HAVE_UNISTD_H
764# include <unistd.h>
765#endif"
766
767ac_subst_vars='SHELL
768PATH_SEPARATOR
769PACKAGE_NAME
770PACKAGE_TARNAME
771PACKAGE_VERSION
772PACKAGE_STRING
773PACKAGE_BUGREPORT
774exec_prefix
775prefix
776program_transform_name
777bindir
778sbindir
779libexecdir
780datarootdir
781datadir
782sysconfdir
783sharedstatedir
784localstatedir
785includedir
786oldincludedir
787docdir
788infodir
789htmldir
790dvidir
791pdfdir
792psdir
793libdir
794localedir
795mandir
796DEFS
797ECHO_C
798ECHO_N
799ECHO_T
800LIBS
801build_alias
802host_alias
803target_alias
804build
805build_cpu
806build_vendor
807build_os
808host
809host_cpu
810host_vendor
811host_os
812target
813target_cpu
814target_vendor
815target_os
816INSTALL_PROGRAM
817INSTALL_SCRIPT
818INSTALL_DATA
819am__isrc
820CYGPATH_W
821PACKAGE
822VERSION
823ACLOCAL
824AUTOCONF
825AUTOMAKE
826AUTOHEADER
827MAKEINFO
828install_sh
829STRIP
830INSTALL_STRIP_PROGRAM
831mkdir_p
832AWK
833SET_MAKE
834am__leading_dot
835AMTAR
836am__tar
837am__untar
838CC
839CFLAGS
840LDFLAGS
841CPPFLAGS
842ac_ct_CC
843EXEEXT
844OBJEXT
845DEPDIR
846am__include
847am__quote
848AMDEP_TRUE
849AMDEP_FALSE
850AMDEPBACKSLASH
851CCDEPMODE
852am__fastdepCC_TRUE
853am__fastdepCC_FALSE
854CXX
855CXXFLAGS
856ac_ct_CXX
857CXXDEPMODE
858am__fastdepCXX_TRUE
859am__fastdepCXX_FALSE
860CXXCPP
861GREP
862EGREP
863GCC_TRUE
864GCC_FALSE
865PROTOBUF_OPT_FLAG
866ISAINFO
867LIBTOOL
868SED
869FGREP
870LD
871DUMPBIN
872ac_ct_DUMPBIN
873NM
874LN_S
875AR
876RANLIB
877lt_ECHO
878DSYMUTIL
879NMEDIT
880LIPO
881OTOOL
882OTOOL64
883LIBOBJS
884POW_LIB
885HAVE_ZLIB_TRUE
886HAVE_ZLIB_FALSE
887PROTOC
888USE_EXTERNAL_PROTOC_TRUE
889USE_EXTERNAL_PROTOC_FALSE
890acx_pthread_config
891PTHREAD_CC
892PTHREAD_LIBS
893PTHREAD_CFLAGS
894subdirs
895LTLIBOBJS'
896ac_subst_files=''
897      ac_precious_vars='build_alias
898host_alias
899target_alias
900CC
901CFLAGS
902LDFLAGS
903LIBS
904CPPFLAGS
905CXX
906CXXFLAGS
907CCC
908CXXCPP'
909ac_subdirs_all='gtest'
910
911# Initialize some variables set by options.
912ac_init_help=
913ac_init_version=false
914# The variables have the same names as the options, with
915# dashes changed to underlines.
916cache_file=/dev/null
917exec_prefix=NONE
918no_create=
919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
927verbose=
928x_includes=NONE
929x_libraries=NONE
930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
936# (The list follows the same order as the GNU Coding Standards.)
937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
945includedir='${prefix}/include'
946oldincludedir='/usr/include'
947docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948infodir='${datarootdir}/info'
949htmldir='${docdir}'
950dvidir='${docdir}'
951pdfdir='${docdir}'
952psdir='${docdir}'
953libdir='${exec_prefix}/lib'
954localedir='${datarootdir}/locale'
955mandir='${datarootdir}/man'
956
957ac_prev=
958ac_dashdash=
959for ac_option
960do
961  # If the previous option needs an argument, assign it.
962  if test -n "$ac_prev"; then
963    eval $ac_prev=\$ac_option
964    ac_prev=
965    continue
966  fi
967
968  case $ac_option in
969  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970  *)	ac_optarg=yes ;;
971  esac
972
973  # Accept the important Cygnus configure options, so we can diagnose typos.
974
975  case $ac_dashdash$ac_option in
976  --)
977    ac_dashdash=yes ;;
978
979  -bindir | --bindir | --bindi | --bind | --bin | --bi)
980    ac_prev=bindir ;;
981  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982    bindir=$ac_optarg ;;
983
984  -build | --build | --buil | --bui | --bu)
985    ac_prev=build_alias ;;
986  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987    build_alias=$ac_optarg ;;
988
989  -cache-file | --cache-file | --cache-fil | --cache-fi \
990  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991    ac_prev=cache_file ;;
992  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994    cache_file=$ac_optarg ;;
995
996  --config-cache | -C)
997    cache_file=config.cache ;;
998
999  -datadir | --datadir | --datadi | --datad)
1000    ac_prev=datadir ;;
1001  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002    datadir=$ac_optarg ;;
1003
1004  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005  | --dataroo | --dataro | --datar)
1006    ac_prev=datarootdir ;;
1007  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009    datarootdir=$ac_optarg ;;
1010
1011  -disable-* | --disable-*)
1012    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013    # Reject names that are not valid shell variable names.
1014    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016   { (exit 1); exit 1; }; }
1017    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018    eval enable_$ac_feature=no ;;
1019
1020  -docdir | --docdir | --docdi | --doc | --do)
1021    ac_prev=docdir ;;
1022  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023    docdir=$ac_optarg ;;
1024
1025  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026    ac_prev=dvidir ;;
1027  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028    dvidir=$ac_optarg ;;
1029
1030  -enable-* | --enable-*)
1031    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032    # Reject names that are not valid shell variable names.
1033    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035   { (exit 1); exit 1; }; }
1036    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037    eval enable_$ac_feature=\$ac_optarg ;;
1038
1039  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041  | --exec | --exe | --ex)
1042    ac_prev=exec_prefix ;;
1043  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045  | --exec=* | --exe=* | --ex=*)
1046    exec_prefix=$ac_optarg ;;
1047
1048  -gas | --gas | --ga | --g)
1049    # Obsolete; use --with-gas.
1050    with_gas=yes ;;
1051
1052  -help | --help | --hel | --he | -h)
1053    ac_init_help=long ;;
1054  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055    ac_init_help=recursive ;;
1056  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057    ac_init_help=short ;;
1058
1059  -host | --host | --hos | --ho)
1060    ac_prev=host_alias ;;
1061  -host=* | --host=* | --hos=* | --ho=*)
1062    host_alias=$ac_optarg ;;
1063
1064  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065    ac_prev=htmldir ;;
1066  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067  | --ht=*)
1068    htmldir=$ac_optarg ;;
1069
1070  -includedir | --includedir | --includedi | --included | --include \
1071  | --includ | --inclu | --incl | --inc)
1072    ac_prev=includedir ;;
1073  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074  | --includ=* | --inclu=* | --incl=* | --inc=*)
1075    includedir=$ac_optarg ;;
1076
1077  -infodir | --infodir | --infodi | --infod | --info | --inf)
1078    ac_prev=infodir ;;
1079  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080    infodir=$ac_optarg ;;
1081
1082  -libdir | --libdir | --libdi | --libd)
1083    ac_prev=libdir ;;
1084  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085    libdir=$ac_optarg ;;
1086
1087  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088  | --libexe | --libex | --libe)
1089    ac_prev=libexecdir ;;
1090  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091  | --libexe=* | --libex=* | --libe=*)
1092    libexecdir=$ac_optarg ;;
1093
1094  -localedir | --localedir | --localedi | --localed | --locale)
1095    ac_prev=localedir ;;
1096  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097    localedir=$ac_optarg ;;
1098
1099  -localstatedir | --localstatedir | --localstatedi | --localstated \
1100  | --localstate | --localstat | --localsta | --localst | --locals)
1101    ac_prev=localstatedir ;;
1102  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104    localstatedir=$ac_optarg ;;
1105
1106  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107    ac_prev=mandir ;;
1108  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109    mandir=$ac_optarg ;;
1110
1111  -nfp | --nfp | --nf)
1112    # Obsolete; use --without-fp.
1113    with_fp=no ;;
1114
1115  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116  | --no-cr | --no-c | -n)
1117    no_create=yes ;;
1118
1119  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1121    no_recursion=yes ;;
1122
1123  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125  | --oldin | --oldi | --old | --ol | --o)
1126    ac_prev=oldincludedir ;;
1127  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130    oldincludedir=$ac_optarg ;;
1131
1132  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133    ac_prev=prefix ;;
1134  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135    prefix=$ac_optarg ;;
1136
1137  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138  | --program-pre | --program-pr | --program-p)
1139    ac_prev=program_prefix ;;
1140  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142    program_prefix=$ac_optarg ;;
1143
1144  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145  | --program-suf | --program-su | --program-s)
1146    ac_prev=program_suffix ;;
1147  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149    program_suffix=$ac_optarg ;;
1150
1151  -program-transform-name | --program-transform-name \
1152  | --program-transform-nam | --program-transform-na \
1153  | --program-transform-n | --program-transform- \
1154  | --program-transform | --program-transfor \
1155  | --program-transfo | --program-transf \
1156  | --program-trans | --program-tran \
1157  | --progr-tra | --program-tr | --program-t)
1158    ac_prev=program_transform_name ;;
1159  -program-transform-name=* | --program-transform-name=* \
1160  | --program-transform-nam=* | --program-transform-na=* \
1161  | --program-transform-n=* | --program-transform-=* \
1162  | --program-transform=* | --program-transfor=* \
1163  | --program-transfo=* | --program-transf=* \
1164  | --program-trans=* | --program-tran=* \
1165  | --progr-tra=* | --program-tr=* | --program-t=*)
1166    program_transform_name=$ac_optarg ;;
1167
1168  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169    ac_prev=pdfdir ;;
1170  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171    pdfdir=$ac_optarg ;;
1172
1173  -psdir | --psdir | --psdi | --psd | --ps)
1174    ac_prev=psdir ;;
1175  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1176    psdir=$ac_optarg ;;
1177
1178  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179  | -silent | --silent | --silen | --sile | --sil)
1180    silent=yes ;;
1181
1182  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183    ac_prev=sbindir ;;
1184  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185  | --sbi=* | --sb=*)
1186    sbindir=$ac_optarg ;;
1187
1188  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190  | --sharedst | --shareds | --shared | --share | --shar \
1191  | --sha | --sh)
1192    ac_prev=sharedstatedir ;;
1193  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196  | --sha=* | --sh=*)
1197    sharedstatedir=$ac_optarg ;;
1198
1199  -site | --site | --sit)
1200    ac_prev=site ;;
1201  -site=* | --site=* | --sit=*)
1202    site=$ac_optarg ;;
1203
1204  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205    ac_prev=srcdir ;;
1206  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207    srcdir=$ac_optarg ;;
1208
1209  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210  | --syscon | --sysco | --sysc | --sys | --sy)
1211    ac_prev=sysconfdir ;;
1212  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214    sysconfdir=$ac_optarg ;;
1215
1216  -target | --target | --targe | --targ | --tar | --ta | --t)
1217    ac_prev=target_alias ;;
1218  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219    target_alias=$ac_optarg ;;
1220
1221  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1222    verbose=yes ;;
1223
1224  -version | --version | --versio | --versi | --vers | -V)
1225    ac_init_version=: ;;
1226
1227  -with-* | --with-*)
1228    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1235
1236  -without-* | --without-*)
1237    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238    # Reject names that are not valid shell variable names.
1239    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240      { echo "$as_me: error: invalid package name: $ac_package" >&2
1241   { (exit 1); exit 1; }; }
1242    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243    eval with_$ac_package=no ;;
1244
1245  --x)
1246    # Obsolete; use --with-x.
1247    with_x=yes ;;
1248
1249  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250  | --x-incl | --x-inc | --x-in | --x-i)
1251    ac_prev=x_includes ;;
1252  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254    x_includes=$ac_optarg ;;
1255
1256  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258    ac_prev=x_libraries ;;
1259  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261    x_libraries=$ac_optarg ;;
1262
1263  -*) { echo "$as_me: error: unrecognized option: $ac_option
1264Try \`$0 --help' for more information." >&2
1265   { (exit 1); exit 1; }; }
1266    ;;
1267
1268  *=*)
1269    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270    # Reject names that are not valid shell variable names.
1271    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273   { (exit 1); exit 1; }; }
1274    eval $ac_envvar=\$ac_optarg
1275    export $ac_envvar ;;
1276
1277  *)
1278    # FIXME: should be removed in autoconf 3.0.
1279    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1283    ;;
1284
1285  esac
1286done
1287
1288if test -n "$ac_prev"; then
1289  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290  { echo "$as_me: error: missing argument to $ac_option" >&2
1291   { (exit 1); exit 1; }; }
1292fi
1293
1294# Be sure to have absolute directory names.
1295for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296		datadir sysconfdir sharedstatedir localstatedir includedir \
1297		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298		libdir localedir mandir
1299do
1300  eval ac_val=\$$ac_var
1301  case $ac_val in
1302    [\\/$]* | ?:[\\/]* )  continue;;
1303    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304  esac
1305  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306   { (exit 1); exit 1; }; }
1307done
1308
1309# There might be people who depend on the old broken behavior: `$host'
1310# used to hold the argument of --host etc.
1311# FIXME: To remove some day.
1312build=$build_alias
1313host=$host_alias
1314target=$target_alias
1315
1316# FIXME: To remove some day.
1317if test "x$host_alias" != x; then
1318  if test "x$build_alias" = x; then
1319    cross_compiling=maybe
1320    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321    If a cross compiler is detected then cross compile mode will be used." >&2
1322  elif test "x$build_alias" != "x$host_alias"; then
1323    cross_compiling=yes
1324  fi
1325fi
1326
1327ac_tool_prefix=
1328test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329
1330test "$silent" = yes && exec 6>/dev/null
1331
1332
1333ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334ac_ls_di=`ls -di .` &&
1335ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336  { echo "$as_me: error: Working directory cannot be determined" >&2
1337   { (exit 1); exit 1; }; }
1338test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339  { echo "$as_me: error: pwd does not report name of working directory" >&2
1340   { (exit 1); exit 1; }; }
1341
1342
1343# Find the source files, if location was not specified.
1344if test -z "$srcdir"; then
1345  ac_srcdir_defaulted=yes
1346  # Try the directory containing this script, then the parent directory.
1347  ac_confdir=`$as_dirname -- "$0" ||
1348$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349	 X"$0" : 'X\(//\)[^/]' \| \
1350	 X"$0" : 'X\(//\)$' \| \
1351	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352echo X"$0" |
1353    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1354	    s//\1/
1355	    q
1356	  }
1357	  /^X\(\/\/\)[^/].*/{
1358	    s//\1/
1359	    q
1360	  }
1361	  /^X\(\/\/\)$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\).*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  s/.*/./; q'`
1370  srcdir=$ac_confdir
1371  if test ! -r "$srcdir/$ac_unique_file"; then
1372    srcdir=..
1373  fi
1374else
1375  ac_srcdir_defaulted=no
1376fi
1377if test ! -r "$srcdir/$ac_unique_file"; then
1378  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380   { (exit 1); exit 1; }; }
1381fi
1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383ac_abs_confdir=`(
1384	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385   { (exit 1); exit 1; }; }
1386	pwd)`
1387# When building in place, set srcdir=.
1388if test "$ac_abs_confdir" = "$ac_pwd"; then
1389  srcdir=.
1390fi
1391# Remove unnecessary trailing slashes from srcdir.
1392# Double slashes in file names in object file debugging info
1393# mess up M-x gdb in Emacs.
1394case $srcdir in
1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396esac
1397for ac_var in $ac_precious_vars; do
1398  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_env_${ac_var}_value=\$${ac_var}
1400  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402done
1403
1404#
1405# Report the --help message.
1406#
1407if test "$ac_init_help" = "long"; then
1408  # Omit some internal or obsolete options to make the list less imposing.
1409  # This message is too long to be a string in the A/UX 3.1 sh.
1410  cat <<_ACEOF
1411\`configure' configures Protocol Buffers 2.3.0 to adapt to many kinds of systems.
1412
1413Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416VAR=VALUE.  See below for descriptions of some of the useful variables.
1417
1418Defaults for the options are specified in brackets.
1419
1420Configuration:
1421  -h, --help              display this help and exit
1422      --help=short        display options specific to this package
1423      --help=recursive    display the short help of all the included packages
1424  -V, --version           display version information and exit
1425  -q, --quiet, --silent   do not print \`checking...' messages
1426      --cache-file=FILE   cache test results in FILE [disabled]
1427  -C, --config-cache      alias for \`--cache-file=config.cache'
1428  -n, --no-create         do not create output files
1429      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1430
1431Installation directories:
1432  --prefix=PREFIX         install architecture-independent files in PREFIX
1433			  [$ac_default_prefix]
1434  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1435			  [PREFIX]
1436
1437By default, \`make install' will install all the files in
1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1439an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440for instance \`--prefix=\$HOME'.
1441
1442For better control, use the options below.
1443
1444Fine tuning of the installation directories:
1445  --bindir=DIR           user executables [EPREFIX/bin]
1446  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1447  --libexecdir=DIR       program executables [EPREFIX/libexec]
1448  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1449  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1450  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1451  --libdir=DIR           object code libraries [EPREFIX/lib]
1452  --includedir=DIR       C header files [PREFIX/include]
1453  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1454  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1455  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1456  --infodir=DIR          info documentation [DATAROOTDIR/info]
1457  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1458  --mandir=DIR           man documentation [DATAROOTDIR/man]
1459  --docdir=DIR           documentation root [DATAROOTDIR/doc/protobuf]
1460  --htmldir=DIR          html documentation [DOCDIR]
1461  --dvidir=DIR           dvi documentation [DOCDIR]
1462  --pdfdir=DIR           pdf documentation [DOCDIR]
1463  --psdir=DIR            ps documentation [DOCDIR]
1464_ACEOF
1465
1466  cat <<\_ACEOF
1467
1468Program names:
1469  --program-prefix=PREFIX            prepend PREFIX to installed program names
1470  --program-suffix=SUFFIX            append SUFFIX to installed program names
1471  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1472
1473System types:
1474  --build=BUILD     configure for building on BUILD [guessed]
1475  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476  --target=TARGET   configure for building compilers for TARGET [HOST]
1477_ACEOF
1478fi
1479
1480if test -n "$ac_init_help"; then
1481  case $ac_init_help in
1482     short | recursive ) echo "Configuration of Protocol Buffers 2.3.0:";;
1483   esac
1484  cat <<\_ACEOF
1485
1486Optional Features:
1487  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1488  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1489  --disable-dependency-tracking  speeds up one-time build
1490  --enable-dependency-tracking   do not reject slow dependency extractors
1491  --disable-64bit-solaris Build 64 bit binary on Solaris [default=on]
1492  --enable-shared[=PKGS]  build shared libraries [default=yes]
1493  --enable-static[=PKGS]  build static libraries [default=yes]
1494  --enable-fast-install[=PKGS]
1495                          optimize for fast installation [default=yes]
1496  --disable-libtool-lock  avoid locking (might break parallel builds)
1497
1498Optional Packages:
1499  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1500  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1501  --with-zlib             include classes for streaming compressed data in and
1502                          out [default=check]
1503  --with-protoc=COMMAND   use the given protoc command instead of building a
1504                          new one when building tests (useful for
1505                          cross-compiling)
1506  --with-pic              try to use only PIC/non-PIC objects [default=use
1507                          both]
1508  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1509
1510Some influential environment variables:
1511  CC          C compiler command
1512  CFLAGS      C compiler flags
1513  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1514              nonstandard directory <lib dir>
1515  LIBS        libraries to pass to the linker, e.g. -l<library>
1516  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517              you have headers in a nonstandard directory <include dir>
1518  CXX         C++ compiler command
1519  CXXFLAGS    C++ compiler flags
1520  CXXCPP      C++ preprocessor
1521
1522Use these variables to override the choices made by `configure' or to help
1523it to find libraries and programs with nonstandard names/locations.
1524
1525Report bugs to <protobuf@googlegroups.com>.
1526_ACEOF
1527ac_status=$?
1528fi
1529
1530if test "$ac_init_help" = "recursive"; then
1531  # If there are subdirs, report their specific --help.
1532  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533    test -d "$ac_dir" || continue
1534    ac_builddir=.
1535
1536case "$ac_dir" in
1537.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538*)
1539  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540  # A ".." for each directory in $ac_dir_suffix.
1541  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542  case $ac_top_builddir_sub in
1543  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545  esac ;;
1546esac
1547ac_abs_top_builddir=$ac_pwd
1548ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549# for backward compatibility:
1550ac_top_builddir=$ac_top_build_prefix
1551
1552case $srcdir in
1553  .)  # We are building in place.
1554    ac_srcdir=.
1555    ac_top_srcdir=$ac_top_builddir_sub
1556    ac_abs_top_srcdir=$ac_pwd ;;
1557  [\\/]* | ?:[\\/]* )  # Absolute name.
1558    ac_srcdir=$srcdir$ac_dir_suffix;
1559    ac_top_srcdir=$srcdir
1560    ac_abs_top_srcdir=$srcdir ;;
1561  *) # Relative name.
1562    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563    ac_top_srcdir=$ac_top_build_prefix$srcdir
1564    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565esac
1566ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568    cd "$ac_dir" || { ac_status=$?; continue; }
1569    # Check for guested configure.
1570    if test -f "$ac_srcdir/configure.gnu"; then
1571      echo &&
1572      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573    elif test -f "$ac_srcdir/configure"; then
1574      echo &&
1575      $SHELL "$ac_srcdir/configure" --help=recursive
1576    else
1577      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578    fi || ac_status=$?
1579    cd "$ac_pwd" || { ac_status=$?; break; }
1580  done
1581fi
1582
1583test -n "$ac_init_help" && exit $ac_status
1584if $ac_init_version; then
1585  cat <<\_ACEOF
1586Protocol Buffers configure 2.3.0
1587generated by GNU Autoconf 2.61
1588
1589Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15902002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591This configure script is free software; the Free Software Foundation
1592gives unlimited permission to copy, distribute and modify it.
1593_ACEOF
1594  exit
1595fi
1596cat >config.log <<_ACEOF
1597This file contains any messages produced by compilers while
1598running configure, to aid debugging if configure makes a mistake.
1599
1600It was created by Protocol Buffers $as_me 2.3.0, which was
1601generated by GNU Autoconf 2.61.  Invocation command line was
1602
1603  $ $0 $@
1604
1605_ACEOF
1606exec 5>>config.log
1607{
1608cat <<_ASUNAME
1609## --------- ##
1610## Platform. ##
1611## --------- ##
1612
1613hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618
1619/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1621
1622/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1623/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1624/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1626/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1627/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1628/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1629
1630_ASUNAME
1631
1632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633for as_dir in $PATH
1634do
1635  IFS=$as_save_IFS
1636  test -z "$as_dir" && as_dir=.
1637  echo "PATH: $as_dir"
1638done
1639IFS=$as_save_IFS
1640
1641} >&5
1642
1643cat >&5 <<_ACEOF
1644
1645
1646## ----------- ##
1647## Core tests. ##
1648## ----------- ##
1649
1650_ACEOF
1651
1652
1653# Keep a trace of the command line.
1654# Strip out --no-create and --no-recursion so they do not pile up.
1655# Strip out --silent because we don't want to record it for future runs.
1656# Also quote any args containing shell meta-characters.
1657# Make two passes to allow for proper duplicate-argument suppression.
1658ac_configure_args=
1659ac_configure_args0=
1660ac_configure_args1=
1661ac_must_keep_next=false
1662for ac_pass in 1 2
1663do
1664  for ac_arg
1665  do
1666    case $ac_arg in
1667    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669    | -silent | --silent | --silen | --sile | --sil)
1670      continue ;;
1671    *\'*)
1672      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1673    esac
1674    case $ac_pass in
1675    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676    2)
1677      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678      if test $ac_must_keep_next = true; then
1679	ac_must_keep_next=false # Got value, back to normal.
1680      else
1681	case $ac_arg in
1682	  *=* | --config-cache | -C | -disable-* | --disable-* \
1683	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685	  | -with-* | --with-* | -without-* | --without-* | --x)
1686	    case "$ac_configure_args0 " in
1687	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688	    esac
1689	    ;;
1690	  -* ) ac_must_keep_next=true ;;
1691	esac
1692      fi
1693      ac_configure_args="$ac_configure_args '$ac_arg'"
1694      ;;
1695    esac
1696  done
1697done
1698$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700
1701# When interrupted or exit'd, cleanup temporary files, and complete
1702# config.log.  We remove comments because anyway the quotes in there
1703# would cause problems or look ugly.
1704# WARNING: Use '\'' to represent an apostrophe within the trap.
1705# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706trap 'exit_status=$?
1707  # Save into config.log some information that might help in debugging.
1708  {
1709    echo
1710
1711    cat <<\_ASBOX
1712## ---------------- ##
1713## Cache variables. ##
1714## ---------------- ##
1715_ASBOX
1716    echo
1717    # The following way of writing the cache mishandles newlines in values,
1718(
1719  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720    eval ac_val=\$$ac_var
1721    case $ac_val in #(
1722    *${as_nl}*)
1723      case $ac_var in #(
1724      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1726      esac
1727      case $ac_var in #(
1728      _ | IFS | as_nl) ;; #(
1729      *) $as_unset $ac_var ;;
1730      esac ;;
1731    esac
1732  done
1733  (set) 2>&1 |
1734    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735    *${as_nl}ac_space=\ *)
1736      sed -n \
1737	"s/'\''/'\''\\\\'\'''\''/g;
1738	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739      ;; #(
1740    *)
1741      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1742      ;;
1743    esac |
1744    sort
1745)
1746    echo
1747
1748    cat <<\_ASBOX
1749## ----------------- ##
1750## Output variables. ##
1751## ----------------- ##
1752_ASBOX
1753    echo
1754    for ac_var in $ac_subst_vars
1755    do
1756      eval ac_val=\$$ac_var
1757      case $ac_val in
1758      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759      esac
1760      echo "$ac_var='\''$ac_val'\''"
1761    done | sort
1762    echo
1763
1764    if test -n "$ac_subst_files"; then
1765      cat <<\_ASBOX
1766## ------------------- ##
1767## File substitutions. ##
1768## ------------------- ##
1769_ASBOX
1770      echo
1771      for ac_var in $ac_subst_files
1772      do
1773	eval ac_val=\$$ac_var
1774	case $ac_val in
1775	*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776	esac
1777	echo "$ac_var='\''$ac_val'\''"
1778      done | sort
1779      echo
1780    fi
1781
1782    if test -s confdefs.h; then
1783      cat <<\_ASBOX
1784## ----------- ##
1785## confdefs.h. ##
1786## ----------- ##
1787_ASBOX
1788      echo
1789      cat confdefs.h
1790      echo
1791    fi
1792    test "$ac_signal" != 0 &&
1793      echo "$as_me: caught signal $ac_signal"
1794    echo "$as_me: exit $exit_status"
1795  } >&5
1796  rm -f core *.core core.conftest.* &&
1797    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1798    exit $exit_status
1799' 0
1800for ac_signal in 1 2 13 15; do
1801  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802done
1803ac_signal=0
1804
1805# confdefs.h avoids OS command line length limits that DEFS can exceed.
1806rm -f -r conftest* confdefs.h
1807
1808# Predefined preprocessor variables.
1809
1810cat >>confdefs.h <<_ACEOF
1811#define PACKAGE_NAME "$PACKAGE_NAME"
1812_ACEOF
1813
1814
1815cat >>confdefs.h <<_ACEOF
1816#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817_ACEOF
1818
1819
1820cat >>confdefs.h <<_ACEOF
1821#define PACKAGE_VERSION "$PACKAGE_VERSION"
1822_ACEOF
1823
1824
1825cat >>confdefs.h <<_ACEOF
1826#define PACKAGE_STRING "$PACKAGE_STRING"
1827_ACEOF
1828
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832_ACEOF
1833
1834
1835# Let the site file select an alternate cache file if it wants to.
1836# Prefer explicitly selected file to automatically selected ones.
1837if test -n "$CONFIG_SITE"; then
1838  set x "$CONFIG_SITE"
1839elif test "x$prefix" != xNONE; then
1840  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841else
1842  set x "$ac_default_prefix/share/config.site" \
1843	"$ac_default_prefix/etc/config.site"
1844fi
1845shift
1846for ac_site_file
1847do
1848  if test -r "$ac_site_file"; then
1849    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850echo "$as_me: loading site script $ac_site_file" >&6;}
1851    sed 's/^/| /' "$ac_site_file" >&5
1852    . "$ac_site_file"
1853  fi
1854done
1855
1856if test -r "$cache_file"; then
1857  # Some versions of bash will fail to source /dev/null (special
1858  # files actually), so we avoid doing that.
1859  if test -f "$cache_file"; then
1860    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861echo "$as_me: loading cache $cache_file" >&6;}
1862    case $cache_file in
1863      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864      *)                      . "./$cache_file";;
1865    esac
1866  fi
1867else
1868  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869echo "$as_me: creating cache $cache_file" >&6;}
1870  >$cache_file
1871fi
1872
1873# Check that the precious variables saved in the cache have kept the same
1874# value.
1875ac_cache_corrupted=false
1876for ac_var in $ac_precious_vars; do
1877  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878  eval ac_new_set=\$ac_env_${ac_var}_set
1879  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880  eval ac_new_val=\$ac_env_${ac_var}_value
1881  case $ac_old_set,$ac_new_set in
1882    set,)
1883      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885      ac_cache_corrupted=: ;;
1886    ,set)
1887      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889      ac_cache_corrupted=: ;;
1890    ,);;
1891    *)
1892      if test "x$ac_old_val" != "x$ac_new_val"; then
1893	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1896echo "$as_me:   former value:  $ac_old_val" >&2;}
1897	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1898echo "$as_me:   current value: $ac_new_val" >&2;}
1899	ac_cache_corrupted=:
1900      fi;;
1901  esac
1902  # Pass precious variables to config.status.
1903  if test "$ac_new_set" = set; then
1904    case $ac_new_val in
1905    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906    *) ac_arg=$ac_var=$ac_new_val ;;
1907    esac
1908    case " $ac_configure_args " in
1909      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1910      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911    esac
1912  fi
1913done
1914if $ac_cache_corrupted; then
1915  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919   { (exit 1); exit 1; }; }
1920fi
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
1954
1955
1956ac_config_headers="$ac_config_headers config.h"
1957
1958
1959
1960# autoconf's default CXXFLAGS are usually "-g -O2".  These aren't necessarily
1961# the best choice for libprotobuf.
1962if test "x${ac_cv_env_CFLAGS_set}" = "x"; then
1963  CFLAGS=""
1964fi
1965
1966if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then
1967  CXXFLAGS=""
1968fi
1969
1970
1971ac_aux_dir=
1972for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1973  if test -f "$ac_dir/install-sh"; then
1974    ac_aux_dir=$ac_dir
1975    ac_install_sh="$ac_aux_dir/install-sh -c"
1976    break
1977  elif test -f "$ac_dir/install.sh"; then
1978    ac_aux_dir=$ac_dir
1979    ac_install_sh="$ac_aux_dir/install.sh -c"
1980    break
1981  elif test -f "$ac_dir/shtool"; then
1982    ac_aux_dir=$ac_dir
1983    ac_install_sh="$ac_aux_dir/shtool install -c"
1984    break
1985  fi
1986done
1987if test -z "$ac_aux_dir"; then
1988  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1989echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1990   { (exit 1); exit 1; }; }
1991fi
1992
1993# These three variables are undocumented and unsupported,
1994# and are intended to be withdrawn in a future Autoconf release.
1995# They can cause serious problems if a builder's source tree is in a directory
1996# whose full name contains unusual characters.
1997ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1998ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1999ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2000
2001
2002# Make sure we can run config.sub.
2003$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2004  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2005echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2006   { (exit 1); exit 1; }; }
2007
2008{ echo "$as_me:$LINENO: checking build system type" >&5
2009echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2010if test "${ac_cv_build+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  ac_build_alias=$build_alias
2014test "x$ac_build_alias" = x &&
2015  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2016test "x$ac_build_alias" = x &&
2017  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2018echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2019   { (exit 1); exit 1; }; }
2020ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2021  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2022echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2023   { (exit 1); exit 1; }; }
2024
2025fi
2026{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2027echo "${ECHO_T}$ac_cv_build" >&6; }
2028case $ac_cv_build in
2029*-*-*) ;;
2030*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2031echo "$as_me: error: invalid value of canonical build" >&2;}
2032   { (exit 1); exit 1; }; };;
2033esac
2034build=$ac_cv_build
2035ac_save_IFS=$IFS; IFS='-'
2036set x $ac_cv_build
2037shift
2038build_cpu=$1
2039build_vendor=$2
2040shift; shift
2041# Remember, the first character of IFS is used to create $*,
2042# except with old shells:
2043build_os=$*
2044IFS=$ac_save_IFS
2045case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2046
2047
2048{ echo "$as_me:$LINENO: checking host system type" >&5
2049echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2050if test "${ac_cv_host+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test "x$host_alias" = x; then
2054  ac_cv_host=$ac_cv_build
2055else
2056  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2057    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2058echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2059   { (exit 1); exit 1; }; }
2060fi
2061
2062fi
2063{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2064echo "${ECHO_T}$ac_cv_host" >&6; }
2065case $ac_cv_host in
2066*-*-*) ;;
2067*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2068echo "$as_me: error: invalid value of canonical host" >&2;}
2069   { (exit 1); exit 1; }; };;
2070esac
2071host=$ac_cv_host
2072ac_save_IFS=$IFS; IFS='-'
2073set x $ac_cv_host
2074shift
2075host_cpu=$1
2076host_vendor=$2
2077shift; shift
2078# Remember, the first character of IFS is used to create $*,
2079# except with old shells:
2080host_os=$*
2081IFS=$ac_save_IFS
2082case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2083
2084
2085{ echo "$as_me:$LINENO: checking target system type" >&5
2086echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2087if test "${ac_cv_target+set}" = set; then
2088  echo $ECHO_N "(cached) $ECHO_C" >&6
2089else
2090  if test "x$target_alias" = x; then
2091  ac_cv_target=$ac_cv_host
2092else
2093  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2094    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2095echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2096   { (exit 1); exit 1; }; }
2097fi
2098
2099fi
2100{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2101echo "${ECHO_T}$ac_cv_target" >&6; }
2102case $ac_cv_target in
2103*-*-*) ;;
2104*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2105echo "$as_me: error: invalid value of canonical target" >&2;}
2106   { (exit 1); exit 1; }; };;
2107esac
2108target=$ac_cv_target
2109ac_save_IFS=$IFS; IFS='-'
2110set x $ac_cv_target
2111shift
2112target_cpu=$1
2113target_vendor=$2
2114shift; shift
2115# Remember, the first character of IFS is used to create $*,
2116# except with old shells:
2117target_os=$*
2118IFS=$ac_save_IFS
2119case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2120
2121
2122# The aliases save the names the user supplied, while $host etc.
2123# will get canonicalized.
2124test -n "$target_alias" &&
2125  test "$program_prefix$program_suffix$program_transform_name" = \
2126    NONENONEs,x,x, &&
2127  program_prefix=${target_alias}-
2128
2129am__api_version='1.10'
2130
2131# Find a good install program.  We prefer a C program (faster),
2132# so one script is as good as another.  But avoid the broken or
2133# incompatible versions:
2134# SysV /etc/install, /usr/sbin/install
2135# SunOS /usr/etc/install
2136# IRIX /sbin/install
2137# AIX /bin/install
2138# AmigaOS /C/install, which installs bootblocks on floppy discs
2139# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2140# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2141# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2142# OS/2's system install, which has a completely different semantic
2143# ./install, which can be erroneously created by make from ./install.sh.
2144{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2145echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2146if test -z "$INSTALL"; then
2147if test "${ac_cv_path_install+set}" = set; then
2148  echo $ECHO_N "(cached) $ECHO_C" >&6
2149else
2150  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151for as_dir in $PATH
2152do
2153  IFS=$as_save_IFS
2154  test -z "$as_dir" && as_dir=.
2155  # Account for people who put trailing slashes in PATH elements.
2156case $as_dir/ in
2157  ./ | .// | /cC/* | \
2158  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2159  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2160  /usr/ucb/* ) ;;
2161  *)
2162    # OSF1 and SCO ODT 3.0 have their own names for install.
2163    # Don't use installbsd from OSF since it installs stuff as root
2164    # by default.
2165    for ac_prog in ginstall scoinst install; do
2166      for ac_exec_ext in '' $ac_executable_extensions; do
2167	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2168	  if test $ac_prog = install &&
2169	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170	    # AIX install.  It has an incompatible calling convention.
2171	    :
2172	  elif test $ac_prog = install &&
2173	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174	    # program-specific install script used by HP pwplus--don't use.
2175	    :
2176	  else
2177	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2178	    break 3
2179	  fi
2180	fi
2181      done
2182    done
2183    ;;
2184esac
2185done
2186IFS=$as_save_IFS
2187
2188
2189fi
2190  if test "${ac_cv_path_install+set}" = set; then
2191    INSTALL=$ac_cv_path_install
2192  else
2193    # As a last resort, use the slow shell script.  Don't cache a
2194    # value for INSTALL within a source directory, because that will
2195    # break other packages using the cache if that directory is
2196    # removed, or if the value is a relative name.
2197    INSTALL=$ac_install_sh
2198  fi
2199fi
2200{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2201echo "${ECHO_T}$INSTALL" >&6; }
2202
2203# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2204# It thinks the first close brace ends the variable substitution.
2205test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2206
2207test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2208
2209test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2210
2211{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2212echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2213# Just in case
2214sleep 1
2215echo timestamp > conftest.file
2216# Do `set' in a subshell so we don't clobber the current shell's
2217# arguments.  Must try -L first in case configure is actually a
2218# symlink; some systems play weird games with the mod time of symlinks
2219# (eg FreeBSD returns the mod time of the symlink's containing
2220# directory).
2221if (
2222   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2223   if test "$*" = "X"; then
2224      # -L didn't work.
2225      set X `ls -t $srcdir/configure conftest.file`
2226   fi
2227   rm -f conftest.file
2228   if test "$*" != "X $srcdir/configure conftest.file" \
2229      && test "$*" != "X conftest.file $srcdir/configure"; then
2230
2231      # If neither matched, then we have a broken ls.  This can happen
2232      # if, for instance, CONFIG_SHELL is bash and it inherits a
2233      # broken ls alias from the environment.  This has actually
2234      # happened.  Such a system could not be considered "sane".
2235      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2236alias in your environment" >&5
2237echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2238alias in your environment" >&2;}
2239   { (exit 1); exit 1; }; }
2240   fi
2241
2242   test "$2" = conftest.file
2243   )
2244then
2245   # Ok.
2246   :
2247else
2248   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2249Check your system clock" >&5
2250echo "$as_me: error: newly created file is older than distributed files!
2251Check your system clock" >&2;}
2252   { (exit 1); exit 1; }; }
2253fi
2254{ echo "$as_me:$LINENO: result: yes" >&5
2255echo "${ECHO_T}yes" >&6; }
2256test "$program_prefix" != NONE &&
2257  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2258# Use a double $ so make ignores it.
2259test "$program_suffix" != NONE &&
2260  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2261# Double any \ or $.  echo might interpret backslashes.
2262# By default was `s,x,x', remove it if useless.
2263cat <<\_ACEOF >conftest.sed
2264s/[\\$]/&&/g;s/;s,x,x,$//
2265_ACEOF
2266program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2267rm -f conftest.sed
2268
2269# expand $ac_aux_dir to an absolute path
2270am_aux_dir=`cd $ac_aux_dir && pwd`
2271
2272test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2273# Use eval to expand $SHELL
2274if eval "$MISSING --run true"; then
2275  am_missing_run="$MISSING --run "
2276else
2277  am_missing_run=
2278  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2279echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2280fi
2281
2282{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2283echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2284if test -z "$MKDIR_P"; then
2285  if test "${ac_cv_path_mkdir+set}" = set; then
2286  echo $ECHO_N "(cached) $ECHO_C" >&6
2287else
2288  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2290do
2291  IFS=$as_save_IFS
2292  test -z "$as_dir" && as_dir=.
2293  for ac_prog in mkdir gmkdir; do
2294	 for ac_exec_ext in '' $ac_executable_extensions; do
2295	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2296	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2297	     'mkdir (GNU coreutils) '* | \
2298	     'mkdir (coreutils) '* | \
2299	     'mkdir (fileutils) '4.1*)
2300	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2301	       break 3;;
2302	   esac
2303	 done
2304       done
2305done
2306IFS=$as_save_IFS
2307
2308fi
2309
2310  if test "${ac_cv_path_mkdir+set}" = set; then
2311    MKDIR_P="$ac_cv_path_mkdir -p"
2312  else
2313    # As a last resort, use the slow shell script.  Don't cache a
2314    # value for MKDIR_P within a source directory, because that will
2315    # break other packages using the cache if that directory is
2316    # removed, or if the value is a relative name.
2317    test -d ./--version && rmdir ./--version
2318    MKDIR_P="$ac_install_sh -d"
2319  fi
2320fi
2321{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2322echo "${ECHO_T}$MKDIR_P" >&6; }
2323
2324mkdir_p="$MKDIR_P"
2325case $mkdir_p in
2326  [\\/$]* | ?:[\\/]*) ;;
2327  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2328esac
2329
2330for ac_prog in gawk mawk nawk awk
2331do
2332  # Extract the first word of "$ac_prog", so it can be a program name with args.
2333set dummy $ac_prog; ac_word=$2
2334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336if test "${ac_cv_prog_AWK+set}" = set; then
2337  echo $ECHO_N "(cached) $ECHO_C" >&6
2338else
2339  if test -n "$AWK"; then
2340  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2341else
2342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343for as_dir in $PATH
2344do
2345  IFS=$as_save_IFS
2346  test -z "$as_dir" && as_dir=.
2347  for ac_exec_ext in '' $ac_executable_extensions; do
2348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349    ac_cv_prog_AWK="$ac_prog"
2350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351    break 2
2352  fi
2353done
2354done
2355IFS=$as_save_IFS
2356
2357fi
2358fi
2359AWK=$ac_cv_prog_AWK
2360if test -n "$AWK"; then
2361  { echo "$as_me:$LINENO: result: $AWK" >&5
2362echo "${ECHO_T}$AWK" >&6; }
2363else
2364  { echo "$as_me:$LINENO: result: no" >&5
2365echo "${ECHO_T}no" >&6; }
2366fi
2367
2368
2369  test -n "$AWK" && break
2370done
2371
2372{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2373echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2374set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2375if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2376  echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378  cat >conftest.make <<\_ACEOF
2379SHELL = /bin/sh
2380all:
2381	@echo '@@@%%%=$(MAKE)=@@@%%%'
2382_ACEOF
2383# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2384case `${MAKE-make} -f conftest.make 2>/dev/null` in
2385  *@@@%%%=?*=@@@%%%*)
2386    eval ac_cv_prog_make_${ac_make}_set=yes;;
2387  *)
2388    eval ac_cv_prog_make_${ac_make}_set=no;;
2389esac
2390rm -f conftest.make
2391fi
2392if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2393  { echo "$as_me:$LINENO: result: yes" >&5
2394echo "${ECHO_T}yes" >&6; }
2395  SET_MAKE=
2396else
2397  { echo "$as_me:$LINENO: result: no" >&5
2398echo "${ECHO_T}no" >&6; }
2399  SET_MAKE="MAKE=${MAKE-make}"
2400fi
2401
2402rm -rf .tst 2>/dev/null
2403mkdir .tst 2>/dev/null
2404if test -d .tst; then
2405  am__leading_dot=.
2406else
2407  am__leading_dot=_
2408fi
2409rmdir .tst 2>/dev/null
2410
2411if test "`cd $srcdir && pwd`" != "`pwd`"; then
2412  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2413  # is not polluted with repeated "-I."
2414  am__isrc=' -I$(srcdir)'
2415  # test to see if srcdir already configured
2416  if test -f $srcdir/config.status; then
2417    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2418echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2419   { (exit 1); exit 1; }; }
2420  fi
2421fi
2422
2423# test whether we have cygpath
2424if test -z "$CYGPATH_W"; then
2425  if (cygpath --version) >/dev/null 2>/dev/null; then
2426    CYGPATH_W='cygpath -w'
2427  else
2428    CYGPATH_W=echo
2429  fi
2430fi
2431
2432
2433# Define the identity of the package.
2434 PACKAGE='protobuf'
2435 VERSION='2.3.0'
2436
2437
2438cat >>confdefs.h <<_ACEOF
2439#define PACKAGE "$PACKAGE"
2440_ACEOF
2441
2442
2443cat >>confdefs.h <<_ACEOF
2444#define VERSION "$VERSION"
2445_ACEOF
2446
2447# Some tools Automake needs.
2448
2449ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2450
2451
2452AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2453
2454
2455AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2456
2457
2458AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2459
2460
2461MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2462
2463install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2464
2465# Installed binaries are usually stripped using `strip' when the user
2466# run `make install-strip'.  However `strip' might not be the right
2467# tool to use in cross-compilation environments, therefore Automake
2468# will honor the `STRIP' environment variable to overrule this program.
2469if test "$cross_compiling" != no; then
2470  if test -n "$ac_tool_prefix"; then
2471  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2472set dummy ${ac_tool_prefix}strip; ac_word=$2
2473{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2475if test "${ac_cv_prog_STRIP+set}" = set; then
2476  echo $ECHO_N "(cached) $ECHO_C" >&6
2477else
2478  if test -n "$STRIP"; then
2479  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2480else
2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482for as_dir in $PATH
2483do
2484  IFS=$as_save_IFS
2485  test -z "$as_dir" && as_dir=.
2486  for ac_exec_ext in '' $ac_executable_extensions; do
2487  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2488    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2490    break 2
2491  fi
2492done
2493done
2494IFS=$as_save_IFS
2495
2496fi
2497fi
2498STRIP=$ac_cv_prog_STRIP
2499if test -n "$STRIP"; then
2500  { echo "$as_me:$LINENO: result: $STRIP" >&5
2501echo "${ECHO_T}$STRIP" >&6; }
2502else
2503  { echo "$as_me:$LINENO: result: no" >&5
2504echo "${ECHO_T}no" >&6; }
2505fi
2506
2507
2508fi
2509if test -z "$ac_cv_prog_STRIP"; then
2510  ac_ct_STRIP=$STRIP
2511  # Extract the first word of "strip", so it can be a program name with args.
2512set dummy strip; ac_word=$2
2513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2515if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2516  echo $ECHO_N "(cached) $ECHO_C" >&6
2517else
2518  if test -n "$ac_ct_STRIP"; then
2519  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2520else
2521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524  IFS=$as_save_IFS
2525  test -z "$as_dir" && as_dir=.
2526  for ac_exec_ext in '' $ac_executable_extensions; do
2527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528    ac_cv_prog_ac_ct_STRIP="strip"
2529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530    break 2
2531  fi
2532done
2533done
2534IFS=$as_save_IFS
2535
2536fi
2537fi
2538ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2539if test -n "$ac_ct_STRIP"; then
2540  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2541echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2542else
2543  { echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6; }
2545fi
2546
2547  if test "x$ac_ct_STRIP" = x; then
2548    STRIP=":"
2549  else
2550    case $cross_compiling:$ac_tool_warned in
2551yes:)
2552{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2553whose name does not start with the host triplet.  If you think this
2554configuration is useful to you, please write to autoconf@gnu.org." >&5
2555echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2556whose name does not start with the host triplet.  If you think this
2557configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2558ac_tool_warned=yes ;;
2559esac
2560    STRIP=$ac_ct_STRIP
2561  fi
2562else
2563  STRIP="$ac_cv_prog_STRIP"
2564fi
2565
2566fi
2567INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2568
2569# We need awk for the "check" target.  The system "awk" is bad on
2570# some platforms.
2571# Always define AMTAR for backward compatibility.
2572
2573AMTAR=${AMTAR-"${am_missing_run}tar"}
2574
2575am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2576
2577
2578
2579
2580
2581
2582
2583# Check whether --with-zlib was given.
2584if test "${with_zlib+set}" = set; then
2585  withval=$with_zlib;
2586else
2587  with_zlib=check
2588fi
2589
2590
2591
2592# Check whether --with-protoc was given.
2593if test "${with_protoc+set}" = set; then
2594  withval=$with_protoc;
2595else
2596  with_protoc=no
2597fi
2598
2599
2600# Checks for programs.
2601ac_ext=c
2602ac_cpp='$CPP $CPPFLAGS'
2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606if test -n "$ac_tool_prefix"; then
2607  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2608set dummy ${ac_tool_prefix}gcc; ac_word=$2
2609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2611if test "${ac_cv_prog_CC+set}" = set; then
2612  echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
2614  if test -n "$CC"; then
2615  ac_cv_prog_CC="$CC" # Let the user override the test.
2616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620  IFS=$as_save_IFS
2621  test -z "$as_dir" && as_dir=.
2622  for ac_exec_ext in '' $ac_executable_extensions; do
2623  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2624    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626    break 2
2627  fi
2628done
2629done
2630IFS=$as_save_IFS
2631
2632fi
2633fi
2634CC=$ac_cv_prog_CC
2635if test -n "$CC"; then
2636  { echo "$as_me:$LINENO: result: $CC" >&5
2637echo "${ECHO_T}$CC" >&6; }
2638else
2639  { echo "$as_me:$LINENO: result: no" >&5
2640echo "${ECHO_T}no" >&6; }
2641fi
2642
2643
2644fi
2645if test -z "$ac_cv_prog_CC"; then
2646  ac_ct_CC=$CC
2647  # Extract the first word of "gcc", so it can be a program name with args.
2648set dummy gcc; ac_word=$2
2649{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2651if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2652  echo $ECHO_N "(cached) $ECHO_C" >&6
2653else
2654  if test -n "$ac_ct_CC"; then
2655  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2656else
2657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658for as_dir in $PATH
2659do
2660  IFS=$as_save_IFS
2661  test -z "$as_dir" && as_dir=.
2662  for ac_exec_ext in '' $ac_executable_extensions; do
2663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2664    ac_cv_prog_ac_ct_CC="gcc"
2665    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2666    break 2
2667  fi
2668done
2669done
2670IFS=$as_save_IFS
2671
2672fi
2673fi
2674ac_ct_CC=$ac_cv_prog_ac_ct_CC
2675if test -n "$ac_ct_CC"; then
2676  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2677echo "${ECHO_T}$ac_ct_CC" >&6; }
2678else
2679  { echo "$as_me:$LINENO: result: no" >&5
2680echo "${ECHO_T}no" >&6; }
2681fi
2682
2683  if test "x$ac_ct_CC" = x; then
2684    CC=""
2685  else
2686    case $cross_compiling:$ac_tool_warned in
2687yes:)
2688{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2689whose name does not start with the host triplet.  If you think this
2690configuration is useful to you, please write to autoconf@gnu.org." >&5
2691echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2692whose name does not start with the host triplet.  If you think this
2693configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2694ac_tool_warned=yes ;;
2695esac
2696    CC=$ac_ct_CC
2697  fi
2698else
2699  CC="$ac_cv_prog_CC"
2700fi
2701
2702if test -z "$CC"; then
2703          if test -n "$ac_tool_prefix"; then
2704    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2705set dummy ${ac_tool_prefix}cc; ac_word=$2
2706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708if test "${ac_cv_prog_CC+set}" = set; then
2709  echo $ECHO_N "(cached) $ECHO_C" >&6
2710else
2711  if test -n "$CC"; then
2712  ac_cv_prog_CC="$CC" # Let the user override the test.
2713else
2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717  IFS=$as_save_IFS
2718  test -z "$as_dir" && as_dir=.
2719  for ac_exec_ext in '' $ac_executable_extensions; do
2720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721    ac_cv_prog_CC="${ac_tool_prefix}cc"
2722    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723    break 2
2724  fi
2725done
2726done
2727IFS=$as_save_IFS
2728
2729fi
2730fi
2731CC=$ac_cv_prog_CC
2732if test -n "$CC"; then
2733  { echo "$as_me:$LINENO: result: $CC" >&5
2734echo "${ECHO_T}$CC" >&6; }
2735else
2736  { echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6; }
2738fi
2739
2740
2741  fi
2742fi
2743if test -z "$CC"; then
2744  # Extract the first word of "cc", so it can be a program name with args.
2745set dummy cc; ac_word=$2
2746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748if test "${ac_cv_prog_CC+set}" = set; then
2749  echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751  if test -n "$CC"; then
2752  ac_cv_prog_CC="$CC" # Let the user override the test.
2753else
2754  ac_prog_rejected=no
2755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756for as_dir in $PATH
2757do
2758  IFS=$as_save_IFS
2759  test -z "$as_dir" && as_dir=.
2760  for ac_exec_ext in '' $ac_executable_extensions; do
2761  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2763       ac_prog_rejected=yes
2764       continue
2765     fi
2766    ac_cv_prog_CC="cc"
2767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768    break 2
2769  fi
2770done
2771done
2772IFS=$as_save_IFS
2773
2774if test $ac_prog_rejected = yes; then
2775  # We found a bogon in the path, so make sure we never use it.
2776  set dummy $ac_cv_prog_CC
2777  shift
2778  if test $# != 0; then
2779    # We chose a different compiler from the bogus one.
2780    # However, it has the same basename, so the bogon will be chosen
2781    # first if we set CC to just the basename; use the full file name.
2782    shift
2783    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2784  fi
2785fi
2786fi
2787fi
2788CC=$ac_cv_prog_CC
2789if test -n "$CC"; then
2790  { echo "$as_me:$LINENO: result: $CC" >&5
2791echo "${ECHO_T}$CC" >&6; }
2792else
2793  { echo "$as_me:$LINENO: result: no" >&5
2794echo "${ECHO_T}no" >&6; }
2795fi
2796
2797
2798fi
2799if test -z "$CC"; then
2800  if test -n "$ac_tool_prefix"; then
2801  for ac_prog in cl.exe
2802  do
2803    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807if test "${ac_cv_prog_CC+set}" = set; then
2808  echo $ECHO_N "(cached) $ECHO_C" >&6
2809else
2810  if test -n "$CC"; then
2811  ac_cv_prog_CC="$CC" # Let the user override the test.
2812else
2813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814for as_dir in $PATH
2815do
2816  IFS=$as_save_IFS
2817  test -z "$as_dir" && as_dir=.
2818  for ac_exec_ext in '' $ac_executable_extensions; do
2819  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822    break 2
2823  fi
2824done
2825done
2826IFS=$as_save_IFS
2827
2828fi
2829fi
2830CC=$ac_cv_prog_CC
2831if test -n "$CC"; then
2832  { echo "$as_me:$LINENO: result: $CC" >&5
2833echo "${ECHO_T}$CC" >&6; }
2834else
2835  { echo "$as_me:$LINENO: result: no" >&5
2836echo "${ECHO_T}no" >&6; }
2837fi
2838
2839
2840    test -n "$CC" && break
2841  done
2842fi
2843if test -z "$CC"; then
2844  ac_ct_CC=$CC
2845  for ac_prog in cl.exe
2846do
2847  # Extract the first word of "$ac_prog", so it can be a program name with args.
2848set dummy $ac_prog; ac_word=$2
2849{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2851if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2852  echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
2854  if test -n "$ac_ct_CC"; then
2855  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860  IFS=$as_save_IFS
2861  test -z "$as_dir" && as_dir=.
2862  for ac_exec_ext in '' $ac_executable_extensions; do
2863  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864    ac_cv_prog_ac_ct_CC="$ac_prog"
2865    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866    break 2
2867  fi
2868done
2869done
2870IFS=$as_save_IFS
2871
2872fi
2873fi
2874ac_ct_CC=$ac_cv_prog_ac_ct_CC
2875if test -n "$ac_ct_CC"; then
2876  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2877echo "${ECHO_T}$ac_ct_CC" >&6; }
2878else
2879  { echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6; }
2881fi
2882
2883
2884  test -n "$ac_ct_CC" && break
2885done
2886
2887  if test "x$ac_ct_CC" = x; then
2888    CC=""
2889  else
2890    case $cross_compiling:$ac_tool_warned in
2891yes:)
2892{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2893whose name does not start with the host triplet.  If you think this
2894configuration is useful to you, please write to autoconf@gnu.org." >&5
2895echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2896whose name does not start with the host triplet.  If you think this
2897configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2898ac_tool_warned=yes ;;
2899esac
2900    CC=$ac_ct_CC
2901  fi
2902fi
2903
2904fi
2905
2906
2907test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2908See \`config.log' for more details." >&5
2909echo "$as_me: error: no acceptable C compiler found in \$PATH
2910See \`config.log' for more details." >&2;}
2911   { (exit 1); exit 1; }; }
2912
2913# Provide some information about the compiler.
2914echo "$as_me:$LINENO: checking for C compiler version" >&5
2915ac_compiler=`set X $ac_compile; echo $2`
2916{ (ac_try="$ac_compiler --version >&5"
2917case "(($ac_try" in
2918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919  *) ac_try_echo=$ac_try;;
2920esac
2921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922  (eval "$ac_compiler --version >&5") 2>&5
2923  ac_status=$?
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); }
2926{ (ac_try="$ac_compiler -v >&5"
2927case "(($ac_try" in
2928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929  *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932  (eval "$ac_compiler -v >&5") 2>&5
2933  ac_status=$?
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); }
2936{ (ac_try="$ac_compiler -V >&5"
2937case "(($ac_try" in
2938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939  *) ac_try_echo=$ac_try;;
2940esac
2941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942  (eval "$ac_compiler -V >&5") 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }
2946
2947cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957
2958  ;
2959  return 0;
2960}
2961_ACEOF
2962ac_clean_files_save=$ac_clean_files
2963ac_clean_files="$ac_clean_files a.out a.exe b.out"
2964# Try to create an executable without -o first, disregard a.out.
2965# It will help us diagnose broken compilers, and finding out an intuition
2966# of exeext.
2967{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2968echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2969ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2970#
2971# List of possible output files, starting from the most likely.
2972# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2973# only as a last resort.  b.out is created by i960 compilers.
2974ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2975#
2976# The IRIX 6 linker writes into existing files which may not be
2977# executable, retaining their permissions.  Remove them first so a
2978# subsequent execution test works.
2979ac_rmfiles=
2980for ac_file in $ac_files
2981do
2982  case $ac_file in
2983    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2984    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2985  esac
2986done
2987rm -f $ac_rmfiles
2988
2989if { (ac_try="$ac_link_default"
2990case "(($ac_try" in
2991  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992  *) ac_try_echo=$ac_try;;
2993esac
2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995  (eval "$ac_link_default") 2>&5
2996  ac_status=$?
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); }; then
2999  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3000# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3001# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3002# so that the user can short-circuit this test for compilers unknown to
3003# Autoconf.
3004for ac_file in $ac_files ''
3005do
3006  test -f "$ac_file" || continue
3007  case $ac_file in
3008    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3009	;;
3010    [ab].out )
3011	# We found the default executable, but exeext='' is most
3012	# certainly right.
3013	break;;
3014    *.* )
3015        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3016	then :; else
3017	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018	fi
3019	# We set ac_cv_exeext here because the later test for it is not
3020	# safe: cross compilers may not add the suffix if given an `-o'
3021	# argument, so we may need to know it at that point already.
3022	# Even if this section looks crufty: it has the advantage of
3023	# actually working.
3024	break;;
3025    * )
3026	break;;
3027  esac
3028done
3029test "$ac_cv_exeext" = no && ac_cv_exeext=
3030
3031else
3032  ac_file=''
3033fi
3034
3035{ echo "$as_me:$LINENO: result: $ac_file" >&5
3036echo "${ECHO_T}$ac_file" >&6; }
3037if test -z "$ac_file"; then
3038  echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3042See \`config.log' for more details." >&5
3043echo "$as_me: error: C compiler cannot create executables
3044See \`config.log' for more details." >&2;}
3045   { (exit 77); exit 77; }; }
3046fi
3047
3048ac_exeext=$ac_cv_exeext
3049
3050# Check that the compiler produces executables we can run.  If not, either
3051# the compiler is broken, or we cross compile.
3052{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3053echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3054# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3055# If not cross compiling, check that we can run a simple program.
3056if test "$cross_compiling" != yes; then
3057  if { ac_try='./$ac_file'
3058  { (case "(($ac_try" in
3059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060  *) ac_try_echo=$ac_try;;
3061esac
3062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063  (eval "$ac_try") 2>&5
3064  ac_status=$?
3065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066  (exit $ac_status); }; }; then
3067    cross_compiling=no
3068  else
3069    if test "$cross_compiling" = maybe; then
3070	cross_compiling=yes
3071    else
3072	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3073If you meant to cross compile, use \`--host'.
3074See \`config.log' for more details." >&5
3075echo "$as_me: error: cannot run C compiled programs.
3076If you meant to cross compile, use \`--host'.
3077See \`config.log' for more details." >&2;}
3078   { (exit 1); exit 1; }; }
3079    fi
3080  fi
3081fi
3082{ echo "$as_me:$LINENO: result: yes" >&5
3083echo "${ECHO_T}yes" >&6; }
3084
3085rm -f a.out a.exe conftest$ac_cv_exeext b.out
3086ac_clean_files=$ac_clean_files_save
3087# Check that the compiler produces executables we can run.  If not, either
3088# the compiler is broken, or we cross compile.
3089{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3090echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3091{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3092echo "${ECHO_T}$cross_compiling" >&6; }
3093
3094{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3095echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3096if { (ac_try="$ac_link"
3097case "(($ac_try" in
3098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099  *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102  (eval "$ac_link") 2>&5
3103  ac_status=$?
3104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105  (exit $ac_status); }; then
3106  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3107# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3108# work properly (i.e., refer to `conftest.exe'), while it won't with
3109# `rm'.
3110for ac_file in conftest.exe conftest conftest.*; do
3111  test -f "$ac_file" || continue
3112  case $ac_file in
3113    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3114    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115	  break;;
3116    * ) break;;
3117  esac
3118done
3119else
3120  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3121See \`config.log' for more details." >&5
3122echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3123See \`config.log' for more details." >&2;}
3124   { (exit 1); exit 1; }; }
3125fi
3126
3127rm -f conftest$ac_cv_exeext
3128{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3129echo "${ECHO_T}$ac_cv_exeext" >&6; }
3130
3131rm -f conftest.$ac_ext
3132EXEEXT=$ac_cv_exeext
3133ac_exeext=$EXEEXT
3134{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3135echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3136if test "${ac_cv_objext+set}" = set; then
3137  echo $ECHO_N "(cached) $ECHO_C" >&6
3138else
3139  cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h.  */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h.  */
3145
3146int
3147main ()
3148{
3149
3150  ;
3151  return 0;
3152}
3153_ACEOF
3154rm -f conftest.o conftest.obj
3155if { (ac_try="$ac_compile"
3156case "(($ac_try" in
3157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158  *) ac_try_echo=$ac_try;;
3159esac
3160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161  (eval "$ac_compile") 2>&5
3162  ac_status=$?
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; then
3165  for ac_file in conftest.o conftest.obj conftest.*; do
3166  test -f "$ac_file" || continue;
3167  case $ac_file in
3168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3169    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3170       break;;
3171  esac
3172done
3173else
3174  echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3178See \`config.log' for more details." >&5
3179echo "$as_me: error: cannot compute suffix of object files: cannot compile
3180See \`config.log' for more details." >&2;}
3181   { (exit 1); exit 1; }; }
3182fi
3183
3184rm -f conftest.$ac_cv_objext conftest.$ac_ext
3185fi
3186{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3187echo "${ECHO_T}$ac_cv_objext" >&6; }
3188OBJEXT=$ac_cv_objext
3189ac_objext=$OBJEXT
3190{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3191echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3192if test "${ac_cv_c_compiler_gnu+set}" = set; then
3193  echo $ECHO_N "(cached) $ECHO_C" >&6
3194else
3195  cat >conftest.$ac_ext <<_ACEOF
3196/* confdefs.h.  */
3197_ACEOF
3198cat confdefs.h >>conftest.$ac_ext
3199cat >>conftest.$ac_ext <<_ACEOF
3200/* end confdefs.h.  */
3201
3202int
3203main ()
3204{
3205#ifndef __GNUC__
3206       choke me
3207#endif
3208
3209  ;
3210  return 0;
3211}
3212_ACEOF
3213rm -f conftest.$ac_objext
3214if { (ac_try="$ac_compile"
3215case "(($ac_try" in
3216  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217  *) ac_try_echo=$ac_try;;
3218esac
3219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220  (eval "$ac_compile") 2>conftest.er1
3221  ac_status=$?
3222  grep -v '^ *+' conftest.er1 >conftest.err
3223  rm -f conftest.er1
3224  cat conftest.err >&5
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); } && {
3227	 test -z "$ac_c_werror_flag" ||
3228	 test ! -s conftest.err
3229       } && test -s conftest.$ac_objext; then
3230  ac_compiler_gnu=yes
3231else
3232  echo "$as_me: failed program was:" >&5
3233sed 's/^/| /' conftest.$ac_ext >&5
3234
3235	ac_compiler_gnu=no
3236fi
3237
3238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239ac_cv_c_compiler_gnu=$ac_compiler_gnu
3240
3241fi
3242{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3243echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3244GCC=`test $ac_compiler_gnu = yes && echo yes`
3245ac_test_CFLAGS=${CFLAGS+set}
3246ac_save_CFLAGS=$CFLAGS
3247{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3248echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3249if test "${ac_cv_prog_cc_g+set}" = set; then
3250  echo $ECHO_N "(cached) $ECHO_C" >&6
3251else
3252  ac_save_c_werror_flag=$ac_c_werror_flag
3253   ac_c_werror_flag=yes
3254   ac_cv_prog_cc_g=no
3255   CFLAGS="-g"
3256   cat >conftest.$ac_ext <<_ACEOF
3257/* confdefs.h.  */
3258_ACEOF
3259cat confdefs.h >>conftest.$ac_ext
3260cat >>conftest.$ac_ext <<_ACEOF
3261/* end confdefs.h.  */
3262
3263int
3264main ()
3265{
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271rm -f conftest.$ac_objext
3272if { (ac_try="$ac_compile"
3273case "(($ac_try" in
3274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275  *) ac_try_echo=$ac_try;;
3276esac
3277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278  (eval "$ac_compile") 2>conftest.er1
3279  ac_status=$?
3280  grep -v '^ *+' conftest.er1 >conftest.err
3281  rm -f conftest.er1
3282  cat conftest.err >&5
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); } && {
3285	 test -z "$ac_c_werror_flag" ||
3286	 test ! -s conftest.err
3287       } && test -s conftest.$ac_objext; then
3288  ac_cv_prog_cc_g=yes
3289else
3290  echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
3293	CFLAGS=""
3294      cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h.  */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h.  */
3300
3301int
3302main ()
3303{
3304
3305  ;
3306  return 0;
3307}
3308_ACEOF
3309rm -f conftest.$ac_objext
3310if { (ac_try="$ac_compile"
3311case "(($ac_try" in
3312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3313  *) ac_try_echo=$ac_try;;
3314esac
3315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3316  (eval "$ac_compile") 2>conftest.er1
3317  ac_status=$?
3318  grep -v '^ *+' conftest.er1 >conftest.err
3319  rm -f conftest.er1
3320  cat conftest.err >&5
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); } && {
3323	 test -z "$ac_c_werror_flag" ||
3324	 test ! -s conftest.err
3325       } && test -s conftest.$ac_objext; then
3326  :
3327else
3328  echo "$as_me: failed program was:" >&5
3329sed 's/^/| /' conftest.$ac_ext >&5
3330
3331	ac_c_werror_flag=$ac_save_c_werror_flag
3332	 CFLAGS="-g"
3333	 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h.  */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h.  */
3339
3340int
3341main ()
3342{
3343
3344  ;
3345  return 0;
3346}
3347_ACEOF
3348rm -f conftest.$ac_objext
3349if { (ac_try="$ac_compile"
3350case "(($ac_try" in
3351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352  *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355  (eval "$ac_compile") 2>conftest.er1
3356  ac_status=$?
3357  grep -v '^ *+' conftest.er1 >conftest.err
3358  rm -f conftest.er1
3359  cat conftest.err >&5
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); } && {
3362	 test -z "$ac_c_werror_flag" ||
3363	 test ! -s conftest.err
3364       } && test -s conftest.$ac_objext; then
3365  ac_cv_prog_cc_g=yes
3366else
3367  echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370
3371fi
3372
3373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374fi
3375
3376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377fi
3378
3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380   ac_c_werror_flag=$ac_save_c_werror_flag
3381fi
3382{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3383echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3384if test "$ac_test_CFLAGS" = set; then
3385  CFLAGS=$ac_save_CFLAGS
3386elif test $ac_cv_prog_cc_g = yes; then
3387  if test "$GCC" = yes; then
3388    CFLAGS="-g -O2"
3389  else
3390    CFLAGS="-g"
3391  fi
3392else
3393  if test "$GCC" = yes; then
3394    CFLAGS="-O2"
3395  else
3396    CFLAGS=
3397  fi
3398fi
3399{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3400echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3401if test "${ac_cv_prog_cc_c89+set}" = set; then
3402  echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404  ac_cv_prog_cc_c89=no
3405ac_save_CC=$CC
3406cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h.  */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h.  */
3412#include <stdarg.h>
3413#include <stdio.h>
3414#include <sys/types.h>
3415#include <sys/stat.h>
3416/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3417struct buf { int x; };
3418FILE * (*rcsopen) (struct buf *, struct stat *, int);
3419static char *e (p, i)
3420     char **p;
3421     int i;
3422{
3423  return p[i];
3424}
3425static char *f (char * (*g) (char **, int), char **p, ...)
3426{
3427  char *s;
3428  va_list v;
3429  va_start (v,p);
3430  s = g (p, va_arg (v,int));
3431  va_end (v);
3432  return s;
3433}
3434
3435/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3436   function prototypes and stuff, but not '\xHH' hex character constants.
3437   These don't provoke an error unfortunately, instead are silently treated
3438   as 'x'.  The following induces an error, until -std is added to get
3439   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3440   array size at least.  It's necessary to write '\x00'==0 to get something
3441   that's true only with -std.  */
3442int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3443
3444/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3445   inside strings and character constants.  */
3446#define FOO(x) 'x'
3447int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3448
3449int test (int i, double x);
3450struct s1 {int (*f) (int a);};
3451struct s2 {int (*f) (double a);};
3452int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3453int argc;
3454char **argv;
3455int
3456main ()
3457{
3458return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3464	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3465do
3466  CC="$ac_save_CC $ac_arg"
3467  rm -f conftest.$ac_objext
3468if { (ac_try="$ac_compile"
3469case "(($ac_try" in
3470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471  *) ac_try_echo=$ac_try;;
3472esac
3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474  (eval "$ac_compile") 2>conftest.er1
3475  ac_status=$?
3476  grep -v '^ *+' conftest.er1 >conftest.err
3477  rm -f conftest.er1
3478  cat conftest.err >&5
3479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480  (exit $ac_status); } && {
3481	 test -z "$ac_c_werror_flag" ||
3482	 test ! -s conftest.err
3483       } && test -s conftest.$ac_objext; then
3484  ac_cv_prog_cc_c89=$ac_arg
3485else
3486  echo "$as_me: failed program was:" >&5
3487sed 's/^/| /' conftest.$ac_ext >&5
3488
3489
3490fi
3491
3492rm -f core conftest.err conftest.$ac_objext
3493  test "x$ac_cv_prog_cc_c89" != "xno" && break
3494done
3495rm -f conftest.$ac_ext
3496CC=$ac_save_CC
3497
3498fi
3499# AC_CACHE_VAL
3500case "x$ac_cv_prog_cc_c89" in
3501  x)
3502    { echo "$as_me:$LINENO: result: none needed" >&5
3503echo "${ECHO_T}none needed" >&6; } ;;
3504  xno)
3505    { echo "$as_me:$LINENO: result: unsupported" >&5
3506echo "${ECHO_T}unsupported" >&6; } ;;
3507  *)
3508    CC="$CC $ac_cv_prog_cc_c89"
3509    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3510echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3511esac
3512
3513
3514ac_ext=c
3515ac_cpp='$CPP $CPPFLAGS'
3516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519DEPDIR="${am__leading_dot}deps"
3520
3521ac_config_commands="$ac_config_commands depfiles"
3522
3523
3524am_make=${MAKE-make}
3525cat > confinc << 'END'
3526am__doit:
3527	@echo done
3528.PHONY: am__doit
3529END
3530# If we don't find an include directive, just comment out the code.
3531{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3532echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3533am__include="#"
3534am__quote=
3535_am_result=none
3536# First try GNU make style include.
3537echo "include confinc" > confmf
3538# We grep out `Entering directory' and `Leaving directory'
3539# messages which can occur if `w' ends up in MAKEFLAGS.
3540# In particular we don't look at `^make:' because GNU make might
3541# be invoked under some other name (usually "gmake"), in which
3542# case it prints its new name instead of `make'.
3543if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3544   am__include=include
3545   am__quote=
3546   _am_result=GNU
3547fi
3548# Now try BSD make style include.
3549if test "$am__include" = "#"; then
3550   echo '.include "confinc"' > confmf
3551   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3552      am__include=.include
3553      am__quote="\""
3554      _am_result=BSD
3555   fi
3556fi
3557
3558
3559{ echo "$as_me:$LINENO: result: $_am_result" >&5
3560echo "${ECHO_T}$_am_result" >&6; }
3561rm -f confinc confmf
3562
3563# Check whether --enable-dependency-tracking was given.
3564if test "${enable_dependency_tracking+set}" = set; then
3565  enableval=$enable_dependency_tracking;
3566fi
3567
3568if test "x$enable_dependency_tracking" != xno; then
3569  am_depcomp="$ac_aux_dir/depcomp"
3570  AMDEPBACKSLASH='\'
3571fi
3572 if test "x$enable_dependency_tracking" != xno; then
3573  AMDEP_TRUE=
3574  AMDEP_FALSE='#'
3575else
3576  AMDEP_TRUE='#'
3577  AMDEP_FALSE=
3578fi
3579
3580
3581
3582depcc="$CC"   am_compiler_list=
3583
3584{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3585echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3586if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3587  echo $ECHO_N "(cached) $ECHO_C" >&6
3588else
3589  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3590  # We make a subdir and do the tests there.  Otherwise we can end up
3591  # making bogus files that we don't know about and never remove.  For
3592  # instance it was reported that on HP-UX the gcc test will end up
3593  # making a dummy file named `D' -- because `-MD' means `put the output
3594  # in D'.
3595  mkdir conftest.dir
3596  # Copy depcomp to subdir because otherwise we won't find it if we're
3597  # using a relative directory.
3598  cp "$am_depcomp" conftest.dir
3599  cd conftest.dir
3600  # We will build objects and dependencies in a subdirectory because
3601  # it helps to detect inapplicable dependency modes.  For instance
3602  # both Tru64's cc and ICC support -MD to output dependencies as a
3603  # side effect of compilation, but ICC will put the dependencies in
3604  # the current directory while Tru64 will put them in the object
3605  # directory.
3606  mkdir sub
3607
3608  am_cv_CC_dependencies_compiler_type=none
3609  if test "$am_compiler_list" = ""; then
3610     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3611  fi
3612  for depmode in $am_compiler_list; do
3613    # Setup a source with many dependencies, because some compilers
3614    # like to wrap large dependency lists on column 80 (with \), and
3615    # we should not choose a depcomp mode which is confused by this.
3616    #
3617    # We need to recreate these files for each test, as the compiler may
3618    # overwrite some of them when testing with obscure command lines.
3619    # This happens at least with the AIX C compiler.
3620    : > sub/conftest.c
3621    for i in 1 2 3 4 5 6; do
3622      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3623      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3624      # Solaris 8's {/usr,}/bin/sh.
3625      touch sub/conftst$i.h
3626    done
3627    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3628
3629    case $depmode in
3630    nosideeffect)
3631      # after this tag, mechanisms are not by side-effect, so they'll
3632      # only be used when explicitly requested
3633      if test "x$enable_dependency_tracking" = xyes; then
3634	continue
3635      else
3636	break
3637      fi
3638      ;;
3639    none) break ;;
3640    esac
3641    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3642    # mode.  It turns out that the SunPro C++ compiler does not properly
3643    # handle `-M -o', and we need to detect this.
3644    if depmode=$depmode \
3645       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3646       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3647       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3648         >/dev/null 2>conftest.err &&
3649       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3650       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3651       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3652       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3653      # icc doesn't choke on unknown options, it will just issue warnings
3654      # or remarks (even with -Werror).  So we grep stderr for any message
3655      # that says an option was ignored or not supported.
3656      # When given -MP, icc 7.0 and 7.1 complain thusly:
3657      #   icc: Command line warning: ignoring option '-M'; no argument required
3658      # The diagnosis changed in icc 8.0:
3659      #   icc: Command line remark: option '-MP' not supported
3660      if (grep 'ignoring option' conftest.err ||
3661          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3662        am_cv_CC_dependencies_compiler_type=$depmode
3663        break
3664      fi
3665    fi
3666  done
3667
3668  cd ..
3669  rm -rf conftest.dir
3670else
3671  am_cv_CC_dependencies_compiler_type=none
3672fi
3673
3674fi
3675{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3676echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3677CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3678
3679 if
3680  test "x$enable_dependency_tracking" != xno \
3681  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3682  am__fastdepCC_TRUE=
3683  am__fastdepCC_FALSE='#'
3684else
3685  am__fastdepCC_TRUE='#'
3686  am__fastdepCC_FALSE=
3687fi
3688
3689
3690ac_ext=cpp
3691ac_cpp='$CXXCPP $CPPFLAGS'
3692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3695if test -z "$CXX"; then
3696  if test -n "$CCC"; then
3697    CXX=$CCC
3698  else
3699    if test -n "$ac_tool_prefix"; then
3700  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3701  do
3702    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3704{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3706if test "${ac_cv_prog_CXX+set}" = set; then
3707  echo $ECHO_N "(cached) $ECHO_C" >&6
3708else
3709  if test -n "$CXX"; then
3710  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3711else
3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH
3714do
3715  IFS=$as_save_IFS
3716  test -z "$as_dir" && as_dir=.
3717  for ac_exec_ext in '' $ac_executable_extensions; do
3718  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3720    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3721    break 2
3722  fi
3723done
3724done
3725IFS=$as_save_IFS
3726
3727fi
3728fi
3729CXX=$ac_cv_prog_CXX
3730if test -n "$CXX"; then
3731  { echo "$as_me:$LINENO: result: $CXX" >&5
3732echo "${ECHO_T}$CXX" >&6; }
3733else
3734  { echo "$as_me:$LINENO: result: no" >&5
3735echo "${ECHO_T}no" >&6; }
3736fi
3737
3738
3739    test -n "$CXX" && break
3740  done
3741fi
3742if test -z "$CXX"; then
3743  ac_ct_CXX=$CXX
3744  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3745do
3746  # Extract the first word of "$ac_prog", so it can be a program name with args.
3747set dummy $ac_prog; ac_word=$2
3748{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3750if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3751  echo $ECHO_N "(cached) $ECHO_C" >&6
3752else
3753  if test -n "$ac_ct_CXX"; then
3754  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3755else
3756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757for as_dir in $PATH
3758do
3759  IFS=$as_save_IFS
3760  test -z "$as_dir" && as_dir=.
3761  for ac_exec_ext in '' $ac_executable_extensions; do
3762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763    ac_cv_prog_ac_ct_CXX="$ac_prog"
3764    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765    break 2
3766  fi
3767done
3768done
3769IFS=$as_save_IFS
3770
3771fi
3772fi
3773ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3774if test -n "$ac_ct_CXX"; then
3775  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3776echo "${ECHO_T}$ac_ct_CXX" >&6; }
3777else
3778  { echo "$as_me:$LINENO: result: no" >&5
3779echo "${ECHO_T}no" >&6; }
3780fi
3781
3782
3783  test -n "$ac_ct_CXX" && break
3784done
3785
3786  if test "x$ac_ct_CXX" = x; then
3787    CXX="g++"
3788  else
3789    case $cross_compiling:$ac_tool_warned in
3790yes:)
3791{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3792whose name does not start with the host triplet.  If you think this
3793configuration is useful to you, please write to autoconf@gnu.org." >&5
3794echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3795whose name does not start with the host triplet.  If you think this
3796configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3797ac_tool_warned=yes ;;
3798esac
3799    CXX=$ac_ct_CXX
3800  fi
3801fi
3802
3803  fi
3804fi
3805# Provide some information about the compiler.
3806echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3807ac_compiler=`set X $ac_compile; echo $2`
3808{ (ac_try="$ac_compiler --version >&5"
3809case "(($ac_try" in
3810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811  *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814  (eval "$ac_compiler --version >&5") 2>&5
3815  ac_status=$?
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); }
3818{ (ac_try="$ac_compiler -v >&5"
3819case "(($ac_try" in
3820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821  *) ac_try_echo=$ac_try;;
3822esac
3823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824  (eval "$ac_compiler -v >&5") 2>&5
3825  ac_status=$?
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); }
3828{ (ac_try="$ac_compiler -V >&5"
3829case "(($ac_try" in
3830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831  *) ac_try_echo=$ac_try;;
3832esac
3833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834  (eval "$ac_compiler -V >&5") 2>&5
3835  ac_status=$?
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); }
3838
3839{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3840echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3841if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3842  echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844  cat >conftest.$ac_ext <<_ACEOF
3845/* confdefs.h.  */
3846_ACEOF
3847cat confdefs.h >>conftest.$ac_ext
3848cat >>conftest.$ac_ext <<_ACEOF
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854#ifndef __GNUC__
3855       choke me
3856#endif
3857
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862rm -f conftest.$ac_objext
3863if { (ac_try="$ac_compile"
3864case "(($ac_try" in
3865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866  *) ac_try_echo=$ac_try;;
3867esac
3868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3869  (eval "$ac_compile") 2>conftest.er1
3870  ac_status=$?
3871  grep -v '^ *+' conftest.er1 >conftest.err
3872  rm -f conftest.er1
3873  cat conftest.err >&5
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); } && {
3876	 test -z "$ac_cxx_werror_flag" ||
3877	 test ! -s conftest.err
3878       } && test -s conftest.$ac_objext; then
3879  ac_compiler_gnu=yes
3880else
3881  echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884	ac_compiler_gnu=no
3885fi
3886
3887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3889
3890fi
3891{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3892echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3893GXX=`test $ac_compiler_gnu = yes && echo yes`
3894ac_test_CXXFLAGS=${CXXFLAGS+set}
3895ac_save_CXXFLAGS=$CXXFLAGS
3896{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3897echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3898if test "${ac_cv_prog_cxx_g+set}" = set; then
3899  echo $ECHO_N "(cached) $ECHO_C" >&6
3900else
3901  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3902   ac_cxx_werror_flag=yes
3903   ac_cv_prog_cxx_g=no
3904   CXXFLAGS="-g"
3905   cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h.  */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h.  */
3911
3912int
3913main ()
3914{
3915
3916  ;
3917  return 0;
3918}
3919_ACEOF
3920rm -f conftest.$ac_objext
3921if { (ac_try="$ac_compile"
3922case "(($ac_try" in
3923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924  *) ac_try_echo=$ac_try;;
3925esac
3926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927  (eval "$ac_compile") 2>conftest.er1
3928  ac_status=$?
3929  grep -v '^ *+' conftest.er1 >conftest.err
3930  rm -f conftest.er1
3931  cat conftest.err >&5
3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933  (exit $ac_status); } && {
3934	 test -z "$ac_cxx_werror_flag" ||
3935	 test ! -s conftest.err
3936       } && test -s conftest.$ac_objext; then
3937  ac_cv_prog_cxx_g=yes
3938else
3939  echo "$as_me: failed program was:" >&5
3940sed 's/^/| /' conftest.$ac_ext >&5
3941
3942	CXXFLAGS=""
3943      cat >conftest.$ac_ext <<_ACEOF
3944/* confdefs.h.  */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h.  */
3949
3950int
3951main ()
3952{
3953
3954  ;
3955  return 0;
3956}
3957_ACEOF
3958rm -f conftest.$ac_objext
3959if { (ac_try="$ac_compile"
3960case "(($ac_try" in
3961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962  *) ac_try_echo=$ac_try;;
3963esac
3964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965  (eval "$ac_compile") 2>conftest.er1
3966  ac_status=$?
3967  grep -v '^ *+' conftest.er1 >conftest.err
3968  rm -f conftest.er1
3969  cat conftest.err >&5
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); } && {
3972	 test -z "$ac_cxx_werror_flag" ||
3973	 test ! -s conftest.err
3974       } && test -s conftest.$ac_objext; then
3975  :
3976else
3977  echo "$as_me: failed program was:" >&5
3978sed 's/^/| /' conftest.$ac_ext >&5
3979
3980	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3981	 CXXFLAGS="-g"
3982	 cat >conftest.$ac_ext <<_ACEOF
3983/* confdefs.h.  */
3984_ACEOF
3985cat confdefs.h >>conftest.$ac_ext
3986cat >>conftest.$ac_ext <<_ACEOF
3987/* end confdefs.h.  */
3988
3989int
3990main ()
3991{
3992
3993  ;
3994  return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext
3998if { (ac_try="$ac_compile"
3999case "(($ac_try" in
4000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001  *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004  (eval "$ac_compile") 2>conftest.er1
4005  ac_status=$?
4006  grep -v '^ *+' conftest.er1 >conftest.err
4007  rm -f conftest.er1
4008  cat conftest.err >&5
4009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010  (exit $ac_status); } && {
4011	 test -z "$ac_cxx_werror_flag" ||
4012	 test ! -s conftest.err
4013       } && test -s conftest.$ac_objext; then
4014  ac_cv_prog_cxx_g=yes
4015else
4016  echo "$as_me: failed program was:" >&5
4017sed 's/^/| /' conftest.$ac_ext >&5
4018
4019
4020fi
4021
4022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023fi
4024
4025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026fi
4027
4028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4030fi
4031{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4032echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4033if test "$ac_test_CXXFLAGS" = set; then
4034  CXXFLAGS=$ac_save_CXXFLAGS
4035elif test $ac_cv_prog_cxx_g = yes; then
4036  if test "$GXX" = yes; then
4037    CXXFLAGS="-g -O2"
4038  else
4039    CXXFLAGS="-g"
4040  fi
4041else
4042  if test "$GXX" = yes; then
4043    CXXFLAGS="-O2"
4044  else
4045    CXXFLAGS=
4046  fi
4047fi
4048ac_ext=c
4049ac_cpp='$CPP $CPPFLAGS'
4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054depcc="$CXX"  am_compiler_list=
4055
4056{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4057echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4058if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4059  echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4062  # We make a subdir and do the tests there.  Otherwise we can end up
4063  # making bogus files that we don't know about and never remove.  For
4064  # instance it was reported that on HP-UX the gcc test will end up
4065  # making a dummy file named `D' -- because `-MD' means `put the output
4066  # in D'.
4067  mkdir conftest.dir
4068  # Copy depcomp to subdir because otherwise we won't find it if we're
4069  # using a relative directory.
4070  cp "$am_depcomp" conftest.dir
4071  cd conftest.dir
4072  # We will build objects and dependencies in a subdirectory because
4073  # it helps to detect inapplicable dependency modes.  For instance
4074  # both Tru64's cc and ICC support -MD to output dependencies as a
4075  # side effect of compilation, but ICC will put the dependencies in
4076  # the current directory while Tru64 will put them in the object
4077  # directory.
4078  mkdir sub
4079
4080  am_cv_CXX_dependencies_compiler_type=none
4081  if test "$am_compiler_list" = ""; then
4082     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4083  fi
4084  for depmode in $am_compiler_list; do
4085    # Setup a source with many dependencies, because some compilers
4086    # like to wrap large dependency lists on column 80 (with \), and
4087    # we should not choose a depcomp mode which is confused by this.
4088    #
4089    # We need to recreate these files for each test, as the compiler may
4090    # overwrite some of them when testing with obscure command lines.
4091    # This happens at least with the AIX C compiler.
4092    : > sub/conftest.c
4093    for i in 1 2 3 4 5 6; do
4094      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4095      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4096      # Solaris 8's {/usr,}/bin/sh.
4097      touch sub/conftst$i.h
4098    done
4099    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4100
4101    case $depmode in
4102    nosideeffect)
4103      # after this tag, mechanisms are not by side-effect, so they'll
4104      # only be used when explicitly requested
4105      if test "x$enable_dependency_tracking" = xyes; then
4106	continue
4107      else
4108	break
4109      fi
4110      ;;
4111    none) break ;;
4112    esac
4113    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4114    # mode.  It turns out that the SunPro C++ compiler does not properly
4115    # handle `-M -o', and we need to detect this.
4116    if depmode=$depmode \
4117       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4118       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4119       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4120         >/dev/null 2>conftest.err &&
4121       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4122       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4123       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4124       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4125      # icc doesn't choke on unknown options, it will just issue warnings
4126      # or remarks (even with -Werror).  So we grep stderr for any message
4127      # that says an option was ignored or not supported.
4128      # When given -MP, icc 7.0 and 7.1 complain thusly:
4129      #   icc: Command line warning: ignoring option '-M'; no argument required
4130      # The diagnosis changed in icc 8.0:
4131      #   icc: Command line remark: option '-MP' not supported
4132      if (grep 'ignoring option' conftest.err ||
4133          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4134        am_cv_CXX_dependencies_compiler_type=$depmode
4135        break
4136      fi
4137    fi
4138  done
4139
4140  cd ..
4141  rm -rf conftest.dir
4142else
4143  am_cv_CXX_dependencies_compiler_type=none
4144fi
4145
4146fi
4147{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4148echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4149CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4150
4151 if
4152  test "x$enable_dependency_tracking" != xno \
4153  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4154  am__fastdepCXX_TRUE=
4155  am__fastdepCXX_FALSE='#'
4156else
4157  am__fastdepCXX_TRUE='#'
4158  am__fastdepCXX_FALSE=
4159fi
4160
4161
4162ac_ext=cpp
4163ac_cpp='$CXXCPP $CPPFLAGS'
4164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4167
4168
4169cat >>confdefs.h <<\_ACEOF
4170#define _GNU_SOURCE 1
4171_ACEOF
4172
4173
4174
4175ac_ext=cpp
4176ac_cpp='$CXXCPP $CPPFLAGS'
4177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4180{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4181echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4182if test -z "$CXXCPP"; then
4183  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186      # Double quotes because CXXCPP needs to be expanded
4187    for CXXCPP in "$CXX -E" "/lib/cpp"
4188    do
4189      ac_preproc_ok=false
4190for ac_cxx_preproc_warn_flag in '' yes
4191do
4192  # Use a header file that comes with gcc, so configuring glibc
4193  # with a fresh cross-compiler works.
4194  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195  # <limits.h> exists even on freestanding compilers.
4196  # On the NeXT, cc -E runs the code through the compiler's parser,
4197  # not just through cpp. "Syntax error" is here to catch this case.
4198  cat >conftest.$ac_ext <<_ACEOF
4199/* confdefs.h.  */
4200_ACEOF
4201cat confdefs.h >>conftest.$ac_ext
4202cat >>conftest.$ac_ext <<_ACEOF
4203/* end confdefs.h.  */
4204#ifdef __STDC__
4205# include <limits.h>
4206#else
4207# include <assert.h>
4208#endif
4209		     Syntax error
4210_ACEOF
4211if { (ac_try="$ac_cpp conftest.$ac_ext"
4212case "(($ac_try" in
4213  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214  *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4218  ac_status=$?
4219  grep -v '^ *+' conftest.er1 >conftest.err
4220  rm -f conftest.er1
4221  cat conftest.err >&5
4222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223  (exit $ac_status); } >/dev/null && {
4224	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4225	 test ! -s conftest.err
4226       }; then
4227  :
4228else
4229  echo "$as_me: failed program was:" >&5
4230sed 's/^/| /' conftest.$ac_ext >&5
4231
4232  # Broken: fails on valid input.
4233continue
4234fi
4235
4236rm -f conftest.err conftest.$ac_ext
4237
4238  # OK, works on sane cases.  Now check whether nonexistent headers
4239  # can be detected and how.
4240  cat >conftest.$ac_ext <<_ACEOF
4241/* confdefs.h.  */
4242_ACEOF
4243cat confdefs.h >>conftest.$ac_ext
4244cat >>conftest.$ac_ext <<_ACEOF
4245/* end confdefs.h.  */
4246#include <ac_nonexistent.h>
4247_ACEOF
4248if { (ac_try="$ac_cpp conftest.$ac_ext"
4249case "(($ac_try" in
4250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251  *) ac_try_echo=$ac_try;;
4252esac
4253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4255  ac_status=$?
4256  grep -v '^ *+' conftest.er1 >conftest.err
4257  rm -f conftest.er1
4258  cat conftest.err >&5
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); } >/dev/null && {
4261	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4262	 test ! -s conftest.err
4263       }; then
4264  # Broken: success on invalid input.
4265continue
4266else
4267  echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
4270  # Passes both tests.
4271ac_preproc_ok=:
4272break
4273fi
4274
4275rm -f conftest.err conftest.$ac_ext
4276
4277done
4278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4279rm -f conftest.err conftest.$ac_ext
4280if $ac_preproc_ok; then
4281  break
4282fi
4283
4284    done
4285    ac_cv_prog_CXXCPP=$CXXCPP
4286
4287fi
4288  CXXCPP=$ac_cv_prog_CXXCPP
4289else
4290  ac_cv_prog_CXXCPP=$CXXCPP
4291fi
4292{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4293echo "${ECHO_T}$CXXCPP" >&6; }
4294ac_preproc_ok=false
4295for ac_cxx_preproc_warn_flag in '' yes
4296do
4297  # Use a header file that comes with gcc, so configuring glibc
4298  # with a fresh cross-compiler works.
4299  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300  # <limits.h> exists even on freestanding compilers.
4301  # On the NeXT, cc -E runs the code through the compiler's parser,
4302  # not just through cpp. "Syntax error" is here to catch this case.
4303  cat >conftest.$ac_ext <<_ACEOF
4304/* confdefs.h.  */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h.  */
4309#ifdef __STDC__
4310# include <limits.h>
4311#else
4312# include <assert.h>
4313#endif
4314		     Syntax error
4315_ACEOF
4316if { (ac_try="$ac_cpp conftest.$ac_ext"
4317case "(($ac_try" in
4318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319  *) ac_try_echo=$ac_try;;
4320esac
4321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4323  ac_status=$?
4324  grep -v '^ *+' conftest.er1 >conftest.err
4325  rm -f conftest.er1
4326  cat conftest.err >&5
4327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328  (exit $ac_status); } >/dev/null && {
4329	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4330	 test ! -s conftest.err
4331       }; then
4332  :
4333else
4334  echo "$as_me: failed program was:" >&5
4335sed 's/^/| /' conftest.$ac_ext >&5
4336
4337  # Broken: fails on valid input.
4338continue
4339fi
4340
4341rm -f conftest.err conftest.$ac_ext
4342
4343  # OK, works on sane cases.  Now check whether nonexistent headers
4344  # can be detected and how.
4345  cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h.  */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h.  */
4351#include <ac_nonexistent.h>
4352_ACEOF
4353if { (ac_try="$ac_cpp conftest.$ac_ext"
4354case "(($ac_try" in
4355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356  *) ac_try_echo=$ac_try;;
4357esac
4358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4360  ac_status=$?
4361  grep -v '^ *+' conftest.er1 >conftest.err
4362  rm -f conftest.er1
4363  cat conftest.err >&5
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); } >/dev/null && {
4366	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4367	 test ! -s conftest.err
4368       }; then
4369  # Broken: success on invalid input.
4370continue
4371else
4372  echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375  # Passes both tests.
4376ac_preproc_ok=:
4377break
4378fi
4379
4380rm -f conftest.err conftest.$ac_ext
4381
4382done
4383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4384rm -f conftest.err conftest.$ac_ext
4385if $ac_preproc_ok; then
4386  :
4387else
4388  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4389See \`config.log' for more details." >&5
4390echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4391See \`config.log' for more details." >&2;}
4392   { (exit 1); exit 1; }; }
4393fi
4394
4395ac_ext=cpp
4396ac_cpp='$CXXCPP $CPPFLAGS'
4397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4400
4401
4402{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4403echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4404if test "${ac_cv_path_GREP+set}" = set; then
4405  echo $ECHO_N "(cached) $ECHO_C" >&6
4406else
4407  # Extract the first word of "grep ggrep" to use in msg output
4408if test -z "$GREP"; then
4409set dummy grep ggrep; ac_prog_name=$2
4410if test "${ac_cv_path_GREP+set}" = set; then
4411  echo $ECHO_N "(cached) $ECHO_C" >&6
4412else
4413  ac_path_GREP_found=false
4414# Loop through the user's path and test for each of PROGNAME-LIST
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417do
4418  IFS=$as_save_IFS
4419  test -z "$as_dir" && as_dir=.
4420  for ac_prog in grep ggrep; do
4421  for ac_exec_ext in '' $ac_executable_extensions; do
4422    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4423    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4424    # Check for GNU ac_path_GREP and select it if it is found.
4425  # Check for GNU $ac_path_GREP
4426case `"$ac_path_GREP" --version 2>&1` in
4427*GNU*)
4428  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4429*)
4430  ac_count=0
4431  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4432  while :
4433  do
4434    cat "conftest.in" "conftest.in" >"conftest.tmp"
4435    mv "conftest.tmp" "conftest.in"
4436    cp "conftest.in" "conftest.nl"
4437    echo 'GREP' >> "conftest.nl"
4438    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440    ac_count=`expr $ac_count + 1`
4441    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4442      # Best one so far, save it but keep looking for a better one
4443      ac_cv_path_GREP="$ac_path_GREP"
4444      ac_path_GREP_max=$ac_count
4445    fi
4446    # 10*(2^10) chars as input seems more than enough
4447    test $ac_count -gt 10 && break
4448  done
4449  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450esac
4451
4452
4453    $ac_path_GREP_found && break 3
4454  done
4455done
4456
4457done
4458IFS=$as_save_IFS
4459
4460
4461fi
4462
4463GREP="$ac_cv_path_GREP"
4464if test -z "$GREP"; then
4465  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4466echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4467   { (exit 1); exit 1; }; }
4468fi
4469
4470else
4471  ac_cv_path_GREP=$GREP
4472fi
4473
4474
4475fi
4476{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4477echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4478 GREP="$ac_cv_path_GREP"
4479
4480
4481{ echo "$as_me:$LINENO: checking for egrep" >&5
4482echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4483if test "${ac_cv_path_EGREP+set}" = set; then
4484  echo $ECHO_N "(cached) $ECHO_C" >&6
4485else
4486  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4487   then ac_cv_path_EGREP="$GREP -E"
4488   else
4489     # Extract the first word of "egrep" to use in msg output
4490if test -z "$EGREP"; then
4491set dummy egrep; ac_prog_name=$2
4492if test "${ac_cv_path_EGREP+set}" = set; then
4493  echo $ECHO_N "(cached) $ECHO_C" >&6
4494else
4495  ac_path_EGREP_found=false
4496# Loop through the user's path and test for each of PROGNAME-LIST
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499do
4500  IFS=$as_save_IFS
4501  test -z "$as_dir" && as_dir=.
4502  for ac_prog in egrep; do
4503  for ac_exec_ext in '' $ac_executable_extensions; do
4504    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4505    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4506    # Check for GNU ac_path_EGREP and select it if it is found.
4507  # Check for GNU $ac_path_EGREP
4508case `"$ac_path_EGREP" --version 2>&1` in
4509*GNU*)
4510  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4511*)
4512  ac_count=0
4513  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4514  while :
4515  do
4516    cat "conftest.in" "conftest.in" >"conftest.tmp"
4517    mv "conftest.tmp" "conftest.in"
4518    cp "conftest.in" "conftest.nl"
4519    echo 'EGREP' >> "conftest.nl"
4520    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522    ac_count=`expr $ac_count + 1`
4523    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4524      # Best one so far, save it but keep looking for a better one
4525      ac_cv_path_EGREP="$ac_path_EGREP"
4526      ac_path_EGREP_max=$ac_count
4527    fi
4528    # 10*(2^10) chars as input seems more than enough
4529    test $ac_count -gt 10 && break
4530  done
4531  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532esac
4533
4534
4535    $ac_path_EGREP_found && break 3
4536  done
4537done
4538
4539done
4540IFS=$as_save_IFS
4541
4542
4543fi
4544
4545EGREP="$ac_cv_path_EGREP"
4546if test -z "$EGREP"; then
4547  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4548echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4549   { (exit 1); exit 1; }; }
4550fi
4551
4552else
4553  ac_cv_path_EGREP=$EGREP
4554fi
4555
4556
4557   fi
4558fi
4559{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4560echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4561 EGREP="$ac_cv_path_EGREP"
4562
4563
4564
4565{ echo "$as_me:$LINENO: checking for AIX" >&5
4566echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4567cat >conftest.$ac_ext <<_ACEOF
4568/* confdefs.h.  */
4569_ACEOF
4570cat confdefs.h >>conftest.$ac_ext
4571cat >>conftest.$ac_ext <<_ACEOF
4572/* end confdefs.h.  */
4573#ifdef _AIX
4574  yes
4575#endif
4576
4577_ACEOF
4578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4579  $EGREP "yes" >/dev/null 2>&1; then
4580  { echo "$as_me:$LINENO: result: yes" >&5
4581echo "${ECHO_T}yes" >&6; }
4582cat >>confdefs.h <<\_ACEOF
4583#define _ALL_SOURCE 1
4584_ACEOF
4585
4586else
4587  { echo "$as_me:$LINENO: result: no" >&5
4588echo "${ECHO_T}no" >&6; }
4589fi
4590rm -f conftest*
4591
4592
4593{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4594echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4595if test "${ac_cv_header_stdc+set}" = set; then
4596  echo $ECHO_N "(cached) $ECHO_C" >&6
4597else
4598  cat >conftest.$ac_ext <<_ACEOF
4599/* confdefs.h.  */
4600_ACEOF
4601cat confdefs.h >>conftest.$ac_ext
4602cat >>conftest.$ac_ext <<_ACEOF
4603/* end confdefs.h.  */
4604#include <stdlib.h>
4605#include <stdarg.h>
4606#include <string.h>
4607#include <float.h>
4608
4609int
4610main ()
4611{
4612
4613  ;
4614  return 0;
4615}
4616_ACEOF
4617rm -f conftest.$ac_objext
4618if { (ac_try="$ac_compile"
4619case "(($ac_try" in
4620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621  *) ac_try_echo=$ac_try;;
4622esac
4623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4624  (eval "$ac_compile") 2>conftest.er1
4625  ac_status=$?
4626  grep -v '^ *+' conftest.er1 >conftest.err
4627  rm -f conftest.er1
4628  cat conftest.err >&5
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); } && {
4631	 test -z "$ac_cxx_werror_flag" ||
4632	 test ! -s conftest.err
4633       } && test -s conftest.$ac_objext; then
4634  ac_cv_header_stdc=yes
4635else
4636  echo "$as_me: failed program was:" >&5
4637sed 's/^/| /' conftest.$ac_ext >&5
4638
4639	ac_cv_header_stdc=no
4640fi
4641
4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643
4644if test $ac_cv_header_stdc = yes; then
4645  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4646  cat >conftest.$ac_ext <<_ACEOF
4647/* confdefs.h.  */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h.  */
4652#include <string.h>
4653
4654_ACEOF
4655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4656  $EGREP "memchr" >/dev/null 2>&1; then
4657  :
4658else
4659  ac_cv_header_stdc=no
4660fi
4661rm -f conftest*
4662
4663fi
4664
4665if test $ac_cv_header_stdc = yes; then
4666  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4667  cat >conftest.$ac_ext <<_ACEOF
4668/* confdefs.h.  */
4669_ACEOF
4670cat confdefs.h >>conftest.$ac_ext
4671cat >>conftest.$ac_ext <<_ACEOF
4672/* end confdefs.h.  */
4673#include <stdlib.h>
4674
4675_ACEOF
4676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4677  $EGREP "free" >/dev/null 2>&1; then
4678  :
4679else
4680  ac_cv_header_stdc=no
4681fi
4682rm -f conftest*
4683
4684fi
4685
4686if test $ac_cv_header_stdc = yes; then
4687  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4688  if test "$cross_compiling" = yes; then
4689  :
4690else
4691  cat >conftest.$ac_ext <<_ACEOF
4692/* confdefs.h.  */
4693_ACEOF
4694cat confdefs.h >>conftest.$ac_ext
4695cat >>conftest.$ac_ext <<_ACEOF
4696/* end confdefs.h.  */
4697#include <ctype.h>
4698#include <stdlib.h>
4699#if ((' ' & 0x0FF) == 0x020)
4700# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4701# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4702#else
4703# define ISLOWER(c) \
4704		   (('a' <= (c) && (c) <= 'i') \
4705		     || ('j' <= (c) && (c) <= 'r') \
4706		     || ('s' <= (c) && (c) <= 'z'))
4707# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4708#endif
4709
4710#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4711int
4712main ()
4713{
4714  int i;
4715  for (i = 0; i < 256; i++)
4716    if (XOR (islower (i), ISLOWER (i))
4717	|| toupper (i) != TOUPPER (i))
4718      return 2;
4719  return 0;
4720}
4721_ACEOF
4722rm -f conftest$ac_exeext
4723if { (ac_try="$ac_link"
4724case "(($ac_try" in
4725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726  *) ac_try_echo=$ac_try;;
4727esac
4728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729  (eval "$ac_link") 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4733  { (case "(($ac_try" in
4734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735  *) ac_try_echo=$ac_try;;
4736esac
4737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738  (eval "$ac_try") 2>&5
4739  ac_status=$?
4740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741  (exit $ac_status); }; }; then
4742  :
4743else
4744  echo "$as_me: program exited with status $ac_status" >&5
4745echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748( exit $ac_status )
4749ac_cv_header_stdc=no
4750fi
4751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4752fi
4753
4754
4755fi
4756fi
4757{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4758echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4759if test $ac_cv_header_stdc = yes; then
4760
4761cat >>confdefs.h <<\_ACEOF
4762#define STDC_HEADERS 1
4763_ACEOF
4764
4765fi
4766
4767# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4778		  inttypes.h stdint.h unistd.h
4779do
4780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4781{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4784  echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786  cat >conftest.$ac_ext <<_ACEOF
4787/* confdefs.h.  */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h.  */
4792$ac_includes_default
4793
4794#include <$ac_header>
4795_ACEOF
4796rm -f conftest.$ac_objext
4797if { (ac_try="$ac_compile"
4798case "(($ac_try" in
4799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4800  *) ac_try_echo=$ac_try;;
4801esac
4802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4803  (eval "$ac_compile") 2>conftest.er1
4804  ac_status=$?
4805  grep -v '^ *+' conftest.er1 >conftest.err
4806  rm -f conftest.er1
4807  cat conftest.err >&5
4808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809  (exit $ac_status); } && {
4810	 test -z "$ac_cxx_werror_flag" ||
4811	 test ! -s conftest.err
4812       } && test -s conftest.$ac_objext; then
4813  eval "$as_ac_Header=yes"
4814else
4815  echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818	eval "$as_ac_Header=no"
4819fi
4820
4821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822fi
4823ac_res=`eval echo '${'$as_ac_Header'}'`
4824	       { echo "$as_me:$LINENO: result: $ac_res" >&5
4825echo "${ECHO_T}$ac_res" >&6; }
4826if test `eval echo '${'$as_ac_Header'}'` = yes; then
4827  cat >>confdefs.h <<_ACEOF
4828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4829_ACEOF
4830
4831fi
4832
4833done
4834
4835
4836if test "${ac_cv_header_minix_config_h+set}" = set; then
4837  { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4838echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4839if test "${ac_cv_header_minix_config_h+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841fi
4842{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4843echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4844else
4845  # Is the header compilable?
4846{ echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4847echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4848cat >conftest.$ac_ext <<_ACEOF
4849/* confdefs.h.  */
4850_ACEOF
4851cat confdefs.h >>conftest.$ac_ext
4852cat >>conftest.$ac_ext <<_ACEOF
4853/* end confdefs.h.  */
4854$ac_includes_default
4855#include <minix/config.h>
4856_ACEOF
4857rm -f conftest.$ac_objext
4858if { (ac_try="$ac_compile"
4859case "(($ac_try" in
4860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861  *) ac_try_echo=$ac_try;;
4862esac
4863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4864  (eval "$ac_compile") 2>conftest.er1
4865  ac_status=$?
4866  grep -v '^ *+' conftest.er1 >conftest.err
4867  rm -f conftest.er1
4868  cat conftest.err >&5
4869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870  (exit $ac_status); } && {
4871	 test -z "$ac_cxx_werror_flag" ||
4872	 test ! -s conftest.err
4873       } && test -s conftest.$ac_objext; then
4874  ac_header_compiler=yes
4875else
4876  echo "$as_me: failed program was:" >&5
4877sed 's/^/| /' conftest.$ac_ext >&5
4878
4879	ac_header_compiler=no
4880fi
4881
4882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4884echo "${ECHO_T}$ac_header_compiler" >&6; }
4885
4886# Is the header present?
4887{ echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4888echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4889cat >conftest.$ac_ext <<_ACEOF
4890/* confdefs.h.  */
4891_ACEOF
4892cat confdefs.h >>conftest.$ac_ext
4893cat >>conftest.$ac_ext <<_ACEOF
4894/* end confdefs.h.  */
4895#include <minix/config.h>
4896_ACEOF
4897if { (ac_try="$ac_cpp conftest.$ac_ext"
4898case "(($ac_try" in
4899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900  *) ac_try_echo=$ac_try;;
4901esac
4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4904  ac_status=$?
4905  grep -v '^ *+' conftest.er1 >conftest.err
4906  rm -f conftest.er1
4907  cat conftest.err >&5
4908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909  (exit $ac_status); } >/dev/null && {
4910	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4911	 test ! -s conftest.err
4912       }; then
4913  ac_header_preproc=yes
4914else
4915  echo "$as_me: failed program was:" >&5
4916sed 's/^/| /' conftest.$ac_ext >&5
4917
4918  ac_header_preproc=no
4919fi
4920
4921rm -f conftest.err conftest.$ac_ext
4922{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4923echo "${ECHO_T}$ac_header_preproc" >&6; }
4924
4925# So?  What about this header?
4926case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4927  yes:no: )
4928    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4929echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4930    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4931echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4932    ac_header_preproc=yes
4933    ;;
4934  no:yes:* )
4935    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4936echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4937    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4938echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4939    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4940echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4941    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4942echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4943    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4944echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4945    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4946echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4947    ( cat <<\_ASBOX
4948## ---------------------------------------- ##
4949## Report this to protobuf@googlegroups.com ##
4950## ---------------------------------------- ##
4951_ASBOX
4952     ) | sed "s/^/$as_me: WARNING:     /" >&2
4953    ;;
4954esac
4955{ echo "$as_me:$LINENO: checking for minix/config.h" >&5
4956echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4957if test "${ac_cv_header_minix_config_h+set}" = set; then
4958  echo $ECHO_N "(cached) $ECHO_C" >&6
4959else
4960  ac_cv_header_minix_config_h=$ac_header_preproc
4961fi
4962{ echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4963echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4964
4965fi
4966if test $ac_cv_header_minix_config_h = yes; then
4967  MINIX=yes
4968else
4969  MINIX=
4970fi
4971
4972
4973if test "$MINIX" = yes; then
4974
4975cat >>confdefs.h <<\_ACEOF
4976#define _POSIX_SOURCE 1
4977_ACEOF
4978
4979
4980cat >>confdefs.h <<\_ACEOF
4981#define _POSIX_1_SOURCE 2
4982_ACEOF
4983
4984
4985cat >>confdefs.h <<\_ACEOF
4986#define _MINIX 1
4987_ACEOF
4988
4989fi
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003  { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5004echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
5005if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5006  echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008  cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h.  */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h.  */
5014
5015#	  define __EXTENSIONS__ 1
5016	  $ac_includes_default
5017int
5018main ()
5019{
5020
5021  ;
5022  return 0;
5023}
5024_ACEOF
5025rm -f conftest.$ac_objext
5026if { (ac_try="$ac_compile"
5027case "(($ac_try" in
5028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5029  *) ac_try_echo=$ac_try;;
5030esac
5031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5032  (eval "$ac_compile") 2>conftest.er1
5033  ac_status=$?
5034  grep -v '^ *+' conftest.er1 >conftest.err
5035  rm -f conftest.er1
5036  cat conftest.err >&5
5037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038  (exit $ac_status); } && {
5039	 test -z "$ac_cxx_werror_flag" ||
5040	 test ! -s conftest.err
5041       } && test -s conftest.$ac_objext; then
5042  ac_cv_safe_to_define___extensions__=yes
5043else
5044  echo "$as_me: failed program was:" >&5
5045sed 's/^/| /' conftest.$ac_ext >&5
5046
5047	ac_cv_safe_to_define___extensions__=no
5048fi
5049
5050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5051fi
5052{ echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5053echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
5054  test $ac_cv_safe_to_define___extensions__ = yes &&
5055    cat >>confdefs.h <<\_ACEOF
5056#define __EXTENSIONS__ 1
5057_ACEOF
5058
5059  cat >>confdefs.h <<\_ACEOF
5060#define _POSIX_PTHREAD_SEMANTICS 1
5061_ACEOF
5062
5063  cat >>confdefs.h <<\_ACEOF
5064#define _TANDEM_SOURCE 1
5065_ACEOF
5066
5067
5068
5069
5070 if test "$GCC" = yes; then
5071  GCC_TRUE=
5072  GCC_FALSE='#'
5073else
5074  GCC_TRUE='#'
5075  GCC_FALSE=
5076fi
5077   # let the Makefile know if we're gcc
5078
5079# test_util.cc takes forever to compile with GCC and optimization turned on.
5080{ echo "$as_me:$LINENO: checking C++ compiler flags..." >&5
5081echo $ECHO_N "checking C++ compiler flags...... $ECHO_C" >&6; }
5082if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then
5083
5084  if test "$GCC" = "yes"; then
5085
5086    PROTOBUF_OPT_FLAG="-O2"
5087    CXXFLAGS="${CXXFLAGS} -g"
5088
5089fi
5090
5091
5092  # Protocol Buffers contains several checks that are intended to be used only
5093  # for debugging and which might hurt performance.  Most users are probably
5094  # end users who don't want these checks, so add -DNDEBUG by default.
5095  CXXFLAGS="$CXXFLAGS -DNDEBUG"
5096
5097  { echo "$as_me:$LINENO: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5
5098echo "${ECHO_T}use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; }
5099
5100else
5101
5102  { echo "$as_me:$LINENO: result: use user-supplied: $CXXFLAGS" >&5
5103echo "${ECHO_T}use user-supplied: $CXXFLAGS" >&6; }
5104
5105fi
5106
5107
5108
5109
5110
5111
5112  ac_ext=cpp
5113ac_cpp='$CXXCPP $CPPFLAGS'
5114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5117
5118  { echo "$as_me:$LINENO: checking whether __SUNPRO_CC is declared" >&5
5119echo $ECHO_N "checking whether __SUNPRO_CC is declared... $ECHO_C" >&6; }
5120if test "${ac_cv_have_decl___SUNPRO_CC+set}" = set; then
5121  echo $ECHO_N "(cached) $ECHO_C" >&6
5122else
5123  cat >conftest.$ac_ext <<_ACEOF
5124/* confdefs.h.  */
5125_ACEOF
5126cat confdefs.h >>conftest.$ac_ext
5127cat >>conftest.$ac_ext <<_ACEOF
5128/* end confdefs.h.  */
5129$ac_includes_default
5130int
5131main ()
5132{
5133#ifndef __SUNPRO_CC
5134  (void) __SUNPRO_CC;
5135#endif
5136
5137  ;
5138  return 0;
5139}
5140_ACEOF
5141rm -f conftest.$ac_objext
5142if { (ac_try="$ac_compile"
5143case "(($ac_try" in
5144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145  *) ac_try_echo=$ac_try;;
5146esac
5147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148  (eval "$ac_compile") 2>conftest.er1
5149  ac_status=$?
5150  grep -v '^ *+' conftest.er1 >conftest.err
5151  rm -f conftest.er1
5152  cat conftest.err >&5
5153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154  (exit $ac_status); } && {
5155	 test -z "$ac_cxx_werror_flag" ||
5156	 test ! -s conftest.err
5157       } && test -s conftest.$ac_objext; then
5158  ac_cv_have_decl___SUNPRO_CC=yes
5159else
5160  echo "$as_me: failed program was:" >&5
5161sed 's/^/| /' conftest.$ac_ext >&5
5162
5163	ac_cv_have_decl___SUNPRO_CC=no
5164fi
5165
5166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167fi
5168{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_CC" >&5
5169echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_CC" >&6; }
5170if test $ac_cv_have_decl___SUNPRO_CC = yes; then
5171  SUNCC="yes"
5172else
5173  SUNCC="no"
5174fi
5175
5176  ac_ext=cpp
5177ac_cpp='$CXXCPP $CPPFLAGS'
5178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5181
5182
5183
5184  # Check whether --enable-64bit-solaris was given.
5185if test "${enable_64bit_solaris+set}" = set; then
5186  enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval"
5187else
5188  ac_enable_64bit="yes"
5189fi
5190
5191
5192  if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then
5193
5194            CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}"
5195
5196fi
5197
5198
5199  case $host_os in
5200    *solaris*)
5201      for ac_prog in isainfo
5202do
5203  # Extract the first word of "$ac_prog", so it can be a program name with args.
5204set dummy $ac_prog; ac_word=$2
5205{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207if test "${ac_cv_prog_ISAINFO+set}" = set; then
5208  echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210  if test -n "$ISAINFO"; then
5211  ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test.
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216  IFS=$as_save_IFS
5217  test -z "$as_dir" && as_dir=.
5218  for ac_exec_ext in '' $ac_executable_extensions; do
5219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5220    ac_cv_prog_ISAINFO="$ac_prog"
5221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222    break 2
5223  fi
5224done
5225done
5226IFS=$as_save_IFS
5227
5228fi
5229fi
5230ISAINFO=$ac_cv_prog_ISAINFO
5231if test -n "$ISAINFO"; then
5232  { echo "$as_me:$LINENO: result: $ISAINFO" >&5
5233echo "${ECHO_T}$ISAINFO" >&6; }
5234else
5235  { echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6; }
5237fi
5238
5239
5240  test -n "$ISAINFO" && break
5241done
5242test -n "$ISAINFO" || ISAINFO="no"
5243
5244      if test "x$ISAINFO" != "xno"; then
5245  isainfo_b=`${ISAINFO} -b`
5246else
5247  isainfo_b="x"
5248fi
5249
5250
5251      if test "$isainfo_b" != "x"; then
5252
5253
5254        isainfo_k=`${ISAINFO} -k`
5255
5256        if test "x$ac_enable_64bit" = "xyes"; then
5257
5258
5259          if test "x$libdir" = "x\${exec_prefix}/lib"; then
5260
5261                                 libdir="${libdir}/${isainfo_k}"
5262
5263fi
5264
5265
5266                                        if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then
5267
5268            CXXFLAGS="${CXXFLAGS} -m64"
5269            ac_cv_env_CXXFLAGS_set=set
5270            ac_cv_env_CXXFLAGS_value='-m64'
5271
5272fi
5273
5274
5275          if test "x${ac_cv_env_CFLAGS_set}" = "x"; then
5276
5277            CFLAGS="${CFLAGS} -m64"
5278            ac_cv_env_CFLAGS_set=set
5279            ac_cv_env_CFLAGS_value='-m64'
5280
5281fi
5282
5283
5284          if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then
5285
5286            CXXFLAGS="-xmemalign=8s ${CXXFLAGS}"
5287
5288fi
5289
5290
5291fi
5292
5293
5294fi
5295
5296    ;;
5297  esac
5298
5299
5300
5301# Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd
5302# to the link
5303case `pwd` in
5304  *\ * | *\	*)
5305    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5306echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5307esac
5308
5309
5310
5311macro_version='2.2.4'
5312macro_revision='1.2976'
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326ltmain="$ac_aux_dir/ltmain.sh"
5327
5328{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5329echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5330if test "${ac_cv_path_SED+set}" = set; then
5331  echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5334     for ac_i in 1 2 3 4 5 6 7; do
5335       ac_script="$ac_script$as_nl$ac_script"
5336     done
5337     echo "$ac_script" | sed 99q >conftest.sed
5338     $as_unset ac_script || ac_script=
5339     # Extract the first word of "sed gsed" to use in msg output
5340if test -z "$SED"; then
5341set dummy sed gsed; ac_prog_name=$2
5342if test "${ac_cv_path_SED+set}" = set; then
5343  echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345  ac_path_SED_found=false
5346# Loop through the user's path and test for each of PROGNAME-LIST
5347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348for as_dir in $PATH
5349do
5350  IFS=$as_save_IFS
5351  test -z "$as_dir" && as_dir=.
5352  for ac_prog in sed gsed; do
5353  for ac_exec_ext in '' $ac_executable_extensions; do
5354    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5355    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5356    # Check for GNU ac_path_SED and select it if it is found.
5357  # Check for GNU $ac_path_SED
5358case `"$ac_path_SED" --version 2>&1` in
5359*GNU*)
5360  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5361*)
5362  ac_count=0
5363  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5364  while :
5365  do
5366    cat "conftest.in" "conftest.in" >"conftest.tmp"
5367    mv "conftest.tmp" "conftest.in"
5368    cp "conftest.in" "conftest.nl"
5369    echo '' >> "conftest.nl"
5370    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372    ac_count=`expr $ac_count + 1`
5373    if test $ac_count -gt ${ac_path_SED_max-0}; then
5374      # Best one so far, save it but keep looking for a better one
5375      ac_cv_path_SED="$ac_path_SED"
5376      ac_path_SED_max=$ac_count
5377    fi
5378    # 10*(2^10) chars as input seems more than enough
5379    test $ac_count -gt 10 && break
5380  done
5381  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382esac
5383
5384
5385    $ac_path_SED_found && break 3
5386  done
5387done
5388
5389done
5390IFS=$as_save_IFS
5391
5392
5393fi
5394
5395SED="$ac_cv_path_SED"
5396if test -z "$SED"; then
5397  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5398echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5399   { (exit 1); exit 1; }; }
5400fi
5401
5402else
5403  ac_cv_path_SED=$SED
5404fi
5405
5406fi
5407{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5408echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5409 SED="$ac_cv_path_SED"
5410  rm -f conftest.sed
5411
5412test -z "$SED" && SED=sed
5413Xsed="$SED -e 1s/^X//"
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425{ echo "$as_me:$LINENO: checking for fgrep" >&5
5426echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5427if test "${ac_cv_path_FGREP+set}" = set; then
5428  echo $ECHO_N "(cached) $ECHO_C" >&6
5429else
5430  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5431   then ac_cv_path_FGREP="$GREP -F"
5432   else
5433     # Extract the first word of "fgrep" to use in msg output
5434if test -z "$FGREP"; then
5435set dummy fgrep; ac_prog_name=$2
5436if test "${ac_cv_path_FGREP+set}" = set; then
5437  echo $ECHO_N "(cached) $ECHO_C" >&6
5438else
5439  ac_path_FGREP_found=false
5440# Loop through the user's path and test for each of PROGNAME-LIST
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5443do
5444  IFS=$as_save_IFS
5445  test -z "$as_dir" && as_dir=.
5446  for ac_prog in fgrep; do
5447  for ac_exec_ext in '' $ac_executable_extensions; do
5448    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5449    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5450    # Check for GNU ac_path_FGREP and select it if it is found.
5451  # Check for GNU $ac_path_FGREP
5452case `"$ac_path_FGREP" --version 2>&1` in
5453*GNU*)
5454  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5455*)
5456  ac_count=0
5457  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5458  while :
5459  do
5460    cat "conftest.in" "conftest.in" >"conftest.tmp"
5461    mv "conftest.tmp" "conftest.in"
5462    cp "conftest.in" "conftest.nl"
5463    echo 'FGREP' >> "conftest.nl"
5464    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5465    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5466    ac_count=`expr $ac_count + 1`
5467    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5468      # Best one so far, save it but keep looking for a better one
5469      ac_cv_path_FGREP="$ac_path_FGREP"
5470      ac_path_FGREP_max=$ac_count
5471    fi
5472    # 10*(2^10) chars as input seems more than enough
5473    test $ac_count -gt 10 && break
5474  done
5475  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5476esac
5477
5478
5479    $ac_path_FGREP_found && break 3
5480  done
5481done
5482
5483done
5484IFS=$as_save_IFS
5485
5486
5487fi
5488
5489FGREP="$ac_cv_path_FGREP"
5490if test -z "$FGREP"; then
5491  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5492echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5493   { (exit 1); exit 1; }; }
5494fi
5495
5496else
5497  ac_cv_path_FGREP=$FGREP
5498fi
5499
5500
5501   fi
5502fi
5503{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5504echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5505 FGREP="$ac_cv_path_FGREP"
5506
5507
5508test -z "$GREP" && GREP=grep
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528# Check whether --with-gnu-ld was given.
5529if test "${with_gnu_ld+set}" = set; then
5530  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5531else
5532  with_gnu_ld=no
5533fi
5534
5535ac_prog=ld
5536if test "$GCC" = yes; then
5537  # Check if gcc -print-prog-name=ld gives a path.
5538  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5539echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5540  case $host in
5541  *-*-mingw*)
5542    # gcc leaves a trailing carriage return which upsets mingw
5543    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5544  *)
5545    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5546  esac
5547  case $ac_prog in
5548    # Accept absolute paths.
5549    [\\/]* | ?:[\\/]*)
5550      re_direlt='/[^/][^/]*/\.\./'
5551      # Canonicalize the pathname of ld
5552      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5553      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5554	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5555      done
5556      test -z "$LD" && LD="$ac_prog"
5557      ;;
5558  "")
5559    # If it fails, then pretend we aren't using GCC.
5560    ac_prog=ld
5561    ;;
5562  *)
5563    # If it is relative, then search for the first ld in PATH.
5564    with_gnu_ld=unknown
5565    ;;
5566  esac
5567elif test "$with_gnu_ld" = yes; then
5568  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5569echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5570else
5571  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5572echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5573fi
5574if test "${lt_cv_path_LD+set}" = set; then
5575  echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577  if test -z "$LD"; then
5578  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5579  for ac_dir in $PATH; do
5580    IFS="$lt_save_ifs"
5581    test -z "$ac_dir" && ac_dir=.
5582    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5583      lt_cv_path_LD="$ac_dir/$ac_prog"
5584      # Check to see if the program is GNU ld.  I'd rather use --version,
5585      # but apparently some variants of GNU ld only accept -v.
5586      # Break only if it was the GNU/non-GNU ld that we prefer.
5587      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5588      *GNU* | *'with BFD'*)
5589	test "$with_gnu_ld" != no && break
5590	;;
5591      *)
5592	test "$with_gnu_ld" != yes && break
5593	;;
5594      esac
5595    fi
5596  done
5597  IFS="$lt_save_ifs"
5598else
5599  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5600fi
5601fi
5602
5603LD="$lt_cv_path_LD"
5604if test -n "$LD"; then
5605  { echo "$as_me:$LINENO: result: $LD" >&5
5606echo "${ECHO_T}$LD" >&6; }
5607else
5608  { echo "$as_me:$LINENO: result: no" >&5
5609echo "${ECHO_T}no" >&6; }
5610fi
5611test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5612echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5613   { (exit 1); exit 1; }; }
5614{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5615echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5616if test "${lt_cv_prog_gnu_ld+set}" = set; then
5617  echo $ECHO_N "(cached) $ECHO_C" >&6
5618else
5619  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5620case `$LD -v 2>&1 </dev/null` in
5621*GNU* | *'with BFD'*)
5622  lt_cv_prog_gnu_ld=yes
5623  ;;
5624*)
5625  lt_cv_prog_gnu_ld=no
5626  ;;
5627esac
5628fi
5629{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5630echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5631with_gnu_ld=$lt_cv_prog_gnu_ld
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5642echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5643if test "${lt_cv_path_NM+set}" = set; then
5644  echo $ECHO_N "(cached) $ECHO_C" >&6
5645else
5646  if test -n "$NM"; then
5647  # Let the user override the test.
5648  lt_cv_path_NM="$NM"
5649else
5650  lt_nm_to_check="${ac_tool_prefix}nm"
5651  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5652    lt_nm_to_check="$lt_nm_to_check nm"
5653  fi
5654  for lt_tmp_nm in $lt_nm_to_check; do
5655    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5656    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5657      IFS="$lt_save_ifs"
5658      test -z "$ac_dir" && ac_dir=.
5659      tmp_nm="$ac_dir/$lt_tmp_nm"
5660      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5661	# Check to see if the nm accepts a BSD-compat flag.
5662	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5663	#   nm: unknown option "B" ignored
5664	# Tru64's nm complains that /dev/null is an invalid object file
5665	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5666	*/dev/null* | *'Invalid file or object type'*)
5667	  lt_cv_path_NM="$tmp_nm -B"
5668	  break
5669	  ;;
5670	*)
5671	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5672	  */dev/null*)
5673	    lt_cv_path_NM="$tmp_nm -p"
5674	    break
5675	    ;;
5676	  *)
5677	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5678	    continue # so that we can try to find one that supports BSD flags
5679	    ;;
5680	  esac
5681	  ;;
5682	esac
5683      fi
5684    done
5685    IFS="$lt_save_ifs"
5686  done
5687  : ${lt_cv_path_NM=no}
5688fi
5689fi
5690{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5691echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5692if test "$lt_cv_path_NM" != "no"; then
5693  NM="$lt_cv_path_NM"
5694else
5695  # Didn't find any BSD compatible name lister, look for dumpbin.
5696  if test -n "$ac_tool_prefix"; then
5697  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5698  do
5699    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5700set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5701{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5703if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5704  echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706  if test -n "$DUMPBIN"; then
5707  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712  IFS=$as_save_IFS
5713  test -z "$as_dir" && as_dir=.
5714  for ac_exec_ext in '' $ac_executable_extensions; do
5715  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5716    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718    break 2
5719  fi
5720done
5721done
5722IFS=$as_save_IFS
5723
5724fi
5725fi
5726DUMPBIN=$ac_cv_prog_DUMPBIN
5727if test -n "$DUMPBIN"; then
5728  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5729echo "${ECHO_T}$DUMPBIN" >&6; }
5730else
5731  { echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6; }
5733fi
5734
5735
5736    test -n "$DUMPBIN" && break
5737  done
5738fi
5739if test -z "$DUMPBIN"; then
5740  ac_ct_DUMPBIN=$DUMPBIN
5741  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5742do
5743  # Extract the first word of "$ac_prog", so it can be a program name with args.
5744set dummy $ac_prog; ac_word=$2
5745{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5746echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5747if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5748  echo $ECHO_N "(cached) $ECHO_C" >&6
5749else
5750  if test -n "$ac_ct_DUMPBIN"; then
5751  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5752else
5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756  IFS=$as_save_IFS
5757  test -z "$as_dir" && as_dir=.
5758  for ac_exec_ext in '' $ac_executable_extensions; do
5759  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5761    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762    break 2
5763  fi
5764done
5765done
5766IFS=$as_save_IFS
5767
5768fi
5769fi
5770ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5771if test -n "$ac_ct_DUMPBIN"; then
5772  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5773echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5774else
5775  { echo "$as_me:$LINENO: result: no" >&5
5776echo "${ECHO_T}no" >&6; }
5777fi
5778
5779
5780  test -n "$ac_ct_DUMPBIN" && break
5781done
5782
5783  if test "x$ac_ct_DUMPBIN" = x; then
5784    DUMPBIN=":"
5785  else
5786    case $cross_compiling:$ac_tool_warned in
5787yes:)
5788{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5789whose name does not start with the host triplet.  If you think this
5790configuration is useful to you, please write to autoconf@gnu.org." >&5
5791echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5792whose name does not start with the host triplet.  If you think this
5793configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5794ac_tool_warned=yes ;;
5795esac
5796    DUMPBIN=$ac_ct_DUMPBIN
5797  fi
5798fi
5799
5800
5801  if test "$DUMPBIN" != ":"; then
5802    NM="$DUMPBIN"
5803  fi
5804fi
5805test -z "$NM" && NM=nm
5806
5807
5808
5809
5810
5811
5812{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5813echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5814if test "${lt_cv_nm_interface+set}" = set; then
5815  echo $ECHO_N "(cached) $ECHO_C" >&6
5816else
5817  lt_cv_nm_interface="BSD nm"
5818  echo "int some_variable = 0;" > conftest.$ac_ext
5819  (eval echo "\"\$as_me:5819: $ac_compile\"" >&5)
5820  (eval "$ac_compile" 2>conftest.err)
5821  cat conftest.err >&5
5822  (eval echo "\"\$as_me:5822: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5823  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5824  cat conftest.err >&5
5825  (eval echo "\"\$as_me:5825: output\"" >&5)
5826  cat conftest.out >&5
5827  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5828    lt_cv_nm_interface="MS dumpbin"
5829  fi
5830  rm -f conftest*
5831fi
5832{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5833echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
5834
5835{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
5836echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5837LN_S=$as_ln_s
5838if test "$LN_S" = "ln -s"; then
5839  { echo "$as_me:$LINENO: result: yes" >&5
5840echo "${ECHO_T}yes" >&6; }
5841else
5842  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5843echo "${ECHO_T}no, using $LN_S" >&6; }
5844fi
5845
5846# find the maximum length of command line arguments
5847{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5848echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
5849if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5850  echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852    i=0
5853  teststring="ABCD"
5854
5855  case $build_os in
5856  msdosdjgpp*)
5857    # On DJGPP, this test can blow up pretty badly due to problems in libc
5858    # (any single argument exceeding 2000 bytes causes a buffer overrun
5859    # during glob expansion).  Even if it were fixed, the result of this
5860    # check would be larger than it should be.
5861    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5862    ;;
5863
5864  gnu*)
5865    # Under GNU Hurd, this test is not required because there is
5866    # no limit to the length of command line arguments.
5867    # Libtool will interpret -1 as no limit whatsoever
5868    lt_cv_sys_max_cmd_len=-1;
5869    ;;
5870
5871  cygwin* | mingw*)
5872    # On Win9x/ME, this test blows up -- it succeeds, but takes
5873    # about 5 minutes as the teststring grows exponentially.
5874    # Worse, since 9x/ME are not pre-emptively multitasking,
5875    # you end up with a "frozen" computer, even though with patience
5876    # the test eventually succeeds (with a max line length of 256k).
5877    # Instead, let's just punt: use the minimum linelength reported by
5878    # all of the supported platforms: 8192 (on NT/2K/XP).
5879    lt_cv_sys_max_cmd_len=8192;
5880    ;;
5881
5882  amigaos*)
5883    # On AmigaOS with pdksh, this test takes hours, literally.
5884    # So we just punt and use a minimum line length of 8192.
5885    lt_cv_sys_max_cmd_len=8192;
5886    ;;
5887
5888  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5889    # This has been around since 386BSD, at least.  Likely further.
5890    if test -x /sbin/sysctl; then
5891      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5892    elif test -x /usr/sbin/sysctl; then
5893      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5894    else
5895      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5896    fi
5897    # And add a safety zone
5898    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5899    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5900    ;;
5901
5902  interix*)
5903    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5904    lt_cv_sys_max_cmd_len=196608
5905    ;;
5906
5907  osf*)
5908    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5909    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5910    # nice to cause kernel panics so lets avoid the loop below.
5911    # First set a reasonable default.
5912    lt_cv_sys_max_cmd_len=16384
5913    #
5914    if test -x /sbin/sysconfig; then
5915      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5916        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5917      esac
5918    fi
5919    ;;
5920  sco3.2v5*)
5921    lt_cv_sys_max_cmd_len=102400
5922    ;;
5923  sysv5* | sco5v6* | sysv4.2uw2*)
5924    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5925    if test -n "$kargmax"; then
5926      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5927    else
5928      lt_cv_sys_max_cmd_len=32768
5929    fi
5930    ;;
5931  *)
5932    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5933    if test -n "$lt_cv_sys_max_cmd_len"; then
5934      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5935      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5936    else
5937      # Make teststring a little bigger before we do anything with it.
5938      # a 1K string should be a reasonable start.
5939      for i in 1 2 3 4 5 6 7 8 ; do
5940        teststring=$teststring$teststring
5941      done
5942      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5943      # If test is not a shell built-in, we'll probably end up computing a
5944      # maximum length that is only half of the actual maximum length, but
5945      # we can't tell.
5946      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5947	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5948	      test $i != 17 # 1/2 MB should be enough
5949      do
5950        i=`expr $i + 1`
5951        teststring=$teststring$teststring
5952      done
5953      # Only check the string length outside the loop.
5954      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5955      teststring=
5956      # Add a significant safety factor because C++ compilers can tack on
5957      # massive amounts of additional arguments before passing them to the
5958      # linker.  It appears as though 1/2 is a usable value.
5959      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5960    fi
5961    ;;
5962  esac
5963
5964fi
5965
5966if test -n $lt_cv_sys_max_cmd_len ; then
5967  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5968echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5969else
5970  { echo "$as_me:$LINENO: result: none" >&5
5971echo "${ECHO_T}none" >&6; }
5972fi
5973max_cmd_len=$lt_cv_sys_max_cmd_len
5974
5975
5976
5977
5978
5979
5980: ${CP="cp -f"}
5981: ${MV="mv -f"}
5982: ${RM="rm -f"}
5983
5984{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5985echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5986# Try some XSI features
5987xsi_shell=no
5988( _lt_dummy="a/b/c"
5989  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5990      = c,a/b,, \
5991    && eval 'test $(( 1 + 1 )) -eq 2 \
5992    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5993  && xsi_shell=yes
5994{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
5995echo "${ECHO_T}$xsi_shell" >&6; }
5996
5997
5998{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5999echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6000lt_shell_append=no
6001( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6002    >/dev/null 2>&1 \
6003  && lt_shell_append=yes
6004{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6005echo "${ECHO_T}$lt_shell_append" >&6; }
6006
6007
6008if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6009  lt_unset=unset
6010else
6011  lt_unset=false
6012fi
6013
6014
6015
6016
6017
6018# test EBCDIC or ASCII
6019case `echo X|tr X '\101'` in
6020 A) # ASCII based system
6021    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6022  lt_SP2NL='tr \040 \012'
6023  lt_NL2SP='tr \015\012 \040\040'
6024  ;;
6025 *) # EBCDIC based system
6026  lt_SP2NL='tr \100 \n'
6027  lt_NL2SP='tr \r\n \100\100'
6028  ;;
6029esac
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6040echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6041if test "${lt_cv_ld_reload_flag+set}" = set; then
6042  echo $ECHO_N "(cached) $ECHO_C" >&6
6043else
6044  lt_cv_ld_reload_flag='-r'
6045fi
6046{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6047echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6048reload_flag=$lt_cv_ld_reload_flag
6049case $reload_flag in
6050"" | " "*) ;;
6051*) reload_flag=" $reload_flag" ;;
6052esac
6053reload_cmds='$LD$reload_flag -o $output$reload_objs'
6054case $host_os in
6055  darwin*)
6056    if test "$GCC" = yes; then
6057      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6058    else
6059      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6060    fi
6061    ;;
6062esac
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6074echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6075if test "${lt_cv_deplibs_check_method+set}" = set; then
6076  echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078  lt_cv_file_magic_cmd='$MAGIC_CMD'
6079lt_cv_file_magic_test_file=
6080lt_cv_deplibs_check_method='unknown'
6081# Need to set the preceding variable on all platforms that support
6082# interlibrary dependencies.
6083# 'none' -- dependencies not supported.
6084# `unknown' -- same as none, but documents that we really don't know.
6085# 'pass_all' -- all dependencies passed with no checks.
6086# 'test_compile' -- check by making test program.
6087# 'file_magic [[regex]]' -- check by looking for files in library path
6088# which responds to the $file_magic_cmd with a given extended regex.
6089# If you have `file' or equivalent on your system and you're not sure
6090# whether `pass_all' will *always* work, you probably want this one.
6091
6092case $host_os in
6093aix[4-9]*)
6094  lt_cv_deplibs_check_method=pass_all
6095  ;;
6096
6097beos*)
6098  lt_cv_deplibs_check_method=pass_all
6099  ;;
6100
6101bsdi[45]*)
6102  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6103  lt_cv_file_magic_cmd='/usr/bin/file -L'
6104  lt_cv_file_magic_test_file=/shlib/libc.so
6105  ;;
6106
6107cygwin*)
6108  # func_win32_libid is a shell function defined in ltmain.sh
6109  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6110  lt_cv_file_magic_cmd='func_win32_libid'
6111  ;;
6112
6113mingw* | pw32*)
6114  # Base MSYS/MinGW do not provide the 'file' command needed by
6115  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6116  # unless we find 'file', for example because we are cross-compiling.
6117  if ( file / ) >/dev/null 2>&1; then
6118    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6119    lt_cv_file_magic_cmd='func_win32_libid'
6120  else
6121    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6122    lt_cv_file_magic_cmd='$OBJDUMP -f'
6123  fi
6124  ;;
6125
6126darwin* | rhapsody*)
6127  lt_cv_deplibs_check_method=pass_all
6128  ;;
6129
6130freebsd* | dragonfly*)
6131  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6132    case $host_cpu in
6133    i*86 )
6134      # Not sure whether the presence of OpenBSD here was a mistake.
6135      # Let's accept both of them until this is cleared up.
6136      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6137      lt_cv_file_magic_cmd=/usr/bin/file
6138      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6139      ;;
6140    esac
6141  else
6142    lt_cv_deplibs_check_method=pass_all
6143  fi
6144  ;;
6145
6146gnu*)
6147  lt_cv_deplibs_check_method=pass_all
6148  ;;
6149
6150hpux10.20* | hpux11*)
6151  lt_cv_file_magic_cmd=/usr/bin/file
6152  case $host_cpu in
6153  ia64*)
6154    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6155    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6156    ;;
6157  hppa*64*)
6158    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]'
6159    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6160    ;;
6161  *)
6162    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6163    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6164    ;;
6165  esac
6166  ;;
6167
6168interix[3-9]*)
6169  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6170  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6171  ;;
6172
6173irix5* | irix6* | nonstopux*)
6174  case $LD in
6175  *-32|*"-32 ") libmagic=32-bit;;
6176  *-n32|*"-n32 ") libmagic=N32;;
6177  *-64|*"-64 ") libmagic=64-bit;;
6178  *) libmagic=never-match;;
6179  esac
6180  lt_cv_deplibs_check_method=pass_all
6181  ;;
6182
6183# This must be Linux ELF.
6184linux* | k*bsd*-gnu)
6185  lt_cv_deplibs_check_method=pass_all
6186  ;;
6187
6188netbsd*)
6189  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6190    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6191  else
6192    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6193  fi
6194  ;;
6195
6196newos6*)
6197  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6198  lt_cv_file_magic_cmd=/usr/bin/file
6199  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6200  ;;
6201
6202*nto* | *qnx*)
6203  lt_cv_deplibs_check_method=pass_all
6204  ;;
6205
6206openbsd*)
6207  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6208    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6209  else
6210    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6211  fi
6212  ;;
6213
6214osf3* | osf4* | osf5*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218rdos*)
6219  lt_cv_deplibs_check_method=pass_all
6220  ;;
6221
6222solaris*)
6223  lt_cv_deplibs_check_method=pass_all
6224  ;;
6225
6226sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6227  lt_cv_deplibs_check_method=pass_all
6228  ;;
6229
6230sysv4 | sysv4.3*)
6231  case $host_vendor in
6232  motorola)
6233    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]'
6234    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6235    ;;
6236  ncr)
6237    lt_cv_deplibs_check_method=pass_all
6238    ;;
6239  sequent)
6240    lt_cv_file_magic_cmd='/bin/file'
6241    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6242    ;;
6243  sni)
6244    lt_cv_file_magic_cmd='/bin/file'
6245    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6246    lt_cv_file_magic_test_file=/lib/libc.so
6247    ;;
6248  siemens)
6249    lt_cv_deplibs_check_method=pass_all
6250    ;;
6251  pc)
6252    lt_cv_deplibs_check_method=pass_all
6253    ;;
6254  esac
6255  ;;
6256
6257tpf*)
6258  lt_cv_deplibs_check_method=pass_all
6259  ;;
6260esac
6261
6262fi
6263{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6264echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6265file_magic_cmd=$lt_cv_file_magic_cmd
6266deplibs_check_method=$lt_cv_deplibs_check_method
6267test -z "$deplibs_check_method" && deplibs_check_method=unknown
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280if test -n "$ac_tool_prefix"; then
6281  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6282set dummy ${ac_tool_prefix}ar; ac_word=$2
6283{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6285if test "${ac_cv_prog_AR+set}" = set; then
6286  echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288  if test -n "$AR"; then
6289  ac_cv_prog_AR="$AR" # Let the user override the test.
6290else
6291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6292for as_dir in $PATH
6293do
6294  IFS=$as_save_IFS
6295  test -z "$as_dir" && as_dir=.
6296  for ac_exec_ext in '' $ac_executable_extensions; do
6297  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6298    ac_cv_prog_AR="${ac_tool_prefix}ar"
6299    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6300    break 2
6301  fi
6302done
6303done
6304IFS=$as_save_IFS
6305
6306fi
6307fi
6308AR=$ac_cv_prog_AR
6309if test -n "$AR"; then
6310  { echo "$as_me:$LINENO: result: $AR" >&5
6311echo "${ECHO_T}$AR" >&6; }
6312else
6313  { echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6; }
6315fi
6316
6317
6318fi
6319if test -z "$ac_cv_prog_AR"; then
6320  ac_ct_AR=$AR
6321  # Extract the first word of "ar", so it can be a program name with args.
6322set dummy ar; ac_word=$2
6323{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6326  echo $ECHO_N "(cached) $ECHO_C" >&6
6327else
6328  if test -n "$ac_ct_AR"; then
6329  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334  IFS=$as_save_IFS
6335  test -z "$as_dir" && as_dir=.
6336  for ac_exec_ext in '' $ac_executable_extensions; do
6337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6338    ac_cv_prog_ac_ct_AR="ar"
6339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6340    break 2
6341  fi
6342done
6343done
6344IFS=$as_save_IFS
6345
6346fi
6347fi
6348ac_ct_AR=$ac_cv_prog_ac_ct_AR
6349if test -n "$ac_ct_AR"; then
6350  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6351echo "${ECHO_T}$ac_ct_AR" >&6; }
6352else
6353  { echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6; }
6355fi
6356
6357  if test "x$ac_ct_AR" = x; then
6358    AR="false"
6359  else
6360    case $cross_compiling:$ac_tool_warned in
6361yes:)
6362{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6363whose name does not start with the host triplet.  If you think this
6364configuration is useful to you, please write to autoconf@gnu.org." >&5
6365echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6366whose name does not start with the host triplet.  If you think this
6367configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370    AR=$ac_ct_AR
6371  fi
6372else
6373  AR="$ac_cv_prog_AR"
6374fi
6375
6376test -z "$AR" && AR=ar
6377test -z "$AR_FLAGS" && AR_FLAGS=cru
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389if test -n "$ac_tool_prefix"; then
6390  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6391set dummy ${ac_tool_prefix}strip; ac_word=$2
6392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6394if test "${ac_cv_prog_STRIP+set}" = set; then
6395  echo $ECHO_N "(cached) $ECHO_C" >&6
6396else
6397  if test -n "$STRIP"; then
6398  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6399else
6400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6401for as_dir in $PATH
6402do
6403  IFS=$as_save_IFS
6404  test -z "$as_dir" && as_dir=.
6405  for ac_exec_ext in '' $ac_executable_extensions; do
6406  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6407    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6408    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409    break 2
6410  fi
6411done
6412done
6413IFS=$as_save_IFS
6414
6415fi
6416fi
6417STRIP=$ac_cv_prog_STRIP
6418if test -n "$STRIP"; then
6419  { echo "$as_me:$LINENO: result: $STRIP" >&5
6420echo "${ECHO_T}$STRIP" >&6; }
6421else
6422  { echo "$as_me:$LINENO: result: no" >&5
6423echo "${ECHO_T}no" >&6; }
6424fi
6425
6426
6427fi
6428if test -z "$ac_cv_prog_STRIP"; then
6429  ac_ct_STRIP=$STRIP
6430  # Extract the first word of "strip", so it can be a program name with args.
6431set dummy strip; ac_word=$2
6432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6434if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6435  echo $ECHO_N "(cached) $ECHO_C" >&6
6436else
6437  if test -n "$ac_ct_STRIP"; then
6438  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443  IFS=$as_save_IFS
6444  test -z "$as_dir" && as_dir=.
6445  for ac_exec_ext in '' $ac_executable_extensions; do
6446  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447    ac_cv_prog_ac_ct_STRIP="strip"
6448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6449    break 2
6450  fi
6451done
6452done
6453IFS=$as_save_IFS
6454
6455fi
6456fi
6457ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6458if test -n "$ac_ct_STRIP"; then
6459  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6460echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6461else
6462  { echo "$as_me:$LINENO: result: no" >&5
6463echo "${ECHO_T}no" >&6; }
6464fi
6465
6466  if test "x$ac_ct_STRIP" = x; then
6467    STRIP=":"
6468  else
6469    case $cross_compiling:$ac_tool_warned in
6470yes:)
6471{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6472whose name does not start with the host triplet.  If you think this
6473configuration is useful to you, please write to autoconf@gnu.org." >&5
6474echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6475whose name does not start with the host triplet.  If you think this
6476configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6477ac_tool_warned=yes ;;
6478esac
6479    STRIP=$ac_ct_STRIP
6480  fi
6481else
6482  STRIP="$ac_cv_prog_STRIP"
6483fi
6484
6485test -z "$STRIP" && STRIP=:
6486
6487
6488
6489
6490
6491
6492if test -n "$ac_tool_prefix"; then
6493  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6494set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6497if test "${ac_cv_prog_RANLIB+set}" = set; then
6498  echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500  if test -n "$RANLIB"; then
6501  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6502else
6503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504for as_dir in $PATH
6505do
6506  IFS=$as_save_IFS
6507  test -z "$as_dir" && as_dir=.
6508  for ac_exec_ext in '' $ac_executable_extensions; do
6509  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6510    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6511    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6512    break 2
6513  fi
6514done
6515done
6516IFS=$as_save_IFS
6517
6518fi
6519fi
6520RANLIB=$ac_cv_prog_RANLIB
6521if test -n "$RANLIB"; then
6522  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6523echo "${ECHO_T}$RANLIB" >&6; }
6524else
6525  { echo "$as_me:$LINENO: result: no" >&5
6526echo "${ECHO_T}no" >&6; }
6527fi
6528
6529
6530fi
6531if test -z "$ac_cv_prog_RANLIB"; then
6532  ac_ct_RANLIB=$RANLIB
6533  # Extract the first word of "ranlib", so it can be a program name with args.
6534set dummy ranlib; ac_word=$2
6535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6537if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6538  echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540  if test -n "$ac_ct_RANLIB"; then
6541  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546  IFS=$as_save_IFS
6547  test -z "$as_dir" && as_dir=.
6548  for ac_exec_ext in '' $ac_executable_extensions; do
6549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550    ac_cv_prog_ac_ct_RANLIB="ranlib"
6551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552    break 2
6553  fi
6554done
6555done
6556IFS=$as_save_IFS
6557
6558fi
6559fi
6560ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6561if test -n "$ac_ct_RANLIB"; then
6562  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6563echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6564else
6565  { echo "$as_me:$LINENO: result: no" >&5
6566echo "${ECHO_T}no" >&6; }
6567fi
6568
6569  if test "x$ac_ct_RANLIB" = x; then
6570    RANLIB=":"
6571  else
6572    case $cross_compiling:$ac_tool_warned in
6573yes:)
6574{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6575whose name does not start with the host triplet.  If you think this
6576configuration is useful to you, please write to autoconf@gnu.org." >&5
6577echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6578whose name does not start with the host triplet.  If you think this
6579configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6580ac_tool_warned=yes ;;
6581esac
6582    RANLIB=$ac_ct_RANLIB
6583  fi
6584else
6585  RANLIB="$ac_cv_prog_RANLIB"
6586fi
6587
6588test -z "$RANLIB" && RANLIB=:
6589
6590
6591
6592
6593
6594
6595# Determine commands to create old-style static archives.
6596old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6597old_postinstall_cmds='chmod 644 $oldlib'
6598old_postuninstall_cmds=
6599
6600if test -n "$RANLIB"; then
6601  case $host_os in
6602  openbsd*)
6603    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6604    ;;
6605  *)
6606    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6607    ;;
6608  esac
6609  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6610fi
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645# If no C compiler was specified, use CC.
6646LTCC=${LTCC-"$CC"}
6647
6648# If no C compiler flags were specified, use CFLAGS.
6649LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6650
6651# Allow CC to be a program name with arguments.
6652compiler=$CC
6653
6654
6655# Check for command to grab the raw symbol name followed by C symbol from nm.
6656{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6657echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6658if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6659  echo $ECHO_N "(cached) $ECHO_C" >&6
6660else
6661
6662# These are sane defaults that work on at least a few old systems.
6663# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6664
6665# Character class describing NM global symbol codes.
6666symcode='[BCDEGRST]'
6667
6668# Regexp to match symbols that can be accessed directly from C.
6669sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6670
6671# Define system-specific variables.
6672case $host_os in
6673aix*)
6674  symcode='[BCDT]'
6675  ;;
6676cygwin* | mingw* | pw32*)
6677  symcode='[ABCDGISTW]'
6678  ;;
6679hpux*)
6680  if test "$host_cpu" = ia64; then
6681    symcode='[ABCDEGRST]'
6682  fi
6683  ;;
6684irix* | nonstopux*)
6685  symcode='[BCDEGRST]'
6686  ;;
6687osf*)
6688  symcode='[BCDEGQRST]'
6689  ;;
6690solaris*)
6691  symcode='[BDRT]'
6692  ;;
6693sco3.2v5*)
6694  symcode='[DT]'
6695  ;;
6696sysv4.2uw2*)
6697  symcode='[DT]'
6698  ;;
6699sysv5* | sco5v6* | unixware* | OpenUNIX*)
6700  symcode='[ABDT]'
6701  ;;
6702sysv4)
6703  symcode='[DFNSTU]'
6704  ;;
6705esac
6706
6707# If we're using GNU nm, then use its standard symbol codes.
6708case `$NM -V 2>&1` in
6709*GNU* | *'with BFD'*)
6710  symcode='[ABCDGIRSTW]' ;;
6711esac
6712
6713# Transform an extracted symbol line into a proper C declaration.
6714# Some systems (esp. on ia64) link data and code symbols differently,
6715# so use this general approach.
6716lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6717
6718# Transform an extracted symbol line into symbol name and symbol address
6719lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6720lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6721
6722# Handle CRLF in mingw tool chain
6723opt_cr=
6724case $build_os in
6725mingw*)
6726  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6727  ;;
6728esac
6729
6730# Try without a prefix underscore, then with it.
6731for ac_symprfx in "" "_"; do
6732
6733  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6734  symxfrm="\\1 $ac_symprfx\\2 \\2"
6735
6736  # Write the raw and C identifiers.
6737  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6738    # Fake it for dumpbin and say T for any non-static function
6739    # and D for any global variable.
6740    # Also find C++ and __fastcall symbols from MSVC++,
6741    # which start with @ or ?.
6742    lt_cv_sys_global_symbol_pipe="$AWK '"\
6743"     {last_section=section; section=\$ 3};"\
6744"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6745"     \$ 0!~/External *\|/{next};"\
6746"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6747"     {if(hide[section]) next};"\
6748"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6749"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6750"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6751"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6752"     ' prfx=^$ac_symprfx"
6753  else
6754    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6755  fi
6756
6757  # Check to see that the pipe works correctly.
6758  pipe_works=no
6759
6760  rm -f conftest*
6761  cat > conftest.$ac_ext <<_LT_EOF
6762#ifdef __cplusplus
6763extern "C" {
6764#endif
6765char nm_test_var;
6766void nm_test_func(void);
6767void nm_test_func(void){}
6768#ifdef __cplusplus
6769}
6770#endif
6771int main(){nm_test_var='a';nm_test_func();return(0);}
6772_LT_EOF
6773
6774  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775  (eval $ac_compile) 2>&5
6776  ac_status=$?
6777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778  (exit $ac_status); }; then
6779    # Now try to grab the symbols.
6780    nlist=conftest.nm
6781    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6782  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6783  ac_status=$?
6784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785  (exit $ac_status); } && test -s "$nlist"; then
6786      # Try sorting and uniquifying the output.
6787      if sort "$nlist" | uniq > "$nlist"T; then
6788	mv -f "$nlist"T "$nlist"
6789      else
6790	rm -f "$nlist"T
6791      fi
6792
6793      # Make sure that we snagged all the symbols we need.
6794      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6795	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6796	  cat <<_LT_EOF > conftest.$ac_ext
6797#ifdef __cplusplus
6798extern "C" {
6799#endif
6800
6801_LT_EOF
6802	  # Now generate the symbol file.
6803	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6804
6805	  cat <<_LT_EOF >> conftest.$ac_ext
6806
6807/* The mapping between symbol names and symbols.  */
6808const struct {
6809  const char *name;
6810  void       *address;
6811}
6812lt__PROGRAM__LTX_preloaded_symbols[] =
6813{
6814  { "@PROGRAM@", (void *) 0 },
6815_LT_EOF
6816	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6817	  cat <<\_LT_EOF >> conftest.$ac_ext
6818  {0, (void *) 0}
6819};
6820
6821/* This works around a problem in FreeBSD linker */
6822#ifdef FREEBSD_WORKAROUND
6823static const void *lt_preloaded_setup() {
6824  return lt__PROGRAM__LTX_preloaded_symbols;
6825}
6826#endif
6827
6828#ifdef __cplusplus
6829}
6830#endif
6831_LT_EOF
6832	  # Now try linking the two files.
6833	  mv conftest.$ac_objext conftstm.$ac_objext
6834	  lt_save_LIBS="$LIBS"
6835	  lt_save_CFLAGS="$CFLAGS"
6836	  LIBS="conftstm.$ac_objext"
6837	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6838	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6839  (eval $ac_link) 2>&5
6840  ac_status=$?
6841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6843	    pipe_works=yes
6844	  fi
6845	  LIBS="$lt_save_LIBS"
6846	  CFLAGS="$lt_save_CFLAGS"
6847	else
6848	  echo "cannot find nm_test_func in $nlist" >&5
6849	fi
6850      else
6851	echo "cannot find nm_test_var in $nlist" >&5
6852      fi
6853    else
6854      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6855    fi
6856  else
6857    echo "$progname: failed program was:" >&5
6858    cat conftest.$ac_ext >&5
6859  fi
6860  rm -rf conftest* conftst*
6861
6862  # Do not use the global_symbol_pipe unless it works.
6863  if test "$pipe_works" = yes; then
6864    break
6865  else
6866    lt_cv_sys_global_symbol_pipe=
6867  fi
6868done
6869
6870fi
6871
6872if test -z "$lt_cv_sys_global_symbol_pipe"; then
6873  lt_cv_sys_global_symbol_to_cdecl=
6874fi
6875if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6876  { echo "$as_me:$LINENO: result: failed" >&5
6877echo "${ECHO_T}failed" >&6; }
6878else
6879  { echo "$as_me:$LINENO: result: ok" >&5
6880echo "${ECHO_T}ok" >&6; }
6881fi
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905# Check whether --enable-libtool-lock was given.
6906if test "${enable_libtool_lock+set}" = set; then
6907  enableval=$enable_libtool_lock;
6908fi
6909
6910test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6911
6912# Some flags need to be propagated to the compiler or linker for good
6913# libtool support.
6914case $host in
6915ia64-*-hpux*)
6916  # Find out which ABI we are using.
6917  echo 'int i;' > conftest.$ac_ext
6918  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6919  (eval $ac_compile) 2>&5
6920  ac_status=$?
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); }; then
6923    case `/usr/bin/file conftest.$ac_objext` in
6924      *ELF-32*)
6925	HPUX_IA64_MODE="32"
6926	;;
6927      *ELF-64*)
6928	HPUX_IA64_MODE="64"
6929	;;
6930    esac
6931  fi
6932  rm -rf conftest*
6933  ;;
6934*-*-irix6*)
6935  # Find out which ABI we are using.
6936  echo '#line 6936 "configure"' > conftest.$ac_ext
6937  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6938  (eval $ac_compile) 2>&5
6939  ac_status=$?
6940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941  (exit $ac_status); }; then
6942    if test "$lt_cv_prog_gnu_ld" = yes; then
6943      case `/usr/bin/file conftest.$ac_objext` in
6944	*32-bit*)
6945	  LD="${LD-ld} -melf32bsmip"
6946	  ;;
6947	*N32*)
6948	  LD="${LD-ld} -melf32bmipn32"
6949	  ;;
6950	*64-bit*)
6951	  LD="${LD-ld} -melf64bmip"
6952	;;
6953      esac
6954    else
6955      case `/usr/bin/file conftest.$ac_objext` in
6956	*32-bit*)
6957	  LD="${LD-ld} -32"
6958	  ;;
6959	*N32*)
6960	  LD="${LD-ld} -n32"
6961	  ;;
6962	*64-bit*)
6963	  LD="${LD-ld} -64"
6964	  ;;
6965      esac
6966    fi
6967  fi
6968  rm -rf conftest*
6969  ;;
6970
6971x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6972s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6973  # Find out which ABI we are using.
6974  echo 'int i;' > conftest.$ac_ext
6975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976  (eval $ac_compile) 2>&5
6977  ac_status=$?
6978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979  (exit $ac_status); }; then
6980    case `/usr/bin/file conftest.o` in
6981      *32-bit*)
6982	case $host in
6983	  x86_64-*kfreebsd*-gnu)
6984	    LD="${LD-ld} -m elf_i386_fbsd"
6985	    ;;
6986	  x86_64-*linux*)
6987	    LD="${LD-ld} -m elf_i386"
6988	    ;;
6989	  ppc64-*linux*|powerpc64-*linux*)
6990	    LD="${LD-ld} -m elf32ppclinux"
6991	    ;;
6992	  s390x-*linux*)
6993	    LD="${LD-ld} -m elf_s390"
6994	    ;;
6995	  sparc64-*linux*)
6996	    LD="${LD-ld} -m elf32_sparc"
6997	    ;;
6998	esac
6999	;;
7000      *64-bit*)
7001	case $host in
7002	  x86_64-*kfreebsd*-gnu)
7003	    LD="${LD-ld} -m elf_x86_64_fbsd"
7004	    ;;
7005	  x86_64-*linux*)
7006	    LD="${LD-ld} -m elf_x86_64"
7007	    ;;
7008	  ppc*-*linux*|powerpc*-*linux*)
7009	    LD="${LD-ld} -m elf64ppc"
7010	    ;;
7011	  s390*-*linux*|s390*-*tpf*)
7012	    LD="${LD-ld} -m elf64_s390"
7013	    ;;
7014	  sparc*-*linux*)
7015	    LD="${LD-ld} -m elf64_sparc"
7016	    ;;
7017	esac
7018	;;
7019    esac
7020  fi
7021  rm -rf conftest*
7022  ;;
7023
7024*-*-sco3.2v5*)
7025  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7026  SAVE_CFLAGS="$CFLAGS"
7027  CFLAGS="$CFLAGS -belf"
7028  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7029echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7030if test "${lt_cv_cc_needs_belf+set}" = set; then
7031  echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033  ac_ext=c
7034ac_cpp='$CPP $CPPFLAGS'
7035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037ac_compiler_gnu=$ac_cv_c_compiler_gnu
7038
7039     cat >conftest.$ac_ext <<_ACEOF
7040/* confdefs.h.  */
7041_ACEOF
7042cat confdefs.h >>conftest.$ac_ext
7043cat >>conftest.$ac_ext <<_ACEOF
7044/* end confdefs.h.  */
7045
7046int
7047main ()
7048{
7049
7050  ;
7051  return 0;
7052}
7053_ACEOF
7054rm -f conftest.$ac_objext conftest$ac_exeext
7055if { (ac_try="$ac_link"
7056case "(($ac_try" in
7057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7058  *) ac_try_echo=$ac_try;;
7059esac
7060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7061  (eval "$ac_link") 2>conftest.er1
7062  ac_status=$?
7063  grep -v '^ *+' conftest.er1 >conftest.err
7064  rm -f conftest.er1
7065  cat conftest.err >&5
7066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067  (exit $ac_status); } && {
7068	 test -z "$ac_c_werror_flag" ||
7069	 test ! -s conftest.err
7070       } && test -s conftest$ac_exeext &&
7071       $as_test_x conftest$ac_exeext; then
7072  lt_cv_cc_needs_belf=yes
7073else
7074  echo "$as_me: failed program was:" >&5
7075sed 's/^/| /' conftest.$ac_ext >&5
7076
7077	lt_cv_cc_needs_belf=no
7078fi
7079
7080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7081      conftest$ac_exeext conftest.$ac_ext
7082     ac_ext=c
7083ac_cpp='$CPP $CPPFLAGS'
7084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7086ac_compiler_gnu=$ac_cv_c_compiler_gnu
7087
7088fi
7089{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7090echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7091  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7092    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7093    CFLAGS="$SAVE_CFLAGS"
7094  fi
7095  ;;
7096sparc*-*solaris*)
7097  # Find out which ABI we are using.
7098  echo 'int i;' > conftest.$ac_ext
7099  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7100  (eval $ac_compile) 2>&5
7101  ac_status=$?
7102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103  (exit $ac_status); }; then
7104    case `/usr/bin/file conftest.o` in
7105    *64-bit*)
7106      case $lt_cv_prog_gnu_ld in
7107      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7108      *)
7109	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7110	  LD="${LD-ld} -64"
7111	fi
7112	;;
7113      esac
7114      ;;
7115    esac
7116  fi
7117  rm -rf conftest*
7118  ;;
7119esac
7120
7121need_locks="$enable_libtool_lock"
7122
7123
7124  case $host_os in
7125    rhapsody* | darwin*)
7126    if test -n "$ac_tool_prefix"; then
7127  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7128set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7129{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7130echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7131if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7132  echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134  if test -n "$DSYMUTIL"; then
7135  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7136else
7137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138for as_dir in $PATH
7139do
7140  IFS=$as_save_IFS
7141  test -z "$as_dir" && as_dir=.
7142  for ac_exec_ext in '' $ac_executable_extensions; do
7143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7144    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7145    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7146    break 2
7147  fi
7148done
7149done
7150IFS=$as_save_IFS
7151
7152fi
7153fi
7154DSYMUTIL=$ac_cv_prog_DSYMUTIL
7155if test -n "$DSYMUTIL"; then
7156  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7157echo "${ECHO_T}$DSYMUTIL" >&6; }
7158else
7159  { echo "$as_me:$LINENO: result: no" >&5
7160echo "${ECHO_T}no" >&6; }
7161fi
7162
7163
7164fi
7165if test -z "$ac_cv_prog_DSYMUTIL"; then
7166  ac_ct_DSYMUTIL=$DSYMUTIL
7167  # Extract the first word of "dsymutil", so it can be a program name with args.
7168set dummy dsymutil; ac_word=$2
7169{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7171if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7172  echo $ECHO_N "(cached) $ECHO_C" >&6
7173else
7174  if test -n "$ac_ct_DSYMUTIL"; then
7175  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7176else
7177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178for as_dir in $PATH
7179do
7180  IFS=$as_save_IFS
7181  test -z "$as_dir" && as_dir=.
7182  for ac_exec_ext in '' $ac_executable_extensions; do
7183  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186    break 2
7187  fi
7188done
7189done
7190IFS=$as_save_IFS
7191
7192fi
7193fi
7194ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7195if test -n "$ac_ct_DSYMUTIL"; then
7196  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7197echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7198else
7199  { echo "$as_me:$LINENO: result: no" >&5
7200echo "${ECHO_T}no" >&6; }
7201fi
7202
7203  if test "x$ac_ct_DSYMUTIL" = x; then
7204    DSYMUTIL=":"
7205  else
7206    case $cross_compiling:$ac_tool_warned in
7207yes:)
7208{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7209whose name does not start with the host triplet.  If you think this
7210configuration is useful to you, please write to autoconf@gnu.org." >&5
7211echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7212whose name does not start with the host triplet.  If you think this
7213configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7214ac_tool_warned=yes ;;
7215esac
7216    DSYMUTIL=$ac_ct_DSYMUTIL
7217  fi
7218else
7219  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7220fi
7221
7222    if test -n "$ac_tool_prefix"; then
7223  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7224set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7225{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7226echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227if test "${ac_cv_prog_NMEDIT+set}" = set; then
7228  echo $ECHO_N "(cached) $ECHO_C" >&6
7229else
7230  if test -n "$NMEDIT"; then
7231  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236  IFS=$as_save_IFS
7237  test -z "$as_dir" && as_dir=.
7238  for ac_exec_ext in '' $ac_executable_extensions; do
7239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7241    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7242    break 2
7243  fi
7244done
7245done
7246IFS=$as_save_IFS
7247
7248fi
7249fi
7250NMEDIT=$ac_cv_prog_NMEDIT
7251if test -n "$NMEDIT"; then
7252  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7253echo "${ECHO_T}$NMEDIT" >&6; }
7254else
7255  { echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6; }
7257fi
7258
7259
7260fi
7261if test -z "$ac_cv_prog_NMEDIT"; then
7262  ac_ct_NMEDIT=$NMEDIT
7263  # Extract the first word of "nmedit", so it can be a program name with args.
7264set dummy nmedit; ac_word=$2
7265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7267if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7268  echo $ECHO_N "(cached) $ECHO_C" >&6
7269else
7270  if test -n "$ac_ct_NMEDIT"; then
7271  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7272else
7273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276  IFS=$as_save_IFS
7277  test -z "$as_dir" && as_dir=.
7278  for ac_exec_ext in '' $ac_executable_extensions; do
7279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282    break 2
7283  fi
7284done
7285done
7286IFS=$as_save_IFS
7287
7288fi
7289fi
7290ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7291if test -n "$ac_ct_NMEDIT"; then
7292  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7293echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7294else
7295  { echo "$as_me:$LINENO: result: no" >&5
7296echo "${ECHO_T}no" >&6; }
7297fi
7298
7299  if test "x$ac_ct_NMEDIT" = x; then
7300    NMEDIT=":"
7301  else
7302    case $cross_compiling:$ac_tool_warned in
7303yes:)
7304{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7305whose name does not start with the host triplet.  If you think this
7306configuration is useful to you, please write to autoconf@gnu.org." >&5
7307echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7308whose name does not start with the host triplet.  If you think this
7309configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7310ac_tool_warned=yes ;;
7311esac
7312    NMEDIT=$ac_ct_NMEDIT
7313  fi
7314else
7315  NMEDIT="$ac_cv_prog_NMEDIT"
7316fi
7317
7318    if test -n "$ac_tool_prefix"; then
7319  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7320set dummy ${ac_tool_prefix}lipo; ac_word=$2
7321{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7323if test "${ac_cv_prog_LIPO+set}" = set; then
7324  echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326  if test -n "$LIPO"; then
7327  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7328else
7329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7330for as_dir in $PATH
7331do
7332  IFS=$as_save_IFS
7333  test -z "$as_dir" && as_dir=.
7334  for ac_exec_ext in '' $ac_executable_extensions; do
7335  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7336    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7338    break 2
7339  fi
7340done
7341done
7342IFS=$as_save_IFS
7343
7344fi
7345fi
7346LIPO=$ac_cv_prog_LIPO
7347if test -n "$LIPO"; then
7348  { echo "$as_me:$LINENO: result: $LIPO" >&5
7349echo "${ECHO_T}$LIPO" >&6; }
7350else
7351  { echo "$as_me:$LINENO: result: no" >&5
7352echo "${ECHO_T}no" >&6; }
7353fi
7354
7355
7356fi
7357if test -z "$ac_cv_prog_LIPO"; then
7358  ac_ct_LIPO=$LIPO
7359  # Extract the first word of "lipo", so it can be a program name with args.
7360set dummy lipo; ac_word=$2
7361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7364  echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366  if test -n "$ac_ct_LIPO"; then
7367  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374  for ac_exec_ext in '' $ac_executable_extensions; do
7375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7376    ac_cv_prog_ac_ct_LIPO="lipo"
7377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381done
7382IFS=$as_save_IFS
7383
7384fi
7385fi
7386ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7387if test -n "$ac_ct_LIPO"; then
7388  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7389echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7390else
7391  { echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6; }
7393fi
7394
7395  if test "x$ac_ct_LIPO" = x; then
7396    LIPO=":"
7397  else
7398    case $cross_compiling:$ac_tool_warned in
7399yes:)
7400{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7401whose name does not start with the host triplet.  If you think this
7402configuration is useful to you, please write to autoconf@gnu.org." >&5
7403echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7404whose name does not start with the host triplet.  If you think this
7405configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7406ac_tool_warned=yes ;;
7407esac
7408    LIPO=$ac_ct_LIPO
7409  fi
7410else
7411  LIPO="$ac_cv_prog_LIPO"
7412fi
7413
7414    if test -n "$ac_tool_prefix"; then
7415  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7416set dummy ${ac_tool_prefix}otool; ac_word=$2
7417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7419if test "${ac_cv_prog_OTOOL+set}" = set; then
7420  echo $ECHO_N "(cached) $ECHO_C" >&6
7421else
7422  if test -n "$OTOOL"; then
7423  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428  IFS=$as_save_IFS
7429  test -z "$as_dir" && as_dir=.
7430  for ac_exec_ext in '' $ac_executable_extensions; do
7431  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7432    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7433    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434    break 2
7435  fi
7436done
7437done
7438IFS=$as_save_IFS
7439
7440fi
7441fi
7442OTOOL=$ac_cv_prog_OTOOL
7443if test -n "$OTOOL"; then
7444  { echo "$as_me:$LINENO: result: $OTOOL" >&5
7445echo "${ECHO_T}$OTOOL" >&6; }
7446else
7447  { echo "$as_me:$LINENO: result: no" >&5
7448echo "${ECHO_T}no" >&6; }
7449fi
7450
7451
7452fi
7453if test -z "$ac_cv_prog_OTOOL"; then
7454  ac_ct_OTOOL=$OTOOL
7455  # Extract the first word of "otool", so it can be a program name with args.
7456set dummy otool; ac_word=$2
7457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7459if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7460  echo $ECHO_N "(cached) $ECHO_C" >&6
7461else
7462  if test -n "$ac_ct_OTOOL"; then
7463  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7464else
7465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466for as_dir in $PATH
7467do
7468  IFS=$as_save_IFS
7469  test -z "$as_dir" && as_dir=.
7470  for ac_exec_ext in '' $ac_executable_extensions; do
7471  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472    ac_cv_prog_ac_ct_OTOOL="otool"
7473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474    break 2
7475  fi
7476done
7477done
7478IFS=$as_save_IFS
7479
7480fi
7481fi
7482ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7483if test -n "$ac_ct_OTOOL"; then
7484  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7485echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7486else
7487  { echo "$as_me:$LINENO: result: no" >&5
7488echo "${ECHO_T}no" >&6; }
7489fi
7490
7491  if test "x$ac_ct_OTOOL" = x; then
7492    OTOOL=":"
7493  else
7494    case $cross_compiling:$ac_tool_warned in
7495yes:)
7496{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7497whose name does not start with the host triplet.  If you think this
7498configuration is useful to you, please write to autoconf@gnu.org." >&5
7499echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7500whose name does not start with the host triplet.  If you think this
7501configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7502ac_tool_warned=yes ;;
7503esac
7504    OTOOL=$ac_ct_OTOOL
7505  fi
7506else
7507  OTOOL="$ac_cv_prog_OTOOL"
7508fi
7509
7510    if test -n "$ac_tool_prefix"; then
7511  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7512set dummy ${ac_tool_prefix}otool64; ac_word=$2
7513{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7515if test "${ac_cv_prog_OTOOL64+set}" = set; then
7516  echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518  if test -n "$OTOOL64"; then
7519  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524  IFS=$as_save_IFS
7525  test -z "$as_dir" && as_dir=.
7526  for ac_exec_ext in '' $ac_executable_extensions; do
7527  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7528    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530    break 2
7531  fi
7532done
7533done
7534IFS=$as_save_IFS
7535
7536fi
7537fi
7538OTOOL64=$ac_cv_prog_OTOOL64
7539if test -n "$OTOOL64"; then
7540  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7541echo "${ECHO_T}$OTOOL64" >&6; }
7542else
7543  { echo "$as_me:$LINENO: result: no" >&5
7544echo "${ECHO_T}no" >&6; }
7545fi
7546
7547
7548fi
7549if test -z "$ac_cv_prog_OTOOL64"; then
7550  ac_ct_OTOOL64=$OTOOL64
7551  # Extract the first word of "otool64", so it can be a program name with args.
7552set dummy otool64; ac_word=$2
7553{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7556  echo $ECHO_N "(cached) $ECHO_C" >&6
7557else
7558  if test -n "$ac_ct_OTOOL64"; then
7559  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7560else
7561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562for as_dir in $PATH
7563do
7564  IFS=$as_save_IFS
7565  test -z "$as_dir" && as_dir=.
7566  for ac_exec_ext in '' $ac_executable_extensions; do
7567  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568    ac_cv_prog_ac_ct_OTOOL64="otool64"
7569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570    break 2
7571  fi
7572done
7573done
7574IFS=$as_save_IFS
7575
7576fi
7577fi
7578ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7579if test -n "$ac_ct_OTOOL64"; then
7580  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7581echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7582else
7583  { echo "$as_me:$LINENO: result: no" >&5
7584echo "${ECHO_T}no" >&6; }
7585fi
7586
7587  if test "x$ac_ct_OTOOL64" = x; then
7588    OTOOL64=":"
7589  else
7590    case $cross_compiling:$ac_tool_warned in
7591yes:)
7592{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7593whose name does not start with the host triplet.  If you think this
7594configuration is useful to you, please write to autoconf@gnu.org." >&5
7595echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7596whose name does not start with the host triplet.  If you think this
7597configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7598ac_tool_warned=yes ;;
7599esac
7600    OTOOL64=$ac_ct_OTOOL64
7601  fi
7602else
7603  OTOOL64="$ac_cv_prog_OTOOL64"
7604fi
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7633echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7634if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7635  echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637  lt_cv_apple_cc_single_mod=no
7638      if test -z "${LT_MULTI_MODULE}"; then
7639	# By default we will add the -single_module flag. You can override
7640	# by either setting the environment variable LT_MULTI_MODULE
7641	# non-empty at configure time, or by adding -multi_module to the
7642	# link flags.
7643	rm -rf libconftest.dylib*
7644	echo "int foo(void){return 1;}" > conftest.c
7645	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7646-dynamiclib -Wl,-single_module conftest.c" >&5
7647	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7648	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7649        _lt_result=$?
7650	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7651	  lt_cv_apple_cc_single_mod=yes
7652	else
7653	  cat conftest.err >&5
7654	fi
7655	rm -rf libconftest.dylib*
7656	rm -f conftest.*
7657      fi
7658fi
7659{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7660echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7661    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7662echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7663if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  lt_cv_ld_exported_symbols_list=no
7667      save_LDFLAGS=$LDFLAGS
7668      echo "_main" > conftest.sym
7669      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7670      cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h.  */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h.  */
7676
7677int
7678main ()
7679{
7680
7681  ;
7682  return 0;
7683}
7684_ACEOF
7685rm -f conftest.$ac_objext conftest$ac_exeext
7686if { (ac_try="$ac_link"
7687case "(($ac_try" in
7688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689  *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692  (eval "$ac_link") 2>conftest.er1
7693  ac_status=$?
7694  grep -v '^ *+' conftest.er1 >conftest.err
7695  rm -f conftest.er1
7696  cat conftest.err >&5
7697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698  (exit $ac_status); } && {
7699	 test -z "$ac_c_werror_flag" ||
7700	 test ! -s conftest.err
7701       } && test -s conftest$ac_exeext &&
7702       $as_test_x conftest$ac_exeext; then
7703  lt_cv_ld_exported_symbols_list=yes
7704else
7705  echo "$as_me: failed program was:" >&5
7706sed 's/^/| /' conftest.$ac_ext >&5
7707
7708	lt_cv_ld_exported_symbols_list=no
7709fi
7710
7711rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7712      conftest$ac_exeext conftest.$ac_ext
7713	LDFLAGS="$save_LDFLAGS"
7714
7715fi
7716{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7717echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7718    case $host_os in
7719    rhapsody* | darwin1.[012])
7720      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7721    darwin1.*)
7722      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7723    darwin*) # darwin 5.x on
7724      # if running on 10.5 or later, the deployment target defaults
7725      # to the OS version, if on x86, and 10.4, the deployment
7726      # target defaults to 10.4. Don't you love it?
7727      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7728	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7729	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7730	10.[012]*)
7731	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7732	10.*)
7733	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7734      esac
7735    ;;
7736  esac
7737    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7738      _lt_dar_single_mod='$single_module'
7739    fi
7740    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7741      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7742    else
7743      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7744    fi
7745    if test "$DSYMUTIL" != ":"; then
7746      _lt_dsymutil='~$DSYMUTIL $lib || :'
7747    else
7748      _lt_dsymutil=
7749    fi
7750    ;;
7751  esac
7752
7753
7754for ac_header in dlfcn.h
7755do
7756as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7757{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7758echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7760  echo $ECHO_N "(cached) $ECHO_C" >&6
7761else
7762  cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h.  */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h.  */
7768$ac_includes_default
7769
7770#include <$ac_header>
7771_ACEOF
7772rm -f conftest.$ac_objext
7773if { (ac_try="$ac_compile"
7774case "(($ac_try" in
7775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776  *) ac_try_echo=$ac_try;;
7777esac
7778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779  (eval "$ac_compile") 2>conftest.er1
7780  ac_status=$?
7781  grep -v '^ *+' conftest.er1 >conftest.err
7782  rm -f conftest.er1
7783  cat conftest.err >&5
7784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785  (exit $ac_status); } && {
7786	 test -z "$ac_c_werror_flag" ||
7787	 test ! -s conftest.err
7788       } && test -s conftest.$ac_objext; then
7789  eval "$as_ac_Header=yes"
7790else
7791  echo "$as_me: failed program was:" >&5
7792sed 's/^/| /' conftest.$ac_ext >&5
7793
7794	eval "$as_ac_Header=no"
7795fi
7796
7797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798fi
7799ac_res=`eval echo '${'$as_ac_Header'}'`
7800	       { echo "$as_me:$LINENO: result: $ac_res" >&5
7801echo "${ECHO_T}$ac_res" >&6; }
7802if test `eval echo '${'$as_ac_Header'}'` = yes; then
7803  cat >>confdefs.h <<_ACEOF
7804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805_ACEOF
7806
7807fi
7808
7809done
7810
7811
7812
7813ac_ext=cpp
7814ac_cpp='$CXXCPP $CPPFLAGS'
7815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7818if test -z "$CXX"; then
7819  if test -n "$CCC"; then
7820    CXX=$CCC
7821  else
7822    if test -n "$ac_tool_prefix"; then
7823  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7824  do
7825    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7826set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7829if test "${ac_cv_prog_CXX+set}" = set; then
7830  echo $ECHO_N "(cached) $ECHO_C" >&6
7831else
7832  if test -n "$CXX"; then
7833  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7834else
7835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836for as_dir in $PATH
7837do
7838  IFS=$as_save_IFS
7839  test -z "$as_dir" && as_dir=.
7840  for ac_exec_ext in '' $ac_executable_extensions; do
7841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7844    break 2
7845  fi
7846done
7847done
7848IFS=$as_save_IFS
7849
7850fi
7851fi
7852CXX=$ac_cv_prog_CXX
7853if test -n "$CXX"; then
7854  { echo "$as_me:$LINENO: result: $CXX" >&5
7855echo "${ECHO_T}$CXX" >&6; }
7856else
7857  { echo "$as_me:$LINENO: result: no" >&5
7858echo "${ECHO_T}no" >&6; }
7859fi
7860
7861
7862    test -n "$CXX" && break
7863  done
7864fi
7865if test -z "$CXX"; then
7866  ac_ct_CXX=$CXX
7867  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7868do
7869  # Extract the first word of "$ac_prog", so it can be a program name with args.
7870set dummy $ac_prog; ac_word=$2
7871{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7873if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7874  echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876  if test -n "$ac_ct_CXX"; then
7877  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7878else
7879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880for as_dir in $PATH
7881do
7882  IFS=$as_save_IFS
7883  test -z "$as_dir" && as_dir=.
7884  for ac_exec_ext in '' $ac_executable_extensions; do
7885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7886    ac_cv_prog_ac_ct_CXX="$ac_prog"
7887    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7888    break 2
7889  fi
7890done
7891done
7892IFS=$as_save_IFS
7893
7894fi
7895fi
7896ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7897if test -n "$ac_ct_CXX"; then
7898  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7899echo "${ECHO_T}$ac_ct_CXX" >&6; }
7900else
7901  { echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6; }
7903fi
7904
7905
7906  test -n "$ac_ct_CXX" && break
7907done
7908
7909  if test "x$ac_ct_CXX" = x; then
7910    CXX="g++"
7911  else
7912    case $cross_compiling:$ac_tool_warned in
7913yes:)
7914{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7915whose name does not start with the host triplet.  If you think this
7916configuration is useful to you, please write to autoconf@gnu.org." >&5
7917echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7918whose name does not start with the host triplet.  If you think this
7919configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7920ac_tool_warned=yes ;;
7921esac
7922    CXX=$ac_ct_CXX
7923  fi
7924fi
7925
7926  fi
7927fi
7928# Provide some information about the compiler.
7929echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7930ac_compiler=`set X $ac_compile; echo $2`
7931{ (ac_try="$ac_compiler --version >&5"
7932case "(($ac_try" in
7933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934  *) ac_try_echo=$ac_try;;
7935esac
7936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937  (eval "$ac_compiler --version >&5") 2>&5
7938  ac_status=$?
7939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940  (exit $ac_status); }
7941{ (ac_try="$ac_compiler -v >&5"
7942case "(($ac_try" in
7943  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944  *) ac_try_echo=$ac_try;;
7945esac
7946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947  (eval "$ac_compiler -v >&5") 2>&5
7948  ac_status=$?
7949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950  (exit $ac_status); }
7951{ (ac_try="$ac_compiler -V >&5"
7952case "(($ac_try" in
7953  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954  *) ac_try_echo=$ac_try;;
7955esac
7956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957  (eval "$ac_compiler -V >&5") 2>&5
7958  ac_status=$?
7959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960  (exit $ac_status); }
7961
7962{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7963echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
7964if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7965  echo $ECHO_N "(cached) $ECHO_C" >&6
7966else
7967  cat >conftest.$ac_ext <<_ACEOF
7968/* confdefs.h.  */
7969_ACEOF
7970cat confdefs.h >>conftest.$ac_ext
7971cat >>conftest.$ac_ext <<_ACEOF
7972/* end confdefs.h.  */
7973
7974int
7975main ()
7976{
7977#ifndef __GNUC__
7978       choke me
7979#endif
7980
7981  ;
7982  return 0;
7983}
7984_ACEOF
7985rm -f conftest.$ac_objext
7986if { (ac_try="$ac_compile"
7987case "(($ac_try" in
7988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989  *) ac_try_echo=$ac_try;;
7990esac
7991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992  (eval "$ac_compile") 2>conftest.er1
7993  ac_status=$?
7994  grep -v '^ *+' conftest.er1 >conftest.err
7995  rm -f conftest.er1
7996  cat conftest.err >&5
7997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998  (exit $ac_status); } && {
7999	 test -z "$ac_cxx_werror_flag" ||
8000	 test ! -s conftest.err
8001       } && test -s conftest.$ac_objext; then
8002  ac_compiler_gnu=yes
8003else
8004  echo "$as_me: failed program was:" >&5
8005sed 's/^/| /' conftest.$ac_ext >&5
8006
8007	ac_compiler_gnu=no
8008fi
8009
8010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8012
8013fi
8014{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8015echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8016GXX=`test $ac_compiler_gnu = yes && echo yes`
8017ac_test_CXXFLAGS=${CXXFLAGS+set}
8018ac_save_CXXFLAGS=$CXXFLAGS
8019{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8020echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8021if test "${ac_cv_prog_cxx_g+set}" = set; then
8022  echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8025   ac_cxx_werror_flag=yes
8026   ac_cv_prog_cxx_g=no
8027   CXXFLAGS="-g"
8028   cat >conftest.$ac_ext <<_ACEOF
8029/* confdefs.h.  */
8030_ACEOF
8031cat confdefs.h >>conftest.$ac_ext
8032cat >>conftest.$ac_ext <<_ACEOF
8033/* end confdefs.h.  */
8034
8035int
8036main ()
8037{
8038
8039  ;
8040  return 0;
8041}
8042_ACEOF
8043rm -f conftest.$ac_objext
8044if { (ac_try="$ac_compile"
8045case "(($ac_try" in
8046  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047  *) ac_try_echo=$ac_try;;
8048esac
8049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050  (eval "$ac_compile") 2>conftest.er1
8051  ac_status=$?
8052  grep -v '^ *+' conftest.er1 >conftest.err
8053  rm -f conftest.er1
8054  cat conftest.err >&5
8055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056  (exit $ac_status); } && {
8057	 test -z "$ac_cxx_werror_flag" ||
8058	 test ! -s conftest.err
8059       } && test -s conftest.$ac_objext; then
8060  ac_cv_prog_cxx_g=yes
8061else
8062  echo "$as_me: failed program was:" >&5
8063sed 's/^/| /' conftest.$ac_ext >&5
8064
8065	CXXFLAGS=""
8066      cat >conftest.$ac_ext <<_ACEOF
8067/* confdefs.h.  */
8068_ACEOF
8069cat confdefs.h >>conftest.$ac_ext
8070cat >>conftest.$ac_ext <<_ACEOF
8071/* end confdefs.h.  */
8072
8073int
8074main ()
8075{
8076
8077  ;
8078  return 0;
8079}
8080_ACEOF
8081rm -f conftest.$ac_objext
8082if { (ac_try="$ac_compile"
8083case "(($ac_try" in
8084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085  *) ac_try_echo=$ac_try;;
8086esac
8087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088  (eval "$ac_compile") 2>conftest.er1
8089  ac_status=$?
8090  grep -v '^ *+' conftest.er1 >conftest.err
8091  rm -f conftest.er1
8092  cat conftest.err >&5
8093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094  (exit $ac_status); } && {
8095	 test -z "$ac_cxx_werror_flag" ||
8096	 test ! -s conftest.err
8097       } && test -s conftest.$ac_objext; then
8098  :
8099else
8100  echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8104	 CXXFLAGS="-g"
8105	 cat >conftest.$ac_ext <<_ACEOF
8106/* confdefs.h.  */
8107_ACEOF
8108cat confdefs.h >>conftest.$ac_ext
8109cat >>conftest.$ac_ext <<_ACEOF
8110/* end confdefs.h.  */
8111
8112int
8113main ()
8114{
8115
8116  ;
8117  return 0;
8118}
8119_ACEOF
8120rm -f conftest.$ac_objext
8121if { (ac_try="$ac_compile"
8122case "(($ac_try" in
8123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124  *) ac_try_echo=$ac_try;;
8125esac
8126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127  (eval "$ac_compile") 2>conftest.er1
8128  ac_status=$?
8129  grep -v '^ *+' conftest.er1 >conftest.err
8130  rm -f conftest.er1
8131  cat conftest.err >&5
8132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133  (exit $ac_status); } && {
8134	 test -z "$ac_cxx_werror_flag" ||
8135	 test ! -s conftest.err
8136       } && test -s conftest.$ac_objext; then
8137  ac_cv_prog_cxx_g=yes
8138else
8139  echo "$as_me: failed program was:" >&5
8140sed 's/^/| /' conftest.$ac_ext >&5
8141
8142
8143fi
8144
8145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146fi
8147
8148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8149fi
8150
8151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8153fi
8154{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8155echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8156if test "$ac_test_CXXFLAGS" = set; then
8157  CXXFLAGS=$ac_save_CXXFLAGS
8158elif test $ac_cv_prog_cxx_g = yes; then
8159  if test "$GXX" = yes; then
8160    CXXFLAGS="-g -O2"
8161  else
8162    CXXFLAGS="-g"
8163  fi
8164else
8165  if test "$GXX" = yes; then
8166    CXXFLAGS="-O2"
8167  else
8168    CXXFLAGS=
8169  fi
8170fi
8171ac_ext=cpp
8172ac_cpp='$CXXCPP $CPPFLAGS'
8173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8176
8177depcc="$CXX"  am_compiler_list=
8178
8179{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8180echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8181if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8182  echo $ECHO_N "(cached) $ECHO_C" >&6
8183else
8184  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8185  # We make a subdir and do the tests there.  Otherwise we can end up
8186  # making bogus files that we don't know about and never remove.  For
8187  # instance it was reported that on HP-UX the gcc test will end up
8188  # making a dummy file named `D' -- because `-MD' means `put the output
8189  # in D'.
8190  mkdir conftest.dir
8191  # Copy depcomp to subdir because otherwise we won't find it if we're
8192  # using a relative directory.
8193  cp "$am_depcomp" conftest.dir
8194  cd conftest.dir
8195  # We will build objects and dependencies in a subdirectory because
8196  # it helps to detect inapplicable dependency modes.  For instance
8197  # both Tru64's cc and ICC support -MD to output dependencies as a
8198  # side effect of compilation, but ICC will put the dependencies in
8199  # the current directory while Tru64 will put them in the object
8200  # directory.
8201  mkdir sub
8202
8203  am_cv_CXX_dependencies_compiler_type=none
8204  if test "$am_compiler_list" = ""; then
8205     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8206  fi
8207  for depmode in $am_compiler_list; do
8208    # Setup a source with many dependencies, because some compilers
8209    # like to wrap large dependency lists on column 80 (with \), and
8210    # we should not choose a depcomp mode which is confused by this.
8211    #
8212    # We need to recreate these files for each test, as the compiler may
8213    # overwrite some of them when testing with obscure command lines.
8214    # This happens at least with the AIX C compiler.
8215    : > sub/conftest.c
8216    for i in 1 2 3 4 5 6; do
8217      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8218      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8219      # Solaris 8's {/usr,}/bin/sh.
8220      touch sub/conftst$i.h
8221    done
8222    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8223
8224    case $depmode in
8225    nosideeffect)
8226      # after this tag, mechanisms are not by side-effect, so they'll
8227      # only be used when explicitly requested
8228      if test "x$enable_dependency_tracking" = xyes; then
8229	continue
8230      else
8231	break
8232      fi
8233      ;;
8234    none) break ;;
8235    esac
8236    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8237    # mode.  It turns out that the SunPro C++ compiler does not properly
8238    # handle `-M -o', and we need to detect this.
8239    if depmode=$depmode \
8240       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8241       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8242       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8243         >/dev/null 2>conftest.err &&
8244       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8245       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8246       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8247       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8248      # icc doesn't choke on unknown options, it will just issue warnings
8249      # or remarks (even with -Werror).  So we grep stderr for any message
8250      # that says an option was ignored or not supported.
8251      # When given -MP, icc 7.0 and 7.1 complain thusly:
8252      #   icc: Command line warning: ignoring option '-M'; no argument required
8253      # The diagnosis changed in icc 8.0:
8254      #   icc: Command line remark: option '-MP' not supported
8255      if (grep 'ignoring option' conftest.err ||
8256          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8257        am_cv_CXX_dependencies_compiler_type=$depmode
8258        break
8259      fi
8260    fi
8261  done
8262
8263  cd ..
8264  rm -rf conftest.dir
8265else
8266  am_cv_CXX_dependencies_compiler_type=none
8267fi
8268
8269fi
8270{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8271echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
8272CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8273
8274 if
8275  test "x$enable_dependency_tracking" != xno \
8276  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8277  am__fastdepCXX_TRUE=
8278  am__fastdepCXX_FALSE='#'
8279else
8280  am__fastdepCXX_TRUE='#'
8281  am__fastdepCXX_FALSE=
8282fi
8283
8284
8285if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8286    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8287    (test "X$CXX" != "Xg++"))) ; then
8288  ac_ext=cpp
8289ac_cpp='$CXXCPP $CPPFLAGS'
8290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8293{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8294echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8295if test -z "$CXXCPP"; then
8296  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8297  echo $ECHO_N "(cached) $ECHO_C" >&6
8298else
8299      # Double quotes because CXXCPP needs to be expanded
8300    for CXXCPP in "$CXX -E" "/lib/cpp"
8301    do
8302      ac_preproc_ok=false
8303for ac_cxx_preproc_warn_flag in '' yes
8304do
8305  # Use a header file that comes with gcc, so configuring glibc
8306  # with a fresh cross-compiler works.
8307  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8308  # <limits.h> exists even on freestanding compilers.
8309  # On the NeXT, cc -E runs the code through the compiler's parser,
8310  # not just through cpp. "Syntax error" is here to catch this case.
8311  cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h.  */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h.  */
8317#ifdef __STDC__
8318# include <limits.h>
8319#else
8320# include <assert.h>
8321#endif
8322		     Syntax error
8323_ACEOF
8324if { (ac_try="$ac_cpp conftest.$ac_ext"
8325case "(($ac_try" in
8326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327  *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8331  ac_status=$?
8332  grep -v '^ *+' conftest.er1 >conftest.err
8333  rm -f conftest.er1
8334  cat conftest.err >&5
8335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336  (exit $ac_status); } >/dev/null && {
8337	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8338	 test ! -s conftest.err
8339       }; then
8340  :
8341else
8342  echo "$as_me: failed program was:" >&5
8343sed 's/^/| /' conftest.$ac_ext >&5
8344
8345  # Broken: fails on valid input.
8346continue
8347fi
8348
8349rm -f conftest.err conftest.$ac_ext
8350
8351  # OK, works on sane cases.  Now check whether nonexistent headers
8352  # can be detected and how.
8353  cat >conftest.$ac_ext <<_ACEOF
8354/* confdefs.h.  */
8355_ACEOF
8356cat confdefs.h >>conftest.$ac_ext
8357cat >>conftest.$ac_ext <<_ACEOF
8358/* end confdefs.h.  */
8359#include <ac_nonexistent.h>
8360_ACEOF
8361if { (ac_try="$ac_cpp conftest.$ac_ext"
8362case "(($ac_try" in
8363  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364  *) ac_try_echo=$ac_try;;
8365esac
8366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8368  ac_status=$?
8369  grep -v '^ *+' conftest.er1 >conftest.err
8370  rm -f conftest.er1
8371  cat conftest.err >&5
8372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373  (exit $ac_status); } >/dev/null && {
8374	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8375	 test ! -s conftest.err
8376       }; then
8377  # Broken: success on invalid input.
8378continue
8379else
8380  echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383  # Passes both tests.
8384ac_preproc_ok=:
8385break
8386fi
8387
8388rm -f conftest.err conftest.$ac_ext
8389
8390done
8391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8392rm -f conftest.err conftest.$ac_ext
8393if $ac_preproc_ok; then
8394  break
8395fi
8396
8397    done
8398    ac_cv_prog_CXXCPP=$CXXCPP
8399
8400fi
8401  CXXCPP=$ac_cv_prog_CXXCPP
8402else
8403  ac_cv_prog_CXXCPP=$CXXCPP
8404fi
8405{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
8406echo "${ECHO_T}$CXXCPP" >&6; }
8407ac_preproc_ok=false
8408for ac_cxx_preproc_warn_flag in '' yes
8409do
8410  # Use a header file that comes with gcc, so configuring glibc
8411  # with a fresh cross-compiler works.
8412  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8413  # <limits.h> exists even on freestanding compilers.
8414  # On the NeXT, cc -E runs the code through the compiler's parser,
8415  # not just through cpp. "Syntax error" is here to catch this case.
8416  cat >conftest.$ac_ext <<_ACEOF
8417/* confdefs.h.  */
8418_ACEOF
8419cat confdefs.h >>conftest.$ac_ext
8420cat >>conftest.$ac_ext <<_ACEOF
8421/* end confdefs.h.  */
8422#ifdef __STDC__
8423# include <limits.h>
8424#else
8425# include <assert.h>
8426#endif
8427		     Syntax error
8428_ACEOF
8429if { (ac_try="$ac_cpp conftest.$ac_ext"
8430case "(($ac_try" in
8431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8432  *) ac_try_echo=$ac_try;;
8433esac
8434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8435  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8436  ac_status=$?
8437  grep -v '^ *+' conftest.er1 >conftest.err
8438  rm -f conftest.er1
8439  cat conftest.err >&5
8440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441  (exit $ac_status); } >/dev/null && {
8442	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8443	 test ! -s conftest.err
8444       }; then
8445  :
8446else
8447  echo "$as_me: failed program was:" >&5
8448sed 's/^/| /' conftest.$ac_ext >&5
8449
8450  # Broken: fails on valid input.
8451continue
8452fi
8453
8454rm -f conftest.err conftest.$ac_ext
8455
8456  # OK, works on sane cases.  Now check whether nonexistent headers
8457  # can be detected and how.
8458  cat >conftest.$ac_ext <<_ACEOF
8459/* confdefs.h.  */
8460_ACEOF
8461cat confdefs.h >>conftest.$ac_ext
8462cat >>conftest.$ac_ext <<_ACEOF
8463/* end confdefs.h.  */
8464#include <ac_nonexistent.h>
8465_ACEOF
8466if { (ac_try="$ac_cpp conftest.$ac_ext"
8467case "(($ac_try" in
8468  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8469  *) ac_try_echo=$ac_try;;
8470esac
8471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8472  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8473  ac_status=$?
8474  grep -v '^ *+' conftest.er1 >conftest.err
8475  rm -f conftest.er1
8476  cat conftest.err >&5
8477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478  (exit $ac_status); } >/dev/null && {
8479	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8480	 test ! -s conftest.err
8481       }; then
8482  # Broken: success on invalid input.
8483continue
8484else
8485  echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488  # Passes both tests.
8489ac_preproc_ok=:
8490break
8491fi
8492
8493rm -f conftest.err conftest.$ac_ext
8494
8495done
8496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8497rm -f conftest.err conftest.$ac_ext
8498if $ac_preproc_ok; then
8499  :
8500else
8501  _lt_caught_CXX_error=yes
8502fi
8503
8504ac_ext=cpp
8505ac_cpp='$CXXCPP $CPPFLAGS'
8506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8509
8510else
8511  _lt_caught_CXX_error=yes
8512fi
8513
8514
8515
8516
8517# Set options
8518
8519
8520
8521        enable_dlopen=no
8522
8523
8524  enable_win32_dll=no
8525
8526
8527            # Check whether --enable-shared was given.
8528if test "${enable_shared+set}" = set; then
8529  enableval=$enable_shared; p=${PACKAGE-default}
8530    case $enableval in
8531    yes) enable_shared=yes ;;
8532    no) enable_shared=no ;;
8533    *)
8534      enable_shared=no
8535      # Look at the argument we got.  We use all the common list separators.
8536      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8537      for pkg in $enableval; do
8538	IFS="$lt_save_ifs"
8539	if test "X$pkg" = "X$p"; then
8540	  enable_shared=yes
8541	fi
8542      done
8543      IFS="$lt_save_ifs"
8544      ;;
8545    esac
8546else
8547  enable_shared=yes
8548fi
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558  # Check whether --enable-static was given.
8559if test "${enable_static+set}" = set; then
8560  enableval=$enable_static; p=${PACKAGE-default}
8561    case $enableval in
8562    yes) enable_static=yes ;;
8563    no) enable_static=no ;;
8564    *)
8565     enable_static=no
8566      # Look at the argument we got.  We use all the common list separators.
8567      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8568      for pkg in $enableval; do
8569	IFS="$lt_save_ifs"
8570	if test "X$pkg" = "X$p"; then
8571	  enable_static=yes
8572	fi
8573      done
8574      IFS="$lt_save_ifs"
8575      ;;
8576    esac
8577else
8578  enable_static=yes
8579fi
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590# Check whether --with-pic was given.
8591if test "${with_pic+set}" = set; then
8592  withval=$with_pic; pic_mode="$withval"
8593else
8594  pic_mode=default
8595fi
8596
8597
8598test -z "$pic_mode" && pic_mode=default
8599
8600
8601
8602
8603
8604
8605
8606  # Check whether --enable-fast-install was given.
8607if test "${enable_fast_install+set}" = set; then
8608  enableval=$enable_fast_install; p=${PACKAGE-default}
8609    case $enableval in
8610    yes) enable_fast_install=yes ;;
8611    no) enable_fast_install=no ;;
8612    *)
8613      enable_fast_install=no
8614      # Look at the argument we got.  We use all the common list separators.
8615      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8616      for pkg in $enableval; do
8617	IFS="$lt_save_ifs"
8618	if test "X$pkg" = "X$p"; then
8619	  enable_fast_install=yes
8620	fi
8621      done
8622      IFS="$lt_save_ifs"
8623      ;;
8624    esac
8625else
8626  enable_fast_install=yes
8627fi
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639# This can be used to rebuild libtool when needed
8640LIBTOOL_DEPS="$ltmain"
8641
8642# Always use our own libtool.
8643LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669test -z "$LN_S" && LN_S="ln -s"
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684if test -n "${ZSH_VERSION+set}" ; then
8685   setopt NO_GLOB_SUBST
8686fi
8687
8688{ echo "$as_me:$LINENO: checking for objdir" >&5
8689echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
8690if test "${lt_cv_objdir+set}" = set; then
8691  echo $ECHO_N "(cached) $ECHO_C" >&6
8692else
8693  rm -f .libs 2>/dev/null
8694mkdir .libs 2>/dev/null
8695if test -d .libs; then
8696  lt_cv_objdir=.libs
8697else
8698  # MS-DOS does not allow filenames that begin with a dot.
8699  lt_cv_objdir=_libs
8700fi
8701rmdir .libs 2>/dev/null
8702fi
8703{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8704echo "${ECHO_T}$lt_cv_objdir" >&6; }
8705objdir=$lt_cv_objdir
8706
8707
8708
8709
8710
8711cat >>confdefs.h <<_ACEOF
8712#define LT_OBJDIR "$lt_cv_objdir/"
8713_ACEOF
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731case $host_os in
8732aix3*)
8733  # AIX sometimes has problems with the GCC collect2 program.  For some
8734  # reason, if we set the COLLECT_NAMES environment variable, the problems
8735  # vanish in a puff of smoke.
8736  if test "X${COLLECT_NAMES+set}" != Xset; then
8737    COLLECT_NAMES=
8738    export COLLECT_NAMES
8739  fi
8740  ;;
8741esac
8742
8743# Sed substitution that helps us do robust quoting.  It backslashifies
8744# metacharacters that are still active within double-quoted strings.
8745sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8746
8747# Same as above, but do not quote variable references.
8748double_quote_subst='s/\(["`\\]\)/\\\1/g'
8749
8750# Sed substitution to delay expansion of an escaped shell variable in a
8751# double_quote_subst'ed string.
8752delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8753
8754# Sed substitution to delay expansion of an escaped single quote.
8755delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8756
8757# Sed substitution to avoid accidental globbing in evaled expressions
8758no_glob_subst='s/\*/\\\*/g'
8759
8760# Global variables:
8761ofile=libtool
8762can_build_shared=yes
8763
8764# All known linkers require a `.a' archive for static linking (except MSVC,
8765# which needs '.lib').
8766libext=a
8767
8768with_gnu_ld="$lt_cv_prog_gnu_ld"
8769
8770old_CC="$CC"
8771old_CFLAGS="$CFLAGS"
8772
8773# Set sane defaults for various variables
8774test -z "$CC" && CC=cc
8775test -z "$LTCC" && LTCC=$CC
8776test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8777test -z "$LD" && LD=ld
8778test -z "$ac_objext" && ac_objext=o
8779
8780for cc_temp in $compiler""; do
8781  case $cc_temp in
8782    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8783    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8784    \-*) ;;
8785    *) break;;
8786  esac
8787done
8788cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8789
8790
8791# Only perform the check for file, if the check method requires it
8792test -z "$MAGIC_CMD" && MAGIC_CMD=file
8793case $deplibs_check_method in
8794file_magic*)
8795  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8796    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8797echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8798if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8799  echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801  case $MAGIC_CMD in
8802[\\/*] |  ?:[\\/]*)
8803  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8804  ;;
8805*)
8806  lt_save_MAGIC_CMD="$MAGIC_CMD"
8807  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8808  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8809  for ac_dir in $ac_dummy; do
8810    IFS="$lt_save_ifs"
8811    test -z "$ac_dir" && ac_dir=.
8812    if test -f $ac_dir/${ac_tool_prefix}file; then
8813      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8814      if test -n "$file_magic_test_file"; then
8815	case $deplibs_check_method in
8816	"file_magic "*)
8817	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8818	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8819	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8820	    $EGREP "$file_magic_regex" > /dev/null; then
8821	    :
8822	  else
8823	    cat <<_LT_EOF 1>&2
8824
8825*** Warning: the command libtool uses to detect shared libraries,
8826*** $file_magic_cmd, produces output that libtool cannot recognize.
8827*** The result is that libtool may fail to recognize shared libraries
8828*** as such.  This will affect the creation of libtool libraries that
8829*** depend on shared libraries, but programs linked with such libtool
8830*** libraries will work regardless of this problem.  Nevertheless, you
8831*** may want to report the problem to your system manager and/or to
8832*** bug-libtool@gnu.org
8833
8834_LT_EOF
8835	  fi ;;
8836	esac
8837      fi
8838      break
8839    fi
8840  done
8841  IFS="$lt_save_ifs"
8842  MAGIC_CMD="$lt_save_MAGIC_CMD"
8843  ;;
8844esac
8845fi
8846
8847MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8848if test -n "$MAGIC_CMD"; then
8849  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8850echo "${ECHO_T}$MAGIC_CMD" >&6; }
8851else
8852  { echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6; }
8854fi
8855
8856
8857
8858
8859
8860if test -z "$lt_cv_path_MAGIC_CMD"; then
8861  if test -n "$ac_tool_prefix"; then
8862    { echo "$as_me:$LINENO: checking for file" >&5
8863echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8864if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8865  echo $ECHO_N "(cached) $ECHO_C" >&6
8866else
8867  case $MAGIC_CMD in
8868[\\/*] |  ?:[\\/]*)
8869  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8870  ;;
8871*)
8872  lt_save_MAGIC_CMD="$MAGIC_CMD"
8873  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8874  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8875  for ac_dir in $ac_dummy; do
8876    IFS="$lt_save_ifs"
8877    test -z "$ac_dir" && ac_dir=.
8878    if test -f $ac_dir/file; then
8879      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8880      if test -n "$file_magic_test_file"; then
8881	case $deplibs_check_method in
8882	"file_magic "*)
8883	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8884	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8885	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8886	    $EGREP "$file_magic_regex" > /dev/null; then
8887	    :
8888	  else
8889	    cat <<_LT_EOF 1>&2
8890
8891*** Warning: the command libtool uses to detect shared libraries,
8892*** $file_magic_cmd, produces output that libtool cannot recognize.
8893*** The result is that libtool may fail to recognize shared libraries
8894*** as such.  This will affect the creation of libtool libraries that
8895*** depend on shared libraries, but programs linked with such libtool
8896*** libraries will work regardless of this problem.  Nevertheless, you
8897*** may want to report the problem to your system manager and/or to
8898*** bug-libtool@gnu.org
8899
8900_LT_EOF
8901	  fi ;;
8902	esac
8903      fi
8904      break
8905    fi
8906  done
8907  IFS="$lt_save_ifs"
8908  MAGIC_CMD="$lt_save_MAGIC_CMD"
8909  ;;
8910esac
8911fi
8912
8913MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8914if test -n "$MAGIC_CMD"; then
8915  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8916echo "${ECHO_T}$MAGIC_CMD" >&6; }
8917else
8918  { echo "$as_me:$LINENO: result: no" >&5
8919echo "${ECHO_T}no" >&6; }
8920fi
8921
8922
8923  else
8924    MAGIC_CMD=:
8925  fi
8926fi
8927
8928  fi
8929  ;;
8930esac
8931
8932# Use C for the default configuration in the libtool script
8933
8934lt_save_CC="$CC"
8935ac_ext=c
8936ac_cpp='$CPP $CPPFLAGS'
8937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8939ac_compiler_gnu=$ac_cv_c_compiler_gnu
8940
8941
8942# Source file extension for C test sources.
8943ac_ext=c
8944
8945# Object file extension for compiled C test sources.
8946objext=o
8947objext=$objext
8948
8949# Code to be used in simple compile tests
8950lt_simple_compile_test_code="int some_variable = 0;"
8951
8952# Code to be used in simple link tests
8953lt_simple_link_test_code='int main(){return(0);}'
8954
8955
8956
8957
8958
8959
8960
8961# If no C compiler was specified, use CC.
8962LTCC=${LTCC-"$CC"}
8963
8964# If no C compiler flags were specified, use CFLAGS.
8965LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8966
8967# Allow CC to be a program name with arguments.
8968compiler=$CC
8969
8970# Save the default compiler, since it gets overwritten when the other
8971# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8972compiler_DEFAULT=$CC
8973
8974# save warnings/boilerplate of simple test code
8975ac_outfile=conftest.$ac_objext
8976echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8977eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8978_lt_compiler_boilerplate=`cat conftest.err`
8979$RM conftest*
8980
8981ac_outfile=conftest.$ac_objext
8982echo "$lt_simple_link_test_code" >conftest.$ac_ext
8983eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8984_lt_linker_boilerplate=`cat conftest.err`
8985$RM -r conftest*
8986
8987
8988## CAVEAT EMPTOR:
8989## There is no encapsulation within the following macros, do not change
8990## the running order or otherwise move them around unless you know exactly
8991## what you are doing...
8992if test -n "$compiler"; then
8993
8994lt_prog_compiler_no_builtin_flag=
8995
8996if test "$GCC" = yes; then
8997  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8998
8999  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9000echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9001if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9002  echo $ECHO_N "(cached) $ECHO_C" >&6
9003else
9004  lt_cv_prog_compiler_rtti_exceptions=no
9005   ac_outfile=conftest.$ac_objext
9006   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9007   lt_compiler_flag="-fno-rtti -fno-exceptions"
9008   # Insert the option either (1) after the last *FLAGS variable, or
9009   # (2) before a word containing "conftest.", or (3) at the end.
9010   # Note that $ac_compile itself does not contain backslashes and begins
9011   # with a dollar sign (not a hyphen), so the echo should work correctly.
9012   # The option is referenced via a variable to avoid confusing sed.
9013   lt_compile=`echo "$ac_compile" | $SED \
9014   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9015   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9016   -e 's:$: $lt_compiler_flag:'`
9017   (eval echo "\"\$as_me:9017: $lt_compile\"" >&5)
9018   (eval "$lt_compile" 2>conftest.err)
9019   ac_status=$?
9020   cat conftest.err >&5
9021   echo "$as_me:9021: \$? = $ac_status" >&5
9022   if (exit $ac_status) && test -s "$ac_outfile"; then
9023     # The compiler can only warn and ignore the option if not recognized
9024     # So say no if there are warnings other than the usual output.
9025     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9026     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9027     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9028       lt_cv_prog_compiler_rtti_exceptions=yes
9029     fi
9030   fi
9031   $RM conftest*
9032
9033fi
9034{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9035echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9036
9037if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9038    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9039else
9040    :
9041fi
9042
9043fi
9044
9045
9046
9047
9048
9049
9050  lt_prog_compiler_wl=
9051lt_prog_compiler_pic=
9052lt_prog_compiler_static=
9053
9054{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9055echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9056
9057  if test "$GCC" = yes; then
9058    lt_prog_compiler_wl='-Wl,'
9059    lt_prog_compiler_static='-static'
9060
9061    case $host_os in
9062      aix*)
9063      # All AIX code is PIC.
9064      if test "$host_cpu" = ia64; then
9065	# AIX 5 now supports IA64 processor
9066	lt_prog_compiler_static='-Bstatic'
9067      fi
9068      ;;
9069
9070    amigaos*)
9071      case $host_cpu in
9072      powerpc)
9073            # see comment about AmigaOS4 .so support
9074            lt_prog_compiler_pic='-fPIC'
9075        ;;
9076      m68k)
9077            # FIXME: we need at least 68020 code to build shared libraries, but
9078            # adding the `-m68020' flag to GCC prevents building anything better,
9079            # like `-m68040'.
9080            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9081        ;;
9082      esac
9083      ;;
9084
9085    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9086      # PIC is the default for these OSes.
9087      ;;
9088
9089    mingw* | cygwin* | pw32* | os2*)
9090      # This hack is so that the source file can tell whether it is being
9091      # built for inclusion in a dll (and should export symbols for example).
9092      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9093      # (--disable-auto-import) libraries
9094      lt_prog_compiler_pic='-DDLL_EXPORT'
9095      ;;
9096
9097    darwin* | rhapsody*)
9098      # PIC is the default on this platform
9099      # Common symbols not allowed in MH_DYLIB files
9100      lt_prog_compiler_pic='-fno-common'
9101      ;;
9102
9103    hpux*)
9104      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9105      # not for PA HP-UX.
9106      case $host_cpu in
9107      hppa*64*|ia64*)
9108	# +Z the default
9109	;;
9110      *)
9111	lt_prog_compiler_pic='-fPIC'
9112	;;
9113      esac
9114      ;;
9115
9116    interix[3-9]*)
9117      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9118      # Instead, we relocate shared libraries at runtime.
9119      ;;
9120
9121    msdosdjgpp*)
9122      # Just because we use GCC doesn't mean we suddenly get shared libraries
9123      # on systems that don't support them.
9124      lt_prog_compiler_can_build_shared=no
9125      enable_shared=no
9126      ;;
9127
9128    *nto* | *qnx*)
9129      # QNX uses GNU C++, but need to define -shared option too, otherwise
9130      # it will coredump.
9131      lt_prog_compiler_pic='-fPIC -shared'
9132      ;;
9133
9134    sysv4*MP*)
9135      if test -d /usr/nec; then
9136	lt_prog_compiler_pic=-Kconform_pic
9137      fi
9138      ;;
9139
9140    *)
9141      lt_prog_compiler_pic='-fPIC'
9142      ;;
9143    esac
9144  else
9145    # PORTME Check for flag to pass linker flags through the system compiler.
9146    case $host_os in
9147    aix*)
9148      lt_prog_compiler_wl='-Wl,'
9149      if test "$host_cpu" = ia64; then
9150	# AIX 5 now supports IA64 processor
9151	lt_prog_compiler_static='-Bstatic'
9152      else
9153	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9154      fi
9155      ;;
9156
9157    mingw* | cygwin* | pw32* | os2*)
9158      # This hack is so that the source file can tell whether it is being
9159      # built for inclusion in a dll (and should export symbols for example).
9160      lt_prog_compiler_pic='-DDLL_EXPORT'
9161      ;;
9162
9163    hpux9* | hpux10* | hpux11*)
9164      lt_prog_compiler_wl='-Wl,'
9165      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9166      # not for PA HP-UX.
9167      case $host_cpu in
9168      hppa*64*|ia64*)
9169	# +Z the default
9170	;;
9171      *)
9172	lt_prog_compiler_pic='+Z'
9173	;;
9174      esac
9175      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9176      lt_prog_compiler_static='${wl}-a ${wl}archive'
9177      ;;
9178
9179    irix5* | irix6* | nonstopux*)
9180      lt_prog_compiler_wl='-Wl,'
9181      # PIC (with -KPIC) is the default.
9182      lt_prog_compiler_static='-non_shared'
9183      ;;
9184
9185    linux* | k*bsd*-gnu)
9186      case $cc_basename in
9187      icc* | ecc* | ifort*)
9188	lt_prog_compiler_wl='-Wl,'
9189	lt_prog_compiler_pic='-KPIC'
9190	lt_prog_compiler_static='-static'
9191        ;;
9192      pgcc* | pgf77* | pgf90* | pgf95*)
9193        # Portland Group compilers (*not* the Pentium gcc compiler,
9194	# which looks to be a dead project)
9195	lt_prog_compiler_wl='-Wl,'
9196	lt_prog_compiler_pic='-fpic'
9197	lt_prog_compiler_static='-Bstatic'
9198        ;;
9199      ccc*)
9200        lt_prog_compiler_wl='-Wl,'
9201        # All Alpha code is PIC.
9202        lt_prog_compiler_static='-non_shared'
9203        ;;
9204      xl*)
9205	# IBM XL C 8.0/Fortran 10.1 on PPC
9206	lt_prog_compiler_wl='-Wl,'
9207	lt_prog_compiler_pic='-qpic'
9208	lt_prog_compiler_static='-qstaticlink'
9209	;;
9210      *)
9211	case `$CC -V 2>&1 | sed 5q` in
9212	*Sun\ C*)
9213	  # Sun C 5.9
9214	  lt_prog_compiler_pic='-KPIC'
9215	  lt_prog_compiler_static='-Bstatic'
9216	  lt_prog_compiler_wl='-Wl,'
9217	  ;;
9218	*Sun\ F*)
9219	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9220	  lt_prog_compiler_pic='-KPIC'
9221	  lt_prog_compiler_static='-Bstatic'
9222	  lt_prog_compiler_wl=''
9223	  ;;
9224	esac
9225	;;
9226      esac
9227      ;;
9228
9229    newsos6)
9230      lt_prog_compiler_pic='-KPIC'
9231      lt_prog_compiler_static='-Bstatic'
9232      ;;
9233
9234    *nto* | *qnx*)
9235      # QNX uses GNU C++, but need to define -shared option too, otherwise
9236      # it will coredump.
9237      lt_prog_compiler_pic='-fPIC -shared'
9238      ;;
9239
9240    osf3* | osf4* | osf5*)
9241      lt_prog_compiler_wl='-Wl,'
9242      # All OSF/1 code is PIC.
9243      lt_prog_compiler_static='-non_shared'
9244      ;;
9245
9246    rdos*)
9247      lt_prog_compiler_static='-non_shared'
9248      ;;
9249
9250    solaris*)
9251      lt_prog_compiler_pic='-KPIC'
9252      lt_prog_compiler_static='-Bstatic'
9253      case $cc_basename in
9254      f77* | f90* | f95*)
9255	lt_prog_compiler_wl='-Qoption ld ';;
9256      *)
9257	lt_prog_compiler_wl='-Wl,';;
9258      esac
9259      ;;
9260
9261    sunos4*)
9262      lt_prog_compiler_wl='-Qoption ld '
9263      lt_prog_compiler_pic='-PIC'
9264      lt_prog_compiler_static='-Bstatic'
9265      ;;
9266
9267    sysv4 | sysv4.2uw2* | sysv4.3*)
9268      lt_prog_compiler_wl='-Wl,'
9269      lt_prog_compiler_pic='-KPIC'
9270      lt_prog_compiler_static='-Bstatic'
9271      ;;
9272
9273    sysv4*MP*)
9274      if test -d /usr/nec ;then
9275	lt_prog_compiler_pic='-Kconform_pic'
9276	lt_prog_compiler_static='-Bstatic'
9277      fi
9278      ;;
9279
9280    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9281      lt_prog_compiler_wl='-Wl,'
9282      lt_prog_compiler_pic='-KPIC'
9283      lt_prog_compiler_static='-Bstatic'
9284      ;;
9285
9286    unicos*)
9287      lt_prog_compiler_wl='-Wl,'
9288      lt_prog_compiler_can_build_shared=no
9289      ;;
9290
9291    uts4*)
9292      lt_prog_compiler_pic='-pic'
9293      lt_prog_compiler_static='-Bstatic'
9294      ;;
9295
9296    *)
9297      lt_prog_compiler_can_build_shared=no
9298      ;;
9299    esac
9300  fi
9301
9302case $host_os in
9303  # For platforms which do not support PIC, -DPIC is meaningless:
9304  *djgpp*)
9305    lt_prog_compiler_pic=
9306    ;;
9307  *)
9308    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9309    ;;
9310esac
9311{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9312echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9313
9314
9315
9316
9317
9318
9319#
9320# Check to make sure the PIC flag actually works.
9321#
9322if test -n "$lt_prog_compiler_pic"; then
9323  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9324echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9325if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9326  echo $ECHO_N "(cached) $ECHO_C" >&6
9327else
9328  lt_cv_prog_compiler_pic_works=no
9329   ac_outfile=conftest.$ac_objext
9330   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9331   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9332   # Insert the option either (1) after the last *FLAGS variable, or
9333   # (2) before a word containing "conftest.", or (3) at the end.
9334   # Note that $ac_compile itself does not contain backslashes and begins
9335   # with a dollar sign (not a hyphen), so the echo should work correctly.
9336   # The option is referenced via a variable to avoid confusing sed.
9337   lt_compile=`echo "$ac_compile" | $SED \
9338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9340   -e 's:$: $lt_compiler_flag:'`
9341   (eval echo "\"\$as_me:9341: $lt_compile\"" >&5)
9342   (eval "$lt_compile" 2>conftest.err)
9343   ac_status=$?
9344   cat conftest.err >&5
9345   echo "$as_me:9345: \$? = $ac_status" >&5
9346   if (exit $ac_status) && test -s "$ac_outfile"; then
9347     # The compiler can only warn and ignore the option if not recognized
9348     # So say no if there are warnings other than the usual output.
9349     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9350     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9351     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9352       lt_cv_prog_compiler_pic_works=yes
9353     fi
9354   fi
9355   $RM conftest*
9356
9357fi
9358{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9359echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9360
9361if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9362    case $lt_prog_compiler_pic in
9363     "" | " "*) ;;
9364     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9365     esac
9366else
9367    lt_prog_compiler_pic=
9368     lt_prog_compiler_can_build_shared=no
9369fi
9370
9371fi
9372
9373
9374
9375
9376
9377
9378#
9379# Check to make sure the static flag actually works.
9380#
9381wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9382{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9383echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9384if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9385  echo $ECHO_N "(cached) $ECHO_C" >&6
9386else
9387  lt_cv_prog_compiler_static_works=no
9388   save_LDFLAGS="$LDFLAGS"
9389   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9390   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9391   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9392     # The linker can only warn and ignore the option if not recognized
9393     # So say no if there are warnings
9394     if test -s conftest.err; then
9395       # Append any errors to the config.log.
9396       cat conftest.err 1>&5
9397       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9398       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9399       if diff conftest.exp conftest.er2 >/dev/null; then
9400         lt_cv_prog_compiler_static_works=yes
9401       fi
9402     else
9403       lt_cv_prog_compiler_static_works=yes
9404     fi
9405   fi
9406   $RM -r conftest*
9407   LDFLAGS="$save_LDFLAGS"
9408
9409fi
9410{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9411echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9412
9413if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9414    :
9415else
9416    lt_prog_compiler_static=
9417fi
9418
9419
9420
9421
9422
9423
9424
9425  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9426echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9427if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9428  echo $ECHO_N "(cached) $ECHO_C" >&6
9429else
9430  lt_cv_prog_compiler_c_o=no
9431   $RM -r conftest 2>/dev/null
9432   mkdir conftest
9433   cd conftest
9434   mkdir out
9435   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9436
9437   lt_compiler_flag="-o out/conftest2.$ac_objext"
9438   # Insert the option either (1) after the last *FLAGS variable, or
9439   # (2) before a word containing "conftest.", or (3) at the end.
9440   # Note that $ac_compile itself does not contain backslashes and begins
9441   # with a dollar sign (not a hyphen), so the echo should work correctly.
9442   lt_compile=`echo "$ac_compile" | $SED \
9443   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9444   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9445   -e 's:$: $lt_compiler_flag:'`
9446   (eval echo "\"\$as_me:9446: $lt_compile\"" >&5)
9447   (eval "$lt_compile" 2>out/conftest.err)
9448   ac_status=$?
9449   cat out/conftest.err >&5
9450   echo "$as_me:9450: \$? = $ac_status" >&5
9451   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9452   then
9453     # The compiler can only warn and ignore the option if not recognized
9454     # So say no if there are warnings
9455     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9456     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9457     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9458       lt_cv_prog_compiler_c_o=yes
9459     fi
9460   fi
9461   chmod u+w . 2>&5
9462   $RM conftest*
9463   # SGI C++ compiler will create directory out/ii_files/ for
9464   # template instantiation
9465   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9466   $RM out/* && rmdir out
9467   cd ..
9468   $RM -r conftest
9469   $RM conftest*
9470
9471fi
9472{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9473echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9474
9475
9476
9477
9478
9479
9480  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9481echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9482if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9483  echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485  lt_cv_prog_compiler_c_o=no
9486   $RM -r conftest 2>/dev/null
9487   mkdir conftest
9488   cd conftest
9489   mkdir out
9490   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9491
9492   lt_compiler_flag="-o out/conftest2.$ac_objext"
9493   # Insert the option either (1) after the last *FLAGS variable, or
9494   # (2) before a word containing "conftest.", or (3) at the end.
9495   # Note that $ac_compile itself does not contain backslashes and begins
9496   # with a dollar sign (not a hyphen), so the echo should work correctly.
9497   lt_compile=`echo "$ac_compile" | $SED \
9498   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9500   -e 's:$: $lt_compiler_flag:'`
9501   (eval echo "\"\$as_me:9501: $lt_compile\"" >&5)
9502   (eval "$lt_compile" 2>out/conftest.err)
9503   ac_status=$?
9504   cat out/conftest.err >&5
9505   echo "$as_me:9505: \$? = $ac_status" >&5
9506   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9507   then
9508     # The compiler can only warn and ignore the option if not recognized
9509     # So say no if there are warnings
9510     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9511     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9512     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9513       lt_cv_prog_compiler_c_o=yes
9514     fi
9515   fi
9516   chmod u+w . 2>&5
9517   $RM conftest*
9518   # SGI C++ compiler will create directory out/ii_files/ for
9519   # template instantiation
9520   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9521   $RM out/* && rmdir out
9522   cd ..
9523   $RM -r conftest
9524   $RM conftest*
9525
9526fi
9527{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9528echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9529
9530
9531
9532
9533hard_links="nottested"
9534if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9535  # do not overwrite the value of need_locks provided by the user
9536  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9537echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9538  hard_links=yes
9539  $RM conftest*
9540  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9541  touch conftest.a
9542  ln conftest.a conftest.b 2>&5 || hard_links=no
9543  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9544  { echo "$as_me:$LINENO: result: $hard_links" >&5
9545echo "${ECHO_T}$hard_links" >&6; }
9546  if test "$hard_links" = no; then
9547    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9548echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9549    need_locks=warn
9550  fi
9551else
9552  need_locks=no
9553fi
9554
9555
9556
9557
9558
9559
9560  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9561echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9562
9563  runpath_var=
9564  allow_undefined_flag=
9565  always_export_symbols=no
9566  archive_cmds=
9567  archive_expsym_cmds=
9568  compiler_needs_object=no
9569  enable_shared_with_static_runtimes=no
9570  export_dynamic_flag_spec=
9571  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9572  hardcode_automatic=no
9573  hardcode_direct=no
9574  hardcode_direct_absolute=no
9575  hardcode_libdir_flag_spec=
9576  hardcode_libdir_flag_spec_ld=
9577  hardcode_libdir_separator=
9578  hardcode_minus_L=no
9579  hardcode_shlibpath_var=unsupported
9580  inherit_rpath=no
9581  link_all_deplibs=unknown
9582  module_cmds=
9583  module_expsym_cmds=
9584  old_archive_from_new_cmds=
9585  old_archive_from_expsyms_cmds=
9586  thread_safe_flag_spec=
9587  whole_archive_flag_spec=
9588  # include_expsyms should be a list of space-separated symbols to be *always*
9589  # included in the symbol list
9590  include_expsyms=
9591  # exclude_expsyms can be an extended regexp of symbols to exclude
9592  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9593  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9594  # as well as any symbol that contains `d'.
9595  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9596  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9597  # platforms (ab)use it in PIC code, but their linkers get confused if
9598  # the symbol is explicitly referenced.  Since portable code cannot
9599  # rely on this symbol name, it's probably fine to never include it in
9600  # preloaded symbol tables.
9601  # Exclude shared library initialization/finalization symbols.
9602  extract_expsyms_cmds=
9603
9604  case $host_os in
9605  cygwin* | mingw* | pw32*)
9606    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9607    # When not using gcc, we currently assume that we are using
9608    # Microsoft Visual C++.
9609    if test "$GCC" != yes; then
9610      with_gnu_ld=no
9611    fi
9612    ;;
9613  interix*)
9614    # we just hope/assume this is gcc and not c89 (= MSVC++)
9615    with_gnu_ld=yes
9616    ;;
9617  openbsd*)
9618    with_gnu_ld=no
9619    ;;
9620  esac
9621
9622  ld_shlibs=yes
9623  if test "$with_gnu_ld" = yes; then
9624    # If archive_cmds runs LD, not CC, wlarc should be empty
9625    wlarc='${wl}'
9626
9627    # Set some defaults for GNU ld with shared library support. These
9628    # are reset later if shared libraries are not supported. Putting them
9629    # here allows them to be overridden if necessary.
9630    runpath_var=LD_RUN_PATH
9631    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9632    export_dynamic_flag_spec='${wl}--export-dynamic'
9633    # ancient GNU ld didn't support --whole-archive et. al.
9634    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9635      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9636    else
9637      whole_archive_flag_spec=
9638    fi
9639    supports_anon_versioning=no
9640    case `$LD -v 2>&1` in
9641      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9642      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9643      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9644      *\ 2.11.*) ;; # other 2.11 versions
9645      *) supports_anon_versioning=yes ;;
9646    esac
9647
9648    # See if GNU ld supports shared libraries.
9649    case $host_os in
9650    aix[3-9]*)
9651      # On AIX/PPC, the GNU linker is very broken
9652      if test "$host_cpu" != ia64; then
9653	ld_shlibs=no
9654	cat <<_LT_EOF 1>&2
9655
9656*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9657*** to be unable to reliably create shared libraries on AIX.
9658*** Therefore, libtool is disabling shared libraries support.  If you
9659*** really care for shared libraries, you may want to modify your PATH
9660*** so that a non-GNU linker is found, and then restart.
9661
9662_LT_EOF
9663      fi
9664      ;;
9665
9666    amigaos*)
9667      case $host_cpu in
9668      powerpc)
9669            # see comment about AmigaOS4 .so support
9670            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9671            archive_expsym_cmds=''
9672        ;;
9673      m68k)
9674            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)'
9675            hardcode_libdir_flag_spec='-L$libdir'
9676            hardcode_minus_L=yes
9677        ;;
9678      esac
9679      ;;
9680
9681    beos*)
9682      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9683	allow_undefined_flag=unsupported
9684	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9685	# support --undefined.  This deserves some investigation.  FIXME
9686	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9687      else
9688	ld_shlibs=no
9689      fi
9690      ;;
9691
9692    cygwin* | mingw* | pw32*)
9693      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9694      # as there is no search path for DLLs.
9695      hardcode_libdir_flag_spec='-L$libdir'
9696      allow_undefined_flag=unsupported
9697      always_export_symbols=no
9698      enable_shared_with_static_runtimes=yes
9699      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9700
9701      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9702        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9703	# If the export-symbols file already is a .def file (1st line
9704	# is EXPORTS), use it as is; otherwise, prepend...
9705	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9706	  cp $export_symbols $output_objdir/$soname.def;
9707	else
9708	  echo EXPORTS > $output_objdir/$soname.def;
9709	  cat $export_symbols >> $output_objdir/$soname.def;
9710	fi~
9711	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9712      else
9713	ld_shlibs=no
9714      fi
9715      ;;
9716
9717    interix[3-9]*)
9718      hardcode_direct=no
9719      hardcode_shlibpath_var=no
9720      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9721      export_dynamic_flag_spec='${wl}-E'
9722      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9723      # Instead, shared libraries are loaded at an image base (0x10000000 by
9724      # default) and relocated if they conflict, which is a slow very memory
9725      # consuming and fragmenting process.  To avoid this, we pick a random,
9726      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9727      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9728      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9729      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'
9730      ;;
9731
9732    gnu* | linux* | tpf* | k*bsd*-gnu)
9733      tmp_diet=no
9734      if test "$host_os" = linux-dietlibc; then
9735	case $cc_basename in
9736	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9737	esac
9738      fi
9739      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9740	 && test "$tmp_diet" = no
9741      then
9742	tmp_addflag=
9743	tmp_sharedflag='-shared'
9744	case $cc_basename,$host_cpu in
9745        pgcc*)				# Portland Group C compiler
9746	  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'
9747	  tmp_addflag=' $pic_flag'
9748	  ;;
9749	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9750	  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'
9751	  tmp_addflag=' $pic_flag -Mnomain' ;;
9752	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9753	  tmp_addflag=' -i_dynamic' ;;
9754	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9755	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9756	ifc* | ifort*)			# Intel Fortran compiler
9757	  tmp_addflag=' -nofor_main' ;;
9758	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9759	  tmp_sharedflag='-qmkshrobj'
9760	  tmp_addflag= ;;
9761	esac
9762	case `$CC -V 2>&1 | sed 5q` in
9763	*Sun\ C*)			# Sun C 5.9
9764	  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'
9765	  compiler_needs_object=yes
9766	  tmp_sharedflag='-G' ;;
9767	*Sun\ F*)			# Sun Fortran 8.3
9768	  tmp_sharedflag='-G' ;;
9769	esac
9770	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9771
9772        if test "x$supports_anon_versioning" = xyes; then
9773          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9774	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9775	    echo "local: *; };" >> $output_objdir/$libname.ver~
9776	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9777        fi
9778
9779	case $cc_basename in
9780	xlf*)
9781	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9782	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9783	  hardcode_libdir_flag_spec=
9784	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9785	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9786	  if test "x$supports_anon_versioning" = xyes; then
9787	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9788	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9789	      echo "local: *; };" >> $output_objdir/$libname.ver~
9790	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9791	  fi
9792	  ;;
9793	esac
9794      else
9795        ld_shlibs=no
9796      fi
9797      ;;
9798
9799    netbsd*)
9800      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9801	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9802	wlarc=
9803      else
9804	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9805	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9806      fi
9807      ;;
9808
9809    solaris*)
9810      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9811	ld_shlibs=no
9812	cat <<_LT_EOF 1>&2
9813
9814*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9815*** create shared libraries on Solaris systems.  Therefore, libtool
9816*** is disabling shared libraries support.  We urge you to upgrade GNU
9817*** binutils to release 2.9.1 or newer.  Another option is to modify
9818*** your PATH or compiler configuration so that the native linker is
9819*** used, and then restart.
9820
9821_LT_EOF
9822      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9823	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9824	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9825      else
9826	ld_shlibs=no
9827      fi
9828      ;;
9829
9830    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9831      case `$LD -v 2>&1` in
9832        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9833	ld_shlibs=no
9834	cat <<_LT_EOF 1>&2
9835
9836*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9837*** reliably create shared libraries on SCO systems.  Therefore, libtool
9838*** is disabling shared libraries support.  We urge you to upgrade GNU
9839*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9840*** your PATH or compiler configuration so that the native linker is
9841*** used, and then restart.
9842
9843_LT_EOF
9844	;;
9845	*)
9846	  # For security reasons, it is highly recommended that you always
9847	  # use absolute paths for naming shared libraries, and exclude the
9848	  # DT_RUNPATH tag from executables and libraries.  But doing so
9849	  # requires that you compile everything twice, which is a pain.
9850	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9851	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9852	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9853	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9854	  else
9855	    ld_shlibs=no
9856	  fi
9857	;;
9858      esac
9859      ;;
9860
9861    sunos4*)
9862      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9863      wlarc=
9864      hardcode_direct=yes
9865      hardcode_shlibpath_var=no
9866      ;;
9867
9868    *)
9869      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9870	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9871	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9872      else
9873	ld_shlibs=no
9874      fi
9875      ;;
9876    esac
9877
9878    if test "$ld_shlibs" = no; then
9879      runpath_var=
9880      hardcode_libdir_flag_spec=
9881      export_dynamic_flag_spec=
9882      whole_archive_flag_spec=
9883    fi
9884  else
9885    # PORTME fill in a description of your system's linker (not GNU ld)
9886    case $host_os in
9887    aix3*)
9888      allow_undefined_flag=unsupported
9889      always_export_symbols=yes
9890      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'
9891      # Note: this linker hardcodes the directories in LIBPATH if there
9892      # are no directories specified by -L.
9893      hardcode_minus_L=yes
9894      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9895	# Neither direct hardcoding nor static linking is supported with a
9896	# broken collect2.
9897	hardcode_direct=unsupported
9898      fi
9899      ;;
9900
9901    aix[4-9]*)
9902      if test "$host_cpu" = ia64; then
9903	# On IA64, the linker does run time linking by default, so we don't
9904	# have to do anything special.
9905	aix_use_runtimelinking=no
9906	exp_sym_flag='-Bexport'
9907	no_entry_flag=""
9908      else
9909	# If we're using GNU nm, then we don't want the "-C" option.
9910	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9911	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9912	  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'
9913	else
9914	  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'
9915	fi
9916	aix_use_runtimelinking=no
9917
9918	# Test if we are trying to use run time linking or normal
9919	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9920	# need to do runtime linking.
9921	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9922	  for ld_flag in $LDFLAGS; do
9923	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9924	    aix_use_runtimelinking=yes
9925	    break
9926	  fi
9927	  done
9928	  ;;
9929	esac
9930
9931	exp_sym_flag='-bexport'
9932	no_entry_flag='-bnoentry'
9933      fi
9934
9935      # When large executables or shared objects are built, AIX ld can
9936      # have problems creating the table of contents.  If linking a library
9937      # or program results in "error TOC overflow" add -mminimal-toc to
9938      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9939      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9940
9941      archive_cmds=''
9942      hardcode_direct=yes
9943      hardcode_direct_absolute=yes
9944      hardcode_libdir_separator=':'
9945      link_all_deplibs=yes
9946      file_list_spec='${wl}-f,'
9947
9948      if test "$GCC" = yes; then
9949	case $host_os in aix4.[012]|aix4.[012].*)
9950	# We only want to do this on AIX 4.2 and lower, the check
9951	# below for broken collect2 doesn't work under 4.3+
9952	  collect2name=`${CC} -print-prog-name=collect2`
9953	  if test -f "$collect2name" &&
9954	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9955	  then
9956	  # We have reworked collect2
9957	  :
9958	  else
9959	  # We have old collect2
9960	  hardcode_direct=unsupported
9961	  # It fails to find uninstalled libraries when the uninstalled
9962	  # path is not listed in the libpath.  Setting hardcode_minus_L
9963	  # to unsupported forces relinking
9964	  hardcode_minus_L=yes
9965	  hardcode_libdir_flag_spec='-L$libdir'
9966	  hardcode_libdir_separator=
9967	  fi
9968	  ;;
9969	esac
9970	shared_flag='-shared'
9971	if test "$aix_use_runtimelinking" = yes; then
9972	  shared_flag="$shared_flag "'${wl}-G'
9973	fi
9974      else
9975	# not using gcc
9976	if test "$host_cpu" = ia64; then
9977	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9978	# chokes on -Wl,-G. The following line is correct:
9979	  shared_flag='-G'
9980	else
9981	  if test "$aix_use_runtimelinking" = yes; then
9982	    shared_flag='${wl}-G'
9983	  else
9984	    shared_flag='${wl}-bM:SRE'
9985	  fi
9986	fi
9987      fi
9988
9989      # It seems that -bexpall does not export symbols beginning with
9990      # underscore (_), so it is better to generate a list of symbols to export.
9991      always_export_symbols=yes
9992      if test "$aix_use_runtimelinking" = yes; then
9993	# Warning - without using the other runtime loading flags (-brtl),
9994	# -berok will link without error, but may produce a broken library.
9995	allow_undefined_flag='-berok'
9996        # Determine the default libpath from the value encoded in an
9997        # empty executable.
9998        cat >conftest.$ac_ext <<_ACEOF
9999/* confdefs.h.  */
10000_ACEOF
10001cat confdefs.h >>conftest.$ac_ext
10002cat >>conftest.$ac_ext <<_ACEOF
10003/* end confdefs.h.  */
10004
10005int
10006main ()
10007{
10008
10009  ;
10010  return 0;
10011}
10012_ACEOF
10013rm -f conftest.$ac_objext conftest$ac_exeext
10014if { (ac_try="$ac_link"
10015case "(($ac_try" in
10016  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10017  *) ac_try_echo=$ac_try;;
10018esac
10019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10020  (eval "$ac_link") 2>conftest.er1
10021  ac_status=$?
10022  grep -v '^ *+' conftest.er1 >conftest.err
10023  rm -f conftest.er1
10024  cat conftest.err >&5
10025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); } && {
10027	 test -z "$ac_c_werror_flag" ||
10028	 test ! -s conftest.err
10029       } && test -s conftest$ac_exeext &&
10030       $as_test_x conftest$ac_exeext; then
10031
10032lt_aix_libpath_sed='
10033    /Import File Strings/,/^$/ {
10034	/^0/ {
10035	    s/^0  *\(.*\)$/\1/
10036	    p
10037	}
10038    }'
10039aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10040# Check for a 64-bit object if we didn't find anything.
10041if test -z "$aix_libpath"; then
10042  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10043fi
10044else
10045  echo "$as_me: failed program was:" >&5
10046sed 's/^/| /' conftest.$ac_ext >&5
10047
10048
10049fi
10050
10051rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10052      conftest$ac_exeext conftest.$ac_ext
10053if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10054
10055        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10056        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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10057      else
10058	if test "$host_cpu" = ia64; then
10059	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10060	  allow_undefined_flag="-z nodefs"
10061	  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"
10062	else
10063	 # Determine the default libpath from the value encoded in an
10064	 # empty executable.
10065	 cat >conftest.$ac_ext <<_ACEOF
10066/* confdefs.h.  */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h.  */
10071
10072int
10073main ()
10074{
10075
10076  ;
10077  return 0;
10078}
10079_ACEOF
10080rm -f conftest.$ac_objext conftest$ac_exeext
10081if { (ac_try="$ac_link"
10082case "(($ac_try" in
10083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084  *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087  (eval "$ac_link") 2>conftest.er1
10088  ac_status=$?
10089  grep -v '^ *+' conftest.er1 >conftest.err
10090  rm -f conftest.er1
10091  cat conftest.err >&5
10092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093  (exit $ac_status); } && {
10094	 test -z "$ac_c_werror_flag" ||
10095	 test ! -s conftest.err
10096       } && test -s conftest$ac_exeext &&
10097       $as_test_x conftest$ac_exeext; then
10098
10099lt_aix_libpath_sed='
10100    /Import File Strings/,/^$/ {
10101	/^0/ {
10102	    s/^0  *\(.*\)$/\1/
10103	    p
10104	}
10105    }'
10106aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10107# Check for a 64-bit object if we didn't find anything.
10108if test -z "$aix_libpath"; then
10109  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10110fi
10111else
10112  echo "$as_me: failed program was:" >&5
10113sed 's/^/| /' conftest.$ac_ext >&5
10114
10115
10116fi
10117
10118rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10119      conftest$ac_exeext conftest.$ac_ext
10120if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10121
10122	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10123	  # Warning - without using the other run time loading flags,
10124	  # -berok will link without error, but may produce a broken library.
10125	  no_undefined_flag=' ${wl}-bernotok'
10126	  allow_undefined_flag=' ${wl}-berok'
10127	  # Exported symbols can be pulled into shared objects from archives
10128	  whole_archive_flag_spec='$convenience'
10129	  archive_cmds_need_lc=yes
10130	  # This is similar to how AIX traditionally builds its shared libraries.
10131	  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'
10132	fi
10133      fi
10134      ;;
10135
10136    amigaos*)
10137      case $host_cpu in
10138      powerpc)
10139            # see comment about AmigaOS4 .so support
10140            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10141            archive_expsym_cmds=''
10142        ;;
10143      m68k)
10144            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)'
10145            hardcode_libdir_flag_spec='-L$libdir'
10146            hardcode_minus_L=yes
10147        ;;
10148      esac
10149      ;;
10150
10151    bsdi[45]*)
10152      export_dynamic_flag_spec=-rdynamic
10153      ;;
10154
10155    cygwin* | mingw* | pw32*)
10156      # When not using gcc, we currently assume that we are using
10157      # Microsoft Visual C++.
10158      # hardcode_libdir_flag_spec is actually meaningless, as there is
10159      # no search path for DLLs.
10160      hardcode_libdir_flag_spec=' '
10161      allow_undefined_flag=unsupported
10162      # Tell ltmain to make .lib files, not .a files.
10163      libext=lib
10164      # Tell ltmain to make .dll files, not .so files.
10165      shrext_cmds=".dll"
10166      # FIXME: Setting linknames here is a bad hack.
10167      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10168      # The linker will automatically build a .lib file if we build a DLL.
10169      old_archive_from_new_cmds='true'
10170      # FIXME: Should let the user specify the lib program.
10171      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10172      fix_srcfile_path='`cygpath -w "$srcfile"`'
10173      enable_shared_with_static_runtimes=yes
10174      ;;
10175
10176    darwin* | rhapsody*)
10177
10178
10179  archive_cmds_need_lc=no
10180  hardcode_direct=no
10181  hardcode_automatic=yes
10182  hardcode_shlibpath_var=unsupported
10183  whole_archive_flag_spec=''
10184  link_all_deplibs=yes
10185  allow_undefined_flag="$_lt_dar_allow_undefined"
10186  if test "$GCC" = "yes"; then
10187    output_verbose_link_cmd=echo
10188    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10189    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10190    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10191    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10192
10193  else
10194  ld_shlibs=no
10195  fi
10196
10197      ;;
10198
10199    dgux*)
10200      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201      hardcode_libdir_flag_spec='-L$libdir'
10202      hardcode_shlibpath_var=no
10203      ;;
10204
10205    freebsd1*)
10206      ld_shlibs=no
10207      ;;
10208
10209    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10210    # support.  Future versions do this automatically, but an explicit c++rt0.o
10211    # does not break anything, and helps significantly (at the cost of a little
10212    # extra space).
10213    freebsd2.2*)
10214      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10215      hardcode_libdir_flag_spec='-R$libdir'
10216      hardcode_direct=yes
10217      hardcode_shlibpath_var=no
10218      ;;
10219
10220    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10221    freebsd2*)
10222      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10223      hardcode_direct=yes
10224      hardcode_minus_L=yes
10225      hardcode_shlibpath_var=no
10226      ;;
10227
10228    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10229    freebsd* | dragonfly*)
10230      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10231      hardcode_libdir_flag_spec='-R$libdir'
10232      hardcode_direct=yes
10233      hardcode_shlibpath_var=no
10234      ;;
10235
10236    hpux9*)
10237      if test "$GCC" = yes; then
10238	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'
10239      else
10240	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'
10241      fi
10242      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10243      hardcode_libdir_separator=:
10244      hardcode_direct=yes
10245
10246      # hardcode_minus_L: Not really in the search PATH,
10247      # but as the default location of the library.
10248      hardcode_minus_L=yes
10249      export_dynamic_flag_spec='${wl}-E'
10250      ;;
10251
10252    hpux10*)
10253      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10254	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10255      else
10256	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10257      fi
10258      if test "$with_gnu_ld" = no; then
10259	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10260	hardcode_libdir_flag_spec_ld='+b $libdir'
10261	hardcode_libdir_separator=:
10262	hardcode_direct=yes
10263	hardcode_direct_absolute=yes
10264	export_dynamic_flag_spec='${wl}-E'
10265	# hardcode_minus_L: Not really in the search PATH,
10266	# but as the default location of the library.
10267	hardcode_minus_L=yes
10268      fi
10269      ;;
10270
10271    hpux11*)
10272      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10273	case $host_cpu in
10274	hppa*64*)
10275	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10276	  ;;
10277	ia64*)
10278	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10279	  ;;
10280	*)
10281	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10282	  ;;
10283	esac
10284      else
10285	case $host_cpu in
10286	hppa*64*)
10287	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10288	  ;;
10289	ia64*)
10290	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10291	  ;;
10292	*)
10293	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10294	  ;;
10295	esac
10296      fi
10297      if test "$with_gnu_ld" = no; then
10298	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10299	hardcode_libdir_separator=:
10300
10301	case $host_cpu in
10302	hppa*64*|ia64*)
10303	  hardcode_direct=no
10304	  hardcode_shlibpath_var=no
10305	  ;;
10306	*)
10307	  hardcode_direct=yes
10308	  hardcode_direct_absolute=yes
10309	  export_dynamic_flag_spec='${wl}-E'
10310
10311	  # hardcode_minus_L: Not really in the search PATH,
10312	  # but as the default location of the library.
10313	  hardcode_minus_L=yes
10314	  ;;
10315	esac
10316      fi
10317      ;;
10318
10319    irix5* | irix6* | nonstopux*)
10320      if test "$GCC" = yes; then
10321	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10322	# Try to use the -exported_symbol ld option, if it does not
10323	# work, assume that -exports_file does not work either and
10324	# implicitly export all symbols.
10325        save_LDFLAGS="$LDFLAGS"
10326        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10327        cat >conftest.$ac_ext <<_ACEOF
10328int foo(void) {}
10329_ACEOF
10330rm -f conftest.$ac_objext conftest$ac_exeext
10331if { (ac_try="$ac_link"
10332case "(($ac_try" in
10333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334  *) ac_try_echo=$ac_try;;
10335esac
10336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337  (eval "$ac_link") 2>conftest.er1
10338  ac_status=$?
10339  grep -v '^ *+' conftest.er1 >conftest.err
10340  rm -f conftest.er1
10341  cat conftest.err >&5
10342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343  (exit $ac_status); } && {
10344	 test -z "$ac_c_werror_flag" ||
10345	 test ! -s conftest.err
10346       } && test -s conftest$ac_exeext &&
10347       $as_test_x conftest$ac_exeext; then
10348  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10349
10350else
10351  echo "$as_me: failed program was:" >&5
10352sed 's/^/| /' conftest.$ac_ext >&5
10353
10354
10355fi
10356
10357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10358      conftest$ac_exeext conftest.$ac_ext
10359        LDFLAGS="$save_LDFLAGS"
10360      else
10361	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10362	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10363      fi
10364      archive_cmds_need_lc='no'
10365      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10366      hardcode_libdir_separator=:
10367      inherit_rpath=yes
10368      link_all_deplibs=yes
10369      ;;
10370
10371    netbsd*)
10372      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10373	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10374      else
10375	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10376      fi
10377      hardcode_libdir_flag_spec='-R$libdir'
10378      hardcode_direct=yes
10379      hardcode_shlibpath_var=no
10380      ;;
10381
10382    newsos6)
10383      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384      hardcode_direct=yes
10385      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10386      hardcode_libdir_separator=:
10387      hardcode_shlibpath_var=no
10388      ;;
10389
10390    *nto* | *qnx*)
10391      ;;
10392
10393    openbsd*)
10394      if test -f /usr/libexec/ld.so; then
10395	hardcode_direct=yes
10396	hardcode_shlibpath_var=no
10397	hardcode_direct_absolute=yes
10398	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10399	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10400	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10401	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10402	  export_dynamic_flag_spec='${wl}-E'
10403	else
10404	  case $host_os in
10405	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10406	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10407	     hardcode_libdir_flag_spec='-R$libdir'
10408	     ;;
10409	   *)
10410	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10411	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10412	     ;;
10413	  esac
10414	fi
10415      else
10416	ld_shlibs=no
10417      fi
10418      ;;
10419
10420    os2*)
10421      hardcode_libdir_flag_spec='-L$libdir'
10422      hardcode_minus_L=yes
10423      allow_undefined_flag=unsupported
10424      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'
10425      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10426      ;;
10427
10428    osf3*)
10429      if test "$GCC" = yes; then
10430	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10431	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10432      else
10433	allow_undefined_flag=' -expect_unresolved \*'
10434	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10435      fi
10436      archive_cmds_need_lc='no'
10437      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10438      hardcode_libdir_separator=:
10439      ;;
10440
10441    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10442      if test "$GCC" = yes; then
10443	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10444	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10445	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10446      else
10447	allow_undefined_flag=' -expect_unresolved \*'
10448	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10449	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10450	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10451
10452	# Both c and cxx compiler support -rpath directly
10453	hardcode_libdir_flag_spec='-rpath $libdir'
10454      fi
10455      archive_cmds_need_lc='no'
10456      hardcode_libdir_separator=:
10457      ;;
10458
10459    solaris*)
10460      no_undefined_flag=' -z defs'
10461      if test "$GCC" = yes; then
10462	wlarc='${wl}'
10463	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10464	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10465	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10466      else
10467	case `$CC -V 2>&1` in
10468	*"Compilers 5.0"*)
10469	  wlarc=''
10470	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10471	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10472	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10473	  ;;
10474	*)
10475	  wlarc='${wl}'
10476	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10477	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10478	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10479	  ;;
10480	esac
10481      fi
10482      hardcode_libdir_flag_spec='-R$libdir'
10483      hardcode_shlibpath_var=no
10484      case $host_os in
10485      solaris2.[0-5] | solaris2.[0-5].*) ;;
10486      *)
10487	# The compiler driver will combine and reorder linker options,
10488	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10489	# but is careful enough not to reorder.
10490	# Supported since Solaris 2.6 (maybe 2.5.1?)
10491	if test "$GCC" = yes; then
10492	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10493	else
10494	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10495	fi
10496	;;
10497      esac
10498      link_all_deplibs=yes
10499      ;;
10500
10501    sunos4*)
10502      if test "x$host_vendor" = xsequent; then
10503	# Use $CC to link under sequent, because it throws in some extra .o
10504	# files that make .init and .fini sections work.
10505	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10506      else
10507	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10508      fi
10509      hardcode_libdir_flag_spec='-L$libdir'
10510      hardcode_direct=yes
10511      hardcode_minus_L=yes
10512      hardcode_shlibpath_var=no
10513      ;;
10514
10515    sysv4)
10516      case $host_vendor in
10517	sni)
10518	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519	  hardcode_direct=yes # is this really true???
10520	;;
10521	siemens)
10522	  ## LD is ld it makes a PLAMLIB
10523	  ## CC just makes a GrossModule.
10524	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10525	  reload_cmds='$CC -r -o $output$reload_objs'
10526	  hardcode_direct=no
10527        ;;
10528	motorola)
10529	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10530	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10531	;;
10532      esac
10533      runpath_var='LD_RUN_PATH'
10534      hardcode_shlibpath_var=no
10535      ;;
10536
10537    sysv4.3*)
10538      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10539      hardcode_shlibpath_var=no
10540      export_dynamic_flag_spec='-Bexport'
10541      ;;
10542
10543    sysv4*MP*)
10544      if test -d /usr/nec; then
10545	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10546	hardcode_shlibpath_var=no
10547	runpath_var=LD_RUN_PATH
10548	hardcode_runpath_var=yes
10549	ld_shlibs=yes
10550      fi
10551      ;;
10552
10553    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10554      no_undefined_flag='${wl}-z,text'
10555      archive_cmds_need_lc=no
10556      hardcode_shlibpath_var=no
10557      runpath_var='LD_RUN_PATH'
10558
10559      if test "$GCC" = yes; then
10560	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10562      else
10563	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10564	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10565      fi
10566      ;;
10567
10568    sysv5* | sco3.2v5* | sco5v6*)
10569      # Note: We can NOT use -z defs as we might desire, because we do not
10570      # link with -lc, and that would cause any symbols used from libc to
10571      # always be unresolved, which means just about no library would
10572      # ever link correctly.  If we're not using GNU ld we use -z text
10573      # though, which does catch some bad symbols but isn't as heavy-handed
10574      # as -z defs.
10575      no_undefined_flag='${wl}-z,text'
10576      allow_undefined_flag='${wl}-z,nodefs'
10577      archive_cmds_need_lc=no
10578      hardcode_shlibpath_var=no
10579      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10580      hardcode_libdir_separator=':'
10581      link_all_deplibs=yes
10582      export_dynamic_flag_spec='${wl}-Bexport'
10583      runpath_var='LD_RUN_PATH'
10584
10585      if test "$GCC" = yes; then
10586	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10587	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10588      else
10589	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10590	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10591      fi
10592      ;;
10593
10594    uts4*)
10595      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10596      hardcode_libdir_flag_spec='-L$libdir'
10597      hardcode_shlibpath_var=no
10598      ;;
10599
10600    *)
10601      ld_shlibs=no
10602      ;;
10603    esac
10604
10605    if test x$host_vendor = xsni; then
10606      case $host in
10607      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10608	export_dynamic_flag_spec='${wl}-Blargedynsym'
10609	;;
10610      esac
10611    fi
10612  fi
10613
10614{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10615echo "${ECHO_T}$ld_shlibs" >&6; }
10616test "$ld_shlibs" = no && can_build_shared=no
10617
10618with_gnu_ld=$with_gnu_ld
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634#
10635# Do we need to explicitly link libc?
10636#
10637case "x$archive_cmds_need_lc" in
10638x|xyes)
10639  # Assume -lc should be added
10640  archive_cmds_need_lc=yes
10641
10642  if test "$enable_shared" = yes && test "$GCC" = yes; then
10643    case $archive_cmds in
10644    *'~'*)
10645      # FIXME: we may have to deal with multi-command sequences.
10646      ;;
10647    '$CC '*)
10648      # Test whether the compiler implicitly links with -lc since on some
10649      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10650      # to ld, don't add -lc before -lgcc.
10651      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10652echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
10653      $RM conftest*
10654      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10655
10656      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657  (eval $ac_compile) 2>&5
10658  ac_status=$?
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); } 2>conftest.err; then
10661        soname=conftest
10662        lib=conftest
10663        libobjs=conftest.$ac_objext
10664        deplibs=
10665        wl=$lt_prog_compiler_wl
10666	pic_flag=$lt_prog_compiler_pic
10667        compiler_flags=-v
10668        linker_flags=-v
10669        verstring=
10670        output_objdir=.
10671        libname=conftest
10672        lt_save_allow_undefined_flag=$allow_undefined_flag
10673        allow_undefined_flag=
10674        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10675  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10676  ac_status=$?
10677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678  (exit $ac_status); }
10679        then
10680	  archive_cmds_need_lc=no
10681        else
10682	  archive_cmds_need_lc=yes
10683        fi
10684        allow_undefined_flag=$lt_save_allow_undefined_flag
10685      else
10686        cat conftest.err 1>&5
10687      fi
10688      $RM conftest*
10689      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10690echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
10691      ;;
10692    esac
10693  fi
10694  ;;
10695esac
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10854echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10855
10856if test "$GCC" = yes; then
10857  case $host_os in
10858    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10859    *) lt_awk_arg="/^libraries:/" ;;
10860  esac
10861  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10862  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10863    # if the path contains ";" then we assume it to be the separator
10864    # otherwise default to the standard path separator (i.e. ":") - it is
10865    # assumed that no part of a normal pathname contains ";" but that should
10866    # okay in the real world where ";" in dirpaths is itself problematic.
10867    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10868  else
10869    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10870  fi
10871  # Ok, now we have the path, separated by spaces, we can step through it
10872  # and add multilib dir if necessary.
10873  lt_tmp_lt_search_path_spec=
10874  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10875  for lt_sys_path in $lt_search_path_spec; do
10876    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10877      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10878    else
10879      test -d "$lt_sys_path" && \
10880	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10881    fi
10882  done
10883  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10884BEGIN {RS=" "; FS="/|\n";} {
10885  lt_foo="";
10886  lt_count=0;
10887  for (lt_i = NF; lt_i > 0; lt_i--) {
10888    if ($lt_i != "" && $lt_i != ".") {
10889      if ($lt_i == "..") {
10890        lt_count++;
10891      } else {
10892        if (lt_count == 0) {
10893          lt_foo="/" $lt_i lt_foo;
10894        } else {
10895          lt_count--;
10896        }
10897      }
10898    }
10899  }
10900  if (lt_foo != "") { lt_freq[lt_foo]++; }
10901  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10902}'`
10903  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10904else
10905  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10906fi
10907library_names_spec=
10908libname_spec='lib$name'
10909soname_spec=
10910shrext_cmds=".so"
10911postinstall_cmds=
10912postuninstall_cmds=
10913finish_cmds=
10914finish_eval=
10915shlibpath_var=
10916shlibpath_overrides_runpath=unknown
10917version_type=none
10918dynamic_linker="$host_os ld.so"
10919sys_lib_dlsearch_path_spec="/lib /usr/lib"
10920need_lib_prefix=unknown
10921hardcode_into_libs=no
10922
10923# when you set need_version to no, make sure it does not cause -set_version
10924# flags to be left without arguments
10925need_version=unknown
10926
10927case $host_os in
10928aix3*)
10929  version_type=linux
10930  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10931  shlibpath_var=LIBPATH
10932
10933  # AIX 3 has no versioning support, so we append a major version to the name.
10934  soname_spec='${libname}${release}${shared_ext}$major'
10935  ;;
10936
10937aix[4-9]*)
10938  version_type=linux
10939  need_lib_prefix=no
10940  need_version=no
10941  hardcode_into_libs=yes
10942  if test "$host_cpu" = ia64; then
10943    # AIX 5 supports IA64
10944    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10945    shlibpath_var=LD_LIBRARY_PATH
10946  else
10947    # With GCC up to 2.95.x, collect2 would create an import file
10948    # for dependence libraries.  The import file would start with
10949    # the line `#! .'.  This would cause the generated library to
10950    # depend on `.', always an invalid library.  This was fixed in
10951    # development snapshots of GCC prior to 3.0.
10952    case $host_os in
10953      aix4 | aix4.[01] | aix4.[01].*)
10954      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10955	   echo ' yes '
10956	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10957	:
10958      else
10959	can_build_shared=no
10960      fi
10961      ;;
10962    esac
10963    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10964    # soname into executable. Probably we can add versioning support to
10965    # collect2, so additional links can be useful in future.
10966    if test "$aix_use_runtimelinking" = yes; then
10967      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10968      # instead of lib<name>.a to let people know that these are not
10969      # typical AIX shared libraries.
10970      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971    else
10972      # We preserve .a as extension for shared libraries through AIX4.2
10973      # and later when we are not doing run time linking.
10974      library_names_spec='${libname}${release}.a $libname.a'
10975      soname_spec='${libname}${release}${shared_ext}$major'
10976    fi
10977    shlibpath_var=LIBPATH
10978  fi
10979  ;;
10980
10981amigaos*)
10982  case $host_cpu in
10983  powerpc)
10984    # Since July 2007 AmigaOS4 officially supports .so libraries.
10985    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10986    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987    ;;
10988  m68k)
10989    library_names_spec='$libname.ixlibrary $libname.a'
10990    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10991    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'
10992    ;;
10993  esac
10994  ;;
10995
10996beos*)
10997  library_names_spec='${libname}${shared_ext}'
10998  dynamic_linker="$host_os ld.so"
10999  shlibpath_var=LIBRARY_PATH
11000  ;;
11001
11002bsdi[45]*)
11003  version_type=linux
11004  need_version=no
11005  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006  soname_spec='${libname}${release}${shared_ext}$major'
11007  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11008  shlibpath_var=LD_LIBRARY_PATH
11009  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11010  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11011  # the default ld.so.conf also contains /usr/contrib/lib and
11012  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11013  # libtool to hard-code these into programs
11014  ;;
11015
11016cygwin* | mingw* | pw32*)
11017  version_type=windows
11018  shrext_cmds=".dll"
11019  need_version=no
11020  need_lib_prefix=no
11021
11022  case $GCC,$host_os in
11023  yes,cygwin* | yes,mingw* | yes,pw32*)
11024    library_names_spec='$libname.dll.a'
11025    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11026    postinstall_cmds='base_file=`basename \${file}`~
11027      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11028      dldir=$destdir/`dirname \$dlpath`~
11029      test -d \$dldir || mkdir -p \$dldir~
11030      $install_prog $dir/$dlname \$dldir/$dlname~
11031      chmod a+x \$dldir/$dlname~
11032      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11033        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11034      fi'
11035    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11036      dlpath=$dir/\$dldll~
11037       $RM \$dlpath'
11038    shlibpath_overrides_runpath=yes
11039
11040    case $host_os in
11041    cygwin*)
11042      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11043      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11044      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11045      ;;
11046    mingw*)
11047      # MinGW DLLs use traditional 'lib' prefix
11048      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11049      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11050      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11051        # It is most probably a Windows format PATH printed by
11052        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11053        # path with ; separators, and with drive letters. We can handle the
11054        # drive letters (cygwin fileutils understands them), so leave them,
11055        # especially as we might pass files found there to a mingw objdump,
11056        # which wouldn't understand a cygwinified path. Ahh.
11057        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11058      else
11059        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11060      fi
11061      ;;
11062    pw32*)
11063      # pw32 DLLs use 'pw' prefix rather than 'lib'
11064      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11065      ;;
11066    esac
11067    ;;
11068
11069  *)
11070    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11071    ;;
11072  esac
11073  dynamic_linker='Win32 ld.exe'
11074  # FIXME: first we should search . and the directory the executable is in
11075  shlibpath_var=PATH
11076  ;;
11077
11078darwin* | rhapsody*)
11079  dynamic_linker="$host_os dyld"
11080  version_type=darwin
11081  need_lib_prefix=no
11082  need_version=no
11083  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11084  soname_spec='${libname}${release}${major}$shared_ext'
11085  shlibpath_overrides_runpath=yes
11086  shlibpath_var=DYLD_LIBRARY_PATH
11087  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11088
11089  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11090  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11091  ;;
11092
11093dgux*)
11094  version_type=linux
11095  need_lib_prefix=no
11096  need_version=no
11097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11098  soname_spec='${libname}${release}${shared_ext}$major'
11099  shlibpath_var=LD_LIBRARY_PATH
11100  ;;
11101
11102freebsd1*)
11103  dynamic_linker=no
11104  ;;
11105
11106freebsd* | dragonfly*)
11107  # DragonFly does not have aout.  When/if they implement a new
11108  # versioning mechanism, adjust this.
11109  if test -x /usr/bin/objformat; then
11110    objformat=`/usr/bin/objformat`
11111  else
11112    case $host_os in
11113    freebsd[123]*) objformat=aout ;;
11114    *) objformat=elf ;;
11115    esac
11116  fi
11117  version_type=freebsd-$objformat
11118  case $version_type in
11119    freebsd-elf*)
11120      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11121      need_version=no
11122      need_lib_prefix=no
11123      ;;
11124    freebsd-*)
11125      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11126      need_version=yes
11127      ;;
11128  esac
11129  shlibpath_var=LD_LIBRARY_PATH
11130  case $host_os in
11131  freebsd2*)
11132    shlibpath_overrides_runpath=yes
11133    ;;
11134  freebsd3.[01]* | freebsdelf3.[01]*)
11135    shlibpath_overrides_runpath=yes
11136    hardcode_into_libs=yes
11137    ;;
11138  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11139  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11140    shlibpath_overrides_runpath=no
11141    hardcode_into_libs=yes
11142    ;;
11143  *) # from 4.6 on, and DragonFly
11144    shlibpath_overrides_runpath=yes
11145    hardcode_into_libs=yes
11146    ;;
11147  esac
11148  ;;
11149
11150gnu*)
11151  version_type=linux
11152  need_lib_prefix=no
11153  need_version=no
11154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11155  soname_spec='${libname}${release}${shared_ext}$major'
11156  shlibpath_var=LD_LIBRARY_PATH
11157  hardcode_into_libs=yes
11158  ;;
11159
11160hpux9* | hpux10* | hpux11*)
11161  # Give a soname corresponding to the major version so that dld.sl refuses to
11162  # link against other versions.
11163  version_type=sunos
11164  need_lib_prefix=no
11165  need_version=no
11166  case $host_cpu in
11167  ia64*)
11168    shrext_cmds='.so'
11169    hardcode_into_libs=yes
11170    dynamic_linker="$host_os dld.so"
11171    shlibpath_var=LD_LIBRARY_PATH
11172    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11173    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174    soname_spec='${libname}${release}${shared_ext}$major'
11175    if test "X$HPUX_IA64_MODE" = X32; then
11176      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11177    else
11178      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11179    fi
11180    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11181    ;;
11182  hppa*64*)
11183    shrext_cmds='.sl'
11184    hardcode_into_libs=yes
11185    dynamic_linker="$host_os dld.sl"
11186    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11187    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11188    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189    soname_spec='${libname}${release}${shared_ext}$major'
11190    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11191    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11192    ;;
11193  *)
11194    shrext_cmds='.sl'
11195    dynamic_linker="$host_os dld.sl"
11196    shlibpath_var=SHLIB_PATH
11197    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11198    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199    soname_spec='${libname}${release}${shared_ext}$major'
11200    ;;
11201  esac
11202  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11203  postinstall_cmds='chmod 555 $lib'
11204  ;;
11205
11206interix[3-9]*)
11207  version_type=linux
11208  need_lib_prefix=no
11209  need_version=no
11210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11211  soname_spec='${libname}${release}${shared_ext}$major'
11212  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11213  shlibpath_var=LD_LIBRARY_PATH
11214  shlibpath_overrides_runpath=no
11215  hardcode_into_libs=yes
11216  ;;
11217
11218irix5* | irix6* | nonstopux*)
11219  case $host_os in
11220    nonstopux*) version_type=nonstopux ;;
11221    *)
11222	if test "$lt_cv_prog_gnu_ld" = yes; then
11223		version_type=linux
11224	else
11225		version_type=irix
11226	fi ;;
11227  esac
11228  need_lib_prefix=no
11229  need_version=no
11230  soname_spec='${libname}${release}${shared_ext}$major'
11231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11232  case $host_os in
11233  irix5* | nonstopux*)
11234    libsuff= shlibsuff=
11235    ;;
11236  *)
11237    case $LD in # libtool.m4 will add one of these switches to LD
11238    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11239      libsuff= shlibsuff= libmagic=32-bit;;
11240    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11241      libsuff=32 shlibsuff=N32 libmagic=N32;;
11242    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11243      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11244    *) libsuff= shlibsuff= libmagic=never-match;;
11245    esac
11246    ;;
11247  esac
11248  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11249  shlibpath_overrides_runpath=no
11250  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11251  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11252  hardcode_into_libs=yes
11253  ;;
11254
11255# No shared lib support for Linux oldld, aout, or coff.
11256linux*oldld* | linux*aout* | linux*coff*)
11257  dynamic_linker=no
11258  ;;
11259
11260# This must be Linux ELF.
11261linux* | k*bsd*-gnu)
11262  version_type=linux
11263  need_lib_prefix=no
11264  need_version=no
11265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266  soname_spec='${libname}${release}${shared_ext}$major'
11267  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11268  shlibpath_var=LD_LIBRARY_PATH
11269  shlibpath_overrides_runpath=no
11270  # Some binutils ld are patched to set DT_RUNPATH
11271  save_LDFLAGS=$LDFLAGS
11272  save_libdir=$libdir
11273  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11274       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11275  cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h.  */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h.  */
11281
11282int
11283main ()
11284{
11285
11286  ;
11287  return 0;
11288}
11289_ACEOF
11290rm -f conftest.$ac_objext conftest$ac_exeext
11291if { (ac_try="$ac_link"
11292case "(($ac_try" in
11293  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294  *) ac_try_echo=$ac_try;;
11295esac
11296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297  (eval "$ac_link") 2>conftest.er1
11298  ac_status=$?
11299  grep -v '^ *+' conftest.er1 >conftest.err
11300  rm -f conftest.er1
11301  cat conftest.err >&5
11302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303  (exit $ac_status); } && {
11304	 test -z "$ac_c_werror_flag" ||
11305	 test ! -s conftest.err
11306       } && test -s conftest$ac_exeext &&
11307       $as_test_x conftest$ac_exeext; then
11308  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11309  shlibpath_overrides_runpath=yes
11310fi
11311
11312else
11313  echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316
11317fi
11318
11319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11320      conftest$ac_exeext conftest.$ac_ext
11321  LDFLAGS=$save_LDFLAGS
11322  libdir=$save_libdir
11323
11324  # This implies no fast_install, which is unacceptable.
11325  # Some rework will be needed to allow for fast_install
11326  # before this can be enabled.
11327  hardcode_into_libs=yes
11328
11329  # Append ld.so.conf contents to the search path
11330  if test -f /etc/ld.so.conf; then
11331    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' ' '`
11332    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11333  fi
11334
11335  # We used to test for /lib/ld.so.1 and disable shared libraries on
11336  # powerpc, because MkLinux only supported shared libraries with the
11337  # GNU dynamic linker.  Since this was broken with cross compilers,
11338  # most powerpc-linux boxes support dynamic linking these days and
11339  # people can always --disable-shared, the test was removed, and we
11340  # assume the GNU/Linux dynamic linker is in use.
11341  dynamic_linker='GNU/Linux ld.so'
11342  ;;
11343
11344netbsd*)
11345  version_type=sunos
11346  need_lib_prefix=no
11347  need_version=no
11348  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11349    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11350    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11351    dynamic_linker='NetBSD (a.out) ld.so'
11352  else
11353    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11354    soname_spec='${libname}${release}${shared_ext}$major'
11355    dynamic_linker='NetBSD ld.elf_so'
11356  fi
11357  shlibpath_var=LD_LIBRARY_PATH
11358  shlibpath_overrides_runpath=yes
11359  hardcode_into_libs=yes
11360  ;;
11361
11362newsos6)
11363  version_type=linux
11364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11365  shlibpath_var=LD_LIBRARY_PATH
11366  shlibpath_overrides_runpath=yes
11367  ;;
11368
11369*nto* | *qnx*)
11370  version_type=qnx
11371  need_lib_prefix=no
11372  need_version=no
11373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374  soname_spec='${libname}${release}${shared_ext}$major'
11375  shlibpath_var=LD_LIBRARY_PATH
11376  shlibpath_overrides_runpath=no
11377  hardcode_into_libs=yes
11378  dynamic_linker='ldqnx.so'
11379  ;;
11380
11381openbsd*)
11382  version_type=sunos
11383  sys_lib_dlsearch_path_spec="/usr/lib"
11384  need_lib_prefix=no
11385  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11386  case $host_os in
11387    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11388    *)				need_version=no  ;;
11389  esac
11390  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11391  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11392  shlibpath_var=LD_LIBRARY_PATH
11393  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11394    case $host_os in
11395      openbsd2.[89] | openbsd2.[89].*)
11396	shlibpath_overrides_runpath=no
11397	;;
11398      *)
11399	shlibpath_overrides_runpath=yes
11400	;;
11401      esac
11402  else
11403    shlibpath_overrides_runpath=yes
11404  fi
11405  ;;
11406
11407os2*)
11408  libname_spec='$name'
11409  shrext_cmds=".dll"
11410  need_lib_prefix=no
11411  library_names_spec='$libname${shared_ext} $libname.a'
11412  dynamic_linker='OS/2 ld.exe'
11413  shlibpath_var=LIBPATH
11414  ;;
11415
11416osf3* | osf4* | osf5*)
11417  version_type=osf
11418  need_lib_prefix=no
11419  need_version=no
11420  soname_spec='${libname}${release}${shared_ext}$major'
11421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422  shlibpath_var=LD_LIBRARY_PATH
11423  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11424  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11425  ;;
11426
11427rdos*)
11428  dynamic_linker=no
11429  ;;
11430
11431solaris*)
11432  version_type=linux
11433  need_lib_prefix=no
11434  need_version=no
11435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436  soname_spec='${libname}${release}${shared_ext}$major'
11437  shlibpath_var=LD_LIBRARY_PATH
11438  shlibpath_overrides_runpath=yes
11439  hardcode_into_libs=yes
11440  # ldd complains unless libraries are executable
11441  postinstall_cmds='chmod +x $lib'
11442  ;;
11443
11444sunos4*)
11445  version_type=sunos
11446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11447  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11448  shlibpath_var=LD_LIBRARY_PATH
11449  shlibpath_overrides_runpath=yes
11450  if test "$with_gnu_ld" = yes; then
11451    need_lib_prefix=no
11452  fi
11453  need_version=yes
11454  ;;
11455
11456sysv4 | sysv4.3*)
11457  version_type=linux
11458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459  soname_spec='${libname}${release}${shared_ext}$major'
11460  shlibpath_var=LD_LIBRARY_PATH
11461  case $host_vendor in
11462    sni)
11463      shlibpath_overrides_runpath=no
11464      need_lib_prefix=no
11465      runpath_var=LD_RUN_PATH
11466      ;;
11467    siemens)
11468      need_lib_prefix=no
11469      ;;
11470    motorola)
11471      need_lib_prefix=no
11472      need_version=no
11473      shlibpath_overrides_runpath=no
11474      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11475      ;;
11476  esac
11477  ;;
11478
11479sysv4*MP*)
11480  if test -d /usr/nec ;then
11481    version_type=linux
11482    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11483    soname_spec='$libname${shared_ext}.$major'
11484    shlibpath_var=LD_LIBRARY_PATH
11485  fi
11486  ;;
11487
11488sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11489  version_type=freebsd-elf
11490  need_lib_prefix=no
11491  need_version=no
11492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11493  soname_spec='${libname}${release}${shared_ext}$major'
11494  shlibpath_var=LD_LIBRARY_PATH
11495  shlibpath_overrides_runpath=yes
11496  hardcode_into_libs=yes
11497  if test "$with_gnu_ld" = yes; then
11498    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11499  else
11500    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11501    case $host_os in
11502      sco3.2v5*)
11503        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11504	;;
11505    esac
11506  fi
11507  sys_lib_dlsearch_path_spec='/usr/lib'
11508  ;;
11509
11510tpf*)
11511  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11512  version_type=linux
11513  need_lib_prefix=no
11514  need_version=no
11515  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516  shlibpath_var=LD_LIBRARY_PATH
11517  shlibpath_overrides_runpath=no
11518  hardcode_into_libs=yes
11519  ;;
11520
11521uts4*)
11522  version_type=linux
11523  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524  soname_spec='${libname}${release}${shared_ext}$major'
11525  shlibpath_var=LD_LIBRARY_PATH
11526  ;;
11527
11528*)
11529  dynamic_linker=no
11530  ;;
11531esac
11532{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11533echo "${ECHO_T}$dynamic_linker" >&6; }
11534test "$dynamic_linker" = no && can_build_shared=no
11535
11536variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11537if test "$GCC" = yes; then
11538  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11539fi
11540
11541if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11542  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11543fi
11544if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11545  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11546fi
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11635echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11636hardcode_action=
11637if test -n "$hardcode_libdir_flag_spec" ||
11638   test -n "$runpath_var" ||
11639   test "X$hardcode_automatic" = "Xyes" ; then
11640
11641  # We can hardcode non-existent directories.
11642  if test "$hardcode_direct" != no &&
11643     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11644     # have to relink, otherwise we might link with an installed library
11645     # when we should be linking with a yet-to-be-installed one
11646     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11647     test "$hardcode_minus_L" != no; then
11648    # Linking always hardcodes the temporary library directory.
11649    hardcode_action=relink
11650  else
11651    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11652    hardcode_action=immediate
11653  fi
11654else
11655  # We cannot hardcode anything, or else we can only hardcode existing
11656  # directories.
11657  hardcode_action=unsupported
11658fi
11659{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
11660echo "${ECHO_T}$hardcode_action" >&6; }
11661
11662if test "$hardcode_action" = relink ||
11663   test "$inherit_rpath" = yes; then
11664  # Fast installation is not supported
11665  enable_fast_install=no
11666elif test "$shlibpath_overrides_runpath" = yes ||
11667     test "$enable_shared" = no; then
11668  # Fast installation is not necessary
11669  enable_fast_install=needless
11670fi
11671
11672
11673
11674
11675
11676
11677  if test "x$enable_dlopen" != xyes; then
11678  enable_dlopen=unknown
11679  enable_dlopen_self=unknown
11680  enable_dlopen_self_static=unknown
11681else
11682  lt_cv_dlopen=no
11683  lt_cv_dlopen_libs=
11684
11685  case $host_os in
11686  beos*)
11687    lt_cv_dlopen="load_add_on"
11688    lt_cv_dlopen_libs=
11689    lt_cv_dlopen_self=yes
11690    ;;
11691
11692  mingw* | pw32*)
11693    lt_cv_dlopen="LoadLibrary"
11694    lt_cv_dlopen_libs=
11695    ;;
11696
11697  cygwin*)
11698    lt_cv_dlopen="dlopen"
11699    lt_cv_dlopen_libs=
11700    ;;
11701
11702  darwin*)
11703  # if libdl is installed we need to link against it
11704    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11705echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11706if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11707  echo $ECHO_N "(cached) $ECHO_C" >&6
11708else
11709  ac_check_lib_save_LIBS=$LIBS
11710LIBS="-ldl  $LIBS"
11711cat >conftest.$ac_ext <<_ACEOF
11712/* confdefs.h.  */
11713_ACEOF
11714cat confdefs.h >>conftest.$ac_ext
11715cat >>conftest.$ac_ext <<_ACEOF
11716/* end confdefs.h.  */
11717
11718/* Override any GCC internal prototype to avoid an error.
11719   Use char because int might match the return type of a GCC
11720   builtin and then its argument prototype would still apply.  */
11721#ifdef __cplusplus
11722extern "C"
11723#endif
11724char dlopen ();
11725int
11726main ()
11727{
11728return dlopen ();
11729  ;
11730  return 0;
11731}
11732_ACEOF
11733rm -f conftest.$ac_objext conftest$ac_exeext
11734if { (ac_try="$ac_link"
11735case "(($ac_try" in
11736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737  *) ac_try_echo=$ac_try;;
11738esac
11739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11740  (eval "$ac_link") 2>conftest.er1
11741  ac_status=$?
11742  grep -v '^ *+' conftest.er1 >conftest.err
11743  rm -f conftest.er1
11744  cat conftest.err >&5
11745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746  (exit $ac_status); } && {
11747	 test -z "$ac_c_werror_flag" ||
11748	 test ! -s conftest.err
11749       } && test -s conftest$ac_exeext &&
11750       $as_test_x conftest$ac_exeext; then
11751  ac_cv_lib_dl_dlopen=yes
11752else
11753  echo "$as_me: failed program was:" >&5
11754sed 's/^/| /' conftest.$ac_ext >&5
11755
11756	ac_cv_lib_dl_dlopen=no
11757fi
11758
11759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11760      conftest$ac_exeext conftest.$ac_ext
11761LIBS=$ac_check_lib_save_LIBS
11762fi
11763{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11764echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11765if test $ac_cv_lib_dl_dlopen = yes; then
11766  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11767else
11768
11769    lt_cv_dlopen="dyld"
11770    lt_cv_dlopen_libs=
11771    lt_cv_dlopen_self=yes
11772
11773fi
11774
11775    ;;
11776
11777  *)
11778    { echo "$as_me:$LINENO: checking for shl_load" >&5
11779echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
11780if test "${ac_cv_func_shl_load+set}" = set; then
11781  echo $ECHO_N "(cached) $ECHO_C" >&6
11782else
11783  cat >conftest.$ac_ext <<_ACEOF
11784/* confdefs.h.  */
11785_ACEOF
11786cat confdefs.h >>conftest.$ac_ext
11787cat >>conftest.$ac_ext <<_ACEOF
11788/* end confdefs.h.  */
11789/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11790   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11791#define shl_load innocuous_shl_load
11792
11793/* System header to define __stub macros and hopefully few prototypes,
11794    which can conflict with char shl_load (); below.
11795    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11796    <limits.h> exists even on freestanding compilers.  */
11797
11798#ifdef __STDC__
11799# include <limits.h>
11800#else
11801# include <assert.h>
11802#endif
11803
11804#undef shl_load
11805
11806/* Override any GCC internal prototype to avoid an error.
11807   Use char because int might match the return type of a GCC
11808   builtin and then its argument prototype would still apply.  */
11809#ifdef __cplusplus
11810extern "C"
11811#endif
11812char shl_load ();
11813/* The GNU C library defines this for functions which it implements
11814    to always fail with ENOSYS.  Some functions are actually named
11815    something starting with __ and the normal name is an alias.  */
11816#if defined __stub_shl_load || defined __stub___shl_load
11817choke me
11818#endif
11819
11820int
11821main ()
11822{
11823return shl_load ();
11824  ;
11825  return 0;
11826}
11827_ACEOF
11828rm -f conftest.$ac_objext conftest$ac_exeext
11829if { (ac_try="$ac_link"
11830case "(($ac_try" in
11831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832  *) ac_try_echo=$ac_try;;
11833esac
11834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835  (eval "$ac_link") 2>conftest.er1
11836  ac_status=$?
11837  grep -v '^ *+' conftest.er1 >conftest.err
11838  rm -f conftest.er1
11839  cat conftest.err >&5
11840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841  (exit $ac_status); } && {
11842	 test -z "$ac_c_werror_flag" ||
11843	 test ! -s conftest.err
11844       } && test -s conftest$ac_exeext &&
11845       $as_test_x conftest$ac_exeext; then
11846  ac_cv_func_shl_load=yes
11847else
11848  echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
11851	ac_cv_func_shl_load=no
11852fi
11853
11854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11855      conftest$ac_exeext conftest.$ac_ext
11856fi
11857{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11858echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
11859if test $ac_cv_func_shl_load = yes; then
11860  lt_cv_dlopen="shl_load"
11861else
11862  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11863echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
11864if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11865  echo $ECHO_N "(cached) $ECHO_C" >&6
11866else
11867  ac_check_lib_save_LIBS=$LIBS
11868LIBS="-ldld  $LIBS"
11869cat >conftest.$ac_ext <<_ACEOF
11870/* confdefs.h.  */
11871_ACEOF
11872cat confdefs.h >>conftest.$ac_ext
11873cat >>conftest.$ac_ext <<_ACEOF
11874/* end confdefs.h.  */
11875
11876/* Override any GCC internal prototype to avoid an error.
11877   Use char because int might match the return type of a GCC
11878   builtin and then its argument prototype would still apply.  */
11879#ifdef __cplusplus
11880extern "C"
11881#endif
11882char shl_load ();
11883int
11884main ()
11885{
11886return shl_load ();
11887  ;
11888  return 0;
11889}
11890_ACEOF
11891rm -f conftest.$ac_objext conftest$ac_exeext
11892if { (ac_try="$ac_link"
11893case "(($ac_try" in
11894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895  *) ac_try_echo=$ac_try;;
11896esac
11897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898  (eval "$ac_link") 2>conftest.er1
11899  ac_status=$?
11900  grep -v '^ *+' conftest.er1 >conftest.err
11901  rm -f conftest.er1
11902  cat conftest.err >&5
11903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904  (exit $ac_status); } && {
11905	 test -z "$ac_c_werror_flag" ||
11906	 test ! -s conftest.err
11907       } && test -s conftest$ac_exeext &&
11908       $as_test_x conftest$ac_exeext; then
11909  ac_cv_lib_dld_shl_load=yes
11910else
11911  echo "$as_me: failed program was:" >&5
11912sed 's/^/| /' conftest.$ac_ext >&5
11913
11914	ac_cv_lib_dld_shl_load=no
11915fi
11916
11917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11918      conftest$ac_exeext conftest.$ac_ext
11919LIBS=$ac_check_lib_save_LIBS
11920fi
11921{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11922echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
11923if test $ac_cv_lib_dld_shl_load = yes; then
11924  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11925else
11926  { echo "$as_me:$LINENO: checking for dlopen" >&5
11927echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11928if test "${ac_cv_func_dlopen+set}" = set; then
11929  echo $ECHO_N "(cached) $ECHO_C" >&6
11930else
11931  cat >conftest.$ac_ext <<_ACEOF
11932/* confdefs.h.  */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h.  */
11937/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11938   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11939#define dlopen innocuous_dlopen
11940
11941/* System header to define __stub macros and hopefully few prototypes,
11942    which can conflict with char dlopen (); below.
11943    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11944    <limits.h> exists even on freestanding compilers.  */
11945
11946#ifdef __STDC__
11947# include <limits.h>
11948#else
11949# include <assert.h>
11950#endif
11951
11952#undef dlopen
11953
11954/* Override any GCC internal prototype to avoid an error.
11955   Use char because int might match the return type of a GCC
11956   builtin and then its argument prototype would still apply.  */
11957#ifdef __cplusplus
11958extern "C"
11959#endif
11960char dlopen ();
11961/* The GNU C library defines this for functions which it implements
11962    to always fail with ENOSYS.  Some functions are actually named
11963    something starting with __ and the normal name is an alias.  */
11964#if defined __stub_dlopen || defined __stub___dlopen
11965choke me
11966#endif
11967
11968int
11969main ()
11970{
11971return dlopen ();
11972  ;
11973  return 0;
11974}
11975_ACEOF
11976rm -f conftest.$ac_objext conftest$ac_exeext
11977if { (ac_try="$ac_link"
11978case "(($ac_try" in
11979  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980  *) ac_try_echo=$ac_try;;
11981esac
11982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983  (eval "$ac_link") 2>conftest.er1
11984  ac_status=$?
11985  grep -v '^ *+' conftest.er1 >conftest.err
11986  rm -f conftest.er1
11987  cat conftest.err >&5
11988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989  (exit $ac_status); } && {
11990	 test -z "$ac_c_werror_flag" ||
11991	 test ! -s conftest.err
11992       } && test -s conftest$ac_exeext &&
11993       $as_test_x conftest$ac_exeext; then
11994  ac_cv_func_dlopen=yes
11995else
11996  echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
11998
11999	ac_cv_func_dlopen=no
12000fi
12001
12002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12003      conftest$ac_exeext conftest.$ac_ext
12004fi
12005{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12006echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12007if test $ac_cv_func_dlopen = yes; then
12008  lt_cv_dlopen="dlopen"
12009else
12010  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12011echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12012if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12013  echo $ECHO_N "(cached) $ECHO_C" >&6
12014else
12015  ac_check_lib_save_LIBS=$LIBS
12016LIBS="-ldl  $LIBS"
12017cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h.  */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h.  */
12023
12024/* Override any GCC internal prototype to avoid an error.
12025   Use char because int might match the return type of a GCC
12026   builtin and then its argument prototype would still apply.  */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030char dlopen ();
12031int
12032main ()
12033{
12034return dlopen ();
12035  ;
12036  return 0;
12037}
12038_ACEOF
12039rm -f conftest.$ac_objext conftest$ac_exeext
12040if { (ac_try="$ac_link"
12041case "(($ac_try" in
12042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043  *) ac_try_echo=$ac_try;;
12044esac
12045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046  (eval "$ac_link") 2>conftest.er1
12047  ac_status=$?
12048  grep -v '^ *+' conftest.er1 >conftest.err
12049  rm -f conftest.er1
12050  cat conftest.err >&5
12051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052  (exit $ac_status); } && {
12053	 test -z "$ac_c_werror_flag" ||
12054	 test ! -s conftest.err
12055       } && test -s conftest$ac_exeext &&
12056       $as_test_x conftest$ac_exeext; then
12057  ac_cv_lib_dl_dlopen=yes
12058else
12059  echo "$as_me: failed program was:" >&5
12060sed 's/^/| /' conftest.$ac_ext >&5
12061
12062	ac_cv_lib_dl_dlopen=no
12063fi
12064
12065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12066      conftest$ac_exeext conftest.$ac_ext
12067LIBS=$ac_check_lib_save_LIBS
12068fi
12069{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12070echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12071if test $ac_cv_lib_dl_dlopen = yes; then
12072  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12073else
12074  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12075echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12076if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12077  echo $ECHO_N "(cached) $ECHO_C" >&6
12078else
12079  ac_check_lib_save_LIBS=$LIBS
12080LIBS="-lsvld  $LIBS"
12081cat >conftest.$ac_ext <<_ACEOF
12082/* confdefs.h.  */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h.  */
12087
12088/* Override any GCC internal prototype to avoid an error.
12089   Use char because int might match the return type of a GCC
12090   builtin and then its argument prototype would still apply.  */
12091#ifdef __cplusplus
12092extern "C"
12093#endif
12094char dlopen ();
12095int
12096main ()
12097{
12098return dlopen ();
12099  ;
12100  return 0;
12101}
12102_ACEOF
12103rm -f conftest.$ac_objext conftest$ac_exeext
12104if { (ac_try="$ac_link"
12105case "(($ac_try" in
12106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107  *) ac_try_echo=$ac_try;;
12108esac
12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110  (eval "$ac_link") 2>conftest.er1
12111  ac_status=$?
12112  grep -v '^ *+' conftest.er1 >conftest.err
12113  rm -f conftest.er1
12114  cat conftest.err >&5
12115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116  (exit $ac_status); } && {
12117	 test -z "$ac_c_werror_flag" ||
12118	 test ! -s conftest.err
12119       } && test -s conftest$ac_exeext &&
12120       $as_test_x conftest$ac_exeext; then
12121  ac_cv_lib_svld_dlopen=yes
12122else
12123  echo "$as_me: failed program was:" >&5
12124sed 's/^/| /' conftest.$ac_ext >&5
12125
12126	ac_cv_lib_svld_dlopen=no
12127fi
12128
12129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12130      conftest$ac_exeext conftest.$ac_ext
12131LIBS=$ac_check_lib_save_LIBS
12132fi
12133{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12134echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12135if test $ac_cv_lib_svld_dlopen = yes; then
12136  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12137else
12138  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12139echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12140if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12141  echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
12143  ac_check_lib_save_LIBS=$LIBS
12144LIBS="-ldld  $LIBS"
12145cat >conftest.$ac_ext <<_ACEOF
12146/* confdefs.h.  */
12147_ACEOF
12148cat confdefs.h >>conftest.$ac_ext
12149cat >>conftest.$ac_ext <<_ACEOF
12150/* end confdefs.h.  */
12151
12152/* Override any GCC internal prototype to avoid an error.
12153   Use char because int might match the return type of a GCC
12154   builtin and then its argument prototype would still apply.  */
12155#ifdef __cplusplus
12156extern "C"
12157#endif
12158char dld_link ();
12159int
12160main ()
12161{
12162return dld_link ();
12163  ;
12164  return 0;
12165}
12166_ACEOF
12167rm -f conftest.$ac_objext conftest$ac_exeext
12168if { (ac_try="$ac_link"
12169case "(($ac_try" in
12170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12171  *) ac_try_echo=$ac_try;;
12172esac
12173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12174  (eval "$ac_link") 2>conftest.er1
12175  ac_status=$?
12176  grep -v '^ *+' conftest.er1 >conftest.err
12177  rm -f conftest.er1
12178  cat conftest.err >&5
12179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180  (exit $ac_status); } && {
12181	 test -z "$ac_c_werror_flag" ||
12182	 test ! -s conftest.err
12183       } && test -s conftest$ac_exeext &&
12184       $as_test_x conftest$ac_exeext; then
12185  ac_cv_lib_dld_dld_link=yes
12186else
12187  echo "$as_me: failed program was:" >&5
12188sed 's/^/| /' conftest.$ac_ext >&5
12189
12190	ac_cv_lib_dld_dld_link=no
12191fi
12192
12193rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12194      conftest$ac_exeext conftest.$ac_ext
12195LIBS=$ac_check_lib_save_LIBS
12196fi
12197{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12198echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12199if test $ac_cv_lib_dld_dld_link = yes; then
12200  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12201fi
12202
12203
12204fi
12205
12206
12207fi
12208
12209
12210fi
12211
12212
12213fi
12214
12215
12216fi
12217
12218    ;;
12219  esac
12220
12221  if test "x$lt_cv_dlopen" != xno; then
12222    enable_dlopen=yes
12223  else
12224    enable_dlopen=no
12225  fi
12226
12227  case $lt_cv_dlopen in
12228  dlopen)
12229    save_CPPFLAGS="$CPPFLAGS"
12230    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12231
12232    save_LDFLAGS="$LDFLAGS"
12233    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12234
12235    save_LIBS="$LIBS"
12236    LIBS="$lt_cv_dlopen_libs $LIBS"
12237
12238    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12239echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12240if test "${lt_cv_dlopen_self+set}" = set; then
12241  echo $ECHO_N "(cached) $ECHO_C" >&6
12242else
12243  	  if test "$cross_compiling" = yes; then :
12244  lt_cv_dlopen_self=cross
12245else
12246  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12247  lt_status=$lt_dlunknown
12248  cat > conftest.$ac_ext <<_LT_EOF
12249#line 12249 "configure"
12250#include "confdefs.h"
12251
12252#if HAVE_DLFCN_H
12253#include <dlfcn.h>
12254#endif
12255
12256#include <stdio.h>
12257
12258#ifdef RTLD_GLOBAL
12259#  define LT_DLGLOBAL		RTLD_GLOBAL
12260#else
12261#  ifdef DL_GLOBAL
12262#    define LT_DLGLOBAL		DL_GLOBAL
12263#  else
12264#    define LT_DLGLOBAL		0
12265#  endif
12266#endif
12267
12268/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12269   find out it does not work in some platform. */
12270#ifndef LT_DLLAZY_OR_NOW
12271#  ifdef RTLD_LAZY
12272#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12273#  else
12274#    ifdef DL_LAZY
12275#      define LT_DLLAZY_OR_NOW		DL_LAZY
12276#    else
12277#      ifdef RTLD_NOW
12278#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12279#      else
12280#        ifdef DL_NOW
12281#          define LT_DLLAZY_OR_NOW	DL_NOW
12282#        else
12283#          define LT_DLLAZY_OR_NOW	0
12284#        endif
12285#      endif
12286#    endif
12287#  endif
12288#endif
12289
12290#ifdef __cplusplus
12291extern "C" void exit (int);
12292#endif
12293
12294void fnord() { int i=42;}
12295int main ()
12296{
12297  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12298  int status = $lt_dlunknown;
12299
12300  if (self)
12301    {
12302      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12303      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304      /* dlclose (self); */
12305    }
12306  else
12307    puts (dlerror ());
12308
12309    exit (status);
12310}
12311_LT_EOF
12312  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12313  (eval $ac_link) 2>&5
12314  ac_status=$?
12315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12317    (./conftest; exit; ) >&5 2>/dev/null
12318    lt_status=$?
12319    case x$lt_status in
12320      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12321      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12322      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12323    esac
12324  else :
12325    # compilation failed
12326    lt_cv_dlopen_self=no
12327  fi
12328fi
12329rm -fr conftest*
12330
12331
12332fi
12333{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12334echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12335
12336    if test "x$lt_cv_dlopen_self" = xyes; then
12337      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12338      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12339echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12340if test "${lt_cv_dlopen_self_static+set}" = set; then
12341  echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
12343  	  if test "$cross_compiling" = yes; then :
12344  lt_cv_dlopen_self_static=cross
12345else
12346  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12347  lt_status=$lt_dlunknown
12348  cat > conftest.$ac_ext <<_LT_EOF
12349#line 12349 "configure"
12350#include "confdefs.h"
12351
12352#if HAVE_DLFCN_H
12353#include <dlfcn.h>
12354#endif
12355
12356#include <stdio.h>
12357
12358#ifdef RTLD_GLOBAL
12359#  define LT_DLGLOBAL		RTLD_GLOBAL
12360#else
12361#  ifdef DL_GLOBAL
12362#    define LT_DLGLOBAL		DL_GLOBAL
12363#  else
12364#    define LT_DLGLOBAL		0
12365#  endif
12366#endif
12367
12368/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12369   find out it does not work in some platform. */
12370#ifndef LT_DLLAZY_OR_NOW
12371#  ifdef RTLD_LAZY
12372#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12373#  else
12374#    ifdef DL_LAZY
12375#      define LT_DLLAZY_OR_NOW		DL_LAZY
12376#    else
12377#      ifdef RTLD_NOW
12378#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12379#      else
12380#        ifdef DL_NOW
12381#          define LT_DLLAZY_OR_NOW	DL_NOW
12382#        else
12383#          define LT_DLLAZY_OR_NOW	0
12384#        endif
12385#      endif
12386#    endif
12387#  endif
12388#endif
12389
12390#ifdef __cplusplus
12391extern "C" void exit (int);
12392#endif
12393
12394void fnord() { int i=42;}
12395int main ()
12396{
12397  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12398  int status = $lt_dlunknown;
12399
12400  if (self)
12401    {
12402      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12403      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12404      /* dlclose (self); */
12405    }
12406  else
12407    puts (dlerror ());
12408
12409    exit (status);
12410}
12411_LT_EOF
12412  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12413  (eval $ac_link) 2>&5
12414  ac_status=$?
12415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12417    (./conftest; exit; ) >&5 2>/dev/null
12418    lt_status=$?
12419    case x$lt_status in
12420      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12421      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12422      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12423    esac
12424  else :
12425    # compilation failed
12426    lt_cv_dlopen_self_static=no
12427  fi
12428fi
12429rm -fr conftest*
12430
12431
12432fi
12433{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12434echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12435    fi
12436
12437    CPPFLAGS="$save_CPPFLAGS"
12438    LDFLAGS="$save_LDFLAGS"
12439    LIBS="$save_LIBS"
12440    ;;
12441  esac
12442
12443  case $lt_cv_dlopen_self in
12444  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12445  *) enable_dlopen_self=unknown ;;
12446  esac
12447
12448  case $lt_cv_dlopen_self_static in
12449  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12450  *) enable_dlopen_self_static=unknown ;;
12451  esac
12452fi
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470striplib=
12471old_striplib=
12472{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12473echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12474if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12475  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12476  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12477  { echo "$as_me:$LINENO: result: yes" >&5
12478echo "${ECHO_T}yes" >&6; }
12479else
12480# FIXME - insert some real tests, host_os isn't really good enough
12481  case $host_os in
12482  darwin*)
12483    if test -n "$STRIP" ; then
12484      striplib="$STRIP -x"
12485      old_striplib="$STRIP -S"
12486      { echo "$as_me:$LINENO: result: yes" >&5
12487echo "${ECHO_T}yes" >&6; }
12488    else
12489      { echo "$as_me:$LINENO: result: no" >&5
12490echo "${ECHO_T}no" >&6; }
12491    fi
12492    ;;
12493  *)
12494    { echo "$as_me:$LINENO: result: no" >&5
12495echo "${ECHO_T}no" >&6; }
12496    ;;
12497  esac
12498fi
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511  # Report which library types will actually be built
12512  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12513echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12514  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12515echo "${ECHO_T}$can_build_shared" >&6; }
12516
12517  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12518echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12519  test "$can_build_shared" = "no" && enable_shared=no
12520
12521  # On AIX, shared libraries and static libraries use the same namespace, and
12522  # are all built from PIC.
12523  case $host_os in
12524  aix3*)
12525    test "$enable_shared" = yes && enable_static=no
12526    if test -n "$RANLIB"; then
12527      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12528      postinstall_cmds='$RANLIB $lib'
12529    fi
12530    ;;
12531
12532  aix[4-9]*)
12533    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12534      test "$enable_shared" = yes && enable_static=no
12535    fi
12536    ;;
12537  esac
12538  { echo "$as_me:$LINENO: result: $enable_shared" >&5
12539echo "${ECHO_T}$enable_shared" >&6; }
12540
12541  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12542echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12543  # Make sure either enable_shared or enable_static is yes.
12544  test "$enable_shared" = yes || enable_static=yes
12545  { echo "$as_me:$LINENO: result: $enable_static" >&5
12546echo "${ECHO_T}$enable_static" >&6; }
12547
12548
12549
12550
12551fi
12552ac_ext=cpp
12553ac_cpp='$CXXCPP $CPPFLAGS'
12554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12557
12558CC="$lt_save_CC"
12559
12560
12561ac_ext=cpp
12562ac_cpp='$CXXCPP $CPPFLAGS'
12563ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12564ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12565ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12566
12567archive_cmds_need_lc_CXX=no
12568allow_undefined_flag_CXX=
12569always_export_symbols_CXX=no
12570archive_expsym_cmds_CXX=
12571compiler_needs_object_CXX=no
12572export_dynamic_flag_spec_CXX=
12573hardcode_direct_CXX=no
12574hardcode_direct_absolute_CXX=no
12575hardcode_libdir_flag_spec_CXX=
12576hardcode_libdir_flag_spec_ld_CXX=
12577hardcode_libdir_separator_CXX=
12578hardcode_minus_L_CXX=no
12579hardcode_shlibpath_var_CXX=unsupported
12580hardcode_automatic_CXX=no
12581inherit_rpath_CXX=no
12582module_cmds_CXX=
12583module_expsym_cmds_CXX=
12584link_all_deplibs_CXX=unknown
12585old_archive_cmds_CXX=$old_archive_cmds
12586no_undefined_flag_CXX=
12587whole_archive_flag_spec_CXX=
12588enable_shared_with_static_runtimes_CXX=no
12589
12590# Source file extension for C++ test sources.
12591ac_ext=cpp
12592
12593# Object file extension for compiled C++ test sources.
12594objext=o
12595objext_CXX=$objext
12596
12597# No sense in running all these tests if we already determined that
12598# the CXX compiler isn't working.  Some variables (like enable_shared)
12599# are currently assumed to apply to all compilers on this platform,
12600# and will be corrupted by setting them based on a non-working compiler.
12601if test "$_lt_caught_CXX_error" != yes; then
12602  # Code to be used in simple compile tests
12603  lt_simple_compile_test_code="int some_variable = 0;"
12604
12605  # Code to be used in simple link tests
12606  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12607
12608  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12609
12610
12611
12612
12613
12614
12615# If no C compiler was specified, use CC.
12616LTCC=${LTCC-"$CC"}
12617
12618# If no C compiler flags were specified, use CFLAGS.
12619LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12620
12621# Allow CC to be a program name with arguments.
12622compiler=$CC
12623
12624
12625  # save warnings/boilerplate of simple test code
12626  ac_outfile=conftest.$ac_objext
12627echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12628eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12629_lt_compiler_boilerplate=`cat conftest.err`
12630$RM conftest*
12631
12632  ac_outfile=conftest.$ac_objext
12633echo "$lt_simple_link_test_code" >conftest.$ac_ext
12634eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12635_lt_linker_boilerplate=`cat conftest.err`
12636$RM -r conftest*
12637
12638
12639  # Allow CC to be a program name with arguments.
12640  lt_save_CC=$CC
12641  lt_save_LD=$LD
12642  lt_save_GCC=$GCC
12643  GCC=$GXX
12644  lt_save_with_gnu_ld=$with_gnu_ld
12645  lt_save_path_LD=$lt_cv_path_LD
12646  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12647    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12648  else
12649    $as_unset lt_cv_prog_gnu_ld
12650  fi
12651  if test -n "${lt_cv_path_LDCXX+set}"; then
12652    lt_cv_path_LD=$lt_cv_path_LDCXX
12653  else
12654    $as_unset lt_cv_path_LD
12655  fi
12656  test -z "${LDCXX+set}" || LD=$LDCXX
12657  CC=${CXX-"c++"}
12658  compiler=$CC
12659  compiler_CXX=$CC
12660  for cc_temp in $compiler""; do
12661  case $cc_temp in
12662    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12663    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12664    \-*) ;;
12665    *) break;;
12666  esac
12667done
12668cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12669
12670
12671  if test -n "$compiler"; then
12672    # We don't want -fno-exception when compiling C++ code, so set the
12673    # no_builtin_flag separately
12674    if test "$GXX" = yes; then
12675      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12676    else
12677      lt_prog_compiler_no_builtin_flag_CXX=
12678    fi
12679
12680    if test "$GXX" = yes; then
12681      # Set up default GNU C++ configuration
12682
12683
12684
12685# Check whether --with-gnu-ld was given.
12686if test "${with_gnu_ld+set}" = set; then
12687  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12688else
12689  with_gnu_ld=no
12690fi
12691
12692ac_prog=ld
12693if test "$GCC" = yes; then
12694  # Check if gcc -print-prog-name=ld gives a path.
12695  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12696echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
12697  case $host in
12698  *-*-mingw*)
12699    # gcc leaves a trailing carriage return which upsets mingw
12700    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12701  *)
12702    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12703  esac
12704  case $ac_prog in
12705    # Accept absolute paths.
12706    [\\/]* | ?:[\\/]*)
12707      re_direlt='/[^/][^/]*/\.\./'
12708      # Canonicalize the pathname of ld
12709      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12710      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12711	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12712      done
12713      test -z "$LD" && LD="$ac_prog"
12714      ;;
12715  "")
12716    # If it fails, then pretend we aren't using GCC.
12717    ac_prog=ld
12718    ;;
12719  *)
12720    # If it is relative, then search for the first ld in PATH.
12721    with_gnu_ld=unknown
12722    ;;
12723  esac
12724elif test "$with_gnu_ld" = yes; then
12725  { echo "$as_me:$LINENO: checking for GNU ld" >&5
12726echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
12727else
12728  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12729echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
12730fi
12731if test "${lt_cv_path_LD+set}" = set; then
12732  echo $ECHO_N "(cached) $ECHO_C" >&6
12733else
12734  if test -z "$LD"; then
12735  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12736  for ac_dir in $PATH; do
12737    IFS="$lt_save_ifs"
12738    test -z "$ac_dir" && ac_dir=.
12739    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12740      lt_cv_path_LD="$ac_dir/$ac_prog"
12741      # Check to see if the program is GNU ld.  I'd rather use --version,
12742      # but apparently some variants of GNU ld only accept -v.
12743      # Break only if it was the GNU/non-GNU ld that we prefer.
12744      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12745      *GNU* | *'with BFD'*)
12746	test "$with_gnu_ld" != no && break
12747	;;
12748      *)
12749	test "$with_gnu_ld" != yes && break
12750	;;
12751      esac
12752    fi
12753  done
12754  IFS="$lt_save_ifs"
12755else
12756  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12757fi
12758fi
12759
12760LD="$lt_cv_path_LD"
12761if test -n "$LD"; then
12762  { echo "$as_me:$LINENO: result: $LD" >&5
12763echo "${ECHO_T}$LD" >&6; }
12764else
12765  { echo "$as_me:$LINENO: result: no" >&5
12766echo "${ECHO_T}no" >&6; }
12767fi
12768test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12769echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12770   { (exit 1); exit 1; }; }
12771{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12772echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
12773if test "${lt_cv_prog_gnu_ld+set}" = set; then
12774  echo $ECHO_N "(cached) $ECHO_C" >&6
12775else
12776  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12777case `$LD -v 2>&1 </dev/null` in
12778*GNU* | *'with BFD'*)
12779  lt_cv_prog_gnu_ld=yes
12780  ;;
12781*)
12782  lt_cv_prog_gnu_ld=no
12783  ;;
12784esac
12785fi
12786{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12787echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12788with_gnu_ld=$lt_cv_prog_gnu_ld
12789
12790
12791
12792
12793
12794
12795
12796      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12797      # archiving commands below assume that GNU ld is being used.
12798      if test "$with_gnu_ld" = yes; then
12799        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12800        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'
12801
12802        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12803        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12804
12805        # If archive_cmds runs LD, not CC, wlarc should be empty
12806        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12807        #     investigate it a little bit more. (MM)
12808        wlarc='${wl}'
12809
12810        # ancient GNU ld didn't support --whole-archive et. al.
12811        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12812	  $GREP 'no-whole-archive' > /dev/null; then
12813          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12814        else
12815          whole_archive_flag_spec_CXX=
12816        fi
12817      else
12818        with_gnu_ld=no
12819        wlarc=
12820
12821        # A generic and very simple default shared library creation
12822        # command for GNU C++ for the case where it uses the native
12823        # linker, instead of GNU ld.  If possible, this setting should
12824        # overridden to take advantage of the native linker features on
12825        # the platform it is being used on.
12826        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12827      fi
12828
12829      # Commands to make compiler produce verbose output that lists
12830      # what "hidden" libraries, object files and flags are used when
12831      # linking a shared library.
12832      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12833
12834    else
12835      GXX=no
12836      with_gnu_ld=no
12837      wlarc=
12838    fi
12839
12840    # PORTME: fill in a description of your system's C++ link characteristics
12841    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12842echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12843    ld_shlibs_CXX=yes
12844    case $host_os in
12845      aix3*)
12846        # FIXME: insert proper C++ library support
12847        ld_shlibs_CXX=no
12848        ;;
12849      aix[4-9]*)
12850        if test "$host_cpu" = ia64; then
12851          # On IA64, the linker does run time linking by default, so we don't
12852          # have to do anything special.
12853          aix_use_runtimelinking=no
12854          exp_sym_flag='-Bexport'
12855          no_entry_flag=""
12856        else
12857          aix_use_runtimelinking=no
12858
12859          # Test if we are trying to use run time linking or normal
12860          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12861          # need to do runtime linking.
12862          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12863	    for ld_flag in $LDFLAGS; do
12864	      case $ld_flag in
12865	      *-brtl*)
12866	        aix_use_runtimelinking=yes
12867	        break
12868	        ;;
12869	      esac
12870	    done
12871	    ;;
12872          esac
12873
12874          exp_sym_flag='-bexport'
12875          no_entry_flag='-bnoentry'
12876        fi
12877
12878        # When large executables or shared objects are built, AIX ld can
12879        # have problems creating the table of contents.  If linking a library
12880        # or program results in "error TOC overflow" add -mminimal-toc to
12881        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12882        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12883
12884        archive_cmds_CXX=''
12885        hardcode_direct_CXX=yes
12886        hardcode_direct_absolute_CXX=yes
12887        hardcode_libdir_separator_CXX=':'
12888        link_all_deplibs_CXX=yes
12889        file_list_spec_CXX='${wl}-f,'
12890
12891        if test "$GXX" = yes; then
12892          case $host_os in aix4.[012]|aix4.[012].*)
12893          # We only want to do this on AIX 4.2 and lower, the check
12894          # below for broken collect2 doesn't work under 4.3+
12895	  collect2name=`${CC} -print-prog-name=collect2`
12896	  if test -f "$collect2name" &&
12897	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12898	  then
12899	    # We have reworked collect2
12900	    :
12901	  else
12902	    # We have old collect2
12903	    hardcode_direct_CXX=unsupported
12904	    # It fails to find uninstalled libraries when the uninstalled
12905	    # path is not listed in the libpath.  Setting hardcode_minus_L
12906	    # to unsupported forces relinking
12907	    hardcode_minus_L_CXX=yes
12908	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12909	    hardcode_libdir_separator_CXX=
12910	  fi
12911          esac
12912          shared_flag='-shared'
12913	  if test "$aix_use_runtimelinking" = yes; then
12914	    shared_flag="$shared_flag "'${wl}-G'
12915	  fi
12916        else
12917          # not using gcc
12918          if test "$host_cpu" = ia64; then
12919	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12920	  # chokes on -Wl,-G. The following line is correct:
12921	  shared_flag='-G'
12922          else
12923	    if test "$aix_use_runtimelinking" = yes; then
12924	      shared_flag='${wl}-G'
12925	    else
12926	      shared_flag='${wl}-bM:SRE'
12927	    fi
12928          fi
12929        fi
12930
12931        # It seems that -bexpall does not export symbols beginning with
12932        # underscore (_), so it is better to generate a list of symbols to
12933	# export.
12934        always_export_symbols_CXX=yes
12935        if test "$aix_use_runtimelinking" = yes; then
12936          # Warning - without using the other runtime loading flags (-brtl),
12937          # -berok will link without error, but may produce a broken library.
12938          allow_undefined_flag_CXX='-berok'
12939          # Determine the default libpath from the value encoded in an empty
12940          # executable.
12941          cat >conftest.$ac_ext <<_ACEOF
12942/* confdefs.h.  */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h.  */
12947
12948int
12949main ()
12950{
12951
12952  ;
12953  return 0;
12954}
12955_ACEOF
12956rm -f conftest.$ac_objext conftest$ac_exeext
12957if { (ac_try="$ac_link"
12958case "(($ac_try" in
12959  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960  *) ac_try_echo=$ac_try;;
12961esac
12962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963  (eval "$ac_link") 2>conftest.er1
12964  ac_status=$?
12965  grep -v '^ *+' conftest.er1 >conftest.err
12966  rm -f conftest.er1
12967  cat conftest.err >&5
12968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969  (exit $ac_status); } && {
12970	 test -z "$ac_cxx_werror_flag" ||
12971	 test ! -s conftest.err
12972       } && test -s conftest$ac_exeext &&
12973       $as_test_x conftest$ac_exeext; then
12974
12975lt_aix_libpath_sed='
12976    /Import File Strings/,/^$/ {
12977	/^0/ {
12978	    s/^0  *\(.*\)$/\1/
12979	    p
12980	}
12981    }'
12982aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12983# Check for a 64-bit object if we didn't find anything.
12984if test -z "$aix_libpath"; then
12985  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12986fi
12987else
12988  echo "$as_me: failed program was:" >&5
12989sed 's/^/| /' conftest.$ac_ext >&5
12990
12991
12992fi
12993
12994rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12995      conftest$ac_exeext conftest.$ac_ext
12996if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12997
12998          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12999
13000          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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13001        else
13002          if test "$host_cpu" = ia64; then
13003	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13004	    allow_undefined_flag_CXX="-z nodefs"
13005	    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"
13006          else
13007	    # Determine the default libpath from the value encoded in an
13008	    # empty executable.
13009	    cat >conftest.$ac_ext <<_ACEOF
13010/* confdefs.h.  */
13011_ACEOF
13012cat confdefs.h >>conftest.$ac_ext
13013cat >>conftest.$ac_ext <<_ACEOF
13014/* end confdefs.h.  */
13015
13016int
13017main ()
13018{
13019
13020  ;
13021  return 0;
13022}
13023_ACEOF
13024rm -f conftest.$ac_objext conftest$ac_exeext
13025if { (ac_try="$ac_link"
13026case "(($ac_try" in
13027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028  *) ac_try_echo=$ac_try;;
13029esac
13030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031  (eval "$ac_link") 2>conftest.er1
13032  ac_status=$?
13033  grep -v '^ *+' conftest.er1 >conftest.err
13034  rm -f conftest.er1
13035  cat conftest.err >&5
13036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037  (exit $ac_status); } && {
13038	 test -z "$ac_cxx_werror_flag" ||
13039	 test ! -s conftest.err
13040       } && test -s conftest$ac_exeext &&
13041       $as_test_x conftest$ac_exeext; then
13042
13043lt_aix_libpath_sed='
13044    /Import File Strings/,/^$/ {
13045	/^0/ {
13046	    s/^0  *\(.*\)$/\1/
13047	    p
13048	}
13049    }'
13050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13051# Check for a 64-bit object if we didn't find anything.
13052if test -z "$aix_libpath"; then
13053  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13054fi
13055else
13056  echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059
13060fi
13061
13062rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13063      conftest$ac_exeext conftest.$ac_ext
13064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13065
13066	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13067	    # Warning - without using the other run time loading flags,
13068	    # -berok will link without error, but may produce a broken library.
13069	    no_undefined_flag_CXX=' ${wl}-bernotok'
13070	    allow_undefined_flag_CXX=' ${wl}-berok'
13071	    # Exported symbols can be pulled into shared objects from archives
13072	    whole_archive_flag_spec_CXX='$convenience'
13073	    archive_cmds_need_lc_CXX=yes
13074	    # This is similar to how AIX traditionally builds its shared
13075	    # libraries.
13076	    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'
13077          fi
13078        fi
13079        ;;
13080
13081      beos*)
13082	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13083	  allow_undefined_flag_CXX=unsupported
13084	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13085	  # support --undefined.  This deserves some investigation.  FIXME
13086	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13087	else
13088	  ld_shlibs_CXX=no
13089	fi
13090	;;
13091
13092      chorus*)
13093        case $cc_basename in
13094          *)
13095	  # FIXME: insert proper C++ library support
13096	  ld_shlibs_CXX=no
13097	  ;;
13098        esac
13099        ;;
13100
13101      cygwin* | mingw* | pw32*)
13102        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13103        # as there is no search path for DLLs.
13104        hardcode_libdir_flag_spec_CXX='-L$libdir'
13105        allow_undefined_flag_CXX=unsupported
13106        always_export_symbols_CXX=no
13107        enable_shared_with_static_runtimes_CXX=yes
13108
13109        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13110          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'
13111          # If the export-symbols file already is a .def file (1st line
13112          # is EXPORTS), use it as is; otherwise, prepend...
13113          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13114	    cp $export_symbols $output_objdir/$soname.def;
13115          else
13116	    echo EXPORTS > $output_objdir/$soname.def;
13117	    cat $export_symbols >> $output_objdir/$soname.def;
13118          fi~
13119          $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'
13120        else
13121          ld_shlibs_CXX=no
13122        fi
13123        ;;
13124      darwin* | rhapsody*)
13125
13126
13127  archive_cmds_need_lc_CXX=no
13128  hardcode_direct_CXX=no
13129  hardcode_automatic_CXX=yes
13130  hardcode_shlibpath_var_CXX=unsupported
13131  whole_archive_flag_spec_CXX=''
13132  link_all_deplibs_CXX=yes
13133  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13134  if test "$GCC" = "yes"; then
13135    output_verbose_link_cmd=echo
13136    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13137    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13138    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13139    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13140       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13141      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13142      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13143    fi
13144
13145  else
13146  ld_shlibs_CXX=no
13147  fi
13148
13149	;;
13150
13151      dgux*)
13152        case $cc_basename in
13153          ec++*)
13154	    # FIXME: insert proper C++ library support
13155	    ld_shlibs_CXX=no
13156	    ;;
13157          ghcx*)
13158	    # Green Hills C++ Compiler
13159	    # FIXME: insert proper C++ library support
13160	    ld_shlibs_CXX=no
13161	    ;;
13162          *)
13163	    # FIXME: insert proper C++ library support
13164	    ld_shlibs_CXX=no
13165	    ;;
13166        esac
13167        ;;
13168
13169      freebsd[12]*)
13170        # C++ shared libraries reported to be fairly broken before
13171	# switch to ELF
13172        ld_shlibs_CXX=no
13173        ;;
13174
13175      freebsd-elf*)
13176        archive_cmds_need_lc_CXX=no
13177        ;;
13178
13179      freebsd* | dragonfly*)
13180        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13181        # conventions
13182        ld_shlibs_CXX=yes
13183        ;;
13184
13185      gnu*)
13186        ;;
13187
13188      hpux9*)
13189        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13190        hardcode_libdir_separator_CXX=:
13191        export_dynamic_flag_spec_CXX='${wl}-E'
13192        hardcode_direct_CXX=yes
13193        hardcode_minus_L_CXX=yes # Not in the search PATH,
13194				             # but as the default
13195				             # location of the library.
13196
13197        case $cc_basename in
13198          CC*)
13199            # FIXME: insert proper C++ library support
13200            ld_shlibs_CXX=no
13201            ;;
13202          aCC*)
13203            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'
13204            # Commands to make compiler produce verbose output that lists
13205            # what "hidden" libraries, object files and flags are used when
13206            # linking a shared library.
13207            #
13208            # There doesn't appear to be a way to prevent this compiler from
13209            # explicitly linking system object files so we need to strip them
13210            # from the output so that they don't get included in the library
13211            # dependencies.
13212            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13213            ;;
13214          *)
13215            if test "$GXX" = yes; then
13216              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'
13217            else
13218              # FIXME: insert proper C++ library support
13219              ld_shlibs_CXX=no
13220            fi
13221            ;;
13222        esac
13223        ;;
13224
13225      hpux10*|hpux11*)
13226        if test $with_gnu_ld = no; then
13227	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13228	  hardcode_libdir_separator_CXX=:
13229
13230          case $host_cpu in
13231            hppa*64*|ia64*)
13232              ;;
13233            *)
13234	      export_dynamic_flag_spec_CXX='${wl}-E'
13235              ;;
13236          esac
13237        fi
13238        case $host_cpu in
13239          hppa*64*|ia64*)
13240            hardcode_direct_CXX=no
13241            hardcode_shlibpath_var_CXX=no
13242            ;;
13243          *)
13244            hardcode_direct_CXX=yes
13245            hardcode_direct_absolute_CXX=yes
13246            hardcode_minus_L_CXX=yes # Not in the search PATH,
13247					         # but as the default
13248					         # location of the library.
13249            ;;
13250        esac
13251
13252        case $cc_basename in
13253          CC*)
13254	    # FIXME: insert proper C++ library support
13255	    ld_shlibs_CXX=no
13256	    ;;
13257          aCC*)
13258	    case $host_cpu in
13259	      hppa*64*)
13260	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13261	        ;;
13262	      ia64*)
13263	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13264	        ;;
13265	      *)
13266	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13267	        ;;
13268	    esac
13269	    # Commands to make compiler produce verbose output that lists
13270	    # what "hidden" libraries, object files and flags are used when
13271	    # linking a shared library.
13272	    #
13273	    # There doesn't appear to be a way to prevent this compiler from
13274	    # explicitly linking system object files so we need to strip them
13275	    # from the output so that they don't get included in the library
13276	    # dependencies.
13277	    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 "X$list" | $Xsed'
13278	    ;;
13279          *)
13280	    if test "$GXX" = yes; then
13281	      if test $with_gnu_ld = no; then
13282	        case $host_cpu in
13283	          hppa*64*)
13284	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13285	            ;;
13286	          ia64*)
13287	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13288	            ;;
13289	          *)
13290	            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'
13291	            ;;
13292	        esac
13293	      fi
13294	    else
13295	      # FIXME: insert proper C++ library support
13296	      ld_shlibs_CXX=no
13297	    fi
13298	    ;;
13299        esac
13300        ;;
13301
13302      interix[3-9]*)
13303	hardcode_direct_CXX=no
13304	hardcode_shlibpath_var_CXX=no
13305	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13306	export_dynamic_flag_spec_CXX='${wl}-E'
13307	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13308	# Instead, shared libraries are loaded at an image base (0x10000000 by
13309	# default) and relocated if they conflict, which is a slow very memory
13310	# consuming and fragmenting process.  To avoid this, we pick a random,
13311	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13312	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13313	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'
13314	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'
13315	;;
13316      irix5* | irix6*)
13317        case $cc_basename in
13318          CC*)
13319	    # SGI C++
13320	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13321
13322	    # Archives containing C++ object files must be created using
13323	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13324	    # necessary to make sure instantiated templates are included
13325	    # in the archive.
13326	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13327	    ;;
13328          *)
13329	    if test "$GXX" = yes; then
13330	      if test "$with_gnu_ld" = no; then
13331	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13332	      else
13333	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13334	      fi
13335	    fi
13336	    link_all_deplibs_CXX=yes
13337	    ;;
13338        esac
13339        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13340        hardcode_libdir_separator_CXX=:
13341        inherit_rpath_CXX=yes
13342        ;;
13343
13344      linux* | k*bsd*-gnu)
13345        case $cc_basename in
13346          KCC*)
13347	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13348
13349	    # KCC will only create a shared library if the output file
13350	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13351	    # to its proper name (with version) after linking.
13352	    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'
13353	    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'
13354	    # Commands to make compiler produce verbose output that lists
13355	    # what "hidden" libraries, object files and flags are used when
13356	    # linking a shared library.
13357	    #
13358	    # There doesn't appear to be a way to prevent this compiler from
13359	    # explicitly linking system object files so we need to strip them
13360	    # from the output so that they don't get included in the library
13361	    # dependencies.
13362	    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 "X$list" | $Xsed'
13363
13364	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13365	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13366
13367	    # Archives containing C++ object files must be created using
13368	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13369	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13370	    ;;
13371	  icpc* | ecpc* )
13372	    # Intel C++
13373	    with_gnu_ld=yes
13374	    # version 8.0 and above of icpc choke on multiply defined symbols
13375	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13376	    # earlier do not add the objects themselves.
13377	    case `$CC -V 2>&1` in
13378	      *"Version 7."*)
13379	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380		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'
13381		;;
13382	      *)  # Version 8.0 or newer
13383	        tmp_idyn=
13384	        case $host_cpu in
13385		  ia64*) tmp_idyn=' -i_dynamic';;
13386		esac
13387	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388		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'
13389		;;
13390	    esac
13391	    archive_cmds_need_lc_CXX=no
13392	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13393	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13394	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13395	    ;;
13396          pgCC* | pgcpp*)
13397            # Portland Group C++ compiler
13398	    case `$CC -V` in
13399	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13400	      prelink_cmds_CXX='tpldir=Template.dir~
13401		rm -rf $tpldir~
13402		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13403		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13404	      old_archive_cmds_CXX='tpldir=Template.dir~
13405		rm -rf $tpldir~
13406		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13407		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13408		$RANLIB $oldlib'
13409	      archive_cmds_CXX='tpldir=Template.dir~
13410		rm -rf $tpldir~
13411		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13412		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13413	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13414		rm -rf $tpldir~
13415		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13416		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13417	      ;;
13418	    *) # Version 6 will use weak symbols
13419	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13420	      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'
13421	      ;;
13422	    esac
13423
13424	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13425	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13426	    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'
13427            ;;
13428	  cxx*)
13429	    # Compaq C++
13430	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13431	    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'
13432
13433	    runpath_var=LD_RUN_PATH
13434	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13435	    hardcode_libdir_separator_CXX=:
13436
13437	    # Commands to make compiler produce verbose output that lists
13438	    # what "hidden" libraries, object files and flags are used when
13439	    # linking a shared library.
13440	    #
13441	    # There doesn't appear to be a way to prevent this compiler from
13442	    # explicitly linking system object files so we need to strip them
13443	    # from the output so that they don't get included in the library
13444	    # dependencies.
13445	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13446	    ;;
13447	  xl*)
13448	    # IBM XL 8.0 on PPC, with GNU ld
13449	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13450	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13451	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13452	    if test "x$supports_anon_versioning" = xyes; then
13453	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13454		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13455		echo "local: *; };" >> $output_objdir/$libname.ver~
13456		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13457	    fi
13458	    ;;
13459	  *)
13460	    case `$CC -V 2>&1 | sed 5q` in
13461	    *Sun\ C*)
13462	      # Sun C++ 5.9
13463	      no_undefined_flag_CXX=' -zdefs'
13464	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13465	      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'
13466	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13467	      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'
13468	      compiler_needs_object_CXX=yes
13469
13470	      # Not sure whether something based on
13471	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13472	      # would be better.
13473	      output_verbose_link_cmd='echo'
13474
13475	      # Archives containing C++ object files must be created using
13476	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13477	      # necessary to make sure instantiated templates are included
13478	      # in the archive.
13479	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13480	      ;;
13481	    esac
13482	    ;;
13483	esac
13484	;;
13485
13486      lynxos*)
13487        # FIXME: insert proper C++ library support
13488	ld_shlibs_CXX=no
13489	;;
13490
13491      m88k*)
13492        # FIXME: insert proper C++ library support
13493        ld_shlibs_CXX=no
13494	;;
13495
13496      mvs*)
13497        case $cc_basename in
13498          cxx*)
13499	    # FIXME: insert proper C++ library support
13500	    ld_shlibs_CXX=no
13501	    ;;
13502	  *)
13503	    # FIXME: insert proper C++ library support
13504	    ld_shlibs_CXX=no
13505	    ;;
13506	esac
13507	;;
13508
13509      netbsd*)
13510        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13511	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13512	  wlarc=
13513	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13514	  hardcode_direct_CXX=yes
13515	  hardcode_shlibpath_var_CXX=no
13516	fi
13517	# Workaround some broken pre-1.5 toolchains
13518	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13519	;;
13520
13521      *nto* | *qnx*)
13522        ld_shlibs_CXX=yes
13523	;;
13524
13525      openbsd2*)
13526        # C++ shared libraries are fairly broken
13527	ld_shlibs_CXX=no
13528	;;
13529
13530      openbsd*)
13531	if test -f /usr/libexec/ld.so; then
13532	  hardcode_direct_CXX=yes
13533	  hardcode_shlibpath_var_CXX=no
13534	  hardcode_direct_absolute_CXX=yes
13535	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13536	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13537	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13538	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13539	    export_dynamic_flag_spec_CXX='${wl}-E'
13540	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13541	  fi
13542	  output_verbose_link_cmd=echo
13543	else
13544	  ld_shlibs_CXX=no
13545	fi
13546	;;
13547
13548      osf3* | osf4* | osf5*)
13549        case $cc_basename in
13550          KCC*)
13551	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13552
13553	    # KCC will only create a shared library if the output file
13554	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13555	    # to its proper name (with version) after linking.
13556	    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'
13557
13558	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13559	    hardcode_libdir_separator_CXX=:
13560
13561	    # Archives containing C++ object files must be created using
13562	    # the KAI C++ compiler.
13563	    case $host in
13564	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13565	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13566	    esac
13567	    ;;
13568          RCC*)
13569	    # Rational C++ 2.4.1
13570	    # FIXME: insert proper C++ library support
13571	    ld_shlibs_CXX=no
13572	    ;;
13573          cxx*)
13574	    case $host in
13575	      osf3*)
13576	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13577	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13578	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13579		;;
13580	      *)
13581	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13582	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13583	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13584	          echo "-hidden">> $lib.exp~
13585	          $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13586	          $RM $lib.exp'
13587	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13588		;;
13589	    esac
13590
13591	    hardcode_libdir_separator_CXX=:
13592
13593	    # Commands to make compiler produce verbose output that lists
13594	    # what "hidden" libraries, object files and flags are used when
13595	    # linking a shared library.
13596	    #
13597	    # There doesn't appear to be a way to prevent this compiler from
13598	    # explicitly linking system object files so we need to strip them
13599	    # from the output so that they don't get included in the library
13600	    # dependencies.
13601	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
13602	    ;;
13603	  *)
13604	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13605	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13606	      case $host in
13607	        osf3*)
13608	          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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13609		  ;;
13610	        *)
13611	          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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13612		  ;;
13613	      esac
13614
13615	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13616	      hardcode_libdir_separator_CXX=:
13617
13618	      # Commands to make compiler produce verbose output that lists
13619	      # what "hidden" libraries, object files and flags are used when
13620	      # linking a shared library.
13621	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13622
13623	    else
13624	      # FIXME: insert proper C++ library support
13625	      ld_shlibs_CXX=no
13626	    fi
13627	    ;;
13628        esac
13629        ;;
13630
13631      psos*)
13632        # FIXME: insert proper C++ library support
13633        ld_shlibs_CXX=no
13634        ;;
13635
13636      sunos4*)
13637        case $cc_basename in
13638          CC*)
13639	    # Sun C++ 4.x
13640	    # FIXME: insert proper C++ library support
13641	    ld_shlibs_CXX=no
13642	    ;;
13643          lcc*)
13644	    # Lucid
13645	    # FIXME: insert proper C++ library support
13646	    ld_shlibs_CXX=no
13647	    ;;
13648          *)
13649	    # FIXME: insert proper C++ library support
13650	    ld_shlibs_CXX=no
13651	    ;;
13652        esac
13653        ;;
13654
13655      solaris*)
13656        case $cc_basename in
13657          CC*)
13658	    # Sun C++ 4.2, 5.x and Centerline C++
13659            archive_cmds_need_lc_CXX=yes
13660	    no_undefined_flag_CXX=' -zdefs'
13661	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13662	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13663	      $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'
13664
13665	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13666	    hardcode_shlibpath_var_CXX=no
13667	    case $host_os in
13668	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13669	      *)
13670		# The compiler driver will combine and reorder linker options,
13671		# but understands `-z linker_flag'.
13672	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13673		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13674	        ;;
13675	    esac
13676	    link_all_deplibs_CXX=yes
13677
13678	    output_verbose_link_cmd='echo'
13679
13680	    # Archives containing C++ object files must be created using
13681	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13682	    # necessary to make sure instantiated templates are included
13683	    # in the archive.
13684	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13685	    ;;
13686          gcx*)
13687	    # Green Hills C++ Compiler
13688	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13689
13690	    # The C++ compiler must be used to create the archive.
13691	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13692	    ;;
13693          *)
13694	    # GNU C++ compiler with Solaris linker
13695	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13696	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13697	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13698	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13699	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13700		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13701
13702	        # Commands to make compiler produce verbose output that lists
13703	        # what "hidden" libraries, object files and flags are used when
13704	        # linking a shared library.
13705	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13706	      else
13707	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13708	        # platform.
13709	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13710	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13712
13713	        # Commands to make compiler produce verbose output that lists
13714	        # what "hidden" libraries, object files and flags are used when
13715	        # linking a shared library.
13716	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13717	      fi
13718
13719	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13720	      case $host_os in
13721		solaris2.[0-5] | solaris2.[0-5].*) ;;
13722		*)
13723		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13724		  ;;
13725	      esac
13726	    fi
13727	    ;;
13728        esac
13729        ;;
13730
13731    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13732      no_undefined_flag_CXX='${wl}-z,text'
13733      archive_cmds_need_lc_CXX=no
13734      hardcode_shlibpath_var_CXX=no
13735      runpath_var='LD_RUN_PATH'
13736
13737      case $cc_basename in
13738        CC*)
13739	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13741	  ;;
13742	*)
13743	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13744	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13745	  ;;
13746      esac
13747      ;;
13748
13749      sysv5* | sco3.2v5* | sco5v6*)
13750	# Note: We can NOT use -z defs as we might desire, because we do not
13751	# link with -lc, and that would cause any symbols used from libc to
13752	# always be unresolved, which means just about no library would
13753	# ever link correctly.  If we're not using GNU ld we use -z text
13754	# though, which does catch some bad symbols but isn't as heavy-handed
13755	# as -z defs.
13756	no_undefined_flag_CXX='${wl}-z,text'
13757	allow_undefined_flag_CXX='${wl}-z,nodefs'
13758	archive_cmds_need_lc_CXX=no
13759	hardcode_shlibpath_var_CXX=no
13760	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13761	hardcode_libdir_separator_CXX=':'
13762	link_all_deplibs_CXX=yes
13763	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13764	runpath_var='LD_RUN_PATH'
13765
13766	case $cc_basename in
13767          CC*)
13768	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13769	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13770	    ;;
13771	  *)
13772	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13773	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13774	    ;;
13775	esac
13776      ;;
13777
13778      tandem*)
13779        case $cc_basename in
13780          NCC*)
13781	    # NonStop-UX NCC 3.20
13782	    # FIXME: insert proper C++ library support
13783	    ld_shlibs_CXX=no
13784	    ;;
13785          *)
13786	    # FIXME: insert proper C++ library support
13787	    ld_shlibs_CXX=no
13788	    ;;
13789        esac
13790        ;;
13791
13792      vxworks*)
13793        # FIXME: insert proper C++ library support
13794        ld_shlibs_CXX=no
13795        ;;
13796
13797      *)
13798        # FIXME: insert proper C++ library support
13799        ld_shlibs_CXX=no
13800        ;;
13801    esac
13802
13803    { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13804echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13805    test "$ld_shlibs_CXX" = no && can_build_shared=no
13806
13807    GCC_CXX="$GXX"
13808    LD_CXX="$LD"
13809
13810    ## CAVEAT EMPTOR:
13811    ## There is no encapsulation within the following macros, do not change
13812    ## the running order or otherwise move them around unless you know exactly
13813    ## what you are doing...
13814    # Dependencies to place before and after the object being linked:
13815predep_objects_CXX=
13816postdep_objects_CXX=
13817predeps_CXX=
13818postdeps_CXX=
13819compiler_lib_search_path_CXX=
13820
13821cat > conftest.$ac_ext <<_LT_EOF
13822class Foo
13823{
13824public:
13825  Foo (void) { a = 0; }
13826private:
13827  int a;
13828};
13829_LT_EOF
13830
13831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832  (eval $ac_compile) 2>&5
13833  ac_status=$?
13834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835  (exit $ac_status); }; then
13836  # Parse the compiler output and extract the necessary
13837  # objects, libraries and library flags.
13838
13839  # Sentinel used to keep track of whether or not we are before
13840  # the conftest object file.
13841  pre_test_object_deps_done=no
13842
13843  for p in `eval "$output_verbose_link_cmd"`; do
13844    case $p in
13845
13846    -L* | -R* | -l*)
13847       # Some compilers place space between "-{L,R}" and the path.
13848       # Remove the space.
13849       if test $p = "-L" ||
13850          test $p = "-R"; then
13851	 prev=$p
13852	 continue
13853       else
13854	 prev=
13855       fi
13856
13857       if test "$pre_test_object_deps_done" = no; then
13858	 case $p in
13859	 -L* | -R*)
13860	   # Internal compiler library paths should come after those
13861	   # provided the user.  The postdeps already come after the
13862	   # user supplied libs so there is no need to process them.
13863	   if test -z "$compiler_lib_search_path_CXX"; then
13864	     compiler_lib_search_path_CXX="${prev}${p}"
13865	   else
13866	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13867	   fi
13868	   ;;
13869	 # The "-l" case would never come before the object being
13870	 # linked, so don't bother handling this case.
13871	 esac
13872       else
13873	 if test -z "$postdeps_CXX"; then
13874	   postdeps_CXX="${prev}${p}"
13875	 else
13876	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13877	 fi
13878       fi
13879       ;;
13880
13881    *.$objext)
13882       # This assumes that the test object file only shows up
13883       # once in the compiler output.
13884       if test "$p" = "conftest.$objext"; then
13885	 pre_test_object_deps_done=yes
13886	 continue
13887       fi
13888
13889       if test "$pre_test_object_deps_done" = no; then
13890	 if test -z "$predep_objects_CXX"; then
13891	   predep_objects_CXX="$p"
13892	 else
13893	   predep_objects_CXX="$predep_objects_CXX $p"
13894	 fi
13895       else
13896	 if test -z "$postdep_objects_CXX"; then
13897	   postdep_objects_CXX="$p"
13898	 else
13899	   postdep_objects_CXX="$postdep_objects_CXX $p"
13900	 fi
13901       fi
13902       ;;
13903
13904    *) ;; # Ignore the rest.
13905
13906    esac
13907  done
13908
13909  # Clean up.
13910  rm -f a.out a.exe
13911else
13912  echo "libtool.m4: error: problem compiling CXX test program"
13913fi
13914
13915$RM -f confest.$objext
13916
13917# PORTME: override above test on systems where it is broken
13918case $host_os in
13919interix[3-9]*)
13920  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13921  # hack all around it, let's just trust "g++" to DTRT.
13922  predep_objects_CXX=
13923  postdep_objects_CXX=
13924  postdeps_CXX=
13925  ;;
13926
13927linux*)
13928  case `$CC -V 2>&1 | sed 5q` in
13929  *Sun\ C*)
13930    # Sun C++ 5.9
13931
13932    # The more standards-conforming stlport4 library is
13933    # incompatible with the Cstd library. Avoid specifying
13934    # it if it's in CXXFLAGS. Ignore libCrun as
13935    # -library=stlport4 depends on it.
13936    case " $CXX $CXXFLAGS " in
13937    *" -library=stlport4 "*)
13938      solaris_use_stlport4=yes
13939      ;;
13940    esac
13941
13942    if test "$solaris_use_stlport4" != yes; then
13943      postdeps_CXX='-library=Cstd -library=Crun'
13944    fi
13945    ;;
13946  esac
13947  ;;
13948
13949solaris*)
13950  case $cc_basename in
13951  CC*)
13952    # The more standards-conforming stlport4 library is
13953    # incompatible with the Cstd library. Avoid specifying
13954    # it if it's in CXXFLAGS. Ignore libCrun as
13955    # -library=stlport4 depends on it.
13956    case " $CXX $CXXFLAGS " in
13957    *" -library=stlport4 "*)
13958      solaris_use_stlport4=yes
13959      ;;
13960    esac
13961
13962    # Adding this requires a known-good setup of shared libraries for
13963    # Sun compiler versions before 5.6, else PIC objects from an old
13964    # archive will be linked into the output, leading to subtle bugs.
13965    if test "$solaris_use_stlport4" != yes; then
13966      postdeps_CXX='-library=Cstd -library=Crun'
13967    fi
13968    ;;
13969  esac
13970  ;;
13971esac
13972
13973
13974case " $postdeps_CXX " in
13975*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13976esac
13977 compiler_lib_search_dirs_CXX=
13978if test -n "${compiler_lib_search_path_CXX}"; then
13979 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13980fi
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012    lt_prog_compiler_wl_CXX=
14013lt_prog_compiler_pic_CXX=
14014lt_prog_compiler_static_CXX=
14015
14016{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14017echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14018
14019  # C++ specific cases for pic, static, wl, etc.
14020  if test "$GXX" = yes; then
14021    lt_prog_compiler_wl_CXX='-Wl,'
14022    lt_prog_compiler_static_CXX='-static'
14023
14024    case $host_os in
14025    aix*)
14026      # All AIX code is PIC.
14027      if test "$host_cpu" = ia64; then
14028	# AIX 5 now supports IA64 processor
14029	lt_prog_compiler_static_CXX='-Bstatic'
14030      fi
14031      ;;
14032
14033    amigaos*)
14034      case $host_cpu in
14035      powerpc)
14036            # see comment about AmigaOS4 .so support
14037            lt_prog_compiler_pic_CXX='-fPIC'
14038        ;;
14039      m68k)
14040            # FIXME: we need at least 68020 code to build shared libraries, but
14041            # adding the `-m68020' flag to GCC prevents building anything better,
14042            # like `-m68040'.
14043            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14044        ;;
14045      esac
14046      ;;
14047
14048    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14049      # PIC is the default for these OSes.
14050      ;;
14051    mingw* | cygwin* | os2* | pw32*)
14052      # This hack is so that the source file can tell whether it is being
14053      # built for inclusion in a dll (and should export symbols for example).
14054      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14055      # (--disable-auto-import) libraries
14056      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14057      ;;
14058    darwin* | rhapsody*)
14059      # PIC is the default on this platform
14060      # Common symbols not allowed in MH_DYLIB files
14061      lt_prog_compiler_pic_CXX='-fno-common'
14062      ;;
14063    *djgpp*)
14064      # DJGPP does not support shared libraries at all
14065      lt_prog_compiler_pic_CXX=
14066      ;;
14067    interix[3-9]*)
14068      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14069      # Instead, we relocate shared libraries at runtime.
14070      ;;
14071    sysv4*MP*)
14072      if test -d /usr/nec; then
14073	lt_prog_compiler_pic_CXX=-Kconform_pic
14074      fi
14075      ;;
14076    hpux*)
14077      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14078      # not for PA HP-UX.
14079      case $host_cpu in
14080      hppa*64*|ia64*)
14081	;;
14082      *)
14083	lt_prog_compiler_pic_CXX='-fPIC'
14084	;;
14085      esac
14086      ;;
14087    *qnx* | *nto*)
14088      # QNX uses GNU C++, but need to define -shared option too, otherwise
14089      # it will coredump.
14090      lt_prog_compiler_pic_CXX='-fPIC -shared'
14091      ;;
14092    *)
14093      lt_prog_compiler_pic_CXX='-fPIC'
14094      ;;
14095    esac
14096  else
14097    case $host_os in
14098      aix[4-9]*)
14099	# All AIX code is PIC.
14100	if test "$host_cpu" = ia64; then
14101	  # AIX 5 now supports IA64 processor
14102	  lt_prog_compiler_static_CXX='-Bstatic'
14103	else
14104	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14105	fi
14106	;;
14107      chorus*)
14108	case $cc_basename in
14109	cxch68*)
14110	  # Green Hills C++ Compiler
14111	  # _LT_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"
14112	  ;;
14113	esac
14114	;;
14115      dgux*)
14116	case $cc_basename in
14117	  ec++*)
14118	    lt_prog_compiler_pic_CXX='-KPIC'
14119	    ;;
14120	  ghcx*)
14121	    # Green Hills C++ Compiler
14122	    lt_prog_compiler_pic_CXX='-pic'
14123	    ;;
14124	  *)
14125	    ;;
14126	esac
14127	;;
14128      freebsd* | dragonfly*)
14129	# FreeBSD uses GNU C++
14130	;;
14131      hpux9* | hpux10* | hpux11*)
14132	case $cc_basename in
14133	  CC*)
14134	    lt_prog_compiler_wl_CXX='-Wl,'
14135	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14136	    if test "$host_cpu" != ia64; then
14137	      lt_prog_compiler_pic_CXX='+Z'
14138	    fi
14139	    ;;
14140	  aCC*)
14141	    lt_prog_compiler_wl_CXX='-Wl,'
14142	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14143	    case $host_cpu in
14144	    hppa*64*|ia64*)
14145	      # +Z the default
14146	      ;;
14147	    *)
14148	      lt_prog_compiler_pic_CXX='+Z'
14149	      ;;
14150	    esac
14151	    ;;
14152	  *)
14153	    ;;
14154	esac
14155	;;
14156      interix*)
14157	# This is c89, which is MS Visual C++ (no shared libs)
14158	# Anyone wants to do a port?
14159	;;
14160      irix5* | irix6* | nonstopux*)
14161	case $cc_basename in
14162	  CC*)
14163	    lt_prog_compiler_wl_CXX='-Wl,'
14164	    lt_prog_compiler_static_CXX='-non_shared'
14165	    # CC pic flag -KPIC is the default.
14166	    ;;
14167	  *)
14168	    ;;
14169	esac
14170	;;
14171      linux* | k*bsd*-gnu)
14172	case $cc_basename in
14173	  KCC*)
14174	    # KAI C++ Compiler
14175	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14176	    lt_prog_compiler_pic_CXX='-fPIC'
14177	    ;;
14178	  icpc* | ecpc* )
14179	    # Intel C++
14180	    lt_prog_compiler_wl_CXX='-Wl,'
14181	    lt_prog_compiler_pic_CXX='-KPIC'
14182	    lt_prog_compiler_static_CXX='-static'
14183	    ;;
14184	  pgCC* | pgcpp*)
14185	    # Portland Group C++ compiler
14186	    lt_prog_compiler_wl_CXX='-Wl,'
14187	    lt_prog_compiler_pic_CXX='-fpic'
14188	    lt_prog_compiler_static_CXX='-Bstatic'
14189	    ;;
14190	  cxx*)
14191	    # Compaq C++
14192	    # Make sure the PIC flag is empty.  It appears that all Alpha
14193	    # Linux and Compaq Tru64 Unix objects are PIC.
14194	    lt_prog_compiler_pic_CXX=
14195	    lt_prog_compiler_static_CXX='-non_shared'
14196	    ;;
14197	  xlc* | xlC*)
14198	    # IBM XL 8.0 on PPC
14199	    lt_prog_compiler_wl_CXX='-Wl,'
14200	    lt_prog_compiler_pic_CXX='-qpic'
14201	    lt_prog_compiler_static_CXX='-qstaticlink'
14202	    ;;
14203	  *)
14204	    case `$CC -V 2>&1 | sed 5q` in
14205	    *Sun\ C*)
14206	      # Sun C++ 5.9
14207	      lt_prog_compiler_pic_CXX='-KPIC'
14208	      lt_prog_compiler_static_CXX='-Bstatic'
14209	      lt_prog_compiler_wl_CXX='-Qoption ld '
14210	      ;;
14211	    esac
14212	    ;;
14213	esac
14214	;;
14215      lynxos*)
14216	;;
14217      m88k*)
14218	;;
14219      mvs*)
14220	case $cc_basename in
14221	  cxx*)
14222	    lt_prog_compiler_pic_CXX='-W c,exportall'
14223	    ;;
14224	  *)
14225	    ;;
14226	esac
14227	;;
14228      netbsd*)
14229	;;
14230      *qnx* | *nto*)
14231        # QNX uses GNU C++, but need to define -shared option too, otherwise
14232        # it will coredump.
14233        lt_prog_compiler_pic_CXX='-fPIC -shared'
14234        ;;
14235      osf3* | osf4* | osf5*)
14236	case $cc_basename in
14237	  KCC*)
14238	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14239	    ;;
14240	  RCC*)
14241	    # Rational C++ 2.4.1
14242	    lt_prog_compiler_pic_CXX='-pic'
14243	    ;;
14244	  cxx*)
14245	    # Digital/Compaq C++
14246	    lt_prog_compiler_wl_CXX='-Wl,'
14247	    # Make sure the PIC flag is empty.  It appears that all Alpha
14248	    # Linux and Compaq Tru64 Unix objects are PIC.
14249	    lt_prog_compiler_pic_CXX=
14250	    lt_prog_compiler_static_CXX='-non_shared'
14251	    ;;
14252	  *)
14253	    ;;
14254	esac
14255	;;
14256      psos*)
14257	;;
14258      solaris*)
14259	case $cc_basename in
14260	  CC*)
14261	    # Sun C++ 4.2, 5.x and Centerline C++
14262	    lt_prog_compiler_pic_CXX='-KPIC'
14263	    lt_prog_compiler_static_CXX='-Bstatic'
14264	    lt_prog_compiler_wl_CXX='-Qoption ld '
14265	    ;;
14266	  gcx*)
14267	    # Green Hills C++ Compiler
14268	    lt_prog_compiler_pic_CXX='-PIC'
14269	    ;;
14270	  *)
14271	    ;;
14272	esac
14273	;;
14274      sunos4*)
14275	case $cc_basename in
14276	  CC*)
14277	    # Sun C++ 4.x
14278	    lt_prog_compiler_pic_CXX='-pic'
14279	    lt_prog_compiler_static_CXX='-Bstatic'
14280	    ;;
14281	  lcc*)
14282	    # Lucid
14283	    lt_prog_compiler_pic_CXX='-pic'
14284	    ;;
14285	  *)
14286	    ;;
14287	esac
14288	;;
14289      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14290	case $cc_basename in
14291	  CC*)
14292	    lt_prog_compiler_wl_CXX='-Wl,'
14293	    lt_prog_compiler_pic_CXX='-KPIC'
14294	    lt_prog_compiler_static_CXX='-Bstatic'
14295	    ;;
14296	esac
14297	;;
14298      tandem*)
14299	case $cc_basename in
14300	  NCC*)
14301	    # NonStop-UX NCC 3.20
14302	    lt_prog_compiler_pic_CXX='-KPIC'
14303	    ;;
14304	  *)
14305	    ;;
14306	esac
14307	;;
14308      vxworks*)
14309	;;
14310      *)
14311	lt_prog_compiler_can_build_shared_CXX=no
14312	;;
14313    esac
14314  fi
14315
14316case $host_os in
14317  # For platforms which do not support PIC, -DPIC is meaningless:
14318  *djgpp*)
14319    lt_prog_compiler_pic_CXX=
14320    ;;
14321  *)
14322    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14323    ;;
14324esac
14325{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14326echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14327
14328
14329
14330#
14331# Check to make sure the PIC flag actually works.
14332#
14333if test -n "$lt_prog_compiler_pic_CXX"; then
14334  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14335echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14336if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14337  echo $ECHO_N "(cached) $ECHO_C" >&6
14338else
14339  lt_cv_prog_compiler_pic_works_CXX=no
14340   ac_outfile=conftest.$ac_objext
14341   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14342   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14343   # Insert the option either (1) after the last *FLAGS variable, or
14344   # (2) before a word containing "conftest.", or (3) at the end.
14345   # Note that $ac_compile itself does not contain backslashes and begins
14346   # with a dollar sign (not a hyphen), so the echo should work correctly.
14347   # The option is referenced via a variable to avoid confusing sed.
14348   lt_compile=`echo "$ac_compile" | $SED \
14349   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14350   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14351   -e 's:$: $lt_compiler_flag:'`
14352   (eval echo "\"\$as_me:14352: $lt_compile\"" >&5)
14353   (eval "$lt_compile" 2>conftest.err)
14354   ac_status=$?
14355   cat conftest.err >&5
14356   echo "$as_me:14356: \$? = $ac_status" >&5
14357   if (exit $ac_status) && test -s "$ac_outfile"; then
14358     # The compiler can only warn and ignore the option if not recognized
14359     # So say no if there are warnings other than the usual output.
14360     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14361     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14362     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14363       lt_cv_prog_compiler_pic_works_CXX=yes
14364     fi
14365   fi
14366   $RM conftest*
14367
14368fi
14369{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14370echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14371
14372if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14373    case $lt_prog_compiler_pic_CXX in
14374     "" | " "*) ;;
14375     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14376     esac
14377else
14378    lt_prog_compiler_pic_CXX=
14379     lt_prog_compiler_can_build_shared_CXX=no
14380fi
14381
14382fi
14383
14384
14385
14386#
14387# Check to make sure the static flag actually works.
14388#
14389wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14390{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14391echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14392if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14393  echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395  lt_cv_prog_compiler_static_works_CXX=no
14396   save_LDFLAGS="$LDFLAGS"
14397   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14398   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14399   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14400     # The linker can only warn and ignore the option if not recognized
14401     # So say no if there are warnings
14402     if test -s conftest.err; then
14403       # Append any errors to the config.log.
14404       cat conftest.err 1>&5
14405       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14406       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14407       if diff conftest.exp conftest.er2 >/dev/null; then
14408         lt_cv_prog_compiler_static_works_CXX=yes
14409       fi
14410     else
14411       lt_cv_prog_compiler_static_works_CXX=yes
14412     fi
14413   fi
14414   $RM -r conftest*
14415   LDFLAGS="$save_LDFLAGS"
14416
14417fi
14418{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14419echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14420
14421if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14422    :
14423else
14424    lt_prog_compiler_static_CXX=
14425fi
14426
14427
14428
14429
14430    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14431echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14432if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14433  echo $ECHO_N "(cached) $ECHO_C" >&6
14434else
14435  lt_cv_prog_compiler_c_o_CXX=no
14436   $RM -r conftest 2>/dev/null
14437   mkdir conftest
14438   cd conftest
14439   mkdir out
14440   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14441
14442   lt_compiler_flag="-o out/conftest2.$ac_objext"
14443   # Insert the option either (1) after the last *FLAGS variable, or
14444   # (2) before a word containing "conftest.", or (3) at the end.
14445   # Note that $ac_compile itself does not contain backslashes and begins
14446   # with a dollar sign (not a hyphen), so the echo should work correctly.
14447   lt_compile=`echo "$ac_compile" | $SED \
14448   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14449   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14450   -e 's:$: $lt_compiler_flag:'`
14451   (eval echo "\"\$as_me:14451: $lt_compile\"" >&5)
14452   (eval "$lt_compile" 2>out/conftest.err)
14453   ac_status=$?
14454   cat out/conftest.err >&5
14455   echo "$as_me:14455: \$? = $ac_status" >&5
14456   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14457   then
14458     # The compiler can only warn and ignore the option if not recognized
14459     # So say no if there are warnings
14460     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14461     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14462     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14463       lt_cv_prog_compiler_c_o_CXX=yes
14464     fi
14465   fi
14466   chmod u+w . 2>&5
14467   $RM conftest*
14468   # SGI C++ compiler will create directory out/ii_files/ for
14469   # template instantiation
14470   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14471   $RM out/* && rmdir out
14472   cd ..
14473   $RM -r conftest
14474   $RM conftest*
14475
14476fi
14477{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14478echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14479
14480
14481
14482    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14483echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14484if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14485  echo $ECHO_N "(cached) $ECHO_C" >&6
14486else
14487  lt_cv_prog_compiler_c_o_CXX=no
14488   $RM -r conftest 2>/dev/null
14489   mkdir conftest
14490   cd conftest
14491   mkdir out
14492   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14493
14494   lt_compiler_flag="-o out/conftest2.$ac_objext"
14495   # Insert the option either (1) after the last *FLAGS variable, or
14496   # (2) before a word containing "conftest.", or (3) at the end.
14497   # Note that $ac_compile itself does not contain backslashes and begins
14498   # with a dollar sign (not a hyphen), so the echo should work correctly.
14499   lt_compile=`echo "$ac_compile" | $SED \
14500   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14501   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14502   -e 's:$: $lt_compiler_flag:'`
14503   (eval echo "\"\$as_me:14503: $lt_compile\"" >&5)
14504   (eval "$lt_compile" 2>out/conftest.err)
14505   ac_status=$?
14506   cat out/conftest.err >&5
14507   echo "$as_me:14507: \$? = $ac_status" >&5
14508   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14509   then
14510     # The compiler can only warn and ignore the option if not recognized
14511     # So say no if there are warnings
14512     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14513     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14514     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14515       lt_cv_prog_compiler_c_o_CXX=yes
14516     fi
14517   fi
14518   chmod u+w . 2>&5
14519   $RM conftest*
14520   # SGI C++ compiler will create directory out/ii_files/ for
14521   # template instantiation
14522   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14523   $RM out/* && rmdir out
14524   cd ..
14525   $RM -r conftest
14526   $RM conftest*
14527
14528fi
14529{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14530echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14531
14532
14533
14534
14535hard_links="nottested"
14536if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14537  # do not overwrite the value of need_locks provided by the user
14538  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14539echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14540  hard_links=yes
14541  $RM conftest*
14542  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14543  touch conftest.a
14544  ln conftest.a conftest.b 2>&5 || hard_links=no
14545  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14546  { echo "$as_me:$LINENO: result: $hard_links" >&5
14547echo "${ECHO_T}$hard_links" >&6; }
14548  if test "$hard_links" = no; then
14549    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14550echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14551    need_locks=warn
14552  fi
14553else
14554  need_locks=no
14555fi
14556
14557
14558
14559    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14560echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14561
14562  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14563  case $host_os in
14564  aix[4-9]*)
14565    # If we're using GNU nm, then we don't want the "-C" option.
14566    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14567    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14568      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'
14569    else
14570      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'
14571    fi
14572    ;;
14573  pw32*)
14574    export_symbols_cmds_CXX="$ltdll_cmds"
14575  ;;
14576  cygwin* | mingw*)
14577    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'
14578  ;;
14579  *)
14580    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14581  ;;
14582  esac
14583  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14584
14585{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14586echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14587test "$ld_shlibs_CXX" = no && can_build_shared=no
14588
14589with_gnu_ld_CXX=$with_gnu_ld
14590
14591
14592
14593
14594
14595
14596#
14597# Do we need to explicitly link libc?
14598#
14599case "x$archive_cmds_need_lc_CXX" in
14600x|xyes)
14601  # Assume -lc should be added
14602  archive_cmds_need_lc_CXX=yes
14603
14604  if test "$enable_shared" = yes && test "$GCC" = yes; then
14605    case $archive_cmds_CXX in
14606    *'~'*)
14607      # FIXME: we may have to deal with multi-command sequences.
14608      ;;
14609    '$CC '*)
14610      # Test whether the compiler implicitly links with -lc since on some
14611      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14612      # to ld, don't add -lc before -lgcc.
14613      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14614echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14615      $RM conftest*
14616      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14617
14618      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14619  (eval $ac_compile) 2>&5
14620  ac_status=$?
14621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622  (exit $ac_status); } 2>conftest.err; then
14623        soname=conftest
14624        lib=conftest
14625        libobjs=conftest.$ac_objext
14626        deplibs=
14627        wl=$lt_prog_compiler_wl_CXX
14628	pic_flag=$lt_prog_compiler_pic_CXX
14629        compiler_flags=-v
14630        linker_flags=-v
14631        verstring=
14632        output_objdir=.
14633        libname=conftest
14634        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14635        allow_undefined_flag_CXX=
14636        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14637  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14638  ac_status=$?
14639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640  (exit $ac_status); }
14641        then
14642	  archive_cmds_need_lc_CXX=no
14643        else
14644	  archive_cmds_need_lc_CXX=yes
14645        fi
14646        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14647      else
14648        cat conftest.err 1>&5
14649      fi
14650      $RM conftest*
14651      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14652echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14653      ;;
14654    esac
14655  fi
14656  ;;
14657esac
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722    { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14723echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14724
14725library_names_spec=
14726libname_spec='lib$name'
14727soname_spec=
14728shrext_cmds=".so"
14729postinstall_cmds=
14730postuninstall_cmds=
14731finish_cmds=
14732finish_eval=
14733shlibpath_var=
14734shlibpath_overrides_runpath=unknown
14735version_type=none
14736dynamic_linker="$host_os ld.so"
14737sys_lib_dlsearch_path_spec="/lib /usr/lib"
14738need_lib_prefix=unknown
14739hardcode_into_libs=no
14740
14741# when you set need_version to no, make sure it does not cause -set_version
14742# flags to be left without arguments
14743need_version=unknown
14744
14745case $host_os in
14746aix3*)
14747  version_type=linux
14748  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14749  shlibpath_var=LIBPATH
14750
14751  # AIX 3 has no versioning support, so we append a major version to the name.
14752  soname_spec='${libname}${release}${shared_ext}$major'
14753  ;;
14754
14755aix[4-9]*)
14756  version_type=linux
14757  need_lib_prefix=no
14758  need_version=no
14759  hardcode_into_libs=yes
14760  if test "$host_cpu" = ia64; then
14761    # AIX 5 supports IA64
14762    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14763    shlibpath_var=LD_LIBRARY_PATH
14764  else
14765    # With GCC up to 2.95.x, collect2 would create an import file
14766    # for dependence libraries.  The import file would start with
14767    # the line `#! .'.  This would cause the generated library to
14768    # depend on `.', always an invalid library.  This was fixed in
14769    # development snapshots of GCC prior to 3.0.
14770    case $host_os in
14771      aix4 | aix4.[01] | aix4.[01].*)
14772      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14773	   echo ' yes '
14774	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14775	:
14776      else
14777	can_build_shared=no
14778      fi
14779      ;;
14780    esac
14781    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14782    # soname into executable. Probably we can add versioning support to
14783    # collect2, so additional links can be useful in future.
14784    if test "$aix_use_runtimelinking" = yes; then
14785      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14786      # instead of lib<name>.a to let people know that these are not
14787      # typical AIX shared libraries.
14788      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789    else
14790      # We preserve .a as extension for shared libraries through AIX4.2
14791      # and later when we are not doing run time linking.
14792      library_names_spec='${libname}${release}.a $libname.a'
14793      soname_spec='${libname}${release}${shared_ext}$major'
14794    fi
14795    shlibpath_var=LIBPATH
14796  fi
14797  ;;
14798
14799amigaos*)
14800  case $host_cpu in
14801  powerpc)
14802    # Since July 2007 AmigaOS4 officially supports .so libraries.
14803    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14804    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805    ;;
14806  m68k)
14807    library_names_spec='$libname.ixlibrary $libname.a'
14808    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14809    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'
14810    ;;
14811  esac
14812  ;;
14813
14814beos*)
14815  library_names_spec='${libname}${shared_ext}'
14816  dynamic_linker="$host_os ld.so"
14817  shlibpath_var=LIBRARY_PATH
14818  ;;
14819
14820bsdi[45]*)
14821  version_type=linux
14822  need_version=no
14823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14824  soname_spec='${libname}${release}${shared_ext}$major'
14825  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14826  shlibpath_var=LD_LIBRARY_PATH
14827  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14828  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14829  # the default ld.so.conf also contains /usr/contrib/lib and
14830  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14831  # libtool to hard-code these into programs
14832  ;;
14833
14834cygwin* | mingw* | pw32*)
14835  version_type=windows
14836  shrext_cmds=".dll"
14837  need_version=no
14838  need_lib_prefix=no
14839
14840  case $GCC,$host_os in
14841  yes,cygwin* | yes,mingw* | yes,pw32*)
14842    library_names_spec='$libname.dll.a'
14843    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14844    postinstall_cmds='base_file=`basename \${file}`~
14845      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14846      dldir=$destdir/`dirname \$dlpath`~
14847      test -d \$dldir || mkdir -p \$dldir~
14848      $install_prog $dir/$dlname \$dldir/$dlname~
14849      chmod a+x \$dldir/$dlname~
14850      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14851        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14852      fi'
14853    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14854      dlpath=$dir/\$dldll~
14855       $RM \$dlpath'
14856    shlibpath_overrides_runpath=yes
14857
14858    case $host_os in
14859    cygwin*)
14860      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14861      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14862      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14863      ;;
14864    mingw*)
14865      # MinGW DLLs use traditional 'lib' prefix
14866      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14867      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14868      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14869        # It is most probably a Windows format PATH printed by
14870        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14871        # path with ; separators, and with drive letters. We can handle the
14872        # drive letters (cygwin fileutils understands them), so leave them,
14873        # especially as we might pass files found there to a mingw objdump,
14874        # which wouldn't understand a cygwinified path. Ahh.
14875        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14876      else
14877        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14878      fi
14879      ;;
14880    pw32*)
14881      # pw32 DLLs use 'pw' prefix rather than 'lib'
14882      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14883      ;;
14884    esac
14885    ;;
14886
14887  *)
14888    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14889    ;;
14890  esac
14891  dynamic_linker='Win32 ld.exe'
14892  # FIXME: first we should search . and the directory the executable is in
14893  shlibpath_var=PATH
14894  ;;
14895
14896darwin* | rhapsody*)
14897  dynamic_linker="$host_os dyld"
14898  version_type=darwin
14899  need_lib_prefix=no
14900  need_version=no
14901  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14902  soname_spec='${libname}${release}${major}$shared_ext'
14903  shlibpath_overrides_runpath=yes
14904  shlibpath_var=DYLD_LIBRARY_PATH
14905  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14906
14907  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14908  ;;
14909
14910dgux*)
14911  version_type=linux
14912  need_lib_prefix=no
14913  need_version=no
14914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14915  soname_spec='${libname}${release}${shared_ext}$major'
14916  shlibpath_var=LD_LIBRARY_PATH
14917  ;;
14918
14919freebsd1*)
14920  dynamic_linker=no
14921  ;;
14922
14923freebsd* | dragonfly*)
14924  # DragonFly does not have aout.  When/if they implement a new
14925  # versioning mechanism, adjust this.
14926  if test -x /usr/bin/objformat; then
14927    objformat=`/usr/bin/objformat`
14928  else
14929    case $host_os in
14930    freebsd[123]*) objformat=aout ;;
14931    *) objformat=elf ;;
14932    esac
14933  fi
14934  version_type=freebsd-$objformat
14935  case $version_type in
14936    freebsd-elf*)
14937      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14938      need_version=no
14939      need_lib_prefix=no
14940      ;;
14941    freebsd-*)
14942      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14943      need_version=yes
14944      ;;
14945  esac
14946  shlibpath_var=LD_LIBRARY_PATH
14947  case $host_os in
14948  freebsd2*)
14949    shlibpath_overrides_runpath=yes
14950    ;;
14951  freebsd3.[01]* | freebsdelf3.[01]*)
14952    shlibpath_overrides_runpath=yes
14953    hardcode_into_libs=yes
14954    ;;
14955  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14956  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14957    shlibpath_overrides_runpath=no
14958    hardcode_into_libs=yes
14959    ;;
14960  *) # from 4.6 on, and DragonFly
14961    shlibpath_overrides_runpath=yes
14962    hardcode_into_libs=yes
14963    ;;
14964  esac
14965  ;;
14966
14967gnu*)
14968  version_type=linux
14969  need_lib_prefix=no
14970  need_version=no
14971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14972  soname_spec='${libname}${release}${shared_ext}$major'
14973  shlibpath_var=LD_LIBRARY_PATH
14974  hardcode_into_libs=yes
14975  ;;
14976
14977hpux9* | hpux10* | hpux11*)
14978  # Give a soname corresponding to the major version so that dld.sl refuses to
14979  # link against other versions.
14980  version_type=sunos
14981  need_lib_prefix=no
14982  need_version=no
14983  case $host_cpu in
14984  ia64*)
14985    shrext_cmds='.so'
14986    hardcode_into_libs=yes
14987    dynamic_linker="$host_os dld.so"
14988    shlibpath_var=LD_LIBRARY_PATH
14989    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14990    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991    soname_spec='${libname}${release}${shared_ext}$major'
14992    if test "X$HPUX_IA64_MODE" = X32; then
14993      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14994    else
14995      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14996    fi
14997    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14998    ;;
14999  hppa*64*)
15000    shrext_cmds='.sl'
15001    hardcode_into_libs=yes
15002    dynamic_linker="$host_os dld.sl"
15003    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15004    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15005    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006    soname_spec='${libname}${release}${shared_ext}$major'
15007    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15008    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15009    ;;
15010  *)
15011    shrext_cmds='.sl'
15012    dynamic_linker="$host_os dld.sl"
15013    shlibpath_var=SHLIB_PATH
15014    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15015    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15016    soname_spec='${libname}${release}${shared_ext}$major'
15017    ;;
15018  esac
15019  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15020  postinstall_cmds='chmod 555 $lib'
15021  ;;
15022
15023interix[3-9]*)
15024  version_type=linux
15025  need_lib_prefix=no
15026  need_version=no
15027  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15028  soname_spec='${libname}${release}${shared_ext}$major'
15029  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15030  shlibpath_var=LD_LIBRARY_PATH
15031  shlibpath_overrides_runpath=no
15032  hardcode_into_libs=yes
15033  ;;
15034
15035irix5* | irix6* | nonstopux*)
15036  case $host_os in
15037    nonstopux*) version_type=nonstopux ;;
15038    *)
15039	if test "$lt_cv_prog_gnu_ld" = yes; then
15040		version_type=linux
15041	else
15042		version_type=irix
15043	fi ;;
15044  esac
15045  need_lib_prefix=no
15046  need_version=no
15047  soname_spec='${libname}${release}${shared_ext}$major'
15048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15049  case $host_os in
15050  irix5* | nonstopux*)
15051    libsuff= shlibsuff=
15052    ;;
15053  *)
15054    case $LD in # libtool.m4 will add one of these switches to LD
15055    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15056      libsuff= shlibsuff= libmagic=32-bit;;
15057    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15058      libsuff=32 shlibsuff=N32 libmagic=N32;;
15059    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15060      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15061    *) libsuff= shlibsuff= libmagic=never-match;;
15062    esac
15063    ;;
15064  esac
15065  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15066  shlibpath_overrides_runpath=no
15067  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15068  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15069  hardcode_into_libs=yes
15070  ;;
15071
15072# No shared lib support for Linux oldld, aout, or coff.
15073linux*oldld* | linux*aout* | linux*coff*)
15074  dynamic_linker=no
15075  ;;
15076
15077# This must be Linux ELF.
15078linux* | k*bsd*-gnu)
15079  version_type=linux
15080  need_lib_prefix=no
15081  need_version=no
15082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15083  soname_spec='${libname}${release}${shared_ext}$major'
15084  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15085  shlibpath_var=LD_LIBRARY_PATH
15086  shlibpath_overrides_runpath=no
15087  # Some binutils ld are patched to set DT_RUNPATH
15088  save_LDFLAGS=$LDFLAGS
15089  save_libdir=$libdir
15090  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15091       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15092  cat >conftest.$ac_ext <<_ACEOF
15093/* confdefs.h.  */
15094_ACEOF
15095cat confdefs.h >>conftest.$ac_ext
15096cat >>conftest.$ac_ext <<_ACEOF
15097/* end confdefs.h.  */
15098
15099int
15100main ()
15101{
15102
15103  ;
15104  return 0;
15105}
15106_ACEOF
15107rm -f conftest.$ac_objext conftest$ac_exeext
15108if { (ac_try="$ac_link"
15109case "(($ac_try" in
15110  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111  *) ac_try_echo=$ac_try;;
15112esac
15113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114  (eval "$ac_link") 2>conftest.er1
15115  ac_status=$?
15116  grep -v '^ *+' conftest.er1 >conftest.err
15117  rm -f conftest.er1
15118  cat conftest.err >&5
15119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120  (exit $ac_status); } && {
15121	 test -z "$ac_cxx_werror_flag" ||
15122	 test ! -s conftest.err
15123       } && test -s conftest$ac_exeext &&
15124       $as_test_x conftest$ac_exeext; then
15125  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15126  shlibpath_overrides_runpath=yes
15127fi
15128
15129else
15130  echo "$as_me: failed program was:" >&5
15131sed 's/^/| /' conftest.$ac_ext >&5
15132
15133
15134fi
15135
15136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15137      conftest$ac_exeext conftest.$ac_ext
15138  LDFLAGS=$save_LDFLAGS
15139  libdir=$save_libdir
15140
15141  # This implies no fast_install, which is unacceptable.
15142  # Some rework will be needed to allow for fast_install
15143  # before this can be enabled.
15144  hardcode_into_libs=yes
15145
15146  # Append ld.so.conf contents to the search path
15147  if test -f /etc/ld.so.conf; then
15148    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' ' '`
15149    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15150  fi
15151
15152  # We used to test for /lib/ld.so.1 and disable shared libraries on
15153  # powerpc, because MkLinux only supported shared libraries with the
15154  # GNU dynamic linker.  Since this was broken with cross compilers,
15155  # most powerpc-linux boxes support dynamic linking these days and
15156  # people can always --disable-shared, the test was removed, and we
15157  # assume the GNU/Linux dynamic linker is in use.
15158  dynamic_linker='GNU/Linux ld.so'
15159  ;;
15160
15161netbsd*)
15162  version_type=sunos
15163  need_lib_prefix=no
15164  need_version=no
15165  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15166    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15167    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15168    dynamic_linker='NetBSD (a.out) ld.so'
15169  else
15170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15171    soname_spec='${libname}${release}${shared_ext}$major'
15172    dynamic_linker='NetBSD ld.elf_so'
15173  fi
15174  shlibpath_var=LD_LIBRARY_PATH
15175  shlibpath_overrides_runpath=yes
15176  hardcode_into_libs=yes
15177  ;;
15178
15179newsos6)
15180  version_type=linux
15181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182  shlibpath_var=LD_LIBRARY_PATH
15183  shlibpath_overrides_runpath=yes
15184  ;;
15185
15186*nto* | *qnx*)
15187  version_type=qnx
15188  need_lib_prefix=no
15189  need_version=no
15190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191  soname_spec='${libname}${release}${shared_ext}$major'
15192  shlibpath_var=LD_LIBRARY_PATH
15193  shlibpath_overrides_runpath=no
15194  hardcode_into_libs=yes
15195  dynamic_linker='ldqnx.so'
15196  ;;
15197
15198openbsd*)
15199  version_type=sunos
15200  sys_lib_dlsearch_path_spec="/usr/lib"
15201  need_lib_prefix=no
15202  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15203  case $host_os in
15204    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15205    *)				need_version=no  ;;
15206  esac
15207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15208  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15209  shlibpath_var=LD_LIBRARY_PATH
15210  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15211    case $host_os in
15212      openbsd2.[89] | openbsd2.[89].*)
15213	shlibpath_overrides_runpath=no
15214	;;
15215      *)
15216	shlibpath_overrides_runpath=yes
15217	;;
15218      esac
15219  else
15220    shlibpath_overrides_runpath=yes
15221  fi
15222  ;;
15223
15224os2*)
15225  libname_spec='$name'
15226  shrext_cmds=".dll"
15227  need_lib_prefix=no
15228  library_names_spec='$libname${shared_ext} $libname.a'
15229  dynamic_linker='OS/2 ld.exe'
15230  shlibpath_var=LIBPATH
15231  ;;
15232
15233osf3* | osf4* | osf5*)
15234  version_type=osf
15235  need_lib_prefix=no
15236  need_version=no
15237  soname_spec='${libname}${release}${shared_ext}$major'
15238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239  shlibpath_var=LD_LIBRARY_PATH
15240  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15241  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15242  ;;
15243
15244rdos*)
15245  dynamic_linker=no
15246  ;;
15247
15248solaris*)
15249  version_type=linux
15250  need_lib_prefix=no
15251  need_version=no
15252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15253  soname_spec='${libname}${release}${shared_ext}$major'
15254  shlibpath_var=LD_LIBRARY_PATH
15255  shlibpath_overrides_runpath=yes
15256  hardcode_into_libs=yes
15257  # ldd complains unless libraries are executable
15258  postinstall_cmds='chmod +x $lib'
15259  ;;
15260
15261sunos4*)
15262  version_type=sunos
15263  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15264  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15265  shlibpath_var=LD_LIBRARY_PATH
15266  shlibpath_overrides_runpath=yes
15267  if test "$with_gnu_ld" = yes; then
15268    need_lib_prefix=no
15269  fi
15270  need_version=yes
15271  ;;
15272
15273sysv4 | sysv4.3*)
15274  version_type=linux
15275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15276  soname_spec='${libname}${release}${shared_ext}$major'
15277  shlibpath_var=LD_LIBRARY_PATH
15278  case $host_vendor in
15279    sni)
15280      shlibpath_overrides_runpath=no
15281      need_lib_prefix=no
15282      runpath_var=LD_RUN_PATH
15283      ;;
15284    siemens)
15285      need_lib_prefix=no
15286      ;;
15287    motorola)
15288      need_lib_prefix=no
15289      need_version=no
15290      shlibpath_overrides_runpath=no
15291      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15292      ;;
15293  esac
15294  ;;
15295
15296sysv4*MP*)
15297  if test -d /usr/nec ;then
15298    version_type=linux
15299    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15300    soname_spec='$libname${shared_ext}.$major'
15301    shlibpath_var=LD_LIBRARY_PATH
15302  fi
15303  ;;
15304
15305sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15306  version_type=freebsd-elf
15307  need_lib_prefix=no
15308  need_version=no
15309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15310  soname_spec='${libname}${release}${shared_ext}$major'
15311  shlibpath_var=LD_LIBRARY_PATH
15312  shlibpath_overrides_runpath=yes
15313  hardcode_into_libs=yes
15314  if test "$with_gnu_ld" = yes; then
15315    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15316  else
15317    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15318    case $host_os in
15319      sco3.2v5*)
15320        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15321	;;
15322    esac
15323  fi
15324  sys_lib_dlsearch_path_spec='/usr/lib'
15325  ;;
15326
15327tpf*)
15328  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15329  version_type=linux
15330  need_lib_prefix=no
15331  need_version=no
15332  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333  shlibpath_var=LD_LIBRARY_PATH
15334  shlibpath_overrides_runpath=no
15335  hardcode_into_libs=yes
15336  ;;
15337
15338uts4*)
15339  version_type=linux
15340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15341  soname_spec='${libname}${release}${shared_ext}$major'
15342  shlibpath_var=LD_LIBRARY_PATH
15343  ;;
15344
15345*)
15346  dynamic_linker=no
15347  ;;
15348esac
15349{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15350echo "${ECHO_T}$dynamic_linker" >&6; }
15351test "$dynamic_linker" = no && can_build_shared=no
15352
15353variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15354if test "$GCC" = yes; then
15355  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15356fi
15357
15358if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15359  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15360fi
15361if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15362  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15363fi
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400    { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15401echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15402hardcode_action_CXX=
15403if test -n "$hardcode_libdir_flag_spec_CXX" ||
15404   test -n "$runpath_var_CXX" ||
15405   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15406
15407  # We can hardcode non-existent directories.
15408  if test "$hardcode_direct_CXX" != no &&
15409     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15410     # have to relink, otherwise we might link with an installed library
15411     # when we should be linking with a yet-to-be-installed one
15412     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15413     test "$hardcode_minus_L_CXX" != no; then
15414    # Linking always hardcodes the temporary library directory.
15415    hardcode_action_CXX=relink
15416  else
15417    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15418    hardcode_action_CXX=immediate
15419  fi
15420else
15421  # We cannot hardcode anything, or else we can only hardcode existing
15422  # directories.
15423  hardcode_action_CXX=unsupported
15424fi
15425{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15426echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15427
15428if test "$hardcode_action_CXX" = relink ||
15429   test "$inherit_rpath_CXX" = yes; then
15430  # Fast installation is not supported
15431  enable_fast_install=no
15432elif test "$shlibpath_overrides_runpath" = yes ||
15433     test "$enable_shared" = no; then
15434  # Fast installation is not necessary
15435  enable_fast_install=needless
15436fi
15437
15438
15439
15440
15441
15442
15443
15444  fi # test -n "$compiler"
15445
15446  CC=$lt_save_CC
15447  LDCXX=$LD
15448  LD=$lt_save_LD
15449  GCC=$lt_save_GCC
15450  with_gnu_ld=$lt_save_with_gnu_ld
15451  lt_cv_path_LDCXX=$lt_cv_path_LD
15452  lt_cv_path_LD=$lt_save_path_LD
15453  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15454  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15455fi # test "$_lt_caught_CXX_error" != yes
15456
15457ac_ext=cpp
15458ac_cpp='$CXXCPP $CPPFLAGS'
15459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475        ac_config_commands="$ac_config_commands libtool"
15476
15477
15478
15479
15480# Only expand once:
15481
15482
15483
15484# Checks for header files.
15485{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15486echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15487if test "${ac_cv_header_stdc+set}" = set; then
15488  echo $ECHO_N "(cached) $ECHO_C" >&6
15489else
15490  cat >conftest.$ac_ext <<_ACEOF
15491/* confdefs.h.  */
15492_ACEOF
15493cat confdefs.h >>conftest.$ac_ext
15494cat >>conftest.$ac_ext <<_ACEOF
15495/* end confdefs.h.  */
15496#include <stdlib.h>
15497#include <stdarg.h>
15498#include <string.h>
15499#include <float.h>
15500
15501int
15502main ()
15503{
15504
15505  ;
15506  return 0;
15507}
15508_ACEOF
15509rm -f conftest.$ac_objext
15510if { (ac_try="$ac_compile"
15511case "(($ac_try" in
15512  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513  *) ac_try_echo=$ac_try;;
15514esac
15515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516  (eval "$ac_compile") 2>conftest.er1
15517  ac_status=$?
15518  grep -v '^ *+' conftest.er1 >conftest.err
15519  rm -f conftest.er1
15520  cat conftest.err >&5
15521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522  (exit $ac_status); } && {
15523	 test -z "$ac_cxx_werror_flag" ||
15524	 test ! -s conftest.err
15525       } && test -s conftest.$ac_objext; then
15526  ac_cv_header_stdc=yes
15527else
15528  echo "$as_me: failed program was:" >&5
15529sed 's/^/| /' conftest.$ac_ext >&5
15530
15531	ac_cv_header_stdc=no
15532fi
15533
15534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535
15536if test $ac_cv_header_stdc = yes; then
15537  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15538  cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h.  */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h.  */
15544#include <string.h>
15545
15546_ACEOF
15547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15548  $EGREP "memchr" >/dev/null 2>&1; then
15549  :
15550else
15551  ac_cv_header_stdc=no
15552fi
15553rm -f conftest*
15554
15555fi
15556
15557if test $ac_cv_header_stdc = yes; then
15558  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15559  cat >conftest.$ac_ext <<_ACEOF
15560/* confdefs.h.  */
15561_ACEOF
15562cat confdefs.h >>conftest.$ac_ext
15563cat >>conftest.$ac_ext <<_ACEOF
15564/* end confdefs.h.  */
15565#include <stdlib.h>
15566
15567_ACEOF
15568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15569  $EGREP "free" >/dev/null 2>&1; then
15570  :
15571else
15572  ac_cv_header_stdc=no
15573fi
15574rm -f conftest*
15575
15576fi
15577
15578if test $ac_cv_header_stdc = yes; then
15579  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15580  if test "$cross_compiling" = yes; then
15581  :
15582else
15583  cat >conftest.$ac_ext <<_ACEOF
15584/* confdefs.h.  */
15585_ACEOF
15586cat confdefs.h >>conftest.$ac_ext
15587cat >>conftest.$ac_ext <<_ACEOF
15588/* end confdefs.h.  */
15589#include <ctype.h>
15590#include <stdlib.h>
15591#if ((' ' & 0x0FF) == 0x020)
15592# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15593# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15594#else
15595# define ISLOWER(c) \
15596		   (('a' <= (c) && (c) <= 'i') \
15597		     || ('j' <= (c) && (c) <= 'r') \
15598		     || ('s' <= (c) && (c) <= 'z'))
15599# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15600#endif
15601
15602#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15603int
15604main ()
15605{
15606  int i;
15607  for (i = 0; i < 256; i++)
15608    if (XOR (islower (i), ISLOWER (i))
15609	|| toupper (i) != TOUPPER (i))
15610      return 2;
15611  return 0;
15612}
15613_ACEOF
15614rm -f conftest$ac_exeext
15615if { (ac_try="$ac_link"
15616case "(($ac_try" in
15617  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618  *) ac_try_echo=$ac_try;;
15619esac
15620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621  (eval "$ac_link") 2>&5
15622  ac_status=$?
15623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15625  { (case "(($ac_try" in
15626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627  *) ac_try_echo=$ac_try;;
15628esac
15629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630  (eval "$ac_try") 2>&5
15631  ac_status=$?
15632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633  (exit $ac_status); }; }; then
15634  :
15635else
15636  echo "$as_me: program exited with status $ac_status" >&5
15637echo "$as_me: failed program was:" >&5
15638sed 's/^/| /' conftest.$ac_ext >&5
15639
15640( exit $ac_status )
15641ac_cv_header_stdc=no
15642fi
15643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15644fi
15645
15646
15647fi
15648fi
15649{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15650echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15651if test $ac_cv_header_stdc = yes; then
15652
15653cat >>confdefs.h <<\_ACEOF
15654#define STDC_HEADERS 1
15655_ACEOF
15656
15657fi
15658
15659
15660
15661
15662
15663
15664for ac_header in fcntl.h inttypes.h limits.h stdlib.h unistd.h
15665do
15666as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15668  { echo "$as_me:$LINENO: checking for $ac_header" >&5
15669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15671  echo $ECHO_N "(cached) $ECHO_C" >&6
15672fi
15673ac_res=`eval echo '${'$as_ac_Header'}'`
15674	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15675echo "${ECHO_T}$ac_res" >&6; }
15676else
15677  # Is the header compilable?
15678{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
15679echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15680cat >conftest.$ac_ext <<_ACEOF
15681/* confdefs.h.  */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h.  */
15686$ac_includes_default
15687#include <$ac_header>
15688_ACEOF
15689rm -f conftest.$ac_objext
15690if { (ac_try="$ac_compile"
15691case "(($ac_try" in
15692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693  *) ac_try_echo=$ac_try;;
15694esac
15695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696  (eval "$ac_compile") 2>conftest.er1
15697  ac_status=$?
15698  grep -v '^ *+' conftest.er1 >conftest.err
15699  rm -f conftest.er1
15700  cat conftest.err >&5
15701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702  (exit $ac_status); } && {
15703	 test -z "$ac_cxx_werror_flag" ||
15704	 test ! -s conftest.err
15705       } && test -s conftest.$ac_objext; then
15706  ac_header_compiler=yes
15707else
15708  echo "$as_me: failed program was:" >&5
15709sed 's/^/| /' conftest.$ac_ext >&5
15710
15711	ac_header_compiler=no
15712fi
15713
15714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15715{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15716echo "${ECHO_T}$ac_header_compiler" >&6; }
15717
15718# Is the header present?
15719{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
15720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15721cat >conftest.$ac_ext <<_ACEOF
15722/* confdefs.h.  */
15723_ACEOF
15724cat confdefs.h >>conftest.$ac_ext
15725cat >>conftest.$ac_ext <<_ACEOF
15726/* end confdefs.h.  */
15727#include <$ac_header>
15728_ACEOF
15729if { (ac_try="$ac_cpp conftest.$ac_ext"
15730case "(($ac_try" in
15731  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732  *) ac_try_echo=$ac_try;;
15733esac
15734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15735  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15736  ac_status=$?
15737  grep -v '^ *+' conftest.er1 >conftest.err
15738  rm -f conftest.er1
15739  cat conftest.err >&5
15740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741  (exit $ac_status); } >/dev/null && {
15742	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
15743	 test ! -s conftest.err
15744       }; then
15745  ac_header_preproc=yes
15746else
15747  echo "$as_me: failed program was:" >&5
15748sed 's/^/| /' conftest.$ac_ext >&5
15749
15750  ac_header_preproc=no
15751fi
15752
15753rm -f conftest.err conftest.$ac_ext
15754{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15755echo "${ECHO_T}$ac_header_preproc" >&6; }
15756
15757# So?  What about this header?
15758case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15759  yes:no: )
15760    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15761echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15762    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15763echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15764    ac_header_preproc=yes
15765    ;;
15766  no:yes:* )
15767    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15768echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15769    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15770echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15771    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15772echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15773    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15774echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15775    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15777    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15778echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15779    ( cat <<\_ASBOX
15780## ---------------------------------------- ##
15781## Report this to protobuf@googlegroups.com ##
15782## ---------------------------------------- ##
15783_ASBOX
15784     ) | sed "s/^/$as_me: WARNING:     /" >&2
15785    ;;
15786esac
15787{ echo "$as_me:$LINENO: checking for $ac_header" >&5
15788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15790  echo $ECHO_N "(cached) $ECHO_C" >&6
15791else
15792  eval "$as_ac_Header=\$ac_header_preproc"
15793fi
15794ac_res=`eval echo '${'$as_ac_Header'}'`
15795	       { echo "$as_me:$LINENO: result: $ac_res" >&5
15796echo "${ECHO_T}$ac_res" >&6; }
15797
15798fi
15799if test `eval echo '${'$as_ac_Header'}'` = yes; then
15800  cat >>confdefs.h <<_ACEOF
15801#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15802_ACEOF
15803
15804fi
15805
15806done
15807
15808
15809# Checks for library functions.
15810{ echo "$as_me:$LINENO: checking for working memcmp" >&5
15811echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
15812if test "${ac_cv_func_memcmp_working+set}" = set; then
15813  echo $ECHO_N "(cached) $ECHO_C" >&6
15814else
15815  if test "$cross_compiling" = yes; then
15816  ac_cv_func_memcmp_working=no
15817else
15818  cat >conftest.$ac_ext <<_ACEOF
15819/* confdefs.h.  */
15820_ACEOF
15821cat confdefs.h >>conftest.$ac_ext
15822cat >>conftest.$ac_ext <<_ACEOF
15823/* end confdefs.h.  */
15824$ac_includes_default
15825int
15826main ()
15827{
15828
15829  /* Some versions of memcmp are not 8-bit clean.  */
15830  char c0 = '\100', c1 = '\200', c2 = '\201';
15831  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
15832    return 1;
15833
15834  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
15835     or more and with at least one buffer not starting on a 4-byte boundary.
15836     William Lewis provided this test program.   */
15837  {
15838    char foo[21];
15839    char bar[21];
15840    int i;
15841    for (i = 0; i < 4; i++)
15842      {
15843	char *a = foo + i;
15844	char *b = bar + i;
15845	strcpy (a, "--------01111111");
15846	strcpy (b, "--------10000000");
15847	if (memcmp (a, b, 16) >= 0)
15848	  return 1;
15849      }
15850    return 0;
15851  }
15852
15853  ;
15854  return 0;
15855}
15856_ACEOF
15857rm -f conftest$ac_exeext
15858if { (ac_try="$ac_link"
15859case "(($ac_try" in
15860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861  *) ac_try_echo=$ac_try;;
15862esac
15863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864  (eval "$ac_link") 2>&5
15865  ac_status=$?
15866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15868  { (case "(($ac_try" in
15869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870  *) ac_try_echo=$ac_try;;
15871esac
15872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873  (eval "$ac_try") 2>&5
15874  ac_status=$?
15875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876  (exit $ac_status); }; }; then
15877  ac_cv_func_memcmp_working=yes
15878else
15879  echo "$as_me: program exited with status $ac_status" >&5
15880echo "$as_me: failed program was:" >&5
15881sed 's/^/| /' conftest.$ac_ext >&5
15882
15883( exit $ac_status )
15884ac_cv_func_memcmp_working=no
15885fi
15886rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15887fi
15888
15889
15890fi
15891{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
15892echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
15893test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
15894  *" memcmp.$ac_objext "* ) ;;
15895  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
15896 ;;
15897esac
15898
15899
15900{ echo "$as_me:$LINENO: checking for working strtod" >&5
15901echo $ECHO_N "checking for working strtod... $ECHO_C" >&6; }
15902if test "${ac_cv_func_strtod+set}" = set; then
15903  echo $ECHO_N "(cached) $ECHO_C" >&6
15904else
15905  if test "$cross_compiling" = yes; then
15906  ac_cv_func_strtod=no
15907else
15908  cat >conftest.$ac_ext <<_ACEOF
15909/* confdefs.h.  */
15910_ACEOF
15911cat confdefs.h >>conftest.$ac_ext
15912cat >>conftest.$ac_ext <<_ACEOF
15913/* end confdefs.h.  */
15914
15915$ac_includes_default
15916#ifndef strtod
15917double strtod ();
15918#endif
15919int
15920main()
15921{
15922  {
15923    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
15924    char *string = " +69";
15925    char *term;
15926    double value;
15927    value = strtod (string, &term);
15928    if (value != 69 || term != (string + 4))
15929      return 1;
15930  }
15931
15932  {
15933    /* Under Solaris 2.4, strtod returns the wrong value for the
15934       terminating character under some conditions.  */
15935    char *string = "NaN";
15936    char *term;
15937    strtod (string, &term);
15938    if (term != string && *(term - 1) == 0)
15939      return 1;
15940  }
15941  return 0;
15942}
15943
15944_ACEOF
15945rm -f conftest$ac_exeext
15946if { (ac_try="$ac_link"
15947case "(($ac_try" in
15948  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949  *) ac_try_echo=$ac_try;;
15950esac
15951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15952  (eval "$ac_link") 2>&5
15953  ac_status=$?
15954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15956  { (case "(($ac_try" in
15957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958  *) ac_try_echo=$ac_try;;
15959esac
15960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15961  (eval "$ac_try") 2>&5
15962  ac_status=$?
15963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964  (exit $ac_status); }; }; then
15965  ac_cv_func_strtod=yes
15966else
15967  echo "$as_me: program exited with status $ac_status" >&5
15968echo "$as_me: failed program was:" >&5
15969sed 's/^/| /' conftest.$ac_ext >&5
15970
15971( exit $ac_status )
15972ac_cv_func_strtod=no
15973fi
15974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15975fi
15976
15977
15978fi
15979{ echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
15980echo "${ECHO_T}$ac_cv_func_strtod" >&6; }
15981if test $ac_cv_func_strtod = no; then
15982  case " $LIBOBJS " in
15983  *" strtod.$ac_objext "* ) ;;
15984  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
15985 ;;
15986esac
15987
15988{ echo "$as_me:$LINENO: checking for pow" >&5
15989echo $ECHO_N "checking for pow... $ECHO_C" >&6; }
15990if test "${ac_cv_func_pow+set}" = set; then
15991  echo $ECHO_N "(cached) $ECHO_C" >&6
15992else
15993  cat >conftest.$ac_ext <<_ACEOF
15994/* confdefs.h.  */
15995_ACEOF
15996cat confdefs.h >>conftest.$ac_ext
15997cat >>conftest.$ac_ext <<_ACEOF
15998/* end confdefs.h.  */
15999/* Define pow to an innocuous variant, in case <limits.h> declares pow.
16000   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16001#define pow innocuous_pow
16002
16003/* System header to define __stub macros and hopefully few prototypes,
16004    which can conflict with char pow (); below.
16005    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16006    <limits.h> exists even on freestanding compilers.  */
16007
16008#ifdef __STDC__
16009# include <limits.h>
16010#else
16011# include <assert.h>
16012#endif
16013
16014#undef pow
16015
16016/* Override any GCC internal prototype to avoid an error.
16017   Use char because int might match the return type of a GCC
16018   builtin and then its argument prototype would still apply.  */
16019#ifdef __cplusplus
16020extern "C"
16021#endif
16022char pow ();
16023/* The GNU C library defines this for functions which it implements
16024    to always fail with ENOSYS.  Some functions are actually named
16025    something starting with __ and the normal name is an alias.  */
16026#if defined __stub_pow || defined __stub___pow
16027choke me
16028#endif
16029
16030int
16031main ()
16032{
16033return pow ();
16034  ;
16035  return 0;
16036}
16037_ACEOF
16038rm -f conftest.$ac_objext conftest$ac_exeext
16039if { (ac_try="$ac_link"
16040case "(($ac_try" in
16041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042  *) ac_try_echo=$ac_try;;
16043esac
16044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16045  (eval "$ac_link") 2>conftest.er1
16046  ac_status=$?
16047  grep -v '^ *+' conftest.er1 >conftest.err
16048  rm -f conftest.er1
16049  cat conftest.err >&5
16050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051  (exit $ac_status); } && {
16052	 test -z "$ac_cxx_werror_flag" ||
16053	 test ! -s conftest.err
16054       } && test -s conftest$ac_exeext &&
16055       $as_test_x conftest$ac_exeext; then
16056  ac_cv_func_pow=yes
16057else
16058  echo "$as_me: failed program was:" >&5
16059sed 's/^/| /' conftest.$ac_ext >&5
16060
16061	ac_cv_func_pow=no
16062fi
16063
16064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065      conftest$ac_exeext conftest.$ac_ext
16066fi
16067{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
16068echo "${ECHO_T}$ac_cv_func_pow" >&6; }
16069
16070if test $ac_cv_func_pow = no; then
16071  { echo "$as_me:$LINENO: checking for pow in -lm" >&5
16072echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6; }
16073if test "${ac_cv_lib_m_pow+set}" = set; then
16074  echo $ECHO_N "(cached) $ECHO_C" >&6
16075else
16076  ac_check_lib_save_LIBS=$LIBS
16077LIBS="-lm  $LIBS"
16078cat >conftest.$ac_ext <<_ACEOF
16079/* confdefs.h.  */
16080_ACEOF
16081cat confdefs.h >>conftest.$ac_ext
16082cat >>conftest.$ac_ext <<_ACEOF
16083/* end confdefs.h.  */
16084
16085/* Override any GCC internal prototype to avoid an error.
16086   Use char because int might match the return type of a GCC
16087   builtin and then its argument prototype would still apply.  */
16088#ifdef __cplusplus
16089extern "C"
16090#endif
16091char pow ();
16092int
16093main ()
16094{
16095return pow ();
16096  ;
16097  return 0;
16098}
16099_ACEOF
16100rm -f conftest.$ac_objext conftest$ac_exeext
16101if { (ac_try="$ac_link"
16102case "(($ac_try" in
16103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16104  *) ac_try_echo=$ac_try;;
16105esac
16106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16107  (eval "$ac_link") 2>conftest.er1
16108  ac_status=$?
16109  grep -v '^ *+' conftest.er1 >conftest.err
16110  rm -f conftest.er1
16111  cat conftest.err >&5
16112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113  (exit $ac_status); } && {
16114	 test -z "$ac_cxx_werror_flag" ||
16115	 test ! -s conftest.err
16116       } && test -s conftest$ac_exeext &&
16117       $as_test_x conftest$ac_exeext; then
16118  ac_cv_lib_m_pow=yes
16119else
16120  echo "$as_me: failed program was:" >&5
16121sed 's/^/| /' conftest.$ac_ext >&5
16122
16123	ac_cv_lib_m_pow=no
16124fi
16125
16126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16127      conftest$ac_exeext conftest.$ac_ext
16128LIBS=$ac_check_lib_save_LIBS
16129fi
16130{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
16131echo "${ECHO_T}$ac_cv_lib_m_pow" >&6; }
16132if test $ac_cv_lib_m_pow = yes; then
16133  POW_LIB=-lm
16134else
16135  { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
16136echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16137fi
16138
16139fi
16140
16141fi
16142
16143
16144
16145
16146
16147
16148
16149for ac_func in ftruncate memset mkdir strchr strerror strtol
16150do
16151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16152{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16155  echo $ECHO_N "(cached) $ECHO_C" >&6
16156else
16157  cat >conftest.$ac_ext <<_ACEOF
16158/* confdefs.h.  */
16159_ACEOF
16160cat confdefs.h >>conftest.$ac_ext
16161cat >>conftest.$ac_ext <<_ACEOF
16162/* end confdefs.h.  */
16163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16164   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16165#define $ac_func innocuous_$ac_func
16166
16167/* System header to define __stub macros and hopefully few prototypes,
16168    which can conflict with char $ac_func (); below.
16169    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170    <limits.h> exists even on freestanding compilers.  */
16171
16172#ifdef __STDC__
16173# include <limits.h>
16174#else
16175# include <assert.h>
16176#endif
16177
16178#undef $ac_func
16179
16180/* Override any GCC internal prototype to avoid an error.
16181   Use char because int might match the return type of a GCC
16182   builtin and then its argument prototype would still apply.  */
16183#ifdef __cplusplus
16184extern "C"
16185#endif
16186char $ac_func ();
16187/* The GNU C library defines this for functions which it implements
16188    to always fail with ENOSYS.  Some functions are actually named
16189    something starting with __ and the normal name is an alias.  */
16190#if defined __stub_$ac_func || defined __stub___$ac_func
16191choke me
16192#endif
16193
16194int
16195main ()
16196{
16197return $ac_func ();
16198  ;
16199  return 0;
16200}
16201_ACEOF
16202rm -f conftest.$ac_objext conftest$ac_exeext
16203if { (ac_try="$ac_link"
16204case "(($ac_try" in
16205  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206  *) ac_try_echo=$ac_try;;
16207esac
16208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209  (eval "$ac_link") 2>conftest.er1
16210  ac_status=$?
16211  grep -v '^ *+' conftest.er1 >conftest.err
16212  rm -f conftest.er1
16213  cat conftest.err >&5
16214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215  (exit $ac_status); } && {
16216	 test -z "$ac_cxx_werror_flag" ||
16217	 test ! -s conftest.err
16218       } && test -s conftest$ac_exeext &&
16219       $as_test_x conftest$ac_exeext; then
16220  eval "$as_ac_var=yes"
16221else
16222  echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
16224
16225	eval "$as_ac_var=no"
16226fi
16227
16228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16229      conftest$ac_exeext conftest.$ac_ext
16230fi
16231ac_res=`eval echo '${'$as_ac_var'}'`
16232	       { echo "$as_me:$LINENO: result: $ac_res" >&5
16233echo "${ECHO_T}$ac_res" >&6; }
16234if test `eval echo '${'$as_ac_var'}'` = yes; then
16235  cat >>confdefs.h <<_ACEOF
16236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16237_ACEOF
16238
16239fi
16240done
16241
16242
16243# Check for zlib.
16244HAVE_ZLIB=0
16245if test "$with_zlib" != no; then
16246
16247  { echo "$as_me:$LINENO: checking zlib version" >&5
16248echo $ECHO_N "checking zlib version... $ECHO_C" >&6; }
16249
16250  # First check the zlib header version.
16251  cat >conftest.$ac_ext <<_ACEOF
16252/* confdefs.h.  */
16253_ACEOF
16254cat confdefs.h >>conftest.$ac_ext
16255cat >>conftest.$ac_ext <<_ACEOF
16256/* end confdefs.h.  */
16257
16258        #include <zlib.h>
16259        #if !defined(ZLIB_VERNUM) || (ZLIB_VERNUM < 0x1204)
16260        # error zlib version too old
16261        #endif
16262
16263int
16264main ()
16265{
16266
16267  ;
16268  return 0;
16269}
16270_ACEOF
16271rm -f conftest.$ac_objext
16272if { (ac_try="$ac_compile"
16273case "(($ac_try" in
16274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16275  *) ac_try_echo=$ac_try;;
16276esac
16277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16278  (eval "$ac_compile") 2>conftest.er1
16279  ac_status=$?
16280  grep -v '^ *+' conftest.er1 >conftest.err
16281  rm -f conftest.er1
16282  cat conftest.err >&5
16283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284  (exit $ac_status); } && {
16285	 test -z "$ac_cxx_werror_flag" ||
16286	 test ! -s conftest.err
16287       } && test -s conftest.$ac_objext; then
16288
16289    { echo "$as_me:$LINENO: result: ok (1.2.0.4 or later)" >&5
16290echo "${ECHO_T}ok (1.2.0.4 or later)" >&6; }
16291
16292    # Also need to add -lz to the linker flags and make sure this succeeds.
16293    { echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
16294echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6; }
16295if test "${ac_cv_search_zlibVersion+set}" = set; then
16296  echo $ECHO_N "(cached) $ECHO_C" >&6
16297else
16298  ac_func_search_save_LIBS=$LIBS
16299cat >conftest.$ac_ext <<_ACEOF
16300/* confdefs.h.  */
16301_ACEOF
16302cat confdefs.h >>conftest.$ac_ext
16303cat >>conftest.$ac_ext <<_ACEOF
16304/* end confdefs.h.  */
16305
16306/* Override any GCC internal prototype to avoid an error.
16307   Use char because int might match the return type of a GCC
16308   builtin and then its argument prototype would still apply.  */
16309#ifdef __cplusplus
16310extern "C"
16311#endif
16312char zlibVersion ();
16313int
16314main ()
16315{
16316return zlibVersion ();
16317  ;
16318  return 0;
16319}
16320_ACEOF
16321for ac_lib in '' z; do
16322  if test -z "$ac_lib"; then
16323    ac_res="none required"
16324  else
16325    ac_res=-l$ac_lib
16326    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16327  fi
16328  rm -f conftest.$ac_objext conftest$ac_exeext
16329if { (ac_try="$ac_link"
16330case "(($ac_try" in
16331  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332  *) ac_try_echo=$ac_try;;
16333esac
16334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335  (eval "$ac_link") 2>conftest.er1
16336  ac_status=$?
16337  grep -v '^ *+' conftest.er1 >conftest.err
16338  rm -f conftest.er1
16339  cat conftest.err >&5
16340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341  (exit $ac_status); } && {
16342	 test -z "$ac_cxx_werror_flag" ||
16343	 test ! -s conftest.err
16344       } && test -s conftest$ac_exeext &&
16345       $as_test_x conftest$ac_exeext; then
16346  ac_cv_search_zlibVersion=$ac_res
16347else
16348  echo "$as_me: failed program was:" >&5
16349sed 's/^/| /' conftest.$ac_ext >&5
16350
16351
16352fi
16353
16354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16355      conftest$ac_exeext
16356  if test "${ac_cv_search_zlibVersion+set}" = set; then
16357  break
16358fi
16359done
16360if test "${ac_cv_search_zlibVersion+set}" = set; then
16361  :
16362else
16363  ac_cv_search_zlibVersion=no
16364fi
16365rm conftest.$ac_ext
16366LIBS=$ac_func_search_save_LIBS
16367fi
16368{ echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
16369echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6; }
16370ac_res=$ac_cv_search_zlibVersion
16371if test "$ac_res" != no; then
16372  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16373
16374
16375cat >>confdefs.h <<\_ACEOF
16376#define HAVE_ZLIB 1
16377_ACEOF
16378
16379      HAVE_ZLIB=1
16380
16381else
16382
16383      if test "$with_zlib" != check; then
16384
16385        { { echo "$as_me:$LINENO: error: --with-zlib was given, but no working zlib library was found
16386See \`config.log' for more details." >&5
16387echo "$as_me: error: --with-zlib was given, but no working zlib library was found
16388See \`config.log' for more details." >&2;}
16389   { (exit 1); exit 1; }; }
16390
16391fi
16392
16393
16394fi
16395
16396
16397else
16398  echo "$as_me: failed program was:" >&5
16399sed 's/^/| /' conftest.$ac_ext >&5
16400
16401
16402    if test "$with_zlib" = check; then
16403
16404      { echo "$as_me:$LINENO: result: headers missing or too old (requires 1.2.0.4)" >&5
16405echo "${ECHO_T}headers missing or too old (requires 1.2.0.4)" >&6; }
16406
16407else
16408
16409      { { echo "$as_me:$LINENO: error: --with-zlib was given, but zlib headers were not present or were too old (requires 1.2.0.4)
16410See \`config.log' for more details." >&5
16411echo "$as_me: error: --with-zlib was given, but zlib headers were not present or were too old (requires 1.2.0.4)
16412See \`config.log' for more details." >&2;}
16413   { (exit 1); exit 1; }; }
16414
16415fi
16416
16417
16418fi
16419
16420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421
16422fi
16423
16424 if test $HAVE_ZLIB = 1; then
16425  HAVE_ZLIB_TRUE=
16426  HAVE_ZLIB_FALSE='#'
16427else
16428  HAVE_ZLIB_TRUE='#'
16429  HAVE_ZLIB_FALSE=
16430fi
16431
16432
16433if test "$with_protoc" != "no"; then
16434
16435  PROTOC=$with_protoc
16436  if test "$with_protoc" == "yes"; then
16437
16438    # No argument given.  Use system protoc.
16439    PROTOC=protoc
16440
16441fi
16442
16443  if echo "$PROTOC" | grep -q '^[^/].*/'; then
16444
16445    # Does not start with a slash, but contains a slash.  So, it's a relative
16446    # path (as opposed to an absolute path or an executable in $PATH).
16447    # Since it will actually be executed from the src directory, prefix with
16448    # the current directory.  We also insert $ac_top_build_prefix in case this
16449    # is a nested package and --with-protoc was actually given on the outer
16450    # package's configure script.
16451    PROTOC=`pwd`/${ac_top_build_prefix}$PROTOC
16452
16453fi
16454
16455
16456
16457fi
16458
16459 if test "$with_protoc" != "no"; then
16460  USE_EXTERNAL_PROTOC_TRUE=
16461  USE_EXTERNAL_PROTOC_FALSE='#'
16462else
16463  USE_EXTERNAL_PROTOC_TRUE='#'
16464  USE_EXTERNAL_PROTOC_FALSE=
16465fi
16466
16467
16468
16469
16470
16471ac_ext=c
16472ac_cpp='$CPP $CPPFLAGS'
16473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16475ac_compiler_gnu=$ac_cv_c_compiler_gnu
16476
16477acx_pthread_ok=no
16478
16479# We used to check for pthread.h first, but this fails if pthread.h
16480# requires special compiler flags (e.g. on True64 or Sequent).
16481# It gets checked for in the link test anyway.
16482
16483# First of all, check if the user has set any of the PTHREAD_LIBS,
16484# etcetera environment variables, and if threads linking works using
16485# them:
16486if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16487        save_CFLAGS="$CFLAGS"
16488        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16489        save_LIBS="$LIBS"
16490        LIBS="$PTHREAD_LIBS $LIBS"
16491        { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16492echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
16493        cat >conftest.$ac_ext <<_ACEOF
16494/* confdefs.h.  */
16495_ACEOF
16496cat confdefs.h >>conftest.$ac_ext
16497cat >>conftest.$ac_ext <<_ACEOF
16498/* end confdefs.h.  */
16499
16500/* Override any GCC internal prototype to avoid an error.
16501   Use char because int might match the return type of a GCC
16502   builtin and then its argument prototype would still apply.  */
16503#ifdef __cplusplus
16504extern "C"
16505#endif
16506char pthread_join ();
16507int
16508main ()
16509{
16510return pthread_join ();
16511  ;
16512  return 0;
16513}
16514_ACEOF
16515rm -f conftest.$ac_objext conftest$ac_exeext
16516if { (ac_try="$ac_link"
16517case "(($ac_try" in
16518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519  *) ac_try_echo=$ac_try;;
16520esac
16521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522  (eval "$ac_link") 2>conftest.er1
16523  ac_status=$?
16524  grep -v '^ *+' conftest.er1 >conftest.err
16525  rm -f conftest.er1
16526  cat conftest.err >&5
16527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528  (exit $ac_status); } && {
16529	 test -z "$ac_c_werror_flag" ||
16530	 test ! -s conftest.err
16531       } && test -s conftest$ac_exeext &&
16532       $as_test_x conftest$ac_exeext; then
16533  acx_pthread_ok=yes
16534else
16535  echo "$as_me: failed program was:" >&5
16536sed 's/^/| /' conftest.$ac_ext >&5
16537
16538
16539fi
16540
16541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16542      conftest$ac_exeext conftest.$ac_ext
16543        { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16544echo "${ECHO_T}$acx_pthread_ok" >&6; }
16545        if test x"$acx_pthread_ok" = xno; then
16546                PTHREAD_LIBS=""
16547                PTHREAD_CFLAGS=""
16548        fi
16549        LIBS="$save_LIBS"
16550        CFLAGS="$save_CFLAGS"
16551fi
16552
16553# We must check for the threads library under a number of different
16554# names; the ordering is very important because some systems
16555# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16556# libraries is broken (non-POSIX).
16557
16558# Create a list of thread flags to try.  Items starting with a "-" are
16559# C compiler flags, and other items are library names, except for "none"
16560# which indicates that we try without any flags at all, and "pthread-config"
16561# which is a program returning the flags for the Pth emulation library.
16562
16563acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16564
16565# The ordering *is* (sometimes) important.  Some notes on the
16566# individual items follow:
16567
16568# pthreads: AIX (must check this before -lpthread)
16569# none: in case threads are in libc; should be tried before -Kthread and
16570#       other compiler flags to prevent continual compiler warnings
16571# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16572# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16573# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16574# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16575# -pthreads: Solaris/gcc
16576# -mthreads: Mingw32/gcc, Lynx/gcc
16577# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16578#      doesn't hurt to check since this sometimes defines pthreads too;
16579#      also defines -D_REENTRANT)
16580#      ... -mt is also the pthreads flag for HP/aCC
16581# pthread: Linux, etcetera
16582# --thread-safe: KAI C++
16583# pthread-config: use pthread-config program (for GNU Pth library)
16584
16585case "${host_cpu}-${host_os}" in
16586        *solaris*)
16587
16588        # On Solaris (at least, for some versions), libc contains stubbed
16589        # (non-functional) versions of the pthreads routines, so link-based
16590        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16591        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16592        # a function called by this macro, so we could check for that, but
16593        # who knows whether they'll stub that too in a future libc.)  So,
16594        # we'll just look for -pthreads and -lpthread first:
16595
16596        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16597        ;;
16598esac
16599
16600if test x"$acx_pthread_ok" = xno; then
16601for flag in $acx_pthread_flags; do
16602
16603        case $flag in
16604                none)
16605                { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16606echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
16607                ;;
16608
16609                -*)
16610                { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16611echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
16612                PTHREAD_CFLAGS="$flag"
16613                ;;
16614
16615		pthread-config)
16616		# Extract the first word of "pthread-config", so it can be a program name with args.
16617set dummy pthread-config; ac_word=$2
16618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16620if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16621  echo $ECHO_N "(cached) $ECHO_C" >&6
16622else
16623  if test -n "$acx_pthread_config"; then
16624  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16625else
16626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16627for as_dir in $PATH
16628do
16629  IFS=$as_save_IFS
16630  test -z "$as_dir" && as_dir=.
16631  for ac_exec_ext in '' $ac_executable_extensions; do
16632  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16633    ac_cv_prog_acx_pthread_config="yes"
16634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16635    break 2
16636  fi
16637done
16638done
16639IFS=$as_save_IFS
16640
16641  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16642fi
16643fi
16644acx_pthread_config=$ac_cv_prog_acx_pthread_config
16645if test -n "$acx_pthread_config"; then
16646  { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16647echo "${ECHO_T}$acx_pthread_config" >&6; }
16648else
16649  { echo "$as_me:$LINENO: result: no" >&5
16650echo "${ECHO_T}no" >&6; }
16651fi
16652
16653
16654		if test x"$acx_pthread_config" = xno; then continue; fi
16655		PTHREAD_CFLAGS="`pthread-config --cflags`"
16656		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16657		;;
16658
16659                *)
16660                { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16661echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
16662                PTHREAD_LIBS="-l$flag"
16663                ;;
16664        esac
16665
16666        save_LIBS="$LIBS"
16667        save_CFLAGS="$CFLAGS"
16668        LIBS="$PTHREAD_LIBS $LIBS"
16669        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16670
16671        # Check for various functions.  We must include pthread.h,
16672        # since some functions may be macros.  (On the Sequent, we
16673        # need a special flag -Kthread to make this header compile.)
16674        # We check for pthread_join because it is in -lpthread on IRIX
16675        # while pthread_create is in libc.  We check for pthread_attr_init
16676        # due to DEC craziness with -lpthreads.  We check for
16677        # pthread_cleanup_push because it is one of the few pthread
16678        # functions on Solaris that doesn't have a non-functional libc stub.
16679        # We try pthread_create on general principles.
16680        cat >conftest.$ac_ext <<_ACEOF
16681/* confdefs.h.  */
16682_ACEOF
16683cat confdefs.h >>conftest.$ac_ext
16684cat >>conftest.$ac_ext <<_ACEOF
16685/* end confdefs.h.  */
16686#include <pthread.h>
16687int
16688main ()
16689{
16690pthread_t th; pthread_join(th, 0);
16691                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
16692                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16693  ;
16694  return 0;
16695}
16696_ACEOF
16697rm -f conftest.$ac_objext conftest$ac_exeext
16698if { (ac_try="$ac_link"
16699case "(($ac_try" in
16700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701  *) ac_try_echo=$ac_try;;
16702esac
16703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704  (eval "$ac_link") 2>conftest.er1
16705  ac_status=$?
16706  grep -v '^ *+' conftest.er1 >conftest.err
16707  rm -f conftest.er1
16708  cat conftest.err >&5
16709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710  (exit $ac_status); } && {
16711	 test -z "$ac_c_werror_flag" ||
16712	 test ! -s conftest.err
16713       } && test -s conftest$ac_exeext &&
16714       $as_test_x conftest$ac_exeext; then
16715  acx_pthread_ok=yes
16716else
16717  echo "$as_me: failed program was:" >&5
16718sed 's/^/| /' conftest.$ac_ext >&5
16719
16720
16721fi
16722
16723rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16724      conftest$ac_exeext conftest.$ac_ext
16725
16726        LIBS="$save_LIBS"
16727        CFLAGS="$save_CFLAGS"
16728
16729        { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16730echo "${ECHO_T}$acx_pthread_ok" >&6; }
16731        if test "x$acx_pthread_ok" = xyes; then
16732                break;
16733        fi
16734
16735        PTHREAD_LIBS=""
16736        PTHREAD_CFLAGS=""
16737done
16738fi
16739
16740# Various other checks:
16741if test "x$acx_pthread_ok" = xyes; then
16742        save_LIBS="$LIBS"
16743        LIBS="$PTHREAD_LIBS $LIBS"
16744        save_CFLAGS="$CFLAGS"
16745        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16746
16747        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16748	{ echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16749echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
16750	attr_name=unknown
16751	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16752	    cat >conftest.$ac_ext <<_ACEOF
16753/* confdefs.h.  */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h.  */
16758#include <pthread.h>
16759int
16760main ()
16761{
16762int attr=$attr; return attr;
16763  ;
16764  return 0;
16765}
16766_ACEOF
16767rm -f conftest.$ac_objext conftest$ac_exeext
16768if { (ac_try="$ac_link"
16769case "(($ac_try" in
16770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16771  *) ac_try_echo=$ac_try;;
16772esac
16773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16774  (eval "$ac_link") 2>conftest.er1
16775  ac_status=$?
16776  grep -v '^ *+' conftest.er1 >conftest.err
16777  rm -f conftest.er1
16778  cat conftest.err >&5
16779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780  (exit $ac_status); } && {
16781	 test -z "$ac_c_werror_flag" ||
16782	 test ! -s conftest.err
16783       } && test -s conftest$ac_exeext &&
16784       $as_test_x conftest$ac_exeext; then
16785  attr_name=$attr; break
16786else
16787  echo "$as_me: failed program was:" >&5
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
16790
16791fi
16792
16793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16794      conftest$ac_exeext conftest.$ac_ext
16795	done
16796        { echo "$as_me:$LINENO: result: $attr_name" >&5
16797echo "${ECHO_T}$attr_name" >&6; }
16798        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16799
16800cat >>confdefs.h <<_ACEOF
16801#define PTHREAD_CREATE_JOINABLE $attr_name
16802_ACEOF
16803
16804        fi
16805
16806        { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16807echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
16808        flag=no
16809        case "${host_cpu}-${host_os}" in
16810            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16811            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16812        esac
16813        { echo "$as_me:$LINENO: result: ${flag}" >&5
16814echo "${ECHO_T}${flag}" >&6; }
16815        if test "x$flag" != xno; then
16816            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16817        fi
16818
16819        LIBS="$save_LIBS"
16820        CFLAGS="$save_CFLAGS"
16821        # More AIX lossage: must compile with xlc_r or cc_r
16822	if test x"$GCC" != xyes; then
16823          for ac_prog in xlc_r cc_r
16824do
16825  # Extract the first word of "$ac_prog", so it can be a program name with args.
16826set dummy $ac_prog; ac_word=$2
16827{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16829if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16830  echo $ECHO_N "(cached) $ECHO_C" >&6
16831else
16832  if test -n "$PTHREAD_CC"; then
16833  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16834else
16835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16836for as_dir in $PATH
16837do
16838  IFS=$as_save_IFS
16839  test -z "$as_dir" && as_dir=.
16840  for ac_exec_ext in '' $ac_executable_extensions; do
16841  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16842    ac_cv_prog_PTHREAD_CC="$ac_prog"
16843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16844    break 2
16845  fi
16846done
16847done
16848IFS=$as_save_IFS
16849
16850fi
16851fi
16852PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16853if test -n "$PTHREAD_CC"; then
16854  { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16855echo "${ECHO_T}$PTHREAD_CC" >&6; }
16856else
16857  { echo "$as_me:$LINENO: result: no" >&5
16858echo "${ECHO_T}no" >&6; }
16859fi
16860
16861
16862  test -n "$PTHREAD_CC" && break
16863done
16864test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16865
16866        else
16867          PTHREAD_CC=$CC
16868	fi
16869
16870	# The next part tries to detect GCC inconsistency with -shared on some
16871	# architectures and systems. The problem is that in certain
16872	# configurations, when -shared is specified, GCC "forgets" to
16873	# internally use various flags which are still necessary.
16874
16875	#
16876	# Prepare the flags
16877	#
16878	save_CFLAGS="$CFLAGS"
16879	save_LIBS="$LIBS"
16880	save_CC="$CC"
16881
16882	# Try with the flags determined by the earlier checks.
16883	#
16884	# -Wl,-z,defs forces link-time symbol resolution, so that the
16885	# linking checks with -shared actually have any value
16886	#
16887	# FIXME: -fPIC is required for -shared on many architectures,
16888	# so we specify it here, but the right way would probably be to
16889	# properly detect whether it is actually required.
16890	CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
16891	LIBS="$PTHREAD_LIBS $LIBS"
16892	CC="$PTHREAD_CC"
16893
16894	# In order not to create several levels of indentation, we test
16895	# the value of "$done" until we find the cure or run out of ideas.
16896	done="no"
16897
16898	# First, make sure the CFLAGS we added are actually accepted by our
16899	# compiler.  If not (and OS X's ld, for instance, does not accept -z),
16900	# then we can't do this test.
16901	if test x"$done" = xno; then
16902	   { echo "$as_me:$LINENO: checking whether to check for GCC pthread/shared inconsistencies" >&5
16903echo $ECHO_N "checking whether to check for GCC pthread/shared inconsistencies... $ECHO_C" >&6; }
16904	   cat >conftest.$ac_ext <<_ACEOF
16905/* confdefs.h.  */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h.  */
16910
16911int
16912main ()
16913{
16914
16915  ;
16916  return 0;
16917}
16918_ACEOF
16919rm -f conftest.$ac_objext conftest$ac_exeext
16920if { (ac_try="$ac_link"
16921case "(($ac_try" in
16922  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16923  *) ac_try_echo=$ac_try;;
16924esac
16925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16926  (eval "$ac_link") 2>conftest.er1
16927  ac_status=$?
16928  grep -v '^ *+' conftest.er1 >conftest.err
16929  rm -f conftest.er1
16930  cat conftest.err >&5
16931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932  (exit $ac_status); } && {
16933	 test -z "$ac_c_werror_flag" ||
16934	 test ! -s conftest.err
16935       } && test -s conftest$ac_exeext &&
16936       $as_test_x conftest$ac_exeext; then
16937  :
16938else
16939  echo "$as_me: failed program was:" >&5
16940sed 's/^/| /' conftest.$ac_ext >&5
16941
16942	done=yes
16943fi
16944
16945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16946      conftest$ac_exeext conftest.$ac_ext
16947
16948	   if test "x$done" = xyes ; then
16949	      { echo "$as_me:$LINENO: result: no" >&5
16950echo "${ECHO_T}no" >&6; }
16951	   else
16952	      { echo "$as_me:$LINENO: result: yes" >&5
16953echo "${ECHO_T}yes" >&6; }
16954	   fi
16955	fi
16956
16957	if test x"$done" = xno; then
16958	   { echo "$as_me:$LINENO: checking whether -pthread is sufficient with -shared" >&5
16959echo $ECHO_N "checking whether -pthread is sufficient with -shared... $ECHO_C" >&6; }
16960	   cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h.  */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h.  */
16966#include <pthread.h>
16967int
16968main ()
16969{
16970pthread_t th; pthread_join(th, 0);
16971	      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16972	      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16973  ;
16974  return 0;
16975}
16976_ACEOF
16977rm -f conftest.$ac_objext conftest$ac_exeext
16978if { (ac_try="$ac_link"
16979case "(($ac_try" in
16980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981  *) ac_try_echo=$ac_try;;
16982esac
16983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984  (eval "$ac_link") 2>conftest.er1
16985  ac_status=$?
16986  grep -v '^ *+' conftest.er1 >conftest.err
16987  rm -f conftest.er1
16988  cat conftest.err >&5
16989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990  (exit $ac_status); } && {
16991	 test -z "$ac_c_werror_flag" ||
16992	 test ! -s conftest.err
16993       } && test -s conftest$ac_exeext &&
16994       $as_test_x conftest$ac_exeext; then
16995  done=yes
16996else
16997  echo "$as_me: failed program was:" >&5
16998sed 's/^/| /' conftest.$ac_ext >&5
16999
17000
17001fi
17002
17003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17004      conftest$ac_exeext conftest.$ac_ext
17005
17006	   if test "x$done" = xyes; then
17007	      { echo "$as_me:$LINENO: result: yes" >&5
17008echo "${ECHO_T}yes" >&6; }
17009	   else
17010	      { echo "$as_me:$LINENO: result: no" >&5
17011echo "${ECHO_T}no" >&6; }
17012	   fi
17013	fi
17014
17015	#
17016	# Linux gcc on some architectures such as mips/mipsel forgets
17017	# about -lpthread
17018	#
17019	if test x"$done" = xno; then
17020	   { echo "$as_me:$LINENO: checking whether -lpthread fixes that" >&5
17021echo $ECHO_N "checking whether -lpthread fixes that... $ECHO_C" >&6; }
17022	   LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
17023	   cat >conftest.$ac_ext <<_ACEOF
17024/* confdefs.h.  */
17025_ACEOF
17026cat confdefs.h >>conftest.$ac_ext
17027cat >>conftest.$ac_ext <<_ACEOF
17028/* end confdefs.h.  */
17029#include <pthread.h>
17030int
17031main ()
17032{
17033pthread_t th; pthread_join(th, 0);
17034	      pthread_attr_init(0); pthread_cleanup_push(0, 0);
17035	      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17036  ;
17037  return 0;
17038}
17039_ACEOF
17040rm -f conftest.$ac_objext conftest$ac_exeext
17041if { (ac_try="$ac_link"
17042case "(($ac_try" in
17043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17044  *) ac_try_echo=$ac_try;;
17045esac
17046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17047  (eval "$ac_link") 2>conftest.er1
17048  ac_status=$?
17049  grep -v '^ *+' conftest.er1 >conftest.err
17050  rm -f conftest.er1
17051  cat conftest.err >&5
17052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053  (exit $ac_status); } && {
17054	 test -z "$ac_c_werror_flag" ||
17055	 test ! -s conftest.err
17056       } && test -s conftest$ac_exeext &&
17057       $as_test_x conftest$ac_exeext; then
17058  done=yes
17059else
17060  echo "$as_me: failed program was:" >&5
17061sed 's/^/| /' conftest.$ac_ext >&5
17062
17063
17064fi
17065
17066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17067      conftest$ac_exeext conftest.$ac_ext
17068
17069	   if test "x$done" = xyes; then
17070	      { echo "$as_me:$LINENO: result: yes" >&5
17071echo "${ECHO_T}yes" >&6; }
17072	      PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
17073	   else
17074	      { echo "$as_me:$LINENO: result: no" >&5
17075echo "${ECHO_T}no" >&6; }
17076	   fi
17077	fi
17078	#
17079	# FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
17080	#
17081	if test x"$done" = xno; then
17082	   { echo "$as_me:$LINENO: checking whether -lc_r fixes that" >&5
17083echo $ECHO_N "checking whether -lc_r fixes that... $ECHO_C" >&6; }
17084	   LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
17085	   cat >conftest.$ac_ext <<_ACEOF
17086/* confdefs.h.  */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h.  */
17091#include <pthread.h>
17092int
17093main ()
17094{
17095pthread_t th; pthread_join(th, 0);
17096	        pthread_attr_init(0); pthread_cleanup_push(0, 0);
17097	        pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17098  ;
17099  return 0;
17100}
17101_ACEOF
17102rm -f conftest.$ac_objext conftest$ac_exeext
17103if { (ac_try="$ac_link"
17104case "(($ac_try" in
17105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106  *) ac_try_echo=$ac_try;;
17107esac
17108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109  (eval "$ac_link") 2>conftest.er1
17110  ac_status=$?
17111  grep -v '^ *+' conftest.er1 >conftest.err
17112  rm -f conftest.er1
17113  cat conftest.err >&5
17114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115  (exit $ac_status); } && {
17116	 test -z "$ac_c_werror_flag" ||
17117	 test ! -s conftest.err
17118       } && test -s conftest$ac_exeext &&
17119       $as_test_x conftest$ac_exeext; then
17120  done=yes
17121else
17122  echo "$as_me: failed program was:" >&5
17123sed 's/^/| /' conftest.$ac_ext >&5
17124
17125
17126fi
17127
17128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129      conftest$ac_exeext conftest.$ac_ext
17130
17131	   if test "x$done" = xyes; then
17132	      { echo "$as_me:$LINENO: result: yes" >&5
17133echo "${ECHO_T}yes" >&6; }
17134	      PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
17135	   else
17136	      { echo "$as_me:$LINENO: result: no" >&5
17137echo "${ECHO_T}no" >&6; }
17138	   fi
17139	fi
17140	if test x"$done" = xno; then
17141	   # OK, we have run out of ideas
17142	   { echo "$as_me:$LINENO: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
17143echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
17144
17145	   # so it's not safe to assume that we may use pthreads
17146	   acx_pthread_ok=no
17147	fi
17148
17149	CFLAGS="$save_CFLAGS"
17150	LIBS="$save_LIBS"
17151	CC="$save_CC"
17152else
17153        PTHREAD_CC="$CC"
17154fi
17155
17156
17157
17158
17159
17160# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17161if test x"$acx_pthread_ok" = xyes; then
17162
17163cat >>confdefs.h <<\_ACEOF
17164#define HAVE_PTHREAD 1
17165_ACEOF
17166
17167        :
17168else
17169        acx_pthread_ok=no
17170
17171fi
17172ac_ext=cpp
17173ac_cpp='$CXXCPP $CPPFLAGS'
17174ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17175ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17176ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17177
17178
17179{ echo "$as_me:$LINENO: checking the location of hash_map" >&5
17180echo $ECHO_N "checking the location of hash_map... $ECHO_C" >&6; }
17181
17182   ac_ext=cpp
17183ac_cpp='$CXXCPP $CPPFLAGS'
17184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17187
17188   ac_cv_cxx_hash_map_header=""
17189   ac_cv_cxx_hash_map_class=""
17190   for location in tr1/unordered_map ext/hash_map hash_map; do
17191     for namespace in std::tr1 __gnu_cxx "" std stdext; do
17192       for name in unordered_map hash_map; do
17193
17194         if test -z "$ac_cv_cxx_hash_map_header"; then
17195
17196           # On OSX 1.5 / GCC 4.0.1 (the standard compiler on that platform),
17197           # calling find() on a const unordered_map does not compile.  So, we
17198           # include a call to find() in our test to detect this broken
17199           # implementation and avoid using it.  Note that ext/hash_map works
17200           # fine on this platform, so we'll end up using that.
17201           cat >conftest.$ac_ext <<_ACEOF
17202/* confdefs.h.  */
17203_ACEOF
17204cat confdefs.h >>conftest.$ac_ext
17205cat >>conftest.$ac_ext <<_ACEOF
17206/* end confdefs.h.  */
17207#include <$location>
17208int
17209main ()
17210{
17211const ${namespace}::$name<int, int> t;
17212                           t.find(1);
17213  ;
17214  return 0;
17215}
17216_ACEOF
17217rm -f conftest.$ac_objext
17218if { (ac_try="$ac_compile"
17219case "(($ac_try" in
17220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221  *) ac_try_echo=$ac_try;;
17222esac
17223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17224  (eval "$ac_compile") 2>conftest.er1
17225  ac_status=$?
17226  grep -v '^ *+' conftest.er1 >conftest.err
17227  rm -f conftest.er1
17228  cat conftest.err >&5
17229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230  (exit $ac_status); } && {
17231	 test -z "$ac_cxx_werror_flag" ||
17232	 test ! -s conftest.err
17233       } && test -s conftest.$ac_objext; then
17234  ac_cv_cxx_hash_map_header="<$location>";
17235                           ac_cv_cxx_hash_namespace="$namespace";
17236                           ac_cv_cxx_hash_map_class="$name";
17237else
17238  echo "$as_me: failed program was:" >&5
17239sed 's/^/| /' conftest.$ac_ext >&5
17240
17241
17242fi
17243
17244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17245         fi
17246       done
17247     done
17248   done
17249   ac_cv_cxx_hash_set_header=`echo "$ac_cv_cxx_hash_map_header" | sed s/map/set/`;
17250   ac_cv_cxx_hash_set_class=`echo "$ac_cv_cxx_hash_map_class" | sed s/map/set/`;
17251   if test -n "$ac_cv_cxx_hash_map_header"; then
17252
17253cat >>confdefs.h <<\_ACEOF
17254#define HAVE_HASH_MAP 1
17255_ACEOF
17256
17257
17258cat >>confdefs.h <<\_ACEOF
17259#define HAVE_HASH_SET 1
17260_ACEOF
17261
17262
17263cat >>confdefs.h <<_ACEOF
17264#define HASH_MAP_H $ac_cv_cxx_hash_map_header
17265_ACEOF
17266
17267
17268cat >>confdefs.h <<_ACEOF
17269#define HASH_SET_H $ac_cv_cxx_hash_set_header
17270_ACEOF
17271
17272
17273cat >>confdefs.h <<_ACEOF
17274#define HASH_MAP_CLASS $ac_cv_cxx_hash_map_class
17275_ACEOF
17276
17277
17278cat >>confdefs.h <<_ACEOF
17279#define HASH_SET_CLASS $ac_cv_cxx_hash_set_class
17280_ACEOF
17281
17282
17283cat >>confdefs.h <<_ACEOF
17284#define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
17285_ACEOF
17286
17287      { echo "$as_me:$LINENO: result: $ac_cv_cxx_hash_map_header" >&5
17288echo "${ECHO_T}$ac_cv_cxx_hash_map_header" >&6; }
17289   else
17290      { echo "$as_me:$LINENO: result: " >&5
17291echo "${ECHO_T}" >&6; }
17292      { echo "$as_me:$LINENO: WARNING: could not find an STL hash_map" >&5
17293echo "$as_me: WARNING: could not find an STL hash_map" >&2;}
17294   fi
17295
17296
17297# HACK:  Make gtest's configure script pick up our copy of CFLAGS and CXXFLAGS,
17298#   since the flags added by ACX_CHECK_SUNCC must be used when compiling gtest
17299#   too.
17300export CFLAGS
17301export CXXFLAGS
17302subdirs="$subdirs gtest"
17303
17304
17305ac_config_files="$ac_config_files Makefile src/Makefile protobuf.pc protobuf-lite.pc"
17306
17307cat >confcache <<\_ACEOF
17308# This file is a shell script that caches the results of configure
17309# tests run on this system so they can be shared between configure
17310# scripts and configure runs, see configure's option --config-cache.
17311# It is not useful on other systems.  If it contains results you don't
17312# want to keep, you may remove or edit it.
17313#
17314# config.status only pays attention to the cache file if you give it
17315# the --recheck option to rerun configure.
17316#
17317# `ac_cv_env_foo' variables (set or unset) will be overridden when
17318# loading this file, other *unset* `ac_cv_foo' will be assigned the
17319# following values.
17320
17321_ACEOF
17322
17323# The following way of writing the cache mishandles newlines in values,
17324# but we know of no workaround that is simple, portable, and efficient.
17325# So, we kill variables containing newlines.
17326# Ultrix sh set writes to stderr and can't be redirected directly,
17327# and sets the high bit in the cache file unless we assign to the vars.
17328(
17329  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17330    eval ac_val=\$$ac_var
17331    case $ac_val in #(
17332    *${as_nl}*)
17333      case $ac_var in #(
17334      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17335echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17336      esac
17337      case $ac_var in #(
17338      _ | IFS | as_nl) ;; #(
17339      *) $as_unset $ac_var ;;
17340      esac ;;
17341    esac
17342  done
17343
17344  (set) 2>&1 |
17345    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17346    *${as_nl}ac_space=\ *)
17347      # `set' does not quote correctly, so add quotes (double-quote
17348      # substitution turns \\\\ into \\, and sed turns \\ into \).
17349      sed -n \
17350	"s/'/'\\\\''/g;
17351	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17352      ;; #(
17353    *)
17354      # `set' quotes correctly as required by POSIX, so do not add quotes.
17355      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17356      ;;
17357    esac |
17358    sort
17359) |
17360  sed '
17361     /^ac_cv_env_/b end
17362     t clear
17363     :clear
17364     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17365     t end
17366     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17367     :end' >>confcache
17368if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17369  if test -w "$cache_file"; then
17370    test "x$cache_file" != "x/dev/null" &&
17371      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17372echo "$as_me: updating cache $cache_file" >&6;}
17373    cat confcache >$cache_file
17374  else
17375    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17376echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17377  fi
17378fi
17379rm -f confcache
17380
17381test "x$prefix" = xNONE && prefix=$ac_default_prefix
17382# Let make expand exec_prefix.
17383test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17384
17385DEFS=-DHAVE_CONFIG_H
17386
17387ac_libobjs=
17388ac_ltlibobjs=
17389for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17390  # 1. Remove the extension, and $U if already installed.
17391  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17392  ac_i=`echo "$ac_i" | sed "$ac_script"`
17393  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17394  #    will be set to the directory where LIBOBJS objects are built.
17395  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17396  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17397done
17398LIBOBJS=$ac_libobjs
17399
17400LTLIBOBJS=$ac_ltlibobjs
17401
17402
17403if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17404  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17405Usually this means the macro was only invoked conditionally." >&5
17406echo "$as_me: error: conditional \"AMDEP\" was never defined.
17407Usually this means the macro was only invoked conditionally." >&2;}
17408   { (exit 1); exit 1; }; }
17409fi
17410if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17411  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17412Usually this means the macro was only invoked conditionally." >&5
17413echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17414Usually this means the macro was only invoked conditionally." >&2;}
17415   { (exit 1); exit 1; }; }
17416fi
17417if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17418  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17419Usually this means the macro was only invoked conditionally." >&5
17420echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17421Usually this means the macro was only invoked conditionally." >&2;}
17422   { (exit 1); exit 1; }; }
17423fi
17424if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
17425  { { echo "$as_me:$LINENO: error: conditional \"GCC\" was never defined.
17426Usually this means the macro was only invoked conditionally." >&5
17427echo "$as_me: error: conditional \"GCC\" was never defined.
17428Usually this means the macro was only invoked conditionally." >&2;}
17429   { (exit 1); exit 1; }; }
17430fi
17431if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17432  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17433Usually this means the macro was only invoked conditionally." >&5
17434echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17435Usually this means the macro was only invoked conditionally." >&2;}
17436   { (exit 1); exit 1; }; }
17437fi
17438if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
17439  { { echo "$as_me:$LINENO: error: conditional \"HAVE_ZLIB\" was never defined.
17440Usually this means the macro was only invoked conditionally." >&5
17441echo "$as_me: error: conditional \"HAVE_ZLIB\" was never defined.
17442Usually this means the macro was only invoked conditionally." >&2;}
17443   { (exit 1); exit 1; }; }
17444fi
17445if test -z "${USE_EXTERNAL_PROTOC_TRUE}" && test -z "${USE_EXTERNAL_PROTOC_FALSE}"; then
17446  { { echo "$as_me:$LINENO: error: conditional \"USE_EXTERNAL_PROTOC\" was never defined.
17447Usually this means the macro was only invoked conditionally." >&5
17448echo "$as_me: error: conditional \"USE_EXTERNAL_PROTOC\" was never defined.
17449Usually this means the macro was only invoked conditionally." >&2;}
17450   { (exit 1); exit 1; }; }
17451fi
17452
17453: ${CONFIG_STATUS=./config.status}
17454ac_clean_files_save=$ac_clean_files
17455ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17456{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17457echo "$as_me: creating $CONFIG_STATUS" >&6;}
17458cat >$CONFIG_STATUS <<_ACEOF
17459#! $SHELL
17460# Generated by $as_me.
17461# Run this file to recreate the current configuration.
17462# Compiler output produced by configure, useful for debugging
17463# configure, is in config.log if it exists.
17464
17465debug=false
17466ac_cs_recheck=false
17467ac_cs_silent=false
17468SHELL=\${CONFIG_SHELL-$SHELL}
17469_ACEOF
17470
17471cat >>$CONFIG_STATUS <<\_ACEOF
17472## --------------------- ##
17473## M4sh Initialization.  ##
17474## --------------------- ##
17475
17476# Be more Bourne compatible
17477DUALCASE=1; export DUALCASE # for MKS sh
17478if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17479  emulate sh
17480  NULLCMD=:
17481  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17482  # is contrary to our usage.  Disable this feature.
17483  alias -g '${1+"$@"}'='"$@"'
17484  setopt NO_GLOB_SUBST
17485else
17486  case `(set -o) 2>/dev/null` in
17487  *posix*) set -o posix ;;
17488esac
17489
17490fi
17491
17492
17493
17494
17495# PATH needs CR
17496# Avoid depending upon Character Ranges.
17497as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17498as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17499as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17500as_cr_digits='0123456789'
17501as_cr_alnum=$as_cr_Letters$as_cr_digits
17502
17503# The user is always right.
17504if test "${PATH_SEPARATOR+set}" != set; then
17505  echo "#! /bin/sh" >conf$$.sh
17506  echo  "exit 0"   >>conf$$.sh
17507  chmod +x conf$$.sh
17508  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17509    PATH_SEPARATOR=';'
17510  else
17511    PATH_SEPARATOR=:
17512  fi
17513  rm -f conf$$.sh
17514fi
17515
17516# Support unset when possible.
17517if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17518  as_unset=unset
17519else
17520  as_unset=false
17521fi
17522
17523
17524# IFS
17525# We need space, tab and new line, in precisely that order.  Quoting is
17526# there to prevent editors from complaining about space-tab.
17527# (If _AS_PATH_WALK were called with IFS unset, it would disable word
17528# splitting by setting IFS to empty value.)
17529as_nl='
17530'
17531IFS=" ""	$as_nl"
17532
17533# Find who we are.  Look in the path if we contain no directory separator.
17534case $0 in
17535  *[\\/]* ) as_myself=$0 ;;
17536  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17537for as_dir in $PATH
17538do
17539  IFS=$as_save_IFS
17540  test -z "$as_dir" && as_dir=.
17541  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17542done
17543IFS=$as_save_IFS
17544
17545     ;;
17546esac
17547# We did not find ourselves, most probably we were run as `sh COMMAND'
17548# in which case we are not to be found in the path.
17549if test "x$as_myself" = x; then
17550  as_myself=$0
17551fi
17552if test ! -f "$as_myself"; then
17553  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17554  { (exit 1); exit 1; }
17555fi
17556
17557# Work around bugs in pre-3.0 UWIN ksh.
17558for as_var in ENV MAIL MAILPATH
17559do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17560done
17561PS1='$ '
17562PS2='> '
17563PS4='+ '
17564
17565# NLS nuisances.
17566for as_var in \
17567  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17568  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17569  LC_TELEPHONE LC_TIME
17570do
17571  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
17572    eval $as_var=C; export $as_var
17573  else
17574    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17575  fi
17576done
17577
17578# Required to use basename.
17579if expr a : '\(a\)' >/dev/null 2>&1 &&
17580   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17581  as_expr=expr
17582else
17583  as_expr=false
17584fi
17585
17586if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17587  as_basename=basename
17588else
17589  as_basename=false
17590fi
17591
17592
17593# Name of the executable.
17594as_me=`$as_basename -- "$0" ||
17595$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17596	 X"$0" : 'X\(//\)$' \| \
17597	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17598echo X/"$0" |
17599    sed '/^.*\/\([^/][^/]*\)\/*$/{
17600	    s//\1/
17601	    q
17602	  }
17603	  /^X\/\(\/\/\)$/{
17604	    s//\1/
17605	    q
17606	  }
17607	  /^X\/\(\/\).*/{
17608	    s//\1/
17609	    q
17610	  }
17611	  s/.*/./; q'`
17612
17613# CDPATH.
17614$as_unset CDPATH
17615
17616
17617
17618  as_lineno_1=$LINENO
17619  as_lineno_2=$LINENO
17620  test "x$as_lineno_1" != "x$as_lineno_2" &&
17621  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17622
17623  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17624  # uniformly replaced by the line number.  The first 'sed' inserts a
17625  # line-number line after each line using $LINENO; the second 'sed'
17626  # does the real work.  The second script uses 'N' to pair each
17627  # line-number line with the line containing $LINENO, and appends
17628  # trailing '-' during substitution so that $LINENO is not a special
17629  # case at line end.
17630  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17631  # scripts with optimization help from Paolo Bonzini.  Blame Lee
17632  # E. McMahon (1931-1989) for sed's syntax.  :-)
17633  sed -n '
17634    p
17635    /[$]LINENO/=
17636  ' <$as_myself |
17637    sed '
17638      s/[$]LINENO.*/&-/
17639      t lineno
17640      b
17641      :lineno
17642      N
17643      :loop
17644      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17645      t loop
17646      s/-\n.*//
17647    ' >$as_me.lineno &&
17648  chmod +x "$as_me.lineno" ||
17649    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17650   { (exit 1); exit 1; }; }
17651
17652  # Don't try to exec as it changes $[0], causing all sort of problems
17653  # (the dirname of $[0] is not the place where we might find the
17654  # original and so on.  Autoconf is especially sensitive to this).
17655  . "./$as_me.lineno"
17656  # Exit status is that of the last command.
17657  exit
17658}
17659
17660
17661if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17662  as_dirname=dirname
17663else
17664  as_dirname=false
17665fi
17666
17667ECHO_C= ECHO_N= ECHO_T=
17668case `echo -n x` in
17669-n*)
17670  case `echo 'x\c'` in
17671  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
17672  *)   ECHO_C='\c';;
17673  esac;;
17674*)
17675  ECHO_N='-n';;
17676esac
17677
17678if expr a : '\(a\)' >/dev/null 2>&1 &&
17679   test "X`expr 00001 : '.*\(...\)'`" = X001; then
17680  as_expr=expr
17681else
17682  as_expr=false
17683fi
17684
17685rm -f conf$$ conf$$.exe conf$$.file
17686if test -d conf$$.dir; then
17687  rm -f conf$$.dir/conf$$.file
17688else
17689  rm -f conf$$.dir
17690  mkdir conf$$.dir
17691fi
17692echo >conf$$.file
17693if ln -s conf$$.file conf$$ 2>/dev/null; then
17694  as_ln_s='ln -s'
17695  # ... but there are two gotchas:
17696  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17697  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17698  # In both cases, we have to default to `cp -p'.
17699  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17700    as_ln_s='cp -p'
17701elif ln conf$$.file conf$$ 2>/dev/null; then
17702  as_ln_s=ln
17703else
17704  as_ln_s='cp -p'
17705fi
17706rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17707rmdir conf$$.dir 2>/dev/null
17708
17709if mkdir -p . 2>/dev/null; then
17710  as_mkdir_p=:
17711else
17712  test -d ./-p && rmdir ./-p
17713  as_mkdir_p=false
17714fi
17715
17716if test -x / >/dev/null 2>&1; then
17717  as_test_x='test -x'
17718else
17719  if ls -dL / >/dev/null 2>&1; then
17720    as_ls_L_option=L
17721  else
17722    as_ls_L_option=
17723  fi
17724  as_test_x='
17725    eval sh -c '\''
17726      if test -d "$1"; then
17727        test -d "$1/.";
17728      else
17729	case $1 in
17730        -*)set "./$1";;
17731	esac;
17732	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17733	???[sx]*):;;*)false;;esac;fi
17734    '\'' sh
17735  '
17736fi
17737as_executable_p=$as_test_x
17738
17739# Sed expression to map a string onto a valid CPP name.
17740as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17741
17742# Sed expression to map a string onto a valid variable name.
17743as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17744
17745
17746exec 6>&1
17747
17748# Save the log message, to keep $[0] and so on meaningful, and to
17749# report actual input values of CONFIG_FILES etc. instead of their
17750# values after options handling.
17751ac_log="
17752This file was extended by Protocol Buffers $as_me 2.3.0, which was
17753generated by GNU Autoconf 2.61.  Invocation command line was
17754
17755  CONFIG_FILES    = $CONFIG_FILES
17756  CONFIG_HEADERS  = $CONFIG_HEADERS
17757  CONFIG_LINKS    = $CONFIG_LINKS
17758  CONFIG_COMMANDS = $CONFIG_COMMANDS
17759  $ $0 $@
17760
17761on `(hostname || uname -n) 2>/dev/null | sed 1q`
17762"
17763
17764_ACEOF
17765
17766cat >>$CONFIG_STATUS <<_ACEOF
17767# Files that config.status was made for.
17768config_files="$ac_config_files"
17769config_headers="$ac_config_headers"
17770config_commands="$ac_config_commands"
17771
17772_ACEOF
17773
17774cat >>$CONFIG_STATUS <<\_ACEOF
17775ac_cs_usage="\
17776\`$as_me' instantiates files from templates according to the
17777current configuration.
17778
17779Usage: $0 [OPTIONS] [FILE]...
17780
17781  -h, --help       print this help, then exit
17782  -V, --version    print version number and configuration settings, then exit
17783  -q, --quiet      do not print progress messages
17784  -d, --debug      don't remove temporary files
17785      --recheck    update $as_me by reconfiguring in the same conditions
17786  --file=FILE[:TEMPLATE]
17787		   instantiate the configuration file FILE
17788  --header=FILE[:TEMPLATE]
17789		   instantiate the configuration header FILE
17790
17791Configuration files:
17792$config_files
17793
17794Configuration headers:
17795$config_headers
17796
17797Configuration commands:
17798$config_commands
17799
17800Report bugs to <bug-autoconf@gnu.org>."
17801
17802_ACEOF
17803cat >>$CONFIG_STATUS <<_ACEOF
17804ac_cs_version="\\
17805Protocol Buffers config.status 2.3.0
17806configured by $0, generated by GNU Autoconf 2.61,
17807  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17808
17809Copyright (C) 2006 Free Software Foundation, Inc.
17810This config.status script is free software; the Free Software Foundation
17811gives unlimited permission to copy, distribute and modify it."
17812
17813ac_pwd='$ac_pwd'
17814srcdir='$srcdir'
17815INSTALL='$INSTALL'
17816MKDIR_P='$MKDIR_P'
17817_ACEOF
17818
17819cat >>$CONFIG_STATUS <<\_ACEOF
17820# If no file are specified by the user, then we need to provide default
17821# value.  By we need to know if files were specified by the user.
17822ac_need_defaults=:
17823while test $# != 0
17824do
17825  case $1 in
17826  --*=*)
17827    ac_option=`expr "X$1" : 'X\([^=]*\)='`
17828    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17829    ac_shift=:
17830    ;;
17831  *)
17832    ac_option=$1
17833    ac_optarg=$2
17834    ac_shift=shift
17835    ;;
17836  esac
17837
17838  case $ac_option in
17839  # Handling of the options.
17840  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17841    ac_cs_recheck=: ;;
17842  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17843    echo "$ac_cs_version"; exit ;;
17844  --debug | --debu | --deb | --de | --d | -d )
17845    debug=: ;;
17846  --file | --fil | --fi | --f )
17847    $ac_shift
17848    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17849    ac_need_defaults=false;;
17850  --header | --heade | --head | --hea )
17851    $ac_shift
17852    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17853    ac_need_defaults=false;;
17854  --he | --h)
17855    # Conflict between --help and --header
17856    { echo "$as_me: error: ambiguous option: $1
17857Try \`$0 --help' for more information." >&2
17858   { (exit 1); exit 1; }; };;
17859  --help | --hel | -h )
17860    echo "$ac_cs_usage"; exit ;;
17861  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17862  | -silent | --silent | --silen | --sile | --sil | --si | --s)
17863    ac_cs_silent=: ;;
17864
17865  # This is an error.
17866  -*) { echo "$as_me: error: unrecognized option: $1
17867Try \`$0 --help' for more information." >&2
17868   { (exit 1); exit 1; }; } ;;
17869
17870  *) ac_config_targets="$ac_config_targets $1"
17871     ac_need_defaults=false ;;
17872
17873  esac
17874  shift
17875done
17876
17877ac_configure_extra_args=
17878
17879if $ac_cs_silent; then
17880  exec 6>/dev/null
17881  ac_configure_extra_args="$ac_configure_extra_args --silent"
17882fi
17883
17884_ACEOF
17885cat >>$CONFIG_STATUS <<_ACEOF
17886if \$ac_cs_recheck; then
17887  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17888  CONFIG_SHELL=$SHELL
17889  export CONFIG_SHELL
17890  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17891fi
17892
17893_ACEOF
17894cat >>$CONFIG_STATUS <<\_ACEOF
17895exec 5>>config.log
17896{
17897  echo
17898  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17899## Running $as_me. ##
17900_ASBOX
17901  echo "$ac_log"
17902} >&5
17903
17904_ACEOF
17905cat >>$CONFIG_STATUS <<_ACEOF
17906#
17907# INIT-COMMANDS
17908#
17909AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17910
17911
17912# The HP-UX ksh and POSIX shell print the target directory to stdout
17913# if CDPATH is set.
17914(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17915
17916sed_quote_subst='$sed_quote_subst'
17917double_quote_subst='$double_quote_subst'
17918delay_variable_subst='$delay_variable_subst'
17919macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17920macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17921enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17922enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17923pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17924enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17925host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17926host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17927host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17928build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17929build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17930build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17931SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17932Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17933GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17934EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17935FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17936LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17937NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17938LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17939max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17940ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17941exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17942lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17943lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17944lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17945reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17946reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17947deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17948file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17949AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17950AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17951STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17952RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17953old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17954old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17955old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17956CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17957CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17958compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17959GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17960lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17961lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17962lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17963lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17964objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17965SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17966ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17967MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17968lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17969lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17970lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17971lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17972lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17973need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17974DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17975NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17976LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17977OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17978OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17979libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17980shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17981extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17982archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17983enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17984export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17985whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17986compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17987old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17988old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17989archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17990archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17991module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17992module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17993with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17994allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17995no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17996hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17997hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17998hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17999hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18000hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18001hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18002hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18003hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18004inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18005link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18006fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18007always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18008export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18009exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18010include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18011prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18012file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18013variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18014need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18015need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18016version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18017runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18018shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18019shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18020libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18021library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18022soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18023postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18024postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18025finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18026finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18027hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18028sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18029sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18030hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18031enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18032enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18033enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18034old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18035striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18036compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
18037predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18038postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
18039predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
18040postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
18041compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
18042LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18043old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18044compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18045GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18046lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18047lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18048lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18049lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18050lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18051archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18052enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18053export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18054whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18055compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18056old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18057old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18058archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18059archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18060module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18061module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18062with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18063allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18064no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18065hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18066hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18067hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18068hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18069hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18070hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18071hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18072hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18073inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18074link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18075fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18076always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18077export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18078exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18079include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18080prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18081file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18082hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18083compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18084predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18085postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18086predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18087postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18088compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
18089
18090LTCC='$LTCC'
18091LTCFLAGS='$LTCFLAGS'
18092compiler='$compiler_DEFAULT'
18093
18094# Quote evaled strings.
18095for var in SED \
18096GREP \
18097EGREP \
18098FGREP \
18099LD \
18100NM \
18101LN_S \
18102lt_SP2NL \
18103lt_NL2SP \
18104reload_flag \
18105deplibs_check_method \
18106file_magic_cmd \
18107AR \
18108AR_FLAGS \
18109STRIP \
18110RANLIB \
18111CC \
18112CFLAGS \
18113compiler \
18114lt_cv_sys_global_symbol_pipe \
18115lt_cv_sys_global_symbol_to_cdecl \
18116lt_cv_sys_global_symbol_to_c_name_address \
18117lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18118SHELL \
18119ECHO \
18120lt_prog_compiler_no_builtin_flag \
18121lt_prog_compiler_wl \
18122lt_prog_compiler_pic \
18123lt_prog_compiler_static \
18124lt_cv_prog_compiler_c_o \
18125need_locks \
18126DSYMUTIL \
18127NMEDIT \
18128LIPO \
18129OTOOL \
18130OTOOL64 \
18131shrext_cmds \
18132export_dynamic_flag_spec \
18133whole_archive_flag_spec \
18134compiler_needs_object \
18135with_gnu_ld \
18136allow_undefined_flag \
18137no_undefined_flag \
18138hardcode_libdir_flag_spec \
18139hardcode_libdir_flag_spec_ld \
18140hardcode_libdir_separator \
18141fix_srcfile_path \
18142exclude_expsyms \
18143include_expsyms \
18144file_list_spec \
18145variables_saved_for_relink \
18146libname_spec \
18147library_names_spec \
18148soname_spec \
18149finish_eval \
18150old_striplib \
18151striplib \
18152compiler_lib_search_dirs \
18153predep_objects \
18154postdep_objects \
18155predeps \
18156postdeps \
18157compiler_lib_search_path \
18158LD_CXX \
18159compiler_CXX \
18160lt_prog_compiler_no_builtin_flag_CXX \
18161lt_prog_compiler_wl_CXX \
18162lt_prog_compiler_pic_CXX \
18163lt_prog_compiler_static_CXX \
18164lt_cv_prog_compiler_c_o_CXX \
18165export_dynamic_flag_spec_CXX \
18166whole_archive_flag_spec_CXX \
18167compiler_needs_object_CXX \
18168with_gnu_ld_CXX \
18169allow_undefined_flag_CXX \
18170no_undefined_flag_CXX \
18171hardcode_libdir_flag_spec_CXX \
18172hardcode_libdir_flag_spec_ld_CXX \
18173hardcode_libdir_separator_CXX \
18174fix_srcfile_path_CXX \
18175exclude_expsyms_CXX \
18176include_expsyms_CXX \
18177file_list_spec_CXX \
18178compiler_lib_search_dirs_CXX \
18179predep_objects_CXX \
18180postdep_objects_CXX \
18181predeps_CXX \
18182postdeps_CXX \
18183compiler_lib_search_path_CXX; do
18184    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18185    *[\\\\\\\`\\"\\\$]*)
18186      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18187      ;;
18188    *)
18189      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18190      ;;
18191    esac
18192done
18193
18194# Double-quote double-evaled strings.
18195for var in reload_cmds \
18196old_postinstall_cmds \
18197old_postuninstall_cmds \
18198old_archive_cmds \
18199extract_expsyms_cmds \
18200old_archive_from_new_cmds \
18201old_archive_from_expsyms_cmds \
18202archive_cmds \
18203archive_expsym_cmds \
18204module_cmds \
18205module_expsym_cmds \
18206export_symbols_cmds \
18207prelink_cmds \
18208postinstall_cmds \
18209postuninstall_cmds \
18210finish_cmds \
18211sys_lib_search_path_spec \
18212sys_lib_dlsearch_path_spec \
18213old_archive_cmds_CXX \
18214old_archive_from_new_cmds_CXX \
18215old_archive_from_expsyms_cmds_CXX \
18216archive_cmds_CXX \
18217archive_expsym_cmds_CXX \
18218module_cmds_CXX \
18219module_expsym_cmds_CXX \
18220export_symbols_cmds_CXX \
18221prelink_cmds_CXX; do
18222    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18223    *[\\\\\\\`\\"\\\$]*)
18224      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18225      ;;
18226    *)
18227      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18228      ;;
18229    esac
18230done
18231
18232# Fix-up fallback echo if it was mangled by the above quoting rules.
18233case \$lt_ECHO in
18234*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18235  ;;
18236esac
18237
18238ac_aux_dir='$ac_aux_dir'
18239xsi_shell='$xsi_shell'
18240lt_shell_append='$lt_shell_append'
18241
18242# See if we are running on zsh, and set the options which allow our
18243# commands through without removal of \ escapes INIT.
18244if test -n "\${ZSH_VERSION+set}" ; then
18245   setopt NO_GLOB_SUBST
18246fi
18247
18248
18249    PACKAGE='$PACKAGE'
18250    VERSION='$VERSION'
18251    TIMESTAMP='$TIMESTAMP'
18252    RM='$RM'
18253    ofile='$ofile'
18254
18255
18256
18257
18258
18259
18260_ACEOF
18261
18262cat >>$CONFIG_STATUS <<\_ACEOF
18263
18264# Handling of arguments.
18265for ac_config_target in $ac_config_targets
18266do
18267  case $ac_config_target in
18268    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18269    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18270    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18271    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18272    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18273    "protobuf.pc") CONFIG_FILES="$CONFIG_FILES protobuf.pc" ;;
18274    "protobuf-lite.pc") CONFIG_FILES="$CONFIG_FILES protobuf-lite.pc" ;;
18275
18276  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18277echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18278   { (exit 1); exit 1; }; };;
18279  esac
18280done
18281
18282
18283# If the user did not use the arguments to specify the items to instantiate,
18284# then the envvar interface is used.  Set only those that are not.
18285# We use the long form for the default assignment because of an extremely
18286# bizarre bug on SunOS 4.1.3.
18287if $ac_need_defaults; then
18288  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18289  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18290  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18291fi
18292
18293# Have a temporary directory for convenience.  Make it in the build tree
18294# simply because there is no reason against having it here, and in addition,
18295# creating and moving files from /tmp can sometimes cause problems.
18296# Hook for its removal unless debugging.
18297# Note that there is a small window in which the directory will not be cleaned:
18298# after its creation but before its name has been assigned to `$tmp'.
18299$debug ||
18300{
18301  tmp=
18302  trap 'exit_status=$?
18303  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18304' 0
18305  trap '{ (exit 1); exit 1; }' 1 2 13 15
18306}
18307# Create a (secure) tmp directory for tmp files.
18308
18309{
18310  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18311  test -n "$tmp" && test -d "$tmp"
18312}  ||
18313{
18314  tmp=./conf$$-$RANDOM
18315  (umask 077 && mkdir "$tmp")
18316} ||
18317{
18318   echo "$me: cannot create a temporary directory in ." >&2
18319   { (exit 1); exit 1; }
18320}
18321
18322#
18323# Set up the sed scripts for CONFIG_FILES section.
18324#
18325
18326# No need to generate the scripts if there are no CONFIG_FILES.
18327# This happens for instance when ./config.status config.h
18328if test -n "$CONFIG_FILES"; then
18329
18330_ACEOF
18331
18332
18333
18334ac_delim='%!_!# '
18335for ac_last_try in false false false false false :; do
18336  cat >conf$$subs.sed <<_ACEOF
18337SHELL!$SHELL$ac_delim
18338PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18339PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18340PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18341PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18342PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18343PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18344exec_prefix!$exec_prefix$ac_delim
18345prefix!$prefix$ac_delim
18346program_transform_name!$program_transform_name$ac_delim
18347bindir!$bindir$ac_delim
18348sbindir!$sbindir$ac_delim
18349libexecdir!$libexecdir$ac_delim
18350datarootdir!$datarootdir$ac_delim
18351datadir!$datadir$ac_delim
18352sysconfdir!$sysconfdir$ac_delim
18353sharedstatedir!$sharedstatedir$ac_delim
18354localstatedir!$localstatedir$ac_delim
18355includedir!$includedir$ac_delim
18356oldincludedir!$oldincludedir$ac_delim
18357docdir!$docdir$ac_delim
18358infodir!$infodir$ac_delim
18359htmldir!$htmldir$ac_delim
18360dvidir!$dvidir$ac_delim
18361pdfdir!$pdfdir$ac_delim
18362psdir!$psdir$ac_delim
18363libdir!$libdir$ac_delim
18364localedir!$localedir$ac_delim
18365mandir!$mandir$ac_delim
18366DEFS!$DEFS$ac_delim
18367ECHO_C!$ECHO_C$ac_delim
18368ECHO_N!$ECHO_N$ac_delim
18369ECHO_T!$ECHO_T$ac_delim
18370LIBS!$LIBS$ac_delim
18371build_alias!$build_alias$ac_delim
18372host_alias!$host_alias$ac_delim
18373target_alias!$target_alias$ac_delim
18374build!$build$ac_delim
18375build_cpu!$build_cpu$ac_delim
18376build_vendor!$build_vendor$ac_delim
18377build_os!$build_os$ac_delim
18378host!$host$ac_delim
18379host_cpu!$host_cpu$ac_delim
18380host_vendor!$host_vendor$ac_delim
18381host_os!$host_os$ac_delim
18382target!$target$ac_delim
18383target_cpu!$target_cpu$ac_delim
18384target_vendor!$target_vendor$ac_delim
18385target_os!$target_os$ac_delim
18386INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18387INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18388INSTALL_DATA!$INSTALL_DATA$ac_delim
18389am__isrc!$am__isrc$ac_delim
18390CYGPATH_W!$CYGPATH_W$ac_delim
18391PACKAGE!$PACKAGE$ac_delim
18392VERSION!$VERSION$ac_delim
18393ACLOCAL!$ACLOCAL$ac_delim
18394AUTOCONF!$AUTOCONF$ac_delim
18395AUTOMAKE!$AUTOMAKE$ac_delim
18396AUTOHEADER!$AUTOHEADER$ac_delim
18397MAKEINFO!$MAKEINFO$ac_delim
18398install_sh!$install_sh$ac_delim
18399STRIP!$STRIP$ac_delim
18400INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
18401mkdir_p!$mkdir_p$ac_delim
18402AWK!$AWK$ac_delim
18403SET_MAKE!$SET_MAKE$ac_delim
18404am__leading_dot!$am__leading_dot$ac_delim
18405AMTAR!$AMTAR$ac_delim
18406am__tar!$am__tar$ac_delim
18407am__untar!$am__untar$ac_delim
18408CC!$CC$ac_delim
18409CFLAGS!$CFLAGS$ac_delim
18410LDFLAGS!$LDFLAGS$ac_delim
18411CPPFLAGS!$CPPFLAGS$ac_delim
18412ac_ct_CC!$ac_ct_CC$ac_delim
18413EXEEXT!$EXEEXT$ac_delim
18414OBJEXT!$OBJEXT$ac_delim
18415DEPDIR!$DEPDIR$ac_delim
18416am__include!$am__include$ac_delim
18417am__quote!$am__quote$ac_delim
18418AMDEP_TRUE!$AMDEP_TRUE$ac_delim
18419AMDEP_FALSE!$AMDEP_FALSE$ac_delim
18420AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
18421CCDEPMODE!$CCDEPMODE$ac_delim
18422am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
18423am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
18424CXX!$CXX$ac_delim
18425CXXFLAGS!$CXXFLAGS$ac_delim
18426ac_ct_CXX!$ac_ct_CXX$ac_delim
18427CXXDEPMODE!$CXXDEPMODE$ac_delim
18428am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
18429am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
18430CXXCPP!$CXXCPP$ac_delim
18431GREP!$GREP$ac_delim
18432EGREP!$EGREP$ac_delim
18433GCC_TRUE!$GCC_TRUE$ac_delim
18434_ACEOF
18435
18436  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18437    break
18438  elif $ac_last_try; then
18439    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18440echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18441   { (exit 1); exit 1; }; }
18442  else
18443    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18444  fi
18445done
18446
18447ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18448if test -n "$ac_eof"; then
18449  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18450  ac_eof=`expr $ac_eof + 1`
18451fi
18452
18453cat >>$CONFIG_STATUS <<_ACEOF
18454cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18455/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18456_ACEOF
18457sed '
18458s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18459s/^/s,@/; s/!/@,|#_!!_#|/
18460:n
18461t n
18462s/'"$ac_delim"'$/,g/; t
18463s/$/\\/; p
18464N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18465' >>$CONFIG_STATUS <conf$$subs.sed
18466rm -f conf$$subs.sed
18467cat >>$CONFIG_STATUS <<_ACEOF
18468CEOF$ac_eof
18469_ACEOF
18470
18471
18472ac_delim='%!_!# '
18473for ac_last_try in false false false false false :; do
18474  cat >conf$$subs.sed <<_ACEOF
18475GCC_FALSE!$GCC_FALSE$ac_delim
18476PROTOBUF_OPT_FLAG!$PROTOBUF_OPT_FLAG$ac_delim
18477ISAINFO!$ISAINFO$ac_delim
18478LIBTOOL!$LIBTOOL$ac_delim
18479SED!$SED$ac_delim
18480FGREP!$FGREP$ac_delim
18481LD!$LD$ac_delim
18482DUMPBIN!$DUMPBIN$ac_delim
18483ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
18484NM!$NM$ac_delim
18485LN_S!$LN_S$ac_delim
18486AR!$AR$ac_delim
18487RANLIB!$RANLIB$ac_delim
18488lt_ECHO!$lt_ECHO$ac_delim
18489DSYMUTIL!$DSYMUTIL$ac_delim
18490NMEDIT!$NMEDIT$ac_delim
18491LIPO!$LIPO$ac_delim
18492OTOOL!$OTOOL$ac_delim
18493OTOOL64!$OTOOL64$ac_delim
18494LIBOBJS!$LIBOBJS$ac_delim
18495POW_LIB!$POW_LIB$ac_delim
18496HAVE_ZLIB_TRUE!$HAVE_ZLIB_TRUE$ac_delim
18497HAVE_ZLIB_FALSE!$HAVE_ZLIB_FALSE$ac_delim
18498PROTOC!$PROTOC$ac_delim
18499USE_EXTERNAL_PROTOC_TRUE!$USE_EXTERNAL_PROTOC_TRUE$ac_delim
18500USE_EXTERNAL_PROTOC_FALSE!$USE_EXTERNAL_PROTOC_FALSE$ac_delim
18501acx_pthread_config!$acx_pthread_config$ac_delim
18502PTHREAD_CC!$PTHREAD_CC$ac_delim
18503PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
18504PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
18505subdirs!$subdirs$ac_delim
18506LTLIBOBJS!$LTLIBOBJS$ac_delim
18507_ACEOF
18508
18509  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 32; then
18510    break
18511  elif $ac_last_try; then
18512    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18513echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18514   { (exit 1); exit 1; }; }
18515  else
18516    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18517  fi
18518done
18519
18520ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18521if test -n "$ac_eof"; then
18522  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18523  ac_eof=`expr $ac_eof + 1`
18524fi
18525
18526cat >>$CONFIG_STATUS <<_ACEOF
18527cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18528/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18529_ACEOF
18530sed '
18531s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18532s/^/s,@/; s/!/@,|#_!!_#|/
18533:n
18534t n
18535s/'"$ac_delim"'$/,g/; t
18536s/$/\\/; p
18537N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18538' >>$CONFIG_STATUS <conf$$subs.sed
18539rm -f conf$$subs.sed
18540cat >>$CONFIG_STATUS <<_ACEOF
18541:end
18542s/|#_!!_#|//g
18543CEOF$ac_eof
18544_ACEOF
18545
18546
18547# VPATH may cause trouble with some makes, so we remove $(srcdir),
18548# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18549# trailing colons and then remove the whole line if VPATH becomes empty
18550# (actually we leave an empty line to preserve line numbers).
18551if test "x$srcdir" = x.; then
18552  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
18553s/:*\$(srcdir):*/:/
18554s/:*\${srcdir}:*/:/
18555s/:*@srcdir@:*/:/
18556s/^\([^=]*=[	 ]*\):*/\1/
18557s/:*$//
18558s/^[^=]*=[	 ]*$//
18559}'
18560fi
18561
18562cat >>$CONFIG_STATUS <<\_ACEOF
18563fi # test -n "$CONFIG_FILES"
18564
18565
18566for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
18567do
18568  case $ac_tag in
18569  :[FHLC]) ac_mode=$ac_tag; continue;;
18570  esac
18571  case $ac_mode$ac_tag in
18572  :[FHL]*:*);;
18573  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18574echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18575   { (exit 1); exit 1; }; };;
18576  :[FH]-) ac_tag=-:-;;
18577  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18578  esac
18579  ac_save_IFS=$IFS
18580  IFS=:
18581  set x $ac_tag
18582  IFS=$ac_save_IFS
18583  shift
18584  ac_file=$1
18585  shift
18586
18587  case $ac_mode in
18588  :L) ac_source=$1;;
18589  :[FH])
18590    ac_file_inputs=
18591    for ac_f
18592    do
18593      case $ac_f in
18594      -) ac_f="$tmp/stdin";;
18595      *) # Look for the file first in the build tree, then in the source tree
18596	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
18597	 # because $ac_f cannot contain `:'.
18598	 test -f "$ac_f" ||
18599	   case $ac_f in
18600	   [\\/$]*) false;;
18601	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18602	   esac ||
18603	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18604echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18605   { (exit 1); exit 1; }; };;
18606      esac
18607      ac_file_inputs="$ac_file_inputs $ac_f"
18608    done
18609
18610    # Let's still pretend it is `configure' which instantiates (i.e., don't
18611    # use $as_me), people would be surprised to read:
18612    #    /* config.h.  Generated by config.status.  */
18613    configure_input="Generated from "`IFS=:
18614	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18615    if test x"$ac_file" != x-; then
18616      configure_input="$ac_file.  $configure_input"
18617      { echo "$as_me:$LINENO: creating $ac_file" >&5
18618echo "$as_me: creating $ac_file" >&6;}
18619    fi
18620
18621    case $ac_tag in
18622    *:-:* | *:-) cat >"$tmp/stdin";;
18623    esac
18624    ;;
18625  esac
18626
18627  ac_dir=`$as_dirname -- "$ac_file" ||
18628$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18629	 X"$ac_file" : 'X\(//\)[^/]' \| \
18630	 X"$ac_file" : 'X\(//\)$' \| \
18631	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18632echo X"$ac_file" |
18633    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18634	    s//\1/
18635	    q
18636	  }
18637	  /^X\(\/\/\)[^/].*/{
18638	    s//\1/
18639	    q
18640	  }
18641	  /^X\(\/\/\)$/{
18642	    s//\1/
18643	    q
18644	  }
18645	  /^X\(\/\).*/{
18646	    s//\1/
18647	    q
18648	  }
18649	  s/.*/./; q'`
18650  { as_dir="$ac_dir"
18651  case $as_dir in #(
18652  -*) as_dir=./$as_dir;;
18653  esac
18654  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18655    as_dirs=
18656    while :; do
18657      case $as_dir in #(
18658      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18659      *) as_qdir=$as_dir;;
18660      esac
18661      as_dirs="'$as_qdir' $as_dirs"
18662      as_dir=`$as_dirname -- "$as_dir" ||
18663$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18664	 X"$as_dir" : 'X\(//\)[^/]' \| \
18665	 X"$as_dir" : 'X\(//\)$' \| \
18666	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18667echo X"$as_dir" |
18668    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18669	    s//\1/
18670	    q
18671	  }
18672	  /^X\(\/\/\)[^/].*/{
18673	    s//\1/
18674	    q
18675	  }
18676	  /^X\(\/\/\)$/{
18677	    s//\1/
18678	    q
18679	  }
18680	  /^X\(\/\).*/{
18681	    s//\1/
18682	    q
18683	  }
18684	  s/.*/./; q'`
18685      test -d "$as_dir" && break
18686    done
18687    test -z "$as_dirs" || eval "mkdir $as_dirs"
18688  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18689echo "$as_me: error: cannot create directory $as_dir" >&2;}
18690   { (exit 1); exit 1; }; }; }
18691  ac_builddir=.
18692
18693case "$ac_dir" in
18694.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18695*)
18696  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18697  # A ".." for each directory in $ac_dir_suffix.
18698  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18699  case $ac_top_builddir_sub in
18700  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18701  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18702  esac ;;
18703esac
18704ac_abs_top_builddir=$ac_pwd
18705ac_abs_builddir=$ac_pwd$ac_dir_suffix
18706# for backward compatibility:
18707ac_top_builddir=$ac_top_build_prefix
18708
18709case $srcdir in
18710  .)  # We are building in place.
18711    ac_srcdir=.
18712    ac_top_srcdir=$ac_top_builddir_sub
18713    ac_abs_top_srcdir=$ac_pwd ;;
18714  [\\/]* | ?:[\\/]* )  # Absolute name.
18715    ac_srcdir=$srcdir$ac_dir_suffix;
18716    ac_top_srcdir=$srcdir
18717    ac_abs_top_srcdir=$srcdir ;;
18718  *) # Relative name.
18719    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18720    ac_top_srcdir=$ac_top_build_prefix$srcdir
18721    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18722esac
18723ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18724
18725
18726  case $ac_mode in
18727  :F)
18728  #
18729  # CONFIG_FILE
18730  #
18731
18732  case $INSTALL in
18733  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18734  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18735  esac
18736  ac_MKDIR_P=$MKDIR_P
18737  case $MKDIR_P in
18738  [\\/$]* | ?:[\\/]* ) ;;
18739  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18740  esac
18741_ACEOF
18742
18743cat >>$CONFIG_STATUS <<\_ACEOF
18744# If the template does not know about datarootdir, expand it.
18745# FIXME: This hack should be removed a few years after 2.60.
18746ac_datarootdir_hack=; ac_datarootdir_seen=
18747
18748case `sed -n '/datarootdir/ {
18749  p
18750  q
18751}
18752/@datadir@/p
18753/@docdir@/p
18754/@infodir@/p
18755/@localedir@/p
18756/@mandir@/p
18757' $ac_file_inputs` in
18758*datarootdir*) ac_datarootdir_seen=yes;;
18759*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18760  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18761echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18762_ACEOF
18763cat >>$CONFIG_STATUS <<_ACEOF
18764  ac_datarootdir_hack='
18765  s&@datadir@&$datadir&g
18766  s&@docdir@&$docdir&g
18767  s&@infodir@&$infodir&g
18768  s&@localedir@&$localedir&g
18769  s&@mandir@&$mandir&g
18770    s&\\\${datarootdir}&$datarootdir&g' ;;
18771esac
18772_ACEOF
18773
18774# Neutralize VPATH when `$srcdir' = `.'.
18775# Shell code in configure.ac might set extrasub.
18776# FIXME: do we really want to maintain this feature?
18777cat >>$CONFIG_STATUS <<_ACEOF
18778  sed "$ac_vpsub
18779$extrasub
18780_ACEOF
18781cat >>$CONFIG_STATUS <<\_ACEOF
18782:t
18783/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18784s&@configure_input@&$configure_input&;t t
18785s&@top_builddir@&$ac_top_builddir_sub&;t t
18786s&@srcdir@&$ac_srcdir&;t t
18787s&@abs_srcdir@&$ac_abs_srcdir&;t t
18788s&@top_srcdir@&$ac_top_srcdir&;t t
18789s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18790s&@builddir@&$ac_builddir&;t t
18791s&@abs_builddir@&$ac_abs_builddir&;t t
18792s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18793s&@INSTALL@&$ac_INSTALL&;t t
18794s&@MKDIR_P@&$ac_MKDIR_P&;t t
18795$ac_datarootdir_hack
18796" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
18797
18798test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18799  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18800  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18801  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18802which seems to be undefined.  Please make sure it is defined." >&5
18803echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18804which seems to be undefined.  Please make sure it is defined." >&2;}
18805
18806  rm -f "$tmp/stdin"
18807  case $ac_file in
18808  -) cat "$tmp/out"; rm -f "$tmp/out";;
18809  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
18810  esac
18811 ;;
18812  :H)
18813  #
18814  # CONFIG_HEADER
18815  #
18816_ACEOF
18817
18818# Transform confdefs.h into a sed script `conftest.defines', that
18819# substitutes the proper values into config.h.in to produce config.h.
18820rm -f conftest.defines conftest.tail
18821# First, append a space to every undef/define line, to ease matching.
18822echo 's/$/ /' >conftest.defines
18823# Then, protect against being on the right side of a sed subst, or in
18824# an unquoted here document, in config.status.  If some macros were
18825# called several times there might be several #defines for the same
18826# symbol, which is useless.  But do not sort them, since the last
18827# AC_DEFINE must be honored.
18828ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18829# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
18830# NAME is the cpp macro being defined, VALUE is the value it is being given.
18831# PARAMS is the parameter list in the macro definition--in most cases, it's
18832# just an empty string.
18833ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
18834ac_dB='\\)[	 (].*,\\1define\\2'
18835ac_dC=' '
18836ac_dD=' ,'
18837
18838uniq confdefs.h |
18839  sed -n '
18840	t rset
18841	:rset
18842	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
18843	t ok
18844	d
18845	:ok
18846	s/[\\&,]/\\&/g
18847	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
18848	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
18849  ' >>conftest.defines
18850
18851# Remove the space that was appended to ease matching.
18852# Then replace #undef with comments.  This is necessary, for
18853# example, in the case of _POSIX_SOURCE, which is predefined and required
18854# on some systems where configure will not decide to define it.
18855# (The regexp can be short, since the line contains either #define or #undef.)
18856echo 's/ $//
18857s,^[	 #]*u.*,/* & */,' >>conftest.defines
18858
18859# Break up conftest.defines:
18860ac_max_sed_lines=50
18861
18862# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
18863# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
18864# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
18865# et cetera.
18866ac_in='$ac_file_inputs'
18867ac_out='"$tmp/out1"'
18868ac_nxt='"$tmp/out2"'
18869
18870while :
18871do
18872  # Write a here document:
18873    cat >>$CONFIG_STATUS <<_ACEOF
18874    # First, check the format of the line:
18875    cat >"\$tmp/defines.sed" <<\\CEOF
18876/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
18877/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
18878b
18879:def
18880_ACEOF
18881  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
18882  echo 'CEOF
18883    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
18884  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
18885  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
18886  grep . conftest.tail >/dev/null || break
18887  rm -f conftest.defines
18888  mv conftest.tail conftest.defines
18889done
18890rm -f conftest.defines conftest.tail
18891
18892echo "ac_result=$ac_in" >>$CONFIG_STATUS
18893cat >>$CONFIG_STATUS <<\_ACEOF
18894  if test x"$ac_file" != x-; then
18895    echo "/* $configure_input  */" >"$tmp/config.h"
18896    cat "$ac_result" >>"$tmp/config.h"
18897    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
18898      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18899echo "$as_me: $ac_file is unchanged" >&6;}
18900    else
18901      rm -f $ac_file
18902      mv "$tmp/config.h" $ac_file
18903    fi
18904  else
18905    echo "/* $configure_input  */"
18906    cat "$ac_result"
18907  fi
18908  rm -f "$tmp/out12"
18909# Compute $ac_file's index in $config_headers.
18910_am_arg=$ac_file
18911_am_stamp_count=1
18912for _am_header in $config_headers :; do
18913  case $_am_header in
18914    $_am_arg | $_am_arg:* )
18915      break ;;
18916    * )
18917      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18918  esac
18919done
18920echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18921$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18922	 X"$_am_arg" : 'X\(//\)[^/]' \| \
18923	 X"$_am_arg" : 'X\(//\)$' \| \
18924	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18925echo X"$_am_arg" |
18926    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18927	    s//\1/
18928	    q
18929	  }
18930	  /^X\(\/\/\)[^/].*/{
18931	    s//\1/
18932	    q
18933	  }
18934	  /^X\(\/\/\)$/{
18935	    s//\1/
18936	    q
18937	  }
18938	  /^X\(\/\).*/{
18939	    s//\1/
18940	    q
18941	  }
18942	  s/.*/./; q'`/stamp-h$_am_stamp_count
18943 ;;
18944
18945  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
18946echo "$as_me: executing $ac_file commands" >&6;}
18947 ;;
18948  esac
18949
18950
18951  case $ac_file$ac_mode in
18952    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18953  # Strip MF so we end up with the name of the file.
18954  mf=`echo "$mf" | sed -e 's/:.*$//'`
18955  # Check whether this is an Automake generated Makefile or not.
18956  # We used to match only the files named `Makefile.in', but
18957  # some people rename them; so instead we look at the file content.
18958  # Grep'ing the first line is not enough: some people post-process
18959  # each Makefile.in and add a new line on top of each file to say so.
18960  # Grep'ing the whole file is not good either: AIX grep has a line
18961  # limit of 2048, but all sed's we know have understand at least 4000.
18962  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18963    dirpart=`$as_dirname -- "$mf" ||
18964$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18965	 X"$mf" : 'X\(//\)[^/]' \| \
18966	 X"$mf" : 'X\(//\)$' \| \
18967	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18968echo X"$mf" |
18969    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18970	    s//\1/
18971	    q
18972	  }
18973	  /^X\(\/\/\)[^/].*/{
18974	    s//\1/
18975	    q
18976	  }
18977	  /^X\(\/\/\)$/{
18978	    s//\1/
18979	    q
18980	  }
18981	  /^X\(\/\).*/{
18982	    s//\1/
18983	    q
18984	  }
18985	  s/.*/./; q'`
18986  else
18987    continue
18988  fi
18989  # Extract the definition of DEPDIR, am__include, and am__quote
18990  # from the Makefile without running `make'.
18991  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18992  test -z "$DEPDIR" && continue
18993  am__include=`sed -n 's/^am__include = //p' < "$mf"`
18994  test -z "am__include" && continue
18995  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18996  # When using ansi2knr, U may be empty or an underscore; expand it
18997  U=`sed -n 's/^U = //p' < "$mf"`
18998  # Find all dependency output files, they are included files with
18999  # $(DEPDIR) in their names.  We invoke sed twice because it is the
19000  # simplest approach to changing $(DEPDIR) to its actual value in the
19001  # expansion.
19002  for file in `sed -n "
19003    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19004       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19005    # Make sure the directory exists.
19006    test -f "$dirpart/$file" && continue
19007    fdir=`$as_dirname -- "$file" ||
19008$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19009	 X"$file" : 'X\(//\)[^/]' \| \
19010	 X"$file" : 'X\(//\)$' \| \
19011	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19012echo X"$file" |
19013    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19014	    s//\1/
19015	    q
19016	  }
19017	  /^X\(\/\/\)[^/].*/{
19018	    s//\1/
19019	    q
19020	  }
19021	  /^X\(\/\/\)$/{
19022	    s//\1/
19023	    q
19024	  }
19025	  /^X\(\/\).*/{
19026	    s//\1/
19027	    q
19028	  }
19029	  s/.*/./; q'`
19030    { as_dir=$dirpart/$fdir
19031  case $as_dir in #(
19032  -*) as_dir=./$as_dir;;
19033  esac
19034  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19035    as_dirs=
19036    while :; do
19037      case $as_dir in #(
19038      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19039      *) as_qdir=$as_dir;;
19040      esac
19041      as_dirs="'$as_qdir' $as_dirs"
19042      as_dir=`$as_dirname -- "$as_dir" ||
19043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19044	 X"$as_dir" : 'X\(//\)[^/]' \| \
19045	 X"$as_dir" : 'X\(//\)$' \| \
19046	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19047echo X"$as_dir" |
19048    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19049	    s//\1/
19050	    q
19051	  }
19052	  /^X\(\/\/\)[^/].*/{
19053	    s//\1/
19054	    q
19055	  }
19056	  /^X\(\/\/\)$/{
19057	    s//\1/
19058	    q
19059	  }
19060	  /^X\(\/\).*/{
19061	    s//\1/
19062	    q
19063	  }
19064	  s/.*/./; q'`
19065      test -d "$as_dir" && break
19066    done
19067    test -z "$as_dirs" || eval "mkdir $as_dirs"
19068  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19069echo "$as_me: error: cannot create directory $as_dir" >&2;}
19070   { (exit 1); exit 1; }; }; }
19071    # echo "creating $dirpart/$file"
19072    echo '# dummy' > "$dirpart/$file"
19073  done
19074done
19075 ;;
19076    "libtool":C)
19077
19078    # See if we are running on zsh, and set the options which allow our
19079    # commands through without removal of \ escapes.
19080    if test -n "${ZSH_VERSION+set}" ; then
19081      setopt NO_GLOB_SUBST
19082    fi
19083
19084    cfgfile="${ofile}T"
19085    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19086    $RM "$cfgfile"
19087
19088    cat <<_LT_EOF >> "$cfgfile"
19089#! $SHELL
19090
19091# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19092# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19093# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19094# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19095#
19096#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19097#                 2006, 2007, 2008 Free Software Foundation, Inc.
19098#   Written by Gordon Matzigkeit, 1996
19099#
19100#   This file is part of GNU Libtool.
19101#
19102# GNU Libtool is free software; you can redistribute it and/or
19103# modify it under the terms of the GNU General Public License as
19104# published by the Free Software Foundation; either version 2 of
19105# the License, or (at your option) any later version.
19106#
19107# As a special exception to the GNU General Public License,
19108# if you distribute this file as part of a program or library that
19109# is built using GNU Libtool, you may include this file under the
19110# same distribution terms that you use for the rest of that program.
19111#
19112# GNU Libtool is distributed in the hope that it will be useful,
19113# but WITHOUT ANY WARRANTY; without even the implied warranty of
19114# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19115# GNU General Public License for more details.
19116#
19117# You should have received a copy of the GNU General Public License
19118# along with GNU Libtool; see the file COPYING.  If not, a copy
19119# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19120# obtained by writing to the Free Software Foundation, Inc.,
19121# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19122
19123
19124# The names of the tagged configurations supported by this script.
19125available_tags="CXX "
19126
19127# ### BEGIN LIBTOOL CONFIG
19128
19129# Which release of libtool.m4 was used?
19130macro_version=$macro_version
19131macro_revision=$macro_revision
19132
19133# Whether or not to build shared libraries.
19134build_libtool_libs=$enable_shared
19135
19136# Whether or not to build static libraries.
19137build_old_libs=$enable_static
19138
19139# What type of objects to build.
19140pic_mode=$pic_mode
19141
19142# Whether or not to optimize for fast installation.
19143fast_install=$enable_fast_install
19144
19145# The host system.
19146host_alias=$host_alias
19147host=$host
19148host_os=$host_os
19149
19150# The build system.
19151build_alias=$build_alias
19152build=$build
19153build_os=$build_os
19154
19155# A sed program that does not truncate output.
19156SED=$lt_SED
19157
19158# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19159Xsed="\$SED -e 1s/^X//"
19160
19161# A grep program that handles long lines.
19162GREP=$lt_GREP
19163
19164# An ERE matcher.
19165EGREP=$lt_EGREP
19166
19167# A literal string matcher.
19168FGREP=$lt_FGREP
19169
19170# A BSD- or MS-compatible name lister.
19171NM=$lt_NM
19172
19173# Whether we need soft or hard links.
19174LN_S=$lt_LN_S
19175
19176# What is the maximum length of a command?
19177max_cmd_len=$max_cmd_len
19178
19179# Object file suffix (normally "o").
19180objext=$ac_objext
19181
19182# Executable file suffix (normally "").
19183exeext=$exeext
19184
19185# whether the shell understands "unset".
19186lt_unset=$lt_unset
19187
19188# turn spaces into newlines.
19189SP2NL=$lt_lt_SP2NL
19190
19191# turn newlines into spaces.
19192NL2SP=$lt_lt_NL2SP
19193
19194# How to create reloadable object files.
19195reload_flag=$lt_reload_flag
19196reload_cmds=$lt_reload_cmds
19197
19198# Method to check whether dependent libraries are shared objects.
19199deplibs_check_method=$lt_deplibs_check_method
19200
19201# Command to use when deplibs_check_method == "file_magic".
19202file_magic_cmd=$lt_file_magic_cmd
19203
19204# The archiver.
19205AR=$lt_AR
19206AR_FLAGS=$lt_AR_FLAGS
19207
19208# A symbol stripping program.
19209STRIP=$lt_STRIP
19210
19211# Commands used to install an old-style archive.
19212RANLIB=$lt_RANLIB
19213old_postinstall_cmds=$lt_old_postinstall_cmds
19214old_postuninstall_cmds=$lt_old_postuninstall_cmds
19215
19216# A C compiler.
19217LTCC=$lt_CC
19218
19219# LTCC compiler flags.
19220LTCFLAGS=$lt_CFLAGS
19221
19222# Take the output of nm and produce a listing of raw symbols and C names.
19223global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19224
19225# Transform the output of nm in a proper C declaration.
19226global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19227
19228# Transform the output of nm in a C name address pair.
19229global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19230
19231# Transform the output of nm in a C name address pair when lib prefix is needed.
19232global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19233
19234# The name of the directory that contains temporary libtool files.
19235objdir=$objdir
19236
19237# Shell to use when invoking shell scripts.
19238SHELL=$lt_SHELL
19239
19240# An echo program that does not interpret backslashes.
19241ECHO=$lt_ECHO
19242
19243# Used to examine libraries when file_magic_cmd begins with "file".
19244MAGIC_CMD=$MAGIC_CMD
19245
19246# Must we lock files when doing compilation?
19247need_locks=$lt_need_locks
19248
19249# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19250DSYMUTIL=$lt_DSYMUTIL
19251
19252# Tool to change global to local symbols on Mac OS X.
19253NMEDIT=$lt_NMEDIT
19254
19255# Tool to manipulate fat objects and archives on Mac OS X.
19256LIPO=$lt_LIPO
19257
19258# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19259OTOOL=$lt_OTOOL
19260
19261# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19262OTOOL64=$lt_OTOOL64
19263
19264# Old archive suffix (normally "a").
19265libext=$libext
19266
19267# Shared library suffix (normally ".so").
19268shrext_cmds=$lt_shrext_cmds
19269
19270# The commands to extract the exported symbol list from a shared archive.
19271extract_expsyms_cmds=$lt_extract_expsyms_cmds
19272
19273# Variables whose values should be saved in libtool wrapper scripts and
19274# restored at link time.
19275variables_saved_for_relink=$lt_variables_saved_for_relink
19276
19277# Do we need the "lib" prefix for modules?
19278need_lib_prefix=$need_lib_prefix
19279
19280# Do we need a version for libraries?
19281need_version=$need_version
19282
19283# Library versioning type.
19284version_type=$version_type
19285
19286# Shared library runtime path variable.
19287runpath_var=$runpath_var
19288
19289# Shared library path variable.
19290shlibpath_var=$shlibpath_var
19291
19292# Is shlibpath searched before the hard-coded library search path?
19293shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19294
19295# Format of library name prefix.
19296libname_spec=$lt_libname_spec
19297
19298# List of archive names.  First name is the real one, the rest are links.
19299# The last name is the one that the linker finds with -lNAME
19300library_names_spec=$lt_library_names_spec
19301
19302# The coded name of the library, if different from the real name.
19303soname_spec=$lt_soname_spec
19304
19305# Command to use after installation of a shared archive.
19306postinstall_cmds=$lt_postinstall_cmds
19307
19308# Command to use after uninstallation of a shared archive.
19309postuninstall_cmds=$lt_postuninstall_cmds
19310
19311# Commands used to finish a libtool library installation in a directory.
19312finish_cmds=$lt_finish_cmds
19313
19314# As "finish_cmds", except a single script fragment to be evaled but
19315# not shown.
19316finish_eval=$lt_finish_eval
19317
19318# Whether we should hardcode library paths into libraries.
19319hardcode_into_libs=$hardcode_into_libs
19320
19321# Compile-time system search path for libraries.
19322sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19323
19324# Run-time system search path for libraries.
19325sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19326
19327# Whether dlopen is supported.
19328dlopen_support=$enable_dlopen
19329
19330# Whether dlopen of programs is supported.
19331dlopen_self=$enable_dlopen_self
19332
19333# Whether dlopen of statically linked programs is supported.
19334dlopen_self_static=$enable_dlopen_self_static
19335
19336# Commands to strip libraries.
19337old_striplib=$lt_old_striplib
19338striplib=$lt_striplib
19339
19340
19341# The linker used to build libraries.
19342LD=$lt_LD
19343
19344# Commands used to build an old-style archive.
19345old_archive_cmds=$lt_old_archive_cmds
19346
19347# A language specific compiler.
19348CC=$lt_compiler
19349
19350# Is the compiler the GNU compiler?
19351with_gcc=$GCC
19352
19353# Compiler flag to turn off builtin functions.
19354no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19355
19356# How to pass a linker flag through the compiler.
19357wl=$lt_lt_prog_compiler_wl
19358
19359# Additional compiler flags for building library objects.
19360pic_flag=$lt_lt_prog_compiler_pic
19361
19362# Compiler flag to prevent dynamic linking.
19363link_static_flag=$lt_lt_prog_compiler_static
19364
19365# Does compiler simultaneously support -c and -o options?
19366compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19367
19368# Whether or not to add -lc for building shared libraries.
19369build_libtool_need_lc=$archive_cmds_need_lc
19370
19371# Whether or not to disallow shared libs when runtime libs are static.
19372allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19373
19374# Compiler flag to allow reflexive dlopens.
19375export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19376
19377# Compiler flag to generate shared objects directly from archives.
19378whole_archive_flag_spec=$lt_whole_archive_flag_spec
19379
19380# Whether the compiler copes with passing no objects directly.
19381compiler_needs_object=$lt_compiler_needs_object
19382
19383# Create an old-style archive from a shared archive.
19384old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19385
19386# Create a temporary old-style archive to link instead of a shared archive.
19387old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19388
19389# Commands used to build a shared archive.
19390archive_cmds=$lt_archive_cmds
19391archive_expsym_cmds=$lt_archive_expsym_cmds
19392
19393# Commands used to build a loadable module if different from building
19394# a shared archive.
19395module_cmds=$lt_module_cmds
19396module_expsym_cmds=$lt_module_expsym_cmds
19397
19398# Whether we are building with GNU ld or not.
19399with_gnu_ld=$lt_with_gnu_ld
19400
19401# Flag that allows shared libraries with undefined symbols to be built.
19402allow_undefined_flag=$lt_allow_undefined_flag
19403
19404# Flag that enforces no undefined symbols.
19405no_undefined_flag=$lt_no_undefined_flag
19406
19407# Flag to hardcode \$libdir into a binary during linking.
19408# This must work even if \$libdir does not exist
19409hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19410
19411# If ld is used when linking, flag to hardcode \$libdir into a binary
19412# during linking.  This must work even if \$libdir does not exist.
19413hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19414
19415# Whether we need a single "-rpath" flag with a separated argument.
19416hardcode_libdir_separator=$lt_hardcode_libdir_separator
19417
19418# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19419# DIR into the resulting binary.
19420hardcode_direct=$hardcode_direct
19421
19422# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19423# DIR into the resulting binary and the resulting library dependency is
19424# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19425# library is relocated.
19426hardcode_direct_absolute=$hardcode_direct_absolute
19427
19428# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19429# into the resulting binary.
19430hardcode_minus_L=$hardcode_minus_L
19431
19432# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19433# into the resulting binary.
19434hardcode_shlibpath_var=$hardcode_shlibpath_var
19435
19436# Set to "yes" if building a shared library automatically hardcodes DIR
19437# into the library and all subsequent libraries and executables linked
19438# against it.
19439hardcode_automatic=$hardcode_automatic
19440
19441# Set to yes if linker adds runtime paths of dependent libraries
19442# to runtime path list.
19443inherit_rpath=$inherit_rpath
19444
19445# Whether libtool must link a program against all its dependency libraries.
19446link_all_deplibs=$link_all_deplibs
19447
19448# Fix the shell variable \$srcfile for the compiler.
19449fix_srcfile_path=$lt_fix_srcfile_path
19450
19451# Set to "yes" if exported symbols are required.
19452always_export_symbols=$always_export_symbols
19453
19454# The commands to list exported symbols.
19455export_symbols_cmds=$lt_export_symbols_cmds
19456
19457# Symbols that should not be listed in the preloaded symbols.
19458exclude_expsyms=$lt_exclude_expsyms
19459
19460# Symbols that must always be exported.
19461include_expsyms=$lt_include_expsyms
19462
19463# Commands necessary for linking programs (against libraries) with templates.
19464prelink_cmds=$lt_prelink_cmds
19465
19466# Specify filename containing input files.
19467file_list_spec=$lt_file_list_spec
19468
19469# How to hardcode a shared library path into an executable.
19470hardcode_action=$hardcode_action
19471
19472# The directories searched by this compiler when creating a shared library.
19473compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19474
19475# Dependencies to place before and after the objects being linked to
19476# create a shared library.
19477predep_objects=$lt_predep_objects
19478postdep_objects=$lt_postdep_objects
19479predeps=$lt_predeps
19480postdeps=$lt_postdeps
19481
19482# The library search path used internally by the compiler when linking
19483# a shared library.
19484compiler_lib_search_path=$lt_compiler_lib_search_path
19485
19486# ### END LIBTOOL CONFIG
19487
19488_LT_EOF
19489
19490  case $host_os in
19491  aix3*)
19492    cat <<\_LT_EOF >> "$cfgfile"
19493# AIX sometimes has problems with the GCC collect2 program.  For some
19494# reason, if we set the COLLECT_NAMES environment variable, the problems
19495# vanish in a puff of smoke.
19496if test "X${COLLECT_NAMES+set}" != Xset; then
19497  COLLECT_NAMES=
19498  export COLLECT_NAMES
19499fi
19500_LT_EOF
19501    ;;
19502  esac
19503
19504
19505ltmain="$ac_aux_dir/ltmain.sh"
19506
19507
19508  # We use sed instead of cat because bash on DJGPP gets confused if
19509  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19510  # text mode, it properly converts lines to CR/LF.  This bash problem
19511  # is reportedly fixed, but why not run on old versions too?
19512  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19513    || (rm -f "$cfgfile"; exit 1)
19514
19515  case $xsi_shell in
19516  yes)
19517    cat << \_LT_EOF >> "$cfgfile"
19518
19519# func_dirname file append nondir_replacement
19520# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19521# otherwise set result to NONDIR_REPLACEMENT.
19522func_dirname ()
19523{
19524  case ${1} in
19525    */*) func_dirname_result="${1%/*}${2}" ;;
19526    *  ) func_dirname_result="${3}" ;;
19527  esac
19528}
19529
19530# func_basename file
19531func_basename ()
19532{
19533  func_basename_result="${1##*/}"
19534}
19535
19536# func_dirname_and_basename file append nondir_replacement
19537# perform func_basename and func_dirname in a single function
19538# call:
19539#   dirname:  Compute the dirname of FILE.  If nonempty,
19540#             add APPEND to the result, otherwise set result
19541#             to NONDIR_REPLACEMENT.
19542#             value returned in "$func_dirname_result"
19543#   basename: Compute filename of FILE.
19544#             value retuned in "$func_basename_result"
19545# Implementation must be kept synchronized with func_dirname
19546# and func_basename. For efficiency, we do not delegate to
19547# those functions but instead duplicate the functionality here.
19548func_dirname_and_basename ()
19549{
19550  case ${1} in
19551    */*) func_dirname_result="${1%/*}${2}" ;;
19552    *  ) func_dirname_result="${3}" ;;
19553  esac
19554  func_basename_result="${1##*/}"
19555}
19556
19557# func_stripname prefix suffix name
19558# strip PREFIX and SUFFIX off of NAME.
19559# PREFIX and SUFFIX must not contain globbing or regex special
19560# characters, hashes, percent signs, but SUFFIX may contain a leading
19561# dot (in which case that matches only a dot).
19562func_stripname ()
19563{
19564  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19565  # positional parameters, so assign one to ordinary parameter first.
19566  func_stripname_result=${3}
19567  func_stripname_result=${func_stripname_result#"${1}"}
19568  func_stripname_result=${func_stripname_result%"${2}"}
19569}
19570
19571# func_opt_split
19572func_opt_split ()
19573{
19574  func_opt_split_opt=${1%%=*}
19575  func_opt_split_arg=${1#*=}
19576}
19577
19578# func_lo2o object
19579func_lo2o ()
19580{
19581  case ${1} in
19582    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19583    *)    func_lo2o_result=${1} ;;
19584  esac
19585}
19586
19587# func_xform libobj-or-source
19588func_xform ()
19589{
19590  func_xform_result=${1%.*}.lo
19591}
19592
19593# func_arith arithmetic-term...
19594func_arith ()
19595{
19596  func_arith_result=$(( $* ))
19597}
19598
19599# func_len string
19600# STRING may not start with a hyphen.
19601func_len ()
19602{
19603  func_len_result=${#1}
19604}
19605
19606_LT_EOF
19607    ;;
19608  *) # Bourne compatible functions.
19609    cat << \_LT_EOF >> "$cfgfile"
19610
19611# func_dirname file append nondir_replacement
19612# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19613# otherwise set result to NONDIR_REPLACEMENT.
19614func_dirname ()
19615{
19616  # Extract subdirectory from the argument.
19617  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19618  if test "X$func_dirname_result" = "X${1}"; then
19619    func_dirname_result="${3}"
19620  else
19621    func_dirname_result="$func_dirname_result${2}"
19622  fi
19623}
19624
19625# func_basename file
19626func_basename ()
19627{
19628  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19629}
19630
19631
19632# func_stripname prefix suffix name
19633# strip PREFIX and SUFFIX off of NAME.
19634# PREFIX and SUFFIX must not contain globbing or regex special
19635# characters, hashes, percent signs, but SUFFIX may contain a leading
19636# dot (in which case that matches only a dot).
19637# func_strip_suffix prefix name
19638func_stripname ()
19639{
19640  case ${2} in
19641    .*) func_stripname_result=`$ECHO "X${3}" \
19642           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19643    *)  func_stripname_result=`$ECHO "X${3}" \
19644           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19645  esac
19646}
19647
19648# sed scripts:
19649my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19650my_sed_long_arg='1s/^-[^=]*=//'
19651
19652# func_opt_split
19653func_opt_split ()
19654{
19655  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19656  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19657}
19658
19659# func_lo2o object
19660func_lo2o ()
19661{
19662  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19663}
19664
19665# func_xform libobj-or-source
19666func_xform ()
19667{
19668  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19669}
19670
19671# func_arith arithmetic-term...
19672func_arith ()
19673{
19674  func_arith_result=`expr "$@"`
19675}
19676
19677# func_len string
19678# STRING may not start with a hyphen.
19679func_len ()
19680{
19681  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19682}
19683
19684_LT_EOF
19685esac
19686
19687case $lt_shell_append in
19688  yes)
19689    cat << \_LT_EOF >> "$cfgfile"
19690
19691# func_append var value
19692# Append VALUE to the end of shell variable VAR.
19693func_append ()
19694{
19695  eval "$1+=\$2"
19696}
19697_LT_EOF
19698    ;;
19699  *)
19700    cat << \_LT_EOF >> "$cfgfile"
19701
19702# func_append var value
19703# Append VALUE to the end of shell variable VAR.
19704func_append ()
19705{
19706  eval "$1=\$$1\$2"
19707}
19708
19709_LT_EOF
19710    ;;
19711  esac
19712
19713
19714  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19715    || (rm -f "$cfgfile"; exit 1)
19716
19717  mv -f "$cfgfile" "$ofile" ||
19718    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19719  chmod +x "$ofile"
19720
19721
19722    cat <<_LT_EOF >> "$ofile"
19723
19724# ### BEGIN LIBTOOL TAG CONFIG: CXX
19725
19726# The linker used to build libraries.
19727LD=$lt_LD_CXX
19728
19729# Commands used to build an old-style archive.
19730old_archive_cmds=$lt_old_archive_cmds_CXX
19731
19732# A language specific compiler.
19733CC=$lt_compiler_CXX
19734
19735# Is the compiler the GNU compiler?
19736with_gcc=$GCC_CXX
19737
19738# Compiler flag to turn off builtin functions.
19739no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19740
19741# How to pass a linker flag through the compiler.
19742wl=$lt_lt_prog_compiler_wl_CXX
19743
19744# Additional compiler flags for building library objects.
19745pic_flag=$lt_lt_prog_compiler_pic_CXX
19746
19747# Compiler flag to prevent dynamic linking.
19748link_static_flag=$lt_lt_prog_compiler_static_CXX
19749
19750# Does compiler simultaneously support -c and -o options?
19751compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19752
19753# Whether or not to add -lc for building shared libraries.
19754build_libtool_need_lc=$archive_cmds_need_lc_CXX
19755
19756# Whether or not to disallow shared libs when runtime libs are static.
19757allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19758
19759# Compiler flag to allow reflexive dlopens.
19760export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19761
19762# Compiler flag to generate shared objects directly from archives.
19763whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19764
19765# Whether the compiler copes with passing no objects directly.
19766compiler_needs_object=$lt_compiler_needs_object_CXX
19767
19768# Create an old-style archive from a shared archive.
19769old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19770
19771# Create a temporary old-style archive to link instead of a shared archive.
19772old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19773
19774# Commands used to build a shared archive.
19775archive_cmds=$lt_archive_cmds_CXX
19776archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19777
19778# Commands used to build a loadable module if different from building
19779# a shared archive.
19780module_cmds=$lt_module_cmds_CXX
19781module_expsym_cmds=$lt_module_expsym_cmds_CXX
19782
19783# Whether we are building with GNU ld or not.
19784with_gnu_ld=$lt_with_gnu_ld_CXX
19785
19786# Flag that allows shared libraries with undefined symbols to be built.
19787allow_undefined_flag=$lt_allow_undefined_flag_CXX
19788
19789# Flag that enforces no undefined symbols.
19790no_undefined_flag=$lt_no_undefined_flag_CXX
19791
19792# Flag to hardcode \$libdir into a binary during linking.
19793# This must work even if \$libdir does not exist
19794hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19795
19796# If ld is used when linking, flag to hardcode \$libdir into a binary
19797# during linking.  This must work even if \$libdir does not exist.
19798hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19799
19800# Whether we need a single "-rpath" flag with a separated argument.
19801hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19802
19803# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19804# DIR into the resulting binary.
19805hardcode_direct=$hardcode_direct_CXX
19806
19807# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19808# DIR into the resulting binary and the resulting library dependency is
19809# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19810# library is relocated.
19811hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19812
19813# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19814# into the resulting binary.
19815hardcode_minus_L=$hardcode_minus_L_CXX
19816
19817# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19818# into the resulting binary.
19819hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19820
19821# Set to "yes" if building a shared library automatically hardcodes DIR
19822# into the library and all subsequent libraries and executables linked
19823# against it.
19824hardcode_automatic=$hardcode_automatic_CXX
19825
19826# Set to yes if linker adds runtime paths of dependent libraries
19827# to runtime path list.
19828inherit_rpath=$inherit_rpath_CXX
19829
19830# Whether libtool must link a program against all its dependency libraries.
19831link_all_deplibs=$link_all_deplibs_CXX
19832
19833# Fix the shell variable \$srcfile for the compiler.
19834fix_srcfile_path=$lt_fix_srcfile_path_CXX
19835
19836# Set to "yes" if exported symbols are required.
19837always_export_symbols=$always_export_symbols_CXX
19838
19839# The commands to list exported symbols.
19840export_symbols_cmds=$lt_export_symbols_cmds_CXX
19841
19842# Symbols that should not be listed in the preloaded symbols.
19843exclude_expsyms=$lt_exclude_expsyms_CXX
19844
19845# Symbols that must always be exported.
19846include_expsyms=$lt_include_expsyms_CXX
19847
19848# Commands necessary for linking programs (against libraries) with templates.
19849prelink_cmds=$lt_prelink_cmds_CXX
19850
19851# Specify filename containing input files.
19852file_list_spec=$lt_file_list_spec_CXX
19853
19854# How to hardcode a shared library path into an executable.
19855hardcode_action=$hardcode_action_CXX
19856
19857# The directories searched by this compiler when creating a shared library.
19858compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19859
19860# Dependencies to place before and after the objects being linked to
19861# create a shared library.
19862predep_objects=$lt_predep_objects_CXX
19863postdep_objects=$lt_postdep_objects_CXX
19864predeps=$lt_predeps_CXX
19865postdeps=$lt_postdeps_CXX
19866
19867# The library search path used internally by the compiler when linking
19868# a shared library.
19869compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19870
19871# ### END LIBTOOL TAG CONFIG: CXX
19872_LT_EOF
19873
19874 ;;
19875
19876  esac
19877done # for ac_tag
19878
19879
19880{ (exit 0); exit 0; }
19881_ACEOF
19882chmod +x $CONFIG_STATUS
19883ac_clean_files=$ac_clean_files_save
19884
19885
19886# configure is writing to config.log, and then calls config.status.
19887# config.status does its own redirection, appending to config.log.
19888# Unfortunately, on DOS this fails, as config.log is still kept open
19889# by configure, so config.status won't be able to write to it; its
19890# output is simply discarded.  So we exec the FD to /dev/null,
19891# effectively closing config.log, so it can be properly (re)opened and
19892# appended to by config.status.  When coming back to configure, we
19893# need to make the FD available again.
19894if test "$no_create" != yes; then
19895  ac_cs_success=:
19896  ac_config_status_args=
19897  test "$silent" = yes &&
19898    ac_config_status_args="$ac_config_status_args --quiet"
19899  exec 5>/dev/null
19900  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19901  exec 5>>config.log
19902  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19903  # would make configure fail if this is the last instruction.
19904  $ac_cs_success || { (exit 1); exit 1; }
19905fi
19906
19907#
19908# CONFIG_SUBDIRS section.
19909#
19910if test "$no_recursion" != yes; then
19911
19912  # Remove --cache-file and --srcdir arguments so they do not pile up.
19913  ac_sub_configure_args=
19914  ac_prev=
19915  eval "set x $ac_configure_args"
19916  shift
19917  for ac_arg
19918  do
19919    if test -n "$ac_prev"; then
19920      ac_prev=
19921      continue
19922    fi
19923    case $ac_arg in
19924    -cache-file | --cache-file | --cache-fil | --cache-fi \
19925    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19926      ac_prev=cache_file ;;
19927    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19928    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19929    | --c=*)
19930      ;;
19931    --config-cache | -C)
19932      ;;
19933    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19934      ac_prev=srcdir ;;
19935    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19936      ;;
19937    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19938      ac_prev=prefix ;;
19939    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19940      ;;
19941    *)
19942      case $ac_arg in
19943      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19944      esac
19945      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19946    esac
19947  done
19948
19949  # Always prepend --prefix to ensure using the same prefix
19950  # in subdir configurations.
19951  ac_arg="--prefix=$prefix"
19952  case $ac_arg in
19953  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19954  esac
19955  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19956
19957  # Pass --silent
19958  if test "$silent" = yes; then
19959    ac_sub_configure_args="--silent $ac_sub_configure_args"
19960  fi
19961
19962  ac_popdir=`pwd`
19963  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19964
19965    # Do not complain, so a configure script can configure whichever
19966    # parts of a large source tree are present.
19967    test -d "$srcdir/$ac_dir" || continue
19968
19969    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19970    echo "$as_me:$LINENO: $ac_msg" >&5
19971    echo "$ac_msg" >&6
19972    { as_dir="$ac_dir"
19973  case $as_dir in #(
19974  -*) as_dir=./$as_dir;;
19975  esac
19976  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19977    as_dirs=
19978    while :; do
19979      case $as_dir in #(
19980      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19981      *) as_qdir=$as_dir;;
19982      esac
19983      as_dirs="'$as_qdir' $as_dirs"
19984      as_dir=`$as_dirname -- "$as_dir" ||
19985$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19986	 X"$as_dir" : 'X\(//\)[^/]' \| \
19987	 X"$as_dir" : 'X\(//\)$' \| \
19988	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19989echo X"$as_dir" |
19990    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19991	    s//\1/
19992	    q
19993	  }
19994	  /^X\(\/\/\)[^/].*/{
19995	    s//\1/
19996	    q
19997	  }
19998	  /^X\(\/\/\)$/{
19999	    s//\1/
20000	    q
20001	  }
20002	  /^X\(\/\).*/{
20003	    s//\1/
20004	    q
20005	  }
20006	  s/.*/./; q'`
20007      test -d "$as_dir" && break
20008    done
20009    test -z "$as_dirs" || eval "mkdir $as_dirs"
20010  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20011echo "$as_me: error: cannot create directory $as_dir" >&2;}
20012   { (exit 1); exit 1; }; }; }
20013    ac_builddir=.
20014
20015case "$ac_dir" in
20016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20017*)
20018  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20019  # A ".." for each directory in $ac_dir_suffix.
20020  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20021  case $ac_top_builddir_sub in
20022  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20023  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20024  esac ;;
20025esac
20026ac_abs_top_builddir=$ac_pwd
20027ac_abs_builddir=$ac_pwd$ac_dir_suffix
20028# for backward compatibility:
20029ac_top_builddir=$ac_top_build_prefix
20030
20031case $srcdir in
20032  .)  # We are building in place.
20033    ac_srcdir=.
20034    ac_top_srcdir=$ac_top_builddir_sub
20035    ac_abs_top_srcdir=$ac_pwd ;;
20036  [\\/]* | ?:[\\/]* )  # Absolute name.
20037    ac_srcdir=$srcdir$ac_dir_suffix;
20038    ac_top_srcdir=$srcdir
20039    ac_abs_top_srcdir=$srcdir ;;
20040  *) # Relative name.
20041    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20042    ac_top_srcdir=$ac_top_build_prefix$srcdir
20043    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20044esac
20045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20046
20047
20048    cd "$ac_dir"
20049
20050    # Check for guested configure; otherwise get Cygnus style configure.
20051    if test -f "$ac_srcdir/configure.gnu"; then
20052      ac_sub_configure=$ac_srcdir/configure.gnu
20053    elif test -f "$ac_srcdir/configure"; then
20054      ac_sub_configure=$ac_srcdir/configure
20055    elif test -f "$ac_srcdir/configure.in"; then
20056      # This should be Cygnus configure.
20057      ac_sub_configure=$ac_aux_dir/configure
20058    else
20059      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20060echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20061      ac_sub_configure=
20062    fi
20063
20064    # The recursion is here.
20065    if test -n "$ac_sub_configure"; then
20066      # Make the cache file name correct relative to the subdirectory.
20067      case $cache_file in
20068      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20069      *) # Relative name.
20070	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20071      esac
20072
20073      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20074echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20075      # The eval makes quoting arguments work.
20076      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20077	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20078	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20079echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20080   { (exit 1); exit 1; }; }
20081    fi
20082
20083    cd "$ac_popdir"
20084  done
20085fi
20086
20087