1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for Protocol Buffers 2.3.0.
4#
5# Report bugs to <protobuf@googlegroups.com>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178  if (eval "$as_required") 2>/dev/null; then :
179  as_have_required=yes
180else
181  as_have_required=no
182fi
183  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190  IFS=$as_save_IFS
191  test -z "$as_dir" && as_dir=.
192  as_found=:
193  case $as_dir in #(
194	 /*)
195	   for as_base in sh bash ksh sh5; do
196	     # Try only shells that exist, to save several forks.
197	     as_shell=$as_dir/$as_base
198	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200  CONFIG_SHELL=$as_shell as_have_required=yes
201		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202  break 2
203fi
204fi
205	   done;;
206       esac
207  as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211  CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216      if test "x$CONFIG_SHELL" != x; then :
217  # We cannot yet assume a decent shell, so we have to provide a
218	# neutralization value for shells without unset; and this also
219	# works around shells that cannot unset nonexistent variables.
220	# Preserve -v and -x to the replacement shell.
221	BASH_ENV=/dev/null
222	ENV=/dev/null
223	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224	export CONFIG_SHELL
225	case $- in # ((((
226	  *v*x* | *x*v* ) as_opts=-vx ;;
227	  *v* ) as_opts=-v ;;
228	  *x* ) as_opts=-x ;;
229	  * ) as_opts= ;;
230	esac
231	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: protobuf@googlegroups.com about your system, including
243$0: any error possibly output before this message. Then
244$0: install a modern shell, or manually run the script
245$0: under such a shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541# Check that we are running under the correct shell.
542SHELL=${CONFIG_SHELL-/bin/sh}
543
544case X$lt_ECHO in
545X*--fallback-echo)
546  # Remove one level of quotation (which was required for Make).
547  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
548  ;;
549esac
550
551ECHO=${lt_ECHO-echo}
552if test "X$1" = X--no-reexec; then
553  # Discard the --no-reexec flag, and continue.
554  shift
555elif test "X$1" = X--fallback-echo; then
556  # Avoid inline document here, it may be left over
557  :
558elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
559  # Yippee, $ECHO works!
560  :
561else
562  # Restart under the correct shell.
563  exec $SHELL "$0" --no-reexec ${1+"$@"}
564fi
565
566if test "X$1" = X--fallback-echo; then
567  # used as fallback echo
568  shift
569  cat <<_LT_EOF
570$*
571_LT_EOF
572  exit 0
573fi
574
575# The HP-UX ksh and POSIX shell print the target directory to stdout
576# if CDPATH is set.
577(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
578
579if test -z "$lt_ECHO"; then
580  if test "X${echo_test_string+set}" != Xset; then
581    # find a string as large as possible, as long as the shell can cope with it
582    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
583      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
584      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
585	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
586      then
587        break
588      fi
589    done
590  fi
591
592  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
593     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
594     test "X$echo_testing_string" = "X$echo_test_string"; then
595    :
596  else
597    # The Solaris, AIX, and Digital Unix default echo programs unquote
598    # backslashes.  This makes it impossible to quote backslashes using
599    #   echo "$something" | sed 's/\\/\\\\/g'
600    #
601    # So, first we look for a working echo in the user's PATH.
602
603    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
604    for dir in $PATH /usr/ucb; do
605      IFS="$lt_save_ifs"
606      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
607         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        ECHO="$dir/echo"
611        break
612      fi
613    done
614    IFS="$lt_save_ifs"
615
616    if test "X$ECHO" = Xecho; then
617      # We didn't find a better echo, so look for alternatives.
618      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
619         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
620         test "X$echo_testing_string" = "X$echo_test_string"; then
621        # This shell has a builtin print -r that does the trick.
622        ECHO='print -r'
623      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
624	   test "X$CONFIG_SHELL" != X/bin/ksh; then
625        # If we have ksh, try running configure again with it.
626        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
627        export ORIGINAL_CONFIG_SHELL
628        CONFIG_SHELL=/bin/ksh
629        export CONFIG_SHELL
630        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
631      else
632        # Try using printf.
633        ECHO='printf %s\n'
634        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
635	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
636	   test "X$echo_testing_string" = "X$echo_test_string"; then
637	  # Cool, printf works
638	  :
639        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
640	     test "X$echo_testing_string" = 'X\t' &&
641	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
642	     test "X$echo_testing_string" = "X$echo_test_string"; then
643	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
644	  export CONFIG_SHELL
645	  SHELL="$CONFIG_SHELL"
646	  export SHELL
647	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
648        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649	     test "X$echo_testing_string" = 'X\t' &&
650	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651	     test "X$echo_testing_string" = "X$echo_test_string"; then
652	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
653        else
654	  # maybe with a smaller string...
655	  prev=:
656
657	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
658	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
659	    then
660	      break
661	    fi
662	    prev="$cmd"
663	  done
664
665	  if test "$prev" != 'sed 50q "$0"'; then
666	    echo_test_string=`eval $prev`
667	    export echo_test_string
668	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
669	  else
670	    # Oops.  We lost completely, so just stick with echo.
671	    ECHO=echo
672	  fi
673        fi
674      fi
675    fi
676  fi
677fi
678
679# Copy echo and quote the copy suitably for passing to libtool from
680# the Makefile, instead of quoting the original, which is used later.
681lt_ECHO=$ECHO
682if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
683   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684fi
685
686
687
688
689test -n "$DJDIR" || exec 7<&0 </dev/null
690exec 6>&1
691
692# Name of the host.
693# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
694# so uname gets run too.
695ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696
697#
698# Initializations.
699#
700ac_default_prefix=/usr/local
701ac_clean_files=
702ac_config_libobj_dir=.
703LIBOBJS=
704cross_compiling=no
705subdirs=
706MFLAGS=
707MAKEFLAGS=
708
709# Identity of this package.
710PACKAGE_NAME='Protocol Buffers'
711PACKAGE_TARNAME='protobuf'
712PACKAGE_VERSION='2.3.0'
713PACKAGE_STRING='Protocol Buffers 2.3.0'
714PACKAGE_BUGREPORT='protobuf@googlegroups.com'
715PACKAGE_URL=''
716
717ac_unique_file="src/google/protobuf/message.cc"
718# Factoring default headers for most tests.
719ac_includes_default="\
720#include <stdio.h>
721#ifdef HAVE_SYS_TYPES_H
722# include <sys/types.h>
723#endif
724#ifdef HAVE_SYS_STAT_H
725# include <sys/stat.h>
726#endif
727#ifdef STDC_HEADERS
728# include <stdlib.h>
729# include <stddef.h>
730#else
731# ifdef HAVE_STDLIB_H
732#  include <stdlib.h>
733# endif
734#endif
735#ifdef HAVE_STRING_H
736# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
737#  include <memory.h>
738# endif
739# include <string.h>
740#endif
741#ifdef HAVE_STRINGS_H
742# include <strings.h>
743#endif
744#ifdef HAVE_INTTYPES_H
745# include <inttypes.h>
746#endif
747#ifdef HAVE_STDINT_H
748# include <stdint.h>
749#endif
750#ifdef HAVE_UNISTD_H
751# include <unistd.h>
752#endif"
753
754enable_option_checking=no
755ac_subst_vars='am__EXEEXT_FALSE
756am__EXEEXT_TRUE
757LTLIBOBJS
758subdirs
759PTHREAD_CFLAGS
760PTHREAD_LIBS
761PTHREAD_CC
762acx_pthread_config
763USE_EXTERNAL_PROTOC_FALSE
764USE_EXTERNAL_PROTOC_TRUE
765PROTOC
766HAVE_ZLIB_FALSE
767HAVE_ZLIB_TRUE
768POW_LIB
769LIBOBJS
770OTOOL64
771OTOOL
772LIPO
773NMEDIT
774DSYMUTIL
775lt_ECHO
776RANLIB
777AR
778LN_S
779NM
780ac_ct_DUMPBIN
781DUMPBIN
782LD
783FGREP
784SED
785LIBTOOL
786ISAINFO
787PROTOBUF_OPT_FLAG
788GCC_FALSE
789GCC_TRUE
790EGREP
791GREP
792CXXCPP
793am__fastdepCXX_FALSE
794am__fastdepCXX_TRUE
795CXXDEPMODE
796ac_ct_CXX
797CXXFLAGS
798CXX
799am__fastdepCC_FALSE
800am__fastdepCC_TRUE
801CCDEPMODE
802am__nodep
803AMDEPBACKSLASH
804AMDEP_FALSE
805AMDEP_TRUE
806am__quote
807am__include
808DEPDIR
809OBJEXT
810EXEEXT
811ac_ct_CC
812CPPFLAGS
813LDFLAGS
814CFLAGS
815CC
816am__untar
817am__tar
818AMTAR
819am__leading_dot
820SET_MAKE
821AWK
822mkdir_p
823MKDIR_P
824INSTALL_STRIP_PROGRAM
825STRIP
826install_sh
827MAKEINFO
828AUTOHEADER
829AUTOMAKE
830AUTOCONF
831ACLOCAL
832VERSION
833PACKAGE
834CYGPATH_W
835am__isrc
836INSTALL_DATA
837INSTALL_SCRIPT
838INSTALL_PROGRAM
839target_os
840target_vendor
841target_cpu
842target
843host_os
844host_vendor
845host_cpu
846host
847build_os
848build_vendor
849build_cpu
850build
851target_alias
852host_alias
853build_alias
854LIBS
855ECHO_T
856ECHO_N
857ECHO_C
858DEFS
859mandir
860localedir
861libdir
862psdir
863pdfdir
864dvidir
865htmldir
866infodir
867docdir
868oldincludedir
869includedir
870localstatedir
871sharedstatedir
872sysconfdir
873datadir
874datarootdir
875libexecdir
876sbindir
877bindir
878program_transform_name
879prefix
880exec_prefix
881PACKAGE_URL
882PACKAGE_BUGREPORT
883PACKAGE_STRING
884PACKAGE_VERSION
885PACKAGE_TARNAME
886PACKAGE_NAME
887PATH_SEPARATOR
888SHELL'
889ac_subst_files=''
890ac_user_opts='
891enable_option_checking
892with_zlib
893with_protoc
894enable_dependency_tracking
895enable_64bit_solaris
896enable_shared
897enable_static
898with_pic
899enable_fast_install
900with_gnu_ld
901enable_libtool_lock
902'
903      ac_precious_vars='build_alias
904host_alias
905target_alias
906CC
907CFLAGS
908LDFLAGS
909LIBS
910CPPFLAGS
911CXX
912CXXFLAGS
913CCC
914CXXCPP'
915ac_subdirs_all='gtest'
916
917# Initialize some variables set by options.
918ac_init_help=
919ac_init_version=false
920ac_unrecognized_opts=
921ac_unrecognized_sep=
922# The variables have the same names as the options, with
923# dashes changed to underlines.
924cache_file=/dev/null
925exec_prefix=NONE
926no_create=
927no_recursion=
928prefix=NONE
929program_prefix=NONE
930program_suffix=NONE
931program_transform_name=s,x,x,
932silent=
933site=
934srcdir=
935verbose=
936x_includes=NONE
937x_libraries=NONE
938
939# Installation directory options.
940# These are left unexpanded so users can "make install exec_prefix=/foo"
941# and all the variables that are supposed to be based on exec_prefix
942# by default will actually change.
943# Use braces instead of parens because sh, perl, etc. also accept them.
944# (The list follows the same order as the GNU Coding Standards.)
945bindir='${exec_prefix}/bin'
946sbindir='${exec_prefix}/sbin'
947libexecdir='${exec_prefix}/libexec'
948datarootdir='${prefix}/share'
949datadir='${datarootdir}'
950sysconfdir='${prefix}/etc'
951sharedstatedir='${prefix}/com'
952localstatedir='${prefix}/var'
953includedir='${prefix}/include'
954oldincludedir='/usr/include'
955docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
956infodir='${datarootdir}/info'
957htmldir='${docdir}'
958dvidir='${docdir}'
959pdfdir='${docdir}'
960psdir='${docdir}'
961libdir='${exec_prefix}/lib'
962localedir='${datarootdir}/locale'
963mandir='${datarootdir}/man'
964
965ac_prev=
966ac_dashdash=
967for ac_option
968do
969  # If the previous option needs an argument, assign it.
970  if test -n "$ac_prev"; then
971    eval $ac_prev=\$ac_option
972    ac_prev=
973    continue
974  fi
975
976  case $ac_option in
977  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
978  *=)   ac_optarg= ;;
979  *)    ac_optarg=yes ;;
980  esac
981
982  # Accept the important Cygnus configure options, so we can diagnose typos.
983
984  case $ac_dashdash$ac_option in
985  --)
986    ac_dashdash=yes ;;
987
988  -bindir | --bindir | --bindi | --bind | --bin | --bi)
989    ac_prev=bindir ;;
990  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
991    bindir=$ac_optarg ;;
992
993  -build | --build | --buil | --bui | --bu)
994    ac_prev=build_alias ;;
995  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
996    build_alias=$ac_optarg ;;
997
998  -cache-file | --cache-file | --cache-fil | --cache-fi \
999  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1000    ac_prev=cache_file ;;
1001  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1002  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1003    cache_file=$ac_optarg ;;
1004
1005  --config-cache | -C)
1006    cache_file=config.cache ;;
1007
1008  -datadir | --datadir | --datadi | --datad)
1009    ac_prev=datadir ;;
1010  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1011    datadir=$ac_optarg ;;
1012
1013  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1014  | --dataroo | --dataro | --datar)
1015    ac_prev=datarootdir ;;
1016  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1017  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1018    datarootdir=$ac_optarg ;;
1019
1020  -disable-* | --disable-*)
1021    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022    # Reject names that are not valid shell variable names.
1023    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1024      as_fn_error $? "invalid feature name: $ac_useropt"
1025    ac_useropt_orig=$ac_useropt
1026    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027    case $ac_user_opts in
1028      *"
1029"enable_$ac_useropt"
1030"*) ;;
1031      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032	 ac_unrecognized_sep=', ';;
1033    esac
1034    eval enable_$ac_useropt=no ;;
1035
1036  -docdir | --docdir | --docdi | --doc | --do)
1037    ac_prev=docdir ;;
1038  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1039    docdir=$ac_optarg ;;
1040
1041  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1042    ac_prev=dvidir ;;
1043  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1044    dvidir=$ac_optarg ;;
1045
1046  -enable-* | --enable-*)
1047    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048    # Reject names that are not valid shell variable names.
1049    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1050      as_fn_error $? "invalid feature name: $ac_useropt"
1051    ac_useropt_orig=$ac_useropt
1052    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053    case $ac_user_opts in
1054      *"
1055"enable_$ac_useropt"
1056"*) ;;
1057      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058	 ac_unrecognized_sep=', ';;
1059    esac
1060    eval enable_$ac_useropt=\$ac_optarg ;;
1061
1062  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1063  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1064  | --exec | --exe | --ex)
1065    ac_prev=exec_prefix ;;
1066  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1067  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1068  | --exec=* | --exe=* | --ex=*)
1069    exec_prefix=$ac_optarg ;;
1070
1071  -gas | --gas | --ga | --g)
1072    # Obsolete; use --with-gas.
1073    with_gas=yes ;;
1074
1075  -help | --help | --hel | --he | -h)
1076    ac_init_help=long ;;
1077  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1078    ac_init_help=recursive ;;
1079  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1080    ac_init_help=short ;;
1081
1082  -host | --host | --hos | --ho)
1083    ac_prev=host_alias ;;
1084  -host=* | --host=* | --hos=* | --ho=*)
1085    host_alias=$ac_optarg ;;
1086
1087  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1088    ac_prev=htmldir ;;
1089  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1090  | --ht=*)
1091    htmldir=$ac_optarg ;;
1092
1093  -includedir | --includedir | --includedi | --included | --include \
1094  | --includ | --inclu | --incl | --inc)
1095    ac_prev=includedir ;;
1096  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1097  | --includ=* | --inclu=* | --incl=* | --inc=*)
1098    includedir=$ac_optarg ;;
1099
1100  -infodir | --infodir | --infodi | --infod | --info | --inf)
1101    ac_prev=infodir ;;
1102  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1103    infodir=$ac_optarg ;;
1104
1105  -libdir | --libdir | --libdi | --libd)
1106    ac_prev=libdir ;;
1107  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1108    libdir=$ac_optarg ;;
1109
1110  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1111  | --libexe | --libex | --libe)
1112    ac_prev=libexecdir ;;
1113  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1114  | --libexe=* | --libex=* | --libe=*)
1115    libexecdir=$ac_optarg ;;
1116
1117  -localedir | --localedir | --localedi | --localed | --locale)
1118    ac_prev=localedir ;;
1119  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1120    localedir=$ac_optarg ;;
1121
1122  -localstatedir | --localstatedir | --localstatedi | --localstated \
1123  | --localstate | --localstat | --localsta | --localst | --locals)
1124    ac_prev=localstatedir ;;
1125  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1126  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1127    localstatedir=$ac_optarg ;;
1128
1129  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1130    ac_prev=mandir ;;
1131  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1132    mandir=$ac_optarg ;;
1133
1134  -nfp | --nfp | --nf)
1135    # Obsolete; use --without-fp.
1136    with_fp=no ;;
1137
1138  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1139  | --no-cr | --no-c | -n)
1140    no_create=yes ;;
1141
1142  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1143  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1144    no_recursion=yes ;;
1145
1146  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1147  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1148  | --oldin | --oldi | --old | --ol | --o)
1149    ac_prev=oldincludedir ;;
1150  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1151  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1152  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1153    oldincludedir=$ac_optarg ;;
1154
1155  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1156    ac_prev=prefix ;;
1157  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1158    prefix=$ac_optarg ;;
1159
1160  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1161  | --program-pre | --program-pr | --program-p)
1162    ac_prev=program_prefix ;;
1163  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1164  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1165    program_prefix=$ac_optarg ;;
1166
1167  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1168  | --program-suf | --program-su | --program-s)
1169    ac_prev=program_suffix ;;
1170  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1171  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1172    program_suffix=$ac_optarg ;;
1173
1174  -program-transform-name | --program-transform-name \
1175  | --program-transform-nam | --program-transform-na \
1176  | --program-transform-n | --program-transform- \
1177  | --program-transform | --program-transfor \
1178  | --program-transfo | --program-transf \
1179  | --program-trans | --program-tran \
1180  | --progr-tra | --program-tr | --program-t)
1181    ac_prev=program_transform_name ;;
1182  -program-transform-name=* | --program-transform-name=* \
1183  | --program-transform-nam=* | --program-transform-na=* \
1184  | --program-transform-n=* | --program-transform-=* \
1185  | --program-transform=* | --program-transfor=* \
1186  | --program-transfo=* | --program-transf=* \
1187  | --program-trans=* | --program-tran=* \
1188  | --progr-tra=* | --program-tr=* | --program-t=*)
1189    program_transform_name=$ac_optarg ;;
1190
1191  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1192    ac_prev=pdfdir ;;
1193  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1194    pdfdir=$ac_optarg ;;
1195
1196  -psdir | --psdir | --psdi | --psd | --ps)
1197    ac_prev=psdir ;;
1198  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1199    psdir=$ac_optarg ;;
1200
1201  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1202  | -silent | --silent | --silen | --sile | --sil)
1203    silent=yes ;;
1204
1205  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206    ac_prev=sbindir ;;
1207  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208  | --sbi=* | --sb=*)
1209    sbindir=$ac_optarg ;;
1210
1211  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213  | --sharedst | --shareds | --shared | --share | --shar \
1214  | --sha | --sh)
1215    ac_prev=sharedstatedir ;;
1216  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219  | --sha=* | --sh=*)
1220    sharedstatedir=$ac_optarg ;;
1221
1222  -site | --site | --sit)
1223    ac_prev=site ;;
1224  -site=* | --site=* | --sit=*)
1225    site=$ac_optarg ;;
1226
1227  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228    ac_prev=srcdir ;;
1229  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230    srcdir=$ac_optarg ;;
1231
1232  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233  | --syscon | --sysco | --sysc | --sys | --sy)
1234    ac_prev=sysconfdir ;;
1235  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237    sysconfdir=$ac_optarg ;;
1238
1239  -target | --target | --targe | --targ | --tar | --ta | --t)
1240    ac_prev=target_alias ;;
1241  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242    target_alias=$ac_optarg ;;
1243
1244  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245    verbose=yes ;;
1246
1247  -version | --version | --versio | --versi | --vers | -V)
1248    ac_init_version=: ;;
1249
1250  -with-* | --with-*)
1251    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252    # Reject names that are not valid shell variable names.
1253    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254      as_fn_error $? "invalid package name: $ac_useropt"
1255    ac_useropt_orig=$ac_useropt
1256    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257    case $ac_user_opts in
1258      *"
1259"with_$ac_useropt"
1260"*) ;;
1261      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262	 ac_unrecognized_sep=', ';;
1263    esac
1264    eval with_$ac_useropt=\$ac_optarg ;;
1265
1266  -without-* | --without-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      as_fn_error $? "invalid package name: $ac_useropt"
1271    ac_useropt_orig=$ac_useropt
1272    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273    case $ac_user_opts in
1274      *"
1275"with_$ac_useropt"
1276"*) ;;
1277      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278	 ac_unrecognized_sep=', ';;
1279    esac
1280    eval with_$ac_useropt=no ;;
1281
1282  --x)
1283    # Obsolete; use --with-x.
1284    with_x=yes ;;
1285
1286  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287  | --x-incl | --x-inc | --x-in | --x-i)
1288    ac_prev=x_includes ;;
1289  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291    x_includes=$ac_optarg ;;
1292
1293  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295    ac_prev=x_libraries ;;
1296  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298    x_libraries=$ac_optarg ;;
1299
1300  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1301Try \`$0 --help' for more information"
1302    ;;
1303
1304  *=*)
1305    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306    # Reject names that are not valid shell variable names.
1307    case $ac_envvar in #(
1308      '' | [0-9]* | *[!_$as_cr_alnum]* )
1309      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1310    esac
1311    eval $ac_envvar=\$ac_optarg
1312    export $ac_envvar ;;
1313
1314  *)
1315    # FIXME: should be removed in autoconf 3.0.
1316    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320    ;;
1321
1322  esac
1323done
1324
1325if test -n "$ac_prev"; then
1326  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327  as_fn_error $? "missing argument to $ac_option"
1328fi
1329
1330if test -n "$ac_unrecognized_opts"; then
1331  case $enable_option_checking in
1332    no) ;;
1333    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335  esac
1336fi
1337
1338# Check all directory arguments for consistency.
1339for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340		datadir sysconfdir sharedstatedir localstatedir includedir \
1341		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342		libdir localedir mandir
1343do
1344  eval ac_val=\$$ac_var
1345  # Remove trailing slashes.
1346  case $ac_val in
1347    */ )
1348      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349      eval $ac_var=\$ac_val;;
1350  esac
1351  # Be sure to have absolute directory names.
1352  case $ac_val in
1353    [\\/$]* | ?:[\\/]* )  continue;;
1354    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355  esac
1356  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357done
1358
1359# There might be people who depend on the old broken behavior: `$host'
1360# used to hold the argument of --host etc.
1361# FIXME: To remove some day.
1362build=$build_alias
1363host=$host_alias
1364target=$target_alias
1365
1366# FIXME: To remove some day.
1367if test "x$host_alias" != x; then
1368  if test "x$build_alias" = x; then
1369    cross_compiling=maybe
1370    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1371    If a cross compiler is detected then cross compile mode will be used" >&2
1372  elif test "x$build_alias" != "x$host_alias"; then
1373    cross_compiling=yes
1374  fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
1382
1383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1386  as_fn_error $? "working directory cannot be determined"
1387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388  as_fn_error $? "pwd does not report name of working directory"
1389
1390
1391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393  ac_srcdir_defaulted=yes
1394  # Try the directory containing this script, then the parent directory.
1395  ac_confdir=`$as_dirname -- "$as_myself" ||
1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397	 X"$as_myself" : 'X\(//\)[^/]' \| \
1398	 X"$as_myself" : 'X\(//\)$' \| \
1399	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400$as_echo X"$as_myself" |
1401    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402	    s//\1/
1403	    q
1404	  }
1405	  /^X\(\/\/\)[^/].*/{
1406	    s//\1/
1407	    q
1408	  }
1409	  /^X\(\/\/\)$/{
1410	    s//\1/
1411	    q
1412	  }
1413	  /^X\(\/\).*/{
1414	    s//\1/
1415	    q
1416	  }
1417	  s/.*/./; q'`
1418  srcdir=$ac_confdir
1419  if test ! -r "$srcdir/$ac_unique_file"; then
1420    srcdir=..
1421  fi
1422else
1423  ac_srcdir_defaulted=no
1424fi
1425if test ! -r "$srcdir/$ac_unique_file"; then
1426  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1427  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1428fi
1429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
1431	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432	pwd)`
1433# When building in place, set srcdir=.
1434if test "$ac_abs_confdir" = "$ac_pwd"; then
1435  srcdir=.
1436fi
1437# Remove unnecessary trailing slashes from srcdir.
1438# Double slashes in file names in object file debugging info
1439# mess up M-x gdb in Emacs.
1440case $srcdir in
1441*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442esac
1443for ac_var in $ac_precious_vars; do
1444  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445  eval ac_env_${ac_var}_value=\$${ac_var}
1446  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448done
1449
1450#
1451# Report the --help message.
1452#
1453if test "$ac_init_help" = "long"; then
1454  # Omit some internal or obsolete options to make the list less imposing.
1455  # This message is too long to be a string in the A/UX 3.1 sh.
1456  cat <<_ACEOF
1457\`configure' configures Protocol Buffers 2.3.0 to adapt to many kinds of systems.
1458
1459Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464Defaults for the options are specified in brackets.
1465
1466Configuration:
1467  -h, --help              display this help and exit
1468      --help=short        display options specific to this package
1469      --help=recursive    display the short help of all the included packages
1470  -V, --version           display version information and exit
1471  -q, --quiet, --silent   do not print \`checking ...' messages
1472      --cache-file=FILE   cache test results in FILE [disabled]
1473  -C, --config-cache      alias for \`--cache-file=config.cache'
1474  -n, --no-create         do not create output files
1475      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477Installation directories:
1478  --prefix=PREFIX         install architecture-independent files in PREFIX
1479                          [$ac_default_prefix]
1480  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                          [PREFIX]
1482
1483By default, \`make install' will install all the files in
1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486for instance \`--prefix=\$HOME'.
1487
1488For better control, use the options below.
1489
1490Fine tuning of the installation directories:
1491  --bindir=DIR            user executables [EPREFIX/bin]
1492  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493  --libexecdir=DIR        program executables [EPREFIX/libexec]
1494  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497  --libdir=DIR            object code libraries [EPREFIX/lib]
1498  --includedir=DIR        C header files [PREFIX/include]
1499  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1500  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1501  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1502  --infodir=DIR           info documentation [DATAROOTDIR/info]
1503  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1504  --mandir=DIR            man documentation [DATAROOTDIR/man]
1505  --docdir=DIR            documentation root [DATAROOTDIR/doc/protobuf]
1506  --htmldir=DIR           html documentation [DOCDIR]
1507  --dvidir=DIR            dvi documentation [DOCDIR]
1508  --pdfdir=DIR            pdf documentation [DOCDIR]
1509  --psdir=DIR             ps documentation [DOCDIR]
1510_ACEOF
1511
1512  cat <<\_ACEOF
1513
1514Program names:
1515  --program-prefix=PREFIX            prepend PREFIX to installed program names
1516  --program-suffix=SUFFIX            append SUFFIX to installed program names
1517  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1518
1519System types:
1520  --build=BUILD     configure for building on BUILD [guessed]
1521  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1522  --target=TARGET   configure for building compilers for TARGET [HOST]
1523_ACEOF
1524fi
1525
1526if test -n "$ac_init_help"; then
1527  case $ac_init_help in
1528     short | recursive ) echo "Configuration of Protocol Buffers 2.3.0:";;
1529   esac
1530  cat <<\_ACEOF
1531
1532Optional Features:
1533  --disable-option-checking  ignore unrecognized --enable/--with options
1534  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536  --disable-dependency-tracking  speeds up one-time build
1537  --enable-dependency-tracking   do not reject slow dependency extractors
1538  --disable-64bit-solaris Build 64 bit binary on Solaris [default=on]
1539  --enable-shared[=PKGS]  build shared libraries [default=yes]
1540  --enable-static[=PKGS]  build static libraries [default=yes]
1541  --enable-fast-install[=PKGS]
1542                          optimize for fast installation [default=yes]
1543  --disable-libtool-lock  avoid locking (might break parallel builds)
1544
1545Optional Packages:
1546  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1547  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1548  --with-zlib             include classes for streaming compressed data in and
1549                          out [default=check]
1550  --with-protoc=COMMAND   use the given protoc command instead of building a
1551                          new one when building tests (useful for
1552                          cross-compiling)
1553  --with-pic              try to use only PIC/non-PIC objects [default=use
1554                          both]
1555  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1556
1557Some influential environment variables:
1558  CC          C compiler command
1559  CFLAGS      C compiler flags
1560  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561              nonstandard directory <lib dir>
1562  LIBS        libraries to pass to the linker, e.g. -l<library>
1563  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564              you have headers in a nonstandard directory <include dir>
1565  CXX         C++ compiler command
1566  CXXFLAGS    C++ compiler flags
1567  CXXCPP      C++ preprocessor
1568
1569Use these variables to override the choices made by `configure' or to help
1570it to find libraries and programs with nonstandard names/locations.
1571
1572Report bugs to <protobuf@googlegroups.com>.
1573_ACEOF
1574ac_status=$?
1575fi
1576
1577if test "$ac_init_help" = "recursive"; then
1578  # If there are subdirs, report their specific --help.
1579  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580    test -d "$ac_dir" ||
1581      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582      continue
1583    ac_builddir=.
1584
1585case "$ac_dir" in
1586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587*)
1588  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589  # A ".." for each directory in $ac_dir_suffix.
1590  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591  case $ac_top_builddir_sub in
1592  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594  esac ;;
1595esac
1596ac_abs_top_builddir=$ac_pwd
1597ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598# for backward compatibility:
1599ac_top_builddir=$ac_top_build_prefix
1600
1601case $srcdir in
1602  .)  # We are building in place.
1603    ac_srcdir=.
1604    ac_top_srcdir=$ac_top_builddir_sub
1605    ac_abs_top_srcdir=$ac_pwd ;;
1606  [\\/]* | ?:[\\/]* )  # Absolute name.
1607    ac_srcdir=$srcdir$ac_dir_suffix;
1608    ac_top_srcdir=$srcdir
1609    ac_abs_top_srcdir=$srcdir ;;
1610  *) # Relative name.
1611    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612    ac_top_srcdir=$ac_top_build_prefix$srcdir
1613    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614esac
1615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617    cd "$ac_dir" || { ac_status=$?; continue; }
1618    # Check for guested configure.
1619    if test -f "$ac_srcdir/configure.gnu"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622    elif test -f "$ac_srcdir/configure"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure" --help=recursive
1625    else
1626      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627    fi || ac_status=$?
1628    cd "$ac_pwd" || { ac_status=$?; break; }
1629  done
1630fi
1631
1632test -n "$ac_init_help" && exit $ac_status
1633if $ac_init_version; then
1634  cat <<\_ACEOF
1635Protocol Buffers configure 2.3.0
1636generated by GNU Autoconf 2.68
1637
1638Copyright (C) 2010 Free Software Foundation, Inc.
1639This configure script is free software; the Free Software Foundation
1640gives unlimited permission to copy, distribute and modify it.
1641_ACEOF
1642  exit
1643fi
1644
1645## ------------------------ ##
1646## Autoconf initialization. ##
1647## ------------------------ ##
1648
1649# ac_fn_c_try_compile LINENO
1650# --------------------------
1651# Try to compile conftest.$ac_ext, and return whether this succeeded.
1652ac_fn_c_try_compile ()
1653{
1654  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655  rm -f conftest.$ac_objext
1656  if { { ac_try="$ac_compile"
1657case "(($ac_try" in
1658  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659  *) ac_try_echo=$ac_try;;
1660esac
1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662$as_echo "$ac_try_echo"; } >&5
1663  (eval "$ac_compile") 2>conftest.err
1664  ac_status=$?
1665  if test -s conftest.err; then
1666    grep -v '^ *+' conftest.err >conftest.er1
1667    cat conftest.er1 >&5
1668    mv -f conftest.er1 conftest.err
1669  fi
1670  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671  test $ac_status = 0; } && {
1672	 test -z "$ac_c_werror_flag" ||
1673	 test ! -s conftest.err
1674       } && test -s conftest.$ac_objext; then :
1675  ac_retval=0
1676else
1677  $as_echo "$as_me: failed program was:" >&5
1678sed 's/^/| /' conftest.$ac_ext >&5
1679
1680	ac_retval=1
1681fi
1682  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683  as_fn_set_status $ac_retval
1684
1685} # ac_fn_c_try_compile
1686
1687# ac_fn_cxx_try_compile LINENO
1688# ----------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_cxx_try_compile ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  rm -f conftest.$ac_objext
1694  if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_compile") 2>conftest.err
1702  ac_status=$?
1703  if test -s conftest.err; then
1704    grep -v '^ *+' conftest.err >conftest.er1
1705    cat conftest.er1 >&5
1706    mv -f conftest.er1 conftest.err
1707  fi
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && {
1710	 test -z "$ac_cxx_werror_flag" ||
1711	 test ! -s conftest.err
1712       } && test -s conftest.$ac_objext; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718	ac_retval=1
1719fi
1720  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_cxx_try_compile
1724
1725# ac_fn_cxx_try_cpp LINENO
1726# ------------------------
1727# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_cxx_try_cpp ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  if { { ac_try="$ac_cpp conftest.$ac_ext"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739  ac_status=$?
1740  if test -s conftest.err; then
1741    grep -v '^ *+' conftest.err >conftest.er1
1742    cat conftest.er1 >&5
1743    mv -f conftest.er1 conftest.err
1744  fi
1745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746  test $ac_status = 0; } > conftest.i && {
1747	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1748	 test ! -s conftest.err
1749       }; then :
1750  ac_retval=0
1751else
1752  $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755    ac_retval=1
1756fi
1757  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758  as_fn_set_status $ac_retval
1759
1760} # ac_fn_cxx_try_cpp
1761
1762# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1763# ---------------------------------------------------------
1764# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1765# the include files in INCLUDES and setting the cache variable VAR
1766# accordingly.
1767ac_fn_cxx_check_header_mongrel ()
1768{
1769  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770  if eval \${$3+:} false; then :
1771  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772$as_echo_n "checking for $2... " >&6; }
1773if eval \${$3+:} false; then :
1774  $as_echo_n "(cached) " >&6
1775fi
1776eval ac_res=\$$3
1777	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778$as_echo "$ac_res" >&6; }
1779else
1780  # Is the header compilable?
1781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1782$as_echo_n "checking $2 usability... " >&6; }
1783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784/* end confdefs.h.  */
1785$4
1786#include <$2>
1787_ACEOF
1788if ac_fn_cxx_try_compile "$LINENO"; then :
1789  ac_header_compiler=yes
1790else
1791  ac_header_compiler=no
1792fi
1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1795$as_echo "$ac_header_compiler" >&6; }
1796
1797# Is the header present?
1798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1799$as_echo_n "checking $2 presence... " >&6; }
1800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801/* end confdefs.h.  */
1802#include <$2>
1803_ACEOF
1804if ac_fn_cxx_try_cpp "$LINENO"; then :
1805  ac_header_preproc=yes
1806else
1807  ac_header_preproc=no
1808fi
1809rm -f conftest.err conftest.i conftest.$ac_ext
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1811$as_echo "$ac_header_preproc" >&6; }
1812
1813# So?  What about this header?
1814case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1815  yes:no: )
1816    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1817$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1818    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1819$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1820    ;;
1821  no:yes:* )
1822    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1823$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1824    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1825$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1826    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1827$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1829$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1830    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832( $as_echo "## ---------------------------------------- ##
1833## Report this to protobuf@googlegroups.com ##
1834## ---------------------------------------- ##"
1835     ) | sed "s/^/$as_me: WARNING:     /" >&2
1836    ;;
1837esac
1838  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
1840if eval \${$3+:} false; then :
1841  $as_echo_n "(cached) " >&6
1842else
1843  eval "$3=\$ac_header_compiler"
1844fi
1845eval ac_res=\$$3
1846	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847$as_echo "$ac_res" >&6; }
1848fi
1849  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850
1851} # ac_fn_cxx_check_header_mongrel
1852
1853# ac_fn_cxx_try_run LINENO
1854# ------------------------
1855# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1856# that executables *can* be run.
1857ac_fn_cxx_try_run ()
1858{
1859  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860  if { { ac_try="$ac_link"
1861case "(($ac_try" in
1862  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1863  *) ac_try_echo=$ac_try;;
1864esac
1865eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866$as_echo "$ac_try_echo"; } >&5
1867  (eval "$ac_link") 2>&5
1868  ac_status=$?
1869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1871  { { case "(($ac_try" in
1872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873  *) ac_try_echo=$ac_try;;
1874esac
1875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876$as_echo "$ac_try_echo"; } >&5
1877  (eval "$ac_try") 2>&5
1878  ac_status=$?
1879  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880  test $ac_status = 0; }; }; then :
1881  ac_retval=0
1882else
1883  $as_echo "$as_me: program exited with status $ac_status" >&5
1884       $as_echo "$as_me: failed program was:" >&5
1885sed 's/^/| /' conftest.$ac_ext >&5
1886
1887       ac_retval=$ac_status
1888fi
1889  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1890  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891  as_fn_set_status $ac_retval
1892
1893} # ac_fn_cxx_try_run
1894
1895# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1896# ---------------------------------------------------------
1897# Tests whether HEADER exists and can be compiled using the include files in
1898# INCLUDES, setting the cache variable VAR accordingly.
1899ac_fn_cxx_check_header_compile ()
1900{
1901  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval \${$3+:} false; then :
1905  $as_echo_n "(cached) " >&6
1906else
1907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908/* end confdefs.h.  */
1909$4
1910#include <$2>
1911_ACEOF
1912if ac_fn_cxx_try_compile "$LINENO"; then :
1913  eval "$3=yes"
1914else
1915  eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924} # ac_fn_cxx_check_header_compile
1925
1926# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
1927# -----------------------------------------------
1928# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1929# accordingly.
1930ac_fn_cxx_check_decl ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  as_decl_name=`echo $2|sed 's/ *(.*//'`
1934  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1936$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1937if eval \${$3+:} false; then :
1938  $as_echo_n "(cached) " >&6
1939else
1940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h.  */
1942$4
1943int
1944main ()
1945{
1946#ifndef $as_decl_name
1947#ifdef __cplusplus
1948  (void) $as_decl_use;
1949#else
1950  (void) $as_decl_name;
1951#endif
1952#endif
1953
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_cxx_try_compile "$LINENO"; then :
1959  eval "$3=yes"
1960else
1961  eval "$3=no"
1962fi
1963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964fi
1965eval ac_res=\$$3
1966	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1967$as_echo "$ac_res" >&6; }
1968  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969
1970} # ac_fn_cxx_check_decl
1971
1972# ac_fn_c_try_link LINENO
1973# -----------------------
1974# Try to link conftest.$ac_ext, and return whether this succeeded.
1975ac_fn_c_try_link ()
1976{
1977  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978  rm -f conftest.$ac_objext conftest$ac_exeext
1979  if { { ac_try="$ac_link"
1980case "(($ac_try" in
1981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982  *) ac_try_echo=$ac_try;;
1983esac
1984eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985$as_echo "$ac_try_echo"; } >&5
1986  (eval "$ac_link") 2>conftest.err
1987  ac_status=$?
1988  if test -s conftest.err; then
1989    grep -v '^ *+' conftest.err >conftest.er1
1990    cat conftest.er1 >&5
1991    mv -f conftest.er1 conftest.err
1992  fi
1993  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994  test $ac_status = 0; } && {
1995	 test -z "$ac_c_werror_flag" ||
1996	 test ! -s conftest.err
1997       } && test -s conftest$ac_exeext && {
1998	 test "$cross_compiling" = yes ||
1999	 $as_test_x conftest$ac_exeext
2000       }; then :
2001  ac_retval=0
2002else
2003  $as_echo "$as_me: failed program was:" >&5
2004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006	ac_retval=1
2007fi
2008  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010  # interfere with the next link command; also delete a directory that is
2011  # left behind by Apple's compiler.  We do this before executing the actions.
2012  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014  as_fn_set_status $ac_retval
2015
2016} # ac_fn_c_try_link
2017
2018# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2019# -------------------------------------------------------
2020# Tests whether HEADER exists and can be compiled using the include files in
2021# INCLUDES, setting the cache variable VAR accordingly.
2022ac_fn_c_check_header_compile ()
2023{
2024  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026$as_echo_n "checking for $2... " >&6; }
2027if eval \${$3+:} false; then :
2028  $as_echo_n "(cached) " >&6
2029else
2030  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031/* end confdefs.h.  */
2032$4
2033#include <$2>
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036  eval "$3=yes"
2037else
2038  eval "$3=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042eval ac_res=\$$3
2043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044$as_echo "$ac_res" >&6; }
2045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
2047} # ac_fn_c_check_header_compile
2048
2049# ac_fn_c_check_func LINENO FUNC VAR
2050# ----------------------------------
2051# Tests whether FUNC exists, setting the cache variable VAR accordingly
2052ac_fn_c_check_func ()
2053{
2054  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056$as_echo_n "checking for $2... " >&6; }
2057if eval \${$3+:} false; then :
2058  $as_echo_n "(cached) " >&6
2059else
2060  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061/* end confdefs.h.  */
2062/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2064#define $2 innocuous_$2
2065
2066/* System header to define __stub macros and hopefully few prototypes,
2067    which can conflict with char $2 (); below.
2068    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069    <limits.h> exists even on freestanding compilers.  */
2070
2071#ifdef __STDC__
2072# include <limits.h>
2073#else
2074# include <assert.h>
2075#endif
2076
2077#undef $2
2078
2079/* Override any GCC internal prototype to avoid an error.
2080   Use char because int might match the return type of a GCC
2081   builtin and then its argument prototype would still apply.  */
2082#ifdef __cplusplus
2083extern "C"
2084#endif
2085char $2 ();
2086/* The GNU C library defines this for functions which it implements
2087    to always fail with ENOSYS.  Some functions are actually named
2088    something starting with __ and the normal name is an alias.  */
2089#if defined __stub_$2 || defined __stub___$2
2090choke me
2091#endif
2092
2093int
2094main ()
2095{
2096return $2 ();
2097  ;
2098  return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_link "$LINENO"; then :
2102  eval "$3=yes"
2103else
2104  eval "$3=no"
2105fi
2106rm -f core conftest.err conftest.$ac_objext \
2107    conftest$ac_exeext conftest.$ac_ext
2108fi
2109eval ac_res=\$$3
2110	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111$as_echo "$ac_res" >&6; }
2112  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114} # ac_fn_c_check_func
2115
2116# ac_fn_cxx_try_link LINENO
2117# -------------------------
2118# Try to link conftest.$ac_ext, and return whether this succeeded.
2119ac_fn_cxx_try_link ()
2120{
2121  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122  rm -f conftest.$ac_objext conftest$ac_exeext
2123  if { { ac_try="$ac_link"
2124case "(($ac_try" in
2125  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126  *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130  (eval "$ac_link") 2>conftest.err
2131  ac_status=$?
2132  if test -s conftest.err; then
2133    grep -v '^ *+' conftest.err >conftest.er1
2134    cat conftest.er1 >&5
2135    mv -f conftest.er1 conftest.err
2136  fi
2137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138  test $ac_status = 0; } && {
2139	 test -z "$ac_cxx_werror_flag" ||
2140	 test ! -s conftest.err
2141       } && test -s conftest$ac_exeext && {
2142	 test "$cross_compiling" = yes ||
2143	 $as_test_x conftest$ac_exeext
2144       }; then :
2145  ac_retval=0
2146else
2147  $as_echo "$as_me: failed program was:" >&5
2148sed 's/^/| /' conftest.$ac_ext >&5
2149
2150	ac_retval=1
2151fi
2152  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2153  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2154  # interfere with the next link command; also delete a directory that is
2155  # left behind by Apple's compiler.  We do this before executing the actions.
2156  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2157  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158  as_fn_set_status $ac_retval
2159
2160} # ac_fn_cxx_try_link
2161
2162# ac_fn_cxx_check_func LINENO FUNC VAR
2163# ------------------------------------
2164# Tests whether FUNC exists, setting the cache variable VAR accordingly
2165ac_fn_cxx_check_func ()
2166{
2167  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169$as_echo_n "checking for $2... " >&6; }
2170if eval \${$3+:} false; then :
2171  $as_echo_n "(cached) " >&6
2172else
2173  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174/* end confdefs.h.  */
2175/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2176   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2177#define $2 innocuous_$2
2178
2179/* System header to define __stub macros and hopefully few prototypes,
2180    which can conflict with char $2 (); below.
2181    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2182    <limits.h> exists even on freestanding compilers.  */
2183
2184#ifdef __STDC__
2185# include <limits.h>
2186#else
2187# include <assert.h>
2188#endif
2189
2190#undef $2
2191
2192/* Override any GCC internal prototype to avoid an error.
2193   Use char because int might match the return type of a GCC
2194   builtin and then its argument prototype would still apply.  */
2195#ifdef __cplusplus
2196extern "C"
2197#endif
2198char $2 ();
2199/* The GNU C library defines this for functions which it implements
2200    to always fail with ENOSYS.  Some functions are actually named
2201    something starting with __ and the normal name is an alias.  */
2202#if defined __stub_$2 || defined __stub___$2
2203choke me
2204#endif
2205
2206int
2207main ()
2208{
2209return $2 ();
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214if ac_fn_cxx_try_link "$LINENO"; then :
2215  eval "$3=yes"
2216else
2217  eval "$3=no"
2218fi
2219rm -f core conftest.err conftest.$ac_objext \
2220    conftest$ac_exeext conftest.$ac_ext
2221fi
2222eval ac_res=\$$3
2223	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224$as_echo "$ac_res" >&6; }
2225  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226
2227} # ac_fn_cxx_check_func
2228cat >config.log <<_ACEOF
2229This file contains any messages produced by compilers while
2230running configure, to aid debugging if configure makes a mistake.
2231
2232It was created by Protocol Buffers $as_me 2.3.0, which was
2233generated by GNU Autoconf 2.68.  Invocation command line was
2234
2235  $ $0 $@
2236
2237_ACEOF
2238exec 5>>config.log
2239{
2240cat <<_ASUNAME
2241## --------- ##
2242## Platform. ##
2243## --------- ##
2244
2245hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2246uname -m = `(uname -m) 2>/dev/null || echo unknown`
2247uname -r = `(uname -r) 2>/dev/null || echo unknown`
2248uname -s = `(uname -s) 2>/dev/null || echo unknown`
2249uname -v = `(uname -v) 2>/dev/null || echo unknown`
2250
2251/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2252/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2253
2254/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2255/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2256/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2257/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2258/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2259/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2260/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2261
2262_ASUNAME
2263
2264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265for as_dir in $PATH
2266do
2267  IFS=$as_save_IFS
2268  test -z "$as_dir" && as_dir=.
2269    $as_echo "PATH: $as_dir"
2270  done
2271IFS=$as_save_IFS
2272
2273} >&5
2274
2275cat >&5 <<_ACEOF
2276
2277
2278## ----------- ##
2279## Core tests. ##
2280## ----------- ##
2281
2282_ACEOF
2283
2284
2285# Keep a trace of the command line.
2286# Strip out --no-create and --no-recursion so they do not pile up.
2287# Strip out --silent because we don't want to record it for future runs.
2288# Also quote any args containing shell meta-characters.
2289# Make two passes to allow for proper duplicate-argument suppression.
2290ac_configure_args=
2291ac_configure_args0=
2292ac_configure_args1=
2293ac_must_keep_next=false
2294for ac_pass in 1 2
2295do
2296  for ac_arg
2297  do
2298    case $ac_arg in
2299    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2300    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2301    | -silent | --silent | --silen | --sile | --sil)
2302      continue ;;
2303    *\'*)
2304      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2305    esac
2306    case $ac_pass in
2307    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2308    2)
2309      as_fn_append ac_configure_args1 " '$ac_arg'"
2310      if test $ac_must_keep_next = true; then
2311	ac_must_keep_next=false # Got value, back to normal.
2312      else
2313	case $ac_arg in
2314	  *=* | --config-cache | -C | -disable-* | --disable-* \
2315	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2316	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2317	  | -with-* | --with-* | -without-* | --without-* | --x)
2318	    case "$ac_configure_args0 " in
2319	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2320	    esac
2321	    ;;
2322	  -* ) ac_must_keep_next=true ;;
2323	esac
2324      fi
2325      as_fn_append ac_configure_args " '$ac_arg'"
2326      ;;
2327    esac
2328  done
2329done
2330{ ac_configure_args0=; unset ac_configure_args0;}
2331{ ac_configure_args1=; unset ac_configure_args1;}
2332
2333# When interrupted or exit'd, cleanup temporary files, and complete
2334# config.log.  We remove comments because anyway the quotes in there
2335# would cause problems or look ugly.
2336# WARNING: Use '\'' to represent an apostrophe within the trap.
2337# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2338trap 'exit_status=$?
2339  # Save into config.log some information that might help in debugging.
2340  {
2341    echo
2342
2343    $as_echo "## ---------------- ##
2344## Cache variables. ##
2345## ---------------- ##"
2346    echo
2347    # The following way of writing the cache mishandles newlines in values,
2348(
2349  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2350    eval ac_val=\$$ac_var
2351    case $ac_val in #(
2352    *${as_nl}*)
2353      case $ac_var in #(
2354      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2355$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2356      esac
2357      case $ac_var in #(
2358      _ | IFS | as_nl) ;; #(
2359      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2360      *) { eval $ac_var=; unset $ac_var;} ;;
2361      esac ;;
2362    esac
2363  done
2364  (set) 2>&1 |
2365    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2366    *${as_nl}ac_space=\ *)
2367      sed -n \
2368	"s/'\''/'\''\\\\'\'''\''/g;
2369	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2370      ;; #(
2371    *)
2372      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2373      ;;
2374    esac |
2375    sort
2376)
2377    echo
2378
2379    $as_echo "## ----------------- ##
2380## Output variables. ##
2381## ----------------- ##"
2382    echo
2383    for ac_var in $ac_subst_vars
2384    do
2385      eval ac_val=\$$ac_var
2386      case $ac_val in
2387      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2388      esac
2389      $as_echo "$ac_var='\''$ac_val'\''"
2390    done | sort
2391    echo
2392
2393    if test -n "$ac_subst_files"; then
2394      $as_echo "## ------------------- ##
2395## File substitutions. ##
2396## ------------------- ##"
2397      echo
2398      for ac_var in $ac_subst_files
2399      do
2400	eval ac_val=\$$ac_var
2401	case $ac_val in
2402	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2403	esac
2404	$as_echo "$ac_var='\''$ac_val'\''"
2405      done | sort
2406      echo
2407    fi
2408
2409    if test -s confdefs.h; then
2410      $as_echo "## ----------- ##
2411## confdefs.h. ##
2412## ----------- ##"
2413      echo
2414      cat confdefs.h
2415      echo
2416    fi
2417    test "$ac_signal" != 0 &&
2418      $as_echo "$as_me: caught signal $ac_signal"
2419    $as_echo "$as_me: exit $exit_status"
2420  } >&5
2421  rm -f core *.core core.conftest.* &&
2422    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2423    exit $exit_status
2424' 0
2425for ac_signal in 1 2 13 15; do
2426  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2427done
2428ac_signal=0
2429
2430# confdefs.h avoids OS command line length limits that DEFS can exceed.
2431rm -f -r conftest* confdefs.h
2432
2433$as_echo "/* confdefs.h */" > confdefs.h
2434
2435# Predefined preprocessor variables.
2436
2437cat >>confdefs.h <<_ACEOF
2438#define PACKAGE_NAME "$PACKAGE_NAME"
2439_ACEOF
2440
2441cat >>confdefs.h <<_ACEOF
2442#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2443_ACEOF
2444
2445cat >>confdefs.h <<_ACEOF
2446#define PACKAGE_VERSION "$PACKAGE_VERSION"
2447_ACEOF
2448
2449cat >>confdefs.h <<_ACEOF
2450#define PACKAGE_STRING "$PACKAGE_STRING"
2451_ACEOF
2452
2453cat >>confdefs.h <<_ACEOF
2454#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2455_ACEOF
2456
2457cat >>confdefs.h <<_ACEOF
2458#define PACKAGE_URL "$PACKAGE_URL"
2459_ACEOF
2460
2461
2462# Let the site file select an alternate cache file if it wants to.
2463# Prefer an explicitly selected file to automatically selected ones.
2464ac_site_file1=NONE
2465ac_site_file2=NONE
2466if test -n "$CONFIG_SITE"; then
2467  # We do not want a PATH search for config.site.
2468  case $CONFIG_SITE in #((
2469    -*)  ac_site_file1=./$CONFIG_SITE;;
2470    */*) ac_site_file1=$CONFIG_SITE;;
2471    *)   ac_site_file1=./$CONFIG_SITE;;
2472  esac
2473elif test "x$prefix" != xNONE; then
2474  ac_site_file1=$prefix/share/config.site
2475  ac_site_file2=$prefix/etc/config.site
2476else
2477  ac_site_file1=$ac_default_prefix/share/config.site
2478  ac_site_file2=$ac_default_prefix/etc/config.site
2479fi
2480for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2481do
2482  test "x$ac_site_file" = xNONE && continue
2483  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2484    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2485$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2486    sed 's/^/| /' "$ac_site_file" >&5
2487    . "$ac_site_file" \
2488      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490as_fn_error $? "failed to load site script $ac_site_file
2491See \`config.log' for more details" "$LINENO" 5; }
2492  fi
2493done
2494
2495if test -r "$cache_file"; then
2496  # Some versions of bash will fail to source /dev/null (special files
2497  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2498  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2499    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2500$as_echo "$as_me: loading cache $cache_file" >&6;}
2501    case $cache_file in
2502      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2503      *)                      . "./$cache_file";;
2504    esac
2505  fi
2506else
2507  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2508$as_echo "$as_me: creating cache $cache_file" >&6;}
2509  >$cache_file
2510fi
2511
2512# Check that the precious variables saved in the cache have kept the same
2513# value.
2514ac_cache_corrupted=false
2515for ac_var in $ac_precious_vars; do
2516  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2517  eval ac_new_set=\$ac_env_${ac_var}_set
2518  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2519  eval ac_new_val=\$ac_env_${ac_var}_value
2520  case $ac_old_set,$ac_new_set in
2521    set,)
2522      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2523$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2524      ac_cache_corrupted=: ;;
2525    ,set)
2526      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2527$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2528      ac_cache_corrupted=: ;;
2529    ,);;
2530    *)
2531      if test "x$ac_old_val" != "x$ac_new_val"; then
2532	# differences in whitespace do not lead to failure.
2533	ac_old_val_w=`echo x $ac_old_val`
2534	ac_new_val_w=`echo x $ac_new_val`
2535	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2536	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2537$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2538	  ac_cache_corrupted=:
2539	else
2540	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2541$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2542	  eval $ac_var=\$ac_old_val
2543	fi
2544	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2545$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2546	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2547$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2548      fi;;
2549  esac
2550  # Pass precious variables to config.status.
2551  if test "$ac_new_set" = set; then
2552    case $ac_new_val in
2553    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2554    *) ac_arg=$ac_var=$ac_new_val ;;
2555    esac
2556    case " $ac_configure_args " in
2557      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2558      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2559    esac
2560  fi
2561done
2562if $ac_cache_corrupted; then
2563  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2566$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2567  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2568fi
2569## -------------------- ##
2570## Main body of script. ##
2571## -------------------- ##
2572
2573ac_ext=c
2574ac_cpp='$CPP $CPPFLAGS'
2575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2577ac_compiler_gnu=$ac_cv_c_compiler_gnu
2578
2579
2580
2581
2582
2583ac_config_headers="$ac_config_headers config.h"
2584
2585
2586
2587# autoconf's default CXXFLAGS are usually "-g -O2".  These aren't necessarily
2588# the best choice for libprotobuf.
2589if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
2590  CFLAGS=""
2591fi
2592if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
2593  CXXFLAGS=""
2594fi
2595
2596ac_aux_dir=
2597for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2598  if test -f "$ac_dir/install-sh"; then
2599    ac_aux_dir=$ac_dir
2600    ac_install_sh="$ac_aux_dir/install-sh -c"
2601    break
2602  elif test -f "$ac_dir/install.sh"; then
2603    ac_aux_dir=$ac_dir
2604    ac_install_sh="$ac_aux_dir/install.sh -c"
2605    break
2606  elif test -f "$ac_dir/shtool"; then
2607    ac_aux_dir=$ac_dir
2608    ac_install_sh="$ac_aux_dir/shtool install -c"
2609    break
2610  fi
2611done
2612if test -z "$ac_aux_dir"; then
2613  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2614fi
2615
2616# These three variables are undocumented and unsupported,
2617# and are intended to be withdrawn in a future Autoconf release.
2618# They can cause serious problems if a builder's source tree is in a directory
2619# whose full name contains unusual characters.
2620ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2621ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2622ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2623
2624
2625# Make sure we can run config.sub.
2626$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628
2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630$as_echo_n "checking build system type... " >&6; }
2631if ${ac_cv_build+:} false; then :
2632  $as_echo_n "(cached) " >&6
2633else
2634  ac_build_alias=$build_alias
2635test "x$ac_build_alias" = x &&
2636  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2637test "x$ac_build_alias" = x &&
2638  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2639ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2641
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2644$as_echo "$ac_cv_build" >&6; }
2645case $ac_cv_build in
2646*-*-*) ;;
2647*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2648esac
2649build=$ac_cv_build
2650ac_save_IFS=$IFS; IFS='-'
2651set x $ac_cv_build
2652shift
2653build_cpu=$1
2654build_vendor=$2
2655shift; shift
2656# Remember, the first character of IFS is used to create $*,
2657# except with old shells:
2658build_os=$*
2659IFS=$ac_save_IFS
2660case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2661
2662
2663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2664$as_echo_n "checking host system type... " >&6; }
2665if ${ac_cv_host+:} false; then :
2666  $as_echo_n "(cached) " >&6
2667else
2668  if test "x$host_alias" = x; then
2669  ac_cv_host=$ac_cv_build
2670else
2671  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2672    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2673fi
2674
2675fi
2676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2677$as_echo "$ac_cv_host" >&6; }
2678case $ac_cv_host in
2679*-*-*) ;;
2680*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2681esac
2682host=$ac_cv_host
2683ac_save_IFS=$IFS; IFS='-'
2684set x $ac_cv_host
2685shift
2686host_cpu=$1
2687host_vendor=$2
2688shift; shift
2689# Remember, the first character of IFS is used to create $*,
2690# except with old shells:
2691host_os=$*
2692IFS=$ac_save_IFS
2693case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2694
2695
2696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2697$as_echo_n "checking target system type... " >&6; }
2698if ${ac_cv_target+:} false; then :
2699  $as_echo_n "(cached) " >&6
2700else
2701  if test "x$target_alias" = x; then
2702  ac_cv_target=$ac_cv_host
2703else
2704  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2705    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2706fi
2707
2708fi
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2710$as_echo "$ac_cv_target" >&6; }
2711case $ac_cv_target in
2712*-*-*) ;;
2713*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2714esac
2715target=$ac_cv_target
2716ac_save_IFS=$IFS; IFS='-'
2717set x $ac_cv_target
2718shift
2719target_cpu=$1
2720target_vendor=$2
2721shift; shift
2722# Remember, the first character of IFS is used to create $*,
2723# except with old shells:
2724target_os=$*
2725IFS=$ac_save_IFS
2726case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2727
2728
2729# The aliases save the names the user supplied, while $host etc.
2730# will get canonicalized.
2731test -n "$target_alias" &&
2732  test "$program_prefix$program_suffix$program_transform_name" = \
2733    NONENONEs,x,x, &&
2734  program_prefix=${target_alias}-
2735
2736am__api_version='1.11'
2737
2738# Find a good install program.  We prefer a C program (faster),
2739# so one script is as good as another.  But avoid the broken or
2740# incompatible versions:
2741# SysV /etc/install, /usr/sbin/install
2742# SunOS /usr/etc/install
2743# IRIX /sbin/install
2744# AIX /bin/install
2745# AmigaOS /C/install, which installs bootblocks on floppy discs
2746# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2747# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2748# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2749# OS/2's system install, which has a completely different semantic
2750# ./install, which can be erroneously created by make from ./install.sh.
2751# Reject install programs that cannot install multiple files.
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2753$as_echo_n "checking for a BSD-compatible install... " >&6; }
2754if test -z "$INSTALL"; then
2755if ${ac_cv_path_install+:} false; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759for as_dir in $PATH
2760do
2761  IFS=$as_save_IFS
2762  test -z "$as_dir" && as_dir=.
2763    # Account for people who put trailing slashes in PATH elements.
2764case $as_dir/ in #((
2765  ./ | .// | /[cC]/* | \
2766  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2767  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2768  /usr/ucb/* ) ;;
2769  *)
2770    # OSF1 and SCO ODT 3.0 have their own names for install.
2771    # Don't use installbsd from OSF since it installs stuff as root
2772    # by default.
2773    for ac_prog in ginstall scoinst install; do
2774      for ac_exec_ext in '' $ac_executable_extensions; do
2775	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2776	  if test $ac_prog = install &&
2777	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778	    # AIX install.  It has an incompatible calling convention.
2779	    :
2780	  elif test $ac_prog = install &&
2781	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782	    # program-specific install script used by HP pwplus--don't use.
2783	    :
2784	  else
2785	    rm -rf conftest.one conftest.two conftest.dir
2786	    echo one > conftest.one
2787	    echo two > conftest.two
2788	    mkdir conftest.dir
2789	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2790	      test -s conftest.one && test -s conftest.two &&
2791	      test -s conftest.dir/conftest.one &&
2792	      test -s conftest.dir/conftest.two
2793	    then
2794	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2795	      break 3
2796	    fi
2797	  fi
2798	fi
2799      done
2800    done
2801    ;;
2802esac
2803
2804  done
2805IFS=$as_save_IFS
2806
2807rm -rf conftest.one conftest.two conftest.dir
2808
2809fi
2810  if test "${ac_cv_path_install+set}" = set; then
2811    INSTALL=$ac_cv_path_install
2812  else
2813    # As a last resort, use the slow shell script.  Don't cache a
2814    # value for INSTALL within a source directory, because that will
2815    # break other packages using the cache if that directory is
2816    # removed, or if the value is a relative name.
2817    INSTALL=$ac_install_sh
2818  fi
2819fi
2820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2821$as_echo "$INSTALL" >&6; }
2822
2823# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2824# It thinks the first close brace ends the variable substitution.
2825test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2826
2827test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2828
2829test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2830
2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2832$as_echo_n "checking whether build environment is sane... " >&6; }
2833# Just in case
2834sleep 1
2835echo timestamp > conftest.file
2836# Reject unsafe characters in $srcdir or the absolute working directory
2837# name.  Accept space and tab only in the latter.
2838am_lf='
2839'
2840case `pwd` in
2841  *[\\\"\#\$\&\'\`$am_lf]*)
2842    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2843esac
2844case $srcdir in
2845  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2846    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2847esac
2848
2849# Do `set' in a subshell so we don't clobber the current shell's
2850# arguments.  Must try -L first in case configure is actually a
2851# symlink; some systems play weird games with the mod time of symlinks
2852# (eg FreeBSD returns the mod time of the symlink's containing
2853# directory).
2854if (
2855   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2856   if test "$*" = "X"; then
2857      # -L didn't work.
2858      set X `ls -t "$srcdir/configure" conftest.file`
2859   fi
2860   rm -f conftest.file
2861   if test "$*" != "X $srcdir/configure conftest.file" \
2862      && test "$*" != "X conftest.file $srcdir/configure"; then
2863
2864      # If neither matched, then we have a broken ls.  This can happen
2865      # if, for instance, CONFIG_SHELL is bash and it inherits a
2866      # broken ls alias from the environment.  This has actually
2867      # happened.  Such a system could not be considered "sane".
2868      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2869alias in your environment" "$LINENO" 5
2870   fi
2871
2872   test "$2" = conftest.file
2873   )
2874then
2875   # Ok.
2876   :
2877else
2878   as_fn_error $? "newly created file is older than distributed files!
2879Check your system clock" "$LINENO" 5
2880fi
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2882$as_echo "yes" >&6; }
2883test "$program_prefix" != NONE &&
2884  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2885# Use a double $ so make ignores it.
2886test "$program_suffix" != NONE &&
2887  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2888# Double any \ or $.
2889# By default was `s,x,x', remove it if useless.
2890ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2891program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2892
2893# expand $ac_aux_dir to an absolute path
2894am_aux_dir=`cd $ac_aux_dir && pwd`
2895
2896if test x"${MISSING+set}" != xset; then
2897  case $am_aux_dir in
2898  *\ * | *\	*)
2899    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2900  *)
2901    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2902  esac
2903fi
2904# Use eval to expand $SHELL
2905if eval "$MISSING --run true"; then
2906  am_missing_run="$MISSING --run "
2907else
2908  am_missing_run=
2909  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2910$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2911fi
2912
2913if test x"${install_sh}" != xset; then
2914  case $am_aux_dir in
2915  *\ * | *\	*)
2916    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2917  *)
2918    install_sh="\${SHELL} $am_aux_dir/install-sh"
2919  esac
2920fi
2921
2922# Installed binaries are usually stripped using `strip' when the user
2923# run `make install-strip'.  However `strip' might not be the right
2924# tool to use in cross-compilation environments, therefore Automake
2925# will honor the `STRIP' environment variable to overrule this program.
2926if test "$cross_compiling" != no; then
2927  if test -n "$ac_tool_prefix"; then
2928  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2929set dummy ${ac_tool_prefix}strip; ac_word=$2
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if ${ac_cv_prog_STRIP+:} false; then :
2933  $as_echo_n "(cached) " >&6
2934else
2935  if test -n "$STRIP"; then
2936  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    for ac_exec_ext in '' $ac_executable_extensions; do
2944  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947    break 2
2948  fi
2949done
2950  done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955STRIP=$ac_cv_prog_STRIP
2956if test -n "$STRIP"; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2958$as_echo "$STRIP" >&6; }
2959else
2960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965fi
2966if test -z "$ac_cv_prog_STRIP"; then
2967  ac_ct_STRIP=$STRIP
2968  # Extract the first word of "strip", so it can be a program name with args.
2969set dummy strip; ac_word=$2
2970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2973  $as_echo_n "(cached) " >&6
2974else
2975  if test -n "$ac_ct_STRIP"; then
2976  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981  IFS=$as_save_IFS
2982  test -z "$as_dir" && as_dir=.
2983    for ac_exec_ext in '' $ac_executable_extensions; do
2984  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985    ac_cv_prog_ac_ct_STRIP="strip"
2986    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987    break 2
2988  fi
2989done
2990  done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2996if test -n "$ac_ct_STRIP"; then
2997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2998$as_echo "$ac_ct_STRIP" >&6; }
2999else
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004  if test "x$ac_ct_STRIP" = x; then
3005    STRIP=":"
3006  else
3007    case $cross_compiling:$ac_tool_warned in
3008yes:)
3009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011ac_tool_warned=yes ;;
3012esac
3013    STRIP=$ac_ct_STRIP
3014  fi
3015else
3016  STRIP="$ac_cv_prog_STRIP"
3017fi
3018
3019fi
3020INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3021
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3023$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3024if test -z "$MKDIR_P"; then
3025  if ${ac_cv_path_mkdir+:} false; then :
3026  $as_echo_n "(cached) " >&6
3027else
3028  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3030do
3031  IFS=$as_save_IFS
3032  test -z "$as_dir" && as_dir=.
3033    for ac_prog in mkdir gmkdir; do
3034	 for ac_exec_ext in '' $ac_executable_extensions; do
3035	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3036	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3037	     'mkdir (GNU coreutils) '* | \
3038	     'mkdir (coreutils) '* | \
3039	     'mkdir (fileutils) '4.1*)
3040	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3041	       break 3;;
3042	   esac
3043	 done
3044       done
3045  done
3046IFS=$as_save_IFS
3047
3048fi
3049
3050  test -d ./--version && rmdir ./--version
3051  if test "${ac_cv_path_mkdir+set}" = set; then
3052    MKDIR_P="$ac_cv_path_mkdir -p"
3053  else
3054    # As a last resort, use the slow shell script.  Don't cache a
3055    # value for MKDIR_P within a source directory, because that will
3056    # break other packages using the cache if that directory is
3057    # removed, or if the value is a relative name.
3058    MKDIR_P="$ac_install_sh -d"
3059  fi
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3062$as_echo "$MKDIR_P" >&6; }
3063
3064mkdir_p="$MKDIR_P"
3065case $mkdir_p in
3066  [\\/$]* | ?:[\\/]*) ;;
3067  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3068esac
3069
3070for ac_prog in gawk mawk nawk awk
3071do
3072  # Extract the first word of "$ac_prog", so it can be a program name with args.
3073set dummy $ac_prog; ac_word=$2
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if ${ac_cv_prog_AWK+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  if test -n "$AWK"; then
3080  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085  IFS=$as_save_IFS
3086  test -z "$as_dir" && as_dir=.
3087    for ac_exec_ext in '' $ac_executable_extensions; do
3088  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089    ac_cv_prog_AWK="$ac_prog"
3090    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091    break 2
3092  fi
3093done
3094  done
3095IFS=$as_save_IFS
3096
3097fi
3098fi
3099AWK=$ac_cv_prog_AWK
3100if test -n "$AWK"; then
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3102$as_echo "$AWK" >&6; }
3103else
3104  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108
3109  test -n "$AWK" && break
3110done
3111
3112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3113$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3114set x ${MAKE-make}
3115ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3116if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  cat >conftest.make <<\_ACEOF
3120SHELL = /bin/sh
3121all:
3122	@echo '@@@%%%=$(MAKE)=@@@%%%'
3123_ACEOF
3124# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3125case `${MAKE-make} -f conftest.make 2>/dev/null` in
3126  *@@@%%%=?*=@@@%%%*)
3127    eval ac_cv_prog_make_${ac_make}_set=yes;;
3128  *)
3129    eval ac_cv_prog_make_${ac_make}_set=no;;
3130esac
3131rm -f conftest.make
3132fi
3133if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3135$as_echo "yes" >&6; }
3136  SET_MAKE=
3137else
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139$as_echo "no" >&6; }
3140  SET_MAKE="MAKE=${MAKE-make}"
3141fi
3142
3143rm -rf .tst 2>/dev/null
3144mkdir .tst 2>/dev/null
3145if test -d .tst; then
3146  am__leading_dot=.
3147else
3148  am__leading_dot=_
3149fi
3150rmdir .tst 2>/dev/null
3151
3152if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154  # is not polluted with repeated "-I."
3155  am__isrc=' -I$(srcdir)'
3156  # test to see if srcdir already configured
3157  if test -f $srcdir/config.status; then
3158    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159  fi
3160fi
3161
3162# test whether we have cygpath
3163if test -z "$CYGPATH_W"; then
3164  if (cygpath --version) >/dev/null 2>/dev/null; then
3165    CYGPATH_W='cygpath -w'
3166  else
3167    CYGPATH_W=echo
3168  fi
3169fi
3170
3171
3172# Define the identity of the package.
3173 PACKAGE='protobuf'
3174 VERSION='2.3.0'
3175
3176
3177cat >>confdefs.h <<_ACEOF
3178#define PACKAGE "$PACKAGE"
3179_ACEOF
3180
3181
3182cat >>confdefs.h <<_ACEOF
3183#define VERSION "$VERSION"
3184_ACEOF
3185
3186# Some tools Automake needs.
3187
3188ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3189
3190
3191AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3192
3193
3194AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3195
3196
3197AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3198
3199
3200MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3201
3202# We need awk for the "check" target.  The system "awk" is bad on
3203# some platforms.
3204# Always define AMTAR for backward compatibility.  Yes, it's still used
3205# in the wild :-(  We should find a proper way to deprecate it ...
3206AMTAR='$${TAR-tar}'
3207
3208am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3209
3210
3211
3212
3213
3214
3215
3216# Check whether --with-zlib was given.
3217if test "${with_zlib+set}" = set; then :
3218  withval=$with_zlib;
3219else
3220  with_zlib=check
3221fi
3222
3223
3224
3225# Check whether --with-protoc was given.
3226if test "${with_protoc+set}" = set; then :
3227  withval=$with_protoc;
3228else
3229  with_protoc=no
3230fi
3231
3232
3233# Checks for programs.
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239if test -n "$ac_tool_prefix"; then
3240  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3241set dummy ${ac_tool_prefix}gcc; ac_word=$2
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243$as_echo_n "checking for $ac_word... " >&6; }
3244if ${ac_cv_prog_CC+:} false; then :
3245  $as_echo_n "(cached) " >&6
3246else
3247  if test -n "$CC"; then
3248  ac_cv_prog_CC="$CC" # Let the user override the test.
3249else
3250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251for as_dir in $PATH
3252do
3253  IFS=$as_save_IFS
3254  test -z "$as_dir" && as_dir=.
3255    for ac_exec_ext in '' $ac_executable_extensions; do
3256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3257    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3258    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259    break 2
3260  fi
3261done
3262  done
3263IFS=$as_save_IFS
3264
3265fi
3266fi
3267CC=$ac_cv_prog_CC
3268if test -n "$CC"; then
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270$as_echo "$CC" >&6; }
3271else
3272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274fi
3275
3276
3277fi
3278if test -z "$ac_cv_prog_CC"; then
3279  ac_ct_CC=$CC
3280  # Extract the first word of "gcc", so it can be a program name with args.
3281set dummy gcc; ac_word=$2
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283$as_echo_n "checking for $ac_word... " >&6; }
3284if ${ac_cv_prog_ac_ct_CC+:} false; then :
3285  $as_echo_n "(cached) " >&6
3286else
3287  if test -n "$ac_ct_CC"; then
3288  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295    for ac_exec_ext in '' $ac_executable_extensions; do
3296  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297    ac_cv_prog_ac_ct_CC="gcc"
3298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299    break 2
3300  fi
3301done
3302  done
3303IFS=$as_save_IFS
3304
3305fi
3306fi
3307ac_ct_CC=$ac_cv_prog_ac_ct_CC
3308if test -n "$ac_ct_CC"; then
3309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3310$as_echo "$ac_ct_CC" >&6; }
3311else
3312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314fi
3315
3316  if test "x$ac_ct_CC" = x; then
3317    CC=""
3318  else
3319    case $cross_compiling:$ac_tool_warned in
3320yes:)
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3322$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3323ac_tool_warned=yes ;;
3324esac
3325    CC=$ac_ct_CC
3326  fi
3327else
3328  CC="$ac_cv_prog_CC"
3329fi
3330
3331if test -z "$CC"; then
3332          if test -n "$ac_tool_prefix"; then
3333    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3334set dummy ${ac_tool_prefix}cc; ac_word=$2
3335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3336$as_echo_n "checking for $ac_word... " >&6; }
3337if ${ac_cv_prog_CC+:} false; then :
3338  $as_echo_n "(cached) " >&6
3339else
3340  if test -n "$CC"; then
3341  ac_cv_prog_CC="$CC" # Let the user override the test.
3342else
3343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344for as_dir in $PATH
3345do
3346  IFS=$as_save_IFS
3347  test -z "$as_dir" && as_dir=.
3348    for ac_exec_ext in '' $ac_executable_extensions; do
3349  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3350    ac_cv_prog_CC="${ac_tool_prefix}cc"
3351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352    break 2
3353  fi
3354done
3355  done
3356IFS=$as_save_IFS
3357
3358fi
3359fi
3360CC=$ac_cv_prog_CC
3361if test -n "$CC"; then
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3363$as_echo "$CC" >&6; }
3364else
3365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366$as_echo "no" >&6; }
3367fi
3368
3369
3370  fi
3371fi
3372if test -z "$CC"; then
3373  # Extract the first word of "cc", so it can be a program name with args.
3374set dummy cc; ac_word=$2
3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376$as_echo_n "checking for $ac_word... " >&6; }
3377if ${ac_cv_prog_CC+:} false; then :
3378  $as_echo_n "(cached) " >&6
3379else
3380  if test -n "$CC"; then
3381  ac_cv_prog_CC="$CC" # Let the user override the test.
3382else
3383  ac_prog_rejected=no
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387  IFS=$as_save_IFS
3388  test -z "$as_dir" && as_dir=.
3389    for ac_exec_ext in '' $ac_executable_extensions; do
3390  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3392       ac_prog_rejected=yes
3393       continue
3394     fi
3395    ac_cv_prog_CC="cc"
3396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3397    break 2
3398  fi
3399done
3400  done
3401IFS=$as_save_IFS
3402
3403if test $ac_prog_rejected = yes; then
3404  # We found a bogon in the path, so make sure we never use it.
3405  set dummy $ac_cv_prog_CC
3406  shift
3407  if test $# != 0; then
3408    # We chose a different compiler from the bogus one.
3409    # However, it has the same basename, so the bogon will be chosen
3410    # first if we set CC to just the basename; use the full file name.
3411    shift
3412    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3413  fi
3414fi
3415fi
3416fi
3417CC=$ac_cv_prog_CC
3418if test -n "$CC"; then
3419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420$as_echo "$CC" >&6; }
3421else
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424fi
3425
3426
3427fi
3428if test -z "$CC"; then
3429  if test -n "$ac_tool_prefix"; then
3430  for ac_prog in cl.exe
3431  do
3432    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3433set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435$as_echo_n "checking for $ac_word... " >&6; }
3436if ${ac_cv_prog_CC+:} false; then :
3437  $as_echo_n "(cached) " >&6
3438else
3439  if test -n "$CC"; then
3440  ac_cv_prog_CC="$CC" # Let the user override the test.
3441else
3442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445  IFS=$as_save_IFS
3446  test -z "$as_dir" && as_dir=.
3447    for ac_exec_ext in '' $ac_executable_extensions; do
3448  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3449    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3450    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451    break 2
3452  fi
3453done
3454  done
3455IFS=$as_save_IFS
3456
3457fi
3458fi
3459CC=$ac_cv_prog_CC
3460if test -n "$CC"; then
3461  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462$as_echo "$CC" >&6; }
3463else
3464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465$as_echo "no" >&6; }
3466fi
3467
3468
3469    test -n "$CC" && break
3470  done
3471fi
3472if test -z "$CC"; then
3473  ac_ct_CC=$CC
3474  for ac_prog in cl.exe
3475do
3476  # Extract the first word of "$ac_prog", so it can be a program name with args.
3477set dummy $ac_prog; ac_word=$2
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3479$as_echo_n "checking for $ac_word... " >&6; }
3480if ${ac_cv_prog_ac_ct_CC+:} false; then :
3481  $as_echo_n "(cached) " >&6
3482else
3483  if test -n "$ac_ct_CC"; then
3484  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3485else
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489  IFS=$as_save_IFS
3490  test -z "$as_dir" && as_dir=.
3491    for ac_exec_ext in '' $ac_executable_extensions; do
3492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3493    ac_cv_prog_ac_ct_CC="$ac_prog"
3494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495    break 2
3496  fi
3497done
3498  done
3499IFS=$as_save_IFS
3500
3501fi
3502fi
3503ac_ct_CC=$ac_cv_prog_ac_ct_CC
3504if test -n "$ac_ct_CC"; then
3505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3506$as_echo "$ac_ct_CC" >&6; }
3507else
3508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509$as_echo "no" >&6; }
3510fi
3511
3512
3513  test -n "$ac_ct_CC" && break
3514done
3515
3516  if test "x$ac_ct_CC" = x; then
3517    CC=""
3518  else
3519    case $cross_compiling:$ac_tool_warned in
3520yes:)
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523ac_tool_warned=yes ;;
3524esac
3525    CC=$ac_ct_CC
3526  fi
3527fi
3528
3529fi
3530
3531
3532test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534as_fn_error $? "no acceptable C compiler found in \$PATH
3535See \`config.log' for more details" "$LINENO" 5; }
3536
3537# Provide some information about the compiler.
3538$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3539set X $ac_compile
3540ac_compiler=$2
3541for ac_option in --version -v -V -qversion; do
3542  { { ac_try="$ac_compiler $ac_option >&5"
3543case "(($ac_try" in
3544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545  *) ac_try_echo=$ac_try;;
3546esac
3547eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3548$as_echo "$ac_try_echo"; } >&5
3549  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3550  ac_status=$?
3551  if test -s conftest.err; then
3552    sed '10a\
3553... rest of stderr output deleted ...
3554         10q' conftest.err >conftest.er1
3555    cat conftest.er1 >&5
3556  fi
3557  rm -f conftest.er1 conftest.err
3558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559  test $ac_status = 0; }
3560done
3561
3562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563/* end confdefs.h.  */
3564
3565int
3566main ()
3567{
3568
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573ac_clean_files_save=$ac_clean_files
3574ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3575# Try to create an executable without -o first, disregard a.out.
3576# It will help us diagnose broken compilers, and finding out an intuition
3577# of exeext.
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3579$as_echo_n "checking whether the C compiler works... " >&6; }
3580ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3581
3582# The possible output files:
3583ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3584
3585ac_rmfiles=
3586for ac_file in $ac_files
3587do
3588  case $ac_file in
3589    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3590    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3591  esac
3592done
3593rm -f $ac_rmfiles
3594
3595if { { ac_try="$ac_link_default"
3596case "(($ac_try" in
3597  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598  *) ac_try_echo=$ac_try;;
3599esac
3600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3601$as_echo "$ac_try_echo"; } >&5
3602  (eval "$ac_link_default") 2>&5
3603  ac_status=$?
3604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3605  test $ac_status = 0; }; then :
3606  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3607# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3608# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3609# so that the user can short-circuit this test for compilers unknown to
3610# Autoconf.
3611for ac_file in $ac_files ''
3612do
3613  test -f "$ac_file" || continue
3614  case $ac_file in
3615    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3616	;;
3617    [ab].out )
3618	# We found the default executable, but exeext='' is most
3619	# certainly right.
3620	break;;
3621    *.* )
3622	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3623	then :; else
3624	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625	fi
3626	# We set ac_cv_exeext here because the later test for it is not
3627	# safe: cross compilers may not add the suffix if given an `-o'
3628	# argument, so we may need to know it at that point already.
3629	# Even if this section looks crufty: it has the advantage of
3630	# actually working.
3631	break;;
3632    * )
3633	break;;
3634  esac
3635done
3636test "$ac_cv_exeext" = no && ac_cv_exeext=
3637
3638else
3639  ac_file=''
3640fi
3641if test -z "$ac_file"; then :
3642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643$as_echo "no" >&6; }
3644$as_echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649as_fn_error 77 "C compiler cannot create executables
3650See \`config.log' for more details" "$LINENO" 5; }
3651else
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653$as_echo "yes" >&6; }
3654fi
3655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3656$as_echo_n "checking for C compiler default output file name... " >&6; }
3657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3658$as_echo "$ac_file" >&6; }
3659ac_exeext=$ac_cv_exeext
3660
3661rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3662ac_clean_files=$ac_clean_files_save
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3664$as_echo_n "checking for suffix of executables... " >&6; }
3665if { { ac_try="$ac_link"
3666case "(($ac_try" in
3667  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668  *) ac_try_echo=$ac_try;;
3669esac
3670eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671$as_echo "$ac_try_echo"; } >&5
3672  (eval "$ac_link") 2>&5
3673  ac_status=$?
3674  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675  test $ac_status = 0; }; then :
3676  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3678# work properly (i.e., refer to `conftest.exe'), while it won't with
3679# `rm'.
3680for ac_file in conftest.exe conftest conftest.*; do
3681  test -f "$ac_file" || continue
3682  case $ac_file in
3683    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3684    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685	  break;;
3686    * ) break;;
3687  esac
3688done
3689else
3690  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3692as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3693See \`config.log' for more details" "$LINENO" 5; }
3694fi
3695rm -f conftest conftest$ac_cv_exeext
3696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3697$as_echo "$ac_cv_exeext" >&6; }
3698
3699rm -f conftest.$ac_ext
3700EXEEXT=$ac_cv_exeext
3701ac_exeext=$EXEEXT
3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h.  */
3704#include <stdio.h>
3705int
3706main ()
3707{
3708FILE *f = fopen ("conftest.out", "w");
3709 return ferror (f) || fclose (f) != 0;
3710
3711  ;
3712  return 0;
3713}
3714_ACEOF
3715ac_clean_files="$ac_clean_files conftest.out"
3716# Check that the compiler produces executables we can run.  If not, either
3717# the compiler is broken, or we cross compile.
3718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3719$as_echo_n "checking whether we are cross compiling... " >&6; }
3720if test "$cross_compiling" != yes; then
3721  { { ac_try="$ac_link"
3722case "(($ac_try" in
3723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724  *) ac_try_echo=$ac_try;;
3725esac
3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727$as_echo "$ac_try_echo"; } >&5
3728  (eval "$ac_link") 2>&5
3729  ac_status=$?
3730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731  test $ac_status = 0; }
3732  if { ac_try='./conftest$ac_cv_exeext'
3733  { { case "(($ac_try" in
3734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735  *) ac_try_echo=$ac_try;;
3736esac
3737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738$as_echo "$ac_try_echo"; } >&5
3739  (eval "$ac_try") 2>&5
3740  ac_status=$?
3741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742  test $ac_status = 0; }; }; then
3743    cross_compiling=no
3744  else
3745    if test "$cross_compiling" = maybe; then
3746	cross_compiling=yes
3747    else
3748	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3750as_fn_error $? "cannot run C compiled programs.
3751If you meant to cross compile, use \`--host'.
3752See \`config.log' for more details" "$LINENO" 5; }
3753    fi
3754  fi
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3757$as_echo "$cross_compiling" >&6; }
3758
3759rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3760ac_clean_files=$ac_clean_files_save
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3762$as_echo_n "checking for suffix of object files... " >&6; }
3763if ${ac_cv_objext+:} false; then :
3764  $as_echo_n "(cached) " >&6
3765else
3766  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h.  */
3768
3769int
3770main ()
3771{
3772
3773  ;
3774  return 0;
3775}
3776_ACEOF
3777rm -f conftest.o conftest.obj
3778if { { ac_try="$ac_compile"
3779case "(($ac_try" in
3780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781  *) ac_try_echo=$ac_try;;
3782esac
3783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3784$as_echo "$ac_try_echo"; } >&5
3785  (eval "$ac_compile") 2>&5
3786  ac_status=$?
3787  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3788  test $ac_status = 0; }; then :
3789  for ac_file in conftest.o conftest.obj conftest.*; do
3790  test -f "$ac_file" || continue;
3791  case $ac_file in
3792    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3793    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3794       break;;
3795  esac
3796done
3797else
3798  $as_echo "$as_me: failed program was:" >&5
3799sed 's/^/| /' conftest.$ac_ext >&5
3800
3801{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3803as_fn_error $? "cannot compute suffix of object files: cannot compile
3804See \`config.log' for more details" "$LINENO" 5; }
3805fi
3806rm -f conftest.$ac_cv_objext conftest.$ac_ext
3807fi
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3809$as_echo "$ac_cv_objext" >&6; }
3810OBJEXT=$ac_cv_objext
3811ac_objext=$OBJEXT
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3813$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3814if ${ac_cv_c_compiler_gnu+:} false; then :
3815  $as_echo_n "(cached) " >&6
3816else
3817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h.  */
3819
3820int
3821main ()
3822{
3823#ifndef __GNUC__
3824       choke me
3825#endif
3826
3827  ;
3828  return 0;
3829}
3830_ACEOF
3831if ac_fn_c_try_compile "$LINENO"; then :
3832  ac_compiler_gnu=yes
3833else
3834  ac_compiler_gnu=no
3835fi
3836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837ac_cv_c_compiler_gnu=$ac_compiler_gnu
3838
3839fi
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3841$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3842if test $ac_compiler_gnu = yes; then
3843  GCC=yes
3844else
3845  GCC=
3846fi
3847ac_test_CFLAGS=${CFLAGS+set}
3848ac_save_CFLAGS=$CFLAGS
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3850$as_echo_n "checking whether $CC accepts -g... " >&6; }
3851if ${ac_cv_prog_cc_g+:} false; then :
3852  $as_echo_n "(cached) " >&6
3853else
3854  ac_save_c_werror_flag=$ac_c_werror_flag
3855   ac_c_werror_flag=yes
3856   ac_cv_prog_cc_g=no
3857   CFLAGS="-g"
3858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h.  */
3860
3861int
3862main ()
3863{
3864
3865  ;
3866  return 0;
3867}
3868_ACEOF
3869if ac_fn_c_try_compile "$LINENO"; then :
3870  ac_cv_prog_cc_g=yes
3871else
3872  CFLAGS=""
3873      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874/* end confdefs.h.  */
3875
3876int
3877main ()
3878{
3879
3880  ;
3881  return 0;
3882}
3883_ACEOF
3884if ac_fn_c_try_compile "$LINENO"; then :
3885
3886else
3887  ac_c_werror_flag=$ac_save_c_werror_flag
3888	 CFLAGS="-g"
3889	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891
3892int
3893main ()
3894{
3895
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900if ac_fn_c_try_compile "$LINENO"; then :
3901  ac_cv_prog_cc_g=yes
3902fi
3903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904fi
3905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906fi
3907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908   ac_c_werror_flag=$ac_save_c_werror_flag
3909fi
3910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3911$as_echo "$ac_cv_prog_cc_g" >&6; }
3912if test "$ac_test_CFLAGS" = set; then
3913  CFLAGS=$ac_save_CFLAGS
3914elif test $ac_cv_prog_cc_g = yes; then
3915  if test "$GCC" = yes; then
3916    CFLAGS="-g -O2"
3917  else
3918    CFLAGS="-g"
3919  fi
3920else
3921  if test "$GCC" = yes; then
3922    CFLAGS="-O2"
3923  else
3924    CFLAGS=
3925  fi
3926fi
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3928$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3929if ${ac_cv_prog_cc_c89+:} false; then :
3930  $as_echo_n "(cached) " >&6
3931else
3932  ac_cv_prog_cc_c89=no
3933ac_save_CC=$CC
3934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935/* end confdefs.h.  */
3936#include <stdarg.h>
3937#include <stdio.h>
3938#include <sys/types.h>
3939#include <sys/stat.h>
3940/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3941struct buf { int x; };
3942FILE * (*rcsopen) (struct buf *, struct stat *, int);
3943static char *e (p, i)
3944     char **p;
3945     int i;
3946{
3947  return p[i];
3948}
3949static char *f (char * (*g) (char **, int), char **p, ...)
3950{
3951  char *s;
3952  va_list v;
3953  va_start (v,p);
3954  s = g (p, va_arg (v,int));
3955  va_end (v);
3956  return s;
3957}
3958
3959/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3960   function prototypes and stuff, but not '\xHH' hex character constants.
3961   These don't provoke an error unfortunately, instead are silently treated
3962   as 'x'.  The following induces an error, until -std is added to get
3963   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3964   array size at least.  It's necessary to write '\x00'==0 to get something
3965   that's true only with -std.  */
3966int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3967
3968/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3969   inside strings and character constants.  */
3970#define FOO(x) 'x'
3971int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3972
3973int test (int i, double x);
3974struct s1 {int (*f) (int a);};
3975struct s2 {int (*f) (double a);};
3976int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3977int argc;
3978char **argv;
3979int
3980main ()
3981{
3982return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3988	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3989do
3990  CC="$ac_save_CC $ac_arg"
3991  if ac_fn_c_try_compile "$LINENO"; then :
3992  ac_cv_prog_cc_c89=$ac_arg
3993fi
3994rm -f core conftest.err conftest.$ac_objext
3995  test "x$ac_cv_prog_cc_c89" != "xno" && break
3996done
3997rm -f conftest.$ac_ext
3998CC=$ac_save_CC
3999
4000fi
4001# AC_CACHE_VAL
4002case "x$ac_cv_prog_cc_c89" in
4003  x)
4004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4005$as_echo "none needed" >&6; } ;;
4006  xno)
4007    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4008$as_echo "unsupported" >&6; } ;;
4009  *)
4010    CC="$CC $ac_cv_prog_cc_c89"
4011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4012$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4013esac
4014if test "x$ac_cv_prog_cc_c89" != xno; then :
4015
4016fi
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023DEPDIR="${am__leading_dot}deps"
4024
4025ac_config_commands="$ac_config_commands depfiles"
4026
4027
4028am_make=${MAKE-make}
4029cat > confinc << 'END'
4030am__doit:
4031	@echo this is the am__doit target
4032.PHONY: am__doit
4033END
4034# If we don't find an include directive, just comment out the code.
4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4036$as_echo_n "checking for style of include used by $am_make... " >&6; }
4037am__include="#"
4038am__quote=
4039_am_result=none
4040# First try GNU make style include.
4041echo "include confinc" > confmf
4042# Ignore all kinds of additional output from `make'.
4043case `$am_make -s -f confmf 2> /dev/null` in #(
4044*the\ am__doit\ target*)
4045  am__include=include
4046  am__quote=
4047  _am_result=GNU
4048  ;;
4049esac
4050# Now try BSD make style include.
4051if test "$am__include" = "#"; then
4052   echo '.include "confinc"' > confmf
4053   case `$am_make -s -f confmf 2> /dev/null` in #(
4054   *the\ am__doit\ target*)
4055     am__include=.include
4056     am__quote="\""
4057     _am_result=BSD
4058     ;;
4059   esac
4060fi
4061
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4064$as_echo "$_am_result" >&6; }
4065rm -f confinc confmf
4066
4067# Check whether --enable-dependency-tracking was given.
4068if test "${enable_dependency_tracking+set}" = set; then :
4069  enableval=$enable_dependency_tracking;
4070fi
4071
4072if test "x$enable_dependency_tracking" != xno; then
4073  am_depcomp="$ac_aux_dir/depcomp"
4074  AMDEPBACKSLASH='\'
4075  am__nodep='_no'
4076fi
4077 if test "x$enable_dependency_tracking" != xno; then
4078  AMDEP_TRUE=
4079  AMDEP_FALSE='#'
4080else
4081  AMDEP_TRUE='#'
4082  AMDEP_FALSE=
4083fi
4084
4085
4086
4087depcc="$CC"   am_compiler_list=
4088
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4090$as_echo_n "checking dependency style of $depcc... " >&6; }
4091if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4092  $as_echo_n "(cached) " >&6
4093else
4094  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4095  # We make a subdir and do the tests there.  Otherwise we can end up
4096  # making bogus files that we don't know about and never remove.  For
4097  # instance it was reported that on HP-UX the gcc test will end up
4098  # making a dummy file named `D' -- because `-MD' means `put the output
4099  # in D'.
4100  rm -rf conftest.dir
4101  mkdir conftest.dir
4102  # Copy depcomp to subdir because otherwise we won't find it if we're
4103  # using a relative directory.
4104  cp "$am_depcomp" conftest.dir
4105  cd conftest.dir
4106  # We will build objects and dependencies in a subdirectory because
4107  # it helps to detect inapplicable dependency modes.  For instance
4108  # both Tru64's cc and ICC support -MD to output dependencies as a
4109  # side effect of compilation, but ICC will put the dependencies in
4110  # the current directory while Tru64 will put them in the object
4111  # directory.
4112  mkdir sub
4113
4114  am_cv_CC_dependencies_compiler_type=none
4115  if test "$am_compiler_list" = ""; then
4116     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4117  fi
4118  am__universal=false
4119  case " $depcc " in #(
4120     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4121     esac
4122
4123  for depmode in $am_compiler_list; do
4124    # Setup a source with many dependencies, because some compilers
4125    # like to wrap large dependency lists on column 80 (with \), and
4126    # we should not choose a depcomp mode which is confused by this.
4127    #
4128    # We need to recreate these files for each test, as the compiler may
4129    # overwrite some of them when testing with obscure command lines.
4130    # This happens at least with the AIX C compiler.
4131    : > sub/conftest.c
4132    for i in 1 2 3 4 5 6; do
4133      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4134      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4135      # Solaris 8's {/usr,}/bin/sh.
4136      touch sub/conftst$i.h
4137    done
4138    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4139
4140    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4141    # mode.  It turns out that the SunPro C++ compiler does not properly
4142    # handle `-M -o', and we need to detect this.  Also, some Intel
4143    # versions had trouble with output in subdirs
4144    am__obj=sub/conftest.${OBJEXT-o}
4145    am__minus_obj="-o $am__obj"
4146    case $depmode in
4147    gcc)
4148      # This depmode causes a compiler race in universal mode.
4149      test "$am__universal" = false || continue
4150      ;;
4151    nosideeffect)
4152      # after this tag, mechanisms are not by side-effect, so they'll
4153      # only be used when explicitly requested
4154      if test "x$enable_dependency_tracking" = xyes; then
4155	continue
4156      else
4157	break
4158      fi
4159      ;;
4160    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4161      # This compiler won't grok `-c -o', but also, the minuso test has
4162      # not run yet.  These depmodes are late enough in the game, and
4163      # so weak that their functioning should not be impacted.
4164      am__obj=conftest.${OBJEXT-o}
4165      am__minus_obj=
4166      ;;
4167    none) break ;;
4168    esac
4169    if depmode=$depmode \
4170       source=sub/conftest.c object=$am__obj \
4171       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4172       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4173         >/dev/null 2>conftest.err &&
4174       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4175       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4176       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4177       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4178      # icc doesn't choke on unknown options, it will just issue warnings
4179      # or remarks (even with -Werror).  So we grep stderr for any message
4180      # that says an option was ignored or not supported.
4181      # When given -MP, icc 7.0 and 7.1 complain thusly:
4182      #   icc: Command line warning: ignoring option '-M'; no argument required
4183      # The diagnosis changed in icc 8.0:
4184      #   icc: Command line remark: option '-MP' not supported
4185      if (grep 'ignoring option' conftest.err ||
4186          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4187        am_cv_CC_dependencies_compiler_type=$depmode
4188        break
4189      fi
4190    fi
4191  done
4192
4193  cd ..
4194  rm -rf conftest.dir
4195else
4196  am_cv_CC_dependencies_compiler_type=none
4197fi
4198
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4201$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4202CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4203
4204 if
4205  test "x$enable_dependency_tracking" != xno \
4206  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4207  am__fastdepCC_TRUE=
4208  am__fastdepCC_FALSE='#'
4209else
4210  am__fastdepCC_TRUE='#'
4211  am__fastdepCC_FALSE=
4212fi
4213
4214
4215ac_ext=cpp
4216ac_cpp='$CXXCPP $CPPFLAGS'
4217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4220if test -z "$CXX"; then
4221  if test -n "$CCC"; then
4222    CXX=$CCC
4223  else
4224    if test -n "$ac_tool_prefix"; then
4225  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4226  do
4227    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4228set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230$as_echo_n "checking for $ac_word... " >&6; }
4231if ${ac_cv_prog_CXX+:} false; then :
4232  $as_echo_n "(cached) " >&6
4233else
4234  if test -n "$CXX"; then
4235  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4236else
4237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240  IFS=$as_save_IFS
4241  test -z "$as_dir" && as_dir=.
4242    for ac_exec_ext in '' $ac_executable_extensions; do
4243  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4246    break 2
4247  fi
4248done
4249  done
4250IFS=$as_save_IFS
4251
4252fi
4253fi
4254CXX=$ac_cv_prog_CXX
4255if test -n "$CXX"; then
4256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4257$as_echo "$CXX" >&6; }
4258else
4259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260$as_echo "no" >&6; }
4261fi
4262
4263
4264    test -n "$CXX" && break
4265  done
4266fi
4267if test -z "$CXX"; then
4268  ac_ct_CXX=$CXX
4269  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4270do
4271  # Extract the first word of "$ac_prog", so it can be a program name with args.
4272set dummy $ac_prog; ac_word=$2
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
4275if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4276  $as_echo_n "(cached) " >&6
4277else
4278  if test -n "$ac_ct_CXX"; then
4279  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4280else
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284  IFS=$as_save_IFS
4285  test -z "$as_dir" && as_dir=.
4286    for ac_exec_ext in '' $ac_executable_extensions; do
4287  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288    ac_cv_prog_ac_ct_CXX="$ac_prog"
4289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290    break 2
4291  fi
4292done
4293  done
4294IFS=$as_save_IFS
4295
4296fi
4297fi
4298ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4299if test -n "$ac_ct_CXX"; then
4300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4301$as_echo "$ac_ct_CXX" >&6; }
4302else
4303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
4305fi
4306
4307
4308  test -n "$ac_ct_CXX" && break
4309done
4310
4311  if test "x$ac_ct_CXX" = x; then
4312    CXX="g++"
4313  else
4314    case $cross_compiling:$ac_tool_warned in
4315yes:)
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4317$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4318ac_tool_warned=yes ;;
4319esac
4320    CXX=$ac_ct_CXX
4321  fi
4322fi
4323
4324  fi
4325fi
4326# Provide some information about the compiler.
4327$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4328set X $ac_compile
4329ac_compiler=$2
4330for ac_option in --version -v -V -qversion; do
4331  { { ac_try="$ac_compiler $ac_option >&5"
4332case "(($ac_try" in
4333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334  *) ac_try_echo=$ac_try;;
4335esac
4336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337$as_echo "$ac_try_echo"; } >&5
4338  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4339  ac_status=$?
4340  if test -s conftest.err; then
4341    sed '10a\
4342... rest of stderr output deleted ...
4343         10q' conftest.err >conftest.er1
4344    cat conftest.er1 >&5
4345  fi
4346  rm -f conftest.er1 conftest.err
4347  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4348  test $ac_status = 0; }
4349done
4350
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4352$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4353if ${ac_cv_cxx_compiler_gnu+:} false; then :
4354  $as_echo_n "(cached) " >&6
4355else
4356  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357/* end confdefs.h.  */
4358
4359int
4360main ()
4361{
4362#ifndef __GNUC__
4363       choke me
4364#endif
4365
4366  ;
4367  return 0;
4368}
4369_ACEOF
4370if ac_fn_cxx_try_compile "$LINENO"; then :
4371  ac_compiler_gnu=yes
4372else
4373  ac_compiler_gnu=no
4374fi
4375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4376ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4380$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4381if test $ac_compiler_gnu = yes; then
4382  GXX=yes
4383else
4384  GXX=
4385fi
4386ac_test_CXXFLAGS=${CXXFLAGS+set}
4387ac_save_CXXFLAGS=$CXXFLAGS
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4389$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4390if ${ac_cv_prog_cxx_g+:} false; then :
4391  $as_echo_n "(cached) " >&6
4392else
4393  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4394   ac_cxx_werror_flag=yes
4395   ac_cv_prog_cxx_g=no
4396   CXXFLAGS="-g"
4397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399
4400int
4401main ()
4402{
4403
4404  ;
4405  return 0;
4406}
4407_ACEOF
4408if ac_fn_cxx_try_compile "$LINENO"; then :
4409  ac_cv_prog_cxx_g=yes
4410else
4411  CXXFLAGS=""
4412      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h.  */
4414
4415int
4416main ()
4417{
4418
4419  ;
4420  return 0;
4421}
4422_ACEOF
4423if ac_fn_cxx_try_compile "$LINENO"; then :
4424
4425else
4426  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4427	 CXXFLAGS="-g"
4428	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429/* end confdefs.h.  */
4430
4431int
4432main ()
4433{
4434
4435  ;
4436  return 0;
4437}
4438_ACEOF
4439if ac_fn_cxx_try_compile "$LINENO"; then :
4440  ac_cv_prog_cxx_g=yes
4441fi
4442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443fi
4444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445fi
4446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4447   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4448fi
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4450$as_echo "$ac_cv_prog_cxx_g" >&6; }
4451if test "$ac_test_CXXFLAGS" = set; then
4452  CXXFLAGS=$ac_save_CXXFLAGS
4453elif test $ac_cv_prog_cxx_g = yes; then
4454  if test "$GXX" = yes; then
4455    CXXFLAGS="-g -O2"
4456  else
4457    CXXFLAGS="-g"
4458  fi
4459else
4460  if test "$GXX" = yes; then
4461    CXXFLAGS="-O2"
4462  else
4463    CXXFLAGS=
4464  fi
4465fi
4466ac_ext=c
4467ac_cpp='$CPP $CPPFLAGS'
4468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470ac_compiler_gnu=$ac_cv_c_compiler_gnu
4471
4472depcc="$CXX"  am_compiler_list=
4473
4474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4475$as_echo_n "checking dependency style of $depcc... " >&6; }
4476if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4477  $as_echo_n "(cached) " >&6
4478else
4479  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4480  # We make a subdir and do the tests there.  Otherwise we can end up
4481  # making bogus files that we don't know about and never remove.  For
4482  # instance it was reported that on HP-UX the gcc test will end up
4483  # making a dummy file named `D' -- because `-MD' means `put the output
4484  # in D'.
4485  rm -rf conftest.dir
4486  mkdir conftest.dir
4487  # Copy depcomp to subdir because otherwise we won't find it if we're
4488  # using a relative directory.
4489  cp "$am_depcomp" conftest.dir
4490  cd conftest.dir
4491  # We will build objects and dependencies in a subdirectory because
4492  # it helps to detect inapplicable dependency modes.  For instance
4493  # both Tru64's cc and ICC support -MD to output dependencies as a
4494  # side effect of compilation, but ICC will put the dependencies in
4495  # the current directory while Tru64 will put them in the object
4496  # directory.
4497  mkdir sub
4498
4499  am_cv_CXX_dependencies_compiler_type=none
4500  if test "$am_compiler_list" = ""; then
4501     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4502  fi
4503  am__universal=false
4504  case " $depcc " in #(
4505     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4506     esac
4507
4508  for depmode in $am_compiler_list; do
4509    # Setup a source with many dependencies, because some compilers
4510    # like to wrap large dependency lists on column 80 (with \), and
4511    # we should not choose a depcomp mode which is confused by this.
4512    #
4513    # We need to recreate these files for each test, as the compiler may
4514    # overwrite some of them when testing with obscure command lines.
4515    # This happens at least with the AIX C compiler.
4516    : > sub/conftest.c
4517    for i in 1 2 3 4 5 6; do
4518      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4519      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4520      # Solaris 8's {/usr,}/bin/sh.
4521      touch sub/conftst$i.h
4522    done
4523    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4524
4525    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4526    # mode.  It turns out that the SunPro C++ compiler does not properly
4527    # handle `-M -o', and we need to detect this.  Also, some Intel
4528    # versions had trouble with output in subdirs
4529    am__obj=sub/conftest.${OBJEXT-o}
4530    am__minus_obj="-o $am__obj"
4531    case $depmode in
4532    gcc)
4533      # This depmode causes a compiler race in universal mode.
4534      test "$am__universal" = false || continue
4535      ;;
4536    nosideeffect)
4537      # after this tag, mechanisms are not by side-effect, so they'll
4538      # only be used when explicitly requested
4539      if test "x$enable_dependency_tracking" = xyes; then
4540	continue
4541      else
4542	break
4543      fi
4544      ;;
4545    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4546      # This compiler won't grok `-c -o', but also, the minuso test has
4547      # not run yet.  These depmodes are late enough in the game, and
4548      # so weak that their functioning should not be impacted.
4549      am__obj=conftest.${OBJEXT-o}
4550      am__minus_obj=
4551      ;;
4552    none) break ;;
4553    esac
4554    if depmode=$depmode \
4555       source=sub/conftest.c object=$am__obj \
4556       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4557       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4558         >/dev/null 2>conftest.err &&
4559       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4560       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4561       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4562       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4563      # icc doesn't choke on unknown options, it will just issue warnings
4564      # or remarks (even with -Werror).  So we grep stderr for any message
4565      # that says an option was ignored or not supported.
4566      # When given -MP, icc 7.0 and 7.1 complain thusly:
4567      #   icc: Command line warning: ignoring option '-M'; no argument required
4568      # The diagnosis changed in icc 8.0:
4569      #   icc: Command line remark: option '-MP' not supported
4570      if (grep 'ignoring option' conftest.err ||
4571          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4572        am_cv_CXX_dependencies_compiler_type=$depmode
4573        break
4574      fi
4575    fi
4576  done
4577
4578  cd ..
4579  rm -rf conftest.dir
4580else
4581  am_cv_CXX_dependencies_compiler_type=none
4582fi
4583
4584fi
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4586$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4587CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4588
4589 if
4590  test "x$enable_dependency_tracking" != xno \
4591  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4592  am__fastdepCXX_TRUE=
4593  am__fastdepCXX_FALSE='#'
4594else
4595  am__fastdepCXX_TRUE='#'
4596  am__fastdepCXX_FALSE=
4597fi
4598
4599
4600ac_ext=cpp
4601ac_cpp='$CXXCPP $CPPFLAGS'
4602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4605
4606
4607ac_ext=cpp
4608ac_cpp='$CXXCPP $CPPFLAGS'
4609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4613$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4614if test -z "$CXXCPP"; then
4615  if ${ac_cv_prog_CXXCPP+:} false; then :
4616  $as_echo_n "(cached) " >&6
4617else
4618      # Double quotes because CXXCPP needs to be expanded
4619    for CXXCPP in "$CXX -E" "/lib/cpp"
4620    do
4621      ac_preproc_ok=false
4622for ac_cxx_preproc_warn_flag in '' yes
4623do
4624  # Use a header file that comes with gcc, so configuring glibc
4625  # with a fresh cross-compiler works.
4626  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4627  # <limits.h> exists even on freestanding compilers.
4628  # On the NeXT, cc -E runs the code through the compiler's parser,
4629  # not just through cpp. "Syntax error" is here to catch this case.
4630  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h.  */
4632#ifdef __STDC__
4633# include <limits.h>
4634#else
4635# include <assert.h>
4636#endif
4637		     Syntax error
4638_ACEOF
4639if ac_fn_cxx_try_cpp "$LINENO"; then :
4640
4641else
4642  # Broken: fails on valid input.
4643continue
4644fi
4645rm -f conftest.err conftest.i conftest.$ac_ext
4646
4647  # OK, works on sane cases.  Now check whether nonexistent headers
4648  # can be detected and how.
4649  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650/* end confdefs.h.  */
4651#include <ac_nonexistent.h>
4652_ACEOF
4653if ac_fn_cxx_try_cpp "$LINENO"; then :
4654  # Broken: success on invalid input.
4655continue
4656else
4657  # Passes both tests.
4658ac_preproc_ok=:
4659break
4660fi
4661rm -f conftest.err conftest.i conftest.$ac_ext
4662
4663done
4664# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4665rm -f conftest.i conftest.err conftest.$ac_ext
4666if $ac_preproc_ok; then :
4667  break
4668fi
4669
4670    done
4671    ac_cv_prog_CXXCPP=$CXXCPP
4672
4673fi
4674  CXXCPP=$ac_cv_prog_CXXCPP
4675else
4676  ac_cv_prog_CXXCPP=$CXXCPP
4677fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4679$as_echo "$CXXCPP" >&6; }
4680ac_preproc_ok=false
4681for ac_cxx_preproc_warn_flag in '' yes
4682do
4683  # Use a header file that comes with gcc, so configuring glibc
4684  # with a fresh cross-compiler works.
4685  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4686  # <limits.h> exists even on freestanding compilers.
4687  # On the NeXT, cc -E runs the code through the compiler's parser,
4688  # not just through cpp. "Syntax error" is here to catch this case.
4689  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690/* end confdefs.h.  */
4691#ifdef __STDC__
4692# include <limits.h>
4693#else
4694# include <assert.h>
4695#endif
4696		     Syntax error
4697_ACEOF
4698if ac_fn_cxx_try_cpp "$LINENO"; then :
4699
4700else
4701  # Broken: fails on valid input.
4702continue
4703fi
4704rm -f conftest.err conftest.i conftest.$ac_ext
4705
4706  # OK, works on sane cases.  Now check whether nonexistent headers
4707  # can be detected and how.
4708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h.  */
4710#include <ac_nonexistent.h>
4711_ACEOF
4712if ac_fn_cxx_try_cpp "$LINENO"; then :
4713  # Broken: success on invalid input.
4714continue
4715else
4716  # Passes both tests.
4717ac_preproc_ok=:
4718break
4719fi
4720rm -f conftest.err conftest.i conftest.$ac_ext
4721
4722done
4723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4724rm -f conftest.i conftest.err conftest.$ac_ext
4725if $ac_preproc_ok; then :
4726
4727else
4728  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4730as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4731See \`config.log' for more details" "$LINENO" 5; }
4732fi
4733
4734ac_ext=cpp
4735ac_cpp='$CXXCPP $CPPFLAGS'
4736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4739
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4742$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4743if ${ac_cv_path_GREP+:} false; then :
4744  $as_echo_n "(cached) " >&6
4745else
4746  if test -z "$GREP"; then
4747  ac_path_GREP_found=false
4748  # Loop through the user's path and test for each of PROGNAME-LIST
4749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754    for ac_prog in grep ggrep; do
4755    for ac_exec_ext in '' $ac_executable_extensions; do
4756      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4757      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4758# Check for GNU ac_path_GREP and select it if it is found.
4759  # Check for GNU $ac_path_GREP
4760case `"$ac_path_GREP" --version 2>&1` in
4761*GNU*)
4762  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4763*)
4764  ac_count=0
4765  $as_echo_n 0123456789 >"conftest.in"
4766  while :
4767  do
4768    cat "conftest.in" "conftest.in" >"conftest.tmp"
4769    mv "conftest.tmp" "conftest.in"
4770    cp "conftest.in" "conftest.nl"
4771    $as_echo 'GREP' >> "conftest.nl"
4772    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774    as_fn_arith $ac_count + 1 && ac_count=$as_val
4775    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4776      # Best one so far, save it but keep looking for a better one
4777      ac_cv_path_GREP="$ac_path_GREP"
4778      ac_path_GREP_max=$ac_count
4779    fi
4780    # 10*(2^10) chars as input seems more than enough
4781    test $ac_count -gt 10 && break
4782  done
4783  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4784esac
4785
4786      $ac_path_GREP_found && break 3
4787    done
4788  done
4789  done
4790IFS=$as_save_IFS
4791  if test -z "$ac_cv_path_GREP"; then
4792    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4793  fi
4794else
4795  ac_cv_path_GREP=$GREP
4796fi
4797
4798fi
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4800$as_echo "$ac_cv_path_GREP" >&6; }
4801 GREP="$ac_cv_path_GREP"
4802
4803
4804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4805$as_echo_n "checking for egrep... " >&6; }
4806if ${ac_cv_path_EGREP+:} false; then :
4807  $as_echo_n "(cached) " >&6
4808else
4809  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4810   then ac_cv_path_EGREP="$GREP -E"
4811   else
4812     if test -z "$EGREP"; then
4813  ac_path_EGREP_found=false
4814  # Loop through the user's path and test for each of PROGNAME-LIST
4815  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4817do
4818  IFS=$as_save_IFS
4819  test -z "$as_dir" && as_dir=.
4820    for ac_prog in egrep; do
4821    for ac_exec_ext in '' $ac_executable_extensions; do
4822      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4823      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4824# Check for GNU ac_path_EGREP and select it if it is found.
4825  # Check for GNU $ac_path_EGREP
4826case `"$ac_path_EGREP" --version 2>&1` in
4827*GNU*)
4828  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4829*)
4830  ac_count=0
4831  $as_echo_n 0123456789 >"conftest.in"
4832  while :
4833  do
4834    cat "conftest.in" "conftest.in" >"conftest.tmp"
4835    mv "conftest.tmp" "conftest.in"
4836    cp "conftest.in" "conftest.nl"
4837    $as_echo 'EGREP' >> "conftest.nl"
4838    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840    as_fn_arith $ac_count + 1 && ac_count=$as_val
4841    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4842      # Best one so far, save it but keep looking for a better one
4843      ac_cv_path_EGREP="$ac_path_EGREP"
4844      ac_path_EGREP_max=$ac_count
4845    fi
4846    # 10*(2^10) chars as input seems more than enough
4847    test $ac_count -gt 10 && break
4848  done
4849  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850esac
4851
4852      $ac_path_EGREP_found && break 3
4853    done
4854  done
4855  done
4856IFS=$as_save_IFS
4857  if test -z "$ac_cv_path_EGREP"; then
4858    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4859  fi
4860else
4861  ac_cv_path_EGREP=$EGREP
4862fi
4863
4864   fi
4865fi
4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4867$as_echo "$ac_cv_path_EGREP" >&6; }
4868 EGREP="$ac_cv_path_EGREP"
4869
4870
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4872$as_echo_n "checking for ANSI C header files... " >&6; }
4873if ${ac_cv_header_stdc+:} false; then :
4874  $as_echo_n "(cached) " >&6
4875else
4876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877/* end confdefs.h.  */
4878#include <stdlib.h>
4879#include <stdarg.h>
4880#include <string.h>
4881#include <float.h>
4882
4883int
4884main ()
4885{
4886
4887  ;
4888  return 0;
4889}
4890_ACEOF
4891if ac_fn_cxx_try_compile "$LINENO"; then :
4892  ac_cv_header_stdc=yes
4893else
4894  ac_cv_header_stdc=no
4895fi
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897
4898if test $ac_cv_header_stdc = yes; then
4899  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901/* end confdefs.h.  */
4902#include <string.h>
4903
4904_ACEOF
4905if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906  $EGREP "memchr" >/dev/null 2>&1; then :
4907
4908else
4909  ac_cv_header_stdc=no
4910fi
4911rm -f conftest*
4912
4913fi
4914
4915if test $ac_cv_header_stdc = yes; then
4916  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h.  */
4919#include <stdlib.h>
4920
4921_ACEOF
4922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4923  $EGREP "free" >/dev/null 2>&1; then :
4924
4925else
4926  ac_cv_header_stdc=no
4927fi
4928rm -f conftest*
4929
4930fi
4931
4932if test $ac_cv_header_stdc = yes; then
4933  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4934  if test "$cross_compiling" = yes; then :
4935  :
4936else
4937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4938/* end confdefs.h.  */
4939#include <ctype.h>
4940#include <stdlib.h>
4941#if ((' ' & 0x0FF) == 0x020)
4942# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4943# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4944#else
4945# define ISLOWER(c) \
4946		   (('a' <= (c) && (c) <= 'i') \
4947		     || ('j' <= (c) && (c) <= 'r') \
4948		     || ('s' <= (c) && (c) <= 'z'))
4949# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4950#endif
4951
4952#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4953int
4954main ()
4955{
4956  int i;
4957  for (i = 0; i < 256; i++)
4958    if (XOR (islower (i), ISLOWER (i))
4959	|| toupper (i) != TOUPPER (i))
4960      return 2;
4961  return 0;
4962}
4963_ACEOF
4964if ac_fn_cxx_try_run "$LINENO"; then :
4965
4966else
4967  ac_cv_header_stdc=no
4968fi
4969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4970  conftest.$ac_objext conftest.beam conftest.$ac_ext
4971fi
4972
4973fi
4974fi
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4976$as_echo "$ac_cv_header_stdc" >&6; }
4977if test $ac_cv_header_stdc = yes; then
4978
4979$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4980
4981fi
4982
4983# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4984for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4985		  inttypes.h stdint.h unistd.h
4986do :
4987  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4988ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4989"
4990if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4991  cat >>confdefs.h <<_ACEOF
4992#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4993_ACEOF
4994
4995fi
4996
4997done
4998
4999
5000
5001  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5002if test "x$ac_cv_header_minix_config_h" = xyes; then :
5003  MINIX=yes
5004else
5005  MINIX=
5006fi
5007
5008
5009  if test "$MINIX" = yes; then
5010
5011$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5012
5013
5014$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5015
5016
5017$as_echo "#define _MINIX 1" >>confdefs.h
5018
5019  fi
5020
5021
5022  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5023$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5024if ${ac_cv_safe_to_define___extensions__+:} false; then :
5025  $as_echo_n "(cached) " >&6
5026else
5027  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h.  */
5029
5030#	  define __EXTENSIONS__ 1
5031	  $ac_includes_default
5032int
5033main ()
5034{
5035
5036  ;
5037  return 0;
5038}
5039_ACEOF
5040if ac_fn_cxx_try_compile "$LINENO"; then :
5041  ac_cv_safe_to_define___extensions__=yes
5042else
5043  ac_cv_safe_to_define___extensions__=no
5044fi
5045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5048$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5049  test $ac_cv_safe_to_define___extensions__ = yes &&
5050    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5051
5052  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5053
5054  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5055
5056  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5057
5058  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5059
5060
5061
5062
5063
5064
5065
5066 if test "$GCC" = yes; then
5067  GCC_TRUE=
5068  GCC_FALSE='#'
5069else
5070  GCC_TRUE='#'
5071  GCC_FALSE=
5072fi
5073   # let the Makefile know if we're gcc
5074
5075# test_util.cc takes forever to compile with GCC and optimization turned on.
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flags..." >&5
5077$as_echo_n "checking C++ compiler flags...... " >&6; }
5078if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5079
5080  if test "$GCC" = "yes"; then :
5081
5082    PROTOBUF_OPT_FLAG="-O2"
5083    CXXFLAGS="${CXXFLAGS} -g"
5084
5085fi
5086
5087  # Protocol Buffers contains several checks that are intended to be used only
5088  # for debugging and which might hurt performance.  Most users are probably
5089  # end users who don't want these checks, so add -DNDEBUG by default.
5090  CXXFLAGS="$CXXFLAGS -DNDEBUG"
5091
5092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5
5093$as_echo "use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; }
5094
5095else
5096
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: use user-supplied: $CXXFLAGS" >&5
5098$as_echo "use user-supplied: $CXXFLAGS" >&6; }
5099
5100fi
5101
5102
5103
5104
5105
5106  ac_ext=cpp
5107ac_cpp='$CXXCPP $CPPFLAGS'
5108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5111
5112  ac_fn_cxx_check_decl "$LINENO" "__SUNPRO_CC" "ac_cv_have_decl___SUNPRO_CC" "$ac_includes_default"
5113if test "x$ac_cv_have_decl___SUNPRO_CC" = xyes; then :
5114  SUNCC="yes"
5115else
5116  SUNCC="no"
5117fi
5118
5119  ac_ext=cpp
5120ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124
5125
5126
5127  # Check whether --enable-64bit-solaris was given.
5128if test "${enable_64bit_solaris+set}" = set; then :
5129  enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval"
5130else
5131  ac_enable_64bit="yes"
5132fi
5133
5134
5135  if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5136
5137            CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${CXXFLAGS}"
5138
5139fi
5140
5141  case $host_os in
5142    *solaris*)
5143      for ac_prog in isainfo
5144do
5145  # Extract the first word of "$ac_prog", so it can be a program name with args.
5146set dummy $ac_prog; ac_word=$2
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148$as_echo_n "checking for $ac_word... " >&6; }
5149if ${ac_cv_prog_ISAINFO+:} false; then :
5150  $as_echo_n "(cached) " >&6
5151else
5152  if test -n "$ISAINFO"; then
5153  ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test.
5154else
5155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156for as_dir in $PATH
5157do
5158  IFS=$as_save_IFS
5159  test -z "$as_dir" && as_dir=.
5160    for ac_exec_ext in '' $ac_executable_extensions; do
5161  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5162    ac_cv_prog_ISAINFO="$ac_prog"
5163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5164    break 2
5165  fi
5166done
5167  done
5168IFS=$as_save_IFS
5169
5170fi
5171fi
5172ISAINFO=$ac_cv_prog_ISAINFO
5173if test -n "$ISAINFO"; then
5174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISAINFO" >&5
5175$as_echo "$ISAINFO" >&6; }
5176else
5177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5178$as_echo "no" >&6; }
5179fi
5180
5181
5182  test -n "$ISAINFO" && break
5183done
5184test -n "$ISAINFO" || ISAINFO="no"
5185
5186      if test "x$ISAINFO" != "xno"; then :
5187  isainfo_b=`${ISAINFO} -b`
5188else
5189  isainfo_b="x"
5190fi
5191
5192      if test "$isainfo_b" != "x"; then :
5193
5194
5195        isainfo_k=`${ISAINFO} -k`
5196
5197        if test "x$ac_enable_64bit" = "xyes"; then :
5198
5199
5200          if test "x$libdir" = "x\${exec_prefix}/lib"; then :
5201
5202                                 libdir="${libdir}/${isainfo_k}"
5203
5204fi
5205
5206                                        if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
5207
5208            CXXFLAGS="${CXXFLAGS} -m64"
5209            ac_cv_env_CXXFLAGS_set=set
5210            ac_cv_env_CXXFLAGS_value='-m64'
5211
5212fi
5213
5214          if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
5215
5216            CFLAGS="${CFLAGS} -m64"
5217            ac_cv_env_CFLAGS_set=set
5218            ac_cv_env_CFLAGS_value='-m64'
5219
5220fi
5221
5222          if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then :
5223
5224            CXXFLAGS="-xmemalign=8s ${CXXFLAGS}"
5225
5226fi
5227
5228fi
5229
5230fi
5231    ;;
5232  esac
5233
5234
5235
5236# Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd
5237# to the link
5238case `pwd` in
5239  *\ * | *\	*)
5240    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5241$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5242esac
5243
5244
5245
5246macro_version='2.2.4'
5247macro_revision='1.2976'
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261ltmain="$ac_aux_dir/ltmain.sh"
5262
5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5264$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5265if ${ac_cv_path_SED+:} false; then :
5266  $as_echo_n "(cached) " >&6
5267else
5268            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5269     for ac_i in 1 2 3 4 5 6 7; do
5270       ac_script="$ac_script$as_nl$ac_script"
5271     done
5272     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5273     { ac_script=; unset ac_script;}
5274     if test -z "$SED"; then
5275  ac_path_SED_found=false
5276  # Loop through the user's path and test for each of PROGNAME-LIST
5277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278for as_dir in $PATH
5279do
5280  IFS=$as_save_IFS
5281  test -z "$as_dir" && as_dir=.
5282    for ac_prog in sed gsed; do
5283    for ac_exec_ext in '' $ac_executable_extensions; do
5284      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5285      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5286# Check for GNU ac_path_SED and select it if it is found.
5287  # Check for GNU $ac_path_SED
5288case `"$ac_path_SED" --version 2>&1` in
5289*GNU*)
5290  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5291*)
5292  ac_count=0
5293  $as_echo_n 0123456789 >"conftest.in"
5294  while :
5295  do
5296    cat "conftest.in" "conftest.in" >"conftest.tmp"
5297    mv "conftest.tmp" "conftest.in"
5298    cp "conftest.in" "conftest.nl"
5299    $as_echo '' >> "conftest.nl"
5300    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5301    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5302    as_fn_arith $ac_count + 1 && ac_count=$as_val
5303    if test $ac_count -gt ${ac_path_SED_max-0}; then
5304      # Best one so far, save it but keep looking for a better one
5305      ac_cv_path_SED="$ac_path_SED"
5306      ac_path_SED_max=$ac_count
5307    fi
5308    # 10*(2^10) chars as input seems more than enough
5309    test $ac_count -gt 10 && break
5310  done
5311  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5312esac
5313
5314      $ac_path_SED_found && break 3
5315    done
5316  done
5317  done
5318IFS=$as_save_IFS
5319  if test -z "$ac_cv_path_SED"; then
5320    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5321  fi
5322else
5323  ac_cv_path_SED=$SED
5324fi
5325
5326fi
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5328$as_echo "$ac_cv_path_SED" >&6; }
5329 SED="$ac_cv_path_SED"
5330  rm -f conftest.sed
5331
5332test -z "$SED" && SED=sed
5333Xsed="$SED -e 1s/^X//"
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5346$as_echo_n "checking for fgrep... " >&6; }
5347if ${ac_cv_path_FGREP+:} false; then :
5348  $as_echo_n "(cached) " >&6
5349else
5350  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5351   then ac_cv_path_FGREP="$GREP -F"
5352   else
5353     if test -z "$FGREP"; then
5354  ac_path_FGREP_found=false
5355  # Loop through the user's path and test for each of PROGNAME-LIST
5356  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5358do
5359  IFS=$as_save_IFS
5360  test -z "$as_dir" && as_dir=.
5361    for ac_prog in fgrep; do
5362    for ac_exec_ext in '' $ac_executable_extensions; do
5363      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5364      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5365# Check for GNU ac_path_FGREP and select it if it is found.
5366  # Check for GNU $ac_path_FGREP
5367case `"$ac_path_FGREP" --version 2>&1` in
5368*GNU*)
5369  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5370*)
5371  ac_count=0
5372  $as_echo_n 0123456789 >"conftest.in"
5373  while :
5374  do
5375    cat "conftest.in" "conftest.in" >"conftest.tmp"
5376    mv "conftest.tmp" "conftest.in"
5377    cp "conftest.in" "conftest.nl"
5378    $as_echo 'FGREP' >> "conftest.nl"
5379    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5380    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5381    as_fn_arith $ac_count + 1 && ac_count=$as_val
5382    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5383      # Best one so far, save it but keep looking for a better one
5384      ac_cv_path_FGREP="$ac_path_FGREP"
5385      ac_path_FGREP_max=$ac_count
5386    fi
5387    # 10*(2^10) chars as input seems more than enough
5388    test $ac_count -gt 10 && break
5389  done
5390  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391esac
5392
5393      $ac_path_FGREP_found && break 3
5394    done
5395  done
5396  done
5397IFS=$as_save_IFS
5398  if test -z "$ac_cv_path_FGREP"; then
5399    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5400  fi
5401else
5402  ac_cv_path_FGREP=$FGREP
5403fi
5404
5405   fi
5406fi
5407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5408$as_echo "$ac_cv_path_FGREP" >&6; }
5409 FGREP="$ac_cv_path_FGREP"
5410
5411
5412test -z "$GREP" && GREP=grep
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432# Check whether --with-gnu-ld was given.
5433if test "${with_gnu_ld+set}" = set; then :
5434  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5435else
5436  with_gnu_ld=no
5437fi
5438
5439ac_prog=ld
5440if test "$GCC" = yes; then
5441  # Check if gcc -print-prog-name=ld gives a path.
5442  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5443$as_echo_n "checking for ld used by $CC... " >&6; }
5444  case $host in
5445  *-*-mingw*)
5446    # gcc leaves a trailing carriage return which upsets mingw
5447    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5448  *)
5449    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5450  esac
5451  case $ac_prog in
5452    # Accept absolute paths.
5453    [\\/]* | ?:[\\/]*)
5454      re_direlt='/[^/][^/]*/\.\./'
5455      # Canonicalize the pathname of ld
5456      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5457      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5458	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5459      done
5460      test -z "$LD" && LD="$ac_prog"
5461      ;;
5462  "")
5463    # If it fails, then pretend we aren't using GCC.
5464    ac_prog=ld
5465    ;;
5466  *)
5467    # If it is relative, then search for the first ld in PATH.
5468    with_gnu_ld=unknown
5469    ;;
5470  esac
5471elif test "$with_gnu_ld" = yes; then
5472  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5473$as_echo_n "checking for GNU ld... " >&6; }
5474else
5475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5476$as_echo_n "checking for non-GNU ld... " >&6; }
5477fi
5478if ${lt_cv_path_LD+:} false; then :
5479  $as_echo_n "(cached) " >&6
5480else
5481  if test -z "$LD"; then
5482  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5483  for ac_dir in $PATH; do
5484    IFS="$lt_save_ifs"
5485    test -z "$ac_dir" && ac_dir=.
5486    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5487      lt_cv_path_LD="$ac_dir/$ac_prog"
5488      # Check to see if the program is GNU ld.  I'd rather use --version,
5489      # but apparently some variants of GNU ld only accept -v.
5490      # Break only if it was the GNU/non-GNU ld that we prefer.
5491      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5492      *GNU* | *'with BFD'*)
5493	test "$with_gnu_ld" != no && break
5494	;;
5495      *)
5496	test "$with_gnu_ld" != yes && break
5497	;;
5498      esac
5499    fi
5500  done
5501  IFS="$lt_save_ifs"
5502else
5503  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5504fi
5505fi
5506
5507LD="$lt_cv_path_LD"
5508if test -n "$LD"; then
5509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5510$as_echo "$LD" >&6; }
5511else
5512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513$as_echo "no" >&6; }
5514fi
5515test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5517$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5518if ${lt_cv_prog_gnu_ld+:} false; then :
5519  $as_echo_n "(cached) " >&6
5520else
5521  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5522case `$LD -v 2>&1 </dev/null` in
5523*GNU* | *'with BFD'*)
5524  lt_cv_prog_gnu_ld=yes
5525  ;;
5526*)
5527  lt_cv_prog_gnu_ld=no
5528  ;;
5529esac
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5532$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5533with_gnu_ld=$lt_cv_prog_gnu_ld
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5544$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5545if ${lt_cv_path_NM+:} false; then :
5546  $as_echo_n "(cached) " >&6
5547else
5548  if test -n "$NM"; then
5549  # Let the user override the test.
5550  lt_cv_path_NM="$NM"
5551else
5552  lt_nm_to_check="${ac_tool_prefix}nm"
5553  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5554    lt_nm_to_check="$lt_nm_to_check nm"
5555  fi
5556  for lt_tmp_nm in $lt_nm_to_check; do
5557    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5558    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5559      IFS="$lt_save_ifs"
5560      test -z "$ac_dir" && ac_dir=.
5561      tmp_nm="$ac_dir/$lt_tmp_nm"
5562      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5563	# Check to see if the nm accepts a BSD-compat flag.
5564	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5565	#   nm: unknown option "B" ignored
5566	# Tru64's nm complains that /dev/null is an invalid object file
5567	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5568	*/dev/null* | *'Invalid file or object type'*)
5569	  lt_cv_path_NM="$tmp_nm -B"
5570	  break
5571	  ;;
5572	*)
5573	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5574	  */dev/null*)
5575	    lt_cv_path_NM="$tmp_nm -p"
5576	    break
5577	    ;;
5578	  *)
5579	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5580	    continue # so that we can try to find one that supports BSD flags
5581	    ;;
5582	  esac
5583	  ;;
5584	esac
5585      fi
5586    done
5587    IFS="$lt_save_ifs"
5588  done
5589  : ${lt_cv_path_NM=no}
5590fi
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5593$as_echo "$lt_cv_path_NM" >&6; }
5594if test "$lt_cv_path_NM" != "no"; then
5595  NM="$lt_cv_path_NM"
5596else
5597  # Didn't find any BSD compatible name lister, look for dumpbin.
5598  if test -n "$ac_tool_prefix"; then
5599  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5600  do
5601    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604$as_echo_n "checking for $ac_word... " >&6; }
5605if ${ac_cv_prog_DUMPBIN+:} false; then :
5606  $as_echo_n "(cached) " >&6
5607else
5608  if test -n "$DUMPBIN"; then
5609  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614  IFS=$as_save_IFS
5615  test -z "$as_dir" && as_dir=.
5616    for ac_exec_ext in '' $ac_executable_extensions; do
5617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5620    break 2
5621  fi
5622done
5623  done
5624IFS=$as_save_IFS
5625
5626fi
5627fi
5628DUMPBIN=$ac_cv_prog_DUMPBIN
5629if test -n "$DUMPBIN"; then
5630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5631$as_echo "$DUMPBIN" >&6; }
5632else
5633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634$as_echo "no" >&6; }
5635fi
5636
5637
5638    test -n "$DUMPBIN" && break
5639  done
5640fi
5641if test -z "$DUMPBIN"; then
5642  ac_ct_DUMPBIN=$DUMPBIN
5643  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5644do
5645  # Extract the first word of "$ac_prog", so it can be a program name with args.
5646set dummy $ac_prog; ac_word=$2
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648$as_echo_n "checking for $ac_word... " >&6; }
5649if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -n "$ac_ct_DUMPBIN"; then
5653  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5654else
5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656for as_dir in $PATH
5657do
5658  IFS=$as_save_IFS
5659  test -z "$as_dir" && as_dir=.
5660    for ac_exec_ext in '' $ac_executable_extensions; do
5661  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5663    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664    break 2
5665  fi
5666done
5667  done
5668IFS=$as_save_IFS
5669
5670fi
5671fi
5672ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5673if test -n "$ac_ct_DUMPBIN"; then
5674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5675$as_echo "$ac_ct_DUMPBIN" >&6; }
5676else
5677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678$as_echo "no" >&6; }
5679fi
5680
5681
5682  test -n "$ac_ct_DUMPBIN" && break
5683done
5684
5685  if test "x$ac_ct_DUMPBIN" = x; then
5686    DUMPBIN=":"
5687  else
5688    case $cross_compiling:$ac_tool_warned in
5689yes:)
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692ac_tool_warned=yes ;;
5693esac
5694    DUMPBIN=$ac_ct_DUMPBIN
5695  fi
5696fi
5697
5698
5699  if test "$DUMPBIN" != ":"; then
5700    NM="$DUMPBIN"
5701  fi
5702fi
5703test -z "$NM" && NM=nm
5704
5705
5706
5707
5708
5709
5710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5711$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5712if ${lt_cv_nm_interface+:} false; then :
5713  $as_echo_n "(cached) " >&6
5714else
5715  lt_cv_nm_interface="BSD nm"
5716  echo "int some_variable = 0;" > conftest.$ac_ext
5717  (eval echo "\"\$as_me:5717: $ac_compile\"" >&5)
5718  (eval "$ac_compile" 2>conftest.err)
5719  cat conftest.err >&5
5720  (eval echo "\"\$as_me:5720: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5721  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5722  cat conftest.err >&5
5723  (eval echo "\"\$as_me:5723: output\"" >&5)
5724  cat conftest.out >&5
5725  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5726    lt_cv_nm_interface="MS dumpbin"
5727  fi
5728  rm -f conftest*
5729fi
5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5731$as_echo "$lt_cv_nm_interface" >&6; }
5732
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5734$as_echo_n "checking whether ln -s works... " >&6; }
5735LN_S=$as_ln_s
5736if test "$LN_S" = "ln -s"; then
5737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738$as_echo "yes" >&6; }
5739else
5740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5741$as_echo "no, using $LN_S" >&6; }
5742fi
5743
5744# find the maximum length of command line arguments
5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5746$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5747if ${lt_cv_sys_max_cmd_len+:} false; then :
5748  $as_echo_n "(cached) " >&6
5749else
5750    i=0
5751  teststring="ABCD"
5752
5753  case $build_os in
5754  msdosdjgpp*)
5755    # On DJGPP, this test can blow up pretty badly due to problems in libc
5756    # (any single argument exceeding 2000 bytes causes a buffer overrun
5757    # during glob expansion).  Even if it were fixed, the result of this
5758    # check would be larger than it should be.
5759    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5760    ;;
5761
5762  gnu*)
5763    # Under GNU Hurd, this test is not required because there is
5764    # no limit to the length of command line arguments.
5765    # Libtool will interpret -1 as no limit whatsoever
5766    lt_cv_sys_max_cmd_len=-1;
5767    ;;
5768
5769  cygwin* | mingw*)
5770    # On Win9x/ME, this test blows up -- it succeeds, but takes
5771    # about 5 minutes as the teststring grows exponentially.
5772    # Worse, since 9x/ME are not pre-emptively multitasking,
5773    # you end up with a "frozen" computer, even though with patience
5774    # the test eventually succeeds (with a max line length of 256k).
5775    # Instead, let's just punt: use the minimum linelength reported by
5776    # all of the supported platforms: 8192 (on NT/2K/XP).
5777    lt_cv_sys_max_cmd_len=8192;
5778    ;;
5779
5780  amigaos*)
5781    # On AmigaOS with pdksh, this test takes hours, literally.
5782    # So we just punt and use a minimum line length of 8192.
5783    lt_cv_sys_max_cmd_len=8192;
5784    ;;
5785
5786  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5787    # This has been around since 386BSD, at least.  Likely further.
5788    if test -x /sbin/sysctl; then
5789      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5790    elif test -x /usr/sbin/sysctl; then
5791      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5792    else
5793      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5794    fi
5795    # And add a safety zone
5796    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5797    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5798    ;;
5799
5800  interix*)
5801    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5802    lt_cv_sys_max_cmd_len=196608
5803    ;;
5804
5805  osf*)
5806    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5807    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5808    # nice to cause kernel panics so lets avoid the loop below.
5809    # First set a reasonable default.
5810    lt_cv_sys_max_cmd_len=16384
5811    #
5812    if test -x /sbin/sysconfig; then
5813      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5814        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5815      esac
5816    fi
5817    ;;
5818  sco3.2v5*)
5819    lt_cv_sys_max_cmd_len=102400
5820    ;;
5821  sysv5* | sco5v6* | sysv4.2uw2*)
5822    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5823    if test -n "$kargmax"; then
5824      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5825    else
5826      lt_cv_sys_max_cmd_len=32768
5827    fi
5828    ;;
5829  *)
5830    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5831    if test -n "$lt_cv_sys_max_cmd_len"; then
5832      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5833      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5834    else
5835      # Make teststring a little bigger before we do anything with it.
5836      # a 1K string should be a reasonable start.
5837      for i in 1 2 3 4 5 6 7 8 ; do
5838        teststring=$teststring$teststring
5839      done
5840      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5841      # If test is not a shell built-in, we'll probably end up computing a
5842      # maximum length that is only half of the actual maximum length, but
5843      # we can't tell.
5844      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5845	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5846	      test $i != 17 # 1/2 MB should be enough
5847      do
5848        i=`expr $i + 1`
5849        teststring=$teststring$teststring
5850      done
5851      # Only check the string length outside the loop.
5852      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5853      teststring=
5854      # Add a significant safety factor because C++ compilers can tack on
5855      # massive amounts of additional arguments before passing them to the
5856      # linker.  It appears as though 1/2 is a usable value.
5857      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5858    fi
5859    ;;
5860  esac
5861
5862fi
5863
5864if test -n $lt_cv_sys_max_cmd_len ; then
5865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5866$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5867else
5868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5869$as_echo "none" >&6; }
5870fi
5871max_cmd_len=$lt_cv_sys_max_cmd_len
5872
5873
5874
5875
5876
5877
5878: ${CP="cp -f"}
5879: ${MV="mv -f"}
5880: ${RM="rm -f"}
5881
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5883$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5884# Try some XSI features
5885xsi_shell=no
5886( _lt_dummy="a/b/c"
5887  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5888      = c,a/b,, \
5889    && eval 'test $(( 1 + 1 )) -eq 2 \
5890    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5891  && xsi_shell=yes
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5893$as_echo "$xsi_shell" >&6; }
5894
5895
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5897$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5898lt_shell_append=no
5899( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5900    >/dev/null 2>&1 \
5901  && lt_shell_append=yes
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5903$as_echo "$lt_shell_append" >&6; }
5904
5905
5906if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5907  lt_unset=unset
5908else
5909  lt_unset=false
5910fi
5911
5912
5913
5914
5915
5916# test EBCDIC or ASCII
5917case `echo X|tr X '\101'` in
5918 A) # ASCII based system
5919    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5920  lt_SP2NL='tr \040 \012'
5921  lt_NL2SP='tr \015\012 \040\040'
5922  ;;
5923 *) # EBCDIC based system
5924  lt_SP2NL='tr \100 \n'
5925  lt_NL2SP='tr \r\n \100\100'
5926  ;;
5927esac
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5938$as_echo_n "checking for $LD option to reload object files... " >&6; }
5939if ${lt_cv_ld_reload_flag+:} false; then :
5940  $as_echo_n "(cached) " >&6
5941else
5942  lt_cv_ld_reload_flag='-r'
5943fi
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5945$as_echo "$lt_cv_ld_reload_flag" >&6; }
5946reload_flag=$lt_cv_ld_reload_flag
5947case $reload_flag in
5948"" | " "*) ;;
5949*) reload_flag=" $reload_flag" ;;
5950esac
5951reload_cmds='$LD$reload_flag -o $output$reload_objs'
5952case $host_os in
5953  darwin*)
5954    if test "$GCC" = yes; then
5955      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5956    else
5957      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5958    fi
5959    ;;
5960esac
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5972$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5973if ${lt_cv_deplibs_check_method+:} false; then :
5974  $as_echo_n "(cached) " >&6
5975else
5976  lt_cv_file_magic_cmd='$MAGIC_CMD'
5977lt_cv_file_magic_test_file=
5978lt_cv_deplibs_check_method='unknown'
5979# Need to set the preceding variable on all platforms that support
5980# interlibrary dependencies.
5981# 'none' -- dependencies not supported.
5982# `unknown' -- same as none, but documents that we really don't know.
5983# 'pass_all' -- all dependencies passed with no checks.
5984# 'test_compile' -- check by making test program.
5985# 'file_magic [[regex]]' -- check by looking for files in library path
5986# which responds to the $file_magic_cmd with a given extended regex.
5987# If you have `file' or equivalent on your system and you're not sure
5988# whether `pass_all' will *always* work, you probably want this one.
5989
5990case $host_os in
5991aix[4-9]*)
5992  lt_cv_deplibs_check_method=pass_all
5993  ;;
5994
5995beos*)
5996  lt_cv_deplibs_check_method=pass_all
5997  ;;
5998
5999bsdi[45]*)
6000  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6001  lt_cv_file_magic_cmd='/usr/bin/file -L'
6002  lt_cv_file_magic_test_file=/shlib/libc.so
6003  ;;
6004
6005cygwin*)
6006  # func_win32_libid is a shell function defined in ltmain.sh
6007  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6008  lt_cv_file_magic_cmd='func_win32_libid'
6009  ;;
6010
6011mingw* | pw32*)
6012  # Base MSYS/MinGW do not provide the 'file' command needed by
6013  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6014  # unless we find 'file', for example because we are cross-compiling.
6015  if ( file / ) >/dev/null 2>&1; then
6016    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6017    lt_cv_file_magic_cmd='func_win32_libid'
6018  else
6019    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6020    lt_cv_file_magic_cmd='$OBJDUMP -f'
6021  fi
6022  ;;
6023
6024darwin* | rhapsody*)
6025  lt_cv_deplibs_check_method=pass_all
6026  ;;
6027
6028freebsd* | dragonfly*)
6029  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6030    case $host_cpu in
6031    i*86 )
6032      # Not sure whether the presence of OpenBSD here was a mistake.
6033      # Let's accept both of them until this is cleared up.
6034      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6035      lt_cv_file_magic_cmd=/usr/bin/file
6036      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6037      ;;
6038    esac
6039  else
6040    lt_cv_deplibs_check_method=pass_all
6041  fi
6042  ;;
6043
6044gnu*)
6045  lt_cv_deplibs_check_method=pass_all
6046  ;;
6047
6048hpux10.20* | hpux11*)
6049  lt_cv_file_magic_cmd=/usr/bin/file
6050  case $host_cpu in
6051  ia64*)
6052    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6053    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6054    ;;
6055  hppa*64*)
6056    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]'
6057    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6058    ;;
6059  *)
6060    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6061    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6062    ;;
6063  esac
6064  ;;
6065
6066interix[3-9]*)
6067  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6068  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6069  ;;
6070
6071irix5* | irix6* | nonstopux*)
6072  case $LD in
6073  *-32|*"-32 ") libmagic=32-bit;;
6074  *-n32|*"-n32 ") libmagic=N32;;
6075  *-64|*"-64 ") libmagic=64-bit;;
6076  *) libmagic=never-match;;
6077  esac
6078  lt_cv_deplibs_check_method=pass_all
6079  ;;
6080
6081# This must be Linux ELF.
6082linux* | k*bsd*-gnu)
6083  lt_cv_deplibs_check_method=pass_all
6084  ;;
6085
6086netbsd*)
6087  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6088    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6089  else
6090    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6091  fi
6092  ;;
6093
6094newos6*)
6095  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6096  lt_cv_file_magic_cmd=/usr/bin/file
6097  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6098  ;;
6099
6100*nto* | *qnx*)
6101  lt_cv_deplibs_check_method=pass_all
6102  ;;
6103
6104openbsd*)
6105  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6106    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6107  else
6108    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6109  fi
6110  ;;
6111
6112osf3* | osf4* | osf5*)
6113  lt_cv_deplibs_check_method=pass_all
6114  ;;
6115
6116rdos*)
6117  lt_cv_deplibs_check_method=pass_all
6118  ;;
6119
6120solaris*)
6121  lt_cv_deplibs_check_method=pass_all
6122  ;;
6123
6124sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6125  lt_cv_deplibs_check_method=pass_all
6126  ;;
6127
6128sysv4 | sysv4.3*)
6129  case $host_vendor in
6130  motorola)
6131    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]'
6132    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6133    ;;
6134  ncr)
6135    lt_cv_deplibs_check_method=pass_all
6136    ;;
6137  sequent)
6138    lt_cv_file_magic_cmd='/bin/file'
6139    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6140    ;;
6141  sni)
6142    lt_cv_file_magic_cmd='/bin/file'
6143    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6144    lt_cv_file_magic_test_file=/lib/libc.so
6145    ;;
6146  siemens)
6147    lt_cv_deplibs_check_method=pass_all
6148    ;;
6149  pc)
6150    lt_cv_deplibs_check_method=pass_all
6151    ;;
6152  esac
6153  ;;
6154
6155tpf*)
6156  lt_cv_deplibs_check_method=pass_all
6157  ;;
6158esac
6159
6160fi
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6162$as_echo "$lt_cv_deplibs_check_method" >&6; }
6163file_magic_cmd=$lt_cv_file_magic_cmd
6164deplibs_check_method=$lt_cv_deplibs_check_method
6165test -z "$deplibs_check_method" && deplibs_check_method=unknown
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178if test -n "$ac_tool_prefix"; then
6179  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6180set dummy ${ac_tool_prefix}ar; ac_word=$2
6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182$as_echo_n "checking for $ac_word... " >&6; }
6183if ${ac_cv_prog_AR+:} false; then :
6184  $as_echo_n "(cached) " >&6
6185else
6186  if test -n "$AR"; then
6187  ac_cv_prog_AR="$AR" # Let the user override the test.
6188else
6189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190for as_dir in $PATH
6191do
6192  IFS=$as_save_IFS
6193  test -z "$as_dir" && as_dir=.
6194    for ac_exec_ext in '' $ac_executable_extensions; do
6195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196    ac_cv_prog_AR="${ac_tool_prefix}ar"
6197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198    break 2
6199  fi
6200done
6201  done
6202IFS=$as_save_IFS
6203
6204fi
6205fi
6206AR=$ac_cv_prog_AR
6207if test -n "$AR"; then
6208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6209$as_echo "$AR" >&6; }
6210else
6211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212$as_echo "no" >&6; }
6213fi
6214
6215
6216fi
6217if test -z "$ac_cv_prog_AR"; then
6218  ac_ct_AR=$AR
6219  # Extract the first word of "ar", so it can be a program name with args.
6220set dummy ar; ac_word=$2
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222$as_echo_n "checking for $ac_word... " >&6; }
6223if ${ac_cv_prog_ac_ct_AR+:} false; then :
6224  $as_echo_n "(cached) " >&6
6225else
6226  if test -n "$ac_ct_AR"; then
6227  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  test -z "$as_dir" && as_dir=.
6234    for ac_exec_ext in '' $ac_executable_extensions; do
6235  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6236    ac_cv_prog_ac_ct_AR="ar"
6237    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6238    break 2
6239  fi
6240done
6241  done
6242IFS=$as_save_IFS
6243
6244fi
6245fi
6246ac_ct_AR=$ac_cv_prog_ac_ct_AR
6247if test -n "$ac_ct_AR"; then
6248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6249$as_echo "$ac_ct_AR" >&6; }
6250else
6251  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252$as_echo "no" >&6; }
6253fi
6254
6255  if test "x$ac_ct_AR" = x; then
6256    AR="false"
6257  else
6258    case $cross_compiling:$ac_tool_warned in
6259yes:)
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262ac_tool_warned=yes ;;
6263esac
6264    AR=$ac_ct_AR
6265  fi
6266else
6267  AR="$ac_cv_prog_AR"
6268fi
6269
6270test -z "$AR" && AR=ar
6271test -z "$AR_FLAGS" && AR_FLAGS=cru
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283if test -n "$ac_tool_prefix"; then
6284  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6285set dummy ${ac_tool_prefix}strip; ac_word=$2
6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287$as_echo_n "checking for $ac_word... " >&6; }
6288if ${ac_cv_prog_STRIP+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -n "$STRIP"; then
6292  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297  IFS=$as_save_IFS
6298  test -z "$as_dir" && as_dir=.
6299    for ac_exec_ext in '' $ac_executable_extensions; do
6300  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6302    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303    break 2
6304  fi
6305done
6306  done
6307IFS=$as_save_IFS
6308
6309fi
6310fi
6311STRIP=$ac_cv_prog_STRIP
6312if test -n "$STRIP"; then
6313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6314$as_echo "$STRIP" >&6; }
6315else
6316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317$as_echo "no" >&6; }
6318fi
6319
6320
6321fi
6322if test -z "$ac_cv_prog_STRIP"; then
6323  ac_ct_STRIP=$STRIP
6324  # Extract the first word of "strip", so it can be a program name with args.
6325set dummy strip; ac_word=$2
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6327$as_echo_n "checking for $ac_word... " >&6; }
6328if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  if test -n "$ac_ct_STRIP"; then
6332  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337  IFS=$as_save_IFS
6338  test -z "$as_dir" && as_dir=.
6339    for ac_exec_ext in '' $ac_executable_extensions; do