• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/gettext-0.17/gettext-runtime/
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585echo=${ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $echo works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<EOF
604$*
605EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$ECHO"; then
614if test "X${echo_test_string+set}" != Xset; then
615# find a string as large as possible, as long as the shell can cope with it
616  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
619       echo_test_string=`eval $cmd` &&
620       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
621    then
622      break
623    fi
624  done
625fi
626
627if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629   test "X$echo_testing_string" = "X$echo_test_string"; then
630  :
631else
632  # The Solaris, AIX, and Digital Unix default echo programs unquote
633  # backslashes.  This makes it impossible to quote backslashes using
634  #   echo "$something" | sed 's/\\/\\\\/g'
635  #
636  # So, first we look for a working echo in the user's PATH.
637
638  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639  for dir in $PATH /usr/ucb; do
640    IFS="$lt_save_ifs"
641    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644       test "X$echo_testing_string" = "X$echo_test_string"; then
645      echo="$dir/echo"
646      break
647    fi
648  done
649  IFS="$lt_save_ifs"
650
651  if test "X$echo" = Xecho; then
652    # We didn't find a better echo, so look for alternatives.
653    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655       test "X$echo_testing_string" = "X$echo_test_string"; then
656      # This shell has a builtin print -r that does the trick.
657      echo='print -r'
658    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659	 test "X$CONFIG_SHELL" != X/bin/ksh; then
660      # If we have ksh, try running configure again with it.
661      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662      export ORIGINAL_CONFIG_SHELL
663      CONFIG_SHELL=/bin/ksh
664      export CONFIG_SHELL
665      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
666    else
667      # Try using printf.
668      echo='printf %s\n'
669      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671	 test "X$echo_testing_string" = "X$echo_test_string"; then
672	# Cool, printf works
673	:
674      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675	   test "X$echo_testing_string" = 'X\t' &&
676	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677	   test "X$echo_testing_string" = "X$echo_test_string"; then
678	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
679	export CONFIG_SHELL
680	SHELL="$CONFIG_SHELL"
681	export SHELL
682	echo="$CONFIG_SHELL $0 --fallback-echo"
683      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684	   test "X$echo_testing_string" = 'X\t' &&
685	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686	   test "X$echo_testing_string" = "X$echo_test_string"; then
687	echo="$CONFIG_SHELL $0 --fallback-echo"
688      else
689	# maybe with a smaller string...
690	prev=:
691
692	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
694	  then
695	    break
696	  fi
697	  prev="$cmd"
698	done
699
700	if test "$prev" != 'sed 50q "$0"'; then
701	  echo_test_string=`eval $prev`
702	  export echo_test_string
703	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
704	else
705	  # Oops.  We lost completely, so just stick with echo.
706	  echo=echo
707	fi
708      fi
709    fi
710  fi
711fi
712fi
713
714# Copy echo and quote the copy suitably for passing to libtool from
715# the Makefile, instead of quoting the original, which is used later.
716ECHO=$echo
717if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
719fi
720
721
722
723
724tagnames=${tagnames+${tagnames},}CXX
725
726tagnames=${tagnames+${tagnames},}F77
727
728exec 7<&0 </dev/null 6>&1
729
730# Name of the host.
731# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732# so uname gets run too.
733ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
734
735#
736# Initializations.
737#
738ac_default_prefix=/usr/local
739ac_clean_files=
740ac_config_libobj_dir=.
741LIBOBJS=
742cross_compiling=no
743subdirs=
744MFLAGS=
745MAKEFLAGS=
746SHELL=${CONFIG_SHELL-/bin/sh}
747
748# Identity of this package.
749PACKAGE_NAME=
750PACKAGE_TARNAME=
751PACKAGE_VERSION=
752PACKAGE_STRING=
753PACKAGE_BUGREPORT=
754
755ac_unique_file="intl/dcigettext.c"
756# Factoring default headers for most tests.
757ac_includes_default="\
758#include <stdio.h>
759#ifdef HAVE_SYS_TYPES_H
760# include <sys/types.h>
761#endif
762#ifdef HAVE_SYS_STAT_H
763# include <sys/stat.h>
764#endif
765#ifdef STDC_HEADERS
766# include <stdlib.h>
767# include <stddef.h>
768#else
769# ifdef HAVE_STDLIB_H
770#  include <stdlib.h>
771# endif
772#endif
773#ifdef HAVE_STRING_H
774# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
775#  include <memory.h>
776# endif
777# include <string.h>
778#endif
779#ifdef HAVE_STRINGS_H
780# include <strings.h>
781#endif
782#ifdef HAVE_INTTYPES_H
783# include <inttypes.h>
784#endif
785#ifdef HAVE_STDINT_H
786# include <stdint.h>
787#endif
788#ifdef HAVE_UNISTD_H
789# include <unistd.h>
790#endif"
791
792gt_needs=
793gl_header_list=
794gl_func_list=
795enable_option_checking=no
796ac_subst_vars='gl_LTLIBOBJS
797gl_LIBOBJS
798LTLIBOBJS
799LIBOBJS
800subdirs
801ENABLE_LIBASPRINTF_FALSE
802ENABLE_LIBASPRINTF_TRUE
803LIBSCHED
804CROSS_COMPILING
805PERL
806LIBGRT_LTLIBDEPS
807LIBGRT_LIBDEPS
808WCTYPE_H
809HAVE_WCTYPE_H
810NEXT_WCTYPE_H
811HAVE_WINT_T
812HAVE_ISWCNTRL
813NEXT_WCHAR_H
814HAVE_WCHAR_H
815WCHAR_H
816REPLACE_WCWIDTH
817HAVE_DECL_WCWIDTH
818GNULIB_WCWIDTH
819HAVE_UNISTD_H
820NEXT_UNISTD_H
821NEXT_STRING_H
822NEXT_STDLIB_H
823STDINT_H
824WINT_T_SUFFIX
825WCHAR_T_SUFFIX
826SIZE_T_SUFFIX
827SIG_ATOMIC_T_SUFFIX
828PTRDIFF_T_SUFFIX
829HAVE_SIGNED_WINT_T
830HAVE_SIGNED_WCHAR_T
831HAVE_SIGNED_SIG_ATOMIC_T
832BITSIZEOF_WINT_T
833BITSIZEOF_WCHAR_T
834BITSIZEOF_SIZE_T
835BITSIZEOF_SIG_ATOMIC_T
836BITSIZEOF_PTRDIFF_T
837HAVE_SYS_BITYPES_H
838HAVE_SYS_INTTYPES_H
839HAVE_STDINT_H
840NEXT_STDINT_H
841HAVE_SYS_TYPES_H
842HAVE_INTTYPES_H
843HAVE_UNSIGNED_LONG_LONG_INT
844HAVE_LONG_LONG_INT
845HAVE__BOOL
846STDBOOL_H
847RELOCATABLE_BUILD_DIR
848RELOCATABLE_SRC_DIR
849RELOCATABLE_CONFIG_H_DIR
850RELOCATABLE_LIBRARY_PATH
851RELOCATABLE_VIA_LD_FALSE
852RELOCATABLE_VIA_LD_TRUE
853INSTALL_PROGRAM_ENV
854RELOCATABLE_LDFLAGS
855RELOCATABLE
856REPLACE_LSEEK
857REPLACE_LCHOWN
858REPLACE_GETCWD
859REPLACE_FCHDIR
860REPLACE_CHOWN
861HAVE_DECL_GETLOGIN_R
862HAVE_SLEEP
863HAVE_READLINK
864HAVE_FTRUNCATE
865HAVE_DUP2
866GNULIB_SLEEP
867GNULIB_READLINK
868GNULIB_LSEEK
869GNULIB_LCHOWN
870GNULIB_GETLOGIN_R
871GNULIB_GETCWD
872GNULIB_FTRUNCATE
873GNULIB_FCHDIR
874GNULIB_DUP2
875GNULIB_CHOWN
876REPLACE_STRERROR
877HAVE_DECL_STRERROR
878HAVE_DECL_STRTOK_R
879HAVE_STRCASESTR
880HAVE_STRSEP
881HAVE_STRPBRK
882HAVE_DECL_STRNLEN
883HAVE_DECL_STRNDUP
884HAVE_STRNDUP
885HAVE_DECL_STRDUP
886HAVE_STRCHRNUL
887HAVE_DECL_STRNCASECMP
888HAVE_STRCASECMP
889HAVE_STPNCPY
890HAVE_STPCPY
891HAVE_DECL_MEMRCHR
892HAVE_MEMPCPY
893HAVE_DECL_MEMMEM
894GNULIB_STRERROR
895GNULIB_MBSTOK_R
896GNULIB_MBSSEP
897GNULIB_MBSSPN
898GNULIB_MBSPBRK
899GNULIB_MBSCSPN
900GNULIB_MBSCASESTR
901GNULIB_MBSPCASECMP
902GNULIB_MBSNCASECMP
903GNULIB_MBSCASECMP
904GNULIB_MBSSTR
905GNULIB_MBSRCHR
906GNULIB_MBSCHR
907GNULIB_MBSNLEN
908GNULIB_MBSLEN
909GNULIB_STRTOK_R
910GNULIB_STRCASESTR
911GNULIB_STRSEP
912GNULIB_STRPBRK
913GNULIB_STRNLEN
914GNULIB_STRNDUP
915GNULIB_STRDUP
916GNULIB_STRCHRNUL
917GNULIB_STPNCPY
918GNULIB_STPCPY
919GNULIB_MEMRCHR
920GNULIB_MEMPCPY
921GNULIB_MEMMEM
922REPLACE_PUTENV
923REPLACE_MKSTEMP
924HAVE_REALLOC_POSIX
925HAVE_MKDTEMP
926HAVE_GETSUBOPT
927HAVE_CALLOC_POSIX
928GNULIB_PUTENV
929GNULIB_MKSTEMP
930GNULIB_MKDTEMP
931GNULIB_GETSUBOPT
932GNULIB_CALLOC_POSIX
933GNULIB_REALLOC_POSIX
934GNULIB_MALLOC_POSIX
935HAVE_MALLOC_POSIX
936ICONV_H
937NEXT_ICONV_H
938INCLUDE_NEXT
939REPLACE_ICONV_UTF
940REPLACE_ICONV_OPEN
941REPLACE_ICONV
942GETOPT_H
943ALLOCA_H
944GL_COND_LIBTOOL_FALSE
945GL_COND_LIBTOOL_TRUE
946POSUB
947LTLIBINTL
948LIBINTL
949INTLLIBS
950INTL_LIBTOOL_SUFFIX_PREFIX
951INTLOBJS
952GENCAT
953INSTOBJEXT
954DATADIRNAME
955CATOBJEXT
956USE_INCLUDED_LIBINTL
957BUILD_INCLUDED_LIBINTL
958LTLIBC
959WINDRES
960WOE32
961WOE32DLL
962HAVE_WPRINTF
963HAVE_SNPRINTF
964HAVE_ASPRINTF
965HAVE_POSIX_PRINTF
966INTL_MACOSX_LIBS
967GLIBC21
968INTLBISON
969LTLIBICONV
970LIBICONV
971LTLIBMULTITHREAD
972LIBMULTITHREAD
973LTLIBTHREAD
974LIBTHREAD
975LIBPTH_PREFIX
976LTLIBPTH
977LIBPTH
978PRI_MACROS_BROKEN
979ALLOCA
980HAVE_VISIBILITY
981CFLAG_VISIBILITY
982GLIBC2
983XGETTEXT_EXTRA_OPTIONS
984MSGMERGE
985XGETTEXT_015
986XGETTEXT
987GMSGFMT_015
988MSGFMT_015
989GMSGFMT
990MSGFMT
991GETTEXT_MACRO_VERSION
992USE_NLS
993WOE32_FALSE
994WOE32_TRUE
995LIBTOOL
996ac_ct_F77
997FFLAGS
998F77
999CXXCPP
1000am__fastdepCXX_FALSE
1001am__fastdepCXX_TRUE
1002CXXDEPMODE
1003ac_ct_CXX
1004CXXFLAGS
1005CXX
1006OBJDUMP
1007AS
1008DLLTOOL
1009AR
1010ECHO
1011LN_S
1012SED
1013RANLIB
1014host_os
1015host_vendor
1016host_cpu
1017host
1018build_os
1019build_vendor
1020build_cpu
1021build
1022BUILDCSHARP
1023CSHARPCOMPFLAGS
1024HAVE_CSC
1025HAVE_MCS
1026HAVE_CSCC
1027HAVE_CSC_IN_PATH
1028HAVE_MCS_IN_PATH
1029HAVE_CSCC_IN_PATH
1030CSHARP_CHOICE
1031BUILDJAVA
1032JAR
1033HAVE_JIKES
1034HAVE_JAVAC
1035HAVE_GCJ_C
1036HAVE_JAVAC_ENVVAR
1037CLASSPATH_SEPARATOR
1038CLASSPATH
1039CONF_JAVAC
1040HAVE_JIKES_IN_PATH
1041HAVE_JAVAC_IN_PATH
1042HAVE_GCJ_IN_PATH
1043EGREP
1044GREP
1045CPP
1046JAVA_CHOICE
1047YFLAGS
1048YACC
1049am__fastdepCC_FALSE
1050am__fastdepCC_TRUE
1051CCDEPMODE
1052AMDEPBACKSLASH
1053AMDEP_FALSE
1054AMDEP_TRUE
1055am__quote
1056am__include
1057DEPDIR
1058OBJEXT
1059EXEEXT
1060ac_ct_CC
1061CPPFLAGS
1062LDFLAGS
1063CFLAGS
1064CC
1065am__untar
1066am__tar
1067AMTAR
1068am__leading_dot
1069SET_MAKE
1070AWK
1071mkdir_p
1072MKDIR_P
1073INSTALL_STRIP_PROGRAM
1074STRIP
1075install_sh
1076MAKEINFO
1077AUTOHEADER
1078AUTOMAKE
1079AUTOCONF
1080ACLOCAL
1081VERSION
1082PACKAGE
1083CYGPATH_W
1084am__isrc
1085INSTALL_DATA
1086INSTALL_SCRIPT
1087INSTALL_PROGRAM
1088target_alias
1089host_alias
1090build_alias
1091LIBS
1092ECHO_T
1093ECHO_N
1094ECHO_C
1095DEFS
1096mandir
1097localedir
1098libdir
1099psdir
1100pdfdir
1101dvidir
1102htmldir
1103infodir
1104docdir
1105oldincludedir
1106includedir
1107localstatedir
1108sharedstatedir
1109sysconfdir
1110datadir
1111datarootdir
1112libexecdir
1113sbindir
1114bindir
1115program_transform_name
1116prefix
1117exec_prefix
1118PACKAGE_BUGREPORT
1119PACKAGE_STRING
1120PACKAGE_VERSION
1121PACKAGE_TARNAME
1122PACKAGE_NAME
1123PATH_SEPARATOR
1124SHELL'
1125ac_subst_files=''
1126ac_user_opts='
1127enable_option_checking
1128enable_dependency_tracking
1129enable_java
1130enable_native_java
1131enable_csharp
1132enable_shared
1133enable_static
1134enable_fast_install
1135with_gnu_ld
1136enable_libtool_lock
1137with_pic
1138with_tags
1139enable_nls
1140enable_threads
1141enable_rpath
1142with_libpth_prefix
1143with_libiconv_prefix
1144with_included_gettext
1145with_libintl_prefix
1146enable_relocatable
1147enable_libasprintf
1148'
1149      ac_precious_vars='build_alias
1150host_alias
1151target_alias
1152CC
1153CFLAGS
1154LDFLAGS
1155LIBS
1156CPPFLAGS
1157YACC
1158YFLAGS
1159CPP
1160CXX
1161CXXFLAGS
1162CCC
1163CXXCPP
1164F77
1165FFLAGS'
1166ac_subdirs_all='libasprintf'
1167
1168# Initialize some variables set by options.
1169ac_init_help=
1170ac_init_version=false
1171ac_unrecognized_opts=
1172ac_unrecognized_sep=
1173# The variables have the same names as the options, with
1174# dashes changed to underlines.
1175cache_file=/dev/null
1176exec_prefix=NONE
1177no_create=
1178no_recursion=
1179prefix=NONE
1180program_prefix=NONE
1181program_suffix=NONE
1182program_transform_name=s,x,x,
1183silent=
1184site=
1185srcdir=
1186verbose=
1187x_includes=NONE
1188x_libraries=NONE
1189
1190# Installation directory options.
1191# These are left unexpanded so users can "make install exec_prefix=/foo"
1192# and all the variables that are supposed to be based on exec_prefix
1193# by default will actually change.
1194# Use braces instead of parens because sh, perl, etc. also accept them.
1195# (The list follows the same order as the GNU Coding Standards.)
1196bindir='${exec_prefix}/bin'
1197sbindir='${exec_prefix}/sbin'
1198libexecdir='${exec_prefix}/libexec'
1199datarootdir='${prefix}/share'
1200datadir='${datarootdir}'
1201sysconfdir='${prefix}/etc'
1202sharedstatedir='${prefix}/com'
1203localstatedir='${prefix}/var'
1204includedir='${prefix}/include'
1205oldincludedir='/usr/include'
1206docdir='${datarootdir}/doc/${PACKAGE}'
1207infodir='${datarootdir}/info'
1208htmldir='${docdir}'
1209dvidir='${docdir}'
1210pdfdir='${docdir}'
1211psdir='${docdir}'
1212libdir='${exec_prefix}/lib'
1213localedir='${datarootdir}/locale'
1214mandir='${datarootdir}/man'
1215
1216ac_prev=
1217ac_dashdash=
1218for ac_option
1219do
1220  # If the previous option needs an argument, assign it.
1221  if test -n "$ac_prev"; then
1222    eval $ac_prev=\$ac_option
1223    ac_prev=
1224    continue
1225  fi
1226
1227  case $ac_option in
1228  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1229  *)	ac_optarg=yes ;;
1230  esac
1231
1232  # Accept the important Cygnus configure options, so we can diagnose typos.
1233
1234  case $ac_dashdash$ac_option in
1235  --)
1236    ac_dashdash=yes ;;
1237
1238  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1239    ac_prev=bindir ;;
1240  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1241    bindir=$ac_optarg ;;
1242
1243  -build | --build | --buil | --bui | --bu)
1244    ac_prev=build_alias ;;
1245  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1246    build_alias=$ac_optarg ;;
1247
1248  -cache-file | --cache-file | --cache-fil | --cache-fi \
1249  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1250    ac_prev=cache_file ;;
1251  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1252  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1253    cache_file=$ac_optarg ;;
1254
1255  --config-cache | -C)
1256    cache_file=config.cache ;;
1257
1258  -datadir | --datadir | --datadi | --datad)
1259    ac_prev=datadir ;;
1260  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1261    datadir=$ac_optarg ;;
1262
1263  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1264  | --dataroo | --dataro | --datar)
1265    ac_prev=datarootdir ;;
1266  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1267  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1268    datarootdir=$ac_optarg ;;
1269
1270  -disable-* | --disable-*)
1271    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1272    # Reject names that are not valid shell variable names.
1273    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1275   { (exit 1); exit 1; }; }
1276    ac_useropt_orig=$ac_useropt
1277    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278    case $ac_user_opts in
1279      *"
1280"enable_$ac_useropt"
1281"*) ;;
1282      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1283	 ac_unrecognized_sep=', ';;
1284    esac
1285    eval enable_$ac_useropt=no ;;
1286
1287  -docdir | --docdir | --docdi | --doc | --do)
1288    ac_prev=docdir ;;
1289  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1290    docdir=$ac_optarg ;;
1291
1292  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1293    ac_prev=dvidir ;;
1294  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1295    dvidir=$ac_optarg ;;
1296
1297  -enable-* | --enable-*)
1298    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1299    # Reject names that are not valid shell variable names.
1300    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1301      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1302   { (exit 1); exit 1; }; }
1303    ac_useropt_orig=$ac_useropt
1304    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1305    case $ac_user_opts in
1306      *"
1307"enable_$ac_useropt"
1308"*) ;;
1309      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1310	 ac_unrecognized_sep=', ';;
1311    esac
1312    eval enable_$ac_useropt=\$ac_optarg ;;
1313
1314  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1315  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1316  | --exec | --exe | --ex)
1317    ac_prev=exec_prefix ;;
1318  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1319  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1320  | --exec=* | --exe=* | --ex=*)
1321    exec_prefix=$ac_optarg ;;
1322
1323  -gas | --gas | --ga | --g)
1324    # Obsolete; use --with-gas.
1325    with_gas=yes ;;
1326
1327  -help | --help | --hel | --he | -h)
1328    ac_init_help=long ;;
1329  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1330    ac_init_help=recursive ;;
1331  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1332    ac_init_help=short ;;
1333
1334  -host | --host | --hos | --ho)
1335    ac_prev=host_alias ;;
1336  -host=* | --host=* | --hos=* | --ho=*)
1337    host_alias=$ac_optarg ;;
1338
1339  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1340    ac_prev=htmldir ;;
1341  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1342  | --ht=*)
1343    htmldir=$ac_optarg ;;
1344
1345  -includedir | --includedir | --includedi | --included | --include \
1346  | --includ | --inclu | --incl | --inc)
1347    ac_prev=includedir ;;
1348  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1349  | --includ=* | --inclu=* | --incl=* | --inc=*)
1350    includedir=$ac_optarg ;;
1351
1352  -infodir | --infodir | --infodi | --infod | --info | --inf)
1353    ac_prev=infodir ;;
1354  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1355    infodir=$ac_optarg ;;
1356
1357  -libdir | --libdir | --libdi | --libd)
1358    ac_prev=libdir ;;
1359  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1360    libdir=$ac_optarg ;;
1361
1362  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1363  | --libexe | --libex | --libe)
1364    ac_prev=libexecdir ;;
1365  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1366  | --libexe=* | --libex=* | --libe=*)
1367    libexecdir=$ac_optarg ;;
1368
1369  -localedir | --localedir | --localedi | --localed | --locale)
1370    ac_prev=localedir ;;
1371  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1372    localedir=$ac_optarg ;;
1373
1374  -localstatedir | --localstatedir | --localstatedi | --localstated \
1375  | --localstate | --localstat | --localsta | --localst | --locals)
1376    ac_prev=localstatedir ;;
1377  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1378  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1379    localstatedir=$ac_optarg ;;
1380
1381  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1382    ac_prev=mandir ;;
1383  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1384    mandir=$ac_optarg ;;
1385
1386  -nfp | --nfp | --nf)
1387    # Obsolete; use --without-fp.
1388    with_fp=no ;;
1389
1390  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1391  | --no-cr | --no-c | -n)
1392    no_create=yes ;;
1393
1394  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1395  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1396    no_recursion=yes ;;
1397
1398  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1399  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1400  | --oldin | --oldi | --old | --ol | --o)
1401    ac_prev=oldincludedir ;;
1402  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1403  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1404  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1405    oldincludedir=$ac_optarg ;;
1406
1407  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1408    ac_prev=prefix ;;
1409  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1410    prefix=$ac_optarg ;;
1411
1412  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1413  | --program-pre | --program-pr | --program-p)
1414    ac_prev=program_prefix ;;
1415  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1416  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1417    program_prefix=$ac_optarg ;;
1418
1419  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1420  | --program-suf | --program-su | --program-s)
1421    ac_prev=program_suffix ;;
1422  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1423  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1424    program_suffix=$ac_optarg ;;
1425
1426  -program-transform-name | --program-transform-name \
1427  | --program-transform-nam | --program-transform-na \
1428  | --program-transform-n | --program-transform- \
1429  | --program-transform | --program-transfor \
1430  | --program-transfo | --program-transf \
1431  | --program-trans | --program-tran \
1432  | --progr-tra | --program-tr | --program-t)
1433    ac_prev=program_transform_name ;;
1434  -program-transform-name=* | --program-transform-name=* \
1435  | --program-transform-nam=* | --program-transform-na=* \
1436  | --program-transform-n=* | --program-transform-=* \
1437  | --program-transform=* | --program-transfor=* \
1438  | --program-transfo=* | --program-transf=* \
1439  | --program-trans=* | --program-tran=* \
1440  | --progr-tra=* | --program-tr=* | --program-t=*)
1441    program_transform_name=$ac_optarg ;;
1442
1443  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1444    ac_prev=pdfdir ;;
1445  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1446    pdfdir=$ac_optarg ;;
1447
1448  -psdir | --psdir | --psdi | --psd | --ps)
1449    ac_prev=psdir ;;
1450  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1451    psdir=$ac_optarg ;;
1452
1453  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1454  | -silent | --silent | --silen | --sile | --sil)
1455    silent=yes ;;
1456
1457  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1458    ac_prev=sbindir ;;
1459  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1460  | --sbi=* | --sb=*)
1461    sbindir=$ac_optarg ;;
1462
1463  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1464  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1465  | --sharedst | --shareds | --shared | --share | --shar \
1466  | --sha | --sh)
1467    ac_prev=sharedstatedir ;;
1468  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1469  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1470  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1471  | --sha=* | --sh=*)
1472    sharedstatedir=$ac_optarg ;;
1473
1474  -site | --site | --sit)
1475    ac_prev=site ;;
1476  -site=* | --site=* | --sit=*)
1477    site=$ac_optarg ;;
1478
1479  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1480    ac_prev=srcdir ;;
1481  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1482    srcdir=$ac_optarg ;;
1483
1484  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1485  | --syscon | --sysco | --sysc | --sys | --sy)
1486    ac_prev=sysconfdir ;;
1487  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1488  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1489    sysconfdir=$ac_optarg ;;
1490
1491  -target | --target | --targe | --targ | --tar | --ta | --t)
1492    ac_prev=target_alias ;;
1493  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1494    target_alias=$ac_optarg ;;
1495
1496  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1497    verbose=yes ;;
1498
1499  -version | --version | --versio | --versi | --vers | -V)
1500    ac_init_version=: ;;
1501
1502  -with-* | --with-*)
1503    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1504    # Reject names that are not valid shell variable names.
1505    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1506      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1507   { (exit 1); exit 1; }; }
1508    ac_useropt_orig=$ac_useropt
1509    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510    case $ac_user_opts in
1511      *"
1512"with_$ac_useropt"
1513"*) ;;
1514      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1515	 ac_unrecognized_sep=', ';;
1516    esac
1517    eval with_$ac_useropt=\$ac_optarg ;;
1518
1519  -without-* | --without-*)
1520    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1521    # Reject names that are not valid shell variable names.
1522    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1523      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1524   { (exit 1); exit 1; }; }
1525    ac_useropt_orig=$ac_useropt
1526    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1527    case $ac_user_opts in
1528      *"
1529"with_$ac_useropt"
1530"*) ;;
1531      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1532	 ac_unrecognized_sep=', ';;
1533    esac
1534    eval with_$ac_useropt=no ;;
1535
1536  --x)
1537    # Obsolete; use --with-x.
1538    with_x=yes ;;
1539
1540  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1541  | --x-incl | --x-inc | --x-in | --x-i)
1542    ac_prev=x_includes ;;
1543  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1544  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1545    x_includes=$ac_optarg ;;
1546
1547  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1548  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1549    ac_prev=x_libraries ;;
1550  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1551  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1552    x_libraries=$ac_optarg ;;
1553
1554  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1555Try \`$0 --help' for more information." >&2
1556   { (exit 1); exit 1; }; }
1557    ;;
1558
1559  *=*)
1560    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1561    # Reject names that are not valid shell variable names.
1562    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1563      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1564   { (exit 1); exit 1; }; }
1565    eval $ac_envvar=\$ac_optarg
1566    export $ac_envvar ;;
1567
1568  *)
1569    # FIXME: should be removed in autoconf 3.0.
1570    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1571    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1572      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1573    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1574    ;;
1575
1576  esac
1577done
1578
1579if test -n "$ac_prev"; then
1580  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1581  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1582   { (exit 1); exit 1; }; }
1583fi
1584
1585if test -n "$ac_unrecognized_opts"; then
1586  case $enable_option_checking in
1587    no) ;;
1588    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1589   { (exit 1); exit 1; }; } ;;
1590    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1591  esac
1592fi
1593
1594# Check all directory arguments for consistency.
1595for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1596		datadir sysconfdir sharedstatedir localstatedir includedir \
1597		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1598		libdir localedir mandir
1599do
1600  eval ac_val=\$$ac_var
1601  # Remove trailing slashes.
1602  case $ac_val in
1603    */ )
1604      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1605      eval $ac_var=\$ac_val;;
1606  esac
1607  # Be sure to have absolute directory names.
1608  case $ac_val in
1609    [\\/$]* | ?:[\\/]* )  continue;;
1610    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1611  esac
1612  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1613   { (exit 1); exit 1; }; }
1614done
1615
1616# There might be people who depend on the old broken behavior: `$host'
1617# used to hold the argument of --host etc.
1618# FIXME: To remove some day.
1619build=$build_alias
1620host=$host_alias
1621target=$target_alias
1622
1623# FIXME: To remove some day.
1624if test "x$host_alias" != x; then
1625  if test "x$build_alias" = x; then
1626    cross_compiling=maybe
1627    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1628    If a cross compiler is detected then cross compile mode will be used." >&2
1629  elif test "x$build_alias" != "x$host_alias"; then
1630    cross_compiling=yes
1631  fi
1632fi
1633
1634ac_tool_prefix=
1635test -n "$host_alias" && ac_tool_prefix=$host_alias-
1636
1637test "$silent" = yes && exec 6>/dev/null
1638
1639
1640ac_pwd=`pwd` && test -n "$ac_pwd" &&
1641ac_ls_di=`ls -di .` &&
1642ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1643  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1644   { (exit 1); exit 1; }; }
1645test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1646  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1647   { (exit 1); exit 1; }; }
1648
1649
1650# Find the source files, if location was not specified.
1651if test -z "$srcdir"; then
1652  ac_srcdir_defaulted=yes
1653  # Try the directory containing this script, then the parent directory.
1654  ac_confdir=`$as_dirname -- "$as_myself" ||
1655$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1656	 X"$as_myself" : 'X\(//\)[^/]' \| \
1657	 X"$as_myself" : 'X\(//\)$' \| \
1658	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1659$as_echo X"$as_myself" |
1660    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1661	    s//\1/
1662	    q
1663	  }
1664	  /^X\(\/\/\)[^/].*/{
1665	    s//\1/
1666	    q
1667	  }
1668	  /^X\(\/\/\)$/{
1669	    s//\1/
1670	    q
1671	  }
1672	  /^X\(\/\).*/{
1673	    s//\1/
1674	    q
1675	  }
1676	  s/.*/./; q'`
1677  srcdir=$ac_confdir
1678  if test ! -r "$srcdir/$ac_unique_file"; then
1679    srcdir=..
1680  fi
1681else
1682  ac_srcdir_defaulted=no
1683fi
1684if test ! -r "$srcdir/$ac_unique_file"; then
1685  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1686  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1687   { (exit 1); exit 1; }; }
1688fi
1689ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1690ac_abs_confdir=`(
1691	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1692   { (exit 1); exit 1; }; }
1693	pwd)`
1694# When building in place, set srcdir=.
1695if test "$ac_abs_confdir" = "$ac_pwd"; then
1696  srcdir=.
1697fi
1698# Remove unnecessary trailing slashes from srcdir.
1699# Double slashes in file names in object file debugging info
1700# mess up M-x gdb in Emacs.
1701case $srcdir in
1702*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1703esac
1704for ac_var in $ac_precious_vars; do
1705  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1706  eval ac_env_${ac_var}_value=\$${ac_var}
1707  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1708  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1709done
1710
1711#
1712# Report the --help message.
1713#
1714if test "$ac_init_help" = "long"; then
1715  # Omit some internal or obsolete options to make the list less imposing.
1716  # This message is too long to be a string in the A/UX 3.1 sh.
1717  cat <<_ACEOF
1718\`configure' configures this package to adapt to many kinds of systems.
1719
1720Usage: $0 [OPTION]... [VAR=VALUE]...
1721
1722To assign environment variables (e.g., CC, CFLAGS...), specify them as
1723VAR=VALUE.  See below for descriptions of some of the useful variables.
1724
1725Defaults for the options are specified in brackets.
1726
1727Configuration:
1728  -h, --help              display this help and exit
1729      --help=short        display options specific to this package
1730      --help=recursive    display the short help of all the included packages
1731  -V, --version           display version information and exit
1732  -q, --quiet, --silent   do not print \`checking...' messages
1733      --cache-file=FILE   cache test results in FILE [disabled]
1734  -C, --config-cache      alias for \`--cache-file=config.cache'
1735  -n, --no-create         do not create output files
1736      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1737
1738Installation directories:
1739  --prefix=PREFIX         install architecture-independent files in PREFIX
1740                          [$ac_default_prefix]
1741  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1742                          [PREFIX]
1743
1744By default, \`make install' will install all the files in
1745\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1746an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1747for instance \`--prefix=\$HOME'.
1748
1749For better control, use the options below.
1750
1751Fine tuning of the installation directories:
1752  --bindir=DIR            user executables [EPREFIX/bin]
1753  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1754  --libexecdir=DIR        program executables [EPREFIX/libexec]
1755  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1756  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1757  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1758  --libdir=DIR            object code libraries [EPREFIX/lib]
1759  --includedir=DIR        C header files [PREFIX/include]
1760  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1761  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1762  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1763  --infodir=DIR           info documentation [DATAROOTDIR/info]
1764  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1765  --mandir=DIR            man documentation [DATAROOTDIR/man]
1766  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1767  --htmldir=DIR           html documentation [DOCDIR]
1768  --dvidir=DIR            dvi documentation [DOCDIR]
1769  --pdfdir=DIR            pdf documentation [DOCDIR]
1770  --psdir=DIR             ps documentation [DOCDIR]
1771_ACEOF
1772
1773  cat <<\_ACEOF
1774
1775Program names:
1776  --program-prefix=PREFIX            prepend PREFIX to installed program names
1777  --program-suffix=SUFFIX            append SUFFIX to installed program names
1778  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1779
1780System types:
1781  --build=BUILD     configure for building on BUILD [guessed]
1782  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1783_ACEOF
1784fi
1785
1786if test -n "$ac_init_help"; then
1787
1788  cat <<\_ACEOF
1789
1790Optional Features:
1791  --disable-option-checking  ignore unrecognized --enable/--with options
1792  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1793  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1794  --disable-dependency-tracking  speeds up one-time build
1795  --enable-dependency-tracking   do not reject slow dependency extractors
1796  --disable-java          do not build Java sources
1797  --disable-native-java   do not compile Java to native executables
1798  --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
1799  --enable-shared[=PKGS]  build shared libraries [default=yes]
1800  --enable-static[=PKGS]  build static libraries [default=yes]
1801  --enable-fast-install[=PKGS]
1802                          optimize for fast installation [default=yes]
1803  --disable-libtool-lock  avoid locking (might break parallel builds)
1804  --disable-nls           do not use Native Language Support
1805  --enable-threads={posix|solaris|pth|win32}
1806                          specify multithreading API
1807  --disable-threads       build without multithread safety
1808  --disable-rpath         do not hardcode runtime library paths
1809  --enable-relocatable    install a package that can be moved in the filesystem
1810  --disable-libasprintf   do not build libasprintf
1811
1812Optional Packages:
1813  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1814  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1815  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1816  --with-pic              try to use only PIC/non-PIC objects [default=use
1817                          both]
1818  --with-tags[=TAGS]      include additional configurations [automatic]
1819  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1820  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1821  --without-libpth-prefix     don't search for libpth in includedir and libdir
1822  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1823  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1824  --with-included-gettext use the GNU gettext library included here
1825  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1826  --without-libintl-prefix     don't search for libintl in includedir and libdir
1827
1828Some influential environment variables:
1829  CC          C compiler command
1830  CFLAGS      C compiler flags
1831  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1832              nonstandard directory <lib dir>
1833  LIBS        libraries to pass to the linker, e.g. -l<library>
1834  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1835              you have headers in a nonstandard directory <include dir>
1836  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1837              the first program found out of: `bison -y', `byacc', `yacc'.
1838  YFLAGS      The list of arguments that will be passed by default to $YACC.
1839              This script will default YFLAGS to the empty string to avoid a
1840              default value of `-d' given by some make applications.
1841  CPP         C preprocessor
1842  CXX         C++ compiler command
1843  CXXFLAGS    C++ compiler flags
1844  CXXCPP      C++ preprocessor
1845  F77         Fortran 77 compiler command
1846  FFLAGS      Fortran 77 compiler flags
1847
1848Use these variables to override the choices made by `configure' or to help
1849it to find libraries and programs with nonstandard names/locations.
1850
1851_ACEOF
1852ac_status=$?
1853fi
1854
1855if test "$ac_init_help" = "recursive"; then
1856  # If there are subdirs, report their specific --help.
1857  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1858    test -d "$ac_dir" ||
1859      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1860      continue
1861    ac_builddir=.
1862
1863case "$ac_dir" in
1864.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1865*)
1866  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1867  # A ".." for each directory in $ac_dir_suffix.
1868  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1869  case $ac_top_builddir_sub in
1870  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1871  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1872  esac ;;
1873esac
1874ac_abs_top_builddir=$ac_pwd
1875ac_abs_builddir=$ac_pwd$ac_dir_suffix
1876# for backward compatibility:
1877ac_top_builddir=$ac_top_build_prefix
1878
1879case $srcdir in
1880  .)  # We are building in place.
1881    ac_srcdir=.
1882    ac_top_srcdir=$ac_top_builddir_sub
1883    ac_abs_top_srcdir=$ac_pwd ;;
1884  [\\/]* | ?:[\\/]* )  # Absolute name.
1885    ac_srcdir=$srcdir$ac_dir_suffix;
1886    ac_top_srcdir=$srcdir
1887    ac_abs_top_srcdir=$srcdir ;;
1888  *) # Relative name.
1889    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1890    ac_top_srcdir=$ac_top_build_prefix$srcdir
1891    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1892esac
1893ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1894
1895    cd "$ac_dir" || { ac_status=$?; continue; }
1896    # Check for guested configure.
1897    if test -f "$ac_srcdir/configure.gnu"; then
1898      echo &&
1899      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1900    elif test -f "$ac_srcdir/configure"; then
1901      echo &&
1902      $SHELL "$ac_srcdir/configure" --help=recursive
1903    else
1904      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1905    fi || ac_status=$?
1906    cd "$ac_pwd" || { ac_status=$?; break; }
1907  done
1908fi
1909
1910test -n "$ac_init_help" && exit $ac_status
1911if $ac_init_version; then
1912  cat <<\_ACEOF
1913configure
1914generated by GNU Autoconf 2.63
1915
1916Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
19172002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1918This configure script is free software; the Free Software Foundation
1919gives unlimited permission to copy, distribute and modify it.
1920_ACEOF
1921  exit
1922fi
1923cat >config.log <<_ACEOF
1924This file contains any messages produced by compilers while
1925running configure, to aid debugging if configure makes a mistake.
1926
1927It was created by $as_me, which was
1928generated by GNU Autoconf 2.63.  Invocation command line was
1929
1930  $ $0 $@
1931
1932_ACEOF
1933exec 5>>config.log
1934{
1935cat <<_ASUNAME
1936## --------- ##
1937## Platform. ##
1938## --------- ##
1939
1940hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1941uname -m = `(uname -m) 2>/dev/null || echo unknown`
1942uname -r = `(uname -r) 2>/dev/null || echo unknown`
1943uname -s = `(uname -s) 2>/dev/null || echo unknown`
1944uname -v = `(uname -v) 2>/dev/null || echo unknown`
1945
1946/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1947/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1948
1949/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1950/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1951/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1952/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1953/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1954/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1955/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1956
1957_ASUNAME
1958
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH
1961do
1962  IFS=$as_save_IFS
1963  test -z "$as_dir" && as_dir=.
1964  $as_echo "PATH: $as_dir"
1965done
1966IFS=$as_save_IFS
1967
1968} >&5
1969
1970cat >&5 <<_ACEOF
1971
1972
1973## ----------- ##
1974## Core tests. ##
1975## ----------- ##
1976
1977_ACEOF
1978
1979
1980# Keep a trace of the command line.
1981# Strip out --no-create and --no-recursion so they do not pile up.
1982# Strip out --silent because we don't want to record it for future runs.
1983# Also quote any args containing shell meta-characters.
1984# Make two passes to allow for proper duplicate-argument suppression.
1985ac_configure_args=
1986ac_configure_args0=
1987ac_configure_args1=
1988ac_must_keep_next=false
1989for ac_pass in 1 2
1990do
1991  for ac_arg
1992  do
1993    case $ac_arg in
1994    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1995    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1996    | -silent | --silent | --silen | --sile | --sil)
1997      continue ;;
1998    *\'*)
1999      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2000    esac
2001    case $ac_pass in
2002    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2003    2)
2004      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2005      if test $ac_must_keep_next = true; then
2006	ac_must_keep_next=false # Got value, back to normal.
2007      else
2008	case $ac_arg in
2009	  *=* | --config-cache | -C | -disable-* | --disable-* \
2010	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2011	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2012	  | -with-* | --with-* | -without-* | --without-* | --x)
2013	    case "$ac_configure_args0 " in
2014	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2015	    esac
2016	    ;;
2017	  -* ) ac_must_keep_next=true ;;
2018	esac
2019      fi
2020      ac_configure_args="$ac_configure_args '$ac_arg'"
2021      ;;
2022    esac
2023  done
2024done
2025$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2026$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2027
2028# When interrupted or exit'd, cleanup temporary files, and complete
2029# config.log.  We remove comments because anyway the quotes in there
2030# would cause problems or look ugly.
2031# WARNING: Use '\'' to represent an apostrophe within the trap.
2032# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2033trap 'exit_status=$?
2034  # Save into config.log some information that might help in debugging.
2035  {
2036    echo
2037
2038    cat <<\_ASBOX
2039## ---------------- ##
2040## Cache variables. ##
2041## ---------------- ##
2042_ASBOX
2043    echo
2044    # The following way of writing the cache mishandles newlines in values,
2045(
2046  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2047    eval ac_val=\$$ac_var
2048    case $ac_val in #(
2049    *${as_nl}*)
2050      case $ac_var in #(
2051      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2052$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2053      esac
2054      case $ac_var in #(
2055      _ | IFS | as_nl) ;; #(
2056      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2057      *) $as_unset $ac_var ;;
2058      esac ;;
2059    esac
2060  done
2061  (set) 2>&1 |
2062    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2063    *${as_nl}ac_space=\ *)
2064      sed -n \
2065	"s/'\''/'\''\\\\'\'''\''/g;
2066	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2067      ;; #(
2068    *)
2069      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2070      ;;
2071    esac |
2072    sort
2073)
2074    echo
2075
2076    cat <<\_ASBOX
2077## ----------------- ##
2078## Output variables. ##
2079## ----------------- ##
2080_ASBOX
2081    echo
2082    for ac_var in $ac_subst_vars
2083    do
2084      eval ac_val=\$$ac_var
2085      case $ac_val in
2086      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087      esac
2088      $as_echo "$ac_var='\''$ac_val'\''"
2089    done | sort
2090    echo
2091
2092    if test -n "$ac_subst_files"; then
2093      cat <<\_ASBOX
2094## ------------------- ##
2095## File substitutions. ##
2096## ------------------- ##
2097_ASBOX
2098      echo
2099      for ac_var in $ac_subst_files
2100      do
2101	eval ac_val=\$$ac_var
2102	case $ac_val in
2103	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2104	esac
2105	$as_echo "$ac_var='\''$ac_val'\''"
2106      done | sort
2107      echo
2108    fi
2109
2110    if test -s confdefs.h; then
2111      cat <<\_ASBOX
2112## ----------- ##
2113## confdefs.h. ##
2114## ----------- ##
2115_ASBOX
2116      echo
2117      cat confdefs.h
2118      echo
2119    fi
2120    test "$ac_signal" != 0 &&
2121      $as_echo "$as_me: caught signal $ac_signal"
2122    $as_echo "$as_me: exit $exit_status"
2123  } >&5
2124  rm -f core *.core core.conftest.* &&
2125    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2126    exit $exit_status
2127' 0
2128for ac_signal in 1 2 13 15; do
2129  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2130done
2131ac_signal=0
2132
2133# confdefs.h avoids OS command line length limits that DEFS can exceed.
2134rm -f -r conftest* confdefs.h
2135
2136# Predefined preprocessor variables.
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_NAME "$PACKAGE_NAME"
2140_ACEOF
2141
2142
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2145_ACEOF
2146
2147
2148cat >>confdefs.h <<_ACEOF
2149#define PACKAGE_VERSION "$PACKAGE_VERSION"
2150_ACEOF
2151
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_STRING "$PACKAGE_STRING"
2155_ACEOF
2156
2157
2158cat >>confdefs.h <<_ACEOF
2159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160_ACEOF
2161
2162
2163# Let the site file select an alternate cache file if it wants to.
2164# Prefer an explicitly selected file to automatically selected ones.
2165ac_site_file1=NONE
2166ac_site_file2=NONE
2167if test -n "$CONFIG_SITE"; then
2168  ac_site_file1=$CONFIG_SITE
2169elif test "x$prefix" != xNONE; then
2170  ac_site_file1=$prefix/share/config.site
2171  ac_site_file2=$prefix/etc/config.site
2172else
2173  ac_site_file1=$ac_default_prefix/share/config.site
2174  ac_site_file2=$ac_default_prefix/etc/config.site
2175fi
2176for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2177do
2178  test "x$ac_site_file" = xNONE && continue
2179  if test -r "$ac_site_file"; then
2180    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2181$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2182    sed 's/^/| /' "$ac_site_file" >&5
2183    . "$ac_site_file"
2184  fi
2185done
2186
2187if test -r "$cache_file"; then
2188  # Some versions of bash will fail to source /dev/null (special
2189  # files actually), so we avoid doing that.
2190  if test -f "$cache_file"; then
2191    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2192$as_echo "$as_me: loading cache $cache_file" >&6;}
2193    case $cache_file in
2194      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195      *)                      . "./$cache_file";;
2196    esac
2197  fi
2198else
2199  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2200$as_echo "$as_me: creating cache $cache_file" >&6;}
2201  >$cache_file
2202fi
2203
2204gt_needs="$gt_needs need-ngettext"
2205gl_header_list="$gl_header_list stdlib.h"
2206gl_header_list="$gl_header_list string.h"
2207gl_func_list="$gl_func_list canonicalize_file_name"
2208gl_header_list="$gl_header_list sys/param.h"
2209gl_header_list="$gl_header_list unistd.h"
2210gl_func_list="$gl_func_list getcwd"
2211gl_func_list="$gl_func_list readlink"
2212gl_header_list="$gl_header_list iconv.h"
2213gl_func_list="$gl_func_list setenv"
2214gl_header_list="$gl_header_list stdint.h"
2215gl_header_list="$gl_header_list wchar.h"
2216gl_func_list="$gl_func_list iswcntrl"
2217gl_header_list="$gl_header_list wctype.h"
2218gl_func_list="$gl_func_list wcwidth"
2219# Check that the precious variables saved in the cache have kept the same
2220# value.
2221ac_cache_corrupted=false
2222for ac_var in $ac_precious_vars; do
2223  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2224  eval ac_new_set=\$ac_env_${ac_var}_set
2225  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2226  eval ac_new_val=\$ac_env_${ac_var}_value
2227  case $ac_old_set,$ac_new_set in
2228    set,)
2229      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2230$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2231      ac_cache_corrupted=: ;;
2232    ,set)
2233      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2234$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2235      ac_cache_corrupted=: ;;
2236    ,);;
2237    *)
2238      if test "x$ac_old_val" != "x$ac_new_val"; then
2239	# differences in whitespace do not lead to failure.
2240	ac_old_val_w=`echo x $ac_old_val`
2241	ac_new_val_w=`echo x $ac_new_val`
2242	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2243	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2244$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2245	  ac_cache_corrupted=:
2246	else
2247	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2248$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2249	  eval $ac_var=\$ac_old_val
2250	fi
2251	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2252$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2253	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2254$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2255      fi;;
2256  esac
2257  # Pass precious variables to config.status.
2258  if test "$ac_new_set" = set; then
2259    case $ac_new_val in
2260    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2261    *) ac_arg=$ac_var=$ac_new_val ;;
2262    esac
2263    case " $ac_configure_args " in
2264      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2265      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2266    esac
2267  fi
2268done
2269if $ac_cache_corrupted; then
2270  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2272  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2273$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2274  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2275$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2276   { (exit 1); exit 1; }; }
2277fi
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295ac_ext=c
2296ac_cpp='$CPP $CPPFLAGS'
2297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2299ac_compiler_gnu=$ac_cv_c_compiler_gnu
2300
2301
2302
2303ac_aux_dir=
2304for ac_dir in ../build-aux "$srcdir"/../build-aux; do
2305  if test -f "$ac_dir/install-sh"; then
2306    ac_aux_dir=$ac_dir
2307    ac_install_sh="$ac_aux_dir/install-sh -c"
2308    break
2309  elif test -f "$ac_dir/install.sh"; then
2310    ac_aux_dir=$ac_dir
2311    ac_install_sh="$ac_aux_dir/install.sh -c"
2312    break
2313  elif test -f "$ac_dir/shtool"; then
2314    ac_aux_dir=$ac_dir
2315    ac_install_sh="$ac_aux_dir/shtool install -c"
2316    break
2317  fi
2318done
2319if test -z "$ac_aux_dir"; then
2320  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
2321$as_echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
2322   { (exit 1); exit 1; }; }
2323fi
2324
2325# These three variables are undocumented and unsupported,
2326# and are intended to be withdrawn in a future Autoconf release.
2327# They can cause serious problems if a builder's source tree is in a directory
2328# whose full name contains unusual characters.
2329ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2330ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2331ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2332
2333
2334. $srcdir/../version.sh
2335am__api_version='1.10'
2336
2337# Find a good install program.  We prefer a C program (faster),
2338# so one script is as good as another.  But avoid the broken or
2339# incompatible versions:
2340# SysV /etc/install, /usr/sbin/install
2341# SunOS /usr/etc/install
2342# IRIX /sbin/install
2343# AIX /bin/install
2344# AmigaOS /C/install, which installs bootblocks on floppy discs
2345# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2346# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2347# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2348# OS/2's system install, which has a completely different semantic
2349# ./install, which can be erroneously created by make from ./install.sh.
2350# Reject install programs that cannot install multiple files.
2351{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2352$as_echo_n "checking for a BSD-compatible install... " >&6; }
2353if test -z "$INSTALL"; then
2354if test "${ac_cv_path_install+set}" = set; then
2355  $as_echo_n "(cached) " >&6
2356else
2357  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360  IFS=$as_save_IFS
2361  test -z "$as_dir" && as_dir=.
2362  # Account for people who put trailing slashes in PATH elements.
2363case $as_dir/ in
2364  ./ | .// | /cC/* | \
2365  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2366  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2367  /usr/ucb/* ) ;;
2368  *)
2369    # OSF1 and SCO ODT 3.0 have their own names for install.
2370    # Don't use installbsd from OSF since it installs stuff as root
2371    # by default.
2372    for ac_prog in ginstall scoinst install; do
2373      for ac_exec_ext in '' $ac_executable_extensions; do
2374	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2375	  if test $ac_prog = install &&
2376	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2377	    # AIX install.  It has an incompatible calling convention.
2378	    :
2379	  elif test $ac_prog = install &&
2380	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2381	    # program-specific install script used by HP pwplus--don't use.
2382	    :
2383	  else
2384	    rm -rf conftest.one conftest.two conftest.dir
2385	    echo one > conftest.one
2386	    echo two > conftest.two
2387	    mkdir conftest.dir
2388	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2389	      test -s conftest.one && test -s conftest.two &&
2390	      test -s conftest.dir/conftest.one &&
2391	      test -s conftest.dir/conftest.two
2392	    then
2393	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2394	      break 3
2395	    fi
2396	  fi
2397	fi
2398      done
2399    done
2400    ;;
2401esac
2402
2403done
2404IFS=$as_save_IFS
2405
2406rm -rf conftest.one conftest.two conftest.dir
2407
2408fi
2409  if test "${ac_cv_path_install+set}" = set; then
2410    INSTALL=$ac_cv_path_install
2411  else
2412    # As a last resort, use the slow shell script.  Don't cache a
2413    # value for INSTALL within a source directory, because that will
2414    # break other packages using the cache if that directory is
2415    # removed, or if the value is a relative name.
2416    INSTALL=$ac_install_sh
2417  fi
2418fi
2419{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2420$as_echo "$INSTALL" >&6; }
2421
2422# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2423# It thinks the first close brace ends the variable substitution.
2424test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2425
2426test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2427
2428test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2429
2430{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2431$as_echo_n "checking whether build environment is sane... " >&6; }
2432# Just in case
2433sleep 1
2434echo timestamp > conftest.file
2435# Do `set' in a subshell so we don't clobber the current shell's
2436# arguments.  Must try -L first in case configure is actually a
2437# symlink; some systems play weird games with the mod time of symlinks
2438# (eg FreeBSD returns the mod time of the symlink's containing
2439# directory).
2440if (
2441   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2442   if test "$*" = "X"; then
2443      # -L didn't work.
2444      set X `ls -t $srcdir/configure conftest.file`
2445   fi
2446   rm -f conftest.file
2447   if test "$*" != "X $srcdir/configure conftest.file" \
2448      && test "$*" != "X conftest.file $srcdir/configure"; then
2449
2450      # If neither matched, then we have a broken ls.  This can happen
2451      # if, for instance, CONFIG_SHELL is bash and it inherits a
2452      # broken ls alias from the environment.  This has actually
2453      # happened.  Such a system could not be considered "sane".
2454      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2455alias in your environment" >&5
2456$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2457alias in your environment" >&2;}
2458   { (exit 1); exit 1; }; }
2459   fi
2460
2461   test "$2" = conftest.file
2462   )
2463then
2464   # Ok.
2465   :
2466else
2467   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2468Check your system clock" >&5
2469$as_echo "$as_me: error: newly created file is older than distributed files!
2470Check your system clock" >&2;}
2471   { (exit 1); exit 1; }; }
2472fi
2473{ $as_echo "$as_me:$LINENO: result: yes" >&5
2474$as_echo "yes" >&6; }
2475test "$program_prefix" != NONE &&
2476  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2477# Use a double $ so make ignores it.
2478test "$program_suffix" != NONE &&
2479  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2480# Double any \ or $.
2481# By default was `s,x,x', remove it if useless.
2482ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2483program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2484
2485# expand $ac_aux_dir to an absolute path
2486am_aux_dir=`cd $ac_aux_dir && pwd`
2487
2488test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2489# Use eval to expand $SHELL
2490if eval "$MISSING --run true"; then
2491  am_missing_run="$MISSING --run "
2492else
2493  am_missing_run=
2494  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2495$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2496fi
2497
2498{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2499$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2500if test -z "$MKDIR_P"; then
2501  if test "${ac_cv_path_mkdir+set}" = set; then
2502  $as_echo_n "(cached) " >&6
2503else
2504  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2505for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2506do
2507  IFS=$as_save_IFS
2508  test -z "$as_dir" && as_dir=.
2509  for ac_prog in mkdir gmkdir; do
2510	 for ac_exec_ext in '' $ac_executable_extensions; do
2511	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2512	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2513	     'mkdir (GNU coreutils) '* | \
2514	     'mkdir (coreutils) '* | \
2515	     'mkdir (fileutils) '4.1*)
2516	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2517	       break 3;;
2518	   esac
2519	 done
2520       done
2521done
2522IFS=$as_save_IFS
2523
2524fi
2525
2526  if test "${ac_cv_path_mkdir+set}" = set; then
2527    MKDIR_P="$ac_cv_path_mkdir -p"
2528  else
2529    # As a last resort, use the slow shell script.  Don't cache a
2530    # value for MKDIR_P within a source directory, because that will
2531    # break other packages using the cache if that directory is
2532    # removed, or if the value is a relative name.
2533    test -d ./--version && rmdir ./--version
2534    MKDIR_P="$ac_install_sh -d"
2535  fi
2536fi
2537{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2538$as_echo "$MKDIR_P" >&6; }
2539
2540mkdir_p="$MKDIR_P"
2541case $mkdir_p in
2542  [\\/$]* | ?:[\\/]*) ;;
2543  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2544esac
2545
2546for ac_prog in gawk mawk nawk awk
2547do
2548  # Extract the first word of "$ac_prog", so it can be a program name with args.
2549set dummy $ac_prog; ac_word=$2
2550{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2551$as_echo_n "checking for $ac_word... " >&6; }
2552if test "${ac_cv_prog_AWK+set}" = set; then
2553  $as_echo_n "(cached) " >&6
2554else
2555  if test -n "$AWK"; then
2556  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2557else
2558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2559for as_dir in $PATH
2560do
2561  IFS=$as_save_IFS
2562  test -z "$as_dir" && as_dir=.
2563  for ac_exec_ext in '' $ac_executable_extensions; do
2564  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2565    ac_cv_prog_AWK="$ac_prog"
2566    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2567    break 2
2568  fi
2569done
2570done
2571IFS=$as_save_IFS
2572
2573fi
2574fi
2575AWK=$ac_cv_prog_AWK
2576if test -n "$AWK"; then
2577  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2578$as_echo "$AWK" >&6; }
2579else
2580  { $as_echo "$as_me:$LINENO: result: no" >&5
2581$as_echo "no" >&6; }
2582fi
2583
2584
2585  test -n "$AWK" && break
2586done
2587
2588{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2589$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2590set x ${MAKE-make}
2591ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2592if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2593  $as_echo_n "(cached) " >&6
2594else
2595  cat >conftest.make <<\_ACEOF
2596SHELL = /bin/sh
2597all:
2598	@echo '@@@%%%=$(MAKE)=@@@%%%'
2599_ACEOF
2600# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2601case `${MAKE-make} -f conftest.make 2>/dev/null` in
2602  *@@@%%%=?*=@@@%%%*)
2603    eval ac_cv_prog_make_${ac_make}_set=yes;;
2604  *)
2605    eval ac_cv_prog_make_${ac_make}_set=no;;
2606esac
2607rm -f conftest.make
2608fi
2609if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2610  { $as_echo "$as_me:$LINENO: result: yes" >&5
2611$as_echo "yes" >&6; }
2612  SET_MAKE=
2613else
2614  { $as_echo "$as_me:$LINENO: result: no" >&5
2615$as_echo "no" >&6; }
2616  SET_MAKE="MAKE=${MAKE-make}"
2617fi
2618
2619rm -rf .tst 2>/dev/null
2620mkdir .tst 2>/dev/null
2621if test -d .tst; then
2622  am__leading_dot=.
2623else
2624  am__leading_dot=_
2625fi
2626rmdir .tst 2>/dev/null
2627
2628if test "`cd $srcdir && pwd`" != "`pwd`"; then
2629  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2630  # is not polluted with repeated "-I."
2631  am__isrc=' -I$(srcdir)'
2632  # test to see if srcdir already configured
2633  if test -f $srcdir/config.status; then
2634    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2635$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2636   { (exit 1); exit 1; }; }
2637  fi
2638fi
2639
2640# test whether we have cygpath
2641if test -z "$CYGPATH_W"; then
2642  if (cygpath --version) >/dev/null 2>/dev/null; then
2643    CYGPATH_W='cygpath -w'
2644  else
2645    CYGPATH_W=echo
2646  fi
2647fi
2648
2649
2650# Define the identity of the package.
2651 PACKAGE=gettext-runtime
2652 VERSION=$VERSION_NUMBER
2653
2654
2655cat >>confdefs.h <<_ACEOF
2656#define PACKAGE "$PACKAGE"
2657_ACEOF
2658
2659
2660cat >>confdefs.h <<_ACEOF
2661#define VERSION "$VERSION"
2662_ACEOF
2663
2664# Some tools Automake needs.
2665
2666ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2667
2668
2669AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2670
2671
2672AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2673
2674
2675AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2676
2677
2678MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2679
2680install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2681
2682# Installed binaries are usually stripped using `strip' when the user
2683# run `make install-strip'.  However `strip' might not be the right
2684# tool to use in cross-compilation environments, therefore Automake
2685# will honor the `STRIP' environment variable to overrule this program.
2686if test "$cross_compiling" != no; then
2687  if test -n "$ac_tool_prefix"; then
2688  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2689set dummy ${ac_tool_prefix}strip; ac_word=$2
2690{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2691$as_echo_n "checking for $ac_word... " >&6; }
2692if test "${ac_cv_prog_STRIP+set}" = set; then
2693  $as_echo_n "(cached) " >&6
2694else
2695  if test -n "$STRIP"; then
2696  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2697else
2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699for as_dir in $PATH
2700do
2701  IFS=$as_save_IFS
2702  test -z "$as_dir" && as_dir=.
2703  for ac_exec_ext in '' $ac_executable_extensions; do
2704  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2705    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2706    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707    break 2
2708  fi
2709done
2710done
2711IFS=$as_save_IFS
2712
2713fi
2714fi
2715STRIP=$ac_cv_prog_STRIP
2716if test -n "$STRIP"; then
2717  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2718$as_echo "$STRIP" >&6; }
2719else
2720  { $as_echo "$as_me:$LINENO: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724
2725fi
2726if test -z "$ac_cv_prog_STRIP"; then
2727  ac_ct_STRIP=$STRIP
2728  # Extract the first word of "strip", so it can be a program name with args.
2729set dummy strip; ac_word=$2
2730{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2733  $as_echo_n "(cached) " >&6
2734else
2735  if test -n "$ac_ct_STRIP"; then
2736  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741  IFS=$as_save_IFS
2742  test -z "$as_dir" && as_dir=.
2743  for ac_exec_ext in '' $ac_executable_extensions; do
2744  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745    ac_cv_prog_ac_ct_STRIP="strip"
2746    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2747    break 2
2748  fi
2749done
2750done
2751IFS=$as_save_IFS
2752
2753fi
2754fi
2755ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2756if test -n "$ac_ct_STRIP"; then
2757  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2758$as_echo "$ac_ct_STRIP" >&6; }
2759else
2760  { $as_echo "$as_me:$LINENO: result: no" >&5
2761$as_echo "no" >&6; }
2762fi
2763
2764  if test "x$ac_ct_STRIP" = x; then
2765    STRIP=":"
2766  else
2767    case $cross_compiling:$ac_tool_warned in
2768yes:)
2769{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2771ac_tool_warned=yes ;;
2772esac
2773    STRIP=$ac_ct_STRIP
2774  fi
2775else
2776  STRIP="$ac_cv_prog_STRIP"
2777fi
2778
2779fi
2780INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2781
2782# We need awk for the "check" target.  The system "awk" is bad on
2783# some platforms.
2784# Always define AMTAR for backward compatibility.
2785
2786AMTAR=${AMTAR-"${am_missing_run}tar"}
2787
2788am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2789
2790
2791
2792
2793
2794ac_config_headers="$ac_config_headers config.h"
2795
2796
2797test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
2798
2799ac_ext=c
2800ac_cpp='$CPP $CPPFLAGS'
2801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804if test -n "$ac_tool_prefix"; then
2805  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2806set dummy ${ac_tool_prefix}gcc; ac_word=$2
2807{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808$as_echo_n "checking for $ac_word... " >&6; }
2809if test "${ac_cv_prog_CC+set}" = set; then
2810  $as_echo_n "(cached) " >&6
2811else
2812  if test -n "$CC"; then
2813  ac_cv_prog_CC="$CC" # Let the user override the test.
2814else
2815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816for as_dir in $PATH
2817do
2818  IFS=$as_save_IFS
2819  test -z "$as_dir" && as_dir=.
2820  for ac_exec_ext in '' $ac_executable_extensions; do
2821  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2823    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824    break 2
2825  fi
2826done
2827done
2828IFS=$as_save_IFS
2829
2830fi
2831fi
2832CC=$ac_cv_prog_CC
2833if test -n "$CC"; then
2834  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2835$as_echo "$CC" >&6; }
2836else
2837  { $as_echo "$as_me:$LINENO: result: no" >&5
2838$as_echo "no" >&6; }
2839fi
2840
2841
2842fi
2843if test -z "$ac_cv_prog_CC"; then
2844  ac_ct_CC=$CC
2845  # Extract the first word of "gcc", so it can be a program name with args.
2846set dummy gcc; ac_word=$2
2847{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848$as_echo_n "checking for $ac_word... " >&6; }
2849if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2850  $as_echo_n "(cached) " >&6
2851else
2852  if test -n "$ac_ct_CC"; then
2853  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860  for ac_exec_ext in '' $ac_executable_extensions; do
2861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862    ac_cv_prog_ac_ct_CC="gcc"
2863    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872ac_ct_CC=$ac_cv_prog_ac_ct_CC
2873if test -n "$ac_ct_CC"; then
2874  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2875$as_echo "$ac_ct_CC" >&6; }
2876else
2877  { $as_echo "$as_me:$LINENO: result: no" >&5
2878$as_echo "no" >&6; }
2879fi
2880
2881  if test "x$ac_ct_CC" = x; then
2882    CC=""
2883  else
2884    case $cross_compiling:$ac_tool_warned in
2885yes:)
2886{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888ac_tool_warned=yes ;;
2889esac
2890    CC=$ac_ct_CC
2891  fi
2892else
2893  CC="$ac_cv_prog_CC"
2894fi
2895
2896if test -z "$CC"; then
2897          if test -n "$ac_tool_prefix"; then
2898    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2899set dummy ${ac_tool_prefix}cc; ac_word=$2
2900{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2901$as_echo_n "checking for $ac_word... " >&6; }
2902if test "${ac_cv_prog_CC+set}" = set; then
2903  $as_echo_n "(cached) " >&6
2904else
2905  if test -n "$CC"; then
2906  ac_cv_prog_CC="$CC" # Let the user override the test.
2907else
2908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911  IFS=$as_save_IFS
2912  test -z "$as_dir" && as_dir=.
2913  for ac_exec_ext in '' $ac_executable_extensions; do
2914  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2915    ac_cv_prog_CC="${ac_tool_prefix}cc"
2916    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2917    break 2
2918  fi
2919done
2920done
2921IFS=$as_save_IFS
2922
2923fi
2924fi
2925CC=$ac_cv_prog_CC
2926if test -n "$CC"; then
2927  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2928$as_echo "$CC" >&6; }
2929else
2930  { $as_echo "$as_me:$LINENO: result: no" >&5
2931$as_echo "no" >&6; }
2932fi
2933
2934
2935  fi
2936fi
2937if test -z "$CC"; then
2938  # Extract the first word of "cc", so it can be a program name with args.
2939set dummy cc; ac_word=$2
2940{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2941$as_echo_n "checking for $ac_word... " >&6; }
2942if test "${ac_cv_prog_CC+set}" = set; then
2943  $as_echo_n "(cached) " >&6
2944else
2945  if test -n "$CC"; then
2946  ac_cv_prog_CC="$CC" # Let the user override the test.
2947else
2948  ac_prog_rejected=no
2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950for as_dir in $PATH
2951do
2952  IFS=$as_save_IFS
2953  test -z "$as_dir" && as_dir=.
2954  for ac_exec_ext in '' $ac_executable_extensions; do
2955  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2957       ac_prog_rejected=yes
2958       continue
2959     fi
2960    ac_cv_prog_CC="cc"
2961    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2962    break 2
2963  fi
2964done
2965done
2966IFS=$as_save_IFS
2967
2968if test $ac_prog_rejected = yes; then
2969  # We found a bogon in the path, so make sure we never use it.
2970  set dummy $ac_cv_prog_CC
2971  shift
2972  if test $# != 0; then
2973    # We chose a different compiler from the bogus one.
2974    # However, it has the same basename, so the bogon will be chosen
2975    # first if we set CC to just the basename; use the full file name.
2976    shift
2977    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2978  fi
2979fi
2980fi
2981fi
2982CC=$ac_cv_prog_CC
2983if test -n "$CC"; then
2984  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2985$as_echo "$CC" >&6; }
2986else
2987  { $as_echo "$as_me:$LINENO: result: no" >&5
2988$as_echo "no" >&6; }
2989fi
2990
2991
2992fi
2993if test -z "$CC"; then
2994  if test -n "$ac_tool_prefix"; then
2995  for ac_prog in cl.exe
2996  do
2997    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2999{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3000$as_echo_n "checking for $ac_word... " >&6; }
3001if test "${ac_cv_prog_CC+set}" = set; then
3002  $as_echo_n "(cached) " >&6
3003else
3004  if test -n "$CC"; then
3005  ac_cv_prog_CC="$CC" # Let the user override the test.
3006else
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010  IFS=$as_save_IFS
3011  test -z "$as_dir" && as_dir=.
3012  for ac_exec_ext in '' $ac_executable_extensions; do
3013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3015    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3016    break 2
3017  fi
3018done
3019done
3020IFS=$as_save_IFS
3021
3022fi
3023fi
3024CC=$ac_cv_prog_CC
3025if test -n "$CC"; then
3026  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3027$as_echo "$CC" >&6; }
3028else
3029  { $as_echo "$as_me:$LINENO: result: no" >&5
3030$as_echo "no" >&6; }
3031fi
3032
3033
3034    test -n "$CC" && break
3035  done
3036fi
3037if test -z "$CC"; then
3038  ac_ct_CC=$CC
3039  for ac_prog in cl.exe
3040do
3041  # Extract the first word of "$ac_prog", so it can be a program name with args.
3042set dummy $ac_prog; ac_word=$2
3043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3044$as_echo_n "checking for $ac_word... " >&6; }
3045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3046  $as_echo_n "(cached) " >&6
3047else
3048  if test -n "$ac_ct_CC"; then
3049  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050else
3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052for as_dir in $PATH
3053do
3054  IFS=$as_save_IFS
3055  test -z "$as_dir" && as_dir=.
3056  for ac_exec_ext in '' $ac_executable_extensions; do
3057  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058    ac_cv_prog_ac_ct_CC="$ac_prog"
3059    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3060    break 2
3061  fi
3062done
3063done
3064IFS=$as_save_IFS
3065
3066fi
3067fi
3068ac_ct_CC=$ac_cv_prog_ac_ct_CC
3069if test -n "$ac_ct_CC"; then
3070  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3071$as_echo "$ac_ct_CC" >&6; }
3072else
3073  { $as_echo "$as_me:$LINENO: result: no" >&5
3074$as_echo "no" >&6; }
3075fi
3076
3077
3078  test -n "$ac_ct_CC" && break
3079done
3080
3081  if test "x$ac_ct_CC" = x; then
3082    CC=""
3083  else
3084    case $cross_compiling:$ac_tool_warned in
3085yes:)
3086{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088ac_tool_warned=yes ;;
3089esac
3090    CC=$ac_ct_CC
3091  fi
3092fi
3093
3094fi
3095
3096
3097test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3099{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3100See \`config.log' for more details." >&5
3101$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3102See \`config.log' for more details." >&2;}
3103   { (exit 1); exit 1; }; }; }
3104
3105# Provide some information about the compiler.
3106$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3107set X $ac_compile
3108ac_compiler=$2
3109{ (ac_try="$ac_compiler --version >&5"
3110case "(($ac_try" in
3111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112  *) ac_try_echo=$ac_try;;
3113esac
3114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3115$as_echo "$ac_try_echo") >&5
3116  (eval "$ac_compiler --version >&5") 2>&5
3117  ac_status=$?
3118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }
3120{ (ac_try="$ac_compiler -v >&5"
3121case "(($ac_try" in
3122  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123  *) ac_try_echo=$ac_try;;
3124esac
3125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3126$as_echo "$ac_try_echo") >&5
3127  (eval "$ac_compiler -v >&5") 2>&5
3128  ac_status=$?
3129  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); }
3131{ (ac_try="$ac_compiler -V >&5"
3132case "(($ac_try" in
3133  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134  *) ac_try_echo=$ac_try;;
3135esac
3136eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3137$as_echo "$ac_try_echo") >&5
3138  (eval "$ac_compiler -V >&5") 2>&5
3139  ac_status=$?
3140  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141  (exit $ac_status); }
3142
3143cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h.  */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h.  */
3149
3150int
3151main ()
3152{
3153
3154  ;
3155  return 0;
3156}
3157_ACEOF
3158ac_clean_files_save=$ac_clean_files
3159ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3160# Try to create an executable without -o first, disregard a.out.
3161# It will help us diagnose broken compilers, and finding out an intuition
3162# of exeext.
3163{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3164$as_echo_n "checking for C compiler default output file name... " >&6; }
3165ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3166
3167# The possible output files:
3168ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3169
3170ac_rmfiles=
3171for ac_file in $ac_files
3172do
3173  case $ac_file in
3174    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3175    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3176  esac
3177done
3178rm -f $ac_rmfiles
3179
3180if { (ac_try="$ac_link_default"
3181case "(($ac_try" in
3182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183  *) ac_try_echo=$ac_try;;
3184esac
3185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3186$as_echo "$ac_try_echo") >&5
3187  (eval "$ac_link_default") 2>&5
3188  ac_status=$?
3189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; then
3191  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3192# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3193# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3194# so that the user can short-circuit this test for compilers unknown to
3195# Autoconf.
3196for ac_file in $ac_files ''
3197do
3198  test -f "$ac_file" || continue
3199  case $ac_file in
3200    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3201	;;
3202    [ab].out )
3203	# We found the default executable, but exeext='' is most
3204	# certainly right.
3205	break;;
3206    *.* )
3207        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3208	then :; else
3209	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3210	fi
3211	# We set ac_cv_exeext here because the later test for it is not
3212	# safe: cross compilers may not add the suffix if given an `-o'
3213	# argument, so we may need to know it at that point already.
3214	# Even if this section looks crufty: it has the advantage of
3215	# actually working.
3216	break;;
3217    * )
3218	break;;
3219  esac
3220done
3221test "$ac_cv_exeext" = no && ac_cv_exeext=
3222
3223else
3224  ac_file=''
3225fi
3226
3227{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3228$as_echo "$ac_file" >&6; }
3229if test -z "$ac_file"; then
3230  $as_echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
3233{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3236See \`config.log' for more details." >&5
3237$as_echo "$as_me: error: C compiler cannot create executables
3238See \`config.log' for more details." >&2;}
3239   { (exit 77); exit 77; }; }; }
3240fi
3241
3242ac_exeext=$ac_cv_exeext
3243
3244# Check that the compiler produces executables we can run.  If not, either
3245# the compiler is broken, or we cross compile.
3246{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3247$as_echo_n "checking whether the C compiler works... " >&6; }
3248# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3249# If not cross compiling, check that we can run a simple program.
3250if test "$cross_compiling" != yes; then
3251  if { ac_try='./$ac_file'
3252  { (case "(($ac_try" in
3253  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254  *) ac_try_echo=$ac_try;;
3255esac
3256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3257$as_echo "$ac_try_echo") >&5
3258  (eval "$ac_try") 2>&5
3259  ac_status=$?
3260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); }; }; then
3262    cross_compiling=no
3263  else
3264    if test "$cross_compiling" = maybe; then
3265	cross_compiling=yes
3266    else
3267	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3270If you meant to cross compile, use \`--host'.
3271See \`config.log' for more details." >&5
3272$as_echo "$as_me: error: cannot run C compiled programs.
3273If you meant to cross compile, use \`--host'.
3274See \`config.log' for more details." >&2;}
3275   { (exit 1); exit 1; }; }; }
3276    fi
3277  fi
3278fi
3279{ $as_echo "$as_me:$LINENO: result: yes" >&5
3280$as_echo "yes" >&6; }
3281
3282rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3283ac_clean_files=$ac_clean_files_save
3284# Check that the compiler produces executables we can run.  If not, either
3285# the compiler is broken, or we cross compile.
3286{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3287$as_echo_n "checking whether we are cross compiling... " >&6; }
3288{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3289$as_echo "$cross_compiling" >&6; }
3290
3291{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3292$as_echo_n "checking for suffix of executables... " >&6; }
3293if { (ac_try="$ac_link"
3294case "(($ac_try" in
3295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296  *) ac_try_echo=$ac_try;;
3297esac
3298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3299$as_echo "$ac_try_echo") >&5
3300  (eval "$ac_link") 2>&5
3301  ac_status=$?
3302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }; then
3304  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3305# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3306# work properly (i.e., refer to `conftest.exe'), while it won't with
3307# `rm'.
3308for ac_file in conftest.exe conftest conftest.*; do
3309  test -f "$ac_file" || continue
3310  case $ac_file in
3311    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3313	  break;;
3314    * ) break;;
3315  esac
3316done
3317else
3318  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3321See \`config.log' for more details." >&5
3322$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3323See \`config.log' for more details." >&2;}
3324   { (exit 1); exit 1; }; }; }
3325fi
3326
3327rm -f conftest$ac_cv_exeext
3328{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3329$as_echo "$ac_cv_exeext" >&6; }
3330
3331rm -f conftest.$ac_ext
3332EXEEXT=$ac_cv_exeext
3333ac_exeext=$EXEEXT
3334{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3335$as_echo_n "checking for suffix of object files... " >&6; }
3336if test "${ac_cv_objext+set}" = set; then
3337  $as_echo_n "(cached) " >&6
3338else
3339  cat >conftest.$ac_ext <<_ACEOF
3340/* confdefs.h.  */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h.  */
3345
3346int
3347main ()
3348{
3349
3350  ;
3351  return 0;
3352}
3353_ACEOF
3354rm -f conftest.o conftest.obj
3355if { (ac_try="$ac_compile"
3356case "(($ac_try" in
3357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358  *) ac_try_echo=$ac_try;;
3359esac
3360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361$as_echo "$ac_try_echo") >&5
3362  (eval "$ac_compile") 2>&5
3363  ac_status=$?
3364  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; then
3366  for ac_file in conftest.o conftest.obj conftest.*; do
3367  test -f "$ac_file" || continue;
3368  case $ac_file in
3369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3370    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3371       break;;
3372  esac
3373done
3374else
3375  $as_echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3381See \`config.log' for more details." >&5
3382$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3383See \`config.log' for more details." >&2;}
3384   { (exit 1); exit 1; }; }; }
3385fi
3386
3387rm -f conftest.$ac_cv_objext conftest.$ac_ext
3388fi
3389{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3390$as_echo "$ac_cv_objext" >&6; }
3391OBJEXT=$ac_cv_objext
3392ac_objext=$OBJEXT
3393{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3394$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3395if test "${ac_cv_c_compiler_gnu+set}" = set; then
3396  $as_echo_n "(cached) " >&6
3397else
3398  cat >conftest.$ac_ext <<_ACEOF
3399/* confdefs.h.  */
3400_ACEOF
3401cat confdefs.h >>conftest.$ac_ext
3402cat >>conftest.$ac_ext <<_ACEOF
3403/* end confdefs.h.  */
3404
3405int
3406main ()
3407{
3408#ifndef __GNUC__
3409       choke me
3410#endif
3411
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext
3417if { (ac_try="$ac_compile"
3418case "(($ac_try" in
3419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420  *) ac_try_echo=$ac_try;;
3421esac
3422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3423$as_echo "$ac_try_echo") >&5
3424  (eval "$ac_compile") 2>conftest.er1
3425  ac_status=$?
3426  grep -v '^ *+' conftest.er1 >conftest.err
3427  rm -f conftest.er1
3428  cat conftest.err >&5
3429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); } && {
3431	 test -z "$ac_c_werror_flag" ||
3432	 test ! -s conftest.err
3433       } && test -s conftest.$ac_objext; then
3434  ac_compiler_gnu=yes
3435else
3436  $as_echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439	ac_compiler_gnu=no
3440fi
3441
3442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443ac_cv_c_compiler_gnu=$ac_compiler_gnu
3444
3445fi
3446{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3447$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3448if test $ac_compiler_gnu = yes; then
3449  GCC=yes
3450else
3451  GCC=
3452fi
3453ac_test_CFLAGS=${CFLAGS+set}
3454ac_save_CFLAGS=$CFLAGS
3455{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3456$as_echo_n "checking whether $CC accepts -g... " >&6; }
3457if test "${ac_cv_prog_cc_g+set}" = set; then
3458  $as_echo_n "(cached) " >&6
3459else
3460  ac_save_c_werror_flag=$ac_c_werror_flag
3461   ac_c_werror_flag=yes
3462   ac_cv_prog_cc_g=no
3463   CFLAGS="-g"
3464   cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h.  */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h.  */
3470
3471int
3472main ()
3473{
3474
3475  ;
3476  return 0;
3477}
3478_ACEOF
3479rm -f conftest.$ac_objext
3480if { (ac_try="$ac_compile"
3481case "(($ac_try" in
3482  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483  *) ac_try_echo=$ac_try;;
3484esac
3485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486$as_echo "$ac_try_echo") >&5
3487  (eval "$ac_compile") 2>conftest.er1
3488  ac_status=$?
3489  grep -v '^ *+' conftest.er1 >conftest.err
3490  rm -f conftest.er1
3491  cat conftest.err >&5
3492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493  (exit $ac_status); } && {
3494	 test -z "$ac_c_werror_flag" ||
3495	 test ! -s conftest.err
3496       } && test -s conftest.$ac_objext; then
3497  ac_cv_prog_cc_g=yes
3498else
3499  $as_echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502	CFLAGS=""
3503      cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h.  */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h.  */
3509
3510int
3511main ()
3512{
3513
3514  ;
3515  return 0;
3516}
3517_ACEOF
3518rm -f conftest.$ac_objext
3519if { (ac_try="$ac_compile"
3520case "(($ac_try" in
3521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522  *) ac_try_echo=$ac_try;;
3523esac
3524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525$as_echo "$ac_try_echo") >&5
3526  (eval "$ac_compile") 2>conftest.er1
3527  ac_status=$?
3528  grep -v '^ *+' conftest.er1 >conftest.err
3529  rm -f conftest.er1
3530  cat conftest.err >&5
3531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532  (exit $ac_status); } && {
3533	 test -z "$ac_c_werror_flag" ||
3534	 test ! -s conftest.err
3535       } && test -s conftest.$ac_objext; then
3536  :
3537else
3538  $as_echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541	ac_c_werror_flag=$ac_save_c_werror_flag
3542	 CFLAGS="-g"
3543	 cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h.  */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h.  */
3549
3550int
3551main ()
3552{
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558rm -f conftest.$ac_objext
3559if { (ac_try="$ac_compile"
3560case "(($ac_try" in
3561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562  *) ac_try_echo=$ac_try;;
3563esac
3564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3565$as_echo "$ac_try_echo") >&5
3566  (eval "$ac_compile") 2>conftest.er1
3567  ac_status=$?
3568  grep -v '^ *+' conftest.er1 >conftest.err
3569  rm -f conftest.er1
3570  cat conftest.err >&5
3571  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572  (exit $ac_status); } && {
3573	 test -z "$ac_c_werror_flag" ||
3574	 test ! -s conftest.err
3575       } && test -s conftest.$ac_objext; then
3576  ac_cv_prog_cc_g=yes
3577else
3578  $as_echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
3581
3582fi
3583
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585fi
3586
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588fi
3589
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3591   ac_c_werror_flag=$ac_save_c_werror_flag
3592fi
3593{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3594$as_echo "$ac_cv_prog_cc_g" >&6; }
3595if test "$ac_test_CFLAGS" = set; then
3596  CFLAGS=$ac_save_CFLAGS
3597elif test $ac_cv_prog_cc_g = yes; then
3598  if test "$GCC" = yes; then
3599    CFLAGS="-g -O2"
3600  else
3601    CFLAGS="-g"
3602  fi
3603else
3604  if test "$GCC" = yes; then
3605    CFLAGS="-O2"
3606  else
3607    CFLAGS=
3608  fi
3609fi
3610{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3611$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3612if test "${ac_cv_prog_cc_c89+set}" = set; then
3613  $as_echo_n "(cached) " >&6
3614else
3615  ac_cv_prog_cc_c89=no
3616ac_save_CC=$CC
3617cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h.  */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h.  */
3623#include <stdarg.h>
3624#include <stdio.h>
3625#include <sys/types.h>
3626#include <sys/stat.h>
3627/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3628struct buf { int x; };
3629FILE * (*rcsopen) (struct buf *, struct stat *, int);
3630static char *e (p, i)
3631     char **p;
3632     int i;
3633{
3634  return p[i];
3635}
3636static char *f (char * (*g) (char **, int), char **p, ...)
3637{
3638  char *s;
3639  va_list v;
3640  va_start (v,p);
3641  s = g (p, va_arg (v,int));
3642  va_end (v);
3643  return s;
3644}
3645
3646/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3647   function prototypes and stuff, but not '\xHH' hex character constants.
3648   These don't provoke an error unfortunately, instead are silently treated
3649   as 'x'.  The following induces an error, until -std is added to get
3650   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3651   array size at least.  It's necessary to write '\x00'==0 to get something
3652   that's true only with -std.  */
3653int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3654
3655/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3656   inside strings and character constants.  */
3657#define FOO(x) 'x'
3658int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3659
3660int test (int i, double x);
3661struct s1 {int (*f) (int a);};
3662struct s2 {int (*f) (double a);};
3663int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3664int argc;
3665char **argv;
3666int
3667main ()
3668{
3669return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3675	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3676do
3677  CC="$ac_save_CC $ac_arg"
3678  rm -f conftest.$ac_objext
3679if { (ac_try="$ac_compile"
3680case "(($ac_try" in
3681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682  *) ac_try_echo=$ac_try;;
3683esac
3684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3685$as_echo "$ac_try_echo") >&5
3686  (eval "$ac_compile") 2>conftest.er1
3687  ac_status=$?
3688  grep -v '^ *+' conftest.er1 >conftest.err
3689  rm -f conftest.er1
3690  cat conftest.err >&5
3691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); } && {
3693	 test -z "$ac_c_werror_flag" ||
3694	 test ! -s conftest.err
3695       } && test -s conftest.$ac_objext; then
3696  ac_cv_prog_cc_c89=$ac_arg
3697else
3698  $as_echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701
3702fi
3703
3704rm -f core conftest.err conftest.$ac_objext
3705  test "x$ac_cv_prog_cc_c89" != "xno" && break
3706done
3707rm -f conftest.$ac_ext
3708CC=$ac_save_CC
3709
3710fi
3711# AC_CACHE_VAL
3712case "x$ac_cv_prog_cc_c89" in
3713  x)
3714    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3715$as_echo "none needed" >&6; } ;;
3716  xno)
3717    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3718$as_echo "unsupported" >&6; } ;;
3719  *)
3720    CC="$CC $ac_cv_prog_cc_c89"
3721    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3722$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3723esac
3724
3725
3726ac_ext=c
3727ac_cpp='$CPP $CPPFLAGS'
3728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731DEPDIR="${am__leading_dot}deps"
3732
3733ac_config_commands="$ac_config_commands depfiles"
3734
3735
3736am_make=${MAKE-make}
3737cat > confinc << 'END'
3738am__doit:
3739	@echo done
3740.PHONY: am__doit
3741END
3742# If we don't find an include directive, just comment out the code.
3743{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3744$as_echo_n "checking for style of include used by $am_make... " >&6; }
3745am__include="#"
3746am__quote=
3747_am_result=none
3748# First try GNU make style include.
3749echo "include confinc" > confmf
3750# We grep out `Entering directory' and `Leaving directory'
3751# messages which can occur if `w' ends up in MAKEFLAGS.
3752# In particular we don't look at `^make:' because GNU make might
3753# be invoked under some other name (usually "gmake"), in which
3754# case it prints its new name instead of `make'.
3755if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3756   am__include=include
3757   am__quote=
3758   _am_result=GNU
3759fi
3760# Now try BSD make style include.
3761if test "$am__include" = "#"; then
3762   echo '.include "confinc"' > confmf
3763   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3764      am__include=.include
3765      am__quote="\""
3766      _am_result=BSD
3767   fi
3768fi
3769
3770
3771{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3772$as_echo "$_am_result" >&6; }
3773rm -f confinc confmf
3774
3775# Check whether --enable-dependency-tracking was given.
3776if test "${enable_dependency_tracking+set}" = set; then
3777  enableval=$enable_dependency_tracking;
3778fi
3779
3780if test "x$enable_dependency_tracking" != xno; then
3781  am_depcomp="$ac_aux_dir/depcomp"
3782  AMDEPBACKSLASH='\'
3783fi
3784 if test "x$enable_dependency_tracking" != xno; then
3785  AMDEP_TRUE=
3786  AMDEP_FALSE='#'
3787else
3788  AMDEP_TRUE='#'
3789  AMDEP_FALSE=
3790fi
3791
3792
3793
3794depcc="$CC"   am_compiler_list=
3795
3796{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3797$as_echo_n "checking dependency style of $depcc... " >&6; }
3798if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3799  $as_echo_n "(cached) " >&6
3800else
3801  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802  # We make a subdir and do the tests there.  Otherwise we can end up
3803  # making bogus files that we don't know about and never remove.  For
3804  # instance it was reported that on HP-UX the gcc test will end up
3805  # making a dummy file named `D' -- because `-MD' means `put the output
3806  # in D'.
3807  mkdir conftest.dir
3808  # Copy depcomp to subdir because otherwise we won't find it if we're
3809  # using a relative directory.
3810  cp "$am_depcomp" conftest.dir
3811  cd conftest.dir
3812  # We will build objects and dependencies in a subdirectory because
3813  # it helps to detect inapplicable dependency modes.  For instance
3814  # both Tru64's cc and ICC support -MD to output dependencies as a
3815  # side effect of compilation, but ICC will put the dependencies in
3816  # the current directory while Tru64 will put them in the object
3817  # directory.
3818  mkdir sub
3819
3820  am_cv_CC_dependencies_compiler_type=none
3821  if test "$am_compiler_list" = ""; then
3822     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823  fi
3824  for depmode in $am_compiler_list; do
3825    # Setup a source with many dependencies, because some compilers
3826    # like to wrap large dependency lists on column 80 (with \), and
3827    # we should not choose a depcomp mode which is confused by this.
3828    #
3829    # We need to recreate these files for each test, as the compiler may
3830    # overwrite some of them when testing with obscure command lines.
3831    # This happens at least with the AIX C compiler.
3832    : > sub/conftest.c
3833    for i in 1 2 3 4 5 6; do
3834      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3835      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3836      # Solaris 8's {/usr,}/bin/sh.
3837      touch sub/conftst$i.h
3838    done
3839    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3840
3841    case $depmode in
3842    nosideeffect)
3843      # after this tag, mechanisms are not by side-effect, so they'll
3844      # only be used when explicitly requested
3845      if test "x$enable_dependency_tracking" = xyes; then
3846	continue
3847      else
3848	break
3849      fi
3850      ;;
3851    none) break ;;
3852    esac
3853    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3854    # mode.  It turns out that the SunPro C++ compiler does not properly
3855    # handle `-M -o', and we need to detect this.
3856    if depmode=$depmode \
3857       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3858       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3859       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3860         >/dev/null 2>conftest.err &&
3861       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3862       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3863       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3864       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3865      # icc doesn't choke on unknown options, it will just issue warnings
3866      # or remarks (even with -Werror).  So we grep stderr for any message
3867      # that says an option was ignored or not supported.
3868      # When given -MP, icc 7.0 and 7.1 complain thusly:
3869      #   icc: Command line warning: ignoring option '-M'; no argument required
3870      # The diagnosis changed in icc 8.0:
3871      #   icc: Command line remark: option '-MP' not supported
3872      if (grep 'ignoring option' conftest.err ||
3873          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3874        am_cv_CC_dependencies_compiler_type=$depmode
3875        break
3876      fi
3877    fi
3878  done
3879
3880  cd ..
3881  rm -rf conftest.dir
3882else
3883  am_cv_CC_dependencies_compiler_type=none
3884fi
3885
3886fi
3887{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3888$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3889CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3890
3891 if
3892  test "x$enable_dependency_tracking" != xno \
3893  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3894  am__fastdepCC_TRUE=
3895  am__fastdepCC_FALSE='#'
3896else
3897  am__fastdepCC_TRUE='#'
3898  am__fastdepCC_FALSE=
3899fi
3900
3901
3902# Find a good install program.  We prefer a C program (faster),
3903# so one script is as good as another.  But avoid the broken or
3904# incompatible versions:
3905# SysV /etc/install, /usr/sbin/install
3906# SunOS /usr/etc/install
3907# IRIX /sbin/install
3908# AIX /bin/install
3909# AmigaOS /C/install, which installs bootblocks on floppy discs
3910# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3911# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3912# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3913# OS/2's system install, which has a completely different semantic
3914# ./install, which can be erroneously created by make from ./install.sh.
3915# Reject install programs that cannot install multiple files.
3916{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3917$as_echo_n "checking for a BSD-compatible install... " >&6; }
3918if test -z "$INSTALL"; then
3919if test "${ac_cv_path_install+set}" = set; then
3920  $as_echo_n "(cached) " >&6
3921else
3922  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925  IFS=$as_save_IFS
3926  test -z "$as_dir" && as_dir=.
3927  # Account for people who put trailing slashes in PATH elements.
3928case $as_dir/ in
3929  ./ | .// | /cC/* | \
3930  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3931  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3932  /usr/ucb/* ) ;;
3933  *)
3934    # OSF1 and SCO ODT 3.0 have their own names for install.
3935    # Don't use installbsd from OSF since it installs stuff as root
3936    # by default.
3937    for ac_prog in ginstall scoinst install; do
3938      for ac_exec_ext in '' $ac_executable_extensions; do
3939	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3940	  if test $ac_prog = install &&
3941	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3942	    # AIX install.  It has an incompatible calling convention.
3943	    :
3944	  elif test $ac_prog = install &&
3945	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3946	    # program-specific install script used by HP pwplus--don't use.
3947	    :
3948	  else
3949	    rm -rf conftest.one conftest.two conftest.dir
3950	    echo one > conftest.one
3951	    echo two > conftest.two
3952	    mkdir conftest.dir
3953	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3954	      test -s conftest.one && test -s conftest.two &&
3955	      test -s conftest.dir/conftest.one &&
3956	      test -s conftest.dir/conftest.two
3957	    then
3958	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3959	      break 3
3960	    fi
3961	  fi
3962	fi
3963      done
3964    done
3965    ;;
3966esac
3967
3968done
3969IFS=$as_save_IFS
3970
3971rm -rf conftest.one conftest.two conftest.dir
3972
3973fi
3974  if test "${ac_cv_path_install+set}" = set; then
3975    INSTALL=$ac_cv_path_install
3976  else
3977    # As a last resort, use the slow shell script.  Don't cache a
3978    # value for INSTALL within a source directory, because that will
3979    # break other packages using the cache if that directory is
3980    # removed, or if the value is a relative name.
3981    INSTALL=$ac_install_sh
3982  fi
3983fi
3984{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3985$as_echo "$INSTALL" >&6; }
3986
3987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3988# It thinks the first close brace ends the variable substitution.
3989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3990
3991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3992
3993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3994
3995for ac_prog in 'bison -y' byacc
3996do
3997  # Extract the first word of "$ac_prog", so it can be a program name with args.
3998set dummy $ac_prog; ac_word=$2
3999{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
4001if test "${ac_cv_prog_YACC+set}" = set; then
4002  $as_echo_n "(cached) " >&6
4003else
4004  if test -n "$YACC"; then
4005  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4006else
4007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008for as_dir in $PATH
4009do
4010  IFS=$as_save_IFS
4011  test -z "$as_dir" && as_dir=.
4012  for ac_exec_ext in '' $ac_executable_extensions; do
4013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014    ac_cv_prog_YACC="$ac_prog"
4015    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4016    break 2
4017  fi
4018done
4019done
4020IFS=$as_save_IFS
4021
4022fi
4023fi
4024YACC=$ac_cv_prog_YACC
4025if test -n "$YACC"; then
4026  { $as_echo "$as_me:$LINENO: result: $YACC" >&5
4027$as_echo "$YACC" >&6; }
4028else
4029  { $as_echo "$as_me:$LINENO: result: no" >&5
4030$as_echo "no" >&6; }
4031fi
4032
4033
4034  test -n "$YACC" && break
4035done
4036test -n "$YACC" || YACC="yacc"
4037
4038
4039
4040  { $as_echo "$as_me:$LINENO: checking whether to use Java" >&5
4041$as_echo_n "checking whether to use Java... " >&6; }
4042  # Check whether --enable-java was given.
4043if test "${enable_java+set}" = set; then
4044  enableval=$enable_java; JAVA_CHOICE="$enableval"
4045else
4046  JAVA_CHOICE=yes
4047fi
4048
4049  { $as_echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5
4050$as_echo "$JAVA_CHOICE" >&6; }
4051  if test "$JAVA_CHOICE" = yes; then
4052    # Check whether --enable-native-java was given.
4053if test "${enable_native_java+set}" = set; then
4054  enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
4055fi
4056
4057  fi
4058
4059
4060
4061
4062ac_ext=c
4063ac_cpp='$CPP $CPPFLAGS'
4064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066ac_compiler_gnu=$ac_cv_c_compiler_gnu
4067{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4068$as_echo_n "checking how to run the C preprocessor... " >&6; }
4069# On Suns, sometimes $CPP names a directory.
4070if test -n "$CPP" && test -d "$CPP"; then
4071  CPP=
4072fi
4073if test -z "$CPP"; then
4074  if test "${ac_cv_prog_CPP+set}" = set; then
4075  $as_echo_n "(cached) " >&6
4076else
4077      # Double quotes because CPP needs to be expanded
4078    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4079    do
4080      ac_preproc_ok=false
4081for ac_c_preproc_warn_flag in '' yes
4082do
4083  # Use a header file that comes with gcc, so configuring glibc
4084  # with a fresh cross-compiler works.
4085  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4086  # <limits.h> exists even on freestanding compilers.
4087  # On the NeXT, cc -E runs the code through the compiler's parser,
4088  # not just through cpp. "Syntax error" is here to catch this case.
4089  cat >conftest.$ac_ext <<_ACEOF
4090/* confdefs.h.  */
4091_ACEOF
4092cat confdefs.h >>conftest.$ac_ext
4093cat >>conftest.$ac_ext <<_ACEOF
4094/* end confdefs.h.  */
4095#ifdef __STDC__
4096# include <limits.h>
4097#else
4098# include <assert.h>
4099#endif
4100		     Syntax error
4101_ACEOF
4102if { (ac_try="$ac_cpp conftest.$ac_ext"
4103case "(($ac_try" in
4104  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105  *) ac_try_echo=$ac_try;;
4106esac
4107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4108$as_echo "$ac_try_echo") >&5
4109  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4110  ac_status=$?
4111  grep -v '^ *+' conftest.er1 >conftest.err
4112  rm -f conftest.er1
4113  cat conftest.err >&5
4114  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); } >/dev/null && {
4116	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4117	 test ! -s conftest.err
4118       }; then
4119  :
4120else
4121  $as_echo "$as_me: failed program was:" >&5
4122sed 's/^/| /' conftest.$ac_ext >&5
4123
4124  # Broken: fails on valid input.
4125continue
4126fi
4127
4128rm -f conftest.err conftest.$ac_ext
4129
4130  # OK, works on sane cases.  Now check whether nonexistent headers
4131  # can be detected and how.
4132  cat >conftest.$ac_ext <<_ACEOF
4133/* confdefs.h.  */
4134_ACEOF
4135cat confdefs.h >>conftest.$ac_ext
4136cat >>conftest.$ac_ext <<_ACEOF
4137/* end confdefs.h.  */
4138#include <ac_nonexistent.h>
4139_ACEOF
4140if { (ac_try="$ac_cpp conftest.$ac_ext"
4141case "(($ac_try" in
4142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143  *) ac_try_echo=$ac_try;;
4144esac
4145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4146$as_echo "$ac_try_echo") >&5
4147  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4148  ac_status=$?
4149  grep -v '^ *+' conftest.er1 >conftest.err
4150  rm -f conftest.er1
4151  cat conftest.err >&5
4152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153  (exit $ac_status); } >/dev/null && {
4154	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4155	 test ! -s conftest.err
4156       }; then
4157  # Broken: success on invalid input.
4158continue
4159else
4160  $as_echo "$as_me: failed program was:" >&5
4161sed 's/^/| /' conftest.$ac_ext >&5
4162
4163  # Passes both tests.
4164ac_preproc_ok=:
4165break
4166fi
4167
4168rm -f conftest.err conftest.$ac_ext
4169
4170done
4171# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4172rm -f conftest.err conftest.$ac_ext
4173if $ac_preproc_ok; then
4174  break
4175fi
4176
4177    done
4178    ac_cv_prog_CPP=$CPP
4179
4180fi
4181  CPP=$ac_cv_prog_CPP
4182else
4183  ac_cv_prog_CPP=$CPP
4184fi
4185{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4186$as_echo "$CPP" >&6; }
4187ac_preproc_ok=false
4188for ac_c_preproc_warn_flag in '' yes
4189do
4190  # Use a header file that comes with gcc, so configuring glibc
4191  # with a fresh cross-compiler works.
4192  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4193  # <limits.h> exists even on freestanding compilers.
4194  # On the NeXT, cc -E runs the code through the compiler's parser,
4195  # not just through cpp. "Syntax error" is here to catch this case.
4196  cat >conftest.$ac_ext <<_ACEOF
4197/* confdefs.h.  */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h.  */
4202#ifdef __STDC__
4203# include <limits.h>
4204#else
4205# include <assert.h>
4206#endif
4207		     Syntax error
4208_ACEOF
4209if { (ac_try="$ac_cpp conftest.$ac_ext"
4210case "(($ac_try" in
4211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212  *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4215$as_echo "$ac_try_echo") >&5
4216  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4217  ac_status=$?
4218  grep -v '^ *+' conftest.er1 >conftest.err
4219  rm -f conftest.er1
4220  cat conftest.err >&5
4221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222  (exit $ac_status); } >/dev/null && {
4223	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4224	 test ! -s conftest.err
4225       }; then
4226  :
4227else
4228  $as_echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231  # Broken: fails on valid input.
4232continue
4233fi
4234
4235rm -f conftest.err conftest.$ac_ext
4236
4237  # OK, works on sane cases.  Now check whether nonexistent headers
4238  # can be detected and how.
4239  cat >conftest.$ac_ext <<_ACEOF
4240/* confdefs.h.  */
4241_ACEOF
4242cat confdefs.h >>conftest.$ac_ext
4243cat >>conftest.$ac_ext <<_ACEOF
4244/* end confdefs.h.  */
4245#include <ac_nonexistent.h>
4246_ACEOF
4247if { (ac_try="$ac_cpp conftest.$ac_ext"
4248case "(($ac_try" in
4249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250  *) ac_try_echo=$ac_try;;
4251esac
4252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4253$as_echo "$ac_try_echo") >&5
4254  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4255  ac_status=$?
4256  grep -v '^ *+' conftest.er1 >conftest.err
4257  rm -f conftest.er1
4258  cat conftest.err >&5
4259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); } >/dev/null && {
4261	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4262	 test ! -s conftest.err
4263       }; then
4264  # Broken: success on invalid input.
4265continue
4266else
4267  $as_echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
4270  # Passes both tests.
4271ac_preproc_ok=:
4272break
4273fi
4274
4275rm -f conftest.err conftest.$ac_ext
4276
4277done
4278# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4279rm -f conftest.err conftest.$ac_ext
4280if $ac_preproc_ok; then
4281  :
4282else
4283  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4285{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4286See \`config.log' for more details." >&5
4287$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4288See \`config.log' for more details." >&2;}
4289   { (exit 1); exit 1; }; }; }
4290fi
4291
4292ac_ext=c
4293ac_cpp='$CPP $CPPFLAGS'
4294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298
4299{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4300$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4301if test "${ac_cv_path_GREP+set}" = set; then
4302  $as_echo_n "(cached) " >&6
4303else
4304  if test -z "$GREP"; then
4305  ac_path_GREP_found=false
4306  # Loop through the user's path and test for each of PROGNAME-LIST
4307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4309do
4310  IFS=$as_save_IFS
4311  test -z "$as_dir" && as_dir=.
4312  for ac_prog in grep ggrep; do
4313    for ac_exec_ext in '' $ac_executable_extensions; do
4314      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4315      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4316# Check for GNU ac_path_GREP and select it if it is found.
4317  # Check for GNU $ac_path_GREP
4318case `"$ac_path_GREP" --version 2>&1` in
4319*GNU*)
4320  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4321*)
4322  ac_count=0
4323  $as_echo_n 0123456789 >"conftest.in"
4324  while :
4325  do
4326    cat "conftest.in" "conftest.in" >"conftest.tmp"
4327    mv "conftest.tmp" "conftest.in"
4328    cp "conftest.in" "conftest.nl"
4329    $as_echo 'GREP' >> "conftest.nl"
4330    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332    ac_count=`expr $ac_count + 1`
4333    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4334      # Best one so far, save it but keep looking for a better one
4335      ac_cv_path_GREP="$ac_path_GREP"
4336      ac_path_GREP_max=$ac_count
4337    fi
4338    # 10*(2^10) chars as input seems more than enough
4339    test $ac_count -gt 10 && break
4340  done
4341  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342esac
4343
4344      $ac_path_GREP_found && break 3
4345    done
4346  done
4347done
4348IFS=$as_save_IFS
4349  if test -z "$ac_cv_path_GREP"; then
4350    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4351$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4352   { (exit 1); exit 1; }; }
4353  fi
4354else
4355  ac_cv_path_GREP=$GREP
4356fi
4357
4358fi
4359{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4360$as_echo "$ac_cv_path_GREP" >&6; }
4361 GREP="$ac_cv_path_GREP"
4362
4363
4364{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4365$as_echo_n "checking for egrep... " >&6; }
4366if test "${ac_cv_path_EGREP+set}" = set; then
4367  $as_echo_n "(cached) " >&6
4368else
4369  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4370   then ac_cv_path_EGREP="$GREP -E"
4371   else
4372     if test -z "$EGREP"; then
4373  ac_path_EGREP_found=false
4374  # Loop through the user's path and test for each of PROGNAME-LIST
4375  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377do
4378  IFS=$as_save_IFS
4379  test -z "$as_dir" && as_dir=.
4380  for ac_prog in egrep; do
4381    for ac_exec_ext in '' $ac_executable_extensions; do
4382      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4383      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4384# Check for GNU ac_path_EGREP and select it if it is found.
4385  # Check for GNU $ac_path_EGREP
4386case `"$ac_path_EGREP" --version 2>&1` in
4387*GNU*)
4388  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4389*)
4390  ac_count=0
4391  $as_echo_n 0123456789 >"conftest.in"
4392  while :
4393  do
4394    cat "conftest.in" "conftest.in" >"conftest.tmp"
4395    mv "conftest.tmp" "conftest.in"
4396    cp "conftest.in" "conftest.nl"
4397    $as_echo 'EGREP' >> "conftest.nl"
4398    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400    ac_count=`expr $ac_count + 1`
4401    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4402      # Best one so far, save it but keep looking for a better one
4403      ac_cv_path_EGREP="$ac_path_EGREP"
4404      ac_path_EGREP_max=$ac_count
4405    fi
4406    # 10*(2^10) chars as input seems more than enough
4407    test $ac_count -gt 10 && break
4408  done
4409  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410esac
4411
4412      $ac_path_EGREP_found && break 3
4413    done
4414  done
4415done
4416IFS=$as_save_IFS
4417  if test -z "$ac_cv_path_EGREP"; then
4418    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4419$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4420   { (exit 1); exit 1; }; }
4421  fi
4422else
4423  ac_cv_path_EGREP=$EGREP
4424fi
4425
4426   fi
4427fi
4428{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4429$as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP="$ac_cv_path_EGREP"
4431
4432
4433
4434
4435  cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h.  */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4440/* end confdefs.h.  */
4441
4442#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
4443  yes
4444#endif
4445
4446_ACEOF
4447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448  $EGREP "yes" >/dev/null 2>&1; then
4449  CLASSPATH_SEPARATOR=';'
4450else
4451  CLASSPATH_SEPARATOR=':'
4452fi
4453rm -f conftest*
4454
4455  source_version=1.3
4456  test -n "$source_version" || {
4457    { { $as_echo "$as_me:$LINENO: error: missing source-version argument to gt_JAVACOMP" >&5
4458$as_echo "$as_me: error: missing source-version argument to gt_JAVACOMP" >&2;}
4459   { (exit 1); exit 1; }; }
4460  }
4461  target_version=1.1
4462  case "$source_version" in
4463    1.3) goodcode='class conftest {}'
4464         failcode='class conftestfail { static { assert(true); } }' ;;
4465    1.4) goodcode='class conftest     { static { assert(true); } }'
4466         failcode='class conftestfail<T> { T foo() { return null; } }' ;;
4467    1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
4468         failcode='class conftestfail syntax error' ;;
4469    *) { { $as_echo "$as_me:$LINENO: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&5
4470$as_echo "$as_me: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&2;}
4471   { (exit 1); exit 1; }; } ;;
4472  esac
4473  case "$target_version" in
4474    1.1) cfversion=45 ;;
4475    1.2) cfversion=46 ;;
4476    1.3) cfversion=47 ;;
4477    1.4) cfversion=48 ;;
4478    1.5) cfversion=49 ;;
4479    1.6) cfversion=50 ;;
4480    *) { { $as_echo "$as_me:$LINENO: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&5
4481$as_echo "$as_me: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&2;}
4482   { (exit 1); exit 1; }; } ;;
4483  esac
4484  # Function to output the classfile version of a file (8th byte) in decimal.
4485  if od -A x < /dev/null >/dev/null 2>/dev/null; then
4486    # Use POSIX od.
4487    func_classfile_version ()
4488    {
4489      od -A n -t d1 -j 7 -N 1 "$1"
4490    }
4491  else
4492    # Use BSD hexdump.
4493    func_classfile_version ()
4494    {
4495      dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
4496      echo
4497    }
4498  fi
4499  { $as_echo "$as_me:$LINENO: checking for Java compiler" >&5
4500$as_echo_n "checking for Java compiler... " >&6; }
4501                                                                                        CONF_JAVAC=
4502  HAVE_JAVAC_ENVVAR=
4503  HAVE_GCJ_C=
4504  HAVE_JAVAC=
4505  HAVE_JIKES=
4506  HAVE_JAVACOMP=
4507  cat > conftestlib.java <<EOF
4508public class conftestlib {
4509  public static void main (String[] args) {
4510  }
4511}
4512EOF
4513  echo "$goodcode" > conftest.java
4514  echo "$failcode" > conftestfail.java
4515        if test -n "$JAVAC"; then
4516        if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
4517            if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
4518                        rm -f conftest.class
4519        if { echo "$as_me:4519: $JAVAC -d . conftest.java" >&5
4520             $JAVAC -d . conftest.java >&5 2>&1
4521           } \
4522           && test -f conftest.class \
4523           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4524                    rm -f conftest.class
4525          rm -f conftestfail.class
4526          if { echo "$as_me:4526: $JAVAC -fsource=$source_version -d . conftest.java" >&5
4527               $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
4528             } \
4529             && test -f conftest.class \
4530             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4531             && { echo "$as_me:4531: $JAVAC -d . conftestfail.java" >&5
4532                  $JAVAC -d . conftestfail.java >&5 2>&1
4533                } \
4534             && test -f conftestfail.class \
4535             && ! { echo "$as_me:4535: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
4536                    $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
4537                  }; then
4538            CONF_JAVAC="$JAVAC -fsource=$source_version"
4539            HAVE_JAVAC_ENVVAR=1
4540            HAVE_JAVACOMP=1
4541          else
4542            CONF_JAVAC="$JAVAC"
4543            HAVE_JAVAC_ENVVAR=1
4544            HAVE_JAVACOMP=1
4545          fi
4546        else
4547                    rm -f conftest.class
4548          rm -f conftestfail.class
4549          if { echo "$as_me:4549: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
4550               $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
4551             } \
4552             && test -f conftest.class \
4553             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4554            CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
4555            HAVE_JAVAC_ENVVAR=1
4556            HAVE_JAVACOMP=1
4557          fi
4558        fi
4559      else
4560                if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
4561                    rm -f conftest.class
4562          if { echo "$as_me:4562: $JAVAC -d . conftest.java" >&5
4563               $JAVAC -d . conftest.java >&5 2>&1
4564             } \
4565             && test -f conftest.class; then
4566            CONF_JAVAC="$JAVAC"
4567            HAVE_JAVAC_ENVVAR=1
4568            HAVE_JAVACOMP=1
4569          fi
4570        else
4571          if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
4572                                    javac_works=
4573            rm -f conftest.class
4574            if { echo "$as_me:4574: $JAVAC -d . conftest.java" >&5
4575                 $JAVAC -d . conftest.java >&5 2>&1
4576               } \
4577               && test -f conftest.class; then
4578              javac_works=1
4579            fi
4580            javac_noassert_works=
4581            rm -f conftest.class
4582            if { echo "$as_me:4582: $JAVAC -fno-assert -d . conftest.java" >&5
4583                 $JAVAC -fno-assert -d . conftest.java >&5 2>&1
4584               } \
4585               && test -f conftest.class; then
4586              javac_noassert_works=1
4587            fi
4588            if test -n "$javac_works" && test -n "$javac_noassert_works"; then
4589              rm -f conftestfail.class
4590              if { echo "$as_me:4590: $JAVAC -d . conftestfail.java" >&5
4591                   $JAVAC -d . conftestfail.java >&5 2>&1
4592                 } \
4593                 && test -f conftestfail.class \
4594                 && ! { echo "$as_me:4594: $JAVAC -fno-assert -d . conftestfail.java" >&5
4595                        $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
4596                      }; then
4597                                javac_works=
4598              fi
4599            fi
4600            if test -n "$javac_works"; then
4601              CONF_JAVAC="$JAVAC"
4602              HAVE_JAVAC_ENVVAR=1
4603              HAVE_JAVACOMP=1
4604            else
4605              if test -n "$javac_noassert_works"; then
4606                CONF_JAVAC="$JAVAC -fno-assert"
4607                HAVE_JAVAC_ENVVAR=1
4608                HAVE_JAVACOMP=1
4609              fi
4610            fi
4611          fi
4612        fi
4613      fi
4614    else
4615                  rm -f conftest.class
4616      if { echo "$as_me:4616: $JAVAC -d . conftest.java" >&5
4617           $JAVAC -d . conftest.java >&5 2>&1
4618         } \
4619         && test -f conftest.class \
4620         && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4621                rm -f conftest.class
4622        rm -f conftestfail.class
4623        if { echo "$as_me:4623: $JAVAC -source $source_version -d . conftest.java" >&5
4624             $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
4625           } \
4626           && test -f conftest.class \
4627           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4628           && { echo "$as_me:4628: $JAVAC -d . conftestfail.java" >&5
4629                $JAVAC -d . conftestfail.java >&5 2>&1
4630              } \
4631           && test -f conftestfail.class \
4632           && ! { echo "$as_me:4632: $JAVAC -source $source_version -d . conftestfail.java" >&5
4633                  $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
4634                }; then
4635          CONF_JAVAC="$JAVAC -source $source_version"
4636          HAVE_JAVAC_ENVVAR=1
4637          HAVE_JAVACOMP=1
4638        else
4639          CONF_JAVAC="$JAVAC"
4640          HAVE_JAVAC_ENVVAR=1
4641          HAVE_JAVACOMP=1
4642        fi
4643      else
4644                        rm -f conftest.class
4645        if { echo "$as_me:4645: $JAVAC -target $target_version -d . conftest.java" >&5
4646             $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
4647           } \
4648           && test -f conftest.class \
4649           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4650                    rm -f conftest.class
4651          rm -f conftestfail.class
4652          if { echo "$as_me:4652: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
4653               $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
4654             } \
4655             && test -f conftest.class \
4656             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4657             && { echo "$as_me:4657: $JAVAC -target $target_version -d . conftestfail.java" >&5
4658                  $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
4659                } \
4660             && test -f conftestfail.class \
4661             && ! { echo "$as_me:4661: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
4662                    $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
4663                  }; then
4664            CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
4665            HAVE_JAVAC_ENVVAR=1
4666            HAVE_JAVACOMP=1
4667          else
4668            CONF_JAVAC="$JAVAC -target $target_version"
4669            HAVE_JAVAC_ENVVAR=1
4670            HAVE_JAVACOMP=1
4671          fi
4672        else
4673                                        rm -f conftest.class
4674          if { echo "$as_me:4674: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
4675               $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
4676             } \
4677             && test -f conftest.class \
4678             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4679            CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
4680            HAVE_JAVAC_ENVVAR=1
4681            HAVE_JAVACOMP=1
4682          fi
4683        fi
4684      fi
4685    fi
4686  fi
4687  if test -z "$HAVE_JAVACOMP"; then
4688                # Extract the first word of "gcj", so it can be a program name with args.
4689set dummy gcj; ac_word=$2
4690:
4691if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then
4692  $as_echo_n "(cached) " >&6
4693else
4694  if test -n "$HAVE_GCJ_IN_PATH"; then
4695  ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
4696else
4697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698for as_dir in $PATH
4699do
4700  IFS=$as_save_IFS
4701  test -z "$as_dir" && as_dir=.
4702  for ac_exec_ext in '' $ac_executable_extensions; do
4703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704    ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
4705    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706    break 2
4707  fi
4708done
4709done
4710IFS=$as_save_IFS
4711
4712fi
4713fi
4714HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
4715if test -n "$HAVE_GCJ_IN_PATH"; then
4716  :
4717else
4718  :
4719fi
4720
4721
4722    # Extract the first word of "javac", so it can be a program name with args.
4723set dummy javac; ac_word=$2
4724:
4725if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then
4726  $as_echo_n "(cached) " >&6
4727else
4728  if test -n "$HAVE_JAVAC_IN_PATH"; then
4729  ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
4730else
4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734  IFS=$as_save_IFS
4735  test -z "$as_dir" && as_dir=.
4736  for ac_exec_ext in '' $ac_executable_extensions; do
4737  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738    ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
4739    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740    break 2
4741  fi
4742done
4743done
4744IFS=$as_save_IFS
4745
4746fi
4747fi
4748HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
4749if test -n "$HAVE_JAVAC_IN_PATH"; then
4750  :
4751else
4752  :
4753fi
4754
4755
4756    # Extract the first word of "jikes", so it can be a program name with args.
4757set dummy jikes; ac_word=$2
4758:
4759if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then
4760  $as_echo_n "(cached) " >&6
4761else
4762  if test -n "$HAVE_JIKES_IN_PATH"; then
4763  ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
4764else
4765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH
4767do
4768  IFS=$as_save_IFS
4769  test -z "$as_dir" && as_dir=.
4770  for ac_exec_ext in '' $ac_executable_extensions; do
4771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772    ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
4773    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774    break 2
4775  fi
4776done
4777done
4778IFS=$as_save_IFS
4779
4780fi
4781fi
4782HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
4783if test -n "$HAVE_JIKES_IN_PATH"; then
4784  :
4785else
4786  :
4787fi
4788
4789
4790                if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
4791            if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
4792                if { echo "$as_me:4792: gcj -C -d . conftestlib.java" >&5
4793             gcj -C -d . conftestlib.java >&5 2>&1
4794           }; then
4795                    if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
4796                                    rm -f conftest.class
4797            if { echo "$as_me:4797: gcj -C -d . conftest.java" >&5
4798                 gcj -C -d . conftest.java >&5 2>&1
4799               } \
4800               && test -f conftest.class \
4801               && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4802                            rm -f conftest.class
4803              rm -f conftestfail.class
4804              if { echo "$as_me:4804: gcj -C -fsource=$source_version -d . conftest.java" >&5
4805                   gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
4806                 } \
4807                 && test -f conftest.class \
4808                 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4809                 && { echo "$as_me:4809: gcj -C -d . conftestfail.java" >&5
4810                      gcj -C -d . conftestfail.java >&5 2>&1
4811                    } \
4812                 && test -f conftestfail.class \
4813                 && ! { echo "$as_me:4813: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
4814                        gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
4815                      }; then
4816                CONF_JAVAC="gcj -C -fsource=$source_version"
4817                HAVE_JAVAC_ENVVAR=1
4818                HAVE_JAVACOMP=1
4819              else
4820                CONF_JAVAC="gcj -C"
4821                HAVE_JAVAC_ENVVAR=1
4822                HAVE_JAVACOMP=1
4823              fi
4824            else
4825                            rm -f conftest.class
4826              rm -f conftestfail.class
4827              if { echo "$as_me:4827: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
4828                   gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
4829                 } \
4830                 && test -f conftest.class \
4831                 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4832                CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
4833                HAVE_JAVAC_ENVVAR=1
4834                HAVE_JAVACOMP=1
4835              fi
4836            fi
4837          else
4838                                                if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
4839              rm -f conftest.class
4840              if { echo "$as_me:4840: gcj -C -d . conftest.java" >&5
4841                   gcj -C -d . conftest.java >&5 2>&1
4842                 } \
4843                 && test -f conftest.class; then
4844                CONF_JAVAC="gcj -C"
4845                HAVE_GCJ_C=1
4846                HAVE_JAVACOMP=1
4847              fi
4848            else
4849              if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
4850                                                rm -f conftest.class
4851                if { echo "$as_me:4851: gcj -C -fno-assert -d . conftest.java" >&5
4852                     gcj -C -fno-assert -d . conftest.java >&5 2>&1
4853                   } \
4854                   && test -f conftest.class; then
4855                  CONF_JAVAC="gcj -C -fno-assert"
4856                  HAVE_GCJ_C=1
4857                  HAVE_JAVACOMP=1
4858                else
4859                  rm -f conftest.class
4860                  if { echo "$as_me:4860: gcj -C -d . conftest.java" >&5
4861                       gcj -C -d . conftest.java >&5 2>&1
4862                     } \
4863                     && test -f conftest.class; then
4864                    CONF_JAVAC="gcj -C"
4865                    HAVE_GCJ_C=1
4866                    HAVE_JAVACOMP=1
4867                  fi
4868                fi
4869              fi
4870            fi
4871          fi
4872        fi
4873      fi
4874    fi
4875    if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
4876            if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
4877         && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
4878                                rm -f conftest.class
4879        if { echo "$as_me:4879: javac -d . conftest.java" >&5
4880             javac -d . conftest.java >&5 2>&1
4881           } \
4882           && test -f conftest.class \
4883           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4884                    rm -f conftest.class
4885          rm -f conftestfail.class
4886          if { echo "$as_me:4886: javac -source $source_version -d . conftest.java" >&5
4887               javac -source "$source_version" -d . conftest.java >&5 2>&1
4888             } \
4889             && test -f conftest.class \
4890             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4891             && { echo "$as_me:4891: javac -d . conftestfail.java" >&5
4892                  javac -d . conftestfail.java >&5 2>&1
4893                } \
4894             && test -f conftestfail.class \
4895             && ! { echo "$as_me:4895: javac -source $source_version -d . conftestfail.java" >&5
4896                    javac -source "$source_version" -d . conftestfail.java >&5 2>&1
4897                  }; then
4898            CONF_JAVAC="javac -source $source_version"
4899            HAVE_JAVAC=1
4900            HAVE_JAVACOMP=1
4901          else
4902            CONF_JAVAC="javac"
4903            HAVE_JAVAC=1
4904            HAVE_JAVACOMP=1
4905          fi
4906        else
4907                              rm -f conftest.class
4908          if { echo "$as_me:4908: javac -target $target_version -d . conftest.java" >&5
4909               javac -target "$target_version" -d . conftest.java >&5 2>&1
4910             } \
4911             && test -f conftest.class \
4912             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4913                        rm -f conftest.class
4914            rm -f conftestfail.class
4915            if { echo "$as_me:4915: javac -target $target_version -source $source_version -d . conftest.java" >&5
4916                 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
4917               } \
4918               && test -f conftest.class \
4919               && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
4920               && { echo "$as_me:4920: javac -target $target_version -d . conftestfail.java" >&5
4921                    javac -target "$target_version" -d . conftestfail.java >&5 2>&1
4922                  } \
4923               && test -f conftestfail.class \
4924               && ! { echo "$as_me:4924: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
4925                      javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
4926                    }; then
4927              CONF_JAVAC="javac -target $target_version -source $source_version"
4928              HAVE_JAVAC=1
4929              HAVE_JAVACOMP=1
4930            else
4931              CONF_JAVAC="javac -target $target_version"
4932              HAVE_JAVAC=1
4933              HAVE_JAVACOMP=1
4934            fi
4935          else
4936                                                rm -f conftest.class
4937            if { echo "$as_me:4937: javac -target $target_version -source $source_version -d . conftest.java" >&5
4938                 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
4939               } \
4940               && test -f conftest.class \
4941               && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
4942              CONF_JAVAC="javac -target $target_version -source $source_version"
4943              HAVE_JAVAC=1
4944              HAVE_JAVACOMP=1
4945            fi
4946          fi
4947        fi
4948      fi
4949    fi
4950    if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
4951            if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
4952         && (
4953              # See if the existing CLASSPATH is sufficient to make jikes work.
4954              unset JAVA_HOME
4955              jikes conftestlib.java >&5 2>&1
4956              error=$?
4957              rm -f conftestlib.class
4958              exit $error
4959            ); then
4960                                if test "$source_version" = 1.3; then
4961          CONF_JAVAC="jikes"
4962          HAVE_JIKES=1
4963          HAVE_JAVACOMP=1
4964        fi
4965      fi
4966    fi
4967  fi
4968  rm -f conftest*.java conftest*.class
4969  if test -n "$HAVE_JAVACOMP"; then
4970    ac_result="$CONF_JAVAC"
4971  else
4972    ac_result="no"
4973  fi
4974  { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
4975$as_echo "$ac_result" >&6; }
4976
4977
4978
4979
4980
4981
4982
4983
4984# Extract the first word of "jar", so it can be a program name with args.
4985set dummy jar; ac_word=$2
4986{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4987$as_echo_n "checking for $ac_word... " >&6; }
4988if test "${ac_cv_prog_JAR+set}" = set; then
4989  $as_echo_n "(cached) " >&6
4990else
4991  if test -n "$JAR"; then
4992  ac_cv_prog_JAR="$JAR" # Let the user override the test.
4993else
4994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995for as_dir in $PATH
4996do
4997  IFS=$as_save_IFS
4998  test -z "$as_dir" && as_dir=.
4999  for ac_exec_ext in '' $ac_executable_extensions; do
5000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001    ac_cv_prog_JAR="jar"
5002    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003    break 2
5004  fi
5005done
5006done
5007IFS=$as_save_IFS
5008
5009fi
5010fi
5011JAR=$ac_cv_prog_JAR
5012if test -n "$JAR"; then
5013  { $as_echo "$as_me:$LINENO: result: $JAR" >&5
5014$as_echo "$JAR" >&6; }
5015else
5016  { $as_echo "$as_me:$LINENO: result: no" >&5
5017$as_echo "no" >&6; }
5018fi
5019
5020
5021if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
5022  BUILDJAVA=yes
5023else
5024  BUILDJAVA=no
5025fi
5026
5027
5028
5029  { $as_echo "$as_me:$LINENO: checking for preferred C# implementation" >&5
5030$as_echo_n "checking for preferred C# implementation... " >&6; }
5031  # Check whether --enable-csharp was given.
5032if test "${enable_csharp+set}" = set; then
5033  enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
5034else
5035  CSHARP_CHOICE=any
5036fi
5037
5038
5039  { $as_echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5
5040$as_echo "$CSHARP_CHOICE" >&6; }
5041  case "$CSHARP_CHOICE" in
5042    pnet)
5043
5044cat >>confdefs.h <<\_ACEOF
5045#define CSHARP_CHOICE_PNET 1
5046_ACEOF
5047
5048      ;;
5049    mono)
5050
5051cat >>confdefs.h <<\_ACEOF
5052#define CSHARP_CHOICE_MONO 1
5053_ACEOF
5054
5055      ;;
5056  esac
5057
5058
5059
5060  { $as_echo "$as_me:$LINENO: checking for C# compiler" >&5
5061$as_echo_n "checking for C# compiler... " >&6; }
5062  HAVE_CSHARPCOMP=1
5063        # Extract the first word of "cscc", so it can be a program name with args.
5064set dummy cscc; ac_word=$2
5065:
5066if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then
5067  $as_echo_n "(cached) " >&6
5068else
5069  if test -n "$HAVE_CSCC_IN_PATH"; then
5070  ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
5071else
5072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075  IFS=$as_save_IFS
5076  test -z "$as_dir" && as_dir=.
5077  for ac_exec_ext in '' $ac_executable_extensions; do
5078  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079    ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
5080    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081    break 2
5082  fi
5083done
5084done
5085IFS=$as_save_IFS
5086
5087fi
5088fi
5089HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
5090if test -n "$HAVE_CSCC_IN_PATH"; then
5091  :
5092else
5093  :
5094fi
5095
5096
5097  # Extract the first word of "mcs", so it can be a program name with args.
5098set dummy mcs; ac_word=$2
5099:
5100if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then
5101  $as_echo_n "(cached) " >&6
5102else
5103  if test -n "$HAVE_MCS_IN_PATH"; then
5104  ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111  for ac_exec_ext in '' $ac_executable_extensions; do
5112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113    ac_cv_prog_HAVE_MCS_IN_PATH="yes"
5114    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118done
5119IFS=$as_save_IFS
5120
5121fi
5122fi
5123HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
5124if test -n "$HAVE_MCS_IN_PATH"; then
5125  :
5126else
5127  :
5128fi
5129
5130
5131  # Extract the first word of "csc", so it can be a program name with args.
5132set dummy csc; ac_word=$2
5133:
5134if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then
5135  $as_echo_n "(cached) " >&6
5136else
5137  if test -n "$HAVE_CSC_IN_PATH"; then
5138  ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
5139else
5140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141for as_dir in $PATH
5142do
5143  IFS=$as_save_IFS
5144  test -z "$as_dir" && as_dir=.
5145  for ac_exec_ext in '' $ac_executable_extensions; do
5146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5147    ac_cv_prog_HAVE_CSC_IN_PATH="yes"
5148    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149    break 2
5150  fi
5151done
5152done
5153IFS=$as_save_IFS
5154
5155fi
5156fi
5157HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
5158if test -n "$HAVE_CSC_IN_PATH"; then
5159  :
5160else
5161  :
5162fi
5163
5164
5165        for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
5166    case "$impl" in
5167      pnet)
5168        if test -n "$HAVE_CSCC_IN_PATH" \
5169           && cscc --version >/dev/null 2>/dev/null \
5170           && (
5171             # See if pnetlib is well installed.
5172             echo 'class ConfTest { static void Main() { } }' > conftest.cs
5173             cscc -o conftest.exe conftest.cs 2>/dev/null
5174             error=$?
5175             rm -f conftest.cs conftest.exe
5176             exit $error
5177            ); then
5178          HAVE_CSCC=1
5179          ac_result="cscc"
5180          break
5181        fi
5182        ;;
5183      mono)
5184        if test -n "$HAVE_MCS_IN_PATH" \
5185           && mcs --version >/dev/null 2>/dev/null \
5186           && mcs --version 2>/dev/null | grep Mono >/dev/null; then
5187          HAVE_MCS=1
5188          ac_result="mcs"
5189          break
5190        fi
5191        ;;
5192      sscli)
5193        if test -n "$HAVE_CSC_IN_PATH" \
5194           && csc -help >/dev/null 2>/dev/null \
5195           && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
5196          HAVE_CSC=1
5197          ac_result="csc"
5198          break
5199        fi
5200        ;;
5201      no)
5202        HAVE_CSHARPCOMP=
5203        ac_result="no"
5204        break
5205        ;;
5206    esac
5207  done
5208  { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
5209$as_echo "$ac_result" >&6; }
5210
5211
5212
5213    if test -z "${CSHARPCOMPFLAGS+set}"; then
5214    CSHARPCOMPFLAGS="-O -g"
5215  fi
5216
5217
5218if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
5219  BUILDCSHARP=yes
5220else
5221  BUILDCSHARP=no
5222fi
5223
5224
5225# Make sure we can run config.sub.
5226$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5227  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5228$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5229   { (exit 1); exit 1; }; }
5230
5231{ $as_echo "$as_me:$LINENO: checking build system type" >&5
5232$as_echo_n "checking build system type... " >&6; }
5233if test "${ac_cv_build+set}" = set; then
5234  $as_echo_n "(cached) " >&6
5235else
5236  ac_build_alias=$build_alias
5237test "x$ac_build_alias" = x &&
5238  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5239test "x$ac_build_alias" = x &&
5240  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5241$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5242   { (exit 1); exit 1; }; }
5243ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5244  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5245$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5246   { (exit 1); exit 1; }; }
5247
5248fi
5249{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5250$as_echo "$ac_cv_build" >&6; }
5251case $ac_cv_build in
5252*-*-*) ;;
5253*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5254$as_echo "$as_me: error: invalid value of canonical build" >&2;}
5255   { (exit 1); exit 1; }; };;
5256esac
5257build=$ac_cv_build
5258ac_save_IFS=$IFS; IFS='-'
5259set x $ac_cv_build
5260shift
5261build_cpu=$1
5262build_vendor=$2
5263shift; shift
5264# Remember, the first character of IFS is used to create $*,
5265# except with old shells:
5266build_os=$*
5267IFS=$ac_save_IFS
5268case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5269
5270
5271{ $as_echo "$as_me:$LINENO: checking host system type" >&5
5272$as_echo_n "checking host system type... " >&6; }
5273if test "${ac_cv_host+set}" = set; then
5274  $as_echo_n "(cached) " >&6
5275else
5276  if test "x$host_alias" = x; then
5277  ac_cv_host=$ac_cv_build
5278else
5279  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5280    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5281$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5282   { (exit 1); exit 1; }; }
5283fi
5284
5285fi
5286{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5287$as_echo "$ac_cv_host" >&6; }
5288case $ac_cv_host in
5289*-*-*) ;;
5290*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5291$as_echo "$as_me: error: invalid value of canonical host" >&2;}
5292   { (exit 1); exit 1; }; };;
5293esac
5294host=$ac_cv_host
5295ac_save_IFS=$IFS; IFS='-'
5296set x $ac_cv_host
5297shift
5298host_cpu=$1
5299host_vendor=$2
5300shift; shift
5301# Remember, the first character of IFS is used to create $*,
5302# except with old shells:
5303host_os=$*
5304IFS=$ac_save_IFS
5305case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5306
5307
5308
5309
5310
5311
5312if test -n "$ac_tool_prefix"; then
5313  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5314set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5316$as_echo_n "checking for $ac_word... " >&6; }
5317if test "${ac_cv_prog_RANLIB+set}" = set; then
5318  $as_echo_n "(cached) " >&6
5319else
5320  if test -n "$RANLIB"; then
5321  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5322else
5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326  IFS=$as_save_IFS
5327  test -z "$as_dir" && as_dir=.
5328  for ac_exec_ext in '' $ac_executable_extensions; do
5329  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5331    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332    break 2
5333  fi
5334done
5335done
5336IFS=$as_save_IFS
5337
5338fi
5339fi
5340RANLIB=$ac_cv_prog_RANLIB
5341if test -n "$RANLIB"; then
5342  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5343$as_echo "$RANLIB" >&6; }
5344else
5345  { $as_echo "$as_me:$LINENO: result: no" >&5
5346$as_echo "no" >&6; }
5347fi
5348
5349
5350fi
5351if test -z "$ac_cv_prog_RANLIB"; then
5352  ac_ct_RANLIB=$RANLIB
5353  # Extract the first word of "ranlib", so it can be a program name with args.
5354set dummy ranlib; ac_word=$2
5355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5356$as_echo_n "checking for $ac_word... " >&6; }
5357if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5358  $as_echo_n "(cached) " >&6
5359else
5360  if test -n "$ac_ct_RANLIB"; then
5361  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5362else
5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366  IFS=$as_save_IFS
5367  test -z "$as_dir" && as_dir=.
5368  for ac_exec_ext in '' $ac_executable_extensions; do
5369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370    ac_cv_prog_ac_ct_RANLIB="ranlib"
5371    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372    break 2
5373  fi
5374done
5375done
5376IFS=$as_save_IFS
5377
5378fi
5379fi
5380ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5381if test -n "$ac_ct_RANLIB"; then
5382  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5383$as_echo "$ac_ct_RANLIB" >&6; }
5384else
5385  { $as_echo "$as_me:$LINENO: result: no" >&5
5386$as_echo "no" >&6; }
5387fi
5388
5389  if test "x$ac_ct_RANLIB" = x; then
5390    RANLIB=":"
5391  else
5392    case $cross_compiling:$ac_tool_warned in
5393yes:)
5394{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396ac_tool_warned=yes ;;
5397esac
5398    RANLIB=$ac_ct_RANLIB
5399  fi
5400else
5401  RANLIB="$ac_cv_prog_RANLIB"
5402fi
5403
5404if test "x$CC" != xcc; then
5405  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5406$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5407else
5408  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5409$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5410fi
5411set dummy $CC; ac_cc=`$as_echo "$2" |
5412		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5413if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5414  $as_echo_n "(cached) " >&6
5415else
5416  cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h.  */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h.  */
5422
5423int
5424main ()
5425{
5426
5427  ;
5428  return 0;
5429}
5430_ACEOF
5431# Make sure it works both with $CC and with simple cc.
5432# We do the test twice because some compilers refuse to overwrite an
5433# existing .o file with -o, though they will create one.
5434ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5435rm -f conftest2.*
5436if { (case "(($ac_try" in
5437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5438  *) ac_try_echo=$ac_try;;
5439esac
5440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5441$as_echo "$ac_try_echo") >&5
5442  (eval "$ac_try") 2>&5
5443  ac_status=$?
5444  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445  (exit $ac_status); } &&
5446   test -f conftest2.$ac_objext && { (case "(($ac_try" in
5447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448  *) ac_try_echo=$ac_try;;
5449esac
5450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5451$as_echo "$ac_try_echo") >&5
5452  (eval "$ac_try") 2>&5
5453  ac_status=$?
5454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455  (exit $ac_status); };
5456then
5457  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5458  if test "x$CC" != xcc; then
5459    # Test first that cc exists at all.
5460    if { ac_try='cc -c conftest.$ac_ext >&5'
5461  { (case "(($ac_try" in
5462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463  *) ac_try_echo=$ac_try;;
5464esac
5465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5466$as_echo "$ac_try_echo") >&5
5467  (eval "$ac_try") 2>&5
5468  ac_status=$?
5469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470  (exit $ac_status); }; }; then
5471      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5472      rm -f conftest2.*
5473      if { (case "(($ac_try" in
5474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475  *) ac_try_echo=$ac_try;;
5476esac
5477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5478$as_echo "$ac_try_echo") >&5
5479  (eval "$ac_try") 2>&5
5480  ac_status=$?
5481  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482  (exit $ac_status); } &&
5483	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5485  *) ac_try_echo=$ac_try;;
5486esac
5487eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5488$as_echo "$ac_try_echo") >&5
5489  (eval "$ac_try") 2>&5
5490  ac_status=$?
5491  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492  (exit $ac_status); };
5493      then
5494	# cc works too.
5495	:
5496      else
5497	# cc exists but doesn't like -o.
5498	eval ac_cv_prog_cc_${ac_cc}_c_o=no
5499      fi
5500    fi
5501  fi
5502else
5503  eval ac_cv_prog_cc_${ac_cc}_c_o=no
5504fi
5505rm -f core conftest*
5506
5507fi
5508if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5509  { $as_echo "$as_me:$LINENO: result: yes" >&5
5510$as_echo "yes" >&6; }
5511else
5512  { $as_echo "$as_me:$LINENO: result: no" >&5
5513$as_echo "no" >&6; }
5514
5515cat >>confdefs.h <<\_ACEOF
5516#define NO_MINUS_C_MINUS_O 1
5517_ACEOF
5518
5519fi
5520
5521# FIXME: we rely on the cache variable name because
5522# there is no other way.
5523set dummy $CC
5524ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5525if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5526   # Losing compiler, so override with the script.
5527   # FIXME: It is wrong to rewrite CC.
5528   # But if we don't then we get into trouble of one sort or another.
5529   # A longer-term fix would be to have automake use am__CC in this case,
5530   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5531   CC="$am_aux_dir/compile $CC"
5532fi
5533
5534
5535{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5536$as_echo_n "checking for ANSI C header files... " >&6; }
5537if test "${ac_cv_header_stdc+set}" = set; then
5538  $as_echo_n "(cached) " >&6
5539else
5540  cat >conftest.$ac_ext <<_ACEOF
5541/* confdefs.h.  */
5542_ACEOF
5543cat confdefs.h >>conftest.$ac_ext
5544cat >>conftest.$ac_ext <<_ACEOF
5545/* end confdefs.h.  */
5546#include <stdlib.h>
5547#include <stdarg.h>
5548#include <string.h>
5549#include <float.h>
5550
5551int
5552main ()
5553{
5554
5555  ;
5556  return 0;
5557}
5558_ACEOF
5559rm -f conftest.$ac_objext
5560if { (ac_try="$ac_compile"
5561case "(($ac_try" in
5562  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563  *) ac_try_echo=$ac_try;;
5564esac
5565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5566$as_echo "$ac_try_echo") >&5
5567  (eval "$ac_compile") 2>conftest.er1
5568  ac_status=$?
5569  grep -v '^ *+' conftest.er1 >conftest.err
5570  rm -f conftest.er1
5571  cat conftest.err >&5
5572  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573  (exit $ac_status); } && {
5574	 test -z "$ac_c_werror_flag" ||
5575	 test ! -s conftest.err
5576       } && test -s conftest.$ac_objext; then
5577  ac_cv_header_stdc=yes
5578else
5579  $as_echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582	ac_cv_header_stdc=no
5583fi
5584
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586
5587if test $ac_cv_header_stdc = yes; then
5588  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5589  cat >conftest.$ac_ext <<_ACEOF
5590/* confdefs.h.  */
5591_ACEOF
5592cat confdefs.h >>conftest.$ac_ext
5593cat >>conftest.$ac_ext <<_ACEOF
5594/* end confdefs.h.  */
5595#include <string.h>
5596
5597_ACEOF
5598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599  $EGREP "memchr" >/dev/null 2>&1; then
5600  :
5601else
5602  ac_cv_header_stdc=no
5603fi
5604rm -f conftest*
5605
5606fi
5607
5608if test $ac_cv_header_stdc = yes; then
5609  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5610  cat >conftest.$ac_ext <<_ACEOF
5611/* confdefs.h.  */
5612_ACEOF
5613cat confdefs.h >>conftest.$ac_ext
5614cat >>conftest.$ac_ext <<_ACEOF
5615/* end confdefs.h.  */
5616#include <stdlib.h>
5617
5618_ACEOF
5619if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5620  $EGREP "free" >/dev/null 2>&1; then
5621  :
5622else
5623  ac_cv_header_stdc=no
5624fi
5625rm -f conftest*
5626
5627fi
5628
5629if test $ac_cv_header_stdc = yes; then
5630  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5631  if test "$cross_compiling" = yes; then
5632  :
5633else
5634  cat >conftest.$ac_ext <<_ACEOF
5635/* confdefs.h.  */
5636_ACEOF
5637cat confdefs.h >>conftest.$ac_ext
5638cat >>conftest.$ac_ext <<_ACEOF
5639/* end confdefs.h.  */
5640#include <ctype.h>
5641#include <stdlib.h>
5642#if ((' ' & 0x0FF) == 0x020)
5643# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5644# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5645#else
5646# define ISLOWER(c) \
5647		   (('a' <= (c) && (c) <= 'i') \
5648		     || ('j' <= (c) && (c) <= 'r') \
5649		     || ('s' <= (c) && (c) <= 'z'))
5650# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5651#endif
5652
5653#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5654int
5655main ()
5656{
5657  int i;
5658  for (i = 0; i < 256; i++)
5659    if (XOR (islower (i), ISLOWER (i))
5660	|| toupper (i) != TOUPPER (i))
5661      return 2;
5662  return 0;
5663}
5664_ACEOF
5665rm -f conftest$ac_exeext
5666if { (ac_try="$ac_link"
5667case "(($ac_try" in
5668  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669  *) ac_try_echo=$ac_try;;
5670esac
5671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5672$as_echo "$ac_try_echo") >&5
5673  (eval "$ac_link") 2>&5
5674  ac_status=$?
5675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5677  { (case "(($ac_try" in
5678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679  *) ac_try_echo=$ac_try;;
5680esac
5681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5682$as_echo "$ac_try_echo") >&5
5683  (eval "$ac_try") 2>&5
5684  ac_status=$?
5685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686  (exit $ac_status); }; }; then
5687  :
5688else
5689  $as_echo "$as_me: program exited with status $ac_status" >&5
5690$as_echo "$as_me: failed program was:" >&5
5691sed 's/^/| /' conftest.$ac_ext >&5
5692
5693( exit $ac_status )
5694ac_cv_header_stdc=no
5695fi
5696rm -rf conftest.dSYM
5697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5698fi
5699
5700
5701fi
5702fi
5703{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5704$as_echo "$ac_cv_header_stdc" >&6; }
5705if test $ac_cv_header_stdc = yes; then
5706
5707cat >>confdefs.h <<\_ACEOF
5708#define STDC_HEADERS 1
5709_ACEOF
5710
5711fi
5712
5713# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5724		  inttypes.h stdint.h unistd.h
5725do
5726as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5727{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5728$as_echo_n "checking for $ac_header... " >&6; }
5729if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5730  $as_echo_n "(cached) " >&6
5731else
5732  cat >conftest.$ac_ext <<_ACEOF
5733/* confdefs.h.  */
5734_ACEOF
5735cat confdefs.h >>conftest.$ac_ext
5736cat >>conftest.$ac_ext <<_ACEOF
5737/* end confdefs.h.  */
5738$ac_includes_default
5739
5740#include <$ac_header>
5741_ACEOF
5742rm -f conftest.$ac_objext
5743if { (ac_try="$ac_compile"
5744case "(($ac_try" in
5745  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5746  *) ac_try_echo=$ac_try;;
5747esac
5748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5749$as_echo "$ac_try_echo") >&5
5750  (eval "$ac_compile") 2>conftest.er1
5751  ac_status=$?
5752  grep -v '^ *+' conftest.er1 >conftest.err
5753  rm -f conftest.er1
5754  cat conftest.err >&5
5755  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756  (exit $ac_status); } && {
5757	 test -z "$ac_c_werror_flag" ||
5758	 test ! -s conftest.err
5759       } && test -s conftest.$ac_objext; then
5760  eval "$as_ac_Header=yes"
5761else
5762  $as_echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765	eval "$as_ac_Header=no"
5766fi
5767
5768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5769fi
5770ac_res=`eval 'as_val=${'$as_ac_Header'}
5771		 $as_echo "$as_val"'`
5772	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5773$as_echo "$ac_res" >&6; }
5774as_val=`eval 'as_val=${'$as_ac_Header'}
5775		 $as_echo "$as_val"'`
5776   if test "x$as_val" = x""yes; then
5777  cat >>confdefs.h <<_ACEOF
5778#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5779_ACEOF
5780
5781fi
5782
5783done
5784
5785
5786
5787  if test "${ac_cv_header_minix_config_h+set}" = set; then
5788  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5789$as_echo_n "checking for minix/config.h... " >&6; }
5790if test "${ac_cv_header_minix_config_h+set}" = set; then
5791  $as_echo_n "(cached) " >&6
5792fi
5793{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5794$as_echo "$ac_cv_header_minix_config_h" >&6; }
5795else
5796  # Is the header compilable?
5797{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5798$as_echo_n "checking minix/config.h usability... " >&6; }
5799cat >conftest.$ac_ext <<_ACEOF
5800/* confdefs.h.  */
5801_ACEOF
5802cat confdefs.h >>conftest.$ac_ext
5803cat >>conftest.$ac_ext <<_ACEOF
5804/* end confdefs.h.  */
5805$ac_includes_default
5806#include <minix/config.h>
5807_ACEOF
5808rm -f conftest.$ac_objext
5809if { (ac_try="$ac_compile"
5810case "(($ac_try" in
5811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812  *) ac_try_echo=$ac_try;;
5813esac
5814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5815$as_echo "$ac_try_echo") >&5
5816  (eval "$ac_compile") 2>conftest.er1
5817  ac_status=$?
5818  grep -v '^ *+' conftest.er1 >conftest.err
5819  rm -f conftest.er1
5820  cat conftest.err >&5
5821  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822  (exit $ac_status); } && {
5823	 test -z "$ac_c_werror_flag" ||
5824	 test ! -s conftest.err
5825       } && test -s conftest.$ac_objext; then
5826  ac_header_compiler=yes
5827else
5828  $as_echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831	ac_header_compiler=no
5832fi
5833
5834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5836$as_echo "$ac_header_compiler" >&6; }
5837
5838# Is the header present?
5839{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5840$as_echo_n "checking minix/config.h presence... " >&6; }
5841cat >conftest.$ac_ext <<_ACEOF
5842/* confdefs.h.  */
5843_ACEOF
5844cat confdefs.h >>conftest.$ac_ext
5845cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h.  */
5847#include <minix/config.h>
5848_ACEOF
5849if { (ac_try="$ac_cpp conftest.$ac_ext"
5850case "(($ac_try" in
5851  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852  *) ac_try_echo=$ac_try;;
5853esac
5854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5855$as_echo "$ac_try_echo") >&5
5856  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5857  ac_status=$?
5858  grep -v '^ *+' conftest.er1 >conftest.err
5859  rm -f conftest.er1
5860  cat conftest.err >&5
5861  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862  (exit $ac_status); } >/dev/null && {
5863	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5864	 test ! -s conftest.err
5865       }; then
5866  ac_header_preproc=yes
5867else
5868  $as_echo "$as_me: failed program was:" >&5
5869sed 's/^/| /' conftest.$ac_ext >&5
5870
5871  ac_header_preproc=no
5872fi
5873
5874rm -f conftest.err conftest.$ac_ext
5875{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5876$as_echo "$ac_header_preproc" >&6; }
5877
5878# So?  What about this header?
5879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5880  yes:no: )
5881    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5882$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5883    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5884$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5885    ac_header_preproc=yes
5886    ;;
5887  no:yes:* )
5888    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5889$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5890    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5891$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5892    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5893$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5894    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5895$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5896    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5897$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5898    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5899$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5900
5901    ;;
5902esac
5903{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5904$as_echo_n "checking for minix/config.h... " >&6; }
5905if test "${ac_cv_header_minix_config_h+set}" = set; then
5906  $as_echo_n "(cached) " >&6
5907else
5908  ac_cv_header_minix_config_h=$ac_header_preproc
5909fi
5910{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5911$as_echo "$ac_cv_header_minix_config_h" >&6; }
5912
5913fi
5914if test "x$ac_cv_header_minix_config_h" = x""yes; then
5915  MINIX=yes
5916else
5917  MINIX=
5918fi
5919
5920
5921  if test "$MINIX" = yes; then
5922
5923cat >>confdefs.h <<\_ACEOF
5924#define _POSIX_SOURCE 1
5925_ACEOF
5926
5927
5928cat >>confdefs.h <<\_ACEOF
5929#define _POSIX_1_SOURCE 2
5930_ACEOF
5931
5932
5933cat >>confdefs.h <<\_ACEOF
5934#define _MINIX 1
5935_ACEOF
5936
5937  fi
5938
5939
5940
5941  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5942$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5943if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5944  $as_echo_n "(cached) " >&6
5945else
5946  cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h.  */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h.  */
5952
5953#	  define __EXTENSIONS__ 1
5954	  $ac_includes_default
5955int
5956main ()
5957{
5958
5959  ;
5960  return 0;
5961}
5962_ACEOF
5963rm -f conftest.$ac_objext
5964if { (ac_try="$ac_compile"
5965case "(($ac_try" in
5966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967  *) ac_try_echo=$ac_try;;
5968esac
5969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5970$as_echo "$ac_try_echo") >&5
5971  (eval "$ac_compile") 2>conftest.er1
5972  ac_status=$?
5973  grep -v '^ *+' conftest.er1 >conftest.err
5974  rm -f conftest.er1
5975  cat conftest.err >&5
5976  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977  (exit $ac_status); } && {
5978	 test -z "$ac_c_werror_flag" ||
5979	 test ! -s conftest.err
5980       } && test -s conftest.$ac_objext; then
5981  ac_cv_safe_to_define___extensions__=yes
5982else
5983  $as_echo "$as_me: failed program was:" >&5
5984sed 's/^/| /' conftest.$ac_ext >&5
5985
5986	ac_cv_safe_to_define___extensions__=no
5987fi
5988
5989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990fi
5991{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5992$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5993  test $ac_cv_safe_to_define___extensions__ = yes &&
5994    cat >>confdefs.h <<\_ACEOF
5995#define __EXTENSIONS__ 1
5996_ACEOF
5997
5998  cat >>confdefs.h <<\_ACEOF
5999#define _ALL_SOURCE 1
6000_ACEOF
6001
6002  cat >>confdefs.h <<\_ACEOF
6003#define _GNU_SOURCE 1
6004_ACEOF
6005
6006  cat >>confdefs.h <<\_ACEOF
6007#define _POSIX_PTHREAD_SEMANTICS 1
6008_ACEOF
6009
6010  cat >>confdefs.h <<\_ACEOF
6011#define _TANDEM_SOURCE 1
6012_ACEOF
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026  case "$host_os" in
6027    mingw* | cygwin*)
6028      { $as_echo "$as_me:$LINENO: checking for auto-import of symbols" >&5
6029$as_echo_n "checking for auto-import of symbols... " >&6; }
6030      if test "${gl_cv_ld_autoimport+set}" = set; then
6031  $as_echo_n "(cached) " >&6
6032else
6033
6034        gl_save_LDFLAGS="$LDFLAGS"
6035        LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
6036        cat >conftest.$ac_ext <<_ACEOF
6037/* confdefs.h.  */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h.  */
6042
6043int
6044main ()
6045{
6046
6047  ;
6048  return 0;
6049}
6050_ACEOF
6051rm -f conftest.$ac_objext conftest$ac_exeext
6052if { (ac_try="$ac_link"
6053case "(($ac_try" in
6054  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6055  *) ac_try_echo=$ac_try;;
6056esac
6057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6058$as_echo "$ac_try_echo") >&5
6059  (eval "$ac_link") 2>conftest.er1
6060  ac_status=$?
6061  grep -v '^ *+' conftest.er1 >conftest.err
6062  rm -f conftest.er1
6063  cat conftest.err >&5
6064  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065  (exit $ac_status); } && {
6066	 test -z "$ac_c_werror_flag" ||
6067	 test ! -s conftest.err
6068       } && test -s conftest$ac_exeext && {
6069	 test "$cross_compiling" = yes ||
6070	 $as_test_x conftest$ac_exeext
6071       }; then
6072  gl_cv_ld_autoimport=yes
6073else
6074  $as_echo "$as_me: failed program was:" >&5
6075sed 's/^/| /' conftest.$ac_ext >&5
6076
6077	gl_cv_ld_autoimport=no
6078fi
6079
6080rm -rf conftest.dSYM
6081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6082      conftest$ac_exeext conftest.$ac_ext
6083        LDFLAGS="$gl_save_LDFLAGS"
6084fi
6085
6086      { $as_echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5
6087$as_echo "$gl_cv_ld_autoimport" >&6; }
6088      if test $gl_cv_ld_autoimport = yes; then
6089        LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
6090      fi
6091      ;;
6092  esac
6093
6094
6095
6096# Check whether --enable-shared was given.
6097if test "${enable_shared+set}" = set; then
6098  enableval=$enable_shared; p=${PACKAGE-default}
6099    case $enableval in
6100    yes) enable_shared=yes ;;
6101    no) enable_shared=no ;;
6102    *)
6103      enable_shared=no
6104      # Look at the argument we got.  We use all the common list separators.
6105      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6106      for pkg in $enableval; do
6107	IFS="$lt_save_ifs"
6108	if test "X$pkg" = "X$p"; then
6109	  enable_shared=yes
6110	fi
6111      done
6112      IFS="$lt_save_ifs"
6113      ;;
6114    esac
6115else
6116  enable_shared=yes
6117fi
6118
6119
6120# Check whether --enable-static was given.
6121if test "${enable_static+set}" = set; then
6122  enableval=$enable_static; p=${PACKAGE-default}
6123    case $enableval in
6124    yes) enable_static=yes ;;
6125    no) enable_static=no ;;
6126    *)
6127     enable_static=no
6128      # Look at the argument we got.  We use all the common list separators.
6129      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6130      for pkg in $enableval; do
6131	IFS="$lt_save_ifs"
6132	if test "X$pkg" = "X$p"; then
6133	  enable_static=yes
6134	fi
6135      done
6136      IFS="$lt_save_ifs"
6137      ;;
6138    esac
6139else
6140  enable_static=yes
6141fi
6142
6143
6144# Check whether --enable-fast-install was given.
6145if test "${enable_fast_install+set}" = set; then
6146  enableval=$enable_fast_install; p=${PACKAGE-default}
6147    case $enableval in
6148    yes) enable_fast_install=yes ;;
6149    no) enable_fast_install=no ;;
6150    *)
6151      enable_fast_install=no
6152      # Look at the argument we got.  We use all the common list separators.
6153      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6154      for pkg in $enableval; do
6155	IFS="$lt_save_ifs"
6156	if test "X$pkg" = "X$p"; then
6157	  enable_fast_install=yes
6158	fi
6159      done
6160      IFS="$lt_save_ifs"
6161      ;;
6162    esac
6163else
6164  enable_fast_install=yes
6165fi
6166
6167
6168{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6169$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6170if test "${lt_cv_path_SED+set}" = set; then
6171  $as_echo_n "(cached) " >&6
6172else
6173  # Loop through the user's path and test for sed and gsed.
6174# Then use that list of sed's as ones to test for truncation.
6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH
6177do
6178  IFS=$as_save_IFS
6179  test -z "$as_dir" && as_dir=.
6180  for lt_ac_prog in sed gsed; do
6181    for ac_exec_ext in '' $ac_executable_extensions; do
6182      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
6183        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6184      fi
6185    done
6186  done
6187done
6188IFS=$as_save_IFS
6189lt_ac_max=0
6190lt_ac_count=0
6191# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6192# along with /bin/sed that truncates output.
6193for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6194  test ! -f $lt_ac_sed && continue
6195  cat /dev/null > conftest.in
6196  lt_ac_count=0
6197  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6198  # Check for GNU sed and select it if it is found.
6199  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6200    lt_cv_path_SED=$lt_ac_sed
6201    break
6202  fi
6203  while true; do
6204    cat conftest.in conftest.in >conftest.tmp
6205    mv conftest.tmp conftest.in
6206    cp conftest.in conftest.nl
6207    echo >>conftest.nl
6208    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6209    cmp -s conftest.out conftest.nl || break
6210    # 10000 chars as input seems more than enough
6211    test $lt_ac_count -gt 10 && break
6212    lt_ac_count=`expr $lt_ac_count + 1`
6213    if test $lt_ac_count -gt $lt_ac_max; then
6214      lt_ac_max=$lt_ac_count
6215      lt_cv_path_SED=$lt_ac_sed
6216    fi
6217  done
6218done
6219
6220fi
6221
6222SED=$lt_cv_path_SED
6223
6224{ $as_echo "$as_me:$LINENO: result: $SED" >&5
6225$as_echo "$SED" >&6; }
6226
6227
6228# Check whether --with-gnu-ld was given.
6229if test "${with_gnu_ld+set}" = set; then
6230  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6231else
6232  with_gnu_ld=no
6233fi
6234
6235ac_prog=ld
6236if test "$GCC" = yes; then
6237  # Check if gcc -print-prog-name=ld gives a path.
6238  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6239$as_echo_n "checking for ld used by $CC... " >&6; }
6240  case $host in
6241  *-*-mingw*)
6242    # gcc leaves a trailing carriage return which upsets mingw
6243    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6244  *)
6245    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6246  esac
6247  case $ac_prog in
6248    # Accept absolute paths.
6249    [\\/]* | ?:[\\/]*)
6250      re_direlt='/[^/][^/]*/\.\./'
6251      # Canonicalize the pathname of ld
6252      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6253      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6254	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6255      done
6256      test -z "$LD" && LD="$ac_prog"
6257      ;;
6258  "")
6259    # If it fails, then pretend we aren't using GCC.
6260    ac_prog=ld
6261    ;;
6262  *)
6263    # If it is relative, then search for the first ld in PATH.
6264    with_gnu_ld=unknown
6265    ;;
6266  esac
6267elif test "$with_gnu_ld" = yes; then
6268  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6269$as_echo_n "checking for GNU ld... " >&6; }
6270else
6271  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6272$as_echo_n "checking for non-GNU ld... " >&6; }
6273fi
6274if test "${lt_cv_path_LD+set}" = set; then
6275  $as_echo_n "(cached) " >&6
6276else
6277  if test -z "$LD"; then
6278  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6279  for ac_dir in $PATH; do
6280    IFS="$lt_save_ifs"
6281    test -z "$ac_dir" && ac_dir=.
6282    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6283      lt_cv_path_LD="$ac_dir/$ac_prog"
6284      # Check to see if the program is GNU ld.  I'd rather use --version,
6285      # but apparently some variants of GNU ld only accept -v.
6286      # Break only if it was the GNU/non-GNU ld that we prefer.
6287      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6288      *GNU* | *'with BFD'*)
6289	test "$with_gnu_ld" != no && break
6290	;;
6291      *)
6292	test "$with_gnu_ld" != yes && break
6293	;;
6294      esac
6295    fi
6296  done
6297  IFS="$lt_save_ifs"
6298else
6299  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6300fi
6301fi
6302
6303LD="$lt_cv_path_LD"
6304if test -n "$LD"; then
6305  { $as_echo "$as_me:$LINENO: result: $LD" >&5
6306$as_echo "$LD" >&6; }
6307else
6308  { $as_echo "$as_me:$LINENO: result: no" >&5
6309$as_echo "no" >&6; }
6310fi
6311test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6312$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6313   { (exit 1); exit 1; }; }
6314{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6315$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6316if test "${lt_cv_prog_gnu_ld+set}" = set; then
6317  $as_echo_n "(cached) " >&6
6318else
6319  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6320case `$LD -v 2>&1 </dev/null` in
6321*GNU* | *'with BFD'*)
6322  lt_cv_prog_gnu_ld=yes
6323  ;;
6324*)
6325  lt_cv_prog_gnu_ld=no
6326  ;;
6327esac
6328fi
6329{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6330$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6331with_gnu_ld=$lt_cv_prog_gnu_ld
6332
6333
6334{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6335$as_echo_n "checking for $LD option to reload object files... " >&6; }
6336if test "${lt_cv_ld_reload_flag+set}" = set; then
6337  $as_echo_n "(cached) " >&6
6338else
6339  lt_cv_ld_reload_flag='-r'
6340fi
6341{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6342$as_echo "$lt_cv_ld_reload_flag" >&6; }
6343reload_flag=$lt_cv_ld_reload_flag
6344case $reload_flag in
6345"" | " "*) ;;
6346*) reload_flag=" $reload_flag" ;;
6347esac
6348reload_cmds='$LD$reload_flag -o $output$reload_objs'
6349case $host_os in
6350  darwin*)
6351    if test "$GCC" = yes; then
6352      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6353    else
6354      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6355    fi
6356    ;;
6357esac
6358
6359{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6360$as_echo_n "checking for BSD-compatible nm... " >&6; }
6361if test "${lt_cv_path_NM+set}" = set; then
6362  $as_echo_n "(cached) " >&6
6363else
6364  if test -n "$NM"; then
6365  # Let the user override the test.
6366  lt_cv_path_NM="$NM"
6367else
6368  lt_nm_to_check="${ac_tool_prefix}nm"
6369  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6370    lt_nm_to_check="$lt_nm_to_check nm"
6371  fi
6372  for lt_tmp_nm in $lt_nm_to_check; do
6373    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6374    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6375      IFS="$lt_save_ifs"
6376      test -z "$ac_dir" && ac_dir=.
6377      tmp_nm="$ac_dir/$lt_tmp_nm"
6378      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6379	# Check to see if the nm accepts a BSD-compat flag.
6380	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6381	#   nm: unknown option "B" ignored
6382	# Tru64's nm complains that /dev/null is an invalid object file
6383	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6384	*/dev/null* | *'Invalid file or object type'*)
6385	  lt_cv_path_NM="$tmp_nm -B"
6386	  break
6387	  ;;
6388	*)
6389	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6390	  */dev/null*)
6391	    lt_cv_path_NM="$tmp_nm -p"
6392	    break
6393	    ;;
6394	  *)
6395	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6396	    continue # so that we can try to find one that supports BSD flags
6397	    ;;
6398	  esac
6399	  ;;
6400	esac
6401      fi
6402    done
6403    IFS="$lt_save_ifs"
6404  done
6405  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6406fi
6407fi
6408{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6409$as_echo "$lt_cv_path_NM" >&6; }
6410NM="$lt_cv_path_NM"
6411
6412{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6413$as_echo_n "checking whether ln -s works... " >&6; }
6414LN_S=$as_ln_s
6415if test "$LN_S" = "ln -s"; then
6416  { $as_echo "$as_me:$LINENO: result: yes" >&5
6417$as_echo "yes" >&6; }
6418else
6419  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6420$as_echo "no, using $LN_S" >&6; }
6421fi
6422
6423{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6424$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6425if test "${lt_cv_deplibs_check_method+set}" = set; then
6426  $as_echo_n "(cached) " >&6
6427else
6428  lt_cv_file_magic_cmd='$MAGIC_CMD'
6429lt_cv_file_magic_test_file=
6430lt_cv_deplibs_check_method='unknown'
6431# Need to set the preceding variable on all platforms that support
6432# interlibrary dependencies.
6433# 'none' -- dependencies not supported.
6434# `unknown' -- same as none, but documents that we really don't know.
6435# 'pass_all' -- all dependencies passed with no checks.
6436# 'test_compile' -- check by making test program.
6437# 'file_magic [[regex]]' -- check by looking for files in library path
6438# which responds to the $file_magic_cmd with a given extended regex.
6439# If you have `file' or equivalent on your system and you're not sure
6440# whether `pass_all' will *always* work, you probably want this one.
6441
6442case $host_os in
6443aix4* | aix5*)
6444  lt_cv_deplibs_check_method=pass_all
6445  ;;
6446
6447beos*)
6448  lt_cv_deplibs_check_method=pass_all
6449  ;;
6450
6451bsdi[45]*)
6452  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6453  lt_cv_file_magic_cmd='/usr/bin/file -L'
6454  lt_cv_file_magic_test_file=/shlib/libc.so
6455  ;;
6456
6457cygwin*)
6458  # func_win32_libid is a shell function defined in ltmain.sh
6459  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6460  lt_cv_file_magic_cmd='func_win32_libid'
6461  ;;
6462
6463mingw* | pw32*)
6464  # Base MSYS/MinGW do not provide the 'file' command needed by
6465  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6466  # unless we find 'file', for example because we are cross-compiling.
6467  if ( file / ) >/dev/null 2>&1; then
6468    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6469    lt_cv_file_magic_cmd='func_win32_libid'
6470  else
6471    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6472    lt_cv_file_magic_cmd='$OBJDUMP -f'
6473  fi
6474  ;;
6475
6476darwin* | rhapsody*)
6477  lt_cv_deplibs_check_method=pass_all
6478  ;;
6479
6480freebsd* | dragonfly*)
6481  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6482    case $host_cpu in
6483    i*86 )
6484      # Not sure whether the presence of OpenBSD here was a mistake.
6485      # Let's accept both of them until this is cleared up.
6486      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6487      lt_cv_file_magic_cmd=/usr/bin/file
6488      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6489      ;;
6490    esac
6491  else
6492    lt_cv_deplibs_check_method=pass_all
6493  fi
6494  ;;
6495
6496gnu*)
6497  lt_cv_deplibs_check_method=pass_all
6498  ;;
6499
6500hpux10.20* | hpux11*)
6501  lt_cv_file_magic_cmd=/usr/bin/file
6502  case $host_cpu in
6503  ia64*)
6504    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6505    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6506    ;;
6507  hppa*64*)
6508    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]'
6509    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6510    ;;
6511  *)
6512    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6513    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6514    ;;
6515  esac
6516  ;;
6517
6518interix[3-9]*)
6519  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6520  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6521  ;;
6522
6523irix5* | irix6* | nonstopux*)
6524  case $LD in
6525  *-32|*"-32 ") libmagic=32-bit;;
6526  *-n32|*"-n32 ") libmagic=N32;;
6527  *-64|*"-64 ") libmagic=64-bit;;
6528  *) libmagic=never-match;;
6529  esac
6530  lt_cv_deplibs_check_method=pass_all
6531  ;;
6532
6533# This must be Linux ELF.
6534linux* | k*bsd*-gnu)
6535  lt_cv_deplibs_check_method=pass_all
6536  ;;
6537
6538netbsd*)
6539  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6540    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6541  else
6542    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6543  fi
6544  ;;
6545
6546newos6*)
6547  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6548  lt_cv_file_magic_cmd=/usr/bin/file
6549  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6550  ;;
6551
6552nto-qnx*)
6553  lt_cv_deplibs_check_method=unknown
6554  ;;
6555
6556openbsd*)
6557  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6558    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6559  else
6560    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6561  fi
6562  ;;
6563
6564osf3* | osf4* | osf5*)
6565  lt_cv_deplibs_check_method=pass_all
6566  ;;
6567
6568rdos*)
6569  lt_cv_deplibs_check_method=pass_all
6570  ;;
6571
6572solaris*)
6573  lt_cv_deplibs_check_method=pass_all
6574  ;;
6575
6576sysv4 | sysv4.3*)
6577  case $host_vendor in
6578  motorola)
6579    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]'
6580    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6581    ;;
6582  ncr)
6583    lt_cv_deplibs_check_method=pass_all
6584    ;;
6585  sequent)
6586    lt_cv_file_magic_cmd='/bin/file'
6587    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6588    ;;
6589  sni)
6590    lt_cv_file_magic_cmd='/bin/file'
6591    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6592    lt_cv_file_magic_test_file=/lib/libc.so
6593    ;;
6594  siemens)
6595    lt_cv_deplibs_check_method=pass_all
6596    ;;
6597  pc)
6598    lt_cv_deplibs_check_method=pass_all
6599    ;;
6600  esac
6601  ;;
6602
6603sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6604  lt_cv_deplibs_check_method=pass_all
6605  ;;
6606esac
6607
6608fi
6609{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6610$as_echo "$lt_cv_deplibs_check_method" >&6; }
6611file_magic_cmd=$lt_cv_file_magic_cmd
6612deplibs_check_method=$lt_cv_deplibs_check_method
6613test -z "$deplibs_check_method" && deplibs_check_method=unknown
6614
6615
6616# If no C compiler was specified, use CC.
6617LTCC=${LTCC-"$CC"}
6618
6619# If no C compiler flags were specified, use CFLAGS.
6620LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6621
6622# Allow CC to be a program name with arguments.
6623compiler=$CC
6624
6625# Check whether --enable-libtool-lock was given.
6626if test "${enable_libtool_lock+set}" = set; then
6627  enableval=$enable_libtool_lock;
6628fi
6629
6630test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6631
6632# Some flags need to be propagated to the compiler or linker for good
6633# libtool support.
6634case $host in
6635ia64-*-hpux*)
6636  # Find out which ABI we are using.
6637  echo 'int i;' > conftest.$ac_ext
6638  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6639  (eval $ac_compile) 2>&5
6640  ac_status=$?
6641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642  (exit $ac_status); }; then
6643    case `/usr/bin/file conftest.$ac_objext` in
6644    *ELF-32*)
6645      HPUX_IA64_MODE="32"
6646      ;;
6647    *ELF-64*)
6648      HPUX_IA64_MODE="64"
6649      ;;
6650    esac
6651  fi
6652  rm -rf conftest*
6653  ;;
6654*-*-irix6*)
6655  # Find out which ABI we are using.
6656  echo '#line 6656 "configure"' > conftest.$ac_ext
6657  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6658  (eval $ac_compile) 2>&5
6659  ac_status=$?
6660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; then
6662   if test "$lt_cv_prog_gnu_ld" = yes; then
6663    case `/usr/bin/file conftest.$ac_objext` in
6664    *32-bit*)
6665      LD="${LD-ld} -melf32bsmip"
6666      ;;
6667    *N32*)
6668      LD="${LD-ld} -melf32bmipn32"
6669      ;;
6670    *64-bit*)
6671      LD="${LD-ld} -melf64bmip"
6672      ;;
6673    esac
6674   else
6675    case `/usr/bin/file conftest.$ac_objext` in
6676    *32-bit*)
6677      LD="${LD-ld} -32"
6678      ;;
6679    *N32*)
6680      LD="${LD-ld} -n32"
6681      ;;
6682    *64-bit*)
6683      LD="${LD-ld} -64"
6684      ;;
6685    esac
6686   fi
6687  fi
6688  rm -rf conftest*
6689  ;;
6690
6691x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6692s390*-*linux*|sparc*-*linux*)
6693  # Find out which ABI we are using.
6694  echo 'int i;' > conftest.$ac_ext
6695  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6696  (eval $ac_compile) 2>&5
6697  ac_status=$?
6698  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); }; then
6700    case `/usr/bin/file conftest.o` in
6701    *32-bit*)
6702      case $host in
6703        x86_64-*kfreebsd*-gnu)
6704          LD="${LD-ld} -m elf_i386_fbsd"
6705          ;;
6706        x86_64-*linux*)
6707          LD="${LD-ld} -m elf_i386"
6708          ;;
6709        ppc64-*linux*|powerpc64-*linux*)
6710          LD="${LD-ld} -m elf32ppclinux"
6711          ;;
6712        s390x-*linux*)
6713          LD="${LD-ld} -m elf_s390"
6714          ;;
6715        sparc64-*linux*)
6716          LD="${LD-ld} -m elf32_sparc"
6717          ;;
6718      esac
6719      ;;
6720    *64-bit*)
6721      case $host in
6722        x86_64-*kfreebsd*-gnu)
6723          LD="${LD-ld} -m elf_x86_64_fbsd"
6724          ;;
6725        x86_64-*linux*)
6726          LD="${LD-ld} -m elf_x86_64"
6727          ;;
6728        ppc*-*linux*|powerpc*-*linux*)
6729          LD="${LD-ld} -m elf64ppc"
6730          ;;
6731        s390*-*linux*)
6732          LD="${LD-ld} -m elf64_s390"
6733          ;;
6734        sparc*-*linux*)
6735          LD="${LD-ld} -m elf64_sparc"
6736          ;;
6737      esac
6738      ;;
6739    esac
6740  fi
6741  rm -rf conftest*
6742  ;;
6743
6744*-*-sco3.2v5*)
6745  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6746  SAVE_CFLAGS="$CFLAGS"
6747  CFLAGS="$CFLAGS -belf"
6748  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6749$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6750if test "${lt_cv_cc_needs_belf+set}" = set; then
6751  $as_echo_n "(cached) " >&6
6752else
6753  ac_ext=c
6754ac_cpp='$CPP $CPPFLAGS'
6755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757ac_compiler_gnu=$ac_cv_c_compiler_gnu
6758
6759     cat >conftest.$ac_ext <<_ACEOF
6760/* confdefs.h.  */
6761_ACEOF
6762cat confdefs.h >>conftest.$ac_ext
6763cat >>conftest.$ac_ext <<_ACEOF
6764/* end confdefs.h.  */
6765
6766int
6767main ()
6768{
6769
6770  ;
6771  return 0;
6772}
6773_ACEOF
6774rm -f conftest.$ac_objext conftest$ac_exeext
6775if { (ac_try="$ac_link"
6776case "(($ac_try" in
6777  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778  *) ac_try_echo=$ac_try;;
6779esac
6780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6781$as_echo "$ac_try_echo") >&5
6782  (eval "$ac_link") 2>conftest.er1
6783  ac_status=$?
6784  grep -v '^ *+' conftest.er1 >conftest.err
6785  rm -f conftest.er1
6786  cat conftest.err >&5
6787  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788  (exit $ac_status); } && {
6789	 test -z "$ac_c_werror_flag" ||
6790	 test ! -s conftest.err
6791       } && test -s conftest$ac_exeext && {
6792	 test "$cross_compiling" = yes ||
6793	 $as_test_x conftest$ac_exeext
6794       }; then
6795  lt_cv_cc_needs_belf=yes
6796else
6797  $as_echo "$as_me: failed program was:" >&5
6798sed 's/^/| /' conftest.$ac_ext >&5
6799
6800	lt_cv_cc_needs_belf=no
6801fi
6802
6803rm -rf conftest.dSYM
6804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6805      conftest$ac_exeext conftest.$ac_ext
6806     ac_ext=c
6807ac_cpp='$CPP $CPPFLAGS'
6808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811
6812fi
6813{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6814$as_echo "$lt_cv_cc_needs_belf" >&6; }
6815  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6816    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6817    CFLAGS="$SAVE_CFLAGS"
6818  fi
6819  ;;
6820sparc*-*solaris*)
6821  # Find out which ABI we are using.
6822  echo 'int i;' > conftest.$ac_ext
6823  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6824  (eval $ac_compile) 2>&5
6825  ac_status=$?
6826  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); }; then
6828    case `/usr/bin/file conftest.o` in
6829    *64-bit*)
6830      case $lt_cv_prog_gnu_ld in
6831      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6832      *)    LD="${LD-ld} -64" ;;
6833      esac
6834      ;;
6835    esac
6836  fi
6837  rm -rf conftest*
6838  ;;
6839
6840*-*-cygwin* | *-*-mingw* | *-*-pw32*)
6841  if test -n "$ac_tool_prefix"; then
6842  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6843set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6844{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6845$as_echo_n "checking for $ac_word... " >&6; }
6846if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6847  $as_echo_n "(cached) " >&6
6848else
6849  if test -n "$DLLTOOL"; then
6850  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6851else
6852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853for as_dir in $PATH
6854do
6855  IFS=$as_save_IFS
6856  test -z "$as_dir" && as_dir=.
6857  for ac_exec_ext in '' $ac_executable_extensions; do
6858  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6860    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861    break 2
6862  fi
6863done
6864done
6865IFS=$as_save_IFS
6866
6867fi
6868fi
6869DLLTOOL=$ac_cv_prog_DLLTOOL
6870if test -n "$DLLTOOL"; then
6871  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6872$as_echo "$DLLTOOL" >&6; }
6873else
6874  { $as_echo "$as_me:$LINENO: result: no" >&5
6875$as_echo "no" >&6; }
6876fi
6877
6878
6879fi
6880if test -z "$ac_cv_prog_DLLTOOL"; then
6881  ac_ct_DLLTOOL=$DLLTOOL
6882  # Extract the first word of "dlltool", so it can be a program name with args.
6883set dummy dlltool; ac_word=$2
6884{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6885$as_echo_n "checking for $ac_word... " >&6; }
6886if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6887  $as_echo_n "(cached) " >&6
6888else
6889  if test -n "$ac_ct_DLLTOOL"; then
6890  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6891else
6892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893for as_dir in $PATH
6894do
6895  IFS=$as_save_IFS
6896  test -z "$as_dir" && as_dir=.
6897  for ac_exec_ext in '' $ac_executable_extensions; do
6898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6900    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901    break 2
6902  fi
6903done
6904done
6905IFS=$as_save_IFS
6906
6907fi
6908fi
6909ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6910if test -n "$ac_ct_DLLTOOL"; then
6911  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6912$as_echo "$ac_ct_DLLTOOL" >&6; }
6913else
6914  { $as_echo "$as_me:$LINENO: result: no" >&5
6915$as_echo "no" >&6; }
6916fi
6917
6918  if test "x$ac_ct_DLLTOOL" = x; then
6919    DLLTOOL="false"
6920  else
6921    case $cross_compiling:$ac_tool_warned in
6922yes:)
6923{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925ac_tool_warned=yes ;;
6926esac
6927    DLLTOOL=$ac_ct_DLLTOOL
6928  fi
6929else
6930  DLLTOOL="$ac_cv_prog_DLLTOOL"
6931fi
6932
6933  if test -n "$ac_tool_prefix"; then
6934  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6935set dummy ${ac_tool_prefix}as; ac_word=$2
6936{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6937$as_echo_n "checking for $ac_word... " >&6; }
6938if test "${ac_cv_prog_AS+set}" = set; then
6939  $as_echo_n "(cached) " >&6
6940else
6941  if test -n "$AS"; then
6942  ac_cv_prog_AS="$AS" # Let the user override the test.
6943else
6944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945for as_dir in $PATH
6946do
6947  IFS=$as_save_IFS
6948  test -z "$as_dir" && as_dir=.
6949  for ac_exec_ext in '' $ac_executable_extensions; do
6950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6951    ac_cv_prog_AS="${ac_tool_prefix}as"
6952    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953    break 2
6954  fi
6955done
6956done
6957IFS=$as_save_IFS
6958
6959fi
6960fi
6961AS=$ac_cv_prog_AS
6962if test -n "$AS"; then
6963  { $as_echo "$as_me:$LINENO: result: $AS" >&5
6964$as_echo "$AS" >&6; }
6965else
6966  { $as_echo "$as_me:$LINENO: result: no" >&5
6967$as_echo "no" >&6; }
6968fi
6969
6970
6971fi
6972if test -z "$ac_cv_prog_AS"; then
6973  ac_ct_AS=$AS
6974  # Extract the first word of "as", so it can be a program name with args.
6975set dummy as; ac_word=$2
6976{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
6978if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6979  $as_echo_n "(cached) " >&6
6980else
6981  if test -n "$ac_ct_AS"; then
6982  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6983else
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987  IFS=$as_save_IFS
6988  test -z "$as_dir" && as_dir=.
6989  for ac_exec_ext in '' $ac_executable_extensions; do
6990  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991    ac_cv_prog_ac_ct_AS="as"
6992    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993    break 2
6994  fi
6995done
6996done
6997IFS=$as_save_IFS
6998
6999fi
7000fi
7001ac_ct_AS=$ac_cv_prog_ac_ct_AS
7002if test -n "$ac_ct_AS"; then
7003  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
7004$as_echo "$ac_ct_AS" >&6; }
7005else
7006  { $as_echo "$as_me:$LINENO: result: no" >&5
7007$as_echo "no" >&6; }
7008fi
7009
7010  if test "x$ac_ct_AS" = x; then
7011    AS="false"
7012  else
7013    case $cross_compiling:$ac_tool_warned in
7014yes:)
7015{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7017ac_tool_warned=yes ;;
7018esac
7019    AS=$ac_ct_AS
7020  fi
7021else
7022  AS="$ac_cv_prog_AS"
7023fi
7024
7025  if test -n "$ac_tool_prefix"; then
7026  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7027set dummy ${ac_tool_prefix}objdump; ac_word=$2
7028{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if test "${ac_cv_prog_OBJDUMP+set}" = set; then
7031  $as_echo_n "(cached) " >&6
7032else
7033  if test -n "$OBJDUMP"; then
7034  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041  for ac_exec_ext in '' $ac_executable_extensions; do
7042  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7043    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7044    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053OBJDUMP=$ac_cv_prog_OBJDUMP
7054if test -n "$OBJDUMP"; then
7055  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
7056$as_echo "$OBJDUMP" >&6; }
7057else
7058  { $as_echo "$as_me:$LINENO: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062
7063fi
7064if test -z "$ac_cv_prog_OBJDUMP"; then
7065  ac_ct_OBJDUMP=$OBJDUMP
7066  # Extract the first word of "objdump", so it can be a program name with args.
7067set dummy objdump; ac_word=$2
7068{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7069$as_echo_n "checking for $ac_word... " >&6; }
7070if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
7071  $as_echo_n "(cached) " >&6
7072else
7073  if test -n "$ac_ct_OBJDUMP"; then
7074  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7075else
7076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077for as_dir in $PATH
7078do
7079  IFS=$as_save_IFS
7080  test -z "$as_dir" && as_dir=.
7081  for ac_exec_ext in '' $ac_executable_extensions; do
7082  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7084    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085    break 2
7086  fi
7087done
7088done
7089IFS=$as_save_IFS
7090
7091fi
7092fi
7093ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7094if test -n "$ac_ct_OBJDUMP"; then
7095  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
7096$as_echo "$ac_ct_OBJDUMP" >&6; }
7097else
7098  { $as_echo "$as_me:$LINENO: result: no" >&5
7099$as_echo "no" >&6; }
7100fi
7101
7102  if test "x$ac_ct_OBJDUMP" = x; then
7103    OBJDUMP="false"
7104  else
7105    case $cross_compiling:$ac_tool_warned in
7106yes:)
7107{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7108$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109ac_tool_warned=yes ;;
7110esac
7111    OBJDUMP=$ac_ct_OBJDUMP
7112  fi
7113else
7114  OBJDUMP="$ac_cv_prog_OBJDUMP"
7115fi
7116
7117  ;;
7118
7119esac
7120
7121need_locks="$enable_libtool_lock"
7122
7123
7124
7125for ac_header in dlfcn.h
7126do
7127as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7128if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7129  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7130$as_echo_n "checking for $ac_header... " >&6; }
7131if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7132  $as_echo_n "(cached) " >&6
7133fi
7134ac_res=`eval 'as_val=${'$as_ac_Header'}
7135		 $as_echo "$as_val"'`
7136	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7137$as_echo "$ac_res" >&6; }
7138else
7139  # Is the header compilable?
7140{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7141$as_echo_n "checking $ac_header usability... " >&6; }
7142cat >conftest.$ac_ext <<_ACEOF
7143/* confdefs.h.  */
7144_ACEOF
7145cat confdefs.h >>conftest.$ac_ext
7146cat >>conftest.$ac_ext <<_ACEOF
7147/* end confdefs.h.  */
7148$ac_includes_default
7149#include <$ac_header>
7150_ACEOF
7151rm -f conftest.$ac_objext
7152if { (ac_try="$ac_compile"
7153case "(($ac_try" in
7154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155  *) ac_try_echo=$ac_try;;
7156esac
7157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7158$as_echo "$ac_try_echo") >&5
7159  (eval "$ac_compile") 2>conftest.er1
7160  ac_status=$?
7161  grep -v '^ *+' conftest.er1 >conftest.err
7162  rm -f conftest.er1
7163  cat conftest.err >&5
7164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165  (exit $ac_status); } && {
7166	 test -z "$ac_c_werror_flag" ||
7167	 test ! -s conftest.err
7168       } && test -s conftest.$ac_objext; then
7169  ac_header_compiler=yes
7170else
7171  $as_echo "$as_me: failed program was:" >&5
7172sed 's/^/| /' conftest.$ac_ext >&5
7173
7174	ac_header_compiler=no
7175fi
7176
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7179$as_echo "$ac_header_compiler" >&6; }
7180
7181# Is the header present?
7182{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7183$as_echo_n "checking $ac_header presence... " >&6; }
7184cat >conftest.$ac_ext <<_ACEOF
7185/* confdefs.h.  */
7186_ACEOF
7187cat confdefs.h >>conftest.$ac_ext
7188cat >>conftest.$ac_ext <<_ACEOF
7189/* end confdefs.h.  */
7190#include <$ac_header>
7191_ACEOF
7192if { (ac_try="$ac_cpp conftest.$ac_ext"
7193case "(($ac_try" in
7194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195  *) ac_try_echo=$ac_try;;
7196esac
7197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7198$as_echo "$ac_try_echo") >&5
7199  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7200  ac_status=$?
7201  grep -v '^ *+' conftest.er1 >conftest.err
7202  rm -f conftest.er1
7203  cat conftest.err >&5
7204  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205  (exit $ac_status); } >/dev/null && {
7206	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7207	 test ! -s conftest.err
7208       }; then
7209  ac_header_preproc=yes
7210else
7211  $as_echo "$as_me: failed program was:" >&5
7212sed 's/^/| /' conftest.$ac_ext >&5
7213
7214  ac_header_preproc=no
7215fi
7216
7217rm -f conftest.err conftest.$ac_ext
7218{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7219$as_echo "$ac_header_preproc" >&6; }
7220
7221# So?  What about this header?
7222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7223  yes:no: )
7224    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7225$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7226    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7227$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7228    ac_header_preproc=yes
7229    ;;
7230  no:yes:* )
7231    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7232$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7233    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7234$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7235    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7236$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7237    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7238$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7239    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7240$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7241    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7242$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7243
7244    ;;
7245esac
7246{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7247$as_echo_n "checking for $ac_header... " >&6; }
7248if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7249  $as_echo_n "(cached) " >&6
7250else
7251  eval "$as_ac_Header=\$ac_header_preproc"
7252fi
7253ac_res=`eval 'as_val=${'$as_ac_Header'}
7254		 $as_echo "$as_val"'`
7255	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7256$as_echo "$ac_res" >&6; }
7257
7258fi
7259as_val=`eval 'as_val=${'$as_ac_Header'}
7260		 $as_echo "$as_val"'`
7261   if test "x$as_val" = x""yes; then
7262  cat >>confdefs.h <<_ACEOF
7263#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7264_ACEOF
7265
7266fi
7267
7268done
7269
7270ac_ext=cpp
7271ac_cpp='$CXXCPP $CPPFLAGS'
7272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7275if test -z "$CXX"; then
7276  if test -n "$CCC"; then
7277    CXX=$CCC
7278  else
7279    if test -n "$ac_tool_prefix"; then
7280  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7281  do
7282    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7284{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7285$as_echo_n "checking for $ac_word... " >&6; }
7286if test "${ac_cv_prog_CXX+set}" = set; then
7287  $as_echo_n "(cached) " >&6
7288else
7289  if test -n "$CXX"; then
7290  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7291else
7292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293for as_dir in $PATH
7294do
7295  IFS=$as_save_IFS
7296  test -z "$as_dir" && as_dir=.
7297  for ac_exec_ext in '' $ac_executable_extensions; do
7298  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7300    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7301    break 2
7302  fi
7303done
7304done
7305IFS=$as_save_IFS
7306
7307fi
7308fi
7309CXX=$ac_cv_prog_CXX
7310if test -n "$CXX"; then
7311  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
7312$as_echo "$CXX" >&6; }
7313else
7314  { $as_echo "$as_me:$LINENO: result: no" >&5
7315$as_echo "no" >&6; }
7316fi
7317
7318
7319    test -n "$CXX" && break
7320  done
7321fi
7322if test -z "$CXX"; then
7323  ac_ct_CXX=$CXX
7324  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7325do
7326  # Extract the first word of "$ac_prog", so it can be a program name with args.
7327set dummy $ac_prog; ac_word=$2
7328{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7329$as_echo_n "checking for $ac_word... " >&6; }
7330if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7331  $as_echo_n "(cached) " >&6
7332else
7333  if test -n "$ac_ct_CXX"; then
7334  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7335else
7336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337for as_dir in $PATH
7338do
7339  IFS=$as_save_IFS
7340  test -z "$as_dir" && as_dir=.
7341  for ac_exec_ext in '' $ac_executable_extensions; do
7342  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343    ac_cv_prog_ac_ct_CXX="$ac_prog"
7344    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345    break 2
7346  fi
7347done
7348done
7349IFS=$as_save_IFS
7350
7351fi
7352fi
7353ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7354if test -n "$ac_ct_CXX"; then
7355  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
7356$as_echo "$ac_ct_CXX" >&6; }
7357else
7358  { $as_echo "$as_me:$LINENO: result: no" >&5
7359$as_echo "no" >&6; }
7360fi
7361
7362
7363  test -n "$ac_ct_CXX" && break
7364done
7365
7366  if test "x$ac_ct_CXX" = x; then
7367    CXX="g++"
7368  else
7369    case $cross_compiling:$ac_tool_warned in
7370yes:)
7371{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7373ac_tool_warned=yes ;;
7374esac
7375    CXX=$ac_ct_CXX
7376  fi
7377fi
7378
7379  fi
7380fi
7381# Provide some information about the compiler.
7382$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
7383set X $ac_compile
7384ac_compiler=$2
7385{ (ac_try="$ac_compiler --version >&5"
7386case "(($ac_try" in
7387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7388  *) ac_try_echo=$ac_try;;
7389esac
7390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7391$as_echo "$ac_try_echo") >&5
7392  (eval "$ac_compiler --version >&5") 2>&5
7393  ac_status=$?
7394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395  (exit $ac_status); }
7396{ (ac_try="$ac_compiler -v >&5"
7397case "(($ac_try" in
7398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7399  *) ac_try_echo=$ac_try;;
7400esac
7401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7402$as_echo "$ac_try_echo") >&5
7403  (eval "$ac_compiler -v >&5") 2>&5
7404  ac_status=$?
7405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406  (exit $ac_status); }
7407{ (ac_try="$ac_compiler -V >&5"
7408case "(($ac_try" in
7409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410  *) ac_try_echo=$ac_try;;
7411esac
7412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7413$as_echo "$ac_try_echo") >&5
7414  (eval "$ac_compiler -V >&5") 2>&5
7415  ac_status=$?
7416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417  (exit $ac_status); }
7418
7419{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
7420$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7421if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
7422  $as_echo_n "(cached) " >&6
7423else
7424  cat >conftest.$ac_ext <<_ACEOF
7425/* confdefs.h.  */
7426_ACEOF
7427cat confdefs.h >>conftest.$ac_ext
7428cat >>conftest.$ac_ext <<_ACEOF
7429/* end confdefs.h.  */
7430
7431int
7432main ()
7433{
7434#ifndef __GNUC__
7435       choke me
7436#endif
7437
7438  ;
7439  return 0;
7440}
7441_ACEOF
7442rm -f conftest.$ac_objext
7443if { (ac_try="$ac_compile"
7444case "(($ac_try" in
7445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446  *) ac_try_echo=$ac_try;;
7447esac
7448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449$as_echo "$ac_try_echo") >&5
7450  (eval "$ac_compile") 2>conftest.er1
7451  ac_status=$?
7452  grep -v '^ *+' conftest.er1 >conftest.err
7453  rm -f conftest.er1
7454  cat conftest.err >&5
7455  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456  (exit $ac_status); } && {
7457	 test -z "$ac_cxx_werror_flag" ||
7458	 test ! -s conftest.err
7459       } && test -s conftest.$ac_objext; then
7460  ac_compiler_gnu=yes
7461else
7462  $as_echo "$as_me: failed program was:" >&5
7463sed 's/^/| /' conftest.$ac_ext >&5
7464
7465	ac_compiler_gnu=no
7466fi
7467
7468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7470
7471fi
7472{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
7473$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7474if test $ac_compiler_gnu = yes; then
7475  GXX=yes
7476else
7477  GXX=
7478fi
7479ac_test_CXXFLAGS=${CXXFLAGS+set}
7480ac_save_CXXFLAGS=$CXXFLAGS
7481{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
7482$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7483if test "${ac_cv_prog_cxx_g+set}" = set; then
7484  $as_echo_n "(cached) " >&6
7485else
7486  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7487   ac_cxx_werror_flag=yes
7488   ac_cv_prog_cxx_g=no
7489   CXXFLAGS="-g"
7490   cat >conftest.$ac_ext <<_ACEOF
7491/* confdefs.h.  */
7492_ACEOF
7493cat confdefs.h >>conftest.$ac_ext
7494cat >>conftest.$ac_ext <<_ACEOF
7495/* end confdefs.h.  */
7496
7497int
7498main ()
7499{
7500
7501  ;
7502  return 0;
7503}
7504_ACEOF
7505rm -f conftest.$ac_objext
7506if { (ac_try="$ac_compile"
7507case "(($ac_try" in
7508  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509  *) ac_try_echo=$ac_try;;
7510esac
7511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7512$as_echo "$ac_try_echo") >&5
7513  (eval "$ac_compile") 2>conftest.er1
7514  ac_status=$?
7515  grep -v '^ *+' conftest.er1 >conftest.err
7516  rm -f conftest.er1
7517  cat conftest.err >&5
7518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519  (exit $ac_status); } && {
7520	 test -z "$ac_cxx_werror_flag" ||
7521	 test ! -s conftest.err
7522       } && test -s conftest.$ac_objext; then
7523  ac_cv_prog_cxx_g=yes
7524else
7525  $as_echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528	CXXFLAGS=""
7529      cat >conftest.$ac_ext <<_ACEOF
7530/* confdefs.h.  */
7531_ACEOF
7532cat confdefs.h >>conftest.$ac_ext
7533cat >>conftest.$ac_ext <<_ACEOF
7534/* end confdefs.h.  */
7535
7536int
7537main ()
7538{
7539
7540  ;
7541  return 0;
7542}
7543_ACEOF
7544rm -f conftest.$ac_objext
7545if { (ac_try="$ac_compile"
7546case "(($ac_try" in
7547  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548  *) ac_try_echo=$ac_try;;
7549esac
7550eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7551$as_echo "$ac_try_echo") >&5
7552  (eval "$ac_compile") 2>conftest.er1
7553  ac_status=$?
7554  grep -v '^ *+' conftest.er1 >conftest.err
7555  rm -f conftest.er1
7556  cat conftest.err >&5
7557  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558  (exit $ac_status); } && {
7559	 test -z "$ac_cxx_werror_flag" ||
7560	 test ! -s conftest.err
7561       } && test -s conftest.$ac_objext; then
7562  :
7563else
7564  $as_echo "$as_me: failed program was:" >&5
7565sed 's/^/| /' conftest.$ac_ext >&5
7566
7567	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7568	 CXXFLAGS="-g"
7569	 cat >conftest.$ac_ext <<_ACEOF
7570/* confdefs.h.  */
7571_ACEOF
7572cat confdefs.h >>conftest.$ac_ext
7573cat >>conftest.$ac_ext <<_ACEOF
7574/* end confdefs.h.  */
7575
7576int
7577main ()
7578{
7579
7580  ;
7581  return 0;
7582}
7583_ACEOF
7584rm -f conftest.$ac_objext
7585if { (ac_try="$ac_compile"
7586case "(($ac_try" in
7587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588  *) ac_try_echo=$ac_try;;
7589esac
7590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7591$as_echo "$ac_try_echo") >&5
7592  (eval "$ac_compile") 2>conftest.er1
7593  ac_status=$?
7594  grep -v '^ *+' conftest.er1 >conftest.err
7595  rm -f conftest.er1
7596  cat conftest.err >&5
7597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598  (exit $ac_status); } && {
7599	 test -z "$ac_cxx_werror_flag" ||
7600	 test ! -s conftest.err
7601       } && test -s conftest.$ac_objext; then
7602  ac_cv_prog_cxx_g=yes
7603else
7604  $as_echo "$as_me: failed program was:" >&5
7605sed 's/^/| /' conftest.$ac_ext >&5
7606
7607
7608fi
7609
7610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611fi
7612
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7614fi
7615
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7618fi
7619{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
7620$as_echo "$ac_cv_prog_cxx_g" >&6; }
7621if test "$ac_test_CXXFLAGS" = set; then
7622  CXXFLAGS=$ac_save_CXXFLAGS
7623elif test $ac_cv_prog_cxx_g = yes; then
7624  if test "$GXX" = yes; then
7625    CXXFLAGS="-g -O2"
7626  else
7627    CXXFLAGS="-g"
7628  fi
7629else
7630  if test "$GXX" = yes; then
7631    CXXFLAGS="-O2"
7632  else
7633    CXXFLAGS=
7634  fi
7635fi
7636ac_ext=cpp
7637ac_cpp='$CXXCPP $CPPFLAGS'
7638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7641
7642depcc="$CXX"  am_compiler_list=
7643
7644{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7645$as_echo_n "checking dependency style of $depcc... " >&6; }
7646if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
7647  $as_echo_n "(cached) " >&6
7648else
7649  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7650  # We make a subdir and do the tests there.  Otherwise we can end up
7651  # making bogus files that we don't know about and never remove.  For
7652  # instance it was reported that on HP-UX the gcc test will end up
7653  # making a dummy file named `D' -- because `-MD' means `put the output
7654  # in D'.
7655  mkdir conftest.dir
7656  # Copy depcomp to subdir because otherwise we won't find it if we're
7657  # using a relative directory.
7658  cp "$am_depcomp" conftest.dir
7659  cd conftest.dir
7660  # We will build objects and dependencies in a subdirectory because
7661  # it helps to detect inapplicable dependency modes.  For instance
7662  # both Tru64's cc and ICC support -MD to output dependencies as a
7663  # side effect of compilation, but ICC will put the dependencies in
7664  # the current directory while Tru64 will put them in the object
7665  # directory.
7666  mkdir sub
7667
7668  am_cv_CXX_dependencies_compiler_type=none
7669  if test "$am_compiler_list" = ""; then
7670     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7671  fi
7672  for depmode in $am_compiler_list; do
7673    # Setup a source with many dependencies, because some compilers
7674    # like to wrap large dependency lists on column 80 (with \), and
7675    # we should not choose a depcomp mode which is confused by this.
7676    #
7677    # We need to recreate these files for each test, as the compiler may
7678    # overwrite some of them when testing with obscure command lines.
7679    # This happens at least with the AIX C compiler.
7680    : > sub/conftest.c
7681    for i in 1 2 3 4 5 6; do
7682      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7683      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7684      # Solaris 8's {/usr,}/bin/sh.
7685      touch sub/conftst$i.h
7686    done
7687    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7688
7689    case $depmode in
7690    nosideeffect)
7691      # after this tag, mechanisms are not by side-effect, so they'll
7692      # only be used when explicitly requested
7693      if test "x$enable_dependency_tracking" = xyes; then
7694	continue
7695      else
7696	break
7697      fi
7698      ;;
7699    none) break ;;
7700    esac
7701    # We check with `-c' and `-o' for the sake of the "dashmstdout"
7702    # mode.  It turns out that the SunPro C++ compiler does not properly
7703    # handle `-M -o', and we need to detect this.
7704    if depmode=$depmode \
7705       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7706       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7707       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7708         >/dev/null 2>conftest.err &&
7709       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7710       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7711       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7712       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7713      # icc doesn't choke on unknown options, it will just issue warnings
7714      # or remarks (even with -Werror).  So we grep stderr for any message
7715      # that says an option was ignored or not supported.
7716      # When given -MP, icc 7.0 and 7.1 complain thusly:
7717      #   icc: Command line warning: ignoring option '-M'; no argument required
7718      # The diagnosis changed in icc 8.0:
7719      #   icc: Command line remark: option '-MP' not supported
7720      if (grep 'ignoring option' conftest.err ||
7721          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7722        am_cv_CXX_dependencies_compiler_type=$depmode
7723        break
7724      fi
7725    fi
7726  done
7727
7728  cd ..
7729  rm -rf conftest.dir
7730else
7731  am_cv_CXX_dependencies_compiler_type=none
7732fi
7733
7734fi
7735{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7736$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7737CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7738
7739 if
7740  test "x$enable_dependency_tracking" != xno \
7741  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7742  am__fastdepCXX_TRUE=
7743  am__fastdepCXX_FALSE='#'
7744else
7745  am__fastdepCXX_TRUE='#'
7746  am__fastdepCXX_FALSE=
7747fi
7748
7749
7750
7751
7752if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7753    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7754    (test "X$CXX" != "Xg++"))) ; then
7755  ac_ext=cpp
7756ac_cpp='$CXXCPP $CPPFLAGS'
7757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7760{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7761$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7762if test -z "$CXXCPP"; then
7763  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7764  $as_echo_n "(cached) " >&6
7765else
7766      # Double quotes because CXXCPP needs to be expanded
7767    for CXXCPP in "$CXX -E" "/lib/cpp"
7768    do
7769      ac_preproc_ok=false
7770for ac_cxx_preproc_warn_flag in '' yes
7771do
7772  # Use a header file that comes with gcc, so configuring glibc
7773  # with a fresh cross-compiler works.
7774  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7775  # <limits.h> exists even on freestanding compilers.
7776  # On the NeXT, cc -E runs the code through the compiler's parser,
7777  # not just through cpp. "Syntax error" is here to catch this case.
7778  cat >conftest.$ac_ext <<_ACEOF
7779/* confdefs.h.  */
7780_ACEOF
7781cat confdefs.h >>conftest.$ac_ext
7782cat >>conftest.$ac_ext <<_ACEOF
7783/* end confdefs.h.  */
7784#ifdef __STDC__
7785# include <limits.h>
7786#else
7787# include <assert.h>
7788#endif
7789		     Syntax error
7790_ACEOF
7791if { (ac_try="$ac_cpp conftest.$ac_ext"
7792case "(($ac_try" in
7793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794  *) ac_try_echo=$ac_try;;
7795esac
7796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797$as_echo "$ac_try_echo") >&5
7798  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7799  ac_status=$?
7800  grep -v '^ *+' conftest.er1 >conftest.err
7801  rm -f conftest.er1
7802  cat conftest.err >&5
7803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); } >/dev/null && {
7805	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7806	 test ! -s conftest.err
7807       }; then
7808  :
7809else
7810  $as_echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813  # Broken: fails on valid input.
7814continue
7815fi
7816
7817rm -f conftest.err conftest.$ac_ext
7818
7819  # OK, works on sane cases.  Now check whether nonexistent headers
7820  # can be detected and how.
7821  cat >conftest.$ac_ext <<_ACEOF
7822/* confdefs.h.  */
7823_ACEOF
7824cat confdefs.h >>conftest.$ac_ext
7825cat >>conftest.$ac_ext <<_ACEOF
7826/* end confdefs.h.  */
7827#include <ac_nonexistent.h>
7828_ACEOF
7829if { (ac_try="$ac_cpp conftest.$ac_ext"
7830case "(($ac_try" in
7831  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832  *) ac_try_echo=$ac_try;;
7833esac
7834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7835$as_echo "$ac_try_echo") >&5
7836  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7837  ac_status=$?
7838  grep -v '^ *+' conftest.er1 >conftest.err
7839  rm -f conftest.er1
7840  cat conftest.err >&5
7841  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); } >/dev/null && {
7843	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7844	 test ! -s conftest.err
7845       }; then
7846  # Broken: success on invalid input.
7847continue
7848else
7849  $as_echo "$as_me: failed program was:" >&5
7850sed 's/^/| /' conftest.$ac_ext >&5
7851
7852  # Passes both tests.
7853ac_preproc_ok=:
7854break
7855fi
7856
7857rm -f conftest.err conftest.$ac_ext
7858
7859done
7860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7861rm -f conftest.err conftest.$ac_ext
7862if $ac_preproc_ok; then
7863  break
7864fi
7865
7866    done
7867    ac_cv_prog_CXXCPP=$CXXCPP
7868
7869fi
7870  CXXCPP=$ac_cv_prog_CXXCPP
7871else
7872  ac_cv_prog_CXXCPP=$CXXCPP
7873fi
7874{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7875$as_echo "$CXXCPP" >&6; }
7876ac_preproc_ok=false
7877for ac_cxx_preproc_warn_flag in '' yes
7878do
7879  # Use a header file that comes with gcc, so configuring glibc
7880  # with a fresh cross-compiler works.
7881  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7882  # <limits.h> exists even on freestanding compilers.
7883  # On the NeXT, cc -E runs the code through the compiler's parser,
7884  # not just through cpp. "Syntax error" is here to catch this case.
7885  cat >conftest.$ac_ext <<_ACEOF
7886/* confdefs.h.  */
7887_ACEOF
7888cat confdefs.h >>conftest.$ac_ext
7889cat >>conftest.$ac_ext <<_ACEOF
7890/* end confdefs.h.  */
7891#ifdef __STDC__
7892# include <limits.h>
7893#else
7894# include <assert.h>
7895#endif
7896		     Syntax error
7897_ACEOF
7898if { (ac_try="$ac_cpp conftest.$ac_ext"
7899case "(($ac_try" in
7900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901  *) ac_try_echo=$ac_try;;
7902esac
7903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7904$as_echo "$ac_try_echo") >&5
7905  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7906  ac_status=$?
7907  grep -v '^ *+' conftest.er1 >conftest.err
7908  rm -f conftest.er1
7909  cat conftest.err >&5
7910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911  (exit $ac_status); } >/dev/null && {
7912	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7913	 test ! -s conftest.err
7914       }; then
7915  :
7916else
7917  $as_echo "$as_me: failed program was:" >&5
7918sed 's/^/| /' conftest.$ac_ext >&5
7919
7920  # Broken: fails on valid input.
7921continue
7922fi
7923
7924rm -f conftest.err conftest.$ac_ext
7925
7926  # OK, works on sane cases.  Now check whether nonexistent headers
7927  # can be detected and how.
7928  cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h.  */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h.  */
7934#include <ac_nonexistent.h>
7935_ACEOF
7936if { (ac_try="$ac_cpp conftest.$ac_ext"
7937case "(($ac_try" in
7938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939  *) ac_try_echo=$ac_try;;
7940esac
7941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942$as_echo "$ac_try_echo") >&5
7943  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7944  ac_status=$?
7945  grep -v '^ *+' conftest.er1 >conftest.err
7946  rm -f conftest.er1
7947  cat conftest.err >&5
7948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949  (exit $ac_status); } >/dev/null && {
7950	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7951	 test ! -s conftest.err
7952       }; then
7953  # Broken: success on invalid input.
7954continue
7955else
7956  $as_echo "$as_me: failed program was:" >&5
7957sed 's/^/| /' conftest.$ac_ext >&5
7958
7959  # Passes both tests.
7960ac_preproc_ok=:
7961break
7962fi
7963
7964rm -f conftest.err conftest.$ac_ext
7965
7966done
7967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7968rm -f conftest.err conftest.$ac_ext
7969if $ac_preproc_ok; then
7970  :
7971else
7972  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7974{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7975See \`config.log' for more details." >&5
7976$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7977See \`config.log' for more details." >&2;}
7978   { (exit 1); exit 1; }; }; }
7979fi
7980
7981ac_ext=cpp
7982ac_cpp='$CXXCPP $CPPFLAGS'
7983ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7986
7987fi
7988
7989
7990ac_ext=f
7991ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7992ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7994if test -n "$ac_tool_prefix"; then
7995  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
7996  do
7997    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7999{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8000$as_echo_n "checking for $ac_word... " >&6; }
8001if test "${ac_cv_prog_F77+set}" = set; then
8002  $as_echo_n "(cached) " >&6
8003else
8004  if test -n "$F77"; then
8005  ac_cv_prog_F77="$F77" # Let the user override the test.
8006else
8007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008for as_dir in $PATH
8009do
8010  IFS=$as_save_IFS
8011  test -z "$as_dir" && as_dir=.
8012  for ac_exec_ext in '' $ac_executable_extensions; do
8013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8014    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8015    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8016    break 2
8017  fi
8018done
8019done
8020IFS=$as_save_IFS
8021
8022fi
8023fi
8024F77=$ac_cv_prog_F77
8025if test -n "$F77"; then
8026  { $as_echo "$as_me:$LINENO: result: $F77" >&5
8027$as_echo "$F77" >&6; }
8028else
8029  { $as_echo "$as_me:$LINENO: result: no" >&5
8030$as_echo "no" >&6; }
8031fi
8032
8033
8034    test -n "$F77" && break
8035  done
8036fi
8037if test -z "$F77"; then
8038  ac_ct_F77=$F77
8039  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8040do
8041  # Extract the first word of "$ac_prog", so it can be a program name with args.
8042set dummy $ac_prog; ac_word=$2
8043{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8044$as_echo_n "checking for $ac_word... " >&6; }
8045if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8046  $as_echo_n "(cached) " >&6
8047else
8048  if test -n "$ac_ct_F77"; then
8049  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8050else
8051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052for as_dir in $PATH
8053do
8054  IFS=$as_save_IFS
8055  test -z "$as_dir" && as_dir=.
8056  for ac_exec_ext in '' $ac_executable_extensions; do
8057  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058    ac_cv_prog_ac_ct_F77="$ac_prog"
8059    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8060    break 2
8061  fi
8062done
8063done
8064IFS=$as_save_IFS
8065
8066fi
8067fi
8068ac_ct_F77=$ac_cv_prog_ac_ct_F77
8069if test -n "$ac_ct_F77"; then
8070  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8071$as_echo "$ac_ct_F77" >&6; }
8072else
8073  { $as_echo "$as_me:$LINENO: result: no" >&5
8074$as_echo "no" >&6; }
8075fi
8076
8077
8078  test -n "$ac_ct_F77" && break
8079done
8080
8081  if test "x$ac_ct_F77" = x; then
8082    F77=""
8083  else
8084    case $cross_compiling:$ac_tool_warned in
8085yes:)
8086{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8088ac_tool_warned=yes ;;
8089esac
8090    F77=$ac_ct_F77
8091  fi
8092fi
8093
8094
8095# Provide some information about the compiler.
8096$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
8097set X $ac_compile
8098ac_compiler=$2
8099{ (ac_try="$ac_compiler --version >&5"
8100case "(($ac_try" in
8101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102  *) ac_try_echo=$ac_try;;
8103esac
8104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8105$as_echo "$ac_try_echo") >&5
8106  (eval "$ac_compiler --version >&5") 2>&5
8107  ac_status=$?
8108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109  (exit $ac_status); }
8110{ (ac_try="$ac_compiler -v >&5"
8111case "(($ac_try" in
8112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8113  *) ac_try_echo=$ac_try;;
8114esac
8115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8116$as_echo "$ac_try_echo") >&5
8117  (eval "$ac_compiler -v >&5") 2>&5
8118  ac_status=$?
8119  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120  (exit $ac_status); }
8121{ (ac_try="$ac_compiler -V >&5"
8122case "(($ac_try" in
8123  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124  *) ac_try_echo=$ac_try;;
8125esac
8126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127$as_echo "$ac_try_echo") >&5
8128  (eval "$ac_compiler -V >&5") 2>&5
8129  ac_status=$?
8130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131  (exit $ac_status); }
8132rm -f a.out
8133
8134# If we don't use `.F' as extension, the preprocessor is not run on the
8135# input file.  (Note that this only needs to work for GNU compilers.)
8136ac_save_ext=$ac_ext
8137ac_ext=F
8138{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8139$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
8140if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8141  $as_echo_n "(cached) " >&6
8142else
8143  cat >conftest.$ac_ext <<_ACEOF
8144      program main
8145#ifndef __GNUC__
8146       choke me
8147#endif
8148
8149      end
8150_ACEOF
8151rm -f conftest.$ac_objext
8152if { (ac_try="$ac_compile"
8153case "(($ac_try" in
8154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155  *) ac_try_echo=$ac_try;;
8156esac
8157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8158$as_echo "$ac_try_echo") >&5
8159  (eval "$ac_compile") 2>conftest.er1
8160  ac_status=$?
8161  grep -v '^ *+' conftest.er1 >conftest.err
8162  rm -f conftest.er1
8163  cat conftest.err >&5
8164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165  (exit $ac_status); } && {
8166	 test -z "$ac_f77_werror_flag" ||
8167	 test ! -s conftest.err
8168       } && test -s conftest.$ac_objext; then
8169  ac_compiler_gnu=yes
8170else
8171  $as_echo "$as_me: failed program was:" >&5
8172sed 's/^/| /' conftest.$ac_ext >&5
8173
8174	ac_compiler_gnu=no
8175fi
8176
8177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8179
8180fi
8181{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8182$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
8183ac_ext=$ac_save_ext
8184ac_test_FFLAGS=${FFLAGS+set}
8185ac_save_FFLAGS=$FFLAGS
8186FFLAGS=
8187{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8188$as_echo_n "checking whether $F77 accepts -g... " >&6; }
8189if test "${ac_cv_prog_f77_g+set}" = set; then
8190  $as_echo_n "(cached) " >&6
8191else
8192  FFLAGS=-g
8193cat >conftest.$ac_ext <<_ACEOF
8194      program main
8195
8196      end
8197_ACEOF
8198rm -f conftest.$ac_objext
8199if { (ac_try="$ac_compile"
8200case "(($ac_try" in
8201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202  *) ac_try_echo=$ac_try;;
8203esac
8204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8205$as_echo "$ac_try_echo") >&5
8206  (eval "$ac_compile") 2>conftest.er1
8207  ac_status=$?
8208  grep -v '^ *+' conftest.er1 >conftest.err
8209  rm -f conftest.er1
8210  cat conftest.err >&5
8211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212  (exit $ac_status); } && {
8213	 test -z "$ac_f77_werror_flag" ||
8214	 test ! -s conftest.err
8215       } && test -s conftest.$ac_objext; then
8216  ac_cv_prog_f77_g=yes
8217else
8218  $as_echo "$as_me: failed program was:" >&5
8219sed 's/^/| /' conftest.$ac_ext >&5
8220
8221	ac_cv_prog_f77_g=no
8222fi
8223
8224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225
8226fi
8227{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8228$as_echo "$ac_cv_prog_f77_g" >&6; }
8229if test "$ac_test_FFLAGS" = set; then
8230  FFLAGS=$ac_save_FFLAGS
8231elif test $ac_cv_prog_f77_g = yes; then
8232  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8233    FFLAGS="-g -O2"
8234  else
8235    FFLAGS="-g"
8236  fi
8237else
8238  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8239    FFLAGS="-O2"
8240  else
8241    FFLAGS=
8242  fi
8243fi
8244
8245if test $ac_compiler_gnu = yes; then
8246  G77=yes
8247else
8248  G77=
8249fi
8250ac_ext=c
8251ac_cpp='$CPP $CPPFLAGS'
8252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8254ac_compiler_gnu=$ac_cv_c_compiler_gnu
8255
8256
8257
8258# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8259
8260# find the maximum length of command line arguments
8261{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8262$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8263if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8264  $as_echo_n "(cached) " >&6
8265else
8266    i=0
8267  teststring="ABCD"
8268
8269  case $build_os in
8270  msdosdjgpp*)
8271    # On DJGPP, this test can blow up pretty badly due to problems in libc
8272    # (any single argument exceeding 2000 bytes causes a buffer overrun
8273    # during glob expansion).  Even if it were fixed, the result of this
8274    # check would be larger than it should be.
8275    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8276    ;;
8277
8278  gnu*)
8279    # Under GNU Hurd, this test is not required because there is
8280    # no limit to the length of command line arguments.
8281    # Libtool will interpret -1 as no limit whatsoever
8282    lt_cv_sys_max_cmd_len=-1;
8283    ;;
8284
8285  cygwin* | mingw*)
8286    # On Win9x/ME, this test blows up -- it succeeds, but takes
8287    # about 5 minutes as the teststring grows exponentially.
8288    # Worse, since 9x/ME are not pre-emptively multitasking,
8289    # you end up with a "frozen" computer, even though with patience
8290    # the test eventually succeeds (with a max line length of 256k).
8291    # Instead, let's just punt: use the minimum linelength reported by
8292    # all of the supported platforms: 8192 (on NT/2K/XP).
8293    lt_cv_sys_max_cmd_len=8192;
8294    ;;
8295
8296  amigaos*)
8297    # On AmigaOS with pdksh, this test takes hours, literally.
8298    # So we just punt and use a minimum line length of 8192.
8299    lt_cv_sys_max_cmd_len=8192;
8300    ;;
8301
8302  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8303    # This has been around since 386BSD, at least.  Likely further.
8304    if test -x /sbin/sysctl; then
8305      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8306    elif test -x /usr/sbin/sysctl; then
8307      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8308    else
8309      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8310    fi
8311    # And add a safety zone
8312    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8313    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8314    ;;
8315
8316  interix*)
8317    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8318    lt_cv_sys_max_cmd_len=196608
8319    ;;
8320
8321  osf*)
8322    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8323    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8324    # nice to cause kernel panics so lets avoid the loop below.
8325    # First set a reasonable default.
8326    lt_cv_sys_max_cmd_len=16384
8327    #
8328    if test -x /sbin/sysconfig; then
8329      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8330        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8331      esac
8332    fi
8333    ;;
8334  sco3.2v5*)
8335    lt_cv_sys_max_cmd_len=102400
8336    ;;
8337  sysv5* | sco5v6* | sysv4.2uw2*)
8338    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8339    if test -n "$kargmax"; then
8340      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
8341    else
8342      lt_cv_sys_max_cmd_len=32768
8343    fi
8344    ;;
8345  *)
8346    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8347    if test -n "$lt_cv_sys_max_cmd_len"; then
8348      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8349      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8350    else
8351      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8352      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8353	       = "XX$teststring") >/dev/null 2>&1 &&
8354	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
8355	      lt_cv_sys_max_cmd_len=$new_result &&
8356	      test $i != 17 # 1/2 MB should be enough
8357      do
8358        i=`expr $i + 1`
8359        teststring=$teststring$teststring
8360      done
8361      teststring=
8362      # Add a significant safety factor because C++ compilers can tack on massive
8363      # amounts of additional arguments before passing them to the linker.
8364      # It appears as though 1/2 is a usable value.
8365      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8366    fi
8367    ;;
8368  esac
8369
8370fi
8371
8372if test -n $lt_cv_sys_max_cmd_len ; then
8373  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8374$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8375else
8376  { $as_echo "$as_me:$LINENO: result: none" >&5
8377$as_echo "none" >&6; }
8378fi
8379
8380
8381
8382
8383
8384# Check for command to grab the raw symbol name followed by C symbol from nm.
8385{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8386$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8387if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8388  $as_echo_n "(cached) " >&6
8389else
8390
8391# These are sane defaults that work on at least a few old systems.
8392# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8393
8394# Character class describing NM global symbol codes.
8395symcode='[BCDEGRST]'
8396
8397# Regexp to match symbols that can be accessed directly from C.
8398sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8399
8400# Transform an extracted symbol line into a proper C declaration
8401lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8402
8403# Transform an extracted symbol line into symbol name and symbol address
8404lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8405
8406# Define system-specific variables.
8407case $host_os in
8408aix*)
8409  symcode='[BCDT]'
8410  ;;
8411cygwin* | mingw* | pw32*)
8412  symcode='[ABCDGISTW]'
8413  ;;
8414hpux*) # Its linker distinguishes data from code symbols
8415  if test "$host_cpu" = ia64; then
8416    symcode='[ABCDEGRST]'
8417  fi
8418  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8419  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8420  ;;
8421linux* | k*bsd*-gnu)
8422  if test "$host_cpu" = ia64; then
8423    symcode='[ABCDGIRSTW]'
8424    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8425    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
8426  fi
8427  ;;
8428irix* | nonstopux*)
8429  symcode='[BCDEGRST]'
8430  ;;
8431osf*)
8432  symcode='[BCDEGQRST]'
8433  ;;
8434solaris*)
8435  symcode='[BDRT]'
8436  ;;
8437sco3.2v5*)
8438  symcode='[DT]'
8439  ;;
8440sysv4.2uw2*)
8441  symcode='[DT]'
8442  ;;
8443sysv5* | sco5v6* | unixware* | OpenUNIX*)
8444  symcode='[ABDT]'
8445  ;;
8446sysv4)
8447  symcode='[DFNSTU]'
8448  ;;
8449esac
8450
8451# Handle CRLF in mingw tool chain
8452opt_cr=
8453case $build_os in
8454mingw*)
8455  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8456  ;;
8457esac
8458
8459# If we're using GNU nm, then use its standard symbol codes.
8460case `$NM -V 2>&1` in
8461*GNU* | *'with BFD'*)
8462  symcode='[ABCDGIRSTW]' ;;
8463esac
8464
8465# Try without a prefix undercore, then with it.
8466for ac_symprfx in "" "_"; do
8467
8468  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8469  symxfrm="\\1 $ac_symprfx\\2 \\2"
8470
8471  # Write the raw and C identifiers.
8472  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8473
8474  # Check to see that the pipe works correctly.
8475  pipe_works=no
8476
8477  rm -f conftest*
8478  cat > conftest.$ac_ext <<EOF
8479#ifdef __cplusplus
8480extern "C" {
8481#endif
8482char nm_test_var;
8483void nm_test_func(){}
8484#ifdef __cplusplus
8485}
8486#endif
8487int main(){nm_test_var='a';nm_test_func();return(0);}
8488EOF
8489
8490  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8491  (eval $ac_compile) 2>&5
8492  ac_status=$?
8493  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494  (exit $ac_status); }; then
8495    # Now try to grab the symbols.
8496    nlist=conftest.nm
8497    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8498  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8499  ac_status=$?
8500  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501  (exit $ac_status); } && test -s "$nlist"; then
8502      # Try sorting and uniquifying the output.
8503      if sort "$nlist" | uniq > "$nlist"T; then
8504	mv -f "$nlist"T "$nlist"
8505      else
8506	rm -f "$nlist"T
8507      fi
8508
8509      # Make sure that we snagged all the symbols we need.
8510      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8511	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8512	  cat <<EOF > conftest.$ac_ext
8513#ifdef __cplusplus
8514extern "C" {
8515#endif
8516
8517EOF
8518	  # Now generate the symbol file.
8519	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8520
8521	  cat <<EOF >> conftest.$ac_ext
8522#if defined (__STDC__) && __STDC__
8523# define lt_ptr_t void *
8524#else
8525# define lt_ptr_t char *
8526# define const
8527#endif
8528
8529/* The mapping between symbol names and symbols. */
8530const struct {
8531  const char *name;
8532  lt_ptr_t address;
8533}
8534lt_preloaded_symbols[] =
8535{
8536EOF
8537	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8538	  cat <<\EOF >> conftest.$ac_ext
8539  {0, (lt_ptr_t) 0}
8540};
8541
8542#ifdef __cplusplus
8543}
8544#endif
8545EOF
8546	  # Now try linking the two files.
8547	  mv conftest.$ac_objext conftstm.$ac_objext
8548	  lt_save_LIBS="$LIBS"
8549	  lt_save_CFLAGS="$CFLAGS"
8550	  LIBS="conftstm.$ac_objext"
8551	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8552	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8553  (eval $ac_link) 2>&5
8554  ac_status=$?
8555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8557	    pipe_works=yes
8558	  fi
8559	  LIBS="$lt_save_LIBS"
8560	  CFLAGS="$lt_save_CFLAGS"
8561	else
8562	  echo "cannot find nm_test_func in $nlist" >&5
8563	fi
8564      else
8565	echo "cannot find nm_test_var in $nlist" >&5
8566      fi
8567    else
8568      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8569    fi
8570  else
8571    echo "$progname: failed program was:" >&5
8572    cat conftest.$ac_ext >&5
8573  fi
8574  rm -f conftest* conftst*
8575
8576  # Do not use the global_symbol_pipe unless it works.
8577  if test "$pipe_works" = yes; then
8578    break
8579  else
8580    lt_cv_sys_global_symbol_pipe=
8581  fi
8582done
8583
8584fi
8585
8586if test -z "$lt_cv_sys_global_symbol_pipe"; then
8587  lt_cv_sys_global_symbol_to_cdecl=
8588fi
8589if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8590  { $as_echo "$as_me:$LINENO: result: failed" >&5
8591$as_echo "failed" >&6; }
8592else
8593  { $as_echo "$as_me:$LINENO: result: ok" >&5
8594$as_echo "ok" >&6; }
8595fi
8596
8597{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8598$as_echo_n "checking for objdir... " >&6; }
8599if test "${lt_cv_objdir+set}" = set; then
8600  $as_echo_n "(cached) " >&6
8601else
8602  rm -f .libs 2>/dev/null
8603mkdir .libs 2>/dev/null
8604if test -d .libs; then
8605  lt_cv_objdir=.libs
8606else
8607  # MS-DOS does not allow filenames that begin with a dot.
8608  lt_cv_objdir=_libs
8609fi
8610rmdir .libs 2>/dev/null
8611fi
8612{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8613$as_echo "$lt_cv_objdir" >&6; }
8614objdir=$lt_cv_objdir
8615
8616
8617
8618
8619
8620case $host_os in
8621aix3*)
8622  # AIX sometimes has problems with the GCC collect2 program.  For some
8623  # reason, if we set the COLLECT_NAMES environment variable, the problems
8624  # vanish in a puff of smoke.
8625  if test "X${COLLECT_NAMES+set}" != Xset; then
8626    COLLECT_NAMES=
8627    export COLLECT_NAMES
8628  fi
8629  ;;
8630esac
8631
8632# Sed substitution that helps us do robust quoting.  It backslashifies
8633# metacharacters that are still active within double-quoted strings.
8634Xsed='sed -e 1s/^X//'
8635sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8636
8637# Same as above, but do not quote variable references.
8638double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8639
8640# Sed substitution to delay expansion of an escaped shell variable in a
8641# double_quote_subst'ed string.
8642delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8643
8644# Sed substitution to avoid accidental globbing in evaled expressions
8645no_glob_subst='s/\*/\\\*/g'
8646
8647# Constants:
8648rm="rm -f"
8649
8650# Global variables:
8651default_ofile=libtool
8652can_build_shared=yes
8653
8654# All known linkers require a `.a' archive for static linking (except MSVC,
8655# which needs '.lib').
8656libext=a
8657ltmain="$ac_aux_dir/ltmain.sh"
8658ofile="$default_ofile"
8659with_gnu_ld="$lt_cv_prog_gnu_ld"
8660
8661if test -n "$ac_tool_prefix"; then
8662  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8663set dummy ${ac_tool_prefix}ar; ac_word=$2
8664{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8665$as_echo_n "checking for $ac_word... " >&6; }
8666if test "${ac_cv_prog_AR+set}" = set; then
8667  $as_echo_n "(cached) " >&6
8668else
8669  if test -n "$AR"; then
8670  ac_cv_prog_AR="$AR" # Let the user override the test.
8671else
8672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673for as_dir in $PATH
8674do
8675  IFS=$as_save_IFS
8676  test -z "$as_dir" && as_dir=.
8677  for ac_exec_ext in '' $ac_executable_extensions; do
8678  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8679    ac_cv_prog_AR="${ac_tool_prefix}ar"
8680    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8681    break 2
8682  fi
8683done
8684done
8685IFS=$as_save_IFS
8686
8687fi
8688fi
8689AR=$ac_cv_prog_AR
8690if test -n "$AR"; then
8691  { $as_echo "$as_me:$LINENO: result: $AR" >&5
8692$as_echo "$AR" >&6; }
8693else
8694  { $as_echo "$as_me:$LINENO: result: no" >&5
8695$as_echo "no" >&6; }
8696fi
8697
8698
8699fi
8700if test -z "$ac_cv_prog_AR"; then
8701  ac_ct_AR=$AR
8702  # Extract the first word of "ar", so it can be a program name with args.
8703set dummy ar; ac_word=$2
8704{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8705$as_echo_n "checking for $ac_word... " >&6; }
8706if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8707  $as_echo_n "(cached) " >&6
8708else
8709  if test -n "$ac_ct_AR"; then
8710  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8711else
8712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8713for as_dir in $PATH
8714do
8715  IFS=$as_save_IFS
8716  test -z "$as_dir" && as_dir=.
8717  for ac_exec_ext in '' $ac_executable_extensions; do
8718  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8719    ac_cv_prog_ac_ct_AR="ar"
8720    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8721    break 2
8722  fi
8723done
8724done
8725IFS=$as_save_IFS
8726
8727fi
8728fi
8729ac_ct_AR=$ac_cv_prog_ac_ct_AR
8730if test -n "$ac_ct_AR"; then
8731  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8732$as_echo "$ac_ct_AR" >&6; }
8733else
8734  { $as_echo "$as_me:$LINENO: result: no" >&5
8735$as_echo "no" >&6; }
8736fi
8737
8738  if test "x$ac_ct_AR" = x; then
8739    AR="false"
8740  else
8741    case $cross_compiling:$ac_tool_warned in
8742yes:)
8743{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8744$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8745ac_tool_warned=yes ;;
8746esac
8747    AR=$ac_ct_AR
8748  fi
8749else
8750  AR="$ac_cv_prog_AR"
8751fi
8752
8753if test -n "$ac_tool_prefix"; then
8754  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8755set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8756{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8757$as_echo_n "checking for $ac_word... " >&6; }
8758if test "${ac_cv_prog_RANLIB+set}" = set; then
8759  $as_echo_n "(cached) " >&6
8760else
8761  if test -n "$RANLIB"; then
8762  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8763else
8764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765for as_dir in $PATH
8766do
8767  IFS=$as_save_IFS
8768  test -z "$as_dir" && as_dir=.
8769  for ac_exec_ext in '' $ac_executable_extensions; do
8770  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8772    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8773    break 2
8774  fi
8775done
8776done
8777IFS=$as_save_IFS
8778
8779fi
8780fi
8781RANLIB=$ac_cv_prog_RANLIB
8782if test -n "$RANLIB"; then
8783  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
8784$as_echo "$RANLIB" >&6; }
8785else
8786  { $as_echo "$as_me:$LINENO: result: no" >&5
8787$as_echo "no" >&6; }
8788fi
8789
8790
8791fi
8792if test -z "$ac_cv_prog_RANLIB"; then
8793  ac_ct_RANLIB=$RANLIB
8794  # Extract the first word of "ranlib", so it can be a program name with args.
8795set dummy ranlib; ac_word=$2
8796{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8797$as_echo_n "checking for $ac_word... " >&6; }
8798if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8799  $as_echo_n "(cached) " >&6
8800else
8801  if test -n "$ac_ct_RANLIB"; then
8802  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8803else
8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807  IFS=$as_save_IFS
8808  test -z "$as_dir" && as_dir=.
8809  for ac_exec_ext in '' $ac_executable_extensions; do
8810  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8811    ac_cv_prog_ac_ct_RANLIB="ranlib"
8812    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8813    break 2
8814  fi
8815done
8816done
8817IFS=$as_save_IFS
8818
8819fi
8820fi
8821ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8822if test -n "$ac_ct_RANLIB"; then
8823  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8824$as_echo "$ac_ct_RANLIB" >&6; }
8825else
8826  { $as_echo "$as_me:$LINENO: result: no" >&5
8827$as_echo "no" >&6; }
8828fi
8829
8830  if test "x$ac_ct_RANLIB" = x; then
8831    RANLIB=":"
8832  else
8833    case $cross_compiling:$ac_tool_warned in
8834yes:)
8835{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8836$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8837ac_tool_warned=yes ;;
8838esac
8839    RANLIB=$ac_ct_RANLIB
8840  fi
8841else
8842  RANLIB="$ac_cv_prog_RANLIB"
8843fi
8844
8845if test -n "$ac_tool_prefix"; then
8846  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8847set dummy ${ac_tool_prefix}strip; ac_word=$2
8848{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8849$as_echo_n "checking for $ac_word... " >&6; }
8850if test "${ac_cv_prog_STRIP+set}" = set; then
8851  $as_echo_n "(cached) " >&6
8852else
8853  if test -n "$STRIP"; then
8854  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8855else
8856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8857for as_dir in $PATH
8858do
8859  IFS=$as_save_IFS
8860  test -z "$as_dir" && as_dir=.
8861  for ac_exec_ext in '' $ac_executable_extensions; do
8862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8863    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8864    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8865    break 2
8866  fi
8867done
8868done
8869IFS=$as_save_IFS
8870
8871fi
8872fi
8873STRIP=$ac_cv_prog_STRIP
8874if test -n "$STRIP"; then
8875  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
8876$as_echo "$STRIP" >&6; }
8877else
8878  { $as_echo "$as_me:$LINENO: result: no" >&5
8879$as_echo "no" >&6; }
8880fi
8881
8882
8883fi
8884if test -z "$ac_cv_prog_STRIP"; then
8885  ac_ct_STRIP=$STRIP
8886  # Extract the first word of "strip", so it can be a program name with args.
8887set dummy strip; ac_word=$2
8888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8889$as_echo_n "checking for $ac_word... " >&6; }
8890if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8891  $as_echo_n "(cached) " >&6
8892else
8893  if test -n "$ac_ct_STRIP"; then
8894  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8895else
8896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897for as_dir in $PATH
8898do
8899  IFS=$as_save_IFS
8900  test -z "$as_dir" && as_dir=.
8901  for ac_exec_ext in '' $ac_executable_extensions; do
8902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8903    ac_cv_prog_ac_ct_STRIP="strip"
8904    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8905    break 2
8906  fi
8907done
8908done
8909IFS=$as_save_IFS
8910
8911fi
8912fi
8913ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8914if test -n "$ac_ct_STRIP"; then
8915  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8916$as_echo "$ac_ct_STRIP" >&6; }
8917else
8918  { $as_echo "$as_me:$LINENO: result: no" >&5
8919$as_echo "no" >&6; }
8920fi
8921
8922  if test "x$ac_ct_STRIP" = x; then
8923    STRIP=":"
8924  else
8925    case $cross_compiling:$ac_tool_warned in
8926yes:)
8927{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8929ac_tool_warned=yes ;;
8930esac
8931    STRIP=$ac_ct_STRIP
8932  fi
8933else
8934  STRIP="$ac_cv_prog_STRIP"
8935fi
8936
8937
8938old_CC="$CC"
8939old_CFLAGS="$CFLAGS"
8940
8941# Set sane defaults for various variables
8942test -z "$AR" && AR=ar
8943test -z "$AR_FLAGS" && AR_FLAGS=cru
8944test -z "$AS" && AS=as
8945test -z "$CC" && CC=cc
8946test -z "$LTCC" && LTCC=$CC
8947test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8948test -z "$DLLTOOL" && DLLTOOL=dlltool
8949test -z "$LD" && LD=ld
8950test -z "$LN_S" && LN_S="ln -s"
8951test -z "$MAGIC_CMD" && MAGIC_CMD=file
8952test -z "$NM" && NM=nm
8953test -z "$SED" && SED=sed
8954test -z "$OBJDUMP" && OBJDUMP=objdump
8955test -z "$RANLIB" && RANLIB=:
8956test -z "$STRIP" && STRIP=:
8957test -z "$ac_objext" && ac_objext=o
8958
8959# Determine commands to create old-style static archives.
8960old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8961old_postinstall_cmds='chmod 644 $oldlib'
8962old_postuninstall_cmds=
8963
8964if test -n "$RANLIB"; then
8965  case $host_os in
8966  openbsd*)
8967    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8968    ;;
8969  *)
8970    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8971    ;;
8972  esac
8973  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8974fi
8975
8976for cc_temp in $compiler""; do
8977  case $cc_temp in
8978    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8979    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8980    \-*) ;;
8981    *) break;;
8982  esac
8983done
8984cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8985
8986
8987# Only perform the check for file, if the check method requires it
8988case $deplibs_check_method in
8989file_magic*)
8990  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8991    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8992$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8993if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8994  $as_echo_n "(cached) " >&6
8995else
8996  case $MAGIC_CMD in
8997[\\/*] |  ?:[\\/]*)
8998  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8999  ;;
9000*)
9001  lt_save_MAGIC_CMD="$MAGIC_CMD"
9002  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9003  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9004  for ac_dir in $ac_dummy; do
9005    IFS="$lt_save_ifs"
9006    test -z "$ac_dir" && ac_dir=.
9007    if test -f $ac_dir/${ac_tool_prefix}file; then
9008      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9009      if test -n "$file_magic_test_file"; then
9010	case $deplibs_check_method in
9011	"file_magic "*)
9012	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9013	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9014	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9015	    $EGREP "$file_magic_regex" > /dev/null; then
9016	    :
9017	  else
9018	    cat <<EOF 1>&2
9019
9020*** Warning: the command libtool uses to detect shared libraries,
9021*** $file_magic_cmd, produces output that libtool cannot recognize.
9022*** The result is that libtool may fail to recognize shared libraries
9023*** as such.  This will affect the creation of libtool libraries that
9024*** depend on shared libraries, but programs linked with such libtool
9025*** libraries will work regardless of this problem.  Nevertheless, you
9026*** may want to report the problem to your system manager and/or to
9027*** bug-libtool@gnu.org
9028
9029EOF
9030	  fi ;;
9031	esac
9032      fi
9033      break
9034    fi
9035  done
9036  IFS="$lt_save_ifs"
9037  MAGIC_CMD="$lt_save_MAGIC_CMD"
9038  ;;
9039esac
9040fi
9041
9042MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9043if test -n "$MAGIC_CMD"; then
9044  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9045$as_echo "$MAGIC_CMD" >&6; }
9046else
9047  { $as_echo "$as_me:$LINENO: result: no" >&5
9048$as_echo "no" >&6; }
9049fi
9050
9051if test -z "$lt_cv_path_MAGIC_CMD"; then
9052  if test -n "$ac_tool_prefix"; then
9053    { $as_echo "$as_me:$LINENO: checking for file" >&5
9054$as_echo_n "checking for file... " >&6; }
9055if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9056  $as_echo_n "(cached) " >&6
9057else
9058  case $MAGIC_CMD in
9059[\\/*] |  ?:[\\/]*)
9060  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9061  ;;
9062*)
9063  lt_save_MAGIC_CMD="$MAGIC_CMD"
9064  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9065  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9066  for ac_dir in $ac_dummy; do
9067    IFS="$lt_save_ifs"
9068    test -z "$ac_dir" && ac_dir=.
9069    if test -f $ac_dir/file; then
9070      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9071      if test -n "$file_magic_test_file"; then
9072	case $deplibs_check_method in
9073	"file_magic "*)
9074	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9075	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9076	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9077	    $EGREP "$file_magic_regex" > /dev/null; then
9078	    :
9079	  else
9080	    cat <<EOF 1>&2
9081
9082*** Warning: the command libtool uses to detect shared libraries,
9083*** $file_magic_cmd, produces output that libtool cannot recognize.
9084*** The result is that libtool may fail to recognize shared libraries
9085*** as such.  This will affect the creation of libtool libraries that
9086*** depend on shared libraries, but programs linked with such libtool
9087*** libraries will work regardless of this problem.  Nevertheless, you
9088*** may want to report the problem to your system manager and/or to
9089*** bug-libtool@gnu.org
9090
9091EOF
9092	  fi ;;
9093	esac
9094      fi
9095      break
9096    fi
9097  done
9098  IFS="$lt_save_ifs"
9099  MAGIC_CMD="$lt_save_MAGIC_CMD"
9100  ;;
9101esac
9102fi
9103
9104MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9105if test -n "$MAGIC_CMD"; then
9106  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9107$as_echo "$MAGIC_CMD" >&6; }
9108else
9109  { $as_echo "$as_me:$LINENO: result: no" >&5
9110$as_echo "no" >&6; }
9111fi
9112
9113  else
9114    MAGIC_CMD=:
9115  fi
9116fi
9117
9118  fi
9119  ;;
9120esac
9121
9122enable_dlopen=no
9123enable_win32_dll=yes
9124
9125# Check whether --enable-libtool-lock was given.
9126if test "${enable_libtool_lock+set}" = set; then
9127  enableval=$enable_libtool_lock;
9128fi
9129
9130test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9131
9132
9133# Check whether --with-pic was given.
9134if test "${with_pic+set}" = set; then
9135  withval=$with_pic; pic_mode="$withval"
9136else
9137  pic_mode=default
9138fi
9139
9140test -z "$pic_mode" && pic_mode=default
9141
9142# Use C for the default configuration in the libtool script
9143tagname=
9144lt_save_CC="$CC"
9145ac_ext=c
9146ac_cpp='$CPP $CPPFLAGS'
9147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9149ac_compiler_gnu=$ac_cv_c_compiler_gnu
9150
9151
9152# Source file extension for C test sources.
9153ac_ext=c
9154
9155# Object file extension for compiled C test sources.
9156objext=o
9157objext=$objext
9158
9159# Code to be used in simple compile tests
9160lt_simple_compile_test_code="int some_variable = 0;"
9161
9162# Code to be used in simple link tests
9163lt_simple_link_test_code='int main(){return(0);}'
9164
9165
9166# If no C compiler was specified, use CC.
9167LTCC=${LTCC-"$CC"}
9168
9169# If no C compiler flags were specified, use CFLAGS.
9170LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9171
9172# Allow CC to be a program name with arguments.
9173compiler=$CC
9174
9175
9176# save warnings/boilerplate of simple test code
9177ac_outfile=conftest.$ac_objext
9178echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9179eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9180_lt_compiler_boilerplate=`cat conftest.err`
9181$rm conftest*
9182
9183ac_outfile=conftest.$ac_objext
9184echo "$lt_simple_link_test_code" >conftest.$ac_ext
9185eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9186_lt_linker_boilerplate=`cat conftest.err`
9187$rm conftest*
9188
9189
9190## CAVEAT EMPTOR:
9191## There is no encapsulation within the following macros, do not change
9192## the running order or otherwise move them around unless you know exactly
9193## what you are doing...
9194
9195lt_prog_compiler_no_builtin_flag=
9196
9197if test "$GCC" = yes; then
9198  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9199
9200
9201{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9202$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9203if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9204  $as_echo_n "(cached) " >&6
9205else
9206  lt_cv_prog_compiler_rtti_exceptions=no
9207  ac_outfile=conftest.$ac_objext
9208   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9209   lt_compiler_flag="-fno-rtti -fno-exceptions"
9210   # Insert the option either (1) after the last *FLAGS variable, or
9211   # (2) before a word containing "conftest.", or (3) at the end.
9212   # Note that $ac_compile itself does not contain backslashes and begins
9213   # with a dollar sign (not a hyphen), so the echo should work correctly.
9214   # The option is referenced via a variable to avoid confusing sed.
9215   lt_compile=`echo "$ac_compile" | $SED \
9216   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9217   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9218   -e 's:$: $lt_compiler_flag:'`
9219   (eval echo "\"\$as_me:9219: $lt_compile\"" >&5)
9220   (eval "$lt_compile" 2>conftest.err)
9221   ac_status=$?
9222   cat conftest.err >&5
9223   echo "$as_me:9223: \$? = $ac_status" >&5
9224   if (exit $ac_status) && test -s "$ac_outfile"; then
9225     # The compiler can only warn and ignore the option if not recognized
9226     # So say no if there are warnings other than the usual output.
9227     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9228     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9229     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9230       lt_cv_prog_compiler_rtti_exceptions=yes
9231     fi
9232   fi
9233   $rm conftest*
9234
9235fi
9236{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9237$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9238
9239if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9240    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9241else
9242    :
9243fi
9244
9245fi
9246
9247lt_prog_compiler_wl=
9248lt_prog_compiler_pic=
9249lt_prog_compiler_static=
9250
9251{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9252$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9253
9254  if test "$GCC" = yes; then
9255    lt_prog_compiler_wl='-Wl,'
9256    lt_prog_compiler_static='-static'
9257
9258    case $host_os in
9259      aix*)
9260      # All AIX code is PIC.
9261      if test "$host_cpu" = ia64; then
9262	# AIX 5 now supports IA64 processor
9263	lt_prog_compiler_static='-Bstatic'
9264      fi
9265      ;;
9266
9267    amigaos*)
9268      # FIXME: we need at least 68020 code to build shared libraries, but
9269      # adding the `-m68020' flag to GCC prevents building anything better,
9270      # like `-m68040'.
9271      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9272      ;;
9273
9274    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9275      # PIC is the default for these OSes.
9276      ;;
9277
9278    mingw* | cygwin* | pw32* | os2*)
9279      # This hack is so that the source file can tell whether it is being
9280      # built for inclusion in a dll (and should export symbols for example).
9281      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9282      # (--disable-auto-import) libraries
9283      lt_prog_compiler_pic='-DDLL_EXPORT'
9284      ;;
9285
9286    darwin* | rhapsody*)
9287      # PIC is the default on this platform
9288      # Common symbols not allowed in MH_DYLIB files
9289      lt_prog_compiler_pic='-fno-common'
9290      ;;
9291
9292    interix[3-9]*)
9293      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9294      # Instead, we relocate shared libraries at runtime.
9295      ;;
9296
9297    msdosdjgpp*)
9298      # Just because we use GCC doesn't mean we suddenly get shared libraries
9299      # on systems that don't support them.
9300      lt_prog_compiler_can_build_shared=no
9301      enable_shared=no
9302      ;;
9303
9304    sysv4*MP*)
9305      if test -d /usr/nec; then
9306	lt_prog_compiler_pic=-Kconform_pic
9307      fi
9308      ;;
9309
9310    hpux*)
9311      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9312      # not for PA HP-UX.
9313      case $host_cpu in
9314      hppa*64*|ia64*)
9315	# +Z the default
9316	;;
9317      *)
9318	lt_prog_compiler_pic='-fPIC'
9319	;;
9320      esac
9321      ;;
9322
9323    *)
9324      lt_prog_compiler_pic='-fPIC'
9325      ;;
9326    esac
9327  else
9328    # PORTME Check for flag to pass linker flags through the system compiler.
9329    case $host_os in
9330    aix*)
9331      lt_prog_compiler_wl='-Wl,'
9332      if test "$host_cpu" = ia64; then
9333	# AIX 5 now supports IA64 processor
9334	lt_prog_compiler_static='-Bstatic'
9335      else
9336	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9337      fi
9338      ;;
9339      darwin*)
9340        # PIC is the default on this platform
9341        # Common symbols not allowed in MH_DYLIB files
9342       case $cc_basename in
9343         xlc*)
9344         lt_prog_compiler_pic='-qnocommon'
9345         lt_prog_compiler_wl='-Wl,'
9346         ;;
9347       esac
9348       ;;
9349
9350    mingw* | cygwin* | pw32* | os2*)
9351      # This hack is so that the source file can tell whether it is being
9352      # built for inclusion in a dll (and should export symbols for example).
9353      lt_prog_compiler_pic='-DDLL_EXPORT'
9354      ;;
9355
9356    hpux9* | hpux10* | hpux11*)
9357      lt_prog_compiler_wl='-Wl,'
9358      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9359      # not for PA HP-UX.
9360      case $host_cpu in
9361      hppa*64*|ia64*)
9362	# +Z the default
9363	;;
9364      *)
9365	lt_prog_compiler_pic='+Z'
9366	;;
9367      esac
9368      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9369      lt_prog_compiler_static='${wl}-a ${wl}archive'
9370      ;;
9371
9372    irix5* | irix6* | nonstopux*)
9373      lt_prog_compiler_wl='-Wl,'
9374      # PIC (with -KPIC) is the default.
9375      lt_prog_compiler_static='-non_shared'
9376      ;;
9377
9378    newsos6)
9379      lt_prog_compiler_pic='-KPIC'
9380      lt_prog_compiler_static='-Bstatic'
9381      ;;
9382
9383    linux* | k*bsd*-gnu)
9384      case $cc_basename in
9385      icc* | ecc*)
9386	lt_prog_compiler_wl='-Wl,'
9387	lt_prog_compiler_pic='-KPIC'
9388	lt_prog_compiler_static='-static'
9389        ;;
9390      pgcc* | pgf77* | pgf90* | pgf95*)
9391        # Portland Group compilers (*not* the Pentium gcc compiler,
9392	# which looks to be a dead project)
9393	lt_prog_compiler_wl='-Wl,'
9394	lt_prog_compiler_pic='-fpic'
9395	lt_prog_compiler_static='-Bstatic'
9396        ;;
9397      ccc*)
9398        lt_prog_compiler_wl='-Wl,'
9399        # All Alpha code is PIC.
9400        lt_prog_compiler_static='-non_shared'
9401        ;;
9402      como)
9403        lt_prog_compiler_wl='-lopt='
9404        ;;
9405      *)
9406        case `$CC -V 2>&1 | sed 5q` in
9407	*Sun\ C*)
9408	  # Sun C 5.9
9409	  lt_prog_compiler_pic='-KPIC'
9410	  lt_prog_compiler_static='-Bstatic'
9411	  lt_prog_compiler_wl='-Wl,'
9412	  ;;
9413	*Sun\ F*)
9414	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9415	  lt_prog_compiler_pic='-KPIC'
9416	  lt_prog_compiler_static='-Bstatic'
9417	  lt_prog_compiler_wl=''
9418	  ;;
9419	esac
9420	;;
9421      esac
9422      ;;
9423
9424    osf3* | osf4* | osf5*)
9425      lt_prog_compiler_wl='-Wl,'
9426      # All OSF/1 code is PIC.
9427      lt_prog_compiler_static='-non_shared'
9428      ;;
9429
9430    rdos*)
9431      lt_prog_compiler_static='-non_shared'
9432      ;;
9433
9434    solaris*)
9435      lt_prog_compiler_pic='-KPIC'
9436      lt_prog_compiler_static='-Bstatic'
9437      case $cc_basename in
9438      f77* | f90* | f95*)
9439	lt_prog_compiler_wl='-Qoption ld ';;
9440      *)
9441	lt_prog_compiler_wl='-Wl,';;
9442      esac
9443      ;;
9444
9445    sunos4*)
9446      lt_prog_compiler_wl='-Qoption ld '
9447      lt_prog_compiler_pic='-PIC'
9448      lt_prog_compiler_static='-Bstatic'
9449      ;;
9450
9451    sysv4 | sysv4.2uw2* | sysv4.3*)
9452      lt_prog_compiler_wl='-Wl,'
9453      lt_prog_compiler_pic='-KPIC'
9454      lt_prog_compiler_static='-Bstatic'
9455      ;;
9456
9457    sysv4*MP*)
9458      if test -d /usr/nec ;then
9459	lt_prog_compiler_pic='-Kconform_pic'
9460	lt_prog_compiler_static='-Bstatic'
9461      fi
9462      ;;
9463
9464    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9465      lt_prog_compiler_wl='-Wl,'
9466      lt_prog_compiler_pic='-KPIC'
9467      lt_prog_compiler_static='-Bstatic'
9468      ;;
9469
9470    unicos*)
9471      lt_prog_compiler_wl='-Wl,'
9472      lt_prog_compiler_can_build_shared=no
9473      ;;
9474
9475    uts4*)
9476      lt_prog_compiler_pic='-pic'
9477      lt_prog_compiler_static='-Bstatic'
9478      ;;
9479
9480    *)
9481      lt_prog_compiler_can_build_shared=no
9482      ;;
9483    esac
9484  fi
9485
9486{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9487$as_echo "$lt_prog_compiler_pic" >&6; }
9488
9489#
9490# Check to make sure the PIC flag actually works.
9491#
9492if test -n "$lt_prog_compiler_pic"; then
9493
9494{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9495$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9496if test "${lt_prog_compiler_pic_works+set}" = set; then
9497  $as_echo_n "(cached) " >&6
9498else
9499  lt_prog_compiler_pic_works=no
9500  ac_outfile=conftest.$ac_objext
9501   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9502   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9503   # Insert the option either (1) after the last *FLAGS variable, or
9504   # (2) before a word containing "conftest.", or (3) at the end.
9505   # Note that $ac_compile itself does not contain backslashes and begins
9506   # with a dollar sign (not a hyphen), so the echo should work correctly.
9507   # The option is referenced via a variable to avoid confusing sed.
9508   lt_compile=`echo "$ac_compile" | $SED \
9509   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9510   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9511   -e 's:$: $lt_compiler_flag:'`
9512   (eval echo "\"\$as_me:9512: $lt_compile\"" >&5)
9513   (eval "$lt_compile" 2>conftest.err)
9514   ac_status=$?
9515   cat conftest.err >&5
9516   echo "$as_me:9516: \$? = $ac_status" >&5
9517   if (exit $ac_status) && test -s "$ac_outfile"; then
9518     # The compiler can only warn and ignore the option if not recognized
9519     # So say no if there are warnings other than the usual output.
9520     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9521     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9522     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9523       lt_prog_compiler_pic_works=yes
9524     fi
9525   fi
9526   $rm conftest*
9527
9528fi
9529{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9530$as_echo "$lt_prog_compiler_pic_works" >&6; }
9531
9532if test x"$lt_prog_compiler_pic_works" = xyes; then
9533    case $lt_prog_compiler_pic in
9534     "" | " "*) ;;
9535     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9536     esac
9537else
9538    lt_prog_compiler_pic=
9539     lt_prog_compiler_can_build_shared=no
9540fi
9541
9542fi
9543case $host_os in
9544  # For platforms which do not support PIC, -DPIC is meaningless:
9545  *djgpp*)
9546    lt_prog_compiler_pic=
9547    ;;
9548  *)
9549    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9550    ;;
9551esac
9552
9553#
9554# Check to make sure the static flag actually works.
9555#
9556wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9557{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9558$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9559if test "${lt_prog_compiler_static_works+set}" = set; then
9560  $as_echo_n "(cached) " >&6
9561else
9562  lt_prog_compiler_static_works=no
9563   save_LDFLAGS="$LDFLAGS"
9564   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9565   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9566   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9567     # The linker can only warn and ignore the option if not recognized
9568     # So say no if there are warnings
9569     if test -s conftest.err; then
9570       # Append any errors to the config.log.
9571       cat conftest.err 1>&5
9572       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9573       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9574       if diff conftest.exp conftest.er2 >/dev/null; then
9575         lt_prog_compiler_static_works=yes
9576       fi
9577     else
9578       lt_prog_compiler_static_works=yes
9579     fi
9580   fi
9581   $rm conftest*
9582   LDFLAGS="$save_LDFLAGS"
9583
9584fi
9585{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9586$as_echo "$lt_prog_compiler_static_works" >&6; }
9587
9588if test x"$lt_prog_compiler_static_works" = xyes; then
9589    :
9590else
9591    lt_prog_compiler_static=
9592fi
9593
9594
9595{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9596$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9597if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9598  $as_echo_n "(cached) " >&6
9599else
9600  lt_cv_prog_compiler_c_o=no
9601   $rm -r conftest 2>/dev/null
9602   mkdir conftest
9603   cd conftest
9604   mkdir out
9605   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9606
9607   lt_compiler_flag="-o out/conftest2.$ac_objext"
9608   # Insert the option either (1) after the last *FLAGS variable, or
9609   # (2) before a word containing "conftest.", or (3) at the end.
9610   # Note that $ac_compile itself does not contain backslashes and begins
9611   # with a dollar sign (not a hyphen), so the echo should work correctly.
9612   lt_compile=`echo "$ac_compile" | $SED \
9613   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9614   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9615   -e 's:$: $lt_compiler_flag:'`
9616   (eval echo "\"\$as_me:9616: $lt_compile\"" >&5)
9617   (eval "$lt_compile" 2>out/conftest.err)
9618   ac_status=$?
9619   cat out/conftest.err >&5
9620   echo "$as_me:9620: \$? = $ac_status" >&5
9621   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9622   then
9623     # The compiler can only warn and ignore the option if not recognized
9624     # So say no if there are warnings
9625     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9626     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9627     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9628       lt_cv_prog_compiler_c_o=yes
9629     fi
9630   fi
9631   chmod u+w . 2>&5
9632   $rm conftest*
9633   # SGI C++ compiler will create directory out/ii_files/ for
9634   # template instantiation
9635   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9636   $rm out/* && rmdir out
9637   cd ..
9638   rmdir conftest
9639   $rm conftest*
9640
9641fi
9642{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9643$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9644
9645
9646hard_links="nottested"
9647if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9648  # do not overwrite the value of need_locks provided by the user
9649  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9650$as_echo_n "checking if we can lock with hard links... " >&6; }
9651  hard_links=yes
9652  $rm conftest*
9653  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9654  touch conftest.a
9655  ln conftest.a conftest.b 2>&5 || hard_links=no
9656  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9657  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9658$as_echo "$hard_links" >&6; }
9659  if test "$hard_links" = no; then
9660    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9661$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9662    need_locks=warn
9663  fi
9664else
9665  need_locks=no
9666fi
9667
9668{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9669$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9670
9671  runpath_var=
9672  allow_undefined_flag=
9673  enable_shared_with_static_runtimes=no
9674  archive_cmds=
9675  archive_expsym_cmds=
9676  old_archive_From_new_cmds=
9677  old_archive_from_expsyms_cmds=
9678  export_dynamic_flag_spec=
9679  whole_archive_flag_spec=
9680  thread_safe_flag_spec=
9681  hardcode_libdir_flag_spec=
9682  hardcode_libdir_flag_spec_ld=
9683  hardcode_libdir_separator=
9684  hardcode_direct=no
9685  hardcode_minus_L=no
9686  hardcode_shlibpath_var=unsupported
9687  link_all_deplibs=unknown
9688  hardcode_automatic=no
9689  module_cmds=
9690  module_expsym_cmds=
9691  always_export_symbols=no
9692  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9693  # include_expsyms should be a list of space-separated symbols to be *always*
9694  # included in the symbol list
9695  include_expsyms=
9696  # exclude_expsyms can be an extended regexp of symbols to exclude
9697  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9698  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9699  # as well as any symbol that contains `d'.
9700  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9701  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9702  # platforms (ab)use it in PIC code, but their linkers get confused if
9703  # the symbol is explicitly referenced.  Since portable code cannot
9704  # rely on this symbol name, it's probably fine to never include it in
9705  # preloaded symbol tables.
9706  extract_expsyms_cmds=
9707  # Just being paranoid about ensuring that cc_basename is set.
9708  for cc_temp in $compiler""; do
9709  case $cc_temp in
9710    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9711    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9712    \-*) ;;
9713    *) break;;
9714  esac
9715done
9716cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9717
9718  case $host_os in
9719  cygwin* | mingw* | pw32*)
9720    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9721    # When not using gcc, we currently assume that we are using
9722    # Microsoft Visual C++.
9723    if test "$GCC" != yes; then
9724      with_gnu_ld=no
9725    fi
9726    ;;
9727  interix*)
9728    # we just hope/assume this is gcc and not c89 (= MSVC++)
9729    with_gnu_ld=yes
9730    ;;
9731  openbsd*)
9732    with_gnu_ld=no
9733    ;;
9734  esac
9735
9736  ld_shlibs=yes
9737  if test "$with_gnu_ld" = yes; then
9738    # If archive_cmds runs LD, not CC, wlarc should be empty
9739    wlarc='${wl}'
9740
9741    # Set some defaults for GNU ld with shared library support. These
9742    # are reset later if shared libraries are not supported. Putting them
9743    # here allows them to be overridden if necessary.
9744    runpath_var=LD_RUN_PATH
9745    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9746    export_dynamic_flag_spec='${wl}--export-dynamic'
9747    # ancient GNU ld didn't support --whole-archive et. al.
9748    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9749	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9750      else
9751  	whole_archive_flag_spec=
9752    fi
9753    supports_anon_versioning=no
9754    case `$LD -v 2>/dev/null` in
9755      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9756      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9757      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9758      *\ 2.11.*) ;; # other 2.11 versions
9759      *) supports_anon_versioning=yes ;;
9760    esac
9761
9762    # See if GNU ld supports shared libraries.
9763    case $host_os in
9764    aix3* | aix4* | aix5*)
9765      # On AIX/PPC, the GNU linker is very broken
9766      if test "$host_cpu" != ia64; then
9767	ld_shlibs=no
9768	cat <<EOF 1>&2
9769
9770*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9771*** to be unable to reliably create shared libraries on AIX.
9772*** Therefore, libtool is disabling shared libraries support.  If you
9773*** really care for shared libraries, you may want to modify your PATH
9774*** so that a non-GNU linker is found, and then restart.
9775
9776EOF
9777      fi
9778      ;;
9779
9780    amigaos*)
9781      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9782      hardcode_libdir_flag_spec='-L$libdir'
9783      hardcode_minus_L=yes
9784
9785      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9786      # that the semantics of dynamic libraries on AmigaOS, at least up
9787      # to version 4, is to share data among multiple programs linked
9788      # with the same dynamic library.  Since this doesn't match the
9789      # behavior of shared libraries on other platforms, we can't use
9790      # them.
9791      ld_shlibs=no
9792      ;;
9793
9794    beos*)
9795      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9796	allow_undefined_flag=unsupported
9797	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9798	# support --undefined.  This deserves some investigation.  FIXME
9799	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800      else
9801	ld_shlibs=no
9802      fi
9803      ;;
9804
9805    cygwin* | mingw* | pw32*)
9806      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9807      # as there is no search path for DLLs.
9808      hardcode_libdir_flag_spec='-L$libdir'
9809      allow_undefined_flag=unsupported
9810      always_export_symbols=no
9811      enable_shared_with_static_runtimes=yes
9812      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9813
9814      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9815        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9816	# If the export-symbols file already is a .def file (1st line
9817	# is EXPORTS), use it as is; otherwise, prepend...
9818	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9819	  cp $export_symbols $output_objdir/$soname.def;
9820	else
9821	  echo EXPORTS > $output_objdir/$soname.def;
9822	  cat $export_symbols >> $output_objdir/$soname.def;
9823	fi~
9824	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9825      else
9826	ld_shlibs=no
9827      fi
9828      ;;
9829
9830    interix[3-9]*)
9831      hardcode_direct=no
9832      hardcode_shlibpath_var=no
9833      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9834      export_dynamic_flag_spec='${wl}-E'
9835      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9836      # Instead, shared libraries are loaded at an image base (0x10000000 by
9837      # default) and relocated if they conflict, which is a slow very memory
9838      # consuming and fragmenting process.  To avoid this, we pick a random,
9839      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9840      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9841      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9842      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9843      ;;
9844
9845    gnu* | linux* | k*bsd*-gnu)
9846      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9847	tmp_addflag=
9848	case $cc_basename,$host_cpu in
9849	pgcc*)				# Portland Group C compiler
9850	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9851	  tmp_addflag=' $pic_flag'
9852	  ;;
9853	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9854	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9855	  tmp_addflag=' $pic_flag -Mnomain' ;;
9856	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
9857	  tmp_addflag=' -i_dynamic' ;;
9858	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9859	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9860	ifc* | ifort*)			# Intel Fortran compiler
9861	  tmp_addflag=' -nofor_main' ;;
9862	esac
9863	case `$CC -V 2>&1 | sed 5q` in
9864	*Sun\ C*)			# Sun C 5.9
9865	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9866	  tmp_sharedflag='-G' ;;
9867	*Sun\ F*)			# Sun Fortran 8.3
9868	  tmp_sharedflag='-G' ;;
9869	*)
9870	  tmp_sharedflag='-shared' ;;
9871	esac
9872	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9873
9874	if test $supports_anon_versioning = yes; then
9875	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9876  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9877  $echo "local: *; };" >> $output_objdir/$libname.ver~
9878	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9879	fi
9880      else
9881	ld_shlibs=no
9882      fi
9883      ;;
9884
9885    netbsd*)
9886      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9887	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9888	wlarc=
9889      else
9890	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9891	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9892      fi
9893      ;;
9894
9895    solaris*)
9896      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9897	ld_shlibs=no
9898	cat <<EOF 1>&2
9899
9900*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9901*** create shared libraries on Solaris systems.  Therefore, libtool
9902*** is disabling shared libraries support.  We urge you to upgrade GNU
9903*** binutils to release 2.9.1 or newer.  Another option is to modify
9904*** your PATH or compiler configuration so that the native linker is
9905*** used, and then restart.
9906
9907EOF
9908      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9909	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9910	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9911      else
9912	ld_shlibs=no
9913      fi
9914      ;;
9915
9916    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9917      case `$LD -v 2>&1` in
9918        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9919	ld_shlibs=no
9920	cat <<_LT_EOF 1>&2
9921
9922*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9923*** reliably create shared libraries on SCO systems.  Therefore, libtool
9924*** is disabling shared libraries support.  We urge you to upgrade GNU
9925*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9926*** your PATH or compiler configuration so that the native linker is
9927*** used, and then restart.
9928
9929_LT_EOF
9930	;;
9931	*)
9932	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9933	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9934	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9935	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9936	  else
9937	    ld_shlibs=no
9938	  fi
9939	;;
9940      esac
9941      ;;
9942
9943    sunos4*)
9944      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9945      wlarc=
9946      hardcode_direct=yes
9947      hardcode_shlibpath_var=no
9948      ;;
9949
9950    *)
9951      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9952	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9954      else
9955	ld_shlibs=no
9956      fi
9957      ;;
9958    esac
9959
9960    if test "$ld_shlibs" = no; then
9961      runpath_var=
9962      hardcode_libdir_flag_spec=
9963      export_dynamic_flag_spec=
9964      whole_archive_flag_spec=
9965    fi
9966  else
9967    # PORTME fill in a description of your system's linker (not GNU ld)
9968    case $host_os in
9969    aix3*)
9970      allow_undefined_flag=unsupported
9971      always_export_symbols=yes
9972      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9973      # Note: this linker hardcodes the directories in LIBPATH if there
9974      # are no directories specified by -L.
9975      hardcode_minus_L=yes
9976      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9977	# Neither direct hardcoding nor static linking is supported with a
9978	# broken collect2.
9979	hardcode_direct=unsupported
9980      fi
9981      ;;
9982
9983    aix4* | aix5*)
9984      if test "$host_cpu" = ia64; then
9985	# On IA64, the linker does run time linking by default, so we don't
9986	# have to do anything special.
9987	aix_use_runtimelinking=no
9988	exp_sym_flag='-Bexport'
9989	no_entry_flag=""
9990      else
9991	# If we're using GNU nm, then we don't want the "-C" option.
9992	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9993	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9994	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9995	else
9996	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
9997	fi
9998	aix_use_runtimelinking=no
9999
10000	# Test if we are trying to use run time linking or normal
10001	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10002	# need to do runtime linking.
10003	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10004	  for ld_flag in $LDFLAGS; do
10005  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10006  	    aix_use_runtimelinking=yes
10007  	    break
10008  	  fi
10009	  done
10010	  ;;
10011	esac
10012
10013	exp_sym_flag='-bexport'
10014	no_entry_flag='-bnoentry'
10015      fi
10016
10017      # When large executables or shared objects are built, AIX ld can
10018      # have problems creating the table of contents.  If linking a library
10019      # or program results in "error TOC overflow" add -mminimal-toc to
10020      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10021      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10022
10023      archive_cmds=''
10024      hardcode_direct=yes
10025      hardcode_libdir_separator=':'
10026      link_all_deplibs=yes
10027
10028      if test "$GCC" = yes; then
10029	case $host_os in aix4.[012]|aix4.[012].*)
10030	# We only want to do this on AIX 4.2 and lower, the check
10031	# below for broken collect2 doesn't work under 4.3+
10032	  collect2name=`${CC} -print-prog-name=collect2`
10033	  if test -f "$collect2name" && \
10034  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10035	  then
10036  	  # We have reworked collect2
10037  	  :
10038	  else
10039  	  # We have old collect2
10040  	  hardcode_direct=unsupported
10041  	  # It fails to find uninstalled libraries when the uninstalled
10042  	  # path is not listed in the libpath.  Setting hardcode_minus_L
10043  	  # to unsupported forces relinking
10044  	  hardcode_minus_L=yes
10045  	  hardcode_libdir_flag_spec='-L$libdir'
10046  	  hardcode_libdir_separator=
10047	  fi
10048	  ;;
10049	esac
10050	shared_flag='-shared'
10051	if test "$aix_use_runtimelinking" = yes; then
10052	  shared_flag="$shared_flag "'${wl}-G'
10053	fi
10054      else
10055	# not using gcc
10056	if test "$host_cpu" = ia64; then
10057  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10058  	# chokes on -Wl,-G. The following line is correct:
10059	  shared_flag='-G'
10060	else
10061	  if test "$aix_use_runtimelinking" = yes; then
10062	    shared_flag='${wl}-G'
10063	  else
10064	    shared_flag='${wl}-bM:SRE'
10065	  fi
10066	fi
10067      fi
10068
10069      # It seems that -bexpall does not export symbols beginning with
10070      # underscore (_), so it is better to generate a list of symbols to export.
10071      always_export_symbols=yes
10072      if test "$aix_use_runtimelinking" = yes; then
10073	# Warning - without using the other runtime loading flags (-brtl),
10074	# -berok will link without error, but may produce a broken library.
10075	allow_undefined_flag='-berok'
10076       # Determine the default libpath from the value encoded in an empty executable.
10077       cat >conftest.$ac_ext <<_ACEOF
10078/* confdefs.h.  */
10079_ACEOF
10080cat confdefs.h >>conftest.$ac_ext
10081cat >>conftest.$ac_ext <<_ACEOF
10082/* end confdefs.h.  */
10083
10084int
10085main ()
10086{
10087
10088  ;
10089  return 0;
10090}
10091_ACEOF
10092rm -f conftest.$ac_objext conftest$ac_exeext
10093if { (ac_try="$ac_link"
10094case "(($ac_try" in
10095  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096  *) ac_try_echo=$ac_try;;
10097esac
10098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10099$as_echo "$ac_try_echo") >&5
10100  (eval "$ac_link") 2>conftest.er1
10101  ac_status=$?
10102  grep -v '^ *+' conftest.er1 >conftest.err
10103  rm -f conftest.er1
10104  cat conftest.err >&5
10105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106  (exit $ac_status); } && {
10107	 test -z "$ac_c_werror_flag" ||
10108	 test ! -s conftest.err
10109       } && test -s conftest$ac_exeext && {
10110	 test "$cross_compiling" = yes ||
10111	 $as_test_x conftest$ac_exeext
10112       }; then
10113
10114lt_aix_libpath_sed='
10115    /Import File Strings/,/^$/ {
10116	/^0/ {
10117	    s/^0  *\(.*\)$/\1/
10118	    p
10119	}
10120    }'
10121aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10122# Check for a 64-bit object if we didn't find anything.
10123if test -z "$aix_libpath"; then
10124  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10125fi
10126else
10127  $as_echo "$as_me: failed program was:" >&5
10128sed 's/^/| /' conftest.$ac_ext >&5
10129
10130
10131fi
10132
10133rm -rf conftest.dSYM
10134rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10135      conftest$ac_exeext conftest.$ac_ext
10136if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10137
10138       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10139	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10140       else
10141	if test "$host_cpu" = ia64; then
10142	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10143	  allow_undefined_flag="-z nodefs"
10144	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10145	else
10146	 # Determine the default libpath from the value encoded in an empty executable.
10147	 cat >conftest.$ac_ext <<_ACEOF
10148/* confdefs.h.  */
10149_ACEOF
10150cat confdefs.h >>conftest.$ac_ext
10151cat >>conftest.$ac_ext <<_ACEOF
10152/* end confdefs.h.  */
10153
10154int
10155main ()
10156{
10157
10158  ;
10159  return 0;
10160}
10161_ACEOF
10162rm -f conftest.$ac_objext conftest$ac_exeext
10163if { (ac_try="$ac_link"
10164case "(($ac_try" in
10165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166  *) ac_try_echo=$ac_try;;
10167esac
10168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10169$as_echo "$ac_try_echo") >&5
10170  (eval "$ac_link") 2>conftest.er1
10171  ac_status=$?
10172  grep -v '^ *+' conftest.er1 >conftest.err
10173  rm -f conftest.er1
10174  cat conftest.err >&5
10175  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176  (exit $ac_status); } && {
10177	 test -z "$ac_c_werror_flag" ||
10178	 test ! -s conftest.err
10179       } && test -s conftest$ac_exeext && {
10180	 test "$cross_compiling" = yes ||
10181	 $as_test_x conftest$ac_exeext
10182       }; then
10183
10184lt_aix_libpath_sed='
10185    /Import File Strings/,/^$/ {
10186	/^0/ {
10187	    s/^0  *\(.*\)$/\1/
10188	    p
10189	}
10190    }'
10191aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10192# Check for a 64-bit object if we didn't find anything.
10193if test -z "$aix_libpath"; then
10194  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10195fi
10196else
10197  $as_echo "$as_me: failed program was:" >&5
10198sed 's/^/| /' conftest.$ac_ext >&5
10199
10200
10201fi
10202
10203rm -rf conftest.dSYM
10204rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205      conftest$ac_exeext conftest.$ac_ext
10206if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10207
10208	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10209	  # Warning - without using the other run time loading flags,
10210	  # -berok will link without error, but may produce a broken library.
10211	  no_undefined_flag=' ${wl}-bernotok'
10212	  allow_undefined_flag=' ${wl}-berok'
10213	  # Exported symbols can be pulled into shared objects from archives
10214	  whole_archive_flag_spec='$convenience'
10215	  archive_cmds_need_lc=yes
10216	  # This is similar to how AIX traditionally builds its shared libraries.
10217	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10218	fi
10219      fi
10220      ;;
10221
10222    amigaos*)
10223      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10224      hardcode_libdir_flag_spec='-L$libdir'
10225      hardcode_minus_L=yes
10226      # see comment about different semantics on the GNU ld section
10227      ld_shlibs=no
10228      ;;
10229
10230    bsdi[45]*)
10231      export_dynamic_flag_spec=-rdynamic
10232      ;;
10233
10234    cygwin* | mingw* | pw32*)
10235      # When not using gcc, we currently assume that we are using
10236      # Microsoft Visual C++.
10237      # hardcode_libdir_flag_spec is actually meaningless, as there is
10238      # no search path for DLLs.
10239      hardcode_libdir_flag_spec=' '
10240      allow_undefined_flag=unsupported
10241      # Tell ltmain to make .lib files, not .a files.
10242      libext=lib
10243      # Tell ltmain to make .dll files, not .so files.
10244      shrext_cmds=".dll"
10245      # FIXME: Setting linknames here is a bad hack.
10246      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10247      # The linker will automatically build a .lib file if we build a DLL.
10248      old_archive_From_new_cmds='true'
10249      # FIXME: Should let the user specify the lib program.
10250      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10251      fix_srcfile_path='`cygpath -w "$srcfile"`'
10252      enable_shared_with_static_runtimes=yes
10253      ;;
10254
10255    darwin* | rhapsody*)
10256      case $host_os in
10257        rhapsody* | darwin1.[012])
10258         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10259         ;;
10260       *) # Darwin 1.3 on
10261         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10262           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10263         else
10264           case ${MACOSX_DEPLOYMENT_TARGET} in
10265             10.[012])
10266               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10267               ;;
10268             10.*)
10269               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10270               ;;
10271           esac
10272         fi
10273         ;;
10274      esac
10275      archive_cmds_need_lc=no
10276      hardcode_direct=no
10277      hardcode_automatic=yes
10278      hardcode_shlibpath_var=unsupported
10279      whole_archive_flag_spec=''
10280      link_all_deplibs=yes
10281    if test "$GCC" = yes ; then
10282    	output_verbose_link_cmd='echo'
10283        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10284      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10285      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10286      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10287      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10288    else
10289      case $cc_basename in
10290        xlc*)
10291         output_verbose_link_cmd='echo'
10292         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
10293         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10294          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10295         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10296          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10297          ;;
10298       *)
10299         ld_shlibs=no
10300          ;;
10301      esac
10302    fi
10303      ;;
10304
10305    dgux*)
10306      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307      hardcode_libdir_flag_spec='-L$libdir'
10308      hardcode_shlibpath_var=no
10309      ;;
10310
10311    freebsd1*)
10312      ld_shlibs=no
10313      ;;
10314
10315    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10316    # support.  Future versions do this automatically, but an explicit c++rt0.o
10317    # does not break anything, and helps significantly (at the cost of a little
10318    # extra space).
10319    freebsd2.2*)
10320      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10321      hardcode_libdir_flag_spec='-R$libdir'
10322      hardcode_direct=yes
10323      hardcode_shlibpath_var=no
10324      ;;
10325
10326    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10327    freebsd2*)
10328      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10329      hardcode_direct=yes
10330      hardcode_minus_L=yes
10331      hardcode_shlibpath_var=no
10332      ;;
10333
10334    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10335    freebsd* | dragonfly*)
10336      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10337      hardcode_libdir_flag_spec='-R$libdir'
10338      hardcode_direct=yes
10339      hardcode_shlibpath_var=no
10340      ;;
10341
10342    hpux9*)
10343      if test "$GCC" = yes; then
10344	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10345      else
10346	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10347      fi
10348      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10349      hardcode_libdir_separator=:
10350      hardcode_direct=yes
10351
10352      # hardcode_minus_L: Not really in the search PATH,
10353      # but as the default location of the library.
10354      hardcode_minus_L=yes
10355      export_dynamic_flag_spec='${wl}-E'
10356      ;;
10357
10358    hpux10*)
10359      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10360	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10361      else
10362	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10363      fi
10364      if test "$with_gnu_ld" = no; then
10365	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10366	hardcode_libdir_separator=:
10367
10368	hardcode_direct=yes
10369	export_dynamic_flag_spec='${wl}-E'
10370
10371	# hardcode_minus_L: Not really in the search PATH,
10372	# but as the default location of the library.
10373	hardcode_minus_L=yes
10374      fi
10375      ;;
10376
10377    hpux11*)
10378      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10379	case $host_cpu in
10380	hppa*64*)
10381	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10382	  ;;
10383	ia64*)
10384	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10385	  ;;
10386	*)
10387	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10388	  ;;
10389	esac
10390      else
10391	case $host_cpu in
10392	hppa*64*)
10393	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10394	  ;;
10395	ia64*)
10396	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10397	  ;;
10398	*)
10399	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10400	  ;;
10401	esac
10402      fi
10403      if test "$with_gnu_ld" = no; then
10404	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10405	hardcode_libdir_separator=:
10406
10407	case $host_cpu in
10408	hppa*64*|ia64*)
10409	  hardcode_libdir_flag_spec_ld='+b $libdir'
10410	  hardcode_direct=no
10411	  hardcode_shlibpath_var=no
10412	  ;;
10413	*)
10414	  hardcode_direct=yes
10415	  export_dynamic_flag_spec='${wl}-E'
10416
10417	  # hardcode_minus_L: Not really in the search PATH,
10418	  # but as the default location of the library.
10419	  hardcode_minus_L=yes
10420	  ;;
10421	esac
10422      fi
10423      ;;
10424
10425    irix5* | irix6* | nonstopux*)
10426      if test "$GCC" = yes; then
10427	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10428      else
10429	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10430	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10431      fi
10432      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10433      hardcode_libdir_separator=:
10434      link_all_deplibs=yes
10435      ;;
10436
10437    netbsd*)
10438      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10439	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10440      else
10441	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10442      fi
10443      hardcode_libdir_flag_spec='-R$libdir'
10444      hardcode_direct=yes
10445      hardcode_shlibpath_var=no
10446      ;;
10447
10448    newsos6)
10449      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10450      hardcode_direct=yes
10451      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452      hardcode_libdir_separator=:
10453      hardcode_shlibpath_var=no
10454      ;;
10455
10456    openbsd*)
10457      if test -f /usr/libexec/ld.so; then
10458	hardcode_direct=yes
10459	hardcode_shlibpath_var=no
10460	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10461	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10462	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10463	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10464	  export_dynamic_flag_spec='${wl}-E'
10465	else
10466	  case $host_os in
10467	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10468	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10469	     hardcode_libdir_flag_spec='-R$libdir'
10470	     ;;
10471	   *)
10472	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10473	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10474	     ;;
10475	  esac
10476        fi
10477      else
10478	ld_shlibs=no
10479      fi
10480      ;;
10481
10482    os2*)
10483      hardcode_libdir_flag_spec='-L$libdir'
10484      hardcode_minus_L=yes
10485      allow_undefined_flag=unsupported
10486      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10487      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10488      ;;
10489
10490    osf3*)
10491      if test "$GCC" = yes; then
10492	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10493	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10494      else
10495	allow_undefined_flag=' -expect_unresolved \*'
10496	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10497      fi
10498      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10499      hardcode_libdir_separator=:
10500      ;;
10501
10502    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10503      if test "$GCC" = yes; then
10504	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10505	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10506	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10507      else
10508	allow_undefined_flag=' -expect_unresolved \*'
10509	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10510	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10511	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
10512
10513	# Both c and cxx compiler support -rpath directly
10514	hardcode_libdir_flag_spec='-rpath $libdir'
10515      fi
10516      hardcode_libdir_separator=:
10517      ;;
10518
10519    solaris*)
10520      no_undefined_flag=' -z text'
10521      if test "$GCC" = yes; then
10522	wlarc='${wl}'
10523	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10524	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10525	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10526      else
10527	wlarc=''
10528	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10529	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10530  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10531      fi
10532      hardcode_libdir_flag_spec='-R$libdir'
10533      hardcode_shlibpath_var=no
10534      case $host_os in
10535      solaris2.[0-5] | solaris2.[0-5].*) ;;
10536      *)
10537	# The compiler driver will combine and reorder linker options,
10538	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10539	# but is careful enough not to reorder.
10540 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10541	if test "$GCC" = yes; then
10542	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10543	else
10544	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10545	fi
10546	;;
10547      esac
10548      link_all_deplibs=yes
10549      ;;
10550
10551    sunos4*)
10552      if test "x$host_vendor" = xsequent; then
10553	# Use $CC to link under sequent, because it throws in some extra .o
10554	# files that make .init and .fini sections work.
10555	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10556      else
10557	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10558      fi
10559      hardcode_libdir_flag_spec='-L$libdir'
10560      hardcode_direct=yes
10561      hardcode_minus_L=yes
10562      hardcode_shlibpath_var=no
10563      ;;
10564
10565    sysv4)
10566      case $host_vendor in
10567	sni)
10568	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569	  hardcode_direct=yes # is this really true???
10570	;;
10571	siemens)
10572	  ## LD is ld it makes a PLAMLIB
10573	  ## CC just makes a GrossModule.
10574	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10575	  reload_cmds='$CC -r -o $output$reload_objs'
10576	  hardcode_direct=no
10577        ;;
10578	motorola)
10579	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10580	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10581	;;
10582      esac
10583      runpath_var='LD_RUN_PATH'
10584      hardcode_shlibpath_var=no
10585      ;;
10586
10587    sysv4.3*)
10588      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10589      hardcode_shlibpath_var=no
10590      export_dynamic_flag_spec='-Bexport'
10591      ;;
10592
10593    sysv4*MP*)
10594      if test -d /usr/nec; then
10595	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10596	hardcode_shlibpath_var=no
10597	runpath_var=LD_RUN_PATH
10598	hardcode_runpath_var=yes
10599	ld_shlibs=yes
10600      fi
10601      ;;
10602
10603    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10604      no_undefined_flag='${wl}-z,text'
10605      archive_cmds_need_lc=no
10606      hardcode_shlibpath_var=no
10607      runpath_var='LD_RUN_PATH'
10608
10609      if test "$GCC" = yes; then
10610	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10611	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10612      else
10613	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10614	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10615      fi
10616      ;;
10617
10618    sysv5* | sco3.2v5* | sco5v6*)
10619      # Note: We can NOT use -z defs as we might desire, because we do not
10620      # link with -lc, and that would cause any symbols used from libc to
10621      # always be unresolved, which means just about no library would
10622      # ever link correctly.  If we're not using GNU ld we use -z text
10623      # though, which does catch some bad symbols but isn't as heavy-handed
10624      # as -z defs.
10625      no_undefined_flag='${wl}-z,text'
10626      allow_undefined_flag='${wl}-z,nodefs'
10627      archive_cmds_need_lc=no
10628      hardcode_shlibpath_var=no
10629      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10630      hardcode_libdir_separator=':'
10631      link_all_deplibs=yes
10632      export_dynamic_flag_spec='${wl}-Bexport'
10633      runpath_var='LD_RUN_PATH'
10634
10635      if test "$GCC" = yes; then
10636	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10637	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10638      else
10639	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10640	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10641      fi
10642      ;;
10643
10644    uts4*)
10645      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10646      hardcode_libdir_flag_spec='-L$libdir'
10647      hardcode_shlibpath_var=no
10648      ;;
10649
10650    *)
10651      ld_shlibs=no
10652      ;;
10653    esac
10654  fi
10655
10656{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10657$as_echo "$ld_shlibs" >&6; }
10658test "$ld_shlibs" = no && can_build_shared=no
10659
10660#
10661# Do we need to explicitly link libc?
10662#
10663case "x$archive_cmds_need_lc" in
10664x|xyes)
10665  # Assume -lc should be added
10666  archive_cmds_need_lc=yes
10667
10668  if test "$enable_shared" = yes && test "$GCC" = yes; then
10669    case $archive_cmds in
10670    *'~'*)
10671      # FIXME: we may have to deal with multi-command sequences.
10672      ;;
10673    '$CC '*)
10674      # Test whether the compiler implicitly links with -lc since on some
10675      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10676      # to ld, don't add -lc before -lgcc.
10677      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10678$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10679      $rm conftest*
10680      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10681
10682      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683  (eval $ac_compile) 2>&5
10684  ac_status=$?
10685  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); } 2>conftest.err; then
10687        soname=conftest
10688        lib=conftest
10689        libobjs=conftest.$ac_objext
10690        deplibs=
10691        wl=$lt_prog_compiler_wl
10692	pic_flag=$lt_prog_compiler_pic
10693        compiler_flags=-v
10694        linker_flags=-v
10695        verstring=
10696        output_objdir=.
10697        libname=conftest
10698        lt_save_allow_undefined_flag=$allow_undefined_flag
10699        allow_undefined_flag=
10700        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10701  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10702  ac_status=$?
10703  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704  (exit $ac_status); }
10705        then
10706	  archive_cmds_need_lc=no
10707        else
10708	  archive_cmds_need_lc=yes
10709        fi
10710        allow_undefined_flag=$lt_save_allow_undefined_flag
10711      else
10712        cat conftest.err 1>&5
10713      fi
10714      $rm conftest*
10715      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10716$as_echo "$archive_cmds_need_lc" >&6; }
10717      ;;
10718    esac
10719  fi
10720  ;;
10721esac
10722
10723{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10724$as_echo_n "checking dynamic linker characteristics... " >&6; }
10725library_names_spec=
10726libname_spec='lib$name'
10727soname_spec=
10728shrext_cmds=".so"
10729postinstall_cmds=
10730postuninstall_cmds=
10731finish_cmds=
10732finish_eval=
10733shlibpath_var=
10734shlibpath_overrides_runpath=unknown
10735version_type=none
10736dynamic_linker="$host_os ld.so"
10737sys_lib_dlsearch_path_spec="/lib /usr/lib"
10738
10739if test "$GCC" = yes; then
10740  case $host_os in
10741    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10742    *) lt_awk_arg="/^libraries:/" ;;
10743  esac
10744  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10745  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
10746    # if the path contains ";" then we assume it to be the separator
10747    # otherwise default to the standard path separator (i.e. ":") - it is
10748    # assumed that no part of a normal pathname contains ";" but that should
10749    # okay in the real world where ";" in dirpaths is itself problematic.
10750    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10751  else
10752    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10753  fi
10754  # Ok, now we have the path, separated by spaces, we can step through it
10755  # and add multilib dir if necessary.
10756  lt_tmp_lt_search_path_spec=
10757  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10758  for lt_sys_path in $lt_search_path_spec; do
10759    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10760      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10761    else
10762      test -d "$lt_sys_path" && \
10763	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10764    fi
10765  done
10766  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
10767BEGIN {RS=" "; FS="/|\n";} {
10768  lt_foo="";
10769  lt_count=0;
10770  for (lt_i = NF; lt_i > 0; lt_i--) {
10771    if ($lt_i != "" && $lt_i != ".") {
10772      if ($lt_i == "..") {
10773        lt_count++;
10774      } else {
10775        if (lt_count == 0) {
10776          lt_foo="/" $lt_i lt_foo;
10777        } else {
10778          lt_count--;
10779        }
10780      }
10781    }
10782  }
10783  if (lt_foo != "") { lt_freq[lt_foo]++; }
10784  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10785}'`
10786  sys_lib_search_path_spec=`echo $lt_search_path_spec`
10787else
10788  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10789fi
10790need_lib_prefix=unknown
10791hardcode_into_libs=no
10792
10793# when you set need_version to no, make sure it does not cause -set_version
10794# flags to be left without arguments
10795need_version=unknown
10796
10797case $host_os in
10798aix3*)
10799  version_type=linux
10800  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10801  shlibpath_var=LIBPATH
10802
10803  # AIX 3 has no versioning support, so we append a major version to the name.
10804  soname_spec='${libname}${release}${shared_ext}$major'
10805  ;;
10806
10807aix4* | aix5*)
10808  version_type=linux
10809  need_lib_prefix=no
10810  need_version=no
10811  hardcode_into_libs=yes
10812  if test "$host_cpu" = ia64; then
10813    # AIX 5 supports IA64
10814    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10815    shlibpath_var=LD_LIBRARY_PATH
10816  else
10817    # With GCC up to 2.95.x, collect2 would create an import file
10818    # for dependence libraries.  The import file would start with
10819    # the line `#! .'.  This would cause the generated library to
10820    # depend on `.', always an invalid library.  This was fixed in
10821    # development snapshots of GCC prior to 3.0.
10822    case $host_os in
10823      aix4 | aix4.[01] | aix4.[01].*)
10824      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10825	   echo ' yes '
10826	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10827	:
10828      else
10829	can_build_shared=no
10830      fi
10831      ;;
10832    esac
10833    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10834    # soname into executable. Probably we can add versioning support to
10835    # collect2, so additional links can be useful in future.
10836    if test "$aix_use_runtimelinking" = yes; then
10837      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10838      # instead of lib<name>.a to let people know that these are not
10839      # typical AIX shared libraries.
10840      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10841    else
10842      # We preserve .a as extension for shared libraries through AIX4.2
10843      # and later when we are not doing run time linking.
10844      library_names_spec='${libname}${release}.a $libname.a'
10845      soname_spec='${libname}${release}${shared_ext}$major'
10846    fi
10847    shlibpath_var=LIBPATH
10848  fi
10849  ;;
10850
10851amigaos*)
10852  library_names_spec='$libname.ixlibrary $libname.a'
10853  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10854  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10855  ;;
10856
10857beos*)
10858  library_names_spec='${libname}${shared_ext}'
10859  dynamic_linker="$host_os ld.so"
10860  shlibpath_var=LIBRARY_PATH
10861  ;;
10862
10863bsdi[45]*)
10864  version_type=linux
10865  need_version=no
10866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867  soname_spec='${libname}${release}${shared_ext}$major'
10868  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10869  shlibpath_var=LD_LIBRARY_PATH
10870  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10871  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10872  # the default ld.so.conf also contains /usr/contrib/lib and
10873  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10874  # libtool to hard-code these into programs
10875  ;;
10876
10877cygwin* | mingw* | pw32*)
10878  version_type=windows
10879  shrext_cmds=".dll"
10880  need_version=no
10881  need_lib_prefix=no
10882
10883  case $GCC,$host_os in
10884  yes,cygwin* | yes,mingw* | yes,pw32*)
10885    library_names_spec='$libname.dll.a'
10886    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10887    postinstall_cmds='base_file=`basename \${file}`~
10888      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10889      dldir=$destdir/`dirname \$dlpath`~
10890      test -d \$dldir || mkdir -p \$dldir~
10891      $install_prog $dir/$dlname \$dldir/$dlname~
10892      chmod a+x \$dldir/$dlname'
10893    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10894      dlpath=$dir/\$dldll~
10895       $rm \$dlpath'
10896    shlibpath_overrides_runpath=yes
10897
10898    case $host_os in
10899    cygwin*)
10900      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10901      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10902      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10903      ;;
10904    mingw*)
10905      # MinGW DLLs use traditional 'lib' prefix
10906      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10907      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10908      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10909        # It is most probably a Windows format PATH printed by
10910        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10911        # path with ; separators, and with drive letters. We can handle the
10912        # drive letters (cygwin fileutils understands them), so leave them,
10913        # especially as we might pass files found there to a mingw objdump,
10914        # which wouldn't understand a cygwinified path. Ahh.
10915        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10916      else
10917        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10918      fi
10919      ;;
10920    pw32*)
10921      # pw32 DLLs use 'pw' prefix rather than 'lib'
10922      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10923      ;;
10924    esac
10925    ;;
10926
10927  *)
10928    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10929    ;;
10930  esac
10931  dynamic_linker='Win32 ld.exe'
10932  # FIXME: first we should search . and the directory the executable is in
10933  shlibpath_var=PATH
10934  ;;
10935
10936darwin* | rhapsody*)
10937  dynamic_linker="$host_os dyld"
10938  version_type=darwin
10939  need_lib_prefix=no
10940  need_version=no
10941  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10942  soname_spec='${libname}${release}${major}$shared_ext'
10943  shlibpath_overrides_runpath=yes
10944  shlibpath_var=DYLD_LIBRARY_PATH
10945  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10946
10947  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10948  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10949  ;;
10950
10951dgux*)
10952  version_type=linux
10953  need_lib_prefix=no
10954  need_version=no
10955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10956  soname_spec='${libname}${release}${shared_ext}$major'
10957  shlibpath_var=LD_LIBRARY_PATH
10958  ;;
10959
10960freebsd1*)
10961  dynamic_linker=no
10962  ;;
10963
10964freebsd* | dragonfly*)
10965  # DragonFly does not have aout.  When/if they implement a new
10966  # versioning mechanism, adjust this.
10967  if test -x /usr/bin/objformat; then
10968    objformat=`/usr/bin/objformat`
10969  else
10970    case $host_os in
10971    freebsd[123]*) objformat=aout ;;
10972    *) objformat=elf ;;
10973    esac
10974  fi
10975  version_type=freebsd-$objformat
10976  case $version_type in
10977    freebsd-elf*)
10978      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10979      need_version=no
10980      need_lib_prefix=no
10981      ;;
10982    freebsd-*)
10983      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10984      need_version=yes
10985      ;;
10986  esac
10987  shlibpath_var=LD_LIBRARY_PATH
10988  case $host_os in
10989  freebsd2*)
10990    shlibpath_overrides_runpath=yes
10991    ;;
10992  freebsd3.[01]* | freebsdelf3.[01]*)
10993    shlibpath_overrides_runpath=yes
10994    hardcode_into_libs=yes
10995    ;;
10996  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10997  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10998    shlibpath_overrides_runpath=no
10999    hardcode_into_libs=yes
11000    ;;
11001  *) # from 4.6 on, and DragonFly
11002    shlibpath_overrides_runpath=yes
11003    hardcode_into_libs=yes
11004    ;;
11005  esac
11006  ;;
11007
11008gnu*)
11009  version_type=linux
11010  need_lib_prefix=no
11011  need_version=no
11012  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11013  soname_spec='${libname}${release}${shared_ext}$major'
11014  shlibpath_var=LD_LIBRARY_PATH
11015  hardcode_into_libs=yes
11016  ;;
11017
11018hpux9* | hpux10* | hpux11*)
11019  # Give a soname corresponding to the major version so that dld.sl refuses to
11020  # link against other versions.
11021  version_type=sunos
11022  need_lib_prefix=no
11023  need_version=no
11024  case $host_cpu in
11025  ia64*)
11026    shrext_cmds='.so'
11027    hardcode_into_libs=yes
11028    dynamic_linker="$host_os dld.so"
11029    shlibpath_var=LD_LIBRARY_PATH
11030    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11031    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032    soname_spec='${libname}${release}${shared_ext}$major'
11033    if test "X$HPUX_IA64_MODE" = X32; then
11034      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11035    else
11036      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11037    fi
11038    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11039    ;;
11040   hppa*64*)
11041     shrext_cmds='.sl'
11042     hardcode_into_libs=yes
11043     dynamic_linker="$host_os dld.sl"
11044     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047     soname_spec='${libname}${release}${shared_ext}$major'
11048     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11049     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11050     ;;
11051   *)
11052    shrext_cmds='.sl'
11053    dynamic_linker="$host_os dld.sl"
11054    shlibpath_var=SHLIB_PATH
11055    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11056    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057    soname_spec='${libname}${release}${shared_ext}$major'
11058    ;;
11059  esac
11060  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11061  postinstall_cmds='chmod 555 $lib'
11062  ;;
11063
11064interix[3-9]*)
11065  version_type=linux
11066  need_lib_prefix=no
11067  need_version=no
11068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11069  soname_spec='${libname}${release}${shared_ext}$major'
11070  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11071  shlibpath_var=LD_LIBRARY_PATH
11072  shlibpath_overrides_runpath=no
11073  hardcode_into_libs=yes
11074  ;;
11075
11076irix5* | irix6* | nonstopux*)
11077  case $host_os in
11078    nonstopux*) version_type=nonstopux ;;
11079    *)
11080	if test "$lt_cv_prog_gnu_ld" = yes; then
11081		version_type=linux
11082	else
11083		version_type=irix
11084	fi ;;
11085  esac
11086  need_lib_prefix=no
11087  need_version=no
11088  soname_spec='${libname}${release}${shared_ext}$major'
11089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11090  case $host_os in
11091  irix5* | nonstopux*)
11092    libsuff= shlibsuff=
11093    ;;
11094  *)
11095    case $LD in # libtool.m4 will add one of these switches to LD
11096    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11097      libsuff= shlibsuff= libmagic=32-bit;;
11098    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11099      libsuff=32 shlibsuff=N32 libmagic=N32;;
11100    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11101      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11102    *) libsuff= shlibsuff= libmagic=never-match;;
11103    esac
11104    ;;
11105  esac
11106  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11107  shlibpath_overrides_runpath=no
11108  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11109  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11110  hardcode_into_libs=yes
11111  ;;
11112
11113# No shared lib support for Linux oldld, aout, or coff.
11114linux*oldld* | linux*aout* | linux*coff*)
11115  dynamic_linker=no
11116  ;;
11117
11118# This must be Linux ELF.
11119linux* | k*bsd*-gnu)
11120  version_type=linux
11121  need_lib_prefix=no
11122  need_version=no
11123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124  soname_spec='${libname}${release}${shared_ext}$major'
11125  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11126  shlibpath_var=LD_LIBRARY_PATH
11127  shlibpath_overrides_runpath=no
11128  # This implies no fast_install, which is unacceptable.
11129  # Some rework will be needed to allow for fast_install
11130  # before this can be enabled.
11131  hardcode_into_libs=yes
11132
11133  # Append ld.so.conf contents to the search path
11134  if test -f /etc/ld.so.conf; then
11135    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11136    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11137  fi
11138
11139  # We used to test for /lib/ld.so.1 and disable shared libraries on
11140  # powerpc, because MkLinux only supported shared libraries with the
11141  # GNU dynamic linker.  Since this was broken with cross compilers,
11142  # most powerpc-linux boxes support dynamic linking these days and
11143  # people can always --disable-shared, the test was removed, and we
11144  # assume the GNU/Linux dynamic linker is in use.
11145  dynamic_linker='GNU/Linux ld.so'
11146  ;;
11147
11148netbsd*)
11149  version_type=sunos
11150  need_lib_prefix=no
11151  need_version=no
11152  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11153    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11154    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11155    dynamic_linker='NetBSD (a.out) ld.so'
11156  else
11157    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11158    soname_spec='${libname}${release}${shared_ext}$major'
11159    dynamic_linker='NetBSD ld.elf_so'
11160  fi
11161  shlibpath_var=LD_LIBRARY_PATH
11162  shlibpath_overrides_runpath=yes
11163  hardcode_into_libs=yes
11164  ;;
11165
11166newsos6)
11167  version_type=linux
11168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169  shlibpath_var=LD_LIBRARY_PATH
11170  shlibpath_overrides_runpath=yes
11171  ;;
11172
11173nto-qnx*)
11174  version_type=linux
11175  need_lib_prefix=no
11176  need_version=no
11177  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178  soname_spec='${libname}${release}${shared_ext}$major'
11179  shlibpath_var=LD_LIBRARY_PATH
11180  shlibpath_overrides_runpath=yes
11181  ;;
11182
11183openbsd*)
11184  version_type=sunos
11185  sys_lib_dlsearch_path_spec="/usr/lib"
11186  need_lib_prefix=no
11187  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11188  case $host_os in
11189    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11190    *)                         need_version=no  ;;
11191  esac
11192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11193  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11194  shlibpath_var=LD_LIBRARY_PATH
11195  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11196    case $host_os in
11197      openbsd2.[89] | openbsd2.[89].*)
11198	shlibpath_overrides_runpath=no
11199	;;
11200      *)
11201	shlibpath_overrides_runpath=yes
11202	;;
11203      esac
11204  else
11205    shlibpath_overrides_runpath=yes
11206  fi
11207  ;;
11208
11209os2*)
11210  libname_spec='$name'
11211  shrext_cmds=".dll"
11212  need_lib_prefix=no
11213  library_names_spec='$libname${shared_ext} $libname.a'
11214  dynamic_linker='OS/2 ld.exe'
11215  shlibpath_var=LIBPATH
11216  ;;
11217
11218osf3* | osf4* | osf5*)
11219  version_type=osf
11220  need_lib_prefix=no
11221  need_version=no
11222  soname_spec='${libname}${release}${shared_ext}$major'
11223  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11224  shlibpath_var=LD_LIBRARY_PATH
11225  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11226  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11227  ;;
11228
11229rdos*)
11230  dynamic_linker=no
11231  ;;
11232
11233solaris*)
11234  version_type=linux
11235  need_lib_prefix=no
11236  need_version=no
11237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238  soname_spec='${libname}${release}${shared_ext}$major'
11239  shlibpath_var=LD_LIBRARY_PATH
11240  shlibpath_overrides_runpath=yes
11241  hardcode_into_libs=yes
11242  # ldd complains unless libraries are executable
11243  postinstall_cmds='chmod +x $lib'
11244  ;;
11245
11246sunos4*)
11247  version_type=sunos
11248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11249  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11250  shlibpath_var=LD_LIBRARY_PATH
11251  shlibpath_overrides_runpath=yes
11252  if test "$with_gnu_ld" = yes; then
11253    need_lib_prefix=no
11254  fi
11255  need_version=yes
11256  ;;
11257
11258sysv4 | sysv4.3*)
11259  version_type=linux
11260  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261  soname_spec='${libname}${release}${shared_ext}$major'
11262  shlibpath_var=LD_LIBRARY_PATH
11263  case $host_vendor in
11264    sni)
11265      shlibpath_overrides_runpath=no
11266      need_lib_prefix=no
11267      export_dynamic_flag_spec='${wl}-Blargedynsym'
11268      runpath_var=LD_RUN_PATH
11269      ;;
11270    siemens)
11271      need_lib_prefix=no
11272      ;;
11273    motorola)
11274      need_lib_prefix=no
11275      need_version=no
11276      shlibpath_overrides_runpath=no
11277      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11278      ;;
11279  esac
11280  ;;
11281
11282sysv4*MP*)
11283  if test -d /usr/nec ;then
11284    version_type=linux
11285    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11286    soname_spec='$libname${shared_ext}.$major'
11287    shlibpath_var=LD_LIBRARY_PATH
11288  fi
11289  ;;
11290
11291sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11292  version_type=freebsd-elf
11293  need_lib_prefix=no
11294  need_version=no
11295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11296  soname_spec='${libname}${release}${shared_ext}$major'
11297  shlibpath_var=LD_LIBRARY_PATH
11298  hardcode_into_libs=yes
11299  if test "$with_gnu_ld" = yes; then
11300    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11301    shlibpath_overrides_runpath=no
11302  else
11303    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11304    shlibpath_overrides_runpath=yes
11305    case $host_os in
11306      sco3.2v5*)
11307        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11308	;;
11309    esac
11310  fi
11311  sys_lib_dlsearch_path_spec='/usr/lib'
11312  ;;
11313
11314uts4*)
11315  version_type=linux
11316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11317  soname_spec='${libname}${release}${shared_ext}$major'
11318  shlibpath_var=LD_LIBRARY_PATH
11319  ;;
11320
11321*)
11322  dynamic_linker=no
11323  ;;
11324esac
11325{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11326$as_echo "$dynamic_linker" >&6; }
11327test "$dynamic_linker" = no && can_build_shared=no
11328
11329variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11330if test "$GCC" = yes; then
11331  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11332fi
11333
11334{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11335$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11336hardcode_action=
11337if test -n "$hardcode_libdir_flag_spec" || \
11338   test -n "$runpath_var" || \
11339   test "X$hardcode_automatic" = "Xyes" ; then
11340
11341  # We can hardcode non-existant directories.
11342  if test "$hardcode_direct" != no &&
11343     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11344     # have to relink, otherwise we might link with an installed library
11345     # when we should be linking with a yet-to-be-installed one
11346     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11347     test "$hardcode_minus_L" != no; then
11348    # Linking always hardcodes the temporary library directory.
11349    hardcode_action=relink
11350  else
11351    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11352    hardcode_action=immediate
11353  fi
11354else
11355  # We cannot hardcode anything, or else we can only hardcode existing
11356  # directories.
11357  hardcode_action=unsupported
11358fi
11359{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11360$as_echo "$hardcode_action" >&6; }
11361
11362if test "$hardcode_action" = relink; then
11363  # Fast installation is not supported
11364  enable_fast_install=no
11365elif test "$shlibpath_overrides_runpath" = yes ||
11366     test "$enable_shared" = no; then
11367  # Fast installation is not necessary
11368  enable_fast_install=needless
11369fi
11370
11371striplib=
11372old_striplib=
11373{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11374$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11375if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11376  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11377  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11378  { $as_echo "$as_me:$LINENO: result: yes" >&5
11379$as_echo "yes" >&6; }
11380else
11381# FIXME - insert some real tests, host_os isn't really good enough
11382  case $host_os in
11383   darwin*)
11384       if test -n "$STRIP" ; then
11385         striplib="$STRIP -x"
11386         old_striplib="$STRIP -S"
11387         { $as_echo "$as_me:$LINENO: result: yes" >&5
11388$as_echo "yes" >&6; }
11389       else
11390  { $as_echo "$as_me:$LINENO: result: no" >&5
11391$as_echo "no" >&6; }
11392fi
11393       ;;
11394   *)
11395  { $as_echo "$as_me:$LINENO: result: no" >&5
11396$as_echo "no" >&6; }
11397    ;;
11398  esac
11399fi
11400
11401if test "x$enable_dlopen" != xyes; then
11402  enable_dlopen=unknown
11403  enable_dlopen_self=unknown
11404  enable_dlopen_self_static=unknown
11405else
11406  lt_cv_dlopen=no
11407  lt_cv_dlopen_libs=
11408
11409  case $host_os in
11410  beos*)
11411    lt_cv_dlopen="load_add_on"
11412    lt_cv_dlopen_libs=
11413    lt_cv_dlopen_self=yes
11414    ;;
11415
11416  mingw* | pw32*)
11417    lt_cv_dlopen="LoadLibrary"
11418    lt_cv_dlopen_libs=
11419   ;;
11420
11421  cygwin*)
11422    lt_cv_dlopen="dlopen"
11423    lt_cv_dlopen_libs=
11424   ;;
11425
11426  darwin*)
11427  # if libdl is installed we need to link against it
11428    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11429$as_echo_n "checking for dlopen in -ldl... " >&6; }
11430if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11431  $as_echo_n "(cached) " >&6
11432else
11433  ac_check_lib_save_LIBS=$LIBS
11434LIBS="-ldl  $LIBS"
11435cat >conftest.$ac_ext <<_ACEOF
11436/* confdefs.h.  */
11437_ACEOF
11438cat confdefs.h >>conftest.$ac_ext
11439cat >>conftest.$ac_ext <<_ACEOF
11440/* end confdefs.h.  */
11441
11442/* Override any GCC internal prototype to avoid an error.
11443   Use char because int might match the return type of a GCC
11444   builtin and then its argument prototype would still apply.  */
11445#ifdef __cplusplus
11446extern "C"
11447#endif
11448char dlopen ();
11449int
11450main ()
11451{
11452return dlopen ();
11453  ;
11454  return 0;
11455}
11456_ACEOF
11457rm -f conftest.$ac_objext conftest$ac_exeext
11458if { (ac_try="$ac_link"
11459case "(($ac_try" in
11460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461  *) ac_try_echo=$ac_try;;
11462esac
11463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11464$as_echo "$ac_try_echo") >&5
11465  (eval "$ac_link") 2>conftest.er1
11466  ac_status=$?
11467  grep -v '^ *+' conftest.er1 >conftest.err
11468  rm -f conftest.er1
11469  cat conftest.err >&5
11470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471  (exit $ac_status); } && {
11472	 test -z "$ac_c_werror_flag" ||
11473	 test ! -s conftest.err
11474       } && test -s conftest$ac_exeext && {
11475	 test "$cross_compiling" = yes ||
11476	 $as_test_x conftest$ac_exeext
11477       }; then
11478  ac_cv_lib_dl_dlopen=yes
11479else
11480  $as_echo "$as_me: failed program was:" >&5
11481sed 's/^/| /' conftest.$ac_ext >&5
11482
11483	ac_cv_lib_dl_dlopen=no
11484fi
11485
11486rm -rf conftest.dSYM
11487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11488      conftest$ac_exeext conftest.$ac_ext
11489LIBS=$ac_check_lib_save_LIBS
11490fi
11491{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11492$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11493if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11494  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11495else
11496
11497    lt_cv_dlopen="dyld"
11498    lt_cv_dlopen_libs=
11499    lt_cv_dlopen_self=yes
11500
11501fi
11502
11503   ;;
11504
11505  *)
11506    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11507$as_echo_n "checking for shl_load... " >&6; }
11508if test "${ac_cv_func_shl_load+set}" = set; then
11509  $as_echo_n "(cached) " >&6
11510else
11511  cat >conftest.$ac_ext <<_ACEOF
11512/* confdefs.h.  */
11513_ACEOF
11514cat confdefs.h >>conftest.$ac_ext
11515cat >>conftest.$ac_ext <<_ACEOF
11516/* end confdefs.h.  */
11517/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11518   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11519#define shl_load innocuous_shl_load
11520
11521/* System header to define __stub macros and hopefully few prototypes,
11522    which can conflict with char shl_load (); below.
11523    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11524    <limits.h> exists even on freestanding compilers.  */
11525
11526#ifdef __STDC__
11527# include <limits.h>
11528#else
11529# include <assert.h>
11530#endif
11531
11532#undef shl_load
11533
11534/* Override any GCC internal prototype to avoid an error.
11535   Use char because int might match the return type of a GCC
11536   builtin and then its argument prototype would still apply.  */
11537#ifdef __cplusplus
11538extern "C"
11539#endif
11540char shl_load ();
11541/* The GNU C library defines this for functions which it implements
11542    to always fail with ENOSYS.  Some functions are actually named
11543    something starting with __ and the normal name is an alias.  */
11544#if defined __stub_shl_load || defined __stub___shl_load
11545choke me
11546#endif
11547
11548int
11549main ()
11550{
11551return shl_load ();
11552  ;
11553  return 0;
11554}
11555_ACEOF
11556rm -f conftest.$ac_objext conftest$ac_exeext
11557if { (ac_try="$ac_link"
11558case "(($ac_try" in
11559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11560  *) ac_try_echo=$ac_try;;
11561esac
11562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11563$as_echo "$ac_try_echo") >&5
11564  (eval "$ac_link") 2>conftest.er1
11565  ac_status=$?
11566  grep -v '^ *+' conftest.er1 >conftest.err
11567  rm -f conftest.er1
11568  cat conftest.err >&5
11569  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570  (exit $ac_status); } && {
11571	 test -z "$ac_c_werror_flag" ||
11572	 test ! -s conftest.err
11573       } && test -s conftest$ac_exeext && {
11574	 test "$cross_compiling" = yes ||
11575	 $as_test_x conftest$ac_exeext
11576       }; then
11577  ac_cv_func_shl_load=yes
11578else
11579  $as_echo "$as_me: failed program was:" >&5
11580sed 's/^/| /' conftest.$ac_ext >&5
11581
11582	ac_cv_func_shl_load=no
11583fi
11584
11585rm -rf conftest.dSYM
11586rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11587      conftest$ac_exeext conftest.$ac_ext
11588fi
11589{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11590$as_echo "$ac_cv_func_shl_load" >&6; }
11591if test "x$ac_cv_func_shl_load" = x""yes; then
11592  lt_cv_dlopen="shl_load"
11593else
11594  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11595$as_echo_n "checking for shl_load in -ldld... " >&6; }
11596if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11597  $as_echo_n "(cached) " >&6
11598else
11599  ac_check_lib_save_LIBS=$LIBS
11600LIBS="-ldld  $LIBS"
11601cat >conftest.$ac_ext <<_ACEOF
11602/* confdefs.h.  */
11603_ACEOF
11604cat confdefs.h >>conftest.$ac_ext
11605cat >>conftest.$ac_ext <<_ACEOF
11606/* end confdefs.h.  */
11607
11608/* Override any GCC internal prototype to avoid an error.
11609   Use char because int might match the return type of a GCC
11610   builtin and then its argument prototype would still apply.  */
11611#ifdef __cplusplus
11612extern "C"
11613#endif
11614char shl_load ();
11615int
11616main ()
11617{
11618return shl_load ();
11619  ;
11620  return 0;
11621}
11622_ACEOF
11623rm -f conftest.$ac_objext conftest$ac_exeext
11624if { (ac_try="$ac_link"
11625case "(($ac_try" in
11626  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627  *) ac_try_echo=$ac_try;;
11628esac
11629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11630$as_echo "$ac_try_echo") >&5
11631  (eval "$ac_link") 2>conftest.er1
11632  ac_status=$?
11633  grep -v '^ *+' conftest.er1 >conftest.err
11634  rm -f conftest.er1
11635  cat conftest.err >&5
11636  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637  (exit $ac_status); } && {
11638	 test -z "$ac_c_werror_flag" ||
11639	 test ! -s conftest.err
11640       } && test -s conftest$ac_exeext && {
11641	 test "$cross_compiling" = yes ||
11642	 $as_test_x conftest$ac_exeext
11643       }; then
11644  ac_cv_lib_dld_shl_load=yes
11645else
11646  $as_echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
11649	ac_cv_lib_dld_shl_load=no
11650fi
11651
11652rm -rf conftest.dSYM
11653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11654      conftest$ac_exeext conftest.$ac_ext
11655LIBS=$ac_check_lib_save_LIBS
11656fi
11657{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11658$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11659if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11660  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11661else
11662  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11663$as_echo_n "checking for dlopen... " >&6; }
11664if test "${ac_cv_func_dlopen+set}" = set; then
11665  $as_echo_n "(cached) " >&6
11666else
11667  cat >conftest.$ac_ext <<_ACEOF
11668/* confdefs.h.  */
11669_ACEOF
11670cat confdefs.h >>conftest.$ac_ext
11671cat >>conftest.$ac_ext <<_ACEOF
11672/* end confdefs.h.  */
11673/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11674   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11675#define dlopen innocuous_dlopen
11676
11677/* System header to define __stub macros and hopefully few prototypes,
11678    which can conflict with char dlopen (); below.
11679    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11680    <limits.h> exists even on freestanding compilers.  */
11681
11682#ifdef __STDC__
11683# include <limits.h>
11684#else
11685# include <assert.h>
11686#endif
11687
11688#undef dlopen
11689
11690/* Override any GCC internal prototype to avoid an error.
11691   Use char because int might match the return type of a GCC
11692   builtin and then its argument prototype would still apply.  */
11693#ifdef __cplusplus
11694extern "C"
11695#endif
11696char dlopen ();
11697/* The GNU C library defines this for functions which it implements
11698    to always fail with ENOSYS.  Some functions are actually named
11699    something starting with __ and the normal name is an alias.  */
11700#if defined __stub_dlopen || defined __stub___dlopen
11701choke me
11702#endif
11703
11704int
11705main ()
11706{
11707return dlopen ();
11708  ;
11709  return 0;
11710}
11711_ACEOF
11712rm -f conftest.$ac_objext conftest$ac_exeext
11713if { (ac_try="$ac_link"
11714case "(($ac_try" in
11715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716  *) ac_try_echo=$ac_try;;
11717esac
11718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719$as_echo "$ac_try_echo") >&5
11720  (eval "$ac_link") 2>conftest.er1
11721  ac_status=$?
11722  grep -v '^ *+' conftest.er1 >conftest.err
11723  rm -f conftest.er1
11724  cat conftest.err >&5
11725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726  (exit $ac_status); } && {
11727	 test -z "$ac_c_werror_flag" ||
11728	 test ! -s conftest.err
11729       } && test -s conftest$ac_exeext && {
11730	 test "$cross_compiling" = yes ||
11731	 $as_test_x conftest$ac_exeext
11732       }; then
11733  ac_cv_func_dlopen=yes
11734else
11735  $as_echo "$as_me: failed program was:" >&5
11736sed 's/^/| /' conftest.$ac_ext >&5
11737
11738	ac_cv_func_dlopen=no
11739fi
11740
11741rm -rf conftest.dSYM
11742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743      conftest$ac_exeext conftest.$ac_ext
11744fi
11745{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11746$as_echo "$ac_cv_func_dlopen" >&6; }
11747if test "x$ac_cv_func_dlopen" = x""yes; then
11748  lt_cv_dlopen="dlopen"
11749else
11750  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11751$as_echo_n "checking for dlopen in -ldl... " >&6; }
11752if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11753  $as_echo_n "(cached) " >&6
11754else
11755  ac_check_lib_save_LIBS=$LIBS
11756LIBS="-ldl  $LIBS"
11757cat >conftest.$ac_ext <<_ACEOF
11758/* confdefs.h.  */
11759_ACEOF
11760cat confdefs.h >>conftest.$ac_ext
11761cat >>conftest.$ac_ext <<_ACEOF
11762/* end confdefs.h.  */
11763
11764/* Override any GCC internal prototype to avoid an error.
11765   Use char because int might match the return type of a GCC
11766   builtin and then its argument prototype would still apply.  */
11767#ifdef __cplusplus
11768extern "C"
11769#endif
11770char dlopen ();
11771int
11772main ()
11773{
11774return dlopen ();
11775  ;
11776  return 0;
11777}
11778_ACEOF
11779rm -f conftest.$ac_objext conftest$ac_exeext
11780if { (ac_try="$ac_link"
11781case "(($ac_try" in
11782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11783  *) ac_try_echo=$ac_try;;
11784esac
11785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11786$as_echo "$ac_try_echo") >&5
11787  (eval "$ac_link") 2>conftest.er1
11788  ac_status=$?
11789  grep -v '^ *+' conftest.er1 >conftest.err
11790  rm -f conftest.er1
11791  cat conftest.err >&5
11792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793  (exit $ac_status); } && {
11794	 test -z "$ac_c_werror_flag" ||
11795	 test ! -s conftest.err
11796       } && test -s conftest$ac_exeext && {
11797	 test "$cross_compiling" = yes ||
11798	 $as_test_x conftest$ac_exeext
11799       }; then
11800  ac_cv_lib_dl_dlopen=yes
11801else
11802  $as_echo "$as_me: failed program was:" >&5
11803sed 's/^/| /' conftest.$ac_ext >&5
11804
11805	ac_cv_lib_dl_dlopen=no
11806fi
11807
11808rm -rf conftest.dSYM
11809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11810      conftest$ac_exeext conftest.$ac_ext
11811LIBS=$ac_check_lib_save_LIBS
11812fi
11813{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11814$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11815if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11816  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11817else
11818  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11819$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11820if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11821  $as_echo_n "(cached) " >&6
11822else
11823  ac_check_lib_save_LIBS=$LIBS
11824LIBS="-lsvld  $LIBS"
11825cat >conftest.$ac_ext <<_ACEOF
11826/* confdefs.h.  */
11827_ACEOF
11828cat confdefs.h >>conftest.$ac_ext
11829cat >>conftest.$ac_ext <<_ACEOF
11830/* end confdefs.h.  */
11831
11832/* Override any GCC internal prototype to avoid an error.
11833   Use char because int might match the return type of a GCC
11834   builtin and then its argument prototype would still apply.  */
11835#ifdef __cplusplus
11836extern "C"
11837#endif
11838char dlopen ();
11839int
11840main ()
11841{
11842return dlopen ();
11843  ;
11844  return 0;
11845}
11846_ACEOF
11847rm -f conftest.$ac_objext conftest$ac_exeext
11848if { (ac_try="$ac_link"
11849case "(($ac_try" in
11850  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851  *) ac_try_echo=$ac_try;;
11852esac
11853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11854$as_echo "$ac_try_echo") >&5
11855  (eval "$ac_link") 2>conftest.er1
11856  ac_status=$?
11857  grep -v '^ *+' conftest.er1 >conftest.err
11858  rm -f conftest.er1
11859  cat conftest.err >&5
11860  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861  (exit $ac_status); } && {
11862	 test -z "$ac_c_werror_flag" ||
11863	 test ! -s conftest.err
11864       } && test -s conftest$ac_exeext && {
11865	 test "$cross_compiling" = yes ||
11866	 $as_test_x conftest$ac_exeext
11867       }; then
11868  ac_cv_lib_svld_dlopen=yes
11869else
11870  $as_echo "$as_me: failed program was:" >&5
11871sed 's/^/| /' conftest.$ac_ext >&5
11872
11873	ac_cv_lib_svld_dlopen=no
11874fi
11875
11876rm -rf conftest.dSYM
11877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11878      conftest$ac_exeext conftest.$ac_ext
11879LIBS=$ac_check_lib_save_LIBS
11880fi
11881{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11882$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11883if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11884  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11885else
11886  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11887$as_echo_n "checking for dld_link in -ldld... " >&6; }
11888if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11889  $as_echo_n "(cached) " >&6
11890else
11891  ac_check_lib_save_LIBS=$LIBS
11892LIBS="-ldld  $LIBS"
11893cat >conftest.$ac_ext <<_ACEOF
11894/* confdefs.h.  */
11895_ACEOF
11896cat confdefs.h >>conftest.$ac_ext
11897cat >>conftest.$ac_ext <<_ACEOF
11898/* end confdefs.h.  */
11899
11900/* Override any GCC internal prototype to avoid an error.
11901   Use char because int might match the return type of a GCC
11902   builtin and then its argument prototype would still apply.  */
11903#ifdef __cplusplus
11904extern "C"
11905#endif
11906char dld_link ();
11907int
11908main ()
11909{
11910return dld_link ();
11911  ;
11912  return 0;
11913}
11914_ACEOF
11915rm -f conftest.$ac_objext conftest$ac_exeext
11916if { (ac_try="$ac_link"
11917case "(($ac_try" in
11918  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919  *) ac_try_echo=$ac_try;;
11920esac
11921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11922$as_echo "$ac_try_echo") >&5
11923  (eval "$ac_link") 2>conftest.er1
11924  ac_status=$?
11925  grep -v '^ *+' conftest.er1 >conftest.err
11926  rm -f conftest.er1
11927  cat conftest.err >&5
11928  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929  (exit $ac_status); } && {
11930	 test -z "$ac_c_werror_flag" ||
11931	 test ! -s conftest.err
11932       } && test -s conftest$ac_exeext && {
11933	 test "$cross_compiling" = yes ||
11934	 $as_test_x conftest$ac_exeext
11935       }; then
11936  ac_cv_lib_dld_dld_link=yes
11937else
11938  $as_echo "$as_me: failed program was:" >&5
11939sed 's/^/| /' conftest.$ac_ext >&5
11940
11941	ac_cv_lib_dld_dld_link=no
11942fi
11943
11944rm -rf conftest.dSYM
11945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11946      conftest$ac_exeext conftest.$ac_ext
11947LIBS=$ac_check_lib_save_LIBS
11948fi
11949{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11950$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11951if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11952  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11953fi
11954
11955
11956fi
11957
11958
11959fi
11960
11961
11962fi
11963
11964
11965fi
11966
11967
11968fi
11969
11970    ;;
11971  esac
11972
11973  if test "x$lt_cv_dlopen" != xno; then
11974    enable_dlopen=yes
11975  else
11976    enable_dlopen=no
11977  fi
11978
11979  case $lt_cv_dlopen in
11980  dlopen)
11981    save_CPPFLAGS="$CPPFLAGS"
11982    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11983
11984    save_LDFLAGS="$LDFLAGS"
11985    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11986
11987    save_LIBS="$LIBS"
11988    LIBS="$lt_cv_dlopen_libs $LIBS"
11989
11990    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11991$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11992if test "${lt_cv_dlopen_self+set}" = set; then
11993  $as_echo_n "(cached) " >&6
11994else
11995  	  if test "$cross_compiling" = yes; then :
11996  lt_cv_dlopen_self=cross
11997else
11998  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11999  lt_status=$lt_dlunknown
12000  cat > conftest.$ac_ext <<EOF
12001#line 12001 "configure"
12002#include "confdefs.h"
12003
12004#if HAVE_DLFCN_H
12005#include <dlfcn.h>
12006#endif
12007
12008#include <stdio.h>
12009
12010#ifdef RTLD_GLOBAL
12011#  define LT_DLGLOBAL		RTLD_GLOBAL
12012#else
12013#  ifdef DL_GLOBAL
12014#    define LT_DLGLOBAL		DL_GLOBAL
12015#  else
12016#    define LT_DLGLOBAL		0
12017#  endif
12018#endif
12019
12020/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12021   find out it does not work in some platform. */
12022#ifndef LT_DLLAZY_OR_NOW
12023#  ifdef RTLD_LAZY
12024#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12025#  else
12026#    ifdef DL_LAZY
12027#      define LT_DLLAZY_OR_NOW		DL_LAZY
12028#    else
12029#      ifdef RTLD_NOW
12030#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12031#      else
12032#        ifdef DL_NOW
12033#          define LT_DLLAZY_OR_NOW	DL_NOW
12034#        else
12035#          define LT_DLLAZY_OR_NOW	0
12036#        endif
12037#      endif
12038#    endif
12039#  endif
12040#endif
12041
12042#ifdef __cplusplus
12043extern "C" void exit (int);
12044#endif
12045
12046void fnord() { int i=42;}
12047int main ()
12048{
12049  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12050  int status = $lt_dlunknown;
12051
12052  if (self)
12053    {
12054      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12055      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12056      /* dlclose (self); */
12057    }
12058  else
12059    puts (dlerror ());
12060
12061    exit (status);
12062}
12063EOF
12064  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12065  (eval $ac_link) 2>&5
12066  ac_status=$?
12067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12069    (./conftest; exit; ) >&5 2>/dev/null
12070    lt_status=$?
12071    case x$lt_status in
12072      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12073      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12074      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12075    esac
12076  else :
12077    # compilation failed
12078    lt_cv_dlopen_self=no
12079  fi
12080fi
12081rm -fr conftest*
12082
12083
12084fi
12085{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12086$as_echo "$lt_cv_dlopen_self" >&6; }
12087
12088    if test "x$lt_cv_dlopen_self" = xyes; then
12089      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12090      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12091$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12092if test "${lt_cv_dlopen_self_static+set}" = set; then
12093  $as_echo_n "(cached) " >&6
12094else
12095  	  if test "$cross_compiling" = yes; then :
12096  lt_cv_dlopen_self_static=cross
12097else
12098  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12099  lt_status=$lt_dlunknown
12100  cat > conftest.$ac_ext <<EOF
12101#line 12101 "configure"
12102#include "confdefs.h"
12103
12104#if HAVE_DLFCN_H
12105#include <dlfcn.h>
12106#endif
12107
12108#include <stdio.h>
12109
12110#ifdef RTLD_GLOBAL
12111#  define LT_DLGLOBAL		RTLD_GLOBAL
12112#else
12113#  ifdef DL_GLOBAL
12114#    define LT_DLGLOBAL		DL_GLOBAL
12115#  else
12116#    define LT_DLGLOBAL		0
12117#  endif
12118#endif
12119
12120/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12121   find out it does not work in some platform. */
12122#ifndef LT_DLLAZY_OR_NOW
12123#  ifdef RTLD_LAZY
12124#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12125#  else
12126#    ifdef DL_LAZY
12127#      define LT_DLLAZY_OR_NOW		DL_LAZY
12128#    else
12129#      ifdef RTLD_NOW
12130#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12131#      else
12132#        ifdef DL_NOW
12133#          define LT_DLLAZY_OR_NOW	DL_NOW
12134#        else
12135#          define LT_DLLAZY_OR_NOW	0
12136#        endif
12137#      endif
12138#    endif
12139#  endif
12140#endif
12141
12142#ifdef __cplusplus
12143extern "C" void exit (int);
12144#endif
12145
12146void fnord() { int i=42;}
12147int main ()
12148{
12149  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12150  int status = $lt_dlunknown;
12151
12152  if (self)
12153    {
12154      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12155      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12156      /* dlclose (self); */
12157    }
12158  else
12159    puts (dlerror ());
12160
12161    exit (status);
12162}
12163EOF
12164  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12165  (eval $ac_link) 2>&5
12166  ac_status=$?
12167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12169    (./conftest; exit; ) >&5 2>/dev/null
12170    lt_status=$?
12171    case x$lt_status in
12172      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12173      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12174      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12175    esac
12176  else :
12177    # compilation failed
12178    lt_cv_dlopen_self_static=no
12179  fi
12180fi
12181rm -fr conftest*
12182
12183
12184fi
12185{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12186$as_echo "$lt_cv_dlopen_self_static" >&6; }
12187    fi
12188
12189    CPPFLAGS="$save_CPPFLAGS"
12190    LDFLAGS="$save_LDFLAGS"
12191    LIBS="$save_LIBS"
12192    ;;
12193  esac
12194
12195  case $lt_cv_dlopen_self in
12196  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12197  *) enable_dlopen_self=unknown ;;
12198  esac
12199
12200  case $lt_cv_dlopen_self_static in
12201  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12202  *) enable_dlopen_self_static=unknown ;;
12203  esac
12204fi
12205
12206
12207# Report which library types will actually be built
12208{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12209$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12210{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12211$as_echo "$can_build_shared" >&6; }
12212
12213{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12214$as_echo_n "checking whether to build shared libraries... " >&6; }
12215test "$can_build_shared" = "no" && enable_shared=no
12216
12217# On AIX, shared libraries and static libraries use the same namespace, and
12218# are all built from PIC.
12219case $host_os in
12220aix3*)
12221  test "$enable_shared" = yes && enable_static=no
12222  if test -n "$RANLIB"; then
12223    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12224    postinstall_cmds='$RANLIB $lib'
12225  fi
12226  ;;
12227
12228aix4* | aix5*)
12229  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12230    test "$enable_shared" = yes && enable_static=no
12231  fi
12232    ;;
12233esac
12234{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12235$as_echo "$enable_shared" >&6; }
12236
12237{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12238$as_echo_n "checking whether to build static libraries... " >&6; }
12239# Make sure either enable_shared or enable_static is yes.
12240test "$enable_shared" = yes || enable_static=yes
12241{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12242$as_echo "$enable_static" >&6; }
12243
12244# The else clause should only fire when bootstrapping the
12245# libtool distribution, otherwise you forgot to ship ltmain.sh
12246# with your package, and you will get complaints that there are
12247# no rules to generate ltmain.sh.
12248if test -f "$ltmain"; then
12249  # See if we are running on zsh, and set the options which allow our commands through
12250  # without removal of \ escapes.
12251  if test -n "${ZSH_VERSION+set}" ; then
12252    setopt NO_GLOB_SUBST
12253  fi
12254  # Now quote all the things that may contain metacharacters while being
12255  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12256  # variables and quote the copies for generation of the libtool script.
12257  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12258    SED SHELL STRIP \
12259    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12260    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12261    deplibs_check_method reload_flag reload_cmds need_locks \
12262    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12263    lt_cv_sys_global_symbol_to_c_name_address \
12264    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12265    old_postinstall_cmds old_postuninstall_cmds \
12266    compiler \
12267    CC \
12268    LD \
12269    lt_prog_compiler_wl \
12270    lt_prog_compiler_pic \
12271    lt_prog_compiler_static \
12272    lt_prog_compiler_no_builtin_flag \
12273    export_dynamic_flag_spec \
12274    thread_safe_flag_spec \
12275    whole_archive_flag_spec \
12276    enable_shared_with_static_runtimes \
12277    old_archive_cmds \
12278    old_archive_from_new_cmds \
12279    predep_objects \
12280    postdep_objects \
12281    predeps \
12282    postdeps \
12283    compiler_lib_search_path \
12284    archive_cmds \
12285    archive_expsym_cmds \
12286    postinstall_cmds \
12287    postuninstall_cmds \
12288    old_archive_from_expsyms_cmds \
12289    allow_undefined_flag \
12290    no_undefined_flag \
12291    export_symbols_cmds \
12292    hardcode_libdir_flag_spec \
12293    hardcode_libdir_flag_spec_ld \
12294    hardcode_libdir_separator \
12295    hardcode_automatic \
12296    module_cmds \
12297    module_expsym_cmds \
12298    lt_cv_prog_compiler_c_o \
12299    fix_srcfile_path \
12300    exclude_expsyms \
12301    include_expsyms; do
12302
12303    case $var in
12304    old_archive_cmds | \
12305    old_archive_from_new_cmds | \
12306    archive_cmds | \
12307    archive_expsym_cmds | \
12308    module_cmds | \
12309    module_expsym_cmds | \
12310    old_archive_from_expsyms_cmds | \
12311    export_symbols_cmds | \
12312    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12313    postinstall_cmds | postuninstall_cmds | \
12314    old_postinstall_cmds | old_postuninstall_cmds | \
12315    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12316      # Double-quote double-evaled strings.
12317      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12318      ;;
12319    *)
12320      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12321      ;;
12322    esac
12323  done
12324
12325  case $lt_echo in
12326  *'\$0 --fallback-echo"')
12327    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12328    ;;
12329  esac
12330
12331cfgfile="${ofile}T"
12332  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12333  $rm -f "$cfgfile"
12334  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
12335$as_echo "$as_me: creating $ofile" >&6;}
12336
12337  cat <<__EOF__ >> "$cfgfile"
12338#! $SHELL
12339
12340# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12341# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12342# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12343#
12344# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
12345# Free Software Foundation, Inc.
12346#
12347# This file is part of GNU Libtool:
12348# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12349#
12350# This program is free software; you can redistribute it and/or modify
12351# it under the terms of the GNU General Public License as published by
12352# the Free Software Foundation; either version 2 of the License, or
12353# (at your option) any later version.
12354#
12355# This program is distributed in the hope that it will be useful, but
12356# WITHOUT ANY WARRANTY; without even the implied warranty of
12357# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12358# General Public License for more details.
12359#
12360# You should have received a copy of the GNU General Public License
12361# along with this program; if not, write to the Free Software
12362# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12363#
12364# As a special exception to the GNU General Public License, if you
12365# distribute this file as part of a program that contains a
12366# configuration script generated by Autoconf, you may include it under
12367# the same distribution terms that you use for the rest of that program.
12368
12369# A sed program that does not truncate output.
12370SED=$lt_SED
12371
12372# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12373Xsed="$SED -e 1s/^X//"
12374
12375# The HP-UX ksh and POSIX shell print the target directory to stdout
12376# if CDPATH is set.
12377(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12378
12379# The names of the tagged configurations supported by this script.
12380available_tags=
12381
12382# ### BEGIN LIBTOOL CONFIG
12383
12384# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12385
12386# Shell to use when invoking shell scripts.
12387SHELL=$lt_SHELL
12388
12389# Whether or not to build shared libraries.
12390build_libtool_libs=$enable_shared
12391
12392# Whether or not to build static libraries.
12393build_old_libs=$enable_static
12394
12395# Whether or not to add -lc for building shared libraries.
12396build_libtool_need_lc=$archive_cmds_need_lc
12397
12398# Whether or not to disallow shared libs when runtime libs are static
12399allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12400
12401# Whether or not to optimize for fast installation.
12402fast_install=$enable_fast_install
12403
12404# The host system.
12405host_alias=$host_alias
12406host=$host
12407host_os=$host_os
12408
12409# The build system.
12410build_alias=$build_alias
12411build=$build
12412build_os=$build_os
12413
12414# An echo program that does not interpret backslashes.
12415echo=$lt_echo
12416
12417# The archiver.
12418AR=$lt_AR
12419AR_FLAGS=$lt_AR_FLAGS
12420
12421# A C compiler.
12422LTCC=$lt_LTCC
12423
12424# LTCC compiler flags.
12425LTCFLAGS=$lt_LTCFLAGS
12426
12427# A language-specific compiler.
12428CC=$lt_compiler
12429
12430# Is the compiler the GNU C compiler?
12431with_gcc=$GCC
12432
12433# An ERE matcher.
12434EGREP=$lt_EGREP
12435
12436# The linker used to build libraries.
12437LD=$lt_LD
12438
12439# Whether we need hard or soft links.
12440LN_S=$lt_LN_S
12441
12442# A BSD-compatible nm program.
12443NM=$lt_NM
12444
12445# A symbol stripping program
12446STRIP=$lt_STRIP
12447
12448# Used to examine libraries when file_magic_cmd begins "file"
12449MAGIC_CMD=$MAGIC_CMD
12450
12451# Used on cygwin: DLL creation program.
12452DLLTOOL="$DLLTOOL"
12453
12454# Used on cygwin: object dumper.
12455OBJDUMP="$OBJDUMP"
12456
12457# Used on cygwin: assembler.
12458AS="$AS"
12459
12460# The name of the directory that contains temporary libtool files.
12461objdir=$objdir
12462
12463# How to create reloadable object files.
12464reload_flag=$lt_reload_flag
12465reload_cmds=$lt_reload_cmds
12466
12467# How to pass a linker flag through the compiler.
12468wl=$lt_lt_prog_compiler_wl
12469
12470# Object file suffix (normally "o").
12471objext="$ac_objext"
12472
12473# Old archive suffix (normally "a").
12474libext="$libext"
12475
12476# Shared library suffix (normally ".so").
12477shrext_cmds='$shrext_cmds'
12478
12479# Executable file suffix (normally "").
12480exeext="$exeext"
12481
12482# Additional compiler flags for building library objects.
12483pic_flag=$lt_lt_prog_compiler_pic
12484pic_mode=$pic_mode
12485
12486# What is the maximum length of a command?
12487max_cmd_len=$lt_cv_sys_max_cmd_len
12488
12489# Does compiler simultaneously support -c and -o options?
12490compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12491
12492# Must we lock files when doing compilation?
12493need_locks=$lt_need_locks
12494
12495# Do we need the lib prefix for modules?
12496need_lib_prefix=$need_lib_prefix
12497
12498# Do we need a version for libraries?
12499need_version=$need_version
12500
12501# Whether dlopen is supported.
12502dlopen_support=$enable_dlopen
12503
12504# Whether dlopen of programs is supported.
12505dlopen_self=$enable_dlopen_self
12506
12507# Whether dlopen of statically linked programs is supported.
12508dlopen_self_static=$enable_dlopen_self_static
12509
12510# Compiler flag to prevent dynamic linking.
12511link_static_flag=$lt_lt_prog_compiler_static
12512
12513# Compiler flag to turn off builtin functions.
12514no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12515
12516# Compiler flag to allow reflexive dlopens.
12517export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12518
12519# Compiler flag to generate shared objects directly from archives.
12520whole_archive_flag_spec=$lt_whole_archive_flag_spec
12521
12522# Compiler flag to generate thread-safe objects.
12523thread_safe_flag_spec=$lt_thread_safe_flag_spec
12524
12525# Library versioning type.
12526version_type=$version_type
12527
12528# Format of library name prefix.
12529libname_spec=$lt_libname_spec
12530
12531# List of archive names.  First name is the real one, the rest are links.
12532# The last name is the one that the linker finds with -lNAME.
12533library_names_spec=$lt_library_names_spec
12534
12535# The coded name of the library, if different from the real name.
12536soname_spec=$lt_soname_spec
12537
12538# Commands used to build and install an old-style archive.
12539RANLIB=$lt_RANLIB
12540old_archive_cmds=$lt_old_archive_cmds
12541old_postinstall_cmds=$lt_old_postinstall_cmds
12542old_postuninstall_cmds=$lt_old_postuninstall_cmds
12543
12544# Create an old-style archive from a shared archive.
12545old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12546
12547# Create a temporary old-style archive to link instead of a shared archive.
12548old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12549
12550# Commands used to build and install a shared archive.
12551archive_cmds=$lt_archive_cmds
12552archive_expsym_cmds=$lt_archive_expsym_cmds
12553postinstall_cmds=$lt_postinstall_cmds
12554postuninstall_cmds=$lt_postuninstall_cmds
12555
12556# Commands used to build a loadable module (assumed same as above if empty)
12557module_cmds=$lt_module_cmds
12558module_expsym_cmds=$lt_module_expsym_cmds
12559
12560# Commands to strip libraries.
12561old_striplib=$lt_old_striplib
12562striplib=$lt_striplib
12563
12564# Dependencies to place before the objects being linked to create a
12565# shared library.
12566predep_objects=$lt_predep_objects
12567
12568# Dependencies to place after the objects being linked to create a
12569# shared library.
12570postdep_objects=$lt_postdep_objects
12571
12572# Dependencies to place before the objects being linked to create a
12573# shared library.
12574predeps=$lt_predeps
12575
12576# Dependencies to place after the objects being linked to create a
12577# shared library.
12578postdeps=$lt_postdeps
12579
12580# The library search path used internally by the compiler when linking
12581# a shared library.
12582compiler_lib_search_path=$lt_compiler_lib_search_path
12583
12584# Method to check whether dependent libraries are shared objects.
12585deplibs_check_method=$lt_deplibs_check_method
12586
12587# Command to use when deplibs_check_method == file_magic.
12588file_magic_cmd=$lt_file_magic_cmd
12589
12590# Flag that allows shared libraries with undefined symbols to be built.
12591allow_undefined_flag=$lt_allow_undefined_flag
12592
12593# Flag that forces no undefined symbols.
12594no_undefined_flag=$lt_no_undefined_flag
12595
12596# Commands used to finish a libtool library installation in a directory.
12597finish_cmds=$lt_finish_cmds
12598
12599# Same as above, but a single script fragment to be evaled but not shown.
12600finish_eval=$lt_finish_eval
12601
12602# Take the output of nm and produce a listing of raw symbols and C names.
12603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12604
12605# Transform the output of nm in a proper C declaration
12606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12607
12608# Transform the output of nm in a C name address pair
12609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12610
12611# This is the shared library runtime path variable.
12612runpath_var=$runpath_var
12613
12614# This is the shared library path variable.
12615shlibpath_var=$shlibpath_var
12616
12617# Is shlibpath searched before the hard-coded library search path?
12618shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12619
12620# How to hardcode a shared library path into an executable.
12621hardcode_action=$hardcode_action
12622
12623# Whether we should hardcode library paths into libraries.
12624hardcode_into_libs=$hardcode_into_libs
12625
12626# Flag to hardcode \$libdir into a binary during linking.
12627# This must work even if \$libdir does not exist.
12628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12629
12630# If ld is used when linking, flag to hardcode \$libdir into
12631# a binary during linking. This must work even if \$libdir does
12632# not exist.
12633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12634
12635# Whether we need a single -rpath flag with a separated argument.
12636hardcode_libdir_separator=$lt_hardcode_libdir_separator
12637
12638# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12639# resulting binary.
12640hardcode_direct=$hardcode_direct
12641
12642# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12643# resulting binary.
12644hardcode_minus_L=$hardcode_minus_L
12645
12646# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12647# the resulting binary.
12648hardcode_shlibpath_var=$hardcode_shlibpath_var
12649
12650# Set to yes if building a shared library automatically hardcodes DIR into the library
12651# and all subsequent libraries and executables linked against it.
12652hardcode_automatic=$hardcode_automatic
12653
12654# Variables whose values should be saved in libtool wrapper scripts and
12655# restored at relink time.
12656variables_saved_for_relink="$variables_saved_for_relink"
12657
12658# Whether libtool must link a program against all its dependency libraries.
12659link_all_deplibs=$link_all_deplibs
12660
12661# Compile-time system search path for libraries
12662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12663
12664# Run-time system search path for libraries
12665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12666
12667# Fix the shell variable \$srcfile for the compiler.
12668fix_srcfile_path=$lt_fix_srcfile_path
12669
12670# Set to yes if exported symbols are required.
12671always_export_symbols=$always_export_symbols
12672
12673# The commands to list exported symbols.
12674export_symbols_cmds=$lt_export_symbols_cmds
12675
12676# The commands to extract the exported symbol list from a shared archive.
12677extract_expsyms_cmds=$lt_extract_expsyms_cmds
12678
12679# Symbols that should not be listed in the preloaded symbols.
12680exclude_expsyms=$lt_exclude_expsyms
12681
12682# Symbols that must always be exported.
12683include_expsyms=$lt_include_expsyms
12684
12685# ### END LIBTOOL CONFIG
12686
12687__EOF__
12688
12689
12690  case $host_os in
12691  aix3*)
12692    cat <<\EOF >> "$cfgfile"
12693
12694# AIX sometimes has problems with the GCC collect2 program.  For some
12695# reason, if we set the COLLECT_NAMES environment variable, the problems
12696# vanish in a puff of smoke.
12697if test "X${COLLECT_NAMES+set}" != Xset; then
12698  COLLECT_NAMES=
12699  export COLLECT_NAMES
12700fi
12701EOF
12702    ;;
12703  esac
12704
12705  # We use sed instead of cat because bash on DJGPP gets confused if
12706  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12707  # text mode, it properly converts lines to CR/LF.  This bash problem
12708  # is reportedly fixed, but why not run on old versions too?
12709  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12710
12711  mv -f "$cfgfile" "$ofile" || \
12712    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12713  chmod +x "$ofile"
12714
12715else
12716  # If there is no Makefile yet, we rely on a make rule to execute
12717  # `config.status --recheck' to rerun these tests and create the
12718  # libtool script then.
12719  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12720  if test -f "$ltmain_in"; then
12721    test -f Makefile && make "$ltmain"
12722  fi
12723fi
12724
12725
12726ac_ext=c
12727ac_cpp='$CPP $CPPFLAGS'
12728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12730ac_compiler_gnu=$ac_cv_c_compiler_gnu
12731
12732CC="$lt_save_CC"
12733
12734
12735# Check whether --with-tags was given.
12736if test "${with_tags+set}" = set; then
12737  withval=$with_tags; tagnames="$withval"
12738fi
12739
12740
12741if test -f "$ltmain" && test -n "$tagnames"; then
12742  if test ! -f "${ofile}"; then
12743    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12744$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12745  fi
12746
12747  if test -z "$LTCC"; then
12748    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12749    if test -z "$LTCC"; then
12750      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12751$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12752    else
12753      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12754$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12755    fi
12756  fi
12757  if test -z "$LTCFLAGS"; then
12758    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12759  fi
12760
12761  # Extract list of available tagged configurations in $ofile.
12762  # Note that this assumes the entire list is on one line.
12763  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12764
12765  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12766  for tagname in $tagnames; do
12767    IFS="$lt_save_ifs"
12768    # Check whether tagname contains only valid characters
12769    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12770    "") ;;
12771    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12772$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
12773   { (exit 1); exit 1; }; }
12774	;;
12775    esac
12776
12777    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12778    then
12779      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12780$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12781   { (exit 1); exit 1; }; }
12782    fi
12783
12784    # Update the list of available tags.
12785    if test -n "$tagname"; then
12786      echo appending configuration tag \"$tagname\" to $ofile
12787
12788      case $tagname in
12789      CXX)
12790	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12791	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12792	    (test "X$CXX" != "Xg++"))) ; then
12793	  ac_ext=cpp
12794ac_cpp='$CXXCPP $CPPFLAGS'
12795ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12796ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12797ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12798
12799
12800
12801
12802archive_cmds_need_lc_CXX=no
12803allow_undefined_flag_CXX=
12804always_export_symbols_CXX=no
12805archive_expsym_cmds_CXX=
12806export_dynamic_flag_spec_CXX=
12807hardcode_direct_CXX=no
12808hardcode_libdir_flag_spec_CXX=
12809hardcode_libdir_flag_spec_ld_CXX=
12810hardcode_libdir_separator_CXX=
12811hardcode_minus_L_CXX=no
12812hardcode_shlibpath_var_CXX=unsupported
12813hardcode_automatic_CXX=no
12814module_cmds_CXX=
12815module_expsym_cmds_CXX=
12816link_all_deplibs_CXX=unknown
12817old_archive_cmds_CXX=$old_archive_cmds
12818no_undefined_flag_CXX=
12819whole_archive_flag_spec_CXX=
12820enable_shared_with_static_runtimes_CXX=no
12821
12822# Dependencies to place before and after the object being linked:
12823predep_objects_CXX=
12824postdep_objects_CXX=
12825predeps_CXX=
12826postdeps_CXX=
12827compiler_lib_search_path_CXX=
12828
12829# Source file extension for C++ test sources.
12830ac_ext=cpp
12831
12832# Object file extension for compiled C++ test sources.
12833objext=o
12834objext_CXX=$objext
12835
12836# Code to be used in simple compile tests
12837lt_simple_compile_test_code="int some_variable = 0;"
12838
12839# Code to be used in simple link tests
12840lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12841
12842# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12843
12844# If no C compiler was specified, use CC.
12845LTCC=${LTCC-"$CC"}
12846
12847# If no C compiler flags were specified, use CFLAGS.
12848LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12849
12850# Allow CC to be a program name with arguments.
12851compiler=$CC
12852
12853
12854# save warnings/boilerplate of simple test code
12855ac_outfile=conftest.$ac_objext
12856echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12857eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12858_lt_compiler_boilerplate=`cat conftest.err`
12859$rm conftest*
12860
12861ac_outfile=conftest.$ac_objext
12862echo "$lt_simple_link_test_code" >conftest.$ac_ext
12863eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12864_lt_linker_boilerplate=`cat conftest.err`
12865$rm conftest*
12866
12867
12868# Allow CC to be a program name with arguments.
12869lt_save_CC=$CC
12870lt_save_LD=$LD
12871lt_save_GCC=$GCC
12872GCC=$GXX
12873lt_save_with_gnu_ld=$with_gnu_ld
12874lt_save_path_LD=$lt_cv_path_LD
12875if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12876  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12877else
12878  $as_unset lt_cv_prog_gnu_ld
12879fi
12880if test -n "${lt_cv_path_LDCXX+set}"; then
12881  lt_cv_path_LD=$lt_cv_path_LDCXX
12882else
12883  $as_unset lt_cv_path_LD
12884fi
12885test -z "${LDCXX+set}" || LD=$LDCXX
12886CC=${CXX-"c++"}
12887compiler=$CC
12888compiler_CXX=$CC
12889for cc_temp in $compiler""; do
12890  case $cc_temp in
12891    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12892    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12893    \-*) ;;
12894    *) break;;
12895  esac
12896done
12897cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12898
12899
12900# We don't want -fno-exception wen compiling C++ code, so set the
12901# no_builtin_flag separately
12902if test "$GXX" = yes; then
12903  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12904else
12905  lt_prog_compiler_no_builtin_flag_CXX=
12906fi
12907
12908if test "$GXX" = yes; then
12909  # Set up default GNU C++ configuration
12910
12911
12912# Check whether --with-gnu-ld was given.
12913if test "${with_gnu_ld+set}" = set; then
12914  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12915else
12916  with_gnu_ld=no
12917fi
12918
12919ac_prog=ld
12920if test "$GCC" = yes; then
12921  # Check if gcc -print-prog-name=ld gives a path.
12922  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12923$as_echo_n "checking for ld used by $CC... " >&6; }
12924  case $host in
12925  *-*-mingw*)
12926    # gcc leaves a trailing carriage return which upsets mingw
12927    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12928  *)
12929    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12930  esac
12931  case $ac_prog in
12932    # Accept absolute paths.
12933    [\\/]* | ?:[\\/]*)
12934      re_direlt='/[^/][^/]*/\.\./'
12935      # Canonicalize the pathname of ld
12936      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12937      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12938	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12939      done
12940      test -z "$LD" && LD="$ac_prog"
12941      ;;
12942  "")
12943    # If it fails, then pretend we aren't using GCC.
12944    ac_prog=ld
12945    ;;
12946  *)
12947    # If it is relative, then search for the first ld in PATH.
12948    with_gnu_ld=unknown
12949    ;;
12950  esac
12951elif test "$with_gnu_ld" = yes; then
12952  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
12953$as_echo_n "checking for GNU ld... " >&6; }
12954else
12955  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12956$as_echo_n "checking for non-GNU ld... " >&6; }
12957fi
12958if test "${lt_cv_path_LD+set}" = set; then
12959  $as_echo_n "(cached) " >&6
12960else
12961  if test -z "$LD"; then
12962  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12963  for ac_dir in $PATH; do
12964    IFS="$lt_save_ifs"
12965    test -z "$ac_dir" && ac_dir=.
12966    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12967      lt_cv_path_LD="$ac_dir/$ac_prog"
12968      # Check to see if the program is GNU ld.  I'd rather use --version,
12969      # but apparently some variants of GNU ld only accept -v.
12970      # Break only if it was the GNU/non-GNU ld that we prefer.
12971      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12972      *GNU* | *'with BFD'*)
12973	test "$with_gnu_ld" != no && break
12974	;;
12975      *)
12976	test "$with_gnu_ld" != yes && break
12977	;;
12978      esac
12979    fi
12980  done
12981  IFS="$lt_save_ifs"
12982else
12983  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12984fi
12985fi
12986
12987LD="$lt_cv_path_LD"
12988if test -n "$LD"; then
12989  { $as_echo "$as_me:$LINENO: result: $LD" >&5
12990$as_echo "$LD" >&6; }
12991else
12992  { $as_echo "$as_me:$LINENO: result: no" >&5
12993$as_echo "no" >&6; }
12994fi
12995test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12996$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12997   { (exit 1); exit 1; }; }
12998{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12999$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13000if test "${lt_cv_prog_gnu_ld+set}" = set; then
13001  $as_echo_n "(cached) " >&6
13002else
13003  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13004case `$LD -v 2>&1 </dev/null` in
13005*GNU* | *'with BFD'*)
13006  lt_cv_prog_gnu_ld=yes
13007  ;;
13008*)
13009  lt_cv_prog_gnu_ld=no
13010  ;;
13011esac
13012fi
13013{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13014$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13015with_gnu_ld=$lt_cv_prog_gnu_ld
13016
13017
13018
13019  # Check if GNU C++ uses GNU ld as the underlying linker, since the
13020  # archiving commands below assume that GNU ld is being used.
13021  if test "$with_gnu_ld" = yes; then
13022    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13023    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13024
13025    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13026    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13027
13028    # If archive_cmds runs LD, not CC, wlarc should be empty
13029    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13030    #     investigate it a little bit more. (MM)
13031    wlarc='${wl}'
13032
13033    # ancient GNU ld didn't support --whole-archive et. al.
13034    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13035	grep 'no-whole-archive' > /dev/null; then
13036      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13037    else
13038      whole_archive_flag_spec_CXX=
13039    fi
13040  else
13041    with_gnu_ld=no
13042    wlarc=
13043
13044    # A generic and very simple default shared library creation
13045    # command for GNU C++ for the case where it uses the native
13046    # linker, instead of GNU ld.  If possible, this setting should
13047    # overridden to take advantage of the native linker features on
13048    # the platform it is being used on.
13049    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13050  fi
13051
13052  # Commands to make compiler produce verbose output that lists
13053  # what "hidden" libraries, object files and flags are used when
13054  # linking a shared library.
13055  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13056
13057else
13058  GXX=no
13059  with_gnu_ld=no
13060  wlarc=
13061fi
13062
13063# PORTME: fill in a description of your system's C++ link characteristics
13064{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13065$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13066ld_shlibs_CXX=yes
13067case $host_os in
13068  aix3*)
13069    # FIXME: insert proper C++ library support
13070    ld_shlibs_CXX=no
13071    ;;
13072  aix4* | aix5*)
13073    if test "$host_cpu" = ia64; then
13074      # On IA64, the linker does run time linking by default, so we don't
13075      # have to do anything special.
13076      aix_use_runtimelinking=no
13077      exp_sym_flag='-Bexport'
13078      no_entry_flag=""
13079    else
13080      aix_use_runtimelinking=no
13081
13082      # Test if we are trying to use run time linking or normal
13083      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13084      # need to do runtime linking.
13085      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13086	for ld_flag in $LDFLAGS; do
13087	  case $ld_flag in
13088	  *-brtl*)
13089	    aix_use_runtimelinking=yes
13090	    break
13091	    ;;
13092	  esac
13093	done
13094	;;
13095      esac
13096
13097      exp_sym_flag='-bexport'
13098      no_entry_flag='-bnoentry'
13099    fi
13100
13101    # When large executables or shared objects are built, AIX ld can
13102    # have problems creating the table of contents.  If linking a library
13103    # or program results in "error TOC overflow" add -mminimal-toc to
13104    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13105    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13106
13107    archive_cmds_CXX=''
13108    hardcode_direct_CXX=yes
13109    hardcode_libdir_separator_CXX=':'
13110    link_all_deplibs_CXX=yes
13111
13112    if test "$GXX" = yes; then
13113      case $host_os in aix4.[012]|aix4.[012].*)
13114      # We only want to do this on AIX 4.2 and lower, the check
13115      # below for broken collect2 doesn't work under 4.3+
13116	collect2name=`${CC} -print-prog-name=collect2`
13117	if test -f "$collect2name" && \
13118	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13119	then
13120	  # We have reworked collect2
13121	  :
13122	else
13123	  # We have old collect2
13124	  hardcode_direct_CXX=unsupported
13125	  # It fails to find uninstalled libraries when the uninstalled
13126	  # path is not listed in the libpath.  Setting hardcode_minus_L
13127	  # to unsupported forces relinking
13128	  hardcode_minus_L_CXX=yes
13129	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13130	  hardcode_libdir_separator_CXX=
13131	fi
13132	;;
13133      esac
13134      shared_flag='-shared'
13135      if test "$aix_use_runtimelinking" = yes; then
13136	shared_flag="$shared_flag "'${wl}-G'
13137      fi
13138    else
13139      # not using gcc
13140      if test "$host_cpu" = ia64; then
13141	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13142	# chokes on -Wl,-G. The following line is correct:
13143	shared_flag='-G'
13144      else
13145	if test "$aix_use_runtimelinking" = yes; then
13146	  shared_flag='${wl}-G'
13147	else
13148	  shared_flag='${wl}-bM:SRE'
13149	fi
13150      fi
13151    fi
13152
13153    # It seems that -bexpall does not export symbols beginning with
13154    # underscore (_), so it is better to generate a list of symbols to export.
13155    always_export_symbols_CXX=yes
13156    if test "$aix_use_runtimelinking" = yes; then
13157      # Warning - without using the other runtime loading flags (-brtl),
13158      # -berok will link without error, but may produce a broken library.
13159      allow_undefined_flag_CXX='-berok'
13160      # Determine the default libpath from the value encoded in an empty executable.
13161      cat >conftest.$ac_ext <<_ACEOF
13162/* confdefs.h.  */
13163_ACEOF
13164cat confdefs.h >>conftest.$ac_ext
13165cat >>conftest.$ac_ext <<_ACEOF
13166/* end confdefs.h.  */
13167
13168int
13169main ()
13170{
13171
13172  ;
13173  return 0;
13174}
13175_ACEOF
13176rm -f conftest.$ac_objext conftest$ac_exeext
13177if { (ac_try="$ac_link"
13178case "(($ac_try" in
13179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180  *) ac_try_echo=$ac_try;;
13181esac
13182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13183$as_echo "$ac_try_echo") >&5
13184  (eval "$ac_link") 2>conftest.er1
13185  ac_status=$?
13186  grep -v '^ *+' conftest.er1 >conftest.err
13187  rm -f conftest.er1
13188  cat conftest.err >&5
13189  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190  (exit $ac_status); } && {
13191	 test -z "$ac_cxx_werror_flag" ||
13192	 test ! -s conftest.err
13193       } && test -s conftest$ac_exeext && {
13194	 test "$cross_compiling" = yes ||
13195	 $as_test_x conftest$ac_exeext
13196       }; then
13197
13198lt_aix_libpath_sed='
13199    /Import File Strings/,/^$/ {
13200	/^0/ {
13201	    s/^0  *\(.*\)$/\1/
13202	    p
13203	}
13204    }'
13205aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13206# Check for a 64-bit object if we didn't find anything.
13207if test -z "$aix_libpath"; then
13208  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13209fi
13210else
13211  $as_echo "$as_me: failed program was:" >&5
13212sed 's/^/| /' conftest.$ac_ext >&5
13213
13214
13215fi
13216
13217rm -rf conftest.dSYM
13218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13219      conftest$ac_exeext conftest.$ac_ext
13220if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13221
13222      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13223
13224      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13225     else
13226      if test "$host_cpu" = ia64; then
13227	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13228	allow_undefined_flag_CXX="-z nodefs"
13229	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13230      else
13231	# Determine the default libpath from the value encoded in an empty executable.
13232	cat >conftest.$ac_ext <<_ACEOF
13233/* confdefs.h.  */
13234_ACEOF
13235cat confdefs.h >>conftest.$ac_ext
13236cat >>conftest.$ac_ext <<_ACEOF
13237/* end confdefs.h.  */
13238
13239int
13240main ()
13241{
13242
13243  ;
13244  return 0;
13245}
13246_ACEOF
13247rm -f conftest.$ac_objext conftest$ac_exeext
13248if { (ac_try="$ac_link"
13249case "(($ac_try" in
13250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251  *) ac_try_echo=$ac_try;;
13252esac
13253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13254$as_echo "$ac_try_echo") >&5
13255  (eval "$ac_link") 2>conftest.er1
13256  ac_status=$?
13257  grep -v '^ *+' conftest.er1 >conftest.err
13258  rm -f conftest.er1
13259  cat conftest.err >&5
13260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261  (exit $ac_status); } && {
13262	 test -z "$ac_cxx_werror_flag" ||
13263	 test ! -s conftest.err
13264       } && test -s conftest$ac_exeext && {
13265	 test "$cross_compiling" = yes ||
13266	 $as_test_x conftest$ac_exeext
13267       }; then
13268
13269lt_aix_libpath_sed='
13270    /Import File Strings/,/^$/ {
13271	/^0/ {
13272	    s/^0  *\(.*\)$/\1/
13273	    p
13274	}
13275    }'
13276aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13277# Check for a 64-bit object if we didn't find anything.
13278if test -z "$aix_libpath"; then
13279  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13280fi
13281else
13282  $as_echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285
13286fi
13287
13288rm -rf conftest.dSYM
13289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13290      conftest$ac_exeext conftest.$ac_ext
13291if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13292
13293	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13294	# Warning - without using the other run time loading flags,
13295	# -berok will link without error, but may produce a broken library.
13296	no_undefined_flag_CXX=' ${wl}-bernotok'
13297	allow_undefined_flag_CXX=' ${wl}-berok'
13298	# Exported symbols can be pulled into shared objects from archives
13299	whole_archive_flag_spec_CXX='$convenience'
13300	archive_cmds_need_lc_CXX=yes
13301	# This is similar to how AIX traditionally builds its shared libraries.
13302	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13303      fi
13304    fi
13305    ;;
13306
13307  beos*)
13308    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13309      allow_undefined_flag_CXX=unsupported
13310      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13311      # support --undefined.  This deserves some investigation.  FIXME
13312      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13313    else
13314      ld_shlibs_CXX=no
13315    fi
13316    ;;
13317
13318  chorus*)
13319    case $cc_basename in
13320      *)
13321	# FIXME: insert proper C++ library support
13322	ld_shlibs_CXX=no
13323	;;
13324    esac
13325    ;;
13326
13327  cygwin* | mingw* | pw32*)
13328    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13329    # as there is no search path for DLLs.
13330    hardcode_libdir_flag_spec_CXX='-L$libdir'
13331    allow_undefined_flag_CXX=unsupported
13332    always_export_symbols_CXX=no
13333    enable_shared_with_static_runtimes_CXX=yes
13334
13335    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13336      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13337      # If the export-symbols file already is a .def file (1st line
13338      # is EXPORTS), use it as is; otherwise, prepend...
13339      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13340	cp $export_symbols $output_objdir/$soname.def;
13341      else
13342	echo EXPORTS > $output_objdir/$soname.def;
13343	cat $export_symbols >> $output_objdir/$soname.def;
13344      fi~
13345      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13346    else
13347      ld_shlibs_CXX=no
13348    fi
13349  ;;
13350      darwin* | rhapsody*)
13351        case $host_os in
13352        rhapsody* | darwin1.[012])
13353         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13354         ;;
13355       *) # Darwin 1.3 on
13356         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13357           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13358         else
13359           case ${MACOSX_DEPLOYMENT_TARGET} in
13360             10.[012])
13361               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13362               ;;
13363             10.*)
13364               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13365               ;;
13366           esac
13367         fi
13368         ;;
13369        esac
13370      archive_cmds_need_lc_CXX=no
13371      hardcode_direct_CXX=no
13372      hardcode_automatic_CXX=yes
13373      hardcode_shlibpath_var_CXX=unsupported
13374      whole_archive_flag_spec_CXX=''
13375      link_all_deplibs_CXX=yes
13376
13377    if test "$GXX" = yes ; then
13378      lt_int_apple_cc_single_mod=no
13379      output_verbose_link_cmd='echo'
13380      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13381       lt_int_apple_cc_single_mod=yes
13382      fi
13383      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13384       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13385      else
13386          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13387        fi
13388        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13389        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13390          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13391            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13392          else
13393            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13394          fi
13395            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13396      else
13397      case $cc_basename in
13398        xlc*)
13399         output_verbose_link_cmd='echo'
13400          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13401          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13402          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13403          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13404          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13405          ;;
13406       *)
13407         ld_shlibs_CXX=no
13408          ;;
13409      esac
13410      fi
13411        ;;
13412
13413  dgux*)
13414    case $cc_basename in
13415      ec++*)
13416	# FIXME: insert proper C++ library support
13417	ld_shlibs_CXX=no
13418	;;
13419      ghcx*)
13420	# Green Hills C++ Compiler
13421	# FIXME: insert proper C++ library support
13422	ld_shlibs_CXX=no
13423	;;
13424      *)
13425	# FIXME: insert proper C++ library support
13426	ld_shlibs_CXX=no
13427	;;
13428    esac
13429    ;;
13430  freebsd[12]*)
13431    # C++ shared libraries reported to be fairly broken before switch to ELF
13432    ld_shlibs_CXX=no
13433    ;;
13434  freebsd-elf*)
13435    archive_cmds_need_lc_CXX=no
13436    ;;
13437  freebsd* | dragonfly*)
13438    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13439    # conventions
13440    ld_shlibs_CXX=yes
13441    ;;
13442  gnu*)
13443    ;;
13444  hpux9*)
13445    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13446    hardcode_libdir_separator_CXX=:
13447    export_dynamic_flag_spec_CXX='${wl}-E'
13448    hardcode_direct_CXX=yes
13449    hardcode_minus_L_CXX=yes # Not in the search PATH,
13450				# but as the default
13451				# location of the library.
13452
13453    case $cc_basename in
13454    CC*)
13455      # FIXME: insert proper C++ library support
13456      ld_shlibs_CXX=no
13457      ;;
13458    aCC*)
13459      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13460      # Commands to make compiler produce verbose output that lists
13461      # what "hidden" libraries, object files and flags are used when
13462      # linking a shared library.
13463      #
13464      # There doesn't appear to be a way to prevent this compiler from
13465      # explicitly linking system object files so we need to strip them
13466      # from the output so that they don't get included in the library
13467      # dependencies.
13468      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13469      ;;
13470    *)
13471      if test "$GXX" = yes; then
13472        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13473      else
13474        # FIXME: insert proper C++ library support
13475        ld_shlibs_CXX=no
13476      fi
13477      ;;
13478    esac
13479    ;;
13480  hpux10*|hpux11*)
13481    if test $with_gnu_ld = no; then
13482      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13483      hardcode_libdir_separator_CXX=:
13484
13485      case $host_cpu in
13486      hppa*64*|ia64*) ;;
13487      *)
13488	export_dynamic_flag_spec_CXX='${wl}-E'
13489        ;;
13490      esac
13491    fi
13492    case $host_cpu in
13493    hppa*64*|ia64*)
13494      hardcode_direct_CXX=no
13495      hardcode_shlibpath_var_CXX=no
13496      ;;
13497    *)
13498      hardcode_direct_CXX=yes
13499      hardcode_minus_L_CXX=yes # Not in the search PATH,
13500					      # but as the default
13501					      # location of the library.
13502      ;;
13503    esac
13504
13505    case $cc_basename in
13506      CC*)
13507	# FIXME: insert proper C++ library support
13508	ld_shlibs_CXX=no
13509	;;
13510      aCC*)
13511	case $host_cpu in
13512	hppa*64*)
13513	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13514	  ;;
13515	ia64*)
13516	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13517	  ;;
13518	*)
13519	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13520	  ;;
13521	esac
13522	# Commands to make compiler produce verbose output that lists
13523	# what "hidden" libraries, object files and flags are used when
13524	# linking a shared library.
13525	#
13526	# There doesn't appear to be a way to prevent this compiler from
13527	# explicitly linking system object files so we need to strip them
13528	# from the output so that they don't get included in the library
13529	# dependencies.
13530	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13531	;;
13532      *)
13533	if test "$GXX" = yes; then
13534	  if test $with_gnu_ld = no; then
13535	    case $host_cpu in
13536	    hppa*64*)
13537	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13538	      ;;
13539	    ia64*)
13540	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13541	      ;;
13542	    *)
13543	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13544	      ;;
13545	    esac
13546	  fi
13547	else
13548	  # FIXME: insert proper C++ library support
13549	  ld_shlibs_CXX=no
13550	fi
13551	;;
13552    esac
13553    ;;
13554  interix[3-9]*)
13555    hardcode_direct_CXX=no
13556    hardcode_shlibpath_var_CXX=no
13557    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13558    export_dynamic_flag_spec_CXX='${wl}-E'
13559    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13560    # Instead, shared libraries are loaded at an image base (0x10000000 by
13561    # default) and relocated if they conflict, which is a slow very memory
13562    # consuming and fragmenting process.  To avoid this, we pick a random,
13563    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13564    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13565    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13566    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13567    ;;
13568  irix5* | irix6*)
13569    case $cc_basename in
13570      CC*)
13571	# SGI C++
13572	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13573
13574	# Archives containing C++ object files must be created using
13575	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13576	# necessary to make sure instantiated templates are included
13577	# in the archive.
13578	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13579	;;
13580      *)
13581	if test "$GXX" = yes; then
13582	  if test "$with_gnu_ld" = no; then
13583	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13584	  else
13585	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
13586	  fi
13587	fi
13588	link_all_deplibs_CXX=yes
13589	;;
13590    esac
13591    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13592    hardcode_libdir_separator_CXX=:
13593    ;;
13594  linux* | k*bsd*-gnu)
13595    case $cc_basename in
13596      KCC*)
13597	# Kuck and Associates, Inc. (KAI) C++ Compiler
13598
13599	# KCC will only create a shared library if the output file
13600	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13601	# to its proper name (with version) after linking.
13602	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13603	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13604	# Commands to make compiler produce verbose output that lists
13605	# what "hidden" libraries, object files and flags are used when
13606	# linking a shared library.
13607	#
13608	# There doesn't appear to be a way to prevent this compiler from
13609	# explicitly linking system object files so we need to strip them
13610	# from the output so that they don't get included in the library
13611	# dependencies.
13612	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13613
13614	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13615	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13616
13617	# Archives containing C++ object files must be created using
13618	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13619	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13620	;;
13621      icpc*)
13622	# Intel C++
13623	with_gnu_ld=yes
13624	# version 8.0 and above of icpc choke on multiply defined symbols
13625	# if we add $predep_objects and $postdep_objects, however 7.1 and
13626	# earlier do not add the objects themselves.
13627	case `$CC -V 2>&1` in
13628	*"Version 7."*)
13629  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13630  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13631	  ;;
13632	*)  # Version 8.0 or newer
13633	  tmp_idyn=
13634	  case $host_cpu in
13635	    ia64*) tmp_idyn=' -i_dynamic';;
13636	  esac
13637  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13639	  ;;
13640	esac
13641	archive_cmds_need_lc_CXX=no
13642	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13643	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13644	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13645	;;
13646      pgCC*)
13647        # Portland Group C++ compiler
13648	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13649  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13650
13651	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13652	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13653	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13654        ;;
13655      cxx*)
13656	# Compaq C++
13657	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13658	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13659
13660	runpath_var=LD_RUN_PATH
13661	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13662	hardcode_libdir_separator_CXX=:
13663
13664	# Commands to make compiler produce verbose output that lists
13665	# what "hidden" libraries, object files and flags are used when
13666	# linking a shared library.
13667	#
13668	# There doesn't appear to be a way to prevent this compiler from
13669	# explicitly linking system object files so we need to strip them
13670	# from the output so that they don't get included in the library
13671	# dependencies.
13672	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13673	;;
13674      *)
13675	case `$CC -V 2>&1 | sed 5q` in
13676	*Sun\ C*)
13677	  # Sun C++ 5.9
13678	  no_undefined_flag_CXX=' -zdefs'
13679	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13680	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13681	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13682	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13683
13684	  # Not sure whether something based on
13685	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13686	  # would be better.
13687	  output_verbose_link_cmd='echo'
13688
13689	  # Archives containing C++ object files must be created using
13690	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13691	  # necessary to make sure instantiated templates are included
13692	  # in the archive.
13693	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13694	  ;;
13695	esac
13696	;;
13697    esac
13698    ;;
13699  lynxos*)
13700    # FIXME: insert proper C++ library support
13701    ld_shlibs_CXX=no
13702    ;;
13703  m88k*)
13704    # FIXME: insert proper C++ library support
13705    ld_shlibs_CXX=no
13706    ;;
13707  mvs*)
13708    case $cc_basename in
13709      cxx*)
13710	# FIXME: insert proper C++ library support
13711	ld_shlibs_CXX=no
13712	;;
13713      *)
13714	# FIXME: insert proper C++ library support
13715	ld_shlibs_CXX=no
13716	;;
13717    esac
13718    ;;
13719  netbsd*)
13720    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13721      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13722      wlarc=
13723      hardcode_libdir_flag_spec_CXX='-R$libdir'
13724      hardcode_direct_CXX=yes
13725      hardcode_shlibpath_var_CXX=no
13726    fi
13727    # Workaround some broken pre-1.5 toolchains
13728    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13729    ;;
13730  openbsd2*)
13731    # C++ shared libraries are fairly broken
13732    ld_shlibs_CXX=no
13733    ;;
13734  openbsd*)
13735    if test -f /usr/libexec/ld.so; then
13736      hardcode_direct_CXX=yes
13737      hardcode_shlibpath_var_CXX=no
13738      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13739      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13740      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13741	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13742	export_dynamic_flag_spec_CXX='${wl}-E'
13743	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13744      fi
13745      output_verbose_link_cmd='echo'
13746    else
13747      ld_shlibs_CXX=no
13748    fi
13749    ;;
13750  osf3*)
13751    case $cc_basename in
13752      KCC*)
13753	# Kuck and Associates, Inc. (KAI) C++ Compiler
13754
13755	# KCC will only create a shared library if the output file
13756	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13757	# to its proper name (with version) after linking.
13758	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13759
13760	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13761	hardcode_libdir_separator_CXX=:
13762
13763	# Archives containing C++ object files must be created using
13764	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13765	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13766
13767	;;
13768      RCC*)
13769	# Rational C++ 2.4.1
13770	# FIXME: insert proper C++ library support
13771	ld_shlibs_CXX=no
13772	;;
13773      cxx*)
13774	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13775	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13776
13777	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13778	hardcode_libdir_separator_CXX=:
13779
13780	# Commands to make compiler produce verbose output that lists
13781	# what "hidden" libraries, object files and flags are used when
13782	# linking a shared library.
13783	#
13784	# There doesn't appear to be a way to prevent this compiler from
13785	# explicitly linking system object files so we need to strip them
13786	# from the output so that they don't get included in the library
13787	# dependencies.
13788	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13789	;;
13790      *)
13791	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13792	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13793	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13794
13795	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13796	  hardcode_libdir_separator_CXX=:
13797
13798	  # Commands to make compiler produce verbose output that lists
13799	  # what "hidden" libraries, object files and flags are used when
13800	  # linking a shared library.
13801	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13802
13803	else
13804	  # FIXME: insert proper C++ library support
13805	  ld_shlibs_CXX=no
13806	fi
13807	;;
13808    esac
13809    ;;
13810  osf4* | osf5*)
13811    case $cc_basename in
13812      KCC*)
13813	# Kuck and Associates, Inc. (KAI) C++ Compiler
13814
13815	# KCC will only create a shared library if the output file
13816	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13817	# to its proper name (with version) after linking.
13818	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13819
13820	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13821	hardcode_libdir_separator_CXX=:
13822
13823	# Archives containing C++ object files must be created using
13824	# the KAI C++ compiler.
13825	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
13826	;;
13827      RCC*)
13828	# Rational C++ 2.4.1
13829	# FIXME: insert proper C++ library support
13830	ld_shlibs_CXX=no
13831	;;
13832      cxx*)
13833	allow_undefined_flag_CXX=' -expect_unresolved \*'
13834	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13835	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13836	  echo "-hidden">> $lib.exp~
13837	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
13838	  $rm $lib.exp'
13839
13840	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13841	hardcode_libdir_separator_CXX=:
13842
13843	# Commands to make compiler produce verbose output that lists
13844	# what "hidden" libraries, object files and flags are used when
13845	# linking a shared library.
13846	#
13847	# There doesn't appear to be a way to prevent this compiler from
13848	# explicitly linking system object files so we need to strip them
13849	# from the output so that they don't get included in the library
13850	# dependencies.
13851	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13852	;;
13853      *)
13854	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13855	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13856	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13857
13858	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13859	  hardcode_libdir_separator_CXX=:
13860
13861	  # Commands to make compiler produce verbose output that lists
13862	  # what "hidden" libraries, object files and flags are used when
13863	  # linking a shared library.
13864	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13865
13866	else
13867	  # FIXME: insert proper C++ library support
13868	  ld_shlibs_CXX=no
13869	fi
13870	;;
13871    esac
13872    ;;
13873  psos*)
13874    # FIXME: insert proper C++ library support
13875    ld_shlibs_CXX=no
13876    ;;
13877  sunos4*)
13878    case $cc_basename in
13879      CC*)
13880	# Sun C++ 4.x
13881	# FIXME: insert proper C++ library support
13882	ld_shlibs_CXX=no
13883	;;
13884      lcc*)
13885	# Lucid
13886	# FIXME: insert proper C++ library support
13887	ld_shlibs_CXX=no
13888	;;
13889      *)
13890	# FIXME: insert proper C++ library support
13891	ld_shlibs_CXX=no
13892	;;
13893    esac
13894    ;;
13895  solaris*)
13896    case $cc_basename in
13897      CC*)
13898	# Sun C++ 4.2, 5.x and Centerline C++
13899        archive_cmds_need_lc_CXX=yes
13900	no_undefined_flag_CXX=' -zdefs'
13901	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13902	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13903	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13904
13905	hardcode_libdir_flag_spec_CXX='-R$libdir'
13906	hardcode_shlibpath_var_CXX=no
13907	case $host_os in
13908	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13909	  *)
13910	    # The compiler driver will combine and reorder linker options,
13911	    # but understands `-z linker_flag'.
13912	    # Supported since Solaris 2.6 (maybe 2.5.1?)
13913	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13914	    ;;
13915	esac
13916	link_all_deplibs_CXX=yes
13917
13918	output_verbose_link_cmd='echo'
13919
13920	# Archives containing C++ object files must be created using
13921	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
13922	# necessary to make sure instantiated templates are included
13923	# in the archive.
13924	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13925	;;
13926      gcx*)
13927	# Green Hills C++ Compiler
13928	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13929
13930	# The C++ compiler must be used to create the archive.
13931	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13932	;;
13933      *)
13934	# GNU C++ compiler with Solaris linker
13935	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13936	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13937	  if $CC --version | grep -v '^2\.7' > /dev/null; then
13938	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13939	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13940		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13941
13942	    # Commands to make compiler produce verbose output that lists
13943	    # what "hidden" libraries, object files and flags are used when
13944	    # linking a shared library.
13945	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13946	  else
13947	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
13948	    # platform.
13949	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13950	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13951		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
13952
13953	    # Commands to make compiler produce verbose output that lists
13954	    # what "hidden" libraries, object files and flags are used when
13955	    # linking a shared library.
13956	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
13957	  fi
13958
13959	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13960	  case $host_os in
13961	  solaris2.[0-5] | solaris2.[0-5].*) ;;
13962	  *)
13963	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13964	    ;;
13965	  esac
13966	fi
13967	;;
13968    esac
13969    ;;
13970  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13971    no_undefined_flag_CXX='${wl}-z,text'
13972    archive_cmds_need_lc_CXX=no
13973    hardcode_shlibpath_var_CXX=no
13974    runpath_var='LD_RUN_PATH'
13975
13976    case $cc_basename in
13977      CC*)
13978	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13979	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13980	;;
13981      *)
13982	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13983	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13984	;;
13985    esac
13986    ;;
13987  sysv5* | sco3.2v5* | sco5v6*)
13988    # Note: We can NOT use -z defs as we might desire, because we do not
13989    # link with -lc, and that would cause any symbols used from libc to
13990    # always be unresolved, which means just about no library would
13991    # ever link correctly.  If we're not using GNU ld we use -z text
13992    # though, which does catch some bad symbols but isn't as heavy-handed
13993    # as -z defs.
13994    # For security reasons, it is highly recommended that you always
13995    # use absolute paths for naming shared libraries, and exclude the
13996    # DT_RUNPATH tag from executables and libraries.  But doing so
13997    # requires that you compile everything twice, which is a pain.
13998    # So that behaviour is only enabled if SCOABSPATH is set to a
13999    # non-empty value in the environment.  Most likely only useful for
14000    # creating official distributions of packages.
14001    # This is a hack until libtool officially supports absolute path
14002    # names for shared libraries.
14003    no_undefined_flag_CXX='${wl}-z,text'
14004    allow_undefined_flag_CXX='${wl}-z,nodefs'
14005    archive_cmds_need_lc_CXX=no
14006    hardcode_shlibpath_var_CXX=no
14007    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14008    hardcode_libdir_separator_CXX=':'
14009    link_all_deplibs_CXX=yes
14010    export_dynamic_flag_spec_CXX='${wl}-Bexport'
14011    runpath_var='LD_RUN_PATH'
14012
14013    case $cc_basename in
14014      CC*)
14015	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14016	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14017	;;
14018      *)
14019	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14020	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14021	;;
14022    esac
14023    ;;
14024  tandem*)
14025    case $cc_basename in
14026      NCC*)
14027	# NonStop-UX NCC 3.20
14028	# FIXME: insert proper C++ library support
14029	ld_shlibs_CXX=no
14030	;;
14031      *)
14032	# FIXME: insert proper C++ library support
14033	ld_shlibs_CXX=no
14034	;;
14035    esac
14036    ;;
14037  vxworks*)
14038    # FIXME: insert proper C++ library support
14039    ld_shlibs_CXX=no
14040    ;;
14041  *)
14042    # FIXME: insert proper C++ library support
14043    ld_shlibs_CXX=no
14044    ;;
14045esac
14046{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14047$as_echo "$ld_shlibs_CXX" >&6; }
14048test "$ld_shlibs_CXX" = no && can_build_shared=no
14049
14050GCC_CXX="$GXX"
14051LD_CXX="$LD"
14052
14053## CAVEAT EMPTOR:
14054## There is no encapsulation within the following macros, do not change
14055## the running order or otherwise move them around unless you know exactly
14056## what you are doing...
14057
14058cat > conftest.$ac_ext <<EOF
14059class Foo
14060{
14061public:
14062  Foo (void) { a = 0; }
14063private:
14064  int a;
14065};
14066EOF
14067
14068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14069  (eval $ac_compile) 2>&5
14070  ac_status=$?
14071  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072  (exit $ac_status); }; then
14073  # Parse the compiler output and extract the necessary
14074  # objects, libraries and library flags.
14075
14076  # Sentinel used to keep track of whether or not we are before
14077  # the conftest object file.
14078  pre_test_object_deps_done=no
14079
14080  # The `*' in the case matches for architectures that use `case' in
14081  # $output_verbose_cmd can trigger glob expansion during the loop
14082  # eval without this substitution.
14083  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14084
14085  for p in `eval $output_verbose_link_cmd`; do
14086    case $p in
14087
14088    -L* | -R* | -l*)
14089       # Some compilers place space between "-{L,R}" and the path.
14090       # Remove the space.
14091       if test $p = "-L" \
14092	  || test $p = "-R"; then
14093	 prev=$p
14094	 continue
14095       else
14096	 prev=
14097       fi
14098
14099       if test "$pre_test_object_deps_done" = no; then
14100	 case $p in
14101	 -L* | -R*)
14102	   # Internal compiler library paths should come after those
14103	   # provided the user.  The postdeps already come after the
14104	   # user supplied libs so there is no need to process them.
14105	   if test -z "$compiler_lib_search_path_CXX"; then
14106	     compiler_lib_search_path_CXX="${prev}${p}"
14107	   else
14108	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14109	   fi
14110	   ;;
14111	 # The "-l" case would never come before the object being
14112	 # linked, so don't bother handling this case.
14113	 esac
14114       else
14115	 if test -z "$postdeps_CXX"; then
14116	   postdeps_CXX="${prev}${p}"
14117	 else
14118	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14119	 fi
14120       fi
14121       ;;
14122
14123    *.$objext)
14124       # This assumes that the test object file only shows up
14125       # once in the compiler output.
14126       if test "$p" = "conftest.$objext"; then
14127	 pre_test_object_deps_done=yes
14128	 continue
14129       fi
14130
14131       if test "$pre_test_object_deps_done" = no; then
14132	 if test -z "$predep_objects_CXX"; then
14133	   predep_objects_CXX="$p"
14134	 else
14135	   predep_objects_CXX="$predep_objects_CXX $p"
14136	 fi
14137       else
14138	 if test -z "$postdep_objects_CXX"; then
14139	   postdep_objects_CXX="$p"
14140	 else
14141	   postdep_objects_CXX="$postdep_objects_CXX $p"
14142	 fi
14143       fi
14144       ;;
14145
14146    *) ;; # Ignore the rest.
14147
14148    esac
14149  done
14150
14151  # Clean up.
14152  rm -f a.out a.exe
14153else
14154  echo "libtool.m4: error: problem compiling CXX test program"
14155fi
14156
14157$rm -f confest.$objext
14158
14159# PORTME: override above test on systems where it is broken
14160case $host_os in
14161interix[3-9]*)
14162  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14163  # hack all around it, let's just trust "g++" to DTRT.
14164  predep_objects_CXX=
14165  postdep_objects_CXX=
14166  postdeps_CXX=
14167  ;;
14168
14169linux*)
14170  case `$CC -V 2>&1 | sed 5q` in
14171  *Sun\ C*)
14172    # Sun C++ 5.9
14173    #
14174    # The more standards-conforming stlport4 library is
14175    # incompatible with the Cstd library. Avoid specifying
14176    # it if it's in CXXFLAGS. Ignore libCrun as
14177    # -library=stlport4 depends on it.
14178    case " $CXX $CXXFLAGS " in
14179    *" -library=stlport4 "*)
14180      solaris_use_stlport4=yes
14181      ;;
14182    esac
14183    if test "$solaris_use_stlport4" != yes; then
14184      postdeps_CXX='-library=Cstd -library=Crun'
14185    fi
14186    ;;
14187  esac
14188  ;;
14189
14190solaris*)
14191  case $cc_basename in
14192  CC*)
14193    # The more standards-conforming stlport4 library is
14194    # incompatible with the Cstd library. Avoid specifying
14195    # it if it's in CXXFLAGS. Ignore libCrun as
14196    # -library=stlport4 depends on it.
14197    case " $CXX $CXXFLAGS " in
14198    *" -library=stlport4 "*)
14199      solaris_use_stlport4=yes
14200      ;;
14201    esac
14202
14203    # Adding this requires a known-good setup of shared libraries for
14204    # Sun compiler versions before 5.6, else PIC objects from an old
14205    # archive will be linked into the output, leading to subtle bugs.
14206    if test "$solaris_use_stlport4" != yes; then
14207      postdeps_CXX='-library=Cstd -library=Crun'
14208    fi
14209    ;;
14210  esac
14211  ;;
14212esac
14213
14214
14215case " $postdeps_CXX " in
14216*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14217esac
14218
14219lt_prog_compiler_wl_CXX=
14220lt_prog_compiler_pic_CXX=
14221lt_prog_compiler_static_CXX=
14222
14223{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14224$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14225
14226  # C++ specific cases for pic, static, wl, etc.
14227  if test "$GXX" = yes; then
14228    lt_prog_compiler_wl_CXX='-Wl,'
14229    lt_prog_compiler_static_CXX='-static'
14230
14231    case $host_os in
14232    aix*)
14233      # All AIX code is PIC.
14234      if test "$host_cpu" = ia64; then
14235	# AIX 5 now supports IA64 processor
14236	lt_prog_compiler_static_CXX='-Bstatic'
14237      fi
14238      ;;
14239    amigaos*)
14240      # FIXME: we need at least 68020 code to build shared libraries, but
14241      # adding the `-m68020' flag to GCC prevents building anything better,
14242      # like `-m68040'.
14243      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14244      ;;
14245    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14246      # PIC is the default for these OSes.
14247      ;;
14248    mingw* | cygwin* | os2* | pw32*)
14249      # This hack is so that the source file can tell whether it is being
14250      # built for inclusion in a dll (and should export symbols for example).
14251      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14252      # (--disable-auto-import) libraries
14253      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14254      ;;
14255    darwin* | rhapsody*)
14256      # PIC is the default on this platform
14257      # Common symbols not allowed in MH_DYLIB files
14258      lt_prog_compiler_pic_CXX='-fno-common'
14259      ;;
14260    *djgpp*)
14261      # DJGPP does not support shared libraries at all
14262      lt_prog_compiler_pic_CXX=
14263      ;;
14264    interix[3-9]*)
14265      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14266      # Instead, we relocate shared libraries at runtime.
14267      ;;
14268    sysv4*MP*)
14269      if test -d /usr/nec; then
14270	lt_prog_compiler_pic_CXX=-Kconform_pic
14271      fi
14272      ;;
14273    hpux*)
14274      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14275      # not for PA HP-UX.
14276      case $host_cpu in
14277      hppa*64*|ia64*)
14278	;;
14279      *)
14280	lt_prog_compiler_pic_CXX='-fPIC'
14281	;;
14282      esac
14283      ;;
14284    *)
14285      lt_prog_compiler_pic_CXX='-fPIC'
14286      ;;
14287    esac
14288  else
14289    case $host_os in
14290      aix4* | aix5*)
14291	# All AIX code is PIC.
14292	if test "$host_cpu" = ia64; then
14293	  # AIX 5 now supports IA64 processor
14294	  lt_prog_compiler_static_CXX='-Bstatic'
14295	else
14296	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14297	fi
14298	;;
14299      chorus*)
14300	case $cc_basename in
14301	cxch68*)
14302	  # Green Hills C++ Compiler
14303	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14304	  ;;
14305	esac
14306	;;
14307       darwin*)
14308         # PIC is the default on this platform
14309         # Common symbols not allowed in MH_DYLIB files
14310         case $cc_basename in
14311           xlc*)
14312           lt_prog_compiler_pic_CXX='-qnocommon'
14313           lt_prog_compiler_wl_CXX='-Wl,'
14314           ;;
14315         esac
14316       ;;
14317      dgux*)
14318	case $cc_basename in
14319	  ec++*)
14320	    lt_prog_compiler_pic_CXX='-KPIC'
14321	    ;;
14322	  ghcx*)
14323	    # Green Hills C++ Compiler
14324	    lt_prog_compiler_pic_CXX='-pic'
14325	    ;;
14326	  *)
14327	    ;;
14328	esac
14329	;;
14330      freebsd* | dragonfly*)
14331	# FreeBSD uses GNU C++
14332	;;
14333      hpux9* | hpux10* | hpux11*)
14334	case $cc_basename in
14335	  CC*)
14336	    lt_prog_compiler_wl_CXX='-Wl,'
14337	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14338	    if test "$host_cpu" != ia64; then
14339	      lt_prog_compiler_pic_CXX='+Z'
14340	    fi
14341	    ;;
14342	  aCC*)
14343	    lt_prog_compiler_wl_CXX='-Wl,'
14344	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14345	    case $host_cpu in
14346	    hppa*64*|ia64*)
14347	      # +Z the default
14348	      ;;
14349	    *)
14350	      lt_prog_compiler_pic_CXX='+Z'
14351	      ;;
14352	    esac
14353	    ;;
14354	  *)
14355	    ;;
14356	esac
14357	;;
14358      interix*)
14359	# This is c89, which is MS Visual C++ (no shared libs)
14360	# Anyone wants to do a port?
14361	;;
14362      irix5* | irix6* | nonstopux*)
14363	case $cc_basename in
14364	  CC*)
14365	    lt_prog_compiler_wl_CXX='-Wl,'
14366	    lt_prog_compiler_static_CXX='-non_shared'
14367	    # CC pic flag -KPIC is the default.
14368	    ;;
14369	  *)
14370	    ;;
14371	esac
14372	;;
14373      linux* | k*bsd*-gnu)
14374	case $cc_basename in
14375	  KCC*)
14376	    # KAI C++ Compiler
14377	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14378	    lt_prog_compiler_pic_CXX='-fPIC'
14379	    ;;
14380	  icpc* | ecpc*)
14381	    # Intel C++
14382	    lt_prog_compiler_wl_CXX='-Wl,'
14383	    lt_prog_compiler_pic_CXX='-KPIC'
14384	    lt_prog_compiler_static_CXX='-static'
14385	    ;;
14386	  pgCC*)
14387	    # Portland Group C++ compiler.
14388	    lt_prog_compiler_wl_CXX='-Wl,'
14389	    lt_prog_compiler_pic_CXX='-fpic'
14390	    lt_prog_compiler_static_CXX='-Bstatic'
14391	    ;;
14392	  cxx*)
14393	    # Compaq C++
14394	    # Make sure the PIC flag is empty.  It appears that all Alpha
14395	    # Linux and Compaq Tru64 Unix objects are PIC.
14396	    lt_prog_compiler_pic_CXX=
14397	    lt_prog_compiler_static_CXX='-non_shared'
14398	    ;;
14399	  *)
14400	    case `$CC -V 2>&1 | sed 5q` in
14401	    *Sun\ C*)
14402	      # Sun C++ 5.9
14403	      lt_prog_compiler_pic_CXX='-KPIC'
14404	      lt_prog_compiler_static_CXX='-Bstatic'
14405	      lt_prog_compiler_wl_CXX='-Qoption ld '
14406	      ;;
14407	    esac
14408	    ;;
14409	esac
14410	;;
14411      lynxos*)
14412	;;
14413      m88k*)
14414	;;
14415      mvs*)
14416	case $cc_basename in
14417	  cxx*)
14418	    lt_prog_compiler_pic_CXX='-W c,exportall'
14419	    ;;
14420	  *)
14421	    ;;
14422	esac
14423	;;
14424      netbsd*)
14425	;;
14426      osf3* | osf4* | osf5*)
14427	case $cc_basename in
14428	  KCC*)
14429	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14430	    ;;
14431	  RCC*)
14432	    # Rational C++ 2.4.1
14433	    lt_prog_compiler_pic_CXX='-pic'
14434	    ;;
14435	  cxx*)
14436	    # Digital/Compaq C++
14437	    lt_prog_compiler_wl_CXX='-Wl,'
14438	    # Make sure the PIC flag is empty.  It appears that all Alpha
14439	    # Linux and Compaq Tru64 Unix objects are PIC.
14440	    lt_prog_compiler_pic_CXX=
14441	    lt_prog_compiler_static_CXX='-non_shared'
14442	    ;;
14443	  *)
14444	    ;;
14445	esac
14446	;;
14447      psos*)
14448	;;
14449      solaris*)
14450	case $cc_basename in
14451	  CC*)
14452	    # Sun C++ 4.2, 5.x and Centerline C++
14453	    lt_prog_compiler_pic_CXX='-KPIC'
14454	    lt_prog_compiler_static_CXX='-Bstatic'
14455	    lt_prog_compiler_wl_CXX='-Qoption ld '
14456	    ;;
14457	  gcx*)
14458	    # Green Hills C++ Compiler
14459	    lt_prog_compiler_pic_CXX='-PIC'
14460	    ;;
14461	  *)
14462	    ;;
14463	esac
14464	;;
14465      sunos4*)
14466	case $cc_basename in
14467	  CC*)
14468	    # Sun C++ 4.x
14469	    lt_prog_compiler_pic_CXX='-pic'
14470	    lt_prog_compiler_static_CXX='-Bstatic'
14471	    ;;
14472	  lcc*)
14473	    # Lucid
14474	    lt_prog_compiler_pic_CXX='-pic'
14475	    ;;
14476	  *)
14477	    ;;
14478	esac
14479	;;
14480      tandem*)
14481	case $cc_basename in
14482	  NCC*)
14483	    # NonStop-UX NCC 3.20
14484	    lt_prog_compiler_pic_CXX='-KPIC'
14485	    ;;
14486	  *)
14487	    ;;
14488	esac
14489	;;
14490      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14491	case $cc_basename in
14492	  CC*)
14493	    lt_prog_compiler_wl_CXX='-Wl,'
14494	    lt_prog_compiler_pic_CXX='-KPIC'
14495	    lt_prog_compiler_static_CXX='-Bstatic'
14496	    ;;
14497	esac
14498	;;
14499      vxworks*)
14500	;;
14501      *)
14502	lt_prog_compiler_can_build_shared_CXX=no
14503	;;
14504    esac
14505  fi
14506
14507{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14508$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14509
14510#
14511# Check to make sure the PIC flag actually works.
14512#
14513if test -n "$lt_prog_compiler_pic_CXX"; then
14514
14515{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14516$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14517if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14518  $as_echo_n "(cached) " >&6
14519else
14520  lt_prog_compiler_pic_works_CXX=no
14521  ac_outfile=conftest.$ac_objext
14522   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14523   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14524   # Insert the option either (1) after the last *FLAGS variable, or
14525   # (2) before a word containing "conftest.", or (3) at the end.
14526   # Note that $ac_compile itself does not contain backslashes and begins
14527   # with a dollar sign (not a hyphen), so the echo should work correctly.
14528   # The option is referenced via a variable to avoid confusing sed.
14529   lt_compile=`echo "$ac_compile" | $SED \
14530   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14531   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14532   -e 's:$: $lt_compiler_flag:'`
14533   (eval echo "\"\$as_me:14533: $lt_compile\"" >&5)
14534   (eval "$lt_compile" 2>conftest.err)
14535   ac_status=$?
14536   cat conftest.err >&5
14537   echo "$as_me:14537: \$? = $ac_status" >&5
14538   if (exit $ac_status) && test -s "$ac_outfile"; then
14539     # The compiler can only warn and ignore the option if not recognized
14540     # So say no if there are warnings other than the usual output.
14541     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14542     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14543     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14544       lt_prog_compiler_pic_works_CXX=yes
14545     fi
14546   fi
14547   $rm conftest*
14548
14549fi
14550{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14551$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
14552
14553if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14554    case $lt_prog_compiler_pic_CXX in
14555     "" | " "*) ;;
14556     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14557     esac
14558else
14559    lt_prog_compiler_pic_CXX=
14560     lt_prog_compiler_can_build_shared_CXX=no
14561fi
14562
14563fi
14564case $host_os in
14565  # For platforms which do not support PIC, -DPIC is meaningless:
14566  *djgpp*)
14567    lt_prog_compiler_pic_CXX=
14568    ;;
14569  *)
14570    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14571    ;;
14572esac
14573
14574#
14575# Check to make sure the static flag actually works.
14576#
14577wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14578{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14579$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14580if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14581  $as_echo_n "(cached) " >&6
14582else
14583  lt_prog_compiler_static_works_CXX=no
14584   save_LDFLAGS="$LDFLAGS"
14585   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14586   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14587   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14588     # The linker can only warn and ignore the option if not recognized
14589     # So say no if there are warnings
14590     if test -s conftest.err; then
14591       # Append any errors to the config.log.
14592       cat conftest.err 1>&5
14593       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14594       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14595       if diff conftest.exp conftest.er2 >/dev/null; then
14596         lt_prog_compiler_static_works_CXX=yes
14597       fi
14598     else
14599       lt_prog_compiler_static_works_CXX=yes
14600     fi
14601   fi
14602   $rm conftest*
14603   LDFLAGS="$save_LDFLAGS"
14604
14605fi
14606{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14607$as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
14608
14609if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14610    :
14611else
14612    lt_prog_compiler_static_CXX=
14613fi
14614
14615
14616{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14617$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14618if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14619  $as_echo_n "(cached) " >&6
14620else
14621  lt_cv_prog_compiler_c_o_CXX=no
14622   $rm -r conftest 2>/dev/null
14623   mkdir conftest
14624   cd conftest
14625   mkdir out
14626   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14627
14628   lt_compiler_flag="-o out/conftest2.$ac_objext"
14629   # Insert the option either (1) after the last *FLAGS variable, or
14630   # (2) before a word containing "conftest.", or (3) at the end.
14631   # Note that $ac_compile itself does not contain backslashes and begins
14632   # with a dollar sign (not a hyphen), so the echo should work correctly.
14633   lt_compile=`echo "$ac_compile" | $SED \
14634   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14635   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14636   -e 's:$: $lt_compiler_flag:'`
14637   (eval echo "\"\$as_me:14637: $lt_compile\"" >&5)
14638   (eval "$lt_compile" 2>out/conftest.err)
14639   ac_status=$?
14640   cat out/conftest.err >&5
14641   echo "$as_me:14641: \$? = $ac_status" >&5
14642   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14643   then
14644     # The compiler can only warn and ignore the option if not recognized
14645     # So say no if there are warnings
14646     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14647     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14648     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14649       lt_cv_prog_compiler_c_o_CXX=yes
14650     fi
14651   fi
14652   chmod u+w . 2>&5
14653   $rm conftest*
14654   # SGI C++ compiler will create directory out/ii_files/ for
14655   # template instantiation
14656   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14657   $rm out/* && rmdir out
14658   cd ..
14659   rmdir conftest
14660   $rm conftest*
14661
14662fi
14663{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14664$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14665
14666
14667hard_links="nottested"
14668if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14669  # do not overwrite the value of need_locks provided by the user
14670  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14671$as_echo_n "checking if we can lock with hard links... " >&6; }
14672  hard_links=yes
14673  $rm conftest*
14674  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14675  touch conftest.a
14676  ln conftest.a conftest.b 2>&5 || hard_links=no
14677  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14678  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14679$as_echo "$hard_links" >&6; }
14680  if test "$hard_links" = no; then
14681    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14682$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14683    need_locks=warn
14684  fi
14685else
14686  need_locks=no
14687fi
14688
14689{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14690$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14691
14692  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14693  case $host_os in
14694  aix4* | aix5*)
14695    # If we're using GNU nm, then we don't want the "-C" option.
14696    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14697    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14698      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14699    else
14700      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14701    fi
14702    ;;
14703  pw32*)
14704    export_symbols_cmds_CXX="$ltdll_cmds"
14705  ;;
14706  cygwin* | mingw*)
14707    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14708  ;;
14709  *)
14710    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14711  ;;
14712  esac
14713
14714{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14715$as_echo "$ld_shlibs_CXX" >&6; }
14716test "$ld_shlibs_CXX" = no && can_build_shared=no
14717
14718#
14719# Do we need to explicitly link libc?
14720#
14721case "x$archive_cmds_need_lc_CXX" in
14722x|xyes)
14723  # Assume -lc should be added
14724  archive_cmds_need_lc_CXX=yes
14725
14726  if test "$enable_shared" = yes && test "$GCC" = yes; then
14727    case $archive_cmds_CXX in
14728    *'~'*)
14729      # FIXME: we may have to deal with multi-command sequences.
14730      ;;
14731    '$CC '*)
14732      # Test whether the compiler implicitly links with -lc since on some
14733      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14734      # to ld, don't add -lc before -lgcc.
14735      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14736$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14737      $rm conftest*
14738      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14739
14740      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741  (eval $ac_compile) 2>&5
14742  ac_status=$?
14743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744  (exit $ac_status); } 2>conftest.err; then
14745        soname=conftest
14746        lib=conftest
14747        libobjs=conftest.$ac_objext
14748        deplibs=
14749        wl=$lt_prog_compiler_wl_CXX
14750	pic_flag=$lt_prog_compiler_pic_CXX
14751        compiler_flags=-v
14752        linker_flags=-v
14753        verstring=
14754        output_objdir=.
14755        libname=conftest
14756        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14757        allow_undefined_flag_CXX=
14758        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14759  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14760  ac_status=$?
14761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762  (exit $ac_status); }
14763        then
14764	  archive_cmds_need_lc_CXX=no
14765        else
14766	  archive_cmds_need_lc_CXX=yes
14767        fi
14768        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14769      else
14770        cat conftest.err 1>&5
14771      fi
14772      $rm conftest*
14773      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14774$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14775      ;;
14776    esac
14777  fi
14778  ;;
14779esac
14780
14781{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14782$as_echo_n "checking dynamic linker characteristics... " >&6; }
14783library_names_spec=
14784libname_spec='lib$name'
14785soname_spec=
14786shrext_cmds=".so"
14787postinstall_cmds=
14788postuninstall_cmds=
14789finish_cmds=
14790finish_eval=
14791shlibpath_var=
14792shlibpath_overrides_runpath=unknown
14793version_type=none
14794dynamic_linker="$host_os ld.so"
14795sys_lib_dlsearch_path_spec="/lib /usr/lib"
14796
14797need_lib_prefix=unknown
14798hardcode_into_libs=no
14799
14800# when you set need_version to no, make sure it does not cause -set_version
14801# flags to be left without arguments
14802need_version=unknown
14803
14804case $host_os in
14805aix3*)
14806  version_type=linux
14807  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14808  shlibpath_var=LIBPATH
14809
14810  # AIX 3 has no versioning support, so we append a major version to the name.
14811  soname_spec='${libname}${release}${shared_ext}$major'
14812  ;;
14813
14814aix4* | aix5*)
14815  version_type=linux
14816  need_lib_prefix=no
14817  need_version=no
14818  hardcode_into_libs=yes
14819  if test "$host_cpu" = ia64; then
14820    # AIX 5 supports IA64
14821    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14822    shlibpath_var=LD_LIBRARY_PATH
14823  else
14824    # With GCC up to 2.95.x, collect2 would create an import file
14825    # for dependence libraries.  The import file would start with
14826    # the line `#! .'.  This would cause the generated library to
14827    # depend on `.', always an invalid library.  This was fixed in
14828    # development snapshots of GCC prior to 3.0.
14829    case $host_os in
14830      aix4 | aix4.[01] | aix4.[01].*)
14831      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14832	   echo ' yes '
14833	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14834	:
14835      else
14836	can_build_shared=no
14837      fi
14838      ;;
14839    esac
14840    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14841    # soname into executable. Probably we can add versioning support to
14842    # collect2, so additional links can be useful in future.
14843    if test "$aix_use_runtimelinking" = yes; then
14844      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14845      # instead of lib<name>.a to let people know that these are not
14846      # typical AIX shared libraries.
14847      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848    else
14849      # We preserve .a as extension for shared libraries through AIX4.2
14850      # and later when we are not doing run time linking.
14851      library_names_spec='${libname}${release}.a $libname.a'
14852      soname_spec='${libname}${release}${shared_ext}$major'
14853    fi
14854    shlibpath_var=LIBPATH
14855  fi
14856  ;;
14857
14858amigaos*)
14859  library_names_spec='$libname.ixlibrary $libname.a'
14860  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14861  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14862  ;;
14863
14864beos*)
14865  library_names_spec='${libname}${shared_ext}'
14866  dynamic_linker="$host_os ld.so"
14867  shlibpath_var=LIBRARY_PATH
14868  ;;
14869
14870bsdi[45]*)
14871  version_type=linux
14872  need_version=no
14873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874  soname_spec='${libname}${release}${shared_ext}$major'
14875  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14876  shlibpath_var=LD_LIBRARY_PATH
14877  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14878  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14879  # the default ld.so.conf also contains /usr/contrib/lib and
14880  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14881  # libtool to hard-code these into programs
14882  ;;
14883
14884cygwin* | mingw* | pw32*)
14885  version_type=windows
14886  shrext_cmds=".dll"
14887  need_version=no
14888  need_lib_prefix=no
14889
14890  case $GCC,$host_os in
14891  yes,cygwin* | yes,mingw* | yes,pw32*)
14892    library_names_spec='$libname.dll.a'
14893    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14894    postinstall_cmds='base_file=`basename \${file}`~
14895      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14896      dldir=$destdir/`dirname \$dlpath`~
14897      test -d \$dldir || mkdir -p \$dldir~
14898      $install_prog $dir/$dlname \$dldir/$dlname~
14899      chmod a+x \$dldir/$dlname'
14900    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14901      dlpath=$dir/\$dldll~
14902       $rm \$dlpath'
14903    shlibpath_overrides_runpath=yes
14904
14905    case $host_os in
14906    cygwin*)
14907      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14908      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14909      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14910      ;;
14911    mingw*)
14912      # MinGW DLLs use traditional 'lib' prefix
14913      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14914      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14915      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14916        # It is most probably a Windows format PATH printed by
14917        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14918        # path with ; separators, and with drive letters. We can handle the
14919        # drive letters (cygwin fileutils understands them), so leave them,
14920        # especially as we might pass files found there to a mingw objdump,
14921        # which wouldn't understand a cygwinified path. Ahh.
14922        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14923      else
14924        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14925      fi
14926      ;;
14927    pw32*)
14928      # pw32 DLLs use 'pw' prefix rather than 'lib'
14929      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14930      ;;
14931    esac
14932    ;;
14933
14934  *)
14935    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14936    ;;
14937  esac
14938  dynamic_linker='Win32 ld.exe'
14939  # FIXME: first we should search . and the directory the executable is in
14940  shlibpath_var=PATH
14941  ;;
14942
14943darwin* | rhapsody*)
14944  dynamic_linker="$host_os dyld"
14945  version_type=darwin
14946  need_lib_prefix=no
14947  need_version=no
14948  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14949  soname_spec='${libname}${release}${major}$shared_ext'
14950  shlibpath_overrides_runpath=yes
14951  shlibpath_var=DYLD_LIBRARY_PATH
14952  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14953
14954  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14955  ;;
14956
14957dgux*)
14958  version_type=linux
14959  need_lib_prefix=no
14960  need_version=no
14961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14962  soname_spec='${libname}${release}${shared_ext}$major'
14963  shlibpath_var=LD_LIBRARY_PATH
14964  ;;
14965
14966freebsd1*)
14967  dynamic_linker=no
14968  ;;
14969
14970freebsd* | dragonfly*)
14971  # DragonFly does not have aout.  When/if they implement a new
14972  # versioning mechanism, adjust this.
14973  if test -x /usr/bin/objformat; then
14974    objformat=`/usr/bin/objformat`
14975  else
14976    case $host_os in
14977    freebsd[123]*) objformat=aout ;;
14978    *) objformat=elf ;;
14979    esac
14980  fi
14981  version_type=freebsd-$objformat
14982  case $version_type in
14983    freebsd-elf*)
14984      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14985      need_version=no
14986      need_lib_prefix=no
14987      ;;
14988    freebsd-*)
14989      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14990      need_version=yes
14991      ;;
14992  esac
14993  shlibpath_var=LD_LIBRARY_PATH
14994  case $host_os in
14995  freebsd2*)
14996    shlibpath_overrides_runpath=yes
14997    ;;
14998  freebsd3.[01]* | freebsdelf3.[01]*)
14999    shlibpath_overrides_runpath=yes
15000    hardcode_into_libs=yes
15001    ;;
15002  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15003  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15004    shlibpath_overrides_runpath=no
15005    hardcode_into_libs=yes
15006    ;;
15007  *) # from 4.6 on, and DragonFly
15008    shlibpath_overrides_runpath=yes
15009    hardcode_into_libs=yes
15010    ;;
15011  esac
15012  ;;
15013
15014gnu*)
15015  version_type=linux
15016  need_lib_prefix=no
15017  need_version=no
15018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15019  soname_spec='${libname}${release}${shared_ext}$major'
15020  shlibpath_var=LD_LIBRARY_PATH
15021  hardcode_into_libs=yes
15022  ;;
15023
15024hpux9* | hpux10* | hpux11*)
15025  # Give a soname corresponding to the major version so that dld.sl refuses to
15026  # link against other versions.
15027  version_type=sunos
15028  need_lib_prefix=no
15029  need_version=no
15030  case $host_cpu in
15031  ia64*)
15032    shrext_cmds='.so'
15033    hardcode_into_libs=yes
15034    dynamic_linker="$host_os dld.so"
15035    shlibpath_var=LD_LIBRARY_PATH
15036    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15037    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15038    soname_spec='${libname}${release}${shared_ext}$major'
15039    if test "X$HPUX_IA64_MODE" = X32; then
15040      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15041    else
15042      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15043    fi
15044    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15045    ;;
15046   hppa*64*)
15047     shrext_cmds='.sl'
15048     hardcode_into_libs=yes
15049     dynamic_linker="$host_os dld.sl"
15050     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15051     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15053     soname_spec='${libname}${release}${shared_ext}$major'
15054     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15055     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15056     ;;
15057   *)
15058    shrext_cmds='.sl'
15059    dynamic_linker="$host_os dld.sl"
15060    shlibpath_var=SHLIB_PATH
15061    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15062    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15063    soname_spec='${libname}${release}${shared_ext}$major'
15064    ;;
15065  esac
15066  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15067  postinstall_cmds='chmod 555 $lib'
15068  ;;
15069
15070interix[3-9]*)
15071  version_type=linux
15072  need_lib_prefix=no
15073  need_version=no
15074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15075  soname_spec='${libname}${release}${shared_ext}$major'
15076  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15077  shlibpath_var=LD_LIBRARY_PATH
15078  shlibpath_overrides_runpath=no
15079  hardcode_into_libs=yes
15080  ;;
15081
15082irix5* | irix6* | nonstopux*)
15083  case $host_os in
15084    nonstopux*) version_type=nonstopux ;;
15085    *)
15086	if test "$lt_cv_prog_gnu_ld" = yes; then
15087		version_type=linux
15088	else
15089		version_type=irix
15090	fi ;;
15091  esac
15092  need_lib_prefix=no
15093  need_version=no
15094  soname_spec='${libname}${release}${shared_ext}$major'
15095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15096  case $host_os in
15097  irix5* | nonstopux*)
15098    libsuff= shlibsuff=
15099    ;;
15100  *)
15101    case $LD in # libtool.m4 will add one of these switches to LD
15102    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15103      libsuff= shlibsuff= libmagic=32-bit;;
15104    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15105      libsuff=32 shlibsuff=N32 libmagic=N32;;
15106    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15107      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15108    *) libsuff= shlibsuff= libmagic=never-match;;
15109    esac
15110    ;;
15111  esac
15112  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15113  shlibpath_overrides_runpath=no
15114  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15115  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15116  hardcode_into_libs=yes
15117  ;;
15118
15119# No shared lib support for Linux oldld, aout, or coff.
15120linux*oldld* | linux*aout* | linux*coff*)
15121  dynamic_linker=no
15122  ;;
15123
15124# This must be Linux ELF.
15125linux* | k*bsd*-gnu)
15126  version_type=linux
15127  need_lib_prefix=no
15128  need_version=no
15129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15130  soname_spec='${libname}${release}${shared_ext}$major'
15131  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15132  shlibpath_var=LD_LIBRARY_PATH
15133  shlibpath_overrides_runpath=no
15134  # This implies no fast_install, which is unacceptable.
15135  # Some rework will be needed to allow for fast_install
15136  # before this can be enabled.
15137  hardcode_into_libs=yes
15138
15139  # Append ld.so.conf contents to the search path
15140  if test -f /etc/ld.so.conf; then
15141    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15142    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15143  fi
15144
15145  # We used to test for /lib/ld.so.1 and disable shared libraries on
15146  # powerpc, because MkLinux only supported shared libraries with the
15147  # GNU dynamic linker.  Since this was broken with cross compilers,
15148  # most powerpc-linux boxes support dynamic linking these days and
15149  # people can always --disable-shared, the test was removed, and we
15150  # assume the GNU/Linux dynamic linker is in use.
15151  dynamic_linker='GNU/Linux ld.so'
15152  ;;
15153
15154netbsd*)
15155  version_type=sunos
15156  need_lib_prefix=no
15157  need_version=no
15158  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15159    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15160    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15161    dynamic_linker='NetBSD (a.out) ld.so'
15162  else
15163    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15164    soname_spec='${libname}${release}${shared_ext}$major'
15165    dynamic_linker='NetBSD ld.elf_so'
15166  fi
15167  shlibpath_var=LD_LIBRARY_PATH
15168  shlibpath_overrides_runpath=yes
15169  hardcode_into_libs=yes
15170  ;;
15171
15172newsos6)
15173  version_type=linux
15174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15175  shlibpath_var=LD_LIBRARY_PATH
15176  shlibpath_overrides_runpath=yes
15177  ;;
15178
15179nto-qnx*)
15180  version_type=linux
15181  need_lib_prefix=no
15182  need_version=no
15183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15184  soname_spec='${libname}${release}${shared_ext}$major'
15185  shlibpath_var=LD_LIBRARY_PATH
15186  shlibpath_overrides_runpath=yes
15187  ;;
15188
15189openbsd*)
15190  version_type=sunos
15191  sys_lib_dlsearch_path_spec="/usr/lib"
15192  need_lib_prefix=no
15193  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15194  case $host_os in
15195    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15196    *)                         need_version=no  ;;
15197  esac
15198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15199  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15200  shlibpath_var=LD_LIBRARY_PATH
15201  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15202    case $host_os in
15203      openbsd2.[89] | openbsd2.[89].*)
15204	shlibpath_overrides_runpath=no
15205	;;
15206      *)
15207	shlibpath_overrides_runpath=yes
15208	;;
15209      esac
15210  else
15211    shlibpath_overrides_runpath=yes
15212  fi
15213  ;;
15214
15215os2*)
15216  libname_spec='$name'
15217  shrext_cmds=".dll"
15218  need_lib_prefix=no
15219  library_names_spec='$libname${shared_ext} $libname.a'
15220  dynamic_linker='OS/2 ld.exe'
15221  shlibpath_var=LIBPATH
15222  ;;
15223
15224osf3* | osf4* | osf5*)
15225  version_type=osf
15226  need_lib_prefix=no
15227  need_version=no
15228  soname_spec='${libname}${release}${shared_ext}$major'
15229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230  shlibpath_var=LD_LIBRARY_PATH
15231  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15232  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15233  ;;
15234
15235rdos*)
15236  dynamic_linker=no
15237  ;;
15238
15239solaris*)
15240  version_type=linux
15241  need_lib_prefix=no
15242  need_version=no
15243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244  soname_spec='${libname}${release}${shared_ext}$major'
15245  shlibpath_var=LD_LIBRARY_PATH
15246  shlibpath_overrides_runpath=yes
15247  hardcode_into_libs=yes
15248  # ldd complains unless libraries are executable
15249  postinstall_cmds='chmod +x $lib'
15250  ;;
15251
15252sunos4*)
15253  version_type=sunos
15254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15255  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15256  shlibpath_var=LD_LIBRARY_PATH
15257  shlibpath_overrides_runpath=yes
15258  if test "$with_gnu_ld" = yes; then
15259    need_lib_prefix=no
15260  fi
15261  need_version=yes
15262  ;;
15263
15264sysv4 | sysv4.3*)
15265  version_type=linux
15266  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15267  soname_spec='${libname}${release}${shared_ext}$major'
15268  shlibpath_var=LD_LIBRARY_PATH
15269  case $host_vendor in
15270    sni)
15271      shlibpath_overrides_runpath=no
15272      need_lib_prefix=no
15273      export_dynamic_flag_spec='${wl}-Blargedynsym'
15274      runpath_var=LD_RUN_PATH
15275      ;;
15276    siemens)
15277      need_lib_prefix=no
15278      ;;
15279    motorola)
15280      need_lib_prefix=no
15281      need_version=no
15282      shlibpath_overrides_runpath=no
15283      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15284      ;;
15285  esac
15286  ;;
15287
15288sysv4*MP*)
15289  if test -d /usr/nec ;then
15290    version_type=linux
15291    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15292    soname_spec='$libname${shared_ext}.$major'
15293    shlibpath_var=LD_LIBRARY_PATH
15294  fi
15295  ;;
15296
15297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15298  version_type=freebsd-elf
15299  need_lib_prefix=no
15300  need_version=no
15301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15302  soname_spec='${libname}${release}${shared_ext}$major'
15303  shlibpath_var=LD_LIBRARY_PATH
15304  hardcode_into_libs=yes
15305  if test "$with_gnu_ld" = yes; then
15306    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15307    shlibpath_overrides_runpath=no
15308  else
15309    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15310    shlibpath_overrides_runpath=yes
15311    case $host_os in
15312      sco3.2v5*)
15313        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15314	;;
15315    esac
15316  fi
15317  sys_lib_dlsearch_path_spec='/usr/lib'
15318  ;;
15319
15320uts4*)
15321  version_type=linux
15322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15323  soname_spec='${libname}${release}${shared_ext}$major'
15324  shlibpath_var=LD_LIBRARY_PATH
15325  ;;
15326
15327*)
15328  dynamic_linker=no
15329  ;;
15330esac
15331{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15332$as_echo "$dynamic_linker" >&6; }
15333test "$dynamic_linker" = no && can_build_shared=no
15334
15335variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15336if test "$GCC" = yes; then
15337  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15338fi
15339
15340{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15341$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15342hardcode_action_CXX=
15343if test -n "$hardcode_libdir_flag_spec_CXX" || \
15344   test -n "$runpath_var_CXX" || \
15345   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15346
15347  # We can hardcode non-existant directories.
15348  if test "$hardcode_direct_CXX" != no &&
15349     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15350     # have to relink, otherwise we might link with an installed library
15351     # when we should be linking with a yet-to-be-installed one
15352     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15353     test "$hardcode_minus_L_CXX" != no; then
15354    # Linking always hardcodes the temporary library directory.
15355    hardcode_action_CXX=relink
15356  else
15357    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15358    hardcode_action_CXX=immediate
15359  fi
15360else
15361  # We cannot hardcode anything, or else we can only hardcode existing
15362  # directories.
15363  hardcode_action_CXX=unsupported
15364fi
15365{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15366$as_echo "$hardcode_action_CXX" >&6; }
15367
15368if test "$hardcode_action_CXX" = relink; then
15369  # Fast installation is not supported
15370  enable_fast_install=no
15371elif test "$shlibpath_overrides_runpath" = yes ||
15372     test "$enable_shared" = no; then
15373  # Fast installation is not necessary
15374  enable_fast_install=needless
15375fi
15376
15377
15378# The else clause should only fire when bootstrapping the
15379# libtool distribution, otherwise you forgot to ship ltmain.sh
15380# with your package, and you will get complaints that there are
15381# no rules to generate ltmain.sh.
15382if test -f "$ltmain"; then
15383  # See if we are running on zsh, and set the options which allow our commands through
15384  # without removal of \ escapes.
15385  if test -n "${ZSH_VERSION+set}" ; then
15386    setopt NO_GLOB_SUBST
15387  fi
15388  # Now quote all the things that may contain metacharacters while being
15389  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15390  # variables and quote the copies for generation of the libtool script.
15391  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15392    SED SHELL STRIP \
15393    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15394    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15395    deplibs_check_method reload_flag reload_cmds need_locks \
15396    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15397    lt_cv_sys_global_symbol_to_c_name_address \
15398    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15399    old_postinstall_cmds old_postuninstall_cmds \
15400    compiler_CXX \
15401    CC_CXX \
15402    LD_CXX \
15403    lt_prog_compiler_wl_CXX \
15404    lt_prog_compiler_pic_CXX \
15405    lt_prog_compiler_static_CXX \
15406    lt_prog_compiler_no_builtin_flag_CXX \
15407    export_dynamic_flag_spec_CXX \
15408    thread_safe_flag_spec_CXX \
15409    whole_archive_flag_spec_CXX \
15410    enable_shared_with_static_runtimes_CXX \
15411    old_archive_cmds_CXX \
15412    old_archive_from_new_cmds_CXX \
15413    predep_objects_CXX \
15414    postdep_objects_CXX \
15415    predeps_CXX \
15416    postdeps_CXX \
15417    compiler_lib_search_path_CXX \
15418    archive_cmds_CXX \
15419    archive_expsym_cmds_CXX \
15420    postinstall_cmds_CXX \
15421    postuninstall_cmds_CXX \
15422    old_archive_from_expsyms_cmds_CXX \
15423    allow_undefined_flag_CXX \
15424    no_undefined_flag_CXX \
15425    export_symbols_cmds_CXX \
15426    hardcode_libdir_flag_spec_CXX \
15427    hardcode_libdir_flag_spec_ld_CXX \
15428    hardcode_libdir_separator_CXX \
15429    hardcode_automatic_CXX \
15430    module_cmds_CXX \
15431    module_expsym_cmds_CXX \
15432    lt_cv_prog_compiler_c_o_CXX \
15433    fix_srcfile_path_CXX \
15434    exclude_expsyms_CXX \
15435    include_expsyms_CXX; do
15436
15437    case $var in
15438    old_archive_cmds_CXX | \
15439    old_archive_from_new_cmds_CXX | \
15440    archive_cmds_CXX | \
15441    archive_expsym_cmds_CXX | \
15442    module_cmds_CXX | \
15443    module_expsym_cmds_CXX | \
15444    old_archive_from_expsyms_cmds_CXX | \
15445    export_symbols_cmds_CXX | \
15446    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15447    postinstall_cmds | postuninstall_cmds | \
15448    old_postinstall_cmds | old_postuninstall_cmds | \
15449    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15450      # Double-quote double-evaled strings.
15451      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15452      ;;
15453    *)
15454      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15455      ;;
15456    esac
15457  done
15458
15459  case $lt_echo in
15460  *'\$0 --fallback-echo"')
15461    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15462    ;;
15463  esac
15464
15465cfgfile="$ofile"
15466
15467  cat <<__EOF__ >> "$cfgfile"
15468# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15469
15470# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15471
15472# Shell to use when invoking shell scripts.
15473SHELL=$lt_SHELL
15474
15475# Whether or not to build shared libraries.
15476build_libtool_libs=$enable_shared
15477
15478# Whether or not to build static libraries.
15479build_old_libs=$enable_static
15480
15481# Whether or not to add -lc for building shared libraries.
15482build_libtool_need_lc=$archive_cmds_need_lc_CXX
15483
15484# Whether or not to disallow shared libs when runtime libs are static
15485allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15486
15487# Whether or not to optimize for fast installation.
15488fast_install=$enable_fast_install
15489
15490# The host system.
15491host_alias=$host_alias
15492host=$host
15493host_os=$host_os
15494
15495# The build system.
15496build_alias=$build_alias
15497build=$build
15498build_os=$build_os
15499
15500# An echo program that does not interpret backslashes.
15501echo=$lt_echo
15502
15503# The archiver.
15504AR=$lt_AR
15505AR_FLAGS=$lt_AR_FLAGS
15506
15507# A C compiler.
15508LTCC=$lt_LTCC
15509
15510# LTCC compiler flags.
15511LTCFLAGS=$lt_LTCFLAGS
15512
15513# A language-specific compiler.
15514CC=$lt_compiler_CXX
15515
15516# Is the compiler the GNU C compiler?
15517with_gcc=$GCC_CXX
15518
15519# An ERE matcher.
15520EGREP=$lt_EGREP
15521
15522# The linker used to build libraries.
15523LD=$lt_LD_CXX
15524
15525# Whether we need hard or soft links.
15526LN_S=$lt_LN_S
15527
15528# A BSD-compatible nm program.
15529NM=$lt_NM
15530
15531# A symbol stripping program
15532STRIP=$lt_STRIP
15533
15534# Used to examine libraries when file_magic_cmd begins "file"
15535MAGIC_CMD=$MAGIC_CMD
15536
15537# Used on cygwin: DLL creation program.
15538DLLTOOL="$DLLTOOL"
15539
15540# Used on cygwin: object dumper.
15541OBJDUMP="$OBJDUMP"
15542
15543# Used on cygwin: assembler.
15544AS="$AS"
15545
15546# The name of the directory that contains temporary libtool files.
15547objdir=$objdir
15548
15549# How to create reloadable object files.
15550reload_flag=$lt_reload_flag
15551reload_cmds=$lt_reload_cmds
15552
15553# How to pass a linker flag through the compiler.
15554wl=$lt_lt_prog_compiler_wl_CXX
15555
15556# Object file suffix (normally "o").
15557objext="$ac_objext"
15558
15559# Old archive suffix (normally "a").
15560libext="$libext"
15561
15562# Shared library suffix (normally ".so").
15563shrext_cmds='$shrext_cmds'
15564
15565# Executable file suffix (normally "").
15566exeext="$exeext"
15567
15568# Additional compiler flags for building library objects.
15569pic_flag=$lt_lt_prog_compiler_pic_CXX
15570pic_mode=$pic_mode
15571
15572# What is the maximum length of a command?
15573max_cmd_len=$lt_cv_sys_max_cmd_len
15574
15575# Does compiler simultaneously support -c and -o options?
15576compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15577
15578# Must we lock files when doing compilation?
15579need_locks=$lt_need_locks
15580
15581# Do we need the lib prefix for modules?
15582need_lib_prefix=$need_lib_prefix
15583
15584# Do we need a version for libraries?
15585need_version=$need_version
15586
15587# Whether dlopen is supported.
15588dlopen_support=$enable_dlopen
15589
15590# Whether dlopen of programs is supported.
15591dlopen_self=$enable_dlopen_self
15592
15593# Whether dlopen of statically linked programs is supported.
15594dlopen_self_static=$enable_dlopen_self_static
15595
15596# Compiler flag to prevent dynamic linking.
15597link_static_flag=$lt_lt_prog_compiler_static_CXX
15598
15599# Compiler flag to turn off builtin functions.
15600no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15601
15602# Compiler flag to allow reflexive dlopens.
15603export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15604
15605# Compiler flag to generate shared objects directly from archives.
15606whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15607
15608# Compiler flag to generate thread-safe objects.
15609thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15610
15611# Library versioning type.
15612version_type=$version_type
15613
15614# Format of library name prefix.
15615libname_spec=$lt_libname_spec
15616
15617# List of archive names.  First name is the real one, the rest are links.
15618# The last name is the one that the linker finds with -lNAME.
15619library_names_spec=$lt_library_names_spec
15620
15621# The coded name of the library, if different from the real name.
15622soname_spec=$lt_soname_spec
15623
15624# Commands used to build and install an old-style archive.
15625RANLIB=$lt_RANLIB
15626old_archive_cmds=$lt_old_archive_cmds_CXX
15627old_postinstall_cmds=$lt_old_postinstall_cmds
15628old_postuninstall_cmds=$lt_old_postuninstall_cmds
15629
15630# Create an old-style archive from a shared archive.
15631old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15632
15633# Create a temporary old-style archive to link instead of a shared archive.
15634old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15635
15636# Commands used to build and install a shared archive.
15637archive_cmds=$lt_archive_cmds_CXX
15638archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15639postinstall_cmds=$lt_postinstall_cmds
15640postuninstall_cmds=$lt_postuninstall_cmds
15641
15642# Commands used to build a loadable module (assumed same as above if empty)
15643module_cmds=$lt_module_cmds_CXX
15644module_expsym_cmds=$lt_module_expsym_cmds_CXX
15645
15646# Commands to strip libraries.
15647old_striplib=$lt_old_striplib
15648striplib=$lt_striplib
15649
15650# Dependencies to place before the objects being linked to create a
15651# shared library.
15652predep_objects=$lt_predep_objects_CXX
15653
15654# Dependencies to place after the objects being linked to create a
15655# shared library.
15656postdep_objects=$lt_postdep_objects_CXX
15657
15658# Dependencies to place before the objects being linked to create a
15659# shared library.
15660predeps=$lt_predeps_CXX
15661
15662# Dependencies to place after the objects being linked to create a
15663# shared library.
15664postdeps=$lt_postdeps_CXX
15665
15666# The library search path used internally by the compiler when linking
15667# a shared library.
15668compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15669
15670# Method to check whether dependent libraries are shared objects.
15671deplibs_check_method=$lt_deplibs_check_method
15672
15673# Command to use when deplibs_check_method == file_magic.
15674file_magic_cmd=$lt_file_magic_cmd
15675
15676# Flag that allows shared libraries with undefined symbols to be built.
15677allow_undefined_flag=$lt_allow_undefined_flag_CXX
15678
15679# Flag that forces no undefined symbols.
15680no_undefined_flag=$lt_no_undefined_flag_CXX
15681
15682# Commands used to finish a libtool library installation in a directory.
15683finish_cmds=$lt_finish_cmds
15684
15685# Same as above, but a single script fragment to be evaled but not shown.
15686finish_eval=$lt_finish_eval
15687
15688# Take the output of nm and produce a listing of raw symbols and C names.
15689global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15690
15691# Transform the output of nm in a proper C declaration
15692global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15693
15694# Transform the output of nm in a C name address pair
15695global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15696
15697# This is the shared library runtime path variable.
15698runpath_var=$runpath_var
15699
15700# This is the shared library path variable.
15701shlibpath_var=$shlibpath_var
15702
15703# Is shlibpath searched before the hard-coded library search path?
15704shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15705
15706# How to hardcode a shared library path into an executable.
15707hardcode_action=$hardcode_action_CXX
15708
15709# Whether we should hardcode library paths into libraries.
15710hardcode_into_libs=$hardcode_into_libs
15711
15712# Flag to hardcode \$libdir into a binary during linking.
15713# This must work even if \$libdir does not exist.
15714hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15715
15716# If ld is used when linking, flag to hardcode \$libdir into
15717# a binary during linking. This must work even if \$libdir does
15718# not exist.
15719hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15720
15721# Whether we need a single -rpath flag with a separated argument.
15722hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15723
15724# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15725# resulting binary.
15726hardcode_direct=$hardcode_direct_CXX
15727
15728# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15729# resulting binary.
15730hardcode_minus_L=$hardcode_minus_L_CXX
15731
15732# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15733# the resulting binary.
15734hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15735
15736# Set to yes if building a shared library automatically hardcodes DIR into the library
15737# and all subsequent libraries and executables linked against it.
15738hardcode_automatic=$hardcode_automatic_CXX
15739
15740# Variables whose values should be saved in libtool wrapper scripts and
15741# restored at relink time.
15742variables_saved_for_relink="$variables_saved_for_relink"
15743
15744# Whether libtool must link a program against all its dependency libraries.
15745link_all_deplibs=$link_all_deplibs_CXX
15746
15747# Compile-time system search path for libraries
15748sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15749
15750# Run-time system search path for libraries
15751sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15752
15753# Fix the shell variable \$srcfile for the compiler.
15754fix_srcfile_path=$lt_fix_srcfile_path
15755
15756# Set to yes if exported symbols are required.
15757always_export_symbols=$always_export_symbols_CXX
15758
15759# The commands to list exported symbols.
15760export_symbols_cmds=$lt_export_symbols_cmds_CXX
15761
15762# The commands to extract the exported symbol list from a shared archive.
15763extract_expsyms_cmds=$lt_extract_expsyms_cmds
15764
15765# Symbols that should not be listed in the preloaded symbols.
15766exclude_expsyms=$lt_exclude_expsyms_CXX
15767
15768# Symbols that must always be exported.
15769include_expsyms=$lt_include_expsyms_CXX
15770
15771# ### END LIBTOOL TAG CONFIG: $tagname
15772
15773__EOF__
15774
15775
15776else
15777  # If there is no Makefile yet, we rely on a make rule to execute
15778  # `config.status --recheck' to rerun these tests and create the
15779  # libtool script then.
15780  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15781  if test -f "$ltmain_in"; then
15782    test -f Makefile && make "$ltmain"
15783  fi
15784fi
15785
15786
15787ac_ext=c
15788ac_cpp='$CPP $CPPFLAGS'
15789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15791ac_compiler_gnu=$ac_cv_c_compiler_gnu
15792
15793CC=$lt_save_CC
15794LDCXX=$LD
15795LD=$lt_save_LD
15796GCC=$lt_save_GCC
15797with_gnu_ldcxx=$with_gnu_ld
15798with_gnu_ld=$lt_save_with_gnu_ld
15799lt_cv_path_LDCXX=$lt_cv_path_LD
15800lt_cv_path_LD=$lt_save_path_LD
15801lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15802lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15803
15804	else
15805	  tagname=""
15806	fi
15807	;;
15808
15809      F77)
15810	if test -n "$F77" && test "X$F77" != "Xno"; then
15811
15812ac_ext=f
15813ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15814ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15816
15817
15818archive_cmds_need_lc_F77=no
15819allow_undefined_flag_F77=
15820always_export_symbols_F77=no
15821archive_expsym_cmds_F77=
15822export_dynamic_flag_spec_F77=
15823hardcode_direct_F77=no
15824hardcode_libdir_flag_spec_F77=
15825hardcode_libdir_flag_spec_ld_F77=
15826hardcode_libdir_separator_F77=
15827hardcode_minus_L_F77=no
15828hardcode_automatic_F77=no
15829module_cmds_F77=
15830module_expsym_cmds_F77=
15831link_all_deplibs_F77=unknown
15832old_archive_cmds_F77=$old_archive_cmds
15833no_undefined_flag_F77=
15834whole_archive_flag_spec_F77=
15835enable_shared_with_static_runtimes_F77=no
15836
15837# Source file extension for f77 test sources.
15838ac_ext=f
15839
15840# Object file extension for compiled f77 test sources.
15841objext=o
15842objext_F77=$objext
15843
15844# Code to be used in simple compile tests
15845lt_simple_compile_test_code="\
15846      subroutine t
15847      return
15848      end
15849"
15850
15851# Code to be used in simple link tests
15852lt_simple_link_test_code="\
15853      program t
15854      end
15855"
15856
15857# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15858
15859# If no C compiler was specified, use CC.
15860LTCC=${LTCC-"$CC"}
15861
15862# If no C compiler flags were specified, use CFLAGS.
15863LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15864
15865# Allow CC to be a program name with arguments.
15866compiler=$CC
15867
15868
15869# save warnings/boilerplate of simple test code
15870ac_outfile=conftest.$ac_objext
15871echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15872eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15873_lt_compiler_boilerplate=`cat conftest.err`
15874$rm conftest*
15875
15876ac_outfile=conftest.$ac_objext
15877echo "$lt_simple_link_test_code" >conftest.$ac_ext
15878eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15879_lt_linker_boilerplate=`cat conftest.err`
15880$rm conftest*
15881
15882
15883# Allow CC to be a program name with arguments.
15884lt_save_CC="$CC"
15885CC=${F77-"f77"}
15886compiler=$CC
15887compiler_F77=$CC
15888for cc_temp in $compiler""; do
15889  case $cc_temp in
15890    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15891    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15892    \-*) ;;
15893    *) break;;
15894  esac
15895done
15896cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15897
15898
15899{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15900$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15901{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15902$as_echo "$can_build_shared" >&6; }
15903
15904{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15905$as_echo_n "checking whether to build shared libraries... " >&6; }
15906test "$can_build_shared" = "no" && enable_shared=no
15907
15908# On AIX, shared libraries and static libraries use the same namespace, and
15909# are all built from PIC.
15910case $host_os in
15911aix3*)
15912  test "$enable_shared" = yes && enable_static=no
15913  if test -n "$RANLIB"; then
15914    archive_cmds="$archive_cmds~\$RANLIB \$lib"
15915    postinstall_cmds='$RANLIB $lib'
15916  fi
15917  ;;
15918aix4* | aix5*)
15919  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15920    test "$enable_shared" = yes && enable_static=no
15921  fi
15922  ;;
15923esac
15924{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15925$as_echo "$enable_shared" >&6; }
15926
15927{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15928$as_echo_n "checking whether to build static libraries... " >&6; }
15929# Make sure either enable_shared or enable_static is yes.
15930test "$enable_shared" = yes || enable_static=yes
15931{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15932$as_echo "$enable_static" >&6; }
15933
15934GCC_F77="$G77"
15935LD_F77="$LD"
15936
15937lt_prog_compiler_wl_F77=
15938lt_prog_compiler_pic_F77=
15939lt_prog_compiler_static_F77=
15940
15941{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15942$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15943
15944  if test "$GCC" = yes; then
15945    lt_prog_compiler_wl_F77='-Wl,'
15946    lt_prog_compiler_static_F77='-static'
15947
15948    case $host_os in
15949      aix*)
15950      # All AIX code is PIC.
15951      if test "$host_cpu" = ia64; then
15952	# AIX 5 now supports IA64 processor
15953	lt_prog_compiler_static_F77='-Bstatic'
15954      fi
15955      ;;
15956
15957    amigaos*)
15958      # FIXME: we need at least 68020 code to build shared libraries, but
15959      # adding the `-m68020' flag to GCC prevents building anything better,
15960      # like `-m68040'.
15961      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15962      ;;
15963
15964    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15965      # PIC is the default for these OSes.
15966      ;;
15967
15968    mingw* | cygwin* | pw32* | os2*)
15969      # This hack is so that the source file can tell whether it is being
15970      # built for inclusion in a dll (and should export symbols for example).
15971      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15972      # (--disable-auto-import) libraries
15973      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15974      ;;
15975
15976    darwin* | rhapsody*)
15977      # PIC is the default on this platform
15978      # Common symbols not allowed in MH_DYLIB files
15979      lt_prog_compiler_pic_F77='-fno-common'
15980      ;;
15981
15982    interix[3-9]*)
15983      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15984      # Instead, we relocate shared libraries at runtime.
15985      ;;
15986
15987    msdosdjgpp*)
15988      # Just because we use GCC doesn't mean we suddenly get shared libraries
15989      # on systems that don't support them.
15990      lt_prog_compiler_can_build_shared_F77=no
15991      enable_shared=no
15992      ;;
15993
15994    sysv4*MP*)
15995      if test -d /usr/nec; then
15996	lt_prog_compiler_pic_F77=-Kconform_pic
15997      fi
15998      ;;
15999
16000    hpux*)
16001      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16002      # not for PA HP-UX.
16003      case $host_cpu in
16004      hppa*64*|ia64*)
16005	# +Z the default
16006	;;
16007      *)
16008	lt_prog_compiler_pic_F77='-fPIC'
16009	;;
16010      esac
16011      ;;
16012
16013    *)
16014      lt_prog_compiler_pic_F77='-fPIC'
16015      ;;
16016    esac
16017  else
16018    # PORTME Check for flag to pass linker flags through the system compiler.
16019    case $host_os in
16020    aix*)
16021      lt_prog_compiler_wl_F77='-Wl,'
16022      if test "$host_cpu" = ia64; then
16023	# AIX 5 now supports IA64 processor
16024	lt_prog_compiler_static_F77='-Bstatic'
16025      else
16026	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16027      fi
16028      ;;
16029      darwin*)
16030        # PIC is the default on this platform
16031        # Common symbols not allowed in MH_DYLIB files
16032       case $cc_basename in
16033         xlc*)
16034         lt_prog_compiler_pic_F77='-qnocommon'
16035         lt_prog_compiler_wl_F77='-Wl,'
16036         ;;
16037       esac
16038       ;;
16039
16040    mingw* | cygwin* | pw32* | os2*)
16041      # This hack is so that the source file can tell whether it is being
16042      # built for inclusion in a dll (and should export symbols for example).
16043      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16044      ;;
16045
16046    hpux9* | hpux10* | hpux11*)
16047      lt_prog_compiler_wl_F77='-Wl,'
16048      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16049      # not for PA HP-UX.
16050      case $host_cpu in
16051      hppa*64*|ia64*)
16052	# +Z the default
16053	;;
16054      *)
16055	lt_prog_compiler_pic_F77='+Z'
16056	;;
16057      esac
16058      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16059      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16060      ;;
16061
16062    irix5* | irix6* | nonstopux*)
16063      lt_prog_compiler_wl_F77='-Wl,'
16064      # PIC (with -KPIC) is the default.
16065      lt_prog_compiler_static_F77='-non_shared'
16066      ;;
16067
16068    newsos6)
16069      lt_prog_compiler_pic_F77='-KPIC'
16070      lt_prog_compiler_static_F77='-Bstatic'
16071      ;;
16072
16073    linux* | k*bsd*-gnu)
16074      case $cc_basename in
16075      icc* | ecc*)
16076	lt_prog_compiler_wl_F77='-Wl,'
16077	lt_prog_compiler_pic_F77='-KPIC'
16078	lt_prog_compiler_static_F77='-static'
16079        ;;
16080      pgcc* | pgf77* | pgf90* | pgf95*)
16081        # Portland Group compilers (*not* the Pentium gcc compiler,
16082	# which looks to be a dead project)
16083	lt_prog_compiler_wl_F77='-Wl,'
16084	lt_prog_compiler_pic_F77='-fpic'
16085	lt_prog_compiler_static_F77='-Bstatic'
16086        ;;
16087      ccc*)
16088        lt_prog_compiler_wl_F77='-Wl,'
16089        # All Alpha code is PIC.
16090        lt_prog_compiler_static_F77='-non_shared'
16091        ;;
16092      como)
16093        lt_prog_compiler_wl_F77='-lopt='
16094        ;;
16095      *)
16096        case `$CC -V 2>&1 | sed 5q` in
16097	*Sun\ C*)
16098	  # Sun C 5.9
16099	  lt_prog_compiler_pic_F77='-KPIC'
16100	  lt_prog_compiler_static_F77='-Bstatic'
16101	  lt_prog_compiler_wl_F77='-Wl,'
16102	  ;;
16103	*Sun\ F*)
16104	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16105	  lt_prog_compiler_pic_F77='-KPIC'
16106	  lt_prog_compiler_static_F77='-Bstatic'
16107	  lt_prog_compiler_wl_F77=''
16108	  ;;
16109	esac
16110	;;
16111      esac
16112      ;;
16113
16114    osf3* | osf4* | osf5*)
16115      lt_prog_compiler_wl_F77='-Wl,'
16116      # All OSF/1 code is PIC.
16117      lt_prog_compiler_static_F77='-non_shared'
16118      ;;
16119
16120    rdos*)
16121      lt_prog_compiler_static_F77='-non_shared'
16122      ;;
16123
16124    solaris*)
16125      lt_prog_compiler_pic_F77='-KPIC'
16126      lt_prog_compiler_static_F77='-Bstatic'
16127      case $cc_basename in
16128      f77* | f90* | f95*)
16129	lt_prog_compiler_wl_F77='-Qoption ld ';;
16130      *)
16131	lt_prog_compiler_wl_F77='-Wl,';;
16132      esac
16133      ;;
16134
16135    sunos4*)
16136      lt_prog_compiler_wl_F77='-Qoption ld '
16137      lt_prog_compiler_pic_F77='-PIC'
16138      lt_prog_compiler_static_F77='-Bstatic'
16139      ;;
16140
16141    sysv4 | sysv4.2uw2* | sysv4.3*)
16142      lt_prog_compiler_wl_F77='-Wl,'
16143      lt_prog_compiler_pic_F77='-KPIC'
16144      lt_prog_compiler_static_F77='-Bstatic'
16145      ;;
16146
16147    sysv4*MP*)
16148      if test -d /usr/nec ;then
16149	lt_prog_compiler_pic_F77='-Kconform_pic'
16150	lt_prog_compiler_static_F77='-Bstatic'
16151      fi
16152      ;;
16153
16154    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16155      lt_prog_compiler_wl_F77='-Wl,'
16156      lt_prog_compiler_pic_F77='-KPIC'
16157      lt_prog_compiler_static_F77='-Bstatic'
16158      ;;
16159
16160    unicos*)
16161      lt_prog_compiler_wl_F77='-Wl,'
16162      lt_prog_compiler_can_build_shared_F77=no
16163      ;;
16164
16165    uts4*)
16166      lt_prog_compiler_pic_F77='-pic'
16167      lt_prog_compiler_static_F77='-Bstatic'
16168      ;;
16169
16170    *)
16171      lt_prog_compiler_can_build_shared_F77=no
16172      ;;
16173    esac
16174  fi
16175
16176{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16177$as_echo "$lt_prog_compiler_pic_F77" >&6; }
16178
16179#
16180# Check to make sure the PIC flag actually works.
16181#
16182if test -n "$lt_prog_compiler_pic_F77"; then
16183
16184{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16185$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16186if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16187  $as_echo_n "(cached) " >&6
16188else
16189  lt_prog_compiler_pic_works_F77=no
16190  ac_outfile=conftest.$ac_objext
16191   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16192   lt_compiler_flag="$lt_prog_compiler_pic_F77"
16193   # Insert the option either (1) after the last *FLAGS variable, or
16194   # (2) before a word containing "conftest.", or (3) at the end.
16195   # Note that $ac_compile itself does not contain backslashes and begins
16196   # with a dollar sign (not a hyphen), so the echo should work correctly.
16197   # The option is referenced via a variable to avoid confusing sed.
16198   lt_compile=`echo "$ac_compile" | $SED \
16199   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16200   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16201   -e 's:$: $lt_compiler_flag:'`
16202   (eval echo "\"\$as_me:16202: $lt_compile\"" >&5)
16203   (eval "$lt_compile" 2>conftest.err)
16204   ac_status=$?
16205   cat conftest.err >&5
16206   echo "$as_me:16206: \$? = $ac_status" >&5
16207   if (exit $ac_status) && test -s "$ac_outfile"; then
16208     # The compiler can only warn and ignore the option if not recognized
16209     # So say no if there are warnings other than the usual output.
16210     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16211     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16212     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16213       lt_prog_compiler_pic_works_F77=yes
16214     fi
16215   fi
16216   $rm conftest*
16217
16218fi
16219{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16220$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
16221
16222if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16223    case $lt_prog_compiler_pic_F77 in
16224     "" | " "*) ;;
16225     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16226     esac
16227else
16228    lt_prog_compiler_pic_F77=
16229     lt_prog_compiler_can_build_shared_F77=no
16230fi
16231
16232fi
16233case $host_os in
16234  # For platforms which do not support PIC, -DPIC is meaningless:
16235  *djgpp*)
16236    lt_prog_compiler_pic_F77=
16237    ;;
16238  *)
16239    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16240    ;;
16241esac
16242
16243#
16244# Check to make sure the static flag actually works.
16245#
16246wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16247{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16248$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16249if test "${lt_prog_compiler_static_works_F77+set}" = set; then
16250  $as_echo_n "(cached) " >&6
16251else
16252  lt_prog_compiler_static_works_F77=no
16253   save_LDFLAGS="$LDFLAGS"
16254   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16255   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16256   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16257     # The linker can only warn and ignore the option if not recognized
16258     # So say no if there are warnings
16259     if test -s conftest.err; then
16260       # Append any errors to the config.log.
16261       cat conftest.err 1>&5
16262       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16263       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16264       if diff conftest.exp conftest.er2 >/dev/null; then
16265         lt_prog_compiler_static_works_F77=yes
16266       fi
16267     else
16268       lt_prog_compiler_static_works_F77=yes
16269     fi
16270   fi
16271   $rm conftest*
16272   LDFLAGS="$save_LDFLAGS"
16273
16274fi
16275{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16276$as_echo "$lt_prog_compiler_static_works_F77" >&6; }
16277
16278if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16279    :
16280else
16281    lt_prog_compiler_static_F77=
16282fi
16283
16284
16285{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16286$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16287if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16288  $as_echo_n "(cached) " >&6
16289else
16290  lt_cv_prog_compiler_c_o_F77=no
16291   $rm -r conftest 2>/dev/null
16292   mkdir conftest
16293   cd conftest
16294   mkdir out
16295   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16296
16297   lt_compiler_flag="-o out/conftest2.$ac_objext"
16298   # Insert the option either (1) after the last *FLAGS variable, or
16299   # (2) before a word containing "conftest.", or (3) at the end.
16300   # Note that $ac_compile itself does not contain backslashes and begins
16301   # with a dollar sign (not a hyphen), so the echo should work correctly.
16302   lt_compile=`echo "$ac_compile" | $SED \
16303   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16304   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16305   -e 's:$: $lt_compiler_flag:'`
16306   (eval echo "\"\$as_me:16306: $lt_compile\"" >&5)
16307   (eval "$lt_compile" 2>out/conftest.err)
16308   ac_status=$?
16309   cat out/conftest.err >&5
16310   echo "$as_me:16310: \$? = $ac_status" >&5
16311   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16312   then
16313     # The compiler can only warn and ignore the option if not recognized
16314     # So say no if there are warnings
16315     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16316     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16317     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16318       lt_cv_prog_compiler_c_o_F77=yes
16319     fi
16320   fi
16321   chmod u+w . 2>&5
16322   $rm conftest*
16323   # SGI C++ compiler will create directory out/ii_files/ for
16324   # template instantiation
16325   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16326   $rm out/* && rmdir out
16327   cd ..
16328   rmdir conftest
16329   $rm conftest*
16330
16331fi
16332{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16333$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
16334
16335
16336hard_links="nottested"
16337if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16338  # do not overwrite the value of need_locks provided by the user
16339  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16340$as_echo_n "checking if we can lock with hard links... " >&6; }
16341  hard_links=yes
16342  $rm conftest*
16343  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16344  touch conftest.a
16345  ln conftest.a conftest.b 2>&5 || hard_links=no
16346  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16347  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
16348$as_echo "$hard_links" >&6; }
16349  if test "$hard_links" = no; then
16350    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16351$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16352    need_locks=warn
16353  fi
16354else
16355  need_locks=no
16356fi
16357
16358{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16359$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16360
16361  runpath_var=
16362  allow_undefined_flag_F77=
16363  enable_shared_with_static_runtimes_F77=no
16364  archive_cmds_F77=
16365  archive_expsym_cmds_F77=
16366  old_archive_From_new_cmds_F77=
16367  old_archive_from_expsyms_cmds_F77=
16368  export_dynamic_flag_spec_F77=
16369  whole_archive_flag_spec_F77=
16370  thread_safe_flag_spec_F77=
16371  hardcode_libdir_flag_spec_F77=
16372  hardcode_libdir_flag_spec_ld_F77=
16373  hardcode_libdir_separator_F77=
16374  hardcode_direct_F77=no
16375  hardcode_minus_L_F77=no
16376  hardcode_shlibpath_var_F77=unsupported
16377  link_all_deplibs_F77=unknown
16378  hardcode_automatic_F77=no
16379  module_cmds_F77=
16380  module_expsym_cmds_F77=
16381  always_export_symbols_F77=no
16382  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16383  # include_expsyms should be a list of space-separated symbols to be *always*
16384  # included in the symbol list
16385  include_expsyms_F77=
16386  # exclude_expsyms can be an extended regexp of symbols to exclude
16387  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16388  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16389  # as well as any symbol that contains `d'.
16390  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16391  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16392  # platforms (ab)use it in PIC code, but their linkers get confused if
16393  # the symbol is explicitly referenced.  Since portable code cannot
16394  # rely on this symbol name, it's probably fine to never include it in
16395  # preloaded symbol tables.
16396  extract_expsyms_cmds=
16397  # Just being paranoid about ensuring that cc_basename is set.
16398  for cc_temp in $compiler""; do
16399  case $cc_temp in
16400    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16401    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16402    \-*) ;;
16403    *) break;;
16404  esac
16405done
16406cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16407
16408  case $host_os in
16409  cygwin* | mingw* | pw32*)
16410    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16411    # When not using gcc, we currently assume that we are using
16412    # Microsoft Visual C++.
16413    if test "$GCC" != yes; then
16414      with_gnu_ld=no
16415    fi
16416    ;;
16417  interix*)
16418    # we just hope/assume this is gcc and not c89 (= MSVC++)
16419    with_gnu_ld=yes
16420    ;;
16421  openbsd*)
16422    with_gnu_ld=no
16423    ;;
16424  esac
16425
16426  ld_shlibs_F77=yes
16427  if test "$with_gnu_ld" = yes; then
16428    # If archive_cmds runs LD, not CC, wlarc should be empty
16429    wlarc='${wl}'
16430
16431    # Set some defaults for GNU ld with shared library support. These
16432    # are reset later if shared libraries are not supported. Putting them
16433    # here allows them to be overridden if necessary.
16434    runpath_var=LD_RUN_PATH
16435    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16436    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16437    # ancient GNU ld didn't support --whole-archive et. al.
16438    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16439	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16440      else
16441  	whole_archive_flag_spec_F77=
16442    fi
16443    supports_anon_versioning=no
16444    case `$LD -v 2>/dev/null` in
16445      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16446      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16447      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16448      *\ 2.11.*) ;; # other 2.11 versions
16449      *) supports_anon_versioning=yes ;;
16450    esac
16451
16452    # See if GNU ld supports shared libraries.
16453    case $host_os in
16454    aix3* | aix4* | aix5*)
16455      # On AIX/PPC, the GNU linker is very broken
16456      if test "$host_cpu" != ia64; then
16457	ld_shlibs_F77=no
16458	cat <<EOF 1>&2
16459
16460*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16461*** to be unable to reliably create shared libraries on AIX.
16462*** Therefore, libtool is disabling shared libraries support.  If you
16463*** really care for shared libraries, you may want to modify your PATH
16464*** so that a non-GNU linker is found, and then restart.
16465
16466EOF
16467      fi
16468      ;;
16469
16470    amigaos*)
16471      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16472      hardcode_libdir_flag_spec_F77='-L$libdir'
16473      hardcode_minus_L_F77=yes
16474
16475      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16476      # that the semantics of dynamic libraries on AmigaOS, at least up
16477      # to version 4, is to share data among multiple programs linked
16478      # with the same dynamic library.  Since this doesn't match the
16479      # behavior of shared libraries on other platforms, we can't use
16480      # them.
16481      ld_shlibs_F77=no
16482      ;;
16483
16484    beos*)
16485      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16486	allow_undefined_flag_F77=unsupported
16487	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16488	# support --undefined.  This deserves some investigation.  FIXME
16489	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16490      else
16491	ld_shlibs_F77=no
16492      fi
16493      ;;
16494
16495    cygwin* | mingw* | pw32*)
16496      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16497      # as there is no search path for DLLs.
16498      hardcode_libdir_flag_spec_F77='-L$libdir'
16499      allow_undefined_flag_F77=unsupported
16500      always_export_symbols_F77=no
16501      enable_shared_with_static_runtimes_F77=yes
16502      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16503
16504      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16505        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16506	# If the export-symbols file already is a .def file (1st line
16507	# is EXPORTS), use it as is; otherwise, prepend...
16508	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16509	  cp $export_symbols $output_objdir/$soname.def;
16510	else
16511	  echo EXPORTS > $output_objdir/$soname.def;
16512	  cat $export_symbols >> $output_objdir/$soname.def;
16513	fi~
16514	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16515      else
16516	ld_shlibs_F77=no
16517      fi
16518      ;;
16519
16520    interix[3-9]*)
16521      hardcode_direct_F77=no
16522      hardcode_shlibpath_var_F77=no
16523      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16524      export_dynamic_flag_spec_F77='${wl}-E'
16525      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16526      # Instead, shared libraries are loaded at an image base (0x10000000 by
16527      # default) and relocated if they conflict, which is a slow very memory
16528      # consuming and fragmenting process.  To avoid this, we pick a random,
16529      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16530      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16531      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16532      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16533      ;;
16534
16535    gnu* | linux* | k*bsd*-gnu)
16536      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16537	tmp_addflag=
16538	case $cc_basename,$host_cpu in
16539	pgcc*)				# Portland Group C compiler
16540	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16541	  tmp_addflag=' $pic_flag'
16542	  ;;
16543	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16544	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16545	  tmp_addflag=' $pic_flag -Mnomain' ;;
16546	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16547	  tmp_addflag=' -i_dynamic' ;;
16548	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16549	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16550	ifc* | ifort*)			# Intel Fortran compiler
16551	  tmp_addflag=' -nofor_main' ;;
16552	esac
16553	case `$CC -V 2>&1 | sed 5q` in
16554	*Sun\ C*)			# Sun C 5.9
16555	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16556	  tmp_sharedflag='-G' ;;
16557	*Sun\ F*)			# Sun Fortran 8.3
16558	  tmp_sharedflag='-G' ;;
16559	*)
16560	  tmp_sharedflag='-shared' ;;
16561	esac
16562	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16563
16564	if test $supports_anon_versioning = yes; then
16565	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16566  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16567  $echo "local: *; };" >> $output_objdir/$libname.ver~
16568	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16569	fi
16570      else
16571	ld_shlibs_F77=no
16572      fi
16573      ;;
16574
16575    netbsd*)
16576      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16577	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16578	wlarc=
16579      else
16580	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16581	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16582      fi
16583      ;;
16584
16585    solaris*)
16586      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16587	ld_shlibs_F77=no
16588	cat <<EOF 1>&2
16589
16590*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16591*** create shared libraries on Solaris systems.  Therefore, libtool
16592*** is disabling shared libraries support.  We urge you to upgrade GNU
16593*** binutils to release 2.9.1 or newer.  Another option is to modify
16594*** your PATH or compiler configuration so that the native linker is
16595*** used, and then restart.
16596
16597EOF
16598      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16599	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16600	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16601      else
16602	ld_shlibs_F77=no
16603      fi
16604      ;;
16605
16606    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16607      case `$LD -v 2>&1` in
16608        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16609	ld_shlibs_F77=no
16610	cat <<_LT_EOF 1>&2
16611
16612*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16613*** reliably create shared libraries on SCO systems.  Therefore, libtool
16614*** is disabling shared libraries support.  We urge you to upgrade GNU
16615*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16616*** your PATH or compiler configuration so that the native linker is
16617*** used, and then restart.
16618
16619_LT_EOF
16620	;;
16621	*)
16622	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16623	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16624	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16625	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16626	  else
16627	    ld_shlibs_F77=no
16628	  fi
16629	;;
16630      esac
16631      ;;
16632
16633    sunos4*)
16634      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16635      wlarc=
16636      hardcode_direct_F77=yes
16637      hardcode_shlibpath_var_F77=no
16638      ;;
16639
16640    *)
16641      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16642	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16643	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16644      else
16645	ld_shlibs_F77=no
16646      fi
16647      ;;
16648    esac
16649
16650    if test "$ld_shlibs_F77" = no; then
16651      runpath_var=
16652      hardcode_libdir_flag_spec_F77=
16653      export_dynamic_flag_spec_F77=
16654      whole_archive_flag_spec_F77=
16655    fi
16656  else
16657    # PORTME fill in a description of your system's linker (not GNU ld)
16658    case $host_os in
16659    aix3*)
16660      allow_undefined_flag_F77=unsupported
16661      always_export_symbols_F77=yes
16662      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16663      # Note: this linker hardcodes the directories in LIBPATH if there
16664      # are no directories specified by -L.
16665      hardcode_minus_L_F77=yes
16666      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16667	# Neither direct hardcoding nor static linking is supported with a
16668	# broken collect2.
16669	hardcode_direct_F77=unsupported
16670      fi
16671      ;;
16672
16673    aix4* | aix5*)
16674      if test "$host_cpu" = ia64; then
16675	# On IA64, the linker does run time linking by default, so we don't
16676	# have to do anything special.
16677	aix_use_runtimelinking=no
16678	exp_sym_flag='-Bexport'
16679	no_entry_flag=""
16680      else
16681	# If we're using GNU nm, then we don't want the "-C" option.
16682	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16683	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16684	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16685	else
16686	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16687	fi
16688	aix_use_runtimelinking=no
16689
16690	# Test if we are trying to use run time linking or normal
16691	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16692	# need to do runtime linking.
16693	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16694	  for ld_flag in $LDFLAGS; do
16695  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16696  	    aix_use_runtimelinking=yes
16697  	    break
16698  	  fi
16699	  done
16700	  ;;
16701	esac
16702
16703	exp_sym_flag='-bexport'
16704	no_entry_flag='-bnoentry'
16705      fi
16706
16707      # When large executables or shared objects are built, AIX ld can
16708      # have problems creating the table of contents.  If linking a library
16709      # or program results in "error TOC overflow" add -mminimal-toc to
16710      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16711      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16712
16713      archive_cmds_F77=''
16714      hardcode_direct_F77=yes
16715      hardcode_libdir_separator_F77=':'
16716      link_all_deplibs_F77=yes
16717
16718      if test "$GCC" = yes; then
16719	case $host_os in aix4.[012]|aix4.[012].*)
16720	# We only want to do this on AIX 4.2 and lower, the check
16721	# below for broken collect2 doesn't work under 4.3+
16722	  collect2name=`${CC} -print-prog-name=collect2`
16723	  if test -f "$collect2name" && \
16724  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16725	  then
16726  	  # We have reworked collect2
16727  	  :
16728	  else
16729  	  # We have old collect2
16730  	  hardcode_direct_F77=unsupported
16731  	  # It fails to find uninstalled libraries when the uninstalled
16732  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16733  	  # to unsupported forces relinking
16734  	  hardcode_minus_L_F77=yes
16735  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16736  	  hardcode_libdir_separator_F77=
16737	  fi
16738	  ;;
16739	esac
16740	shared_flag='-shared'
16741	if test "$aix_use_runtimelinking" = yes; then
16742	  shared_flag="$shared_flag "'${wl}-G'
16743	fi
16744      else
16745	# not using gcc
16746	if test "$host_cpu" = ia64; then
16747  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16748  	# chokes on -Wl,-G. The following line is correct:
16749	  shared_flag='-G'
16750	else
16751	  if test "$aix_use_runtimelinking" = yes; then
16752	    shared_flag='${wl}-G'
16753	  else
16754	    shared_flag='${wl}-bM:SRE'
16755	  fi
16756	fi
16757      fi
16758
16759      # It seems that -bexpall does not export symbols beginning with
16760      # underscore (_), so it is better to generate a list of symbols to export.
16761      always_export_symbols_F77=yes
16762      if test "$aix_use_runtimelinking" = yes; then
16763	# Warning - without using the other runtime loading flags (-brtl),
16764	# -berok will link without error, but may produce a broken library.
16765	allow_undefined_flag_F77='-berok'
16766       # Determine the default libpath from the value encoded in an empty executable.
16767       cat >conftest.$ac_ext <<_ACEOF
16768      program main
16769
16770      end
16771_ACEOF
16772rm -f conftest.$ac_objext conftest$ac_exeext
16773if { (ac_try="$ac_link"
16774case "(($ac_try" in
16775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776  *) ac_try_echo=$ac_try;;
16777esac
16778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16779$as_echo "$ac_try_echo") >&5
16780  (eval "$ac_link") 2>conftest.er1
16781  ac_status=$?
16782  grep -v '^ *+' conftest.er1 >conftest.err
16783  rm -f conftest.er1
16784  cat conftest.err >&5
16785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786  (exit $ac_status); } && {
16787	 test -z "$ac_f77_werror_flag" ||
16788	 test ! -s conftest.err
16789       } && test -s conftest$ac_exeext && {
16790	 test "$cross_compiling" = yes ||
16791	 $as_test_x conftest$ac_exeext
16792       }; then
16793
16794lt_aix_libpath_sed='
16795    /Import File Strings/,/^$/ {
16796	/^0/ {
16797	    s/^0  *\(.*\)$/\1/
16798	    p
16799	}
16800    }'
16801aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16802# Check for a 64-bit object if we didn't find anything.
16803if test -z "$aix_libpath"; then
16804  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16805fi
16806else
16807  $as_echo "$as_me: failed program was:" >&5
16808sed 's/^/| /' conftest.$ac_ext >&5
16809
16810
16811fi
16812
16813rm -rf conftest.dSYM
16814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16815      conftest$ac_exeext conftest.$ac_ext
16816if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16817
16818       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16819	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16820       else
16821	if test "$host_cpu" = ia64; then
16822	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16823	  allow_undefined_flag_F77="-z nodefs"
16824	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16825	else
16826	 # Determine the default libpath from the value encoded in an empty executable.
16827	 cat >conftest.$ac_ext <<_ACEOF
16828      program main
16829
16830      end
16831_ACEOF
16832rm -f conftest.$ac_objext conftest$ac_exeext
16833if { (ac_try="$ac_link"
16834case "(($ac_try" in
16835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836  *) ac_try_echo=$ac_try;;
16837esac
16838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16839$as_echo "$ac_try_echo") >&5
16840  (eval "$ac_link") 2>conftest.er1
16841  ac_status=$?
16842  grep -v '^ *+' conftest.er1 >conftest.err
16843  rm -f conftest.er1
16844  cat conftest.err >&5
16845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846  (exit $ac_status); } && {
16847	 test -z "$ac_f77_werror_flag" ||
16848	 test ! -s conftest.err
16849       } && test -s conftest$ac_exeext && {
16850	 test "$cross_compiling" = yes ||
16851	 $as_test_x conftest$ac_exeext
16852       }; then
16853
16854lt_aix_libpath_sed='
16855    /Import File Strings/,/^$/ {
16856	/^0/ {
16857	    s/^0  *\(.*\)$/\1/
16858	    p
16859	}
16860    }'
16861aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16862# Check for a 64-bit object if we didn't find anything.
16863if test -z "$aix_libpath"; then
16864  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16865fi
16866else
16867  $as_echo "$as_me: failed program was:" >&5
16868sed 's/^/| /' conftest.$ac_ext >&5
16869
16870
16871fi
16872
16873rm -rf conftest.dSYM
16874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16875      conftest$ac_exeext conftest.$ac_ext
16876if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16877
16878	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16879	  # Warning - without using the other run time loading flags,
16880	  # -berok will link without error, but may produce a broken library.
16881	  no_undefined_flag_F77=' ${wl}-bernotok'
16882	  allow_undefined_flag_F77=' ${wl}-berok'
16883	  # Exported symbols can be pulled into shared objects from archives
16884	  whole_archive_flag_spec_F77='$convenience'
16885	  archive_cmds_need_lc_F77=yes
16886	  # This is similar to how AIX traditionally builds its shared libraries.
16887	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16888	fi
16889      fi
16890      ;;
16891
16892    amigaos*)
16893      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16894      hardcode_libdir_flag_spec_F77='-L$libdir'
16895      hardcode_minus_L_F77=yes
16896      # see comment about different semantics on the GNU ld section
16897      ld_shlibs_F77=no
16898      ;;
16899
16900    bsdi[45]*)
16901      export_dynamic_flag_spec_F77=-rdynamic
16902      ;;
16903
16904    cygwin* | mingw* | pw32*)
16905      # When not using gcc, we currently assume that we are using
16906      # Microsoft Visual C++.
16907      # hardcode_libdir_flag_spec is actually meaningless, as there is
16908      # no search path for DLLs.
16909      hardcode_libdir_flag_spec_F77=' '
16910      allow_undefined_flag_F77=unsupported
16911      # Tell ltmain to make .lib files, not .a files.
16912      libext=lib
16913      # Tell ltmain to make .dll files, not .so files.
16914      shrext_cmds=".dll"
16915      # FIXME: Setting linknames here is a bad hack.
16916      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16917      # The linker will automatically build a .lib file if we build a DLL.
16918      old_archive_From_new_cmds_F77='true'
16919      # FIXME: Should let the user specify the lib program.
16920      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
16921      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16922      enable_shared_with_static_runtimes_F77=yes
16923      ;;
16924
16925    darwin* | rhapsody*)
16926      case $host_os in
16927        rhapsody* | darwin1.[012])
16928         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16929         ;;
16930       *) # Darwin 1.3 on
16931         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16932           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16933         else
16934           case ${MACOSX_DEPLOYMENT_TARGET} in
16935             10.[012])
16936               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16937               ;;
16938             10.*)
16939               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16940               ;;
16941           esac
16942         fi
16943         ;;
16944      esac
16945      archive_cmds_need_lc_F77=no
16946      hardcode_direct_F77=no
16947      hardcode_automatic_F77=yes
16948      hardcode_shlibpath_var_F77=unsupported
16949      whole_archive_flag_spec_F77=''
16950      link_all_deplibs_F77=yes
16951    if test "$GCC" = yes ; then
16952    	output_verbose_link_cmd='echo'
16953        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16954      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16955      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16956      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16957      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16958    else
16959      case $cc_basename in
16960        xlc*)
16961         output_verbose_link_cmd='echo'
16962         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16963         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16964          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16965         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16966          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16967          ;;
16968       *)
16969         ld_shlibs_F77=no
16970          ;;
16971      esac
16972    fi
16973      ;;
16974
16975    dgux*)
16976      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16977      hardcode_libdir_flag_spec_F77='-L$libdir'
16978      hardcode_shlibpath_var_F77=no
16979      ;;
16980
16981    freebsd1*)
16982      ld_shlibs_F77=no
16983      ;;
16984
16985    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16986    # support.  Future versions do this automatically, but an explicit c++rt0.o
16987    # does not break anything, and helps significantly (at the cost of a little
16988    # extra space).
16989    freebsd2.2*)
16990      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16991      hardcode_libdir_flag_spec_F77='-R$libdir'
16992      hardcode_direct_F77=yes
16993      hardcode_shlibpath_var_F77=no
16994      ;;
16995
16996    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16997    freebsd2*)
16998      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16999      hardcode_direct_F77=yes
17000      hardcode_minus_L_F77=yes
17001      hardcode_shlibpath_var_F77=no
17002      ;;
17003
17004    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17005    freebsd* | dragonfly*)
17006      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17007      hardcode_libdir_flag_spec_F77='-R$libdir'
17008      hardcode_direct_F77=yes
17009      hardcode_shlibpath_var_F77=no
17010      ;;
17011
17012    hpux9*)
17013      if test "$GCC" = yes; then
17014	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17015      else
17016	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17017      fi
17018      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17019      hardcode_libdir_separator_F77=:
17020      hardcode_direct_F77=yes
17021
17022      # hardcode_minus_L: Not really in the search PATH,
17023      # but as the default location of the library.
17024      hardcode_minus_L_F77=yes
17025      export_dynamic_flag_spec_F77='${wl}-E'
17026      ;;
17027
17028    hpux10*)
17029      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17030	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17031      else
17032	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17033      fi
17034      if test "$with_gnu_ld" = no; then
17035	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17036	hardcode_libdir_separator_F77=:
17037
17038	hardcode_direct_F77=yes
17039	export_dynamic_flag_spec_F77='${wl}-E'
17040
17041	# hardcode_minus_L: Not really in the search PATH,
17042	# but as the default location of the library.
17043	hardcode_minus_L_F77=yes
17044      fi
17045      ;;
17046
17047    hpux11*)
17048      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17049	case $host_cpu in
17050	hppa*64*)
17051	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17052	  ;;
17053	ia64*)
17054	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17055	  ;;
17056	*)
17057	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17058	  ;;
17059	esac
17060      else
17061	case $host_cpu in
17062	hppa*64*)
17063	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17064	  ;;
17065	ia64*)
17066	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17067	  ;;
17068	*)
17069	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17070	  ;;
17071	esac
17072      fi
17073      if test "$with_gnu_ld" = no; then
17074	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17075	hardcode_libdir_separator_F77=:
17076
17077	case $host_cpu in
17078	hppa*64*|ia64*)
17079	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17080	  hardcode_direct_F77=no
17081	  hardcode_shlibpath_var_F77=no
17082	  ;;
17083	*)
17084	  hardcode_direct_F77=yes
17085	  export_dynamic_flag_spec_F77='${wl}-E'
17086
17087	  # hardcode_minus_L: Not really in the search PATH,
17088	  # but as the default location of the library.
17089	  hardcode_minus_L_F77=yes
17090	  ;;
17091	esac
17092      fi
17093      ;;
17094
17095    irix5* | irix6* | nonstopux*)
17096      if test "$GCC" = yes; then
17097	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17098      else
17099	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17100	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17101      fi
17102      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17103      hardcode_libdir_separator_F77=:
17104      link_all_deplibs_F77=yes
17105      ;;
17106
17107    netbsd*)
17108      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17109	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17110      else
17111	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17112      fi
17113      hardcode_libdir_flag_spec_F77='-R$libdir'
17114      hardcode_direct_F77=yes
17115      hardcode_shlibpath_var_F77=no
17116      ;;
17117
17118    newsos6)
17119      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17120      hardcode_direct_F77=yes
17121      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17122      hardcode_libdir_separator_F77=:
17123      hardcode_shlibpath_var_F77=no
17124      ;;
17125
17126    openbsd*)
17127      if test -f /usr/libexec/ld.so; then
17128	hardcode_direct_F77=yes
17129	hardcode_shlibpath_var_F77=no
17130	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17131	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17132	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17133	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17134	  export_dynamic_flag_spec_F77='${wl}-E'
17135	else
17136	  case $host_os in
17137	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17138	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17139	     hardcode_libdir_flag_spec_F77='-R$libdir'
17140	     ;;
17141	   *)
17142	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17143	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17144	     ;;
17145	  esac
17146        fi
17147      else
17148	ld_shlibs_F77=no
17149      fi
17150      ;;
17151
17152    os2*)
17153      hardcode_libdir_flag_spec_F77='-L$libdir'
17154      hardcode_minus_L_F77=yes
17155      allow_undefined_flag_F77=unsupported
17156      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17157      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17158      ;;
17159
17160    osf3*)
17161      if test "$GCC" = yes; then
17162	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17163	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17164      else
17165	allow_undefined_flag_F77=' -expect_unresolved \*'
17166	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17167      fi
17168      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17169      hardcode_libdir_separator_F77=:
17170      ;;
17171
17172    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17173      if test "$GCC" = yes; then
17174	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17175	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17176	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17177      else
17178	allow_undefined_flag_F77=' -expect_unresolved \*'
17179	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17180	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17181	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17182
17183	# Both c and cxx compiler support -rpath directly
17184	hardcode_libdir_flag_spec_F77='-rpath $libdir'
17185      fi
17186      hardcode_libdir_separator_F77=:
17187      ;;
17188
17189    solaris*)
17190      no_undefined_flag_F77=' -z text'
17191      if test "$GCC" = yes; then
17192	wlarc='${wl}'
17193	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17194	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17195	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17196      else
17197	wlarc=''
17198	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17199	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17200  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17201      fi
17202      hardcode_libdir_flag_spec_F77='-R$libdir'
17203      hardcode_shlibpath_var_F77=no
17204      case $host_os in
17205      solaris2.[0-5] | solaris2.[0-5].*) ;;
17206      *)
17207	# The compiler driver will combine and reorder linker options,
17208	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17209	# but is careful enough not to reorder.
17210 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17211	if test "$GCC" = yes; then
17212	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17213	else
17214	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
17215	fi
17216	;;
17217      esac
17218      link_all_deplibs_F77=yes
17219      ;;
17220
17221    sunos4*)
17222      if test "x$host_vendor" = xsequent; then
17223	# Use $CC to link under sequent, because it throws in some extra .o
17224	# files that make .init and .fini sections work.
17225	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17226      else
17227	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17228      fi
17229      hardcode_libdir_flag_spec_F77='-L$libdir'
17230      hardcode_direct_F77=yes
17231      hardcode_minus_L_F77=yes
17232      hardcode_shlibpath_var_F77=no
17233      ;;
17234
17235    sysv4)
17236      case $host_vendor in
17237	sni)
17238	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17239	  hardcode_direct_F77=yes # is this really true???
17240	;;
17241	siemens)
17242	  ## LD is ld it makes a PLAMLIB
17243	  ## CC just makes a GrossModule.
17244	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17245	  reload_cmds_F77='$CC -r -o $output$reload_objs'
17246	  hardcode_direct_F77=no
17247        ;;
17248	motorola)
17249	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17250	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17251	;;
17252      esac
17253      runpath_var='LD_RUN_PATH'
17254      hardcode_shlibpath_var_F77=no
17255      ;;
17256
17257    sysv4.3*)
17258      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17259      hardcode_shlibpath_var_F77=no
17260      export_dynamic_flag_spec_F77='-Bexport'
17261      ;;
17262
17263    sysv4*MP*)
17264      if test -d /usr/nec; then
17265	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17266	hardcode_shlibpath_var_F77=no
17267	runpath_var=LD_RUN_PATH
17268	hardcode_runpath_var=yes
17269	ld_shlibs_F77=yes
17270      fi
17271      ;;
17272
17273    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17274      no_undefined_flag_F77='${wl}-z,text'
17275      archive_cmds_need_lc_F77=no
17276      hardcode_shlibpath_var_F77=no
17277      runpath_var='LD_RUN_PATH'
17278
17279      if test "$GCC" = yes; then
17280	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17281	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17282      else
17283	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17284	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17285      fi
17286      ;;
17287
17288    sysv5* | sco3.2v5* | sco5v6*)
17289      # Note: We can NOT use -z defs as we might desire, because we do not
17290      # link with -lc, and that would cause any symbols used from libc to
17291      # always be unresolved, which means just about no library would
17292      # ever link correctly.  If we're not using GNU ld we use -z text
17293      # though, which does catch some bad symbols but isn't as heavy-handed
17294      # as -z defs.
17295      no_undefined_flag_F77='${wl}-z,text'
17296      allow_undefined_flag_F77='${wl}-z,nodefs'
17297      archive_cmds_need_lc_F77=no
17298      hardcode_shlibpath_var_F77=no
17299      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17300      hardcode_libdir_separator_F77=':'
17301      link_all_deplibs_F77=yes
17302      export_dynamic_flag_spec_F77='${wl}-Bexport'
17303      runpath_var='LD_RUN_PATH'
17304
17305      if test "$GCC" = yes; then
17306	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17307	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17308      else
17309	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17310	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17311      fi
17312      ;;
17313
17314    uts4*)
17315      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17316      hardcode_libdir_flag_spec_F77='-L$libdir'
17317      hardcode_shlibpath_var_F77=no
17318      ;;
17319
17320    *)
17321      ld_shlibs_F77=no
17322      ;;
17323    esac
17324  fi
17325
17326{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17327$as_echo "$ld_shlibs_F77" >&6; }
17328test "$ld_shlibs_F77" = no && can_build_shared=no
17329
17330#
17331# Do we need to explicitly link libc?
17332#
17333case "x$archive_cmds_need_lc_F77" in
17334x|xyes)
17335  # Assume -lc should be added
17336  archive_cmds_need_lc_F77=yes
17337
17338  if test "$enable_shared" = yes && test "$GCC" = yes; then
17339    case $archive_cmds_F77 in
17340    *'~'*)
17341      # FIXME: we may have to deal with multi-command sequences.
17342      ;;
17343    '$CC '*)
17344      # Test whether the compiler implicitly links with -lc since on some
17345      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17346      # to ld, don't add -lc before -lgcc.
17347      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17348$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17349      $rm conftest*
17350      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17351
17352      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17353  (eval $ac_compile) 2>&5
17354  ac_status=$?
17355  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356  (exit $ac_status); } 2>conftest.err; then
17357        soname=conftest
17358        lib=conftest
17359        libobjs=conftest.$ac_objext
17360        deplibs=
17361        wl=$lt_prog_compiler_wl_F77
17362	pic_flag=$lt_prog_compiler_pic_F77
17363        compiler_flags=-v
17364        linker_flags=-v
17365        verstring=
17366        output_objdir=.
17367        libname=conftest
17368        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17369        allow_undefined_flag_F77=
17370        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17371  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17372  ac_status=$?
17373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374  (exit $ac_status); }
17375        then
17376	  archive_cmds_need_lc_F77=no
17377        else
17378	  archive_cmds_need_lc_F77=yes
17379        fi
17380        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17381      else
17382        cat conftest.err 1>&5
17383      fi
17384      $rm conftest*
17385      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17386$as_echo "$archive_cmds_need_lc_F77" >&6; }
17387      ;;
17388    esac
17389  fi
17390  ;;
17391esac
17392
17393{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17394$as_echo_n "checking dynamic linker characteristics... " >&6; }
17395library_names_spec=
17396libname_spec='lib$name'
17397soname_spec=
17398shrext_cmds=".so"
17399postinstall_cmds=
17400postuninstall_cmds=
17401finish_cmds=
17402finish_eval=
17403shlibpath_var=
17404shlibpath_overrides_runpath=unknown
17405version_type=none
17406dynamic_linker="$host_os ld.so"
17407sys_lib_dlsearch_path_spec="/lib /usr/lib"
17408
17409need_lib_prefix=unknown
17410hardcode_into_libs=no
17411
17412# when you set need_version to no, make sure it does not cause -set_version
17413# flags to be left without arguments
17414need_version=unknown
17415
17416case $host_os in
17417aix3*)
17418  version_type=linux
17419  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17420  shlibpath_var=LIBPATH
17421
17422  # AIX 3 has no versioning support, so we append a major version to the name.
17423  soname_spec='${libname}${release}${shared_ext}$major'
17424  ;;
17425
17426aix4* | aix5*)
17427  version_type=linux
17428  need_lib_prefix=no
17429  need_version=no
17430  hardcode_into_libs=yes
17431  if test "$host_cpu" = ia64; then
17432    # AIX 5 supports IA64
17433    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17434    shlibpath_var=LD_LIBRARY_PATH
17435  else
17436    # With GCC up to 2.95.x, collect2 would create an import file
17437    # for dependence libraries.  The import file would start with
17438    # the line `#! .'.  This would cause the generated library to
17439    # depend on `.', always an invalid library.  This was fixed in
17440    # development snapshots of GCC prior to 3.0.
17441    case $host_os in
17442      aix4 | aix4.[01] | aix4.[01].*)
17443      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17444	   echo ' yes '
17445	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17446	:
17447      else
17448	can_build_shared=no
17449      fi
17450      ;;
17451    esac
17452    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17453    # soname into executable. Probably we can add versioning support to
17454    # collect2, so additional links can be useful in future.
17455    if test "$aix_use_runtimelinking" = yes; then
17456      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17457      # instead of lib<name>.a to let people know that these are not
17458      # typical AIX shared libraries.
17459      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17460    else
17461      # We preserve .a as extension for shared libraries through AIX4.2
17462      # and later when we are not doing run time linking.
17463      library_names_spec='${libname}${release}.a $libname.a'
17464      soname_spec='${libname}${release}${shared_ext}$major'
17465    fi
17466    shlibpath_var=LIBPATH
17467  fi
17468  ;;
17469
17470amigaos*)
17471  library_names_spec='$libname.ixlibrary $libname.a'
17472  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17473  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17474  ;;
17475
17476beos*)
17477  library_names_spec='${libname}${shared_ext}'
17478  dynamic_linker="$host_os ld.so"
17479  shlibpath_var=LIBRARY_PATH
17480  ;;
17481
17482bsdi[45]*)
17483  version_type=linux
17484  need_version=no
17485  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17486  soname_spec='${libname}${release}${shared_ext}$major'
17487  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17488  shlibpath_var=LD_LIBRARY_PATH
17489  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17490  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17491  # the default ld.so.conf also contains /usr/contrib/lib and
17492  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17493  # libtool to hard-code these into programs
17494  ;;
17495
17496cygwin* | mingw* | pw32*)
17497  version_type=windows
17498  shrext_cmds=".dll"
17499  need_version=no
17500  need_lib_prefix=no
17501
17502  case $GCC,$host_os in
17503  yes,cygwin* | yes,mingw* | yes,pw32*)
17504    library_names_spec='$libname.dll.a'
17505    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17506    postinstall_cmds='base_file=`basename \${file}`~
17507      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17508      dldir=$destdir/`dirname \$dlpath`~
17509      test -d \$dldir || mkdir -p \$dldir~
17510      $install_prog $dir/$dlname \$dldir/$dlname~
17511      chmod a+x \$dldir/$dlname'
17512    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17513      dlpath=$dir/\$dldll~
17514       $rm \$dlpath'
17515    shlibpath_overrides_runpath=yes
17516
17517    case $host_os in
17518    cygwin*)
17519      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17520      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17521      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17522      ;;
17523    mingw*)
17524      # MinGW DLLs use traditional 'lib' prefix
17525      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17526      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17527      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17528        # It is most probably a Windows format PATH printed by
17529        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17530        # path with ; separators, and with drive letters. We can handle the
17531        # drive letters (cygwin fileutils understands them), so leave them,
17532        # especially as we might pass files found there to a mingw objdump,
17533        # which wouldn't understand a cygwinified path. Ahh.
17534        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17535      else
17536        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17537      fi
17538      ;;
17539    pw32*)
17540      # pw32 DLLs use 'pw' prefix rather than 'lib'
17541      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17542      ;;
17543    esac
17544    ;;
17545
17546  *)
17547    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17548    ;;
17549  esac
17550  dynamic_linker='Win32 ld.exe'
17551  # FIXME: first we should search . and the directory the executable is in
17552  shlibpath_var=PATH
17553  ;;
17554
17555darwin* | rhapsody*)
17556  dynamic_linker="$host_os dyld"
17557  version_type=darwin
17558  need_lib_prefix=no
17559  need_version=no
17560  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17561  soname_spec='${libname}${release}${major}$shared_ext'
17562  shlibpath_overrides_runpath=yes
17563  shlibpath_var=DYLD_LIBRARY_PATH
17564  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17565
17566  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17567  ;;
17568
17569dgux*)
17570  version_type=linux
17571  need_lib_prefix=no
17572  need_version=no
17573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17574  soname_spec='${libname}${release}${shared_ext}$major'
17575  shlibpath_var=LD_LIBRARY_PATH
17576  ;;
17577
17578freebsd1*)
17579  dynamic_linker=no
17580  ;;
17581
17582freebsd* | dragonfly*)
17583  # DragonFly does not have aout.  When/if they implement a new
17584  # versioning mechanism, adjust this.
17585  if test -x /usr/bin/objformat; then
17586    objformat=`/usr/bin/objformat`
17587  else
17588    case $host_os in
17589    freebsd[123]*) objformat=aout ;;
17590    *) objformat=elf ;;
17591    esac
17592  fi
17593  version_type=freebsd-$objformat
17594  case $version_type in
17595    freebsd-elf*)
17596      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17597      need_version=no
17598      need_lib_prefix=no
17599      ;;
17600    freebsd-*)
17601      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17602      need_version=yes
17603      ;;
17604  esac
17605  shlibpath_var=LD_LIBRARY_PATH
17606  case $host_os in
17607  freebsd2*)
17608    shlibpath_overrides_runpath=yes
17609    ;;
17610  freebsd3.[01]* | freebsdelf3.[01]*)
17611    shlibpath_overrides_runpath=yes
17612    hardcode_into_libs=yes
17613    ;;
17614  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17615  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17616    shlibpath_overrides_runpath=no
17617    hardcode_into_libs=yes
17618    ;;
17619  *) # from 4.6 on, and DragonFly
17620    shlibpath_overrides_runpath=yes
17621    hardcode_into_libs=yes
17622    ;;
17623  esac
17624  ;;
17625
17626gnu*)
17627  version_type=linux
17628  need_lib_prefix=no
17629  need_version=no
17630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17631  soname_spec='${libname}${release}${shared_ext}$major'
17632  shlibpath_var=LD_LIBRARY_PATH
17633  hardcode_into_libs=yes
17634  ;;
17635
17636hpux9* | hpux10* | hpux11*)
17637  # Give a soname corresponding to the major version so that dld.sl refuses to
17638  # link against other versions.
17639  version_type=sunos
17640  need_lib_prefix=no
17641  need_version=no
17642  case $host_cpu in
17643  ia64*)
17644    shrext_cmds='.so'
17645    hardcode_into_libs=yes
17646    dynamic_linker="$host_os dld.so"
17647    shlibpath_var=LD_LIBRARY_PATH
17648    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17649    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17650    soname_spec='${libname}${release}${shared_ext}$major'
17651    if test "X$HPUX_IA64_MODE" = X32; then
17652      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17653    else
17654      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17655    fi
17656    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17657    ;;
17658   hppa*64*)
17659     shrext_cmds='.sl'
17660     hardcode_into_libs=yes
17661     dynamic_linker="$host_os dld.sl"
17662     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17663     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17664     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665     soname_spec='${libname}${release}${shared_ext}$major'
17666     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17667     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17668     ;;
17669   *)
17670    shrext_cmds='.sl'
17671    dynamic_linker="$host_os dld.sl"
17672    shlibpath_var=SHLIB_PATH
17673    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675    soname_spec='${libname}${release}${shared_ext}$major'
17676    ;;
17677  esac
17678  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17679  postinstall_cmds='chmod 555 $lib'
17680  ;;
17681
17682interix[3-9]*)
17683  version_type=linux
17684  need_lib_prefix=no
17685  need_version=no
17686  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17687  soname_spec='${libname}${release}${shared_ext}$major'
17688  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17689  shlibpath_var=LD_LIBRARY_PATH
17690  shlibpath_overrides_runpath=no
17691  hardcode_into_libs=yes
17692  ;;
17693
17694irix5* | irix6* | nonstopux*)
17695  case $host_os in
17696    nonstopux*) version_type=nonstopux ;;
17697    *)
17698	if test "$lt_cv_prog_gnu_ld" = yes; then
17699		version_type=linux
17700	else
17701		version_type=irix
17702	fi ;;
17703  esac
17704  need_lib_prefix=no
17705  need_version=no
17706  soname_spec='${libname}${release}${shared_ext}$major'
17707  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17708  case $host_os in
17709  irix5* | nonstopux*)
17710    libsuff= shlibsuff=
17711    ;;
17712  *)
17713    case $LD in # libtool.m4 will add one of these switches to LD
17714    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17715      libsuff= shlibsuff= libmagic=32-bit;;
17716    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17717      libsuff=32 shlibsuff=N32 libmagic=N32;;
17718    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17719      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17720    *) libsuff= shlibsuff= libmagic=never-match;;
17721    esac
17722    ;;
17723  esac
17724  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17725  shlibpath_overrides_runpath=no
17726  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17727  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17728  hardcode_into_libs=yes
17729  ;;
17730
17731# No shared lib support for Linux oldld, aout, or coff.
17732linux*oldld* | linux*aout* | linux*coff*)
17733  dynamic_linker=no
17734  ;;
17735
17736# This must be Linux ELF.
17737linux* | k*bsd*-gnu)
17738  version_type=linux
17739  need_lib_prefix=no
17740  need_version=no
17741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17742  soname_spec='${libname}${release}${shared_ext}$major'
17743  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17744  shlibpath_var=LD_LIBRARY_PATH
17745  shlibpath_overrides_runpath=no
17746  # This implies no fast_install, which is unacceptable.
17747  # Some rework will be needed to allow for fast_install
17748  # before this can be enabled.
17749  hardcode_into_libs=yes
17750
17751  # Append ld.so.conf contents to the search path
17752  if test -f /etc/ld.so.conf; then
17753    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17754    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17755  fi
17756
17757  # We used to test for /lib/ld.so.1 and disable shared libraries on
17758  # powerpc, because MkLinux only supported shared libraries with the
17759  # GNU dynamic linker.  Since this was broken with cross compilers,
17760  # most powerpc-linux boxes support dynamic linking these days and
17761  # people can always --disable-shared, the test was removed, and we
17762  # assume the GNU/Linux dynamic linker is in use.
17763  dynamic_linker='GNU/Linux ld.so'
17764  ;;
17765
17766netbsd*)
17767  version_type=sunos
17768  need_lib_prefix=no
17769  need_version=no
17770  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17771    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17772    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17773    dynamic_linker='NetBSD (a.out) ld.so'
17774  else
17775    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17776    soname_spec='${libname}${release}${shared_ext}$major'
17777    dynamic_linker='NetBSD ld.elf_so'
17778  fi
17779  shlibpath_var=LD_LIBRARY_PATH
17780  shlibpath_overrides_runpath=yes
17781  hardcode_into_libs=yes
17782  ;;
17783
17784newsos6)
17785  version_type=linux
17786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787  shlibpath_var=LD_LIBRARY_PATH
17788  shlibpath_overrides_runpath=yes
17789  ;;
17790
17791nto-qnx*)
17792  version_type=linux
17793  need_lib_prefix=no
17794  need_version=no
17795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17796  soname_spec='${libname}${release}${shared_ext}$major'
17797  shlibpath_var=LD_LIBRARY_PATH
17798  shlibpath_overrides_runpath=yes
17799  ;;
17800
17801openbsd*)
17802  version_type=sunos
17803  sys_lib_dlsearch_path_spec="/usr/lib"
17804  need_lib_prefix=no
17805  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17806  case $host_os in
17807    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17808    *)                         need_version=no  ;;
17809  esac
17810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17811  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17812  shlibpath_var=LD_LIBRARY_PATH
17813  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17814    case $host_os in
17815      openbsd2.[89] | openbsd2.[89].*)
17816	shlibpath_overrides_runpath=no
17817	;;
17818      *)
17819	shlibpath_overrides_runpath=yes
17820	;;
17821      esac
17822  else
17823    shlibpath_overrides_runpath=yes
17824  fi
17825  ;;
17826
17827os2*)
17828  libname_spec='$name'
17829  shrext_cmds=".dll"
17830  need_lib_prefix=no
17831  library_names_spec='$libname${shared_ext} $libname.a'
17832  dynamic_linker='OS/2 ld.exe'
17833  shlibpath_var=LIBPATH
17834  ;;
17835
17836osf3* | osf4* | osf5*)
17837  version_type=osf
17838  need_lib_prefix=no
17839  need_version=no
17840  soname_spec='${libname}${release}${shared_ext}$major'
17841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17842  shlibpath_var=LD_LIBRARY_PATH
17843  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17844  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17845  ;;
17846
17847rdos*)
17848  dynamic_linker=no
17849  ;;
17850
17851solaris*)
17852  version_type=linux
17853  need_lib_prefix=no
17854  need_version=no
17855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856  soname_spec='${libname}${release}${shared_ext}$major'
17857  shlibpath_var=LD_LIBRARY_PATH
17858  shlibpath_overrides_runpath=yes
17859  hardcode_into_libs=yes
17860  # ldd complains unless libraries are executable
17861  postinstall_cmds='chmod +x $lib'
17862  ;;
17863
17864sunos4*)
17865  version_type=sunos
17866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17867  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17868  shlibpath_var=LD_LIBRARY_PATH
17869  shlibpath_overrides_runpath=yes
17870  if test "$with_gnu_ld" = yes; then
17871    need_lib_prefix=no
17872  fi
17873  need_version=yes
17874  ;;
17875
17876sysv4 | sysv4.3*)
17877  version_type=linux
17878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879  soname_spec='${libname}${release}${shared_ext}$major'
17880  shlibpath_var=LD_LIBRARY_PATH
17881  case $host_vendor in
17882    sni)
17883      shlibpath_overrides_runpath=no
17884      need_lib_prefix=no
17885      export_dynamic_flag_spec='${wl}-Blargedynsym'
17886      runpath_var=LD_RUN_PATH
17887      ;;
17888    siemens)
17889      need_lib_prefix=no
17890      ;;
17891    motorola)
17892      need_lib_prefix=no
17893      need_version=no
17894      shlibpath_overrides_runpath=no
17895      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17896      ;;
17897  esac
17898  ;;
17899
17900sysv4*MP*)
17901  if test -d /usr/nec ;then
17902    version_type=linux
17903    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17904    soname_spec='$libname${shared_ext}.$major'
17905    shlibpath_var=LD_LIBRARY_PATH
17906  fi
17907  ;;
17908
17909sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17910  version_type=freebsd-elf
17911  need_lib_prefix=no
17912  need_version=no
17913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17914  soname_spec='${libname}${release}${shared_ext}$major'
17915  shlibpath_var=LD_LIBRARY_PATH
17916  hardcode_into_libs=yes
17917  if test "$with_gnu_ld" = yes; then
17918    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17919    shlibpath_overrides_runpath=no
17920  else
17921    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17922    shlibpath_overrides_runpath=yes
17923    case $host_os in
17924      sco3.2v5*)
17925        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17926	;;
17927    esac
17928  fi
17929  sys_lib_dlsearch_path_spec='/usr/lib'
17930  ;;
17931
17932uts4*)
17933  version_type=linux
17934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17935  soname_spec='${libname}${release}${shared_ext}$major'
17936  shlibpath_var=LD_LIBRARY_PATH
17937  ;;
17938
17939*)
17940  dynamic_linker=no
17941  ;;
17942esac
17943{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17944$as_echo "$dynamic_linker" >&6; }
17945test "$dynamic_linker" = no && can_build_shared=no
17946
17947variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17948if test "$GCC" = yes; then
17949  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17950fi
17951
17952{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17953$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17954hardcode_action_F77=
17955if test -n "$hardcode_libdir_flag_spec_F77" || \
17956   test -n "$runpath_var_F77" || \
17957   test "X$hardcode_automatic_F77" = "Xyes" ; then
17958
17959  # We can hardcode non-existant directories.
17960  if test "$hardcode_direct_F77" != no &&
17961     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17962     # have to relink, otherwise we might link with an installed library
17963     # when we should be linking with a yet-to-be-installed one
17964     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17965     test "$hardcode_minus_L_F77" != no; then
17966    # Linking always hardcodes the temporary library directory.
17967    hardcode_action_F77=relink
17968  else
17969    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17970    hardcode_action_F77=immediate
17971  fi
17972else
17973  # We cannot hardcode anything, or else we can only hardcode existing
17974  # directories.
17975  hardcode_action_F77=unsupported
17976fi
17977{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17978$as_echo "$hardcode_action_F77" >&6; }
17979
17980if test "$hardcode_action_F77" = relink; then
17981  # Fast installation is not supported
17982  enable_fast_install=no
17983elif test "$shlibpath_overrides_runpath" = yes ||
17984     test "$enable_shared" = no; then
17985  # Fast installation is not necessary
17986  enable_fast_install=needless
17987fi
17988
17989
17990# The else clause should only fire when bootstrapping the
17991# libtool distribution, otherwise you forgot to ship ltmain.sh
17992# with your package, and you will get complaints that there are
17993# no rules to generate ltmain.sh.
17994if test -f "$ltmain"; then
17995  # See if we are running on zsh, and set the options which allow our commands through
17996  # without removal of \ escapes.
17997  if test -n "${ZSH_VERSION+set}" ; then
17998    setopt NO_GLOB_SUBST
17999  fi
18000  # Now quote all the things that may contain metacharacters while being
18001  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18002  # variables and quote the copies for generation of the libtool script.
18003  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18004    SED SHELL STRIP \
18005    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18006    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18007    deplibs_check_method reload_flag reload_cmds need_locks \
18008    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18009    lt_cv_sys_global_symbol_to_c_name_address \
18010    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18011    old_postinstall_cmds old_postuninstall_cmds \
18012    compiler_F77 \
18013    CC_F77 \
18014    LD_F77 \
18015    lt_prog_compiler_wl_F77 \
18016    lt_prog_compiler_pic_F77 \
18017    lt_prog_compiler_static_F77 \
18018    lt_prog_compiler_no_builtin_flag_F77 \
18019    export_dynamic_flag_spec_F77 \
18020    thread_safe_flag_spec_F77 \
18021    whole_archive_flag_spec_F77 \
18022    enable_shared_with_static_runtimes_F77 \
18023    old_archive_cmds_F77 \
18024    old_archive_from_new_cmds_F77 \
18025    predep_objects_F77 \
18026    postdep_objects_F77 \
18027    predeps_F77 \
18028    postdeps_F77 \
18029    compiler_lib_search_path_F77 \
18030    archive_cmds_F77 \
18031    archive_expsym_cmds_F77 \
18032    postinstall_cmds_F77 \
18033    postuninstall_cmds_F77 \
18034    old_archive_from_expsyms_cmds_F77 \
18035    allow_undefined_flag_F77 \
18036    no_undefined_flag_F77 \
18037    export_symbols_cmds_F77 \
18038    hardcode_libdir_flag_spec_F77 \
18039    hardcode_libdir_flag_spec_ld_F77 \
18040    hardcode_libdir_separator_F77 \
18041    hardcode_automatic_F77 \
18042    module_cmds_F77 \
18043    module_expsym_cmds_F77 \
18044    lt_cv_prog_compiler_c_o_F77 \
18045    fix_srcfile_path_F77 \
18046    exclude_expsyms_F77 \
18047    include_expsyms_F77; do
18048
18049    case $var in
18050    old_archive_cmds_F77 | \
18051    old_archive_from_new_cmds_F77 | \
18052    archive_cmds_F77 | \
18053    archive_expsym_cmds_F77 | \
18054    module_cmds_F77 | \
18055    module_expsym_cmds_F77 | \
18056    old_archive_from_expsyms_cmds_F77 | \
18057    export_symbols_cmds_F77 | \
18058    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18059    postinstall_cmds | postuninstall_cmds | \
18060    old_postinstall_cmds | old_postuninstall_cmds | \
18061    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18062      # Double-quote double-evaled strings.
18063      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18064      ;;
18065    *)
18066      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18067      ;;
18068    esac
18069  done
18070
18071  case $lt_echo in
18072  *'\$0 --fallback-echo"')
18073    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18074    ;;
18075  esac
18076
18077cfgfile="$ofile"
18078
18079  cat <<__EOF__ >> "$cfgfile"
18080# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18081
18082# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18083
18084# Shell to use when invoking shell scripts.
18085SHELL=$lt_SHELL
18086
18087# Whether or not to build shared libraries.
18088build_libtool_libs=$enable_shared
18089
18090# Whether or not to build static libraries.
18091build_old_libs=$enable_static
18092
18093# Whether or not to add -lc for building shared libraries.
18094build_libtool_need_lc=$archive_cmds_need_lc_F77
18095
18096# Whether or not to disallow shared libs when runtime libs are static
18097allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18098
18099# Whether or not to optimize for fast installation.
18100fast_install=$enable_fast_install
18101
18102# The host system.
18103host_alias=$host_alias
18104host=$host
18105host_os=$host_os
18106
18107# The build system.
18108build_alias=$build_alias
18109build=$build
18110build_os=$build_os
18111
18112# An echo program that does not interpret backslashes.
18113echo=$lt_echo
18114
18115# The archiver.
18116AR=$lt_AR
18117AR_FLAGS=$lt_AR_FLAGS
18118
18119# A C compiler.
18120LTCC=$lt_LTCC
18121
18122# LTCC compiler flags.
18123LTCFLAGS=$lt_LTCFLAGS
18124
18125# A language-specific compiler.
18126CC=$lt_compiler_F77
18127
18128# Is the compiler the GNU C compiler?
18129with_gcc=$GCC_F77
18130
18131# An ERE matcher.
18132EGREP=$lt_EGREP
18133
18134# The linker used to build libraries.
18135LD=$lt_LD_F77
18136
18137# Whether we need hard or soft links.
18138LN_S=$lt_LN_S
18139
18140# A BSD-compatible nm program.
18141NM=$lt_NM
18142
18143# A symbol stripping program
18144STRIP=$lt_STRIP
18145
18146# Used to examine libraries when file_magic_cmd begins "file"
18147MAGIC_CMD=$MAGIC_CMD
18148
18149# Used on cygwin: DLL creation program.
18150DLLTOOL="$DLLTOOL"
18151
18152# Used on cygwin: object dumper.
18153OBJDUMP="$OBJDUMP"
18154
18155# Used on cygwin: assembler.
18156AS="$AS"
18157
18158# The name of the directory that contains temporary libtool files.
18159objdir=$objdir
18160
18161# How to create reloadable object files.
18162reload_flag=$lt_reload_flag
18163reload_cmds=$lt_reload_cmds
18164
18165# How to pass a linker flag through the compiler.
18166wl=$lt_lt_prog_compiler_wl_F77
18167
18168# Object file suffix (normally "o").
18169objext="$ac_objext"
18170
18171# Old archive suffix (normally "a").
18172libext="$libext"
18173
18174# Shared library suffix (normally ".so").
18175shrext_cmds='$shrext_cmds'
18176
18177# Executable file suffix (normally "").
18178exeext="$exeext"
18179
18180# Additional compiler flags for building library objects.
18181pic_flag=$lt_lt_prog_compiler_pic_F77
18182pic_mode=$pic_mode
18183
18184# What is the maximum length of a command?
18185max_cmd_len=$lt_cv_sys_max_cmd_len
18186
18187# Does compiler simultaneously support -c and -o options?
18188compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18189
18190# Must we lock files when doing compilation?
18191need_locks=$lt_need_locks
18192
18193# Do we need the lib prefix for modules?
18194need_lib_prefix=$need_lib_prefix
18195
18196# Do we need a version for libraries?
18197need_version=$need_version
18198
18199# Whether dlopen is supported.
18200dlopen_support=$enable_dlopen
18201
18202# Whether dlopen of programs is supported.
18203dlopen_self=$enable_dlopen_self
18204
18205# Whether dlopen of statically linked programs is supported.
18206dlopen_self_static=$enable_dlopen_self_static
18207
18208# Compiler flag to prevent dynamic linking.
18209link_static_flag=$lt_lt_prog_compiler_static_F77
18210
18211# Compiler flag to turn off builtin functions.
18212no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18213
18214# Compiler flag to allow reflexive dlopens.
18215export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18216
18217# Compiler flag to generate shared objects directly from archives.
18218whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18219
18220# Compiler flag to generate thread-safe objects.
18221thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18222
18223# Library versioning type.
18224version_type=$version_type
18225
18226# Format of library name prefix.
18227libname_spec=$lt_libname_spec
18228
18229# List of archive names.  First name is the real one, the rest are links.
18230# The last name is the one that the linker finds with -lNAME.
18231library_names_spec=$lt_library_names_spec
18232
18233# The coded name of the library, if different from the real name.
18234soname_spec=$lt_soname_spec
18235
18236# Commands used to build and install an old-style archive.
18237RANLIB=$lt_RANLIB
18238old_archive_cmds=$lt_old_archive_cmds_F77
18239old_postinstall_cmds=$lt_old_postinstall_cmds
18240old_postuninstall_cmds=$lt_old_postuninstall_cmds
18241
18242# Create an old-style archive from a shared archive.
18243old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18244
18245# Create a temporary old-style archive to link instead of a shared archive.
18246old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18247
18248# Commands used to build and install a shared archive.
18249archive_cmds=$lt_archive_cmds_F77
18250archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18251postinstall_cmds=$lt_postinstall_cmds
18252postuninstall_cmds=$lt_postuninstall_cmds
18253
18254# Commands used to build a loadable module (assumed same as above if empty)
18255module_cmds=$lt_module_cmds_F77
18256module_expsym_cmds=$lt_module_expsym_cmds_F77
18257
18258# Commands to strip libraries.
18259old_striplib=$lt_old_striplib
18260striplib=$lt_striplib
18261
18262# Dependencies to place before the objects being linked to create a
18263# shared library.
18264predep_objects=$lt_predep_objects_F77
18265
18266# Dependencies to place after the objects being linked to create a
18267# shared library.
18268postdep_objects=$lt_postdep_objects_F77
18269
18270# Dependencies to place before the objects being linked to create a
18271# shared library.
18272predeps=$lt_predeps_F77
18273
18274# Dependencies to place after the objects being linked to create a
18275# shared library.
18276postdeps=$lt_postdeps_F77
18277
18278# The library search path used internally by the compiler when linking
18279# a shared library.
18280compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18281
18282# Method to check whether dependent libraries are shared objects.
18283deplibs_check_method=$lt_deplibs_check_method
18284
18285# Command to use when deplibs_check_method == file_magic.
18286file_magic_cmd=$lt_file_magic_cmd
18287
18288# Flag that allows shared libraries with undefined symbols to be built.
18289allow_undefined_flag=$lt_allow_undefined_flag_F77
18290
18291# Flag that forces no undefined symbols.
18292no_undefined_flag=$lt_no_undefined_flag_F77
18293
18294# Commands used to finish a libtool library installation in a directory.
18295finish_cmds=$lt_finish_cmds
18296
18297# Same as above, but a single script fragment to be evaled but not shown.
18298finish_eval=$lt_finish_eval
18299
18300# Take the output of nm and produce a listing of raw symbols and C names.
18301global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18302
18303# Transform the output of nm in a proper C declaration
18304global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18305
18306# Transform the output of nm in a C name address pair
18307global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18308
18309# This is the shared library runtime path variable.
18310runpath_var=$runpath_var
18311
18312# This is the shared library path variable.
18313shlibpath_var=$shlibpath_var
18314
18315# Is shlibpath searched before the hard-coded library search path?
18316shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18317
18318# How to hardcode a shared library path into an executable.
18319hardcode_action=$hardcode_action_F77
18320
18321# Whether we should hardcode library paths into libraries.
18322hardcode_into_libs=$hardcode_into_libs
18323
18324# Flag to hardcode \$libdir into a binary during linking.
18325# This must work even if \$libdir does not exist.
18326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18327
18328# If ld is used when linking, flag to hardcode \$libdir into
18329# a binary during linking. This must work even if \$libdir does
18330# not exist.
18331hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18332
18333# Whether we need a single -rpath flag with a separated argument.
18334hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18335
18336# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18337# resulting binary.
18338hardcode_direct=$hardcode_direct_F77
18339
18340# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18341# resulting binary.
18342hardcode_minus_L=$hardcode_minus_L_F77
18343
18344# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18345# the resulting binary.
18346hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18347
18348# Set to yes if building a shared library automatically hardcodes DIR into the library
18349# and all subsequent libraries and executables linked against it.
18350hardcode_automatic=$hardcode_automatic_F77
18351
18352# Variables whose values should be saved in libtool wrapper scripts and
18353# restored at relink time.
18354variables_saved_for_relink="$variables_saved_for_relink"
18355
18356# Whether libtool must link a program against all its dependency libraries.
18357link_all_deplibs=$link_all_deplibs_F77
18358
18359# Compile-time system search path for libraries
18360sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18361
18362# Run-time system search path for libraries
18363sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18364
18365# Fix the shell variable \$srcfile for the compiler.
18366fix_srcfile_path=$lt_fix_srcfile_path
18367
18368# Set to yes if exported symbols are required.
18369always_export_symbols=$always_export_symbols_F77
18370
18371# The commands to list exported symbols.
18372export_symbols_cmds=$lt_export_symbols_cmds_F77
18373
18374# The commands to extract the exported symbol list from a shared archive.
18375extract_expsyms_cmds=$lt_extract_expsyms_cmds
18376
18377# Symbols that should not be listed in the preloaded symbols.
18378exclude_expsyms=$lt_exclude_expsyms_F77
18379
18380# Symbols that must always be exported.
18381include_expsyms=$lt_include_expsyms_F77
18382
18383# ### END LIBTOOL TAG CONFIG: $tagname
18384
18385__EOF__
18386
18387
18388else
18389  # If there is no Makefile yet, we rely on a make rule to execute
18390  # `config.status --recheck' to rerun these tests and create the
18391  # libtool script then.
18392  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18393  if test -f "$ltmain_in"; then
18394    test -f Makefile && make "$ltmain"
18395  fi
18396fi
18397
18398
18399ac_ext=c
18400ac_cpp='$CPP $CPPFLAGS'
18401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403ac_compiler_gnu=$ac_cv_c_compiler_gnu
18404
18405CC="$lt_save_CC"
18406
18407	else
18408	  tagname=""
18409	fi
18410	;;
18411
18412      GCJ)
18413	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18414
18415
18416# Source file extension for Java test sources.
18417ac_ext=java
18418
18419# Object file extension for compiled Java test sources.
18420objext=o
18421objext_GCJ=$objext
18422
18423# Code to be used in simple compile tests
18424lt_simple_compile_test_code="class foo {}"
18425
18426# Code to be used in simple link tests
18427lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
18428
18429# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18430
18431# If no C compiler was specified, use CC.
18432LTCC=${LTCC-"$CC"}
18433
18434# If no C compiler flags were specified, use CFLAGS.
18435LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18436
18437# Allow CC to be a program name with arguments.
18438compiler=$CC
18439
18440
18441# save warnings/boilerplate of simple test code
18442ac_outfile=conftest.$ac_objext
18443echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18444eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18445_lt_compiler_boilerplate=`cat conftest.err`
18446$rm conftest*
18447
18448ac_outfile=conftest.$ac_objext
18449echo "$lt_simple_link_test_code" >conftest.$ac_ext
18450eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18451_lt_linker_boilerplate=`cat conftest.err`
18452$rm conftest*
18453
18454
18455# Allow CC to be a program name with arguments.
18456lt_save_CC="$CC"
18457CC=${GCJ-"gcj"}
18458compiler=$CC
18459compiler_GCJ=$CC
18460for cc_temp in $compiler""; do
18461  case $cc_temp in
18462    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18463    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18464    \-*) ;;
18465    *) break;;
18466  esac
18467done
18468cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18469
18470
18471# GCJ did not exist at the time GCC didn't implicitly link libc in.
18472archive_cmds_need_lc_GCJ=no
18473
18474old_archive_cmds_GCJ=$old_archive_cmds
18475
18476## CAVEAT EMPTOR:
18477## There is no encapsulation within the following macros, do not change
18478## the running order or otherwise move them around unless you know exactly
18479## what you are doing...
18480
18481lt_prog_compiler_no_builtin_flag_GCJ=
18482
18483if test "$GCC" = yes; then
18484  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18485
18486
18487{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18488$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
18489if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18490  $as_echo_n "(cached) " >&6
18491else
18492  lt_cv_prog_compiler_rtti_exceptions=no
18493  ac_outfile=conftest.$ac_objext
18494   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18495   lt_compiler_flag="-fno-rtti -fno-exceptions"
18496   # Insert the option either (1) after the last *FLAGS variable, or
18497   # (2) before a word containing "conftest.", or (3) at the end.
18498   # Note that $ac_compile itself does not contain backslashes and begins
18499   # with a dollar sign (not a hyphen), so the echo should work correctly.
18500   # The option is referenced via a variable to avoid confusing sed.
18501   lt_compile=`echo "$ac_compile" | $SED \
18502   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18503   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18504   -e 's:$: $lt_compiler_flag:'`
18505   (eval echo "\"\$as_me:18505: $lt_compile\"" >&5)
18506   (eval "$lt_compile" 2>conftest.err)
18507   ac_status=$?
18508   cat conftest.err >&5
18509   echo "$as_me:18509: \$? = $ac_status" >&5
18510   if (exit $ac_status) && test -s "$ac_outfile"; then
18511     # The compiler can only warn and ignore the option if not recognized
18512     # So say no if there are warnings other than the usual output.
18513     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18514     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18515     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18516       lt_cv_prog_compiler_rtti_exceptions=yes
18517     fi
18518   fi
18519   $rm conftest*
18520
18521fi
18522{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18523$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
18524
18525if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18526    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18527else
18528    :
18529fi
18530
18531fi
18532
18533lt_prog_compiler_wl_GCJ=
18534lt_prog_compiler_pic_GCJ=
18535lt_prog_compiler_static_GCJ=
18536
18537{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18538$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18539
18540  if test "$GCC" = yes; then
18541    lt_prog_compiler_wl_GCJ='-Wl,'
18542    lt_prog_compiler_static_GCJ='-static'
18543
18544    case $host_os in
18545      aix*)
18546      # All AIX code is PIC.
18547      if test "$host_cpu" = ia64; then
18548	# AIX 5 now supports IA64 processor
18549	lt_prog_compiler_static_GCJ='-Bstatic'
18550      fi
18551      ;;
18552
18553    amigaos*)
18554      # FIXME: we need at least 68020 code to build shared libraries, but
18555      # adding the `-m68020' flag to GCC prevents building anything better,
18556      # like `-m68040'.
18557      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18558      ;;
18559
18560    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18561      # PIC is the default for these OSes.
18562      ;;
18563
18564    mingw* | cygwin* | pw32* | os2*)
18565      # This hack is so that the source file can tell whether it is being
18566      # built for inclusion in a dll (and should export symbols for example).
18567      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18568      # (--disable-auto-import) libraries
18569      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18570      ;;
18571
18572    darwin* | rhapsody*)
18573      # PIC is the default on this platform
18574      # Common symbols not allowed in MH_DYLIB files
18575      lt_prog_compiler_pic_GCJ='-fno-common'
18576      ;;
18577
18578    interix[3-9]*)
18579      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18580      # Instead, we relocate shared libraries at runtime.
18581      ;;
18582
18583    msdosdjgpp*)
18584      # Just because we use GCC doesn't mean we suddenly get shared libraries
18585      # on systems that don't support them.
18586      lt_prog_compiler_can_build_shared_GCJ=no
18587      enable_shared=no
18588      ;;
18589
18590    sysv4*MP*)
18591      if test -d /usr/nec; then
18592	lt_prog_compiler_pic_GCJ=-Kconform_pic
18593      fi
18594      ;;
18595
18596    hpux*)
18597      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18598      # not for PA HP-UX.
18599      case $host_cpu in
18600      hppa*64*|ia64*)
18601	# +Z the default
18602	;;
18603      *)
18604	lt_prog_compiler_pic_GCJ='-fPIC'
18605	;;
18606      esac
18607      ;;
18608
18609    *)
18610      lt_prog_compiler_pic_GCJ='-fPIC'
18611      ;;
18612    esac
18613  else
18614    # PORTME Check for flag to pass linker flags through the system compiler.
18615    case $host_os in
18616    aix*)
18617      lt_prog_compiler_wl_GCJ='-Wl,'
18618      if test "$host_cpu" = ia64; then
18619	# AIX 5 now supports IA64 processor
18620	lt_prog_compiler_static_GCJ='-Bstatic'
18621      else
18622	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18623      fi
18624      ;;
18625      darwin*)
18626        # PIC is the default on this platform
18627        # Common symbols not allowed in MH_DYLIB files
18628       case $cc_basename in
18629         xlc*)
18630         lt_prog_compiler_pic_GCJ='-qnocommon'
18631         lt_prog_compiler_wl_GCJ='-Wl,'
18632         ;;
18633       esac
18634       ;;
18635
18636    mingw* | cygwin* | pw32* | os2*)
18637      # This hack is so that the source file can tell whether it is being
18638      # built for inclusion in a dll (and should export symbols for example).
18639      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18640      ;;
18641
18642    hpux9* | hpux10* | hpux11*)
18643      lt_prog_compiler_wl_GCJ='-Wl,'
18644      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18645      # not for PA HP-UX.
18646      case $host_cpu in
18647      hppa*64*|ia64*)
18648	# +Z the default
18649	;;
18650      *)
18651	lt_prog_compiler_pic_GCJ='+Z'
18652	;;
18653      esac
18654      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18655      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18656      ;;
18657
18658    irix5* | irix6* | nonstopux*)
18659      lt_prog_compiler_wl_GCJ='-Wl,'
18660      # PIC (with -KPIC) is the default.
18661      lt_prog_compiler_static_GCJ='-non_shared'
18662      ;;
18663
18664    newsos6)
18665      lt_prog_compiler_pic_GCJ='-KPIC'
18666      lt_prog_compiler_static_GCJ='-Bstatic'
18667      ;;
18668
18669    linux* | k*bsd*-gnu)
18670      case $cc_basename in
18671      icc* | ecc*)
18672	lt_prog_compiler_wl_GCJ='-Wl,'
18673	lt_prog_compiler_pic_GCJ='-KPIC'
18674	lt_prog_compiler_static_GCJ='-static'
18675        ;;
18676      pgcc* | pgf77* | pgf90* | pgf95*)
18677        # Portland Group compilers (*not* the Pentium gcc compiler,
18678	# which looks to be a dead project)
18679	lt_prog_compiler_wl_GCJ='-Wl,'
18680	lt_prog_compiler_pic_GCJ='-fpic'
18681	lt_prog_compiler_static_GCJ='-Bstatic'
18682        ;;
18683      ccc*)
18684        lt_prog_compiler_wl_GCJ='-Wl,'
18685        # All Alpha code is PIC.
18686        lt_prog_compiler_static_GCJ='-non_shared'
18687        ;;
18688      como)
18689        lt_prog_compiler_wl_GCJ='-lopt='
18690        ;;
18691      *)
18692        case `$CC -V 2>&1 | sed 5q` in
18693	*Sun\ C*)
18694	  # Sun C 5.9
18695	  lt_prog_compiler_pic_GCJ='-KPIC'
18696	  lt_prog_compiler_static_GCJ='-Bstatic'
18697	  lt_prog_compiler_wl_GCJ='-Wl,'
18698	  ;;
18699	*Sun\ F*)
18700	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18701	  lt_prog_compiler_pic_GCJ='-KPIC'
18702	  lt_prog_compiler_static_GCJ='-Bstatic'
18703	  lt_prog_compiler_wl_GCJ=''
18704	  ;;
18705	esac
18706	;;
18707      esac
18708      ;;
18709
18710    osf3* | osf4* | osf5*)
18711      lt_prog_compiler_wl_GCJ='-Wl,'
18712      # All OSF/1 code is PIC.
18713      lt_prog_compiler_static_GCJ='-non_shared'
18714      ;;
18715
18716    rdos*)
18717      lt_prog_compiler_static_GCJ='-non_shared'
18718      ;;
18719
18720    solaris*)
18721      lt_prog_compiler_pic_GCJ='-KPIC'
18722      lt_prog_compiler_static_GCJ='-Bstatic'
18723      case $cc_basename in
18724      f77* | f90* | f95*)
18725	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18726      *)
18727	lt_prog_compiler_wl_GCJ='-Wl,';;
18728      esac
18729      ;;
18730
18731    sunos4*)
18732      lt_prog_compiler_wl_GCJ='-Qoption ld '
18733      lt_prog_compiler_pic_GCJ='-PIC'
18734      lt_prog_compiler_static_GCJ='-Bstatic'
18735      ;;
18736
18737    sysv4 | sysv4.2uw2* | sysv4.3*)
18738      lt_prog_compiler_wl_GCJ='-Wl,'
18739      lt_prog_compiler_pic_GCJ='-KPIC'
18740      lt_prog_compiler_static_GCJ='-Bstatic'
18741      ;;
18742
18743    sysv4*MP*)
18744      if test -d /usr/nec ;then
18745	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18746	lt_prog_compiler_static_GCJ='-Bstatic'
18747      fi
18748      ;;
18749
18750    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18751      lt_prog_compiler_wl_GCJ='-Wl,'
18752      lt_prog_compiler_pic_GCJ='-KPIC'
18753      lt_prog_compiler_static_GCJ='-Bstatic'
18754      ;;
18755
18756    unicos*)
18757      lt_prog_compiler_wl_GCJ='-Wl,'
18758      lt_prog_compiler_can_build_shared_GCJ=no
18759      ;;
18760
18761    uts4*)
18762      lt_prog_compiler_pic_GCJ='-pic'
18763      lt_prog_compiler_static_GCJ='-Bstatic'
18764      ;;
18765
18766    *)
18767      lt_prog_compiler_can_build_shared_GCJ=no
18768      ;;
18769    esac
18770  fi
18771
18772{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18773$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
18774
18775#
18776# Check to make sure the PIC flag actually works.
18777#
18778if test -n "$lt_prog_compiler_pic_GCJ"; then
18779
18780{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18781$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
18782if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18783  $as_echo_n "(cached) " >&6
18784else
18785  lt_prog_compiler_pic_works_GCJ=no
18786  ac_outfile=conftest.$ac_objext
18787   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18788   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18789   # Insert the option either (1) after the last *FLAGS variable, or
18790   # (2) before a word containing "conftest.", or (3) at the end.
18791   # Note that $ac_compile itself does not contain backslashes and begins
18792   # with a dollar sign (not a hyphen), so the echo should work correctly.
18793   # The option is referenced via a variable to avoid confusing sed.
18794   lt_compile=`echo "$ac_compile" | $SED \
18795   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18796   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18797   -e 's:$: $lt_compiler_flag:'`
18798   (eval echo "\"\$as_me:18798: $lt_compile\"" >&5)
18799   (eval "$lt_compile" 2>conftest.err)
18800   ac_status=$?
18801   cat conftest.err >&5
18802   echo "$as_me:18802: \$? = $ac_status" >&5
18803   if (exit $ac_status) && test -s "$ac_outfile"; then
18804     # The compiler can only warn and ignore the option if not recognized
18805     # So say no if there are warnings other than the usual output.
18806     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18807     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18808     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18809       lt_prog_compiler_pic_works_GCJ=yes
18810     fi
18811   fi
18812   $rm conftest*
18813
18814fi
18815{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18816$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
18817
18818if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18819    case $lt_prog_compiler_pic_GCJ in
18820     "" | " "*) ;;
18821     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18822     esac
18823else
18824    lt_prog_compiler_pic_GCJ=
18825     lt_prog_compiler_can_build_shared_GCJ=no
18826fi
18827
18828fi
18829case $host_os in
18830  # For platforms which do not support PIC, -DPIC is meaningless:
18831  *djgpp*)
18832    lt_prog_compiler_pic_GCJ=
18833    ;;
18834  *)
18835    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18836    ;;
18837esac
18838
18839#
18840# Check to make sure the static flag actually works.
18841#
18842wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18843{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18844$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18845if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18846  $as_echo_n "(cached) " >&6
18847else
18848  lt_prog_compiler_static_works_GCJ=no
18849   save_LDFLAGS="$LDFLAGS"
18850   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18851   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18852   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18853     # The linker can only warn and ignore the option if not recognized
18854     # So say no if there are warnings
18855     if test -s conftest.err; then
18856       # Append any errors to the config.log.
18857       cat conftest.err 1>&5
18858       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18859       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18860       if diff conftest.exp conftest.er2 >/dev/null; then
18861         lt_prog_compiler_static_works_GCJ=yes
18862       fi
18863     else
18864       lt_prog_compiler_static_works_GCJ=yes
18865     fi
18866   fi
18867   $rm conftest*
18868   LDFLAGS="$save_LDFLAGS"
18869
18870fi
18871{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18872$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
18873
18874if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18875    :
18876else
18877    lt_prog_compiler_static_GCJ=
18878fi
18879
18880
18881{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18882$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18883if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18884  $as_echo_n "(cached) " >&6
18885else
18886  lt_cv_prog_compiler_c_o_GCJ=no
18887   $rm -r conftest 2>/dev/null
18888   mkdir conftest
18889   cd conftest
18890   mkdir out
18891   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18892
18893   lt_compiler_flag="-o out/conftest2.$ac_objext"
18894   # Insert the option either (1) after the last *FLAGS variable, or
18895   # (2) before a word containing "conftest.", or (3) at the end.
18896   # Note that $ac_compile itself does not contain backslashes and begins
18897   # with a dollar sign (not a hyphen), so the echo should work correctly.
18898   lt_compile=`echo "$ac_compile" | $SED \
18899   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18900   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18901   -e 's:$: $lt_compiler_flag:'`
18902   (eval echo "\"\$as_me:18902: $lt_compile\"" >&5)
18903   (eval "$lt_compile" 2>out/conftest.err)
18904   ac_status=$?
18905   cat out/conftest.err >&5
18906   echo "$as_me:18906: \$? = $ac_status" >&5
18907   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18908   then
18909     # The compiler can only warn and ignore the option if not recognized
18910     # So say no if there are warnings
18911     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18912     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18913     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18914       lt_cv_prog_compiler_c_o_GCJ=yes
18915     fi
18916   fi
18917   chmod u+w . 2>&5
18918   $rm conftest*
18919   # SGI C++ compiler will create directory out/ii_files/ for
18920   # template instantiation
18921   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18922   $rm out/* && rmdir out
18923   cd ..
18924   rmdir conftest
18925   $rm conftest*
18926
18927fi
18928{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18929$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
18930
18931
18932hard_links="nottested"
18933if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18934  # do not overwrite the value of need_locks provided by the user
18935  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18936$as_echo_n "checking if we can lock with hard links... " >&6; }
18937  hard_links=yes
18938  $rm conftest*
18939  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18940  touch conftest.a
18941  ln conftest.a conftest.b 2>&5 || hard_links=no
18942  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18943  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18944$as_echo "$hard_links" >&6; }
18945  if test "$hard_links" = no; then
18946    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18947$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18948    need_locks=warn
18949  fi
18950else
18951  need_locks=no
18952fi
18953
18954{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18955$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18956
18957  runpath_var=
18958  allow_undefined_flag_GCJ=
18959  enable_shared_with_static_runtimes_GCJ=no
18960  archive_cmds_GCJ=
18961  archive_expsym_cmds_GCJ=
18962  old_archive_From_new_cmds_GCJ=
18963  old_archive_from_expsyms_cmds_GCJ=
18964  export_dynamic_flag_spec_GCJ=
18965  whole_archive_flag_spec_GCJ=
18966  thread_safe_flag_spec_GCJ=
18967  hardcode_libdir_flag_spec_GCJ=
18968  hardcode_libdir_flag_spec_ld_GCJ=
18969  hardcode_libdir_separator_GCJ=
18970  hardcode_direct_GCJ=no
18971  hardcode_minus_L_GCJ=no
18972  hardcode_shlibpath_var_GCJ=unsupported
18973  link_all_deplibs_GCJ=unknown
18974  hardcode_automatic_GCJ=no
18975  module_cmds_GCJ=
18976  module_expsym_cmds_GCJ=
18977  always_export_symbols_GCJ=no
18978  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18979  # include_expsyms should be a list of space-separated symbols to be *always*
18980  # included in the symbol list
18981  include_expsyms_GCJ=
18982  # exclude_expsyms can be an extended regexp of symbols to exclude
18983  # it will be wrapped by ` (' and `)$', so one must not match beginning or
18984  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18985  # as well as any symbol that contains `d'.
18986  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18987  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18988  # platforms (ab)use it in PIC code, but their linkers get confused if
18989  # the symbol is explicitly referenced.  Since portable code cannot
18990  # rely on this symbol name, it's probably fine to never include it in
18991  # preloaded symbol tables.
18992  extract_expsyms_cmds=
18993  # Just being paranoid about ensuring that cc_basename is set.
18994  for cc_temp in $compiler""; do
18995  case $cc_temp in
18996    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18997    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18998    \-*) ;;
18999    *) break;;
19000  esac
19001done
19002cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19003
19004  case $host_os in
19005  cygwin* | mingw* | pw32*)
19006    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19007    # When not using gcc, we currently assume that we are using
19008    # Microsoft Visual C++.
19009    if test "$GCC" != yes; then
19010      with_gnu_ld=no
19011    fi
19012    ;;
19013  interix*)
19014    # we just hope/assume this is gcc and not c89 (= MSVC++)
19015    with_gnu_ld=yes
19016    ;;
19017  openbsd*)
19018    with_gnu_ld=no
19019    ;;
19020  esac
19021
19022  ld_shlibs_GCJ=yes
19023  if test "$with_gnu_ld" = yes; then
19024    # If archive_cmds runs LD, not CC, wlarc should be empty
19025    wlarc='${wl}'
19026
19027    # Set some defaults for GNU ld with shared library support. These
19028    # are reset later if shared libraries are not supported. Putting them
19029    # here allows them to be overridden if necessary.
19030    runpath_var=LD_RUN_PATH
19031    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19032    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19033    # ancient GNU ld didn't support --whole-archive et. al.
19034    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19035	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19036      else
19037  	whole_archive_flag_spec_GCJ=
19038    fi
19039    supports_anon_versioning=no
19040    case `$LD -v 2>/dev/null` in
19041      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19042      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19043      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19044      *\ 2.11.*) ;; # other 2.11 versions
19045      *) supports_anon_versioning=yes ;;
19046    esac
19047
19048    # See if GNU ld supports shared libraries.
19049    case $host_os in
19050    aix3* | aix4* | aix5*)
19051      # On AIX/PPC, the GNU linker is very broken
19052      if test "$host_cpu" != ia64; then
19053	ld_shlibs_GCJ=no
19054	cat <<EOF 1>&2
19055
19056*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19057*** to be unable to reliably create shared libraries on AIX.
19058*** Therefore, libtool is disabling shared libraries support.  If you
19059*** really care for shared libraries, you may want to modify your PATH
19060*** so that a non-GNU linker is found, and then restart.
19061
19062EOF
19063      fi
19064      ;;
19065
19066    amigaos*)
19067      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19068      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19069      hardcode_minus_L_GCJ=yes
19070
19071      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19072      # that the semantics of dynamic libraries on AmigaOS, at least up
19073      # to version 4, is to share data among multiple programs linked
19074      # with the same dynamic library.  Since this doesn't match the
19075      # behavior of shared libraries on other platforms, we can't use
19076      # them.
19077      ld_shlibs_GCJ=no
19078      ;;
19079
19080    beos*)
19081      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19082	allow_undefined_flag_GCJ=unsupported
19083	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19084	# support --undefined.  This deserves some investigation.  FIXME
19085	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19086      else
19087	ld_shlibs_GCJ=no
19088      fi
19089      ;;
19090
19091    cygwin* | mingw* | pw32*)
19092      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19093      # as there is no search path for DLLs.
19094      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19095      allow_undefined_flag_GCJ=unsupported
19096      always_export_symbols_GCJ=no
19097      enable_shared_with_static_runtimes_GCJ=yes
19098      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19099
19100      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19101        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19102	# If the export-symbols file already is a .def file (1st line
19103	# is EXPORTS), use it as is; otherwise, prepend...
19104	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19105	  cp $export_symbols $output_objdir/$soname.def;
19106	else
19107	  echo EXPORTS > $output_objdir/$soname.def;
19108	  cat $export_symbols >> $output_objdir/$soname.def;
19109	fi~
19110	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19111      else
19112	ld_shlibs_GCJ=no
19113      fi
19114      ;;
19115
19116    interix[3-9]*)
19117      hardcode_direct_GCJ=no
19118      hardcode_shlibpath_var_GCJ=no
19119      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19120      export_dynamic_flag_spec_GCJ='${wl}-E'
19121      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19122      # Instead, shared libraries are loaded at an image base (0x10000000 by
19123      # default) and relocated if they conflict, which is a slow very memory
19124      # consuming and fragmenting process.  To avoid this, we pick a random,
19125      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19126      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19127      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19128      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19129      ;;
19130
19131    gnu* | linux* | k*bsd*-gnu)
19132      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19133	tmp_addflag=
19134	case $cc_basename,$host_cpu in
19135	pgcc*)				# Portland Group C compiler
19136	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19137	  tmp_addflag=' $pic_flag'
19138	  ;;
19139	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
19140	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19141	  tmp_addflag=' $pic_flag -Mnomain' ;;
19142	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
19143	  tmp_addflag=' -i_dynamic' ;;
19144	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19145	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19146	ifc* | ifort*)			# Intel Fortran compiler
19147	  tmp_addflag=' -nofor_main' ;;
19148	esac
19149	case `$CC -V 2>&1 | sed 5q` in
19150	*Sun\ C*)			# Sun C 5.9
19151	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19152	  tmp_sharedflag='-G' ;;
19153	*Sun\ F*)			# Sun Fortran 8.3
19154	  tmp_sharedflag='-G' ;;
19155	*)
19156	  tmp_sharedflag='-shared' ;;
19157	esac
19158	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19159
19160	if test $supports_anon_versioning = yes; then
19161	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19162  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19163  $echo "local: *; };" >> $output_objdir/$libname.ver~
19164	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19165	fi
19166      else
19167	ld_shlibs_GCJ=no
19168      fi
19169      ;;
19170
19171    netbsd*)
19172      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19173	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19174	wlarc=
19175      else
19176	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19177	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19178      fi
19179      ;;
19180
19181    solaris*)
19182      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19183	ld_shlibs_GCJ=no
19184	cat <<EOF 1>&2
19185
19186*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19187*** create shared libraries on Solaris systems.  Therefore, libtool
19188*** is disabling shared libraries support.  We urge you to upgrade GNU
19189*** binutils to release 2.9.1 or newer.  Another option is to modify
19190*** your PATH or compiler configuration so that the native linker is
19191*** used, and then restart.
19192
19193EOF
19194      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19195	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19196	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19197      else
19198	ld_shlibs_GCJ=no
19199      fi
19200      ;;
19201
19202    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19203      case `$LD -v 2>&1` in
19204        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19205	ld_shlibs_GCJ=no
19206	cat <<_LT_EOF 1>&2
19207
19208*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19209*** reliably create shared libraries on SCO systems.  Therefore, libtool
19210*** is disabling shared libraries support.  We urge you to upgrade GNU
19211*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19212*** your PATH or compiler configuration so that the native linker is
19213*** used, and then restart.
19214
19215_LT_EOF
19216	;;
19217	*)
19218	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19219	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19220	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19221	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19222	  else
19223	    ld_shlibs_GCJ=no
19224	  fi
19225	;;
19226      esac
19227      ;;
19228
19229    sunos4*)
19230      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19231      wlarc=
19232      hardcode_direct_GCJ=yes
19233      hardcode_shlibpath_var_GCJ=no
19234      ;;
19235
19236    *)
19237      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19238	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19240      else
19241	ld_shlibs_GCJ=no
19242      fi
19243      ;;
19244    esac
19245
19246    if test "$ld_shlibs_GCJ" = no; then
19247      runpath_var=
19248      hardcode_libdir_flag_spec_GCJ=
19249      export_dynamic_flag_spec_GCJ=
19250      whole_archive_flag_spec_GCJ=
19251    fi
19252  else
19253    # PORTME fill in a description of your system's linker (not GNU ld)
19254    case $host_os in
19255    aix3*)
19256      allow_undefined_flag_GCJ=unsupported
19257      always_export_symbols_GCJ=yes
19258      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19259      # Note: this linker hardcodes the directories in LIBPATH if there
19260      # are no directories specified by -L.
19261      hardcode_minus_L_GCJ=yes
19262      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19263	# Neither direct hardcoding nor static linking is supported with a
19264	# broken collect2.
19265	hardcode_direct_GCJ=unsupported
19266      fi
19267      ;;
19268
19269    aix4* | aix5*)
19270      if test "$host_cpu" = ia64; then
19271	# On IA64, the linker does run time linking by default, so we don't
19272	# have to do anything special.
19273	aix_use_runtimelinking=no
19274	exp_sym_flag='-Bexport'
19275	no_entry_flag=""
19276      else
19277	# If we're using GNU nm, then we don't want the "-C" option.
19278	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19279	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19280	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19281	else
19282	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19283	fi
19284	aix_use_runtimelinking=no
19285
19286	# Test if we are trying to use run time linking or normal
19287	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19288	# need to do runtime linking.
19289	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19290	  for ld_flag in $LDFLAGS; do
19291  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19292  	    aix_use_runtimelinking=yes
19293  	    break
19294  	  fi
19295	  done
19296	  ;;
19297	esac
19298
19299	exp_sym_flag='-bexport'
19300	no_entry_flag='-bnoentry'
19301      fi
19302
19303      # When large executables or shared objects are built, AIX ld can
19304      # have problems creating the table of contents.  If linking a library
19305      # or program results in "error TOC overflow" add -mminimal-toc to
19306      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19307      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19308
19309      archive_cmds_GCJ=''
19310      hardcode_direct_GCJ=yes
19311      hardcode_libdir_separator_GCJ=':'
19312      link_all_deplibs_GCJ=yes
19313
19314      if test "$GCC" = yes; then
19315	case $host_os in aix4.[012]|aix4.[012].*)
19316	# We only want to do this on AIX 4.2 and lower, the check
19317	# below for broken collect2 doesn't work under 4.3+
19318	  collect2name=`${CC} -print-prog-name=collect2`
19319	  if test -f "$collect2name" && \
19320  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19321	  then
19322  	  # We have reworked collect2
19323  	  :
19324	  else
19325  	  # We have old collect2
19326  	  hardcode_direct_GCJ=unsupported
19327  	  # It fails to find uninstalled libraries when the uninstalled
19328  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19329  	  # to unsupported forces relinking
19330  	  hardcode_minus_L_GCJ=yes
19331  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19332  	  hardcode_libdir_separator_GCJ=
19333	  fi
19334	  ;;
19335	esac
19336	shared_flag='-shared'
19337	if test "$aix_use_runtimelinking" = yes; then
19338	  shared_flag="$shared_flag "'${wl}-G'
19339	fi
19340      else
19341	# not using gcc
19342	if test "$host_cpu" = ia64; then
19343  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19344  	# chokes on -Wl,-G. The following line is correct:
19345	  shared_flag='-G'
19346	else
19347	  if test "$aix_use_runtimelinking" = yes; then
19348	    shared_flag='${wl}-G'
19349	  else
19350	    shared_flag='${wl}-bM:SRE'
19351	  fi
19352	fi
19353      fi
19354
19355      # It seems that -bexpall does not export symbols beginning with
19356      # underscore (_), so it is better to generate a list of symbols to export.
19357      always_export_symbols_GCJ=yes
19358      if test "$aix_use_runtimelinking" = yes; then
19359	# Warning - without using the other runtime loading flags (-brtl),
19360	# -berok will link without error, but may produce a broken library.
19361	allow_undefined_flag_GCJ='-berok'
19362       # Determine the default libpath from the value encoded in an empty executable.
19363       cat >conftest.$ac_ext <<_ACEOF
19364/* confdefs.h.  */
19365_ACEOF
19366cat confdefs.h >>conftest.$ac_ext
19367cat >>conftest.$ac_ext <<_ACEOF
19368/* end confdefs.h.  */
19369
19370int
19371main ()
19372{
19373
19374  ;
19375  return 0;
19376}
19377_ACEOF
19378rm -f conftest.$ac_objext conftest$ac_exeext
19379if { (ac_try="$ac_link"
19380case "(($ac_try" in
19381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19382  *) ac_try_echo=$ac_try;;
19383esac
19384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19385$as_echo "$ac_try_echo") >&5
19386  (eval "$ac_link") 2>conftest.er1
19387  ac_status=$?
19388  grep -v '^ *+' conftest.er1 >conftest.err
19389  rm -f conftest.er1
19390  cat conftest.err >&5
19391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392  (exit $ac_status); } && {
19393	 test -z "$ac_c_werror_flag" ||
19394	 test ! -s conftest.err
19395       } && test -s conftest$ac_exeext && {
19396	 test "$cross_compiling" = yes ||
19397	 $as_test_x conftest$ac_exeext
19398       }; then
19399
19400lt_aix_libpath_sed='
19401    /Import File Strings/,/^$/ {
19402	/^0/ {
19403	    s/^0  *\(.*\)$/\1/
19404	    p
19405	}
19406    }'
19407aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19408# Check for a 64-bit object if we didn't find anything.
19409if test -z "$aix_libpath"; then
19410  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19411fi
19412else
19413  $as_echo "$as_me: failed program was:" >&5
19414sed 's/^/| /' conftest.$ac_ext >&5
19415
19416
19417fi
19418
19419rm -rf conftest.dSYM
19420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19421      conftest$ac_exeext conftest.$ac_ext
19422if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19423
19424       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19425	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19426       else
19427	if test "$host_cpu" = ia64; then
19428	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19429	  allow_undefined_flag_GCJ="-z nodefs"
19430	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
19431	else
19432	 # Determine the default libpath from the value encoded in an empty executable.
19433	 cat >conftest.$ac_ext <<_ACEOF
19434/* confdefs.h.  */
19435_ACEOF
19436cat confdefs.h >>conftest.$ac_ext
19437cat >>conftest.$ac_ext <<_ACEOF
19438/* end confdefs.h.  */
19439
19440int
19441main ()
19442{
19443
19444  ;
19445  return 0;
19446}
19447_ACEOF
19448rm -f conftest.$ac_objext conftest$ac_exeext
19449if { (ac_try="$ac_link"
19450case "(($ac_try" in
19451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452  *) ac_try_echo=$ac_try;;
19453esac
19454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19455$as_echo "$ac_try_echo") >&5
19456  (eval "$ac_link") 2>conftest.er1
19457  ac_status=$?
19458  grep -v '^ *+' conftest.er1 >conftest.err
19459  rm -f conftest.er1
19460  cat conftest.err >&5
19461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462  (exit $ac_status); } && {
19463	 test -z "$ac_c_werror_flag" ||
19464	 test ! -s conftest.err
19465       } && test -s conftest$ac_exeext && {
19466	 test "$cross_compiling" = yes ||
19467	 $as_test_x conftest$ac_exeext
19468       }; then
19469
19470lt_aix_libpath_sed='
19471    /Import File Strings/,/^$/ {
19472	/^0/ {
19473	    s/^0  *\(.*\)$/\1/
19474	    p
19475	}
19476    }'
19477aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19478# Check for a 64-bit object if we didn't find anything.
19479if test -z "$aix_libpath"; then
19480  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19481fi
19482else
19483  $as_echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486
19487fi
19488
19489rm -rf conftest.dSYM
19490rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491      conftest$ac_exeext conftest.$ac_ext
19492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19493
19494	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19495	  # Warning - without using the other run time loading flags,
19496	  # -berok will link without error, but may produce a broken library.
19497	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19498	  allow_undefined_flag_GCJ=' ${wl}-berok'
19499	  # Exported symbols can be pulled into shared objects from archives
19500	  whole_archive_flag_spec_GCJ='$convenience'
19501	  archive_cmds_need_lc_GCJ=yes
19502	  # This is similar to how AIX traditionally builds its shared libraries.
19503	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19504	fi
19505      fi
19506      ;;
19507
19508    amigaos*)
19509      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19510      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19511      hardcode_minus_L_GCJ=yes
19512      # see comment about different semantics on the GNU ld section
19513      ld_shlibs_GCJ=no
19514      ;;
19515
19516    bsdi[45]*)
19517      export_dynamic_flag_spec_GCJ=-rdynamic
19518      ;;
19519
19520    cygwin* | mingw* | pw32*)
19521      # When not using gcc, we currently assume that we are using
19522      # Microsoft Visual C++.
19523      # hardcode_libdir_flag_spec is actually meaningless, as there is
19524      # no search path for DLLs.
19525      hardcode_libdir_flag_spec_GCJ=' '
19526      allow_undefined_flag_GCJ=unsupported
19527      # Tell ltmain to make .lib files, not .a files.
19528      libext=lib
19529      # Tell ltmain to make .dll files, not .so files.
19530      shrext_cmds=".dll"
19531      # FIXME: Setting linknames here is a bad hack.
19532      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19533      # The linker will automatically build a .lib file if we build a DLL.
19534      old_archive_From_new_cmds_GCJ='true'
19535      # FIXME: Should let the user specify the lib program.
19536      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
19537      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19538      enable_shared_with_static_runtimes_GCJ=yes
19539      ;;
19540
19541    darwin* | rhapsody*)
19542      case $host_os in
19543        rhapsody* | darwin1.[012])
19544         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19545         ;;
19546       *) # Darwin 1.3 on
19547         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19548           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19549         else
19550           case ${MACOSX_DEPLOYMENT_TARGET} in
19551             10.[012])
19552               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19553               ;;
19554             10.*)
19555               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19556               ;;
19557           esac
19558         fi
19559         ;;
19560      esac
19561      archive_cmds_need_lc_GCJ=no
19562      hardcode_direct_GCJ=no
19563      hardcode_automatic_GCJ=yes
19564      hardcode_shlibpath_var_GCJ=unsupported
19565      whole_archive_flag_spec_GCJ=''
19566      link_all_deplibs_GCJ=yes
19567    if test "$GCC" = yes ; then
19568    	output_verbose_link_cmd='echo'
19569        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19570      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19571      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19572      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19573      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19574    else
19575      case $cc_basename in
19576        xlc*)
19577         output_verbose_link_cmd='echo'
19578         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19579         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19580          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19581         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19582          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19583          ;;
19584       *)
19585         ld_shlibs_GCJ=no
19586          ;;
19587      esac
19588    fi
19589      ;;
19590
19591    dgux*)
19592      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19593      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19594      hardcode_shlibpath_var_GCJ=no
19595      ;;
19596
19597    freebsd1*)
19598      ld_shlibs_GCJ=no
19599      ;;
19600
19601    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19602    # support.  Future versions do this automatically, but an explicit c++rt0.o
19603    # does not break anything, and helps significantly (at the cost of a little
19604    # extra space).
19605    freebsd2.2*)
19606      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19607      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19608      hardcode_direct_GCJ=yes
19609      hardcode_shlibpath_var_GCJ=no
19610      ;;
19611
19612    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19613    freebsd2*)
19614      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19615      hardcode_direct_GCJ=yes
19616      hardcode_minus_L_GCJ=yes
19617      hardcode_shlibpath_var_GCJ=no
19618      ;;
19619
19620    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19621    freebsd* | dragonfly*)
19622      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19623      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19624      hardcode_direct_GCJ=yes
19625      hardcode_shlibpath_var_GCJ=no
19626      ;;
19627
19628    hpux9*)
19629      if test "$GCC" = yes; then
19630	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19631      else
19632	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19633      fi
19634      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19635      hardcode_libdir_separator_GCJ=:
19636      hardcode_direct_GCJ=yes
19637
19638      # hardcode_minus_L: Not really in the search PATH,
19639      # but as the default location of the library.
19640      hardcode_minus_L_GCJ=yes
19641      export_dynamic_flag_spec_GCJ='${wl}-E'
19642      ;;
19643
19644    hpux10*)
19645      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19646	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19647      else
19648	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19649      fi
19650      if test "$with_gnu_ld" = no; then
19651	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19652	hardcode_libdir_separator_GCJ=:
19653
19654	hardcode_direct_GCJ=yes
19655	export_dynamic_flag_spec_GCJ='${wl}-E'
19656
19657	# hardcode_minus_L: Not really in the search PATH,
19658	# but as the default location of the library.
19659	hardcode_minus_L_GCJ=yes
19660      fi
19661      ;;
19662
19663    hpux11*)
19664      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19665	case $host_cpu in
19666	hppa*64*)
19667	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19668	  ;;
19669	ia64*)
19670	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19671	  ;;
19672	*)
19673	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19674	  ;;
19675	esac
19676      else
19677	case $host_cpu in
19678	hppa*64*)
19679	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19680	  ;;
19681	ia64*)
19682	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19683	  ;;
19684	*)
19685	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19686	  ;;
19687	esac
19688      fi
19689      if test "$with_gnu_ld" = no; then
19690	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19691	hardcode_libdir_separator_GCJ=:
19692
19693	case $host_cpu in
19694	hppa*64*|ia64*)
19695	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19696	  hardcode_direct_GCJ=no
19697	  hardcode_shlibpath_var_GCJ=no
19698	  ;;
19699	*)
19700	  hardcode_direct_GCJ=yes
19701	  export_dynamic_flag_spec_GCJ='${wl}-E'
19702
19703	  # hardcode_minus_L: Not really in the search PATH,
19704	  # but as the default location of the library.
19705	  hardcode_minus_L_GCJ=yes
19706	  ;;
19707	esac
19708      fi
19709      ;;
19710
19711    irix5* | irix6* | nonstopux*)
19712      if test "$GCC" = yes; then
19713	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19714      else
19715	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19716	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19717      fi
19718      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19719      hardcode_libdir_separator_GCJ=:
19720      link_all_deplibs_GCJ=yes
19721      ;;
19722
19723    netbsd*)
19724      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19725	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19726      else
19727	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19728      fi
19729      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19730      hardcode_direct_GCJ=yes
19731      hardcode_shlibpath_var_GCJ=no
19732      ;;
19733
19734    newsos6)
19735      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19736      hardcode_direct_GCJ=yes
19737      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19738      hardcode_libdir_separator_GCJ=:
19739      hardcode_shlibpath_var_GCJ=no
19740      ;;
19741
19742    openbsd*)
19743      if test -f /usr/libexec/ld.so; then
19744	hardcode_direct_GCJ=yes
19745	hardcode_shlibpath_var_GCJ=no
19746	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19747	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19748	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19749	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19750	  export_dynamic_flag_spec_GCJ='${wl}-E'
19751	else
19752	  case $host_os in
19753	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19754	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19755	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
19756	     ;;
19757	   *)
19758	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19759	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19760	     ;;
19761	  esac
19762        fi
19763      else
19764	ld_shlibs_GCJ=no
19765      fi
19766      ;;
19767
19768    os2*)
19769      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19770      hardcode_minus_L_GCJ=yes
19771      allow_undefined_flag_GCJ=unsupported
19772      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19773      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19774      ;;
19775
19776    osf3*)
19777      if test "$GCC" = yes; then
19778	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19779	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19780      else
19781	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19782	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19783      fi
19784      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19785      hardcode_libdir_separator_GCJ=:
19786      ;;
19787
19788    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19789      if test "$GCC" = yes; then
19790	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19791	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19792	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19793      else
19794	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19795	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19796	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19797	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
19798
19799	# Both c and cxx compiler support -rpath directly
19800	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19801      fi
19802      hardcode_libdir_separator_GCJ=:
19803      ;;
19804
19805    solaris*)
19806      no_undefined_flag_GCJ=' -z text'
19807      if test "$GCC" = yes; then
19808	wlarc='${wl}'
19809	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19810	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19811	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19812      else
19813	wlarc=''
19814	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19815	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19816  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19817      fi
19818      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19819      hardcode_shlibpath_var_GCJ=no
19820      case $host_os in
19821      solaris2.[0-5] | solaris2.[0-5].*) ;;
19822      *)
19823	# The compiler driver will combine and reorder linker options,
19824	# but understands `-z linker_flag'.  GCC discards it without `$wl',
19825	# but is careful enough not to reorder.
19826 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19827	if test "$GCC" = yes; then
19828	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19829	else
19830	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
19831	fi
19832	;;
19833      esac
19834      link_all_deplibs_GCJ=yes
19835      ;;
19836
19837    sunos4*)
19838      if test "x$host_vendor" = xsequent; then
19839	# Use $CC to link under sequent, because it throws in some extra .o
19840	# files that make .init and .fini sections work.
19841	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19842      else
19843	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19844      fi
19845      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19846      hardcode_direct_GCJ=yes
19847      hardcode_minus_L_GCJ=yes
19848      hardcode_shlibpath_var_GCJ=no
19849      ;;
19850
19851    sysv4)
19852      case $host_vendor in
19853	sni)
19854	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19855	  hardcode_direct_GCJ=yes # is this really true???
19856	;;
19857	siemens)
19858	  ## LD is ld it makes a PLAMLIB
19859	  ## CC just makes a GrossModule.
19860	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19861	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19862	  hardcode_direct_GCJ=no
19863        ;;
19864	motorola)
19865	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19866	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19867	;;
19868      esac
19869      runpath_var='LD_RUN_PATH'
19870      hardcode_shlibpath_var_GCJ=no
19871      ;;
19872
19873    sysv4.3*)
19874      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19875      hardcode_shlibpath_var_GCJ=no
19876      export_dynamic_flag_spec_GCJ='-Bexport'
19877      ;;
19878
19879    sysv4*MP*)
19880      if test -d /usr/nec; then
19881	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19882	hardcode_shlibpath_var_GCJ=no
19883	runpath_var=LD_RUN_PATH
19884	hardcode_runpath_var=yes
19885	ld_shlibs_GCJ=yes
19886      fi
19887      ;;
19888
19889    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19890      no_undefined_flag_GCJ='${wl}-z,text'
19891      archive_cmds_need_lc_GCJ=no
19892      hardcode_shlibpath_var_GCJ=no
19893      runpath_var='LD_RUN_PATH'
19894
19895      if test "$GCC" = yes; then
19896	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19897	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19898      else
19899	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19900	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19901      fi
19902      ;;
19903
19904    sysv5* | sco3.2v5* | sco5v6*)
19905      # Note: We can NOT use -z defs as we might desire, because we do not
19906      # link with -lc, and that would cause any symbols used from libc to
19907      # always be unresolved, which means just about no library would
19908      # ever link correctly.  If we're not using GNU ld we use -z text
19909      # though, which does catch some bad symbols but isn't as heavy-handed
19910      # as -z defs.
19911      no_undefined_flag_GCJ='${wl}-z,text'
19912      allow_undefined_flag_GCJ='${wl}-z,nodefs'
19913      archive_cmds_need_lc_GCJ=no
19914      hardcode_shlibpath_var_GCJ=no
19915      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19916      hardcode_libdir_separator_GCJ=':'
19917      link_all_deplibs_GCJ=yes
19918      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19919      runpath_var='LD_RUN_PATH'
19920
19921      if test "$GCC" = yes; then
19922	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19923	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19924      else
19925	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19926	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19927      fi
19928      ;;
19929
19930    uts4*)
19931      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19932      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19933      hardcode_shlibpath_var_GCJ=no
19934      ;;
19935
19936    *)
19937      ld_shlibs_GCJ=no
19938      ;;
19939    esac
19940  fi
19941
19942{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19943$as_echo "$ld_shlibs_GCJ" >&6; }
19944test "$ld_shlibs_GCJ" = no && can_build_shared=no
19945
19946#
19947# Do we need to explicitly link libc?
19948#
19949case "x$archive_cmds_need_lc_GCJ" in
19950x|xyes)
19951  # Assume -lc should be added
19952  archive_cmds_need_lc_GCJ=yes
19953
19954  if test "$enable_shared" = yes && test "$GCC" = yes; then
19955    case $archive_cmds_GCJ in
19956    *'~'*)
19957      # FIXME: we may have to deal with multi-command sequences.
19958      ;;
19959    '$CC '*)
19960      # Test whether the compiler implicitly links with -lc since on some
19961      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19962      # to ld, don't add -lc before -lgcc.
19963      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19964$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19965      $rm conftest*
19966      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19967
19968      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19969  (eval $ac_compile) 2>&5
19970  ac_status=$?
19971  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972  (exit $ac_status); } 2>conftest.err; then
19973        soname=conftest
19974        lib=conftest
19975        libobjs=conftest.$ac_objext
19976        deplibs=
19977        wl=$lt_prog_compiler_wl_GCJ
19978	pic_flag=$lt_prog_compiler_pic_GCJ
19979        compiler_flags=-v
19980        linker_flags=-v
19981        verstring=
19982        output_objdir=.
19983        libname=conftest
19984        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19985        allow_undefined_flag_GCJ=
19986        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19987  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19988  ac_status=$?
19989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); }
19991        then
19992	  archive_cmds_need_lc_GCJ=no
19993        else
19994	  archive_cmds_need_lc_GCJ=yes
19995        fi
19996        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19997      else
19998        cat conftest.err 1>&5
19999      fi
20000      $rm conftest*
20001      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20002$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20003      ;;
20004    esac
20005  fi
20006  ;;
20007esac
20008
20009{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20010$as_echo_n "checking dynamic linker characteristics... " >&6; }
20011library_names_spec=
20012libname_spec='lib$name'
20013soname_spec=
20014shrext_cmds=".so"
20015postinstall_cmds=
20016postuninstall_cmds=
20017finish_cmds=
20018finish_eval=
20019shlibpath_var=
20020shlibpath_overrides_runpath=unknown
20021version_type=none
20022dynamic_linker="$host_os ld.so"
20023sys_lib_dlsearch_path_spec="/lib /usr/lib"
20024
20025need_lib_prefix=unknown
20026hardcode_into_libs=no
20027
20028# when you set need_version to no, make sure it does not cause -set_version
20029# flags to be left without arguments
20030need_version=unknown
20031
20032case $host_os in
20033aix3*)
20034  version_type=linux
20035  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20036  shlibpath_var=LIBPATH
20037
20038  # AIX 3 has no versioning support, so we append a major version to the name.
20039  soname_spec='${libname}${release}${shared_ext}$major'
20040  ;;
20041
20042aix4* | aix5*)
20043  version_type=linux
20044  need_lib_prefix=no
20045  need_version=no
20046  hardcode_into_libs=yes
20047  if test "$host_cpu" = ia64; then
20048    # AIX 5 supports IA64
20049    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20050    shlibpath_var=LD_LIBRARY_PATH
20051  else
20052    # With GCC up to 2.95.x, collect2 would create an import file
20053    # for dependence libraries.  The import file would start with
20054    # the line `#! .'.  This would cause the generated library to
20055    # depend on `.', always an invalid library.  This was fixed in
20056    # development snapshots of GCC prior to 3.0.
20057    case $host_os in
20058      aix4 | aix4.[01] | aix4.[01].*)
20059      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20060	   echo ' yes '
20061	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20062	:
20063      else
20064	can_build_shared=no
20065      fi
20066      ;;
20067    esac
20068    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20069    # soname into executable. Probably we can add versioning support to
20070    # collect2, so additional links can be useful in future.
20071    if test "$aix_use_runtimelinking" = yes; then
20072      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20073      # instead of lib<name>.a to let people know that these are not
20074      # typical AIX shared libraries.
20075      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20076    else
20077      # We preserve .a as extension for shared libraries through AIX4.2
20078      # and later when we are not doing run time linking.
20079      library_names_spec='${libname}${release}.a $libname.a'
20080      soname_spec='${libname}${release}${shared_ext}$major'
20081    fi
20082    shlibpath_var=LIBPATH
20083  fi
20084  ;;
20085
20086amigaos*)
20087  library_names_spec='$libname.ixlibrary $libname.a'
20088  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20089  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20090  ;;
20091
20092beos*)
20093  library_names_spec='${libname}${shared_ext}'
20094  dynamic_linker="$host_os ld.so"
20095  shlibpath_var=LIBRARY_PATH
20096  ;;
20097
20098bsdi[45]*)
20099  version_type=linux
20100  need_version=no
20101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20102  soname_spec='${libname}${release}${shared_ext}$major'
20103  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20104  shlibpath_var=LD_LIBRARY_PATH
20105  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20106  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20107  # the default ld.so.conf also contains /usr/contrib/lib and
20108  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20109  # libtool to hard-code these into programs
20110  ;;
20111
20112cygwin* | mingw* | pw32*)
20113  version_type=windows
20114  shrext_cmds=".dll"
20115  need_version=no
20116  need_lib_prefix=no
20117
20118  case $GCC,$host_os in
20119  yes,cygwin* | yes,mingw* | yes,pw32*)
20120    library_names_spec='$libname.dll.a'
20121    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20122    postinstall_cmds='base_file=`basename \${file}`~
20123      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20124      dldir=$destdir/`dirname \$dlpath`~
20125      test -d \$dldir || mkdir -p \$dldir~
20126      $install_prog $dir/$dlname \$dldir/$dlname~
20127      chmod a+x \$dldir/$dlname'
20128    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20129      dlpath=$dir/\$dldll~
20130       $rm \$dlpath'
20131    shlibpath_overrides_runpath=yes
20132
20133    case $host_os in
20134    cygwin*)
20135      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20136      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20137      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20138      ;;
20139    mingw*)
20140      # MinGW DLLs use traditional 'lib' prefix
20141      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20142      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20143      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20144        # It is most probably a Windows format PATH printed by
20145        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20146        # path with ; separators, and with drive letters. We can handle the
20147        # drive letters (cygwin fileutils understands them), so leave them,
20148        # especially as we might pass files found there to a mingw objdump,
20149        # which wouldn't understand a cygwinified path. Ahh.
20150        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20151      else
20152        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20153      fi
20154      ;;
20155    pw32*)
20156      # pw32 DLLs use 'pw' prefix rather than 'lib'
20157      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20158      ;;
20159    esac
20160    ;;
20161
20162  *)
20163    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20164    ;;
20165  esac
20166  dynamic_linker='Win32 ld.exe'
20167  # FIXME: first we should search . and the directory the executable is in
20168  shlibpath_var=PATH
20169  ;;
20170
20171darwin* | rhapsody*)
20172  dynamic_linker="$host_os dyld"
20173  version_type=darwin
20174  need_lib_prefix=no
20175  need_version=no
20176  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20177  soname_spec='${libname}${release}${major}$shared_ext'
20178  shlibpath_overrides_runpath=yes
20179  shlibpath_var=DYLD_LIBRARY_PATH
20180  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20181
20182  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20183  ;;
20184
20185dgux*)
20186  version_type=linux
20187  need_lib_prefix=no
20188  need_version=no
20189  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20190  soname_spec='${libname}${release}${shared_ext}$major'
20191  shlibpath_var=LD_LIBRARY_PATH
20192  ;;
20193
20194freebsd1*)
20195  dynamic_linker=no
20196  ;;
20197
20198freebsd* | dragonfly*)
20199  # DragonFly does not have aout.  When/if they implement a new
20200  # versioning mechanism, adjust this.
20201  if test -x /usr/bin/objformat; then
20202    objformat=`/usr/bin/objformat`
20203  else
20204    case $host_os in
20205    freebsd[123]*) objformat=aout ;;
20206    *) objformat=elf ;;
20207    esac
20208  fi
20209  version_type=freebsd-$objformat
20210  case $version_type in
20211    freebsd-elf*)
20212      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20213      need_version=no
20214      need_lib_prefix=no
20215      ;;
20216    freebsd-*)
20217      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20218      need_version=yes
20219      ;;
20220  esac
20221  shlibpath_var=LD_LIBRARY_PATH
20222  case $host_os in
20223  freebsd2*)
20224    shlibpath_overrides_runpath=yes
20225    ;;
20226  freebsd3.[01]* | freebsdelf3.[01]*)
20227    shlibpath_overrides_runpath=yes
20228    hardcode_into_libs=yes
20229    ;;
20230  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20231  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20232    shlibpath_overrides_runpath=no
20233    hardcode_into_libs=yes
20234    ;;
20235  *) # from 4.6 on, and DragonFly
20236    shlibpath_overrides_runpath=yes
20237    hardcode_into_libs=yes
20238    ;;
20239  esac
20240  ;;
20241
20242gnu*)
20243  version_type=linux
20244  need_lib_prefix=no
20245  need_version=no
20246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20247  soname_spec='${libname}${release}${shared_ext}$major'
20248  shlibpath_var=LD_LIBRARY_PATH
20249  hardcode_into_libs=yes
20250  ;;
20251
20252hpux9* | hpux10* | hpux11*)
20253  # Give a soname corresponding to the major version so that dld.sl refuses to
20254  # link against other versions.
20255  version_type=sunos
20256  need_lib_prefix=no
20257  need_version=no
20258  case $host_cpu in
20259  ia64*)
20260    shrext_cmds='.so'
20261    hardcode_into_libs=yes
20262    dynamic_linker="$host_os dld.so"
20263    shlibpath_var=LD_LIBRARY_PATH
20264    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20265    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266    soname_spec='${libname}${release}${shared_ext}$major'
20267    if test "X$HPUX_IA64_MODE" = X32; then
20268      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20269    else
20270      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20271    fi
20272    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20273    ;;
20274   hppa*64*)
20275     shrext_cmds='.sl'
20276     hardcode_into_libs=yes
20277     dynamic_linker="$host_os dld.sl"
20278     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20279     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20281     soname_spec='${libname}${release}${shared_ext}$major'
20282     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20283     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20284     ;;
20285   *)
20286    shrext_cmds='.sl'
20287    dynamic_linker="$host_os dld.sl"
20288    shlibpath_var=SHLIB_PATH
20289    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20290    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20291    soname_spec='${libname}${release}${shared_ext}$major'
20292    ;;
20293  esac
20294  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20295  postinstall_cmds='chmod 555 $lib'
20296  ;;
20297
20298interix[3-9]*)
20299  version_type=linux
20300  need_lib_prefix=no
20301  need_version=no
20302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20303  soname_spec='${libname}${release}${shared_ext}$major'
20304  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20305  shlibpath_var=LD_LIBRARY_PATH
20306  shlibpath_overrides_runpath=no
20307  hardcode_into_libs=yes
20308  ;;
20309
20310irix5* | irix6* | nonstopux*)
20311  case $host_os in
20312    nonstopux*) version_type=nonstopux ;;
20313    *)
20314	if test "$lt_cv_prog_gnu_ld" = yes; then
20315		version_type=linux
20316	else
20317		version_type=irix
20318	fi ;;
20319  esac
20320  need_lib_prefix=no
20321  need_version=no
20322  soname_spec='${libname}${release}${shared_ext}$major'
20323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20324  case $host_os in
20325  irix5* | nonstopux*)
20326    libsuff= shlibsuff=
20327    ;;
20328  *)
20329    case $LD in # libtool.m4 will add one of these switches to LD
20330    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20331      libsuff= shlibsuff= libmagic=32-bit;;
20332    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20333      libsuff=32 shlibsuff=N32 libmagic=N32;;
20334    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20335      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20336    *) libsuff= shlibsuff= libmagic=never-match;;
20337    esac
20338    ;;
20339  esac
20340  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20341  shlibpath_overrides_runpath=no
20342  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20343  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20344  hardcode_into_libs=yes
20345  ;;
20346
20347# No shared lib support for Linux oldld, aout, or coff.
20348linux*oldld* | linux*aout* | linux*coff*)
20349  dynamic_linker=no
20350  ;;
20351
20352# This must be Linux ELF.
20353linux* | k*bsd*-gnu)
20354  version_type=linux
20355  need_lib_prefix=no
20356  need_version=no
20357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20358  soname_spec='${libname}${release}${shared_ext}$major'
20359  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20360  shlibpath_var=LD_LIBRARY_PATH
20361  shlibpath_overrides_runpath=no
20362  # This implies no fast_install, which is unacceptable.
20363  # Some rework will be needed to allow for fast_install
20364  # before this can be enabled.
20365  hardcode_into_libs=yes
20366
20367  # Append ld.so.conf contents to the search path
20368  if test -f /etc/ld.so.conf; then
20369    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
20370    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20371  fi
20372
20373  # We used to test for /lib/ld.so.1 and disable shared libraries on
20374  # powerpc, because MkLinux only supported shared libraries with the
20375  # GNU dynamic linker.  Since this was broken with cross compilers,
20376  # most powerpc-linux boxes support dynamic linking these days and
20377  # people can always --disable-shared, the test was removed, and we
20378  # assume the GNU/Linux dynamic linker is in use.
20379  dynamic_linker='GNU/Linux ld.so'
20380  ;;
20381
20382netbsd*)
20383  version_type=sunos
20384  need_lib_prefix=no
20385  need_version=no
20386  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20387    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20388    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20389    dynamic_linker='NetBSD (a.out) ld.so'
20390  else
20391    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20392    soname_spec='${libname}${release}${shared_ext}$major'
20393    dynamic_linker='NetBSD ld.elf_so'
20394  fi
20395  shlibpath_var=LD_LIBRARY_PATH
20396  shlibpath_overrides_runpath=yes
20397  hardcode_into_libs=yes
20398  ;;
20399
20400newsos6)
20401  version_type=linux
20402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20403  shlibpath_var=LD_LIBRARY_PATH
20404  shlibpath_overrides_runpath=yes
20405  ;;
20406
20407nto-qnx*)
20408  version_type=linux
20409  need_lib_prefix=no
20410  need_version=no
20411  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20412  soname_spec='${libname}${release}${shared_ext}$major'
20413  shlibpath_var=LD_LIBRARY_PATH
20414  shlibpath_overrides_runpath=yes
20415  ;;
20416
20417openbsd*)
20418  version_type=sunos
20419  sys_lib_dlsearch_path_spec="/usr/lib"
20420  need_lib_prefix=no
20421  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20422  case $host_os in
20423    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20424    *)                         need_version=no  ;;
20425  esac
20426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20427  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20428  shlibpath_var=LD_LIBRARY_PATH
20429  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20430    case $host_os in
20431      openbsd2.[89] | openbsd2.[89].*)
20432	shlibpath_overrides_runpath=no
20433	;;
20434      *)
20435	shlibpath_overrides_runpath=yes
20436	;;
20437      esac
20438  else
20439    shlibpath_overrides_runpath=yes
20440  fi
20441  ;;
20442
20443os2*)
20444  libname_spec='$name'
20445  shrext_cmds=".dll"
20446  need_lib_prefix=no
20447  library_names_spec='$libname${shared_ext} $libname.a'
20448  dynamic_linker='OS/2 ld.exe'
20449  shlibpath_var=LIBPATH
20450  ;;
20451
20452osf3* | osf4* | osf5*)
20453  version_type=osf
20454  need_lib_prefix=no
20455  need_version=no
20456  soname_spec='${libname}${release}${shared_ext}$major'
20457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20458  shlibpath_var=LD_LIBRARY_PATH
20459  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20460  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20461  ;;
20462
20463rdos*)
20464  dynamic_linker=no
20465  ;;
20466
20467solaris*)
20468  version_type=linux
20469  need_lib_prefix=no
20470  need_version=no
20471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472  soname_spec='${libname}${release}${shared_ext}$major'
20473  shlibpath_var=LD_LIBRARY_PATH
20474  shlibpath_overrides_runpath=yes
20475  hardcode_into_libs=yes
20476  # ldd complains unless libraries are executable
20477  postinstall_cmds='chmod +x $lib'
20478  ;;
20479
20480sunos4*)
20481  version_type=sunos
20482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20483  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20484  shlibpath_var=LD_LIBRARY_PATH
20485  shlibpath_overrides_runpath=yes
20486  if test "$with_gnu_ld" = yes; then
20487    need_lib_prefix=no
20488  fi
20489  need_version=yes
20490  ;;
20491
20492sysv4 | sysv4.3*)
20493  version_type=linux
20494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20495  soname_spec='${libname}${release}${shared_ext}$major'
20496  shlibpath_var=LD_LIBRARY_PATH
20497  case $host_vendor in
20498    sni)
20499      shlibpath_overrides_runpath=no
20500      need_lib_prefix=no
20501      export_dynamic_flag_spec='${wl}-Blargedynsym'
20502      runpath_var=LD_RUN_PATH
20503      ;;
20504    siemens)
20505      need_lib_prefix=no
20506      ;;
20507    motorola)
20508      need_lib_prefix=no
20509      need_version=no
20510      shlibpath_overrides_runpath=no
20511      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20512      ;;
20513  esac
20514  ;;
20515
20516sysv4*MP*)
20517  if test -d /usr/nec ;then
20518    version_type=linux
20519    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20520    soname_spec='$libname${shared_ext}.$major'
20521    shlibpath_var=LD_LIBRARY_PATH
20522  fi
20523  ;;
20524
20525sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20526  version_type=freebsd-elf
20527  need_lib_prefix=no
20528  need_version=no
20529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20530  soname_spec='${libname}${release}${shared_ext}$major'
20531  shlibpath_var=LD_LIBRARY_PATH
20532  hardcode_into_libs=yes
20533  if test "$with_gnu_ld" = yes; then
20534    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20535    shlibpath_overrides_runpath=no
20536  else
20537    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20538    shlibpath_overrides_runpath=yes
20539    case $host_os in
20540      sco3.2v5*)
20541        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20542	;;
20543    esac
20544  fi
20545  sys_lib_dlsearch_path_spec='/usr/lib'
20546  ;;
20547
20548uts4*)
20549  version_type=linux
20550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20551  soname_spec='${libname}${release}${shared_ext}$major'
20552  shlibpath_var=LD_LIBRARY_PATH
20553  ;;
20554
20555*)
20556  dynamic_linker=no
20557  ;;
20558esac
20559{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20560$as_echo "$dynamic_linker" >&6; }
20561test "$dynamic_linker" = no && can_build_shared=no
20562
20563variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20564if test "$GCC" = yes; then
20565  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20566fi
20567
20568{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20569$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20570hardcode_action_GCJ=
20571if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20572   test -n "$runpath_var_GCJ" || \
20573   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20574
20575  # We can hardcode non-existant directories.
20576  if test "$hardcode_direct_GCJ" != no &&
20577     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20578     # have to relink, otherwise we might link with an installed library
20579     # when we should be linking with a yet-to-be-installed one
20580     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20581     test "$hardcode_minus_L_GCJ" != no; then
20582    # Linking always hardcodes the temporary library directory.
20583    hardcode_action_GCJ=relink
20584  else
20585    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20586    hardcode_action_GCJ=immediate
20587  fi
20588else
20589  # We cannot hardcode anything, or else we can only hardcode existing
20590  # directories.
20591  hardcode_action_GCJ=unsupported
20592fi
20593{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20594$as_echo "$hardcode_action_GCJ" >&6; }
20595
20596if test "$hardcode_action_GCJ" = relink; then
20597  # Fast installation is not supported
20598  enable_fast_install=no
20599elif test "$shlibpath_overrides_runpath" = yes ||
20600     test "$enable_shared" = no; then
20601  # Fast installation is not necessary
20602  enable_fast_install=needless
20603fi
20604
20605
20606# The else clause should only fire when bootstrapping the
20607# libtool distribution, otherwise you forgot to ship ltmain.sh
20608# with your package, and you will get complaints that there are
20609# no rules to generate ltmain.sh.
20610if test -f "$ltmain"; then
20611  # See if we are running on zsh, and set the options which allow our commands through
20612  # without removal of \ escapes.
20613  if test -n "${ZSH_VERSION+set}" ; then
20614    setopt NO_GLOB_SUBST
20615  fi
20616  # Now quote all the things that may contain metacharacters while being
20617  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20618  # variables and quote the copies for generation of the libtool script.
20619  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20620    SED SHELL STRIP \
20621    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20622    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20623    deplibs_check_method reload_flag reload_cmds need_locks \
20624    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20625    lt_cv_sys_global_symbol_to_c_name_address \
20626    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20627    old_postinstall_cmds old_postuninstall_cmds \
20628    compiler_GCJ \
20629    CC_GCJ \
20630    LD_GCJ \
20631    lt_prog_compiler_wl_GCJ \
20632    lt_prog_compiler_pic_GCJ \
20633    lt_prog_compiler_static_GCJ \
20634    lt_prog_compiler_no_builtin_flag_GCJ \
20635    export_dynamic_flag_spec_GCJ \
20636    thread_safe_flag_spec_GCJ \
20637    whole_archive_flag_spec_GCJ \
20638    enable_shared_with_static_runtimes_GCJ \
20639    old_archive_cmds_GCJ \
20640    old_archive_from_new_cmds_GCJ \
20641    predep_objects_GCJ \
20642    postdep_objects_GCJ \
20643    predeps_GCJ \
20644    postdeps_GCJ \
20645    compiler_lib_search_path_GCJ \
20646    archive_cmds_GCJ \
20647    archive_expsym_cmds_GCJ \
20648    postinstall_cmds_GCJ \
20649    postuninstall_cmds_GCJ \
20650    old_archive_from_expsyms_cmds_GCJ \
20651    allow_undefined_flag_GCJ \
20652    no_undefined_flag_GCJ \
20653    export_symbols_cmds_GCJ \
20654    hardcode_libdir_flag_spec_GCJ \
20655    hardcode_libdir_flag_spec_ld_GCJ \
20656    hardcode_libdir_separator_GCJ \
20657    hardcode_automatic_GCJ \
20658    module_cmds_GCJ \
20659    module_expsym_cmds_GCJ \
20660    lt_cv_prog_compiler_c_o_GCJ \
20661    fix_srcfile_path_GCJ \
20662    exclude_expsyms_GCJ \
20663    include_expsyms_GCJ; do
20664
20665    case $var in
20666    old_archive_cmds_GCJ | \
20667    old_archive_from_new_cmds_GCJ | \
20668    archive_cmds_GCJ | \
20669    archive_expsym_cmds_GCJ | \
20670    module_cmds_GCJ | \
20671    module_expsym_cmds_GCJ | \
20672    old_archive_from_expsyms_cmds_GCJ | \
20673    export_symbols_cmds_GCJ | \
20674    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20675    postinstall_cmds | postuninstall_cmds | \
20676    old_postinstall_cmds | old_postuninstall_cmds | \
20677    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20678      # Double-quote double-evaled strings.
20679      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20680      ;;
20681    *)
20682      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20683      ;;
20684    esac
20685  done
20686
20687  case $lt_echo in
20688  *'\$0 --fallback-echo"')
20689    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20690    ;;
20691  esac
20692
20693cfgfile="$ofile"
20694
20695  cat <<__EOF__ >> "$cfgfile"
20696# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20697
20698# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20699
20700# Shell to use when invoking shell scripts.
20701SHELL=$lt_SHELL
20702
20703# Whether or not to build shared libraries.
20704build_libtool_libs=$enable_shared
20705
20706# Whether or not to build static libraries.
20707build_old_libs=$enable_static
20708
20709# Whether or not to add -lc for building shared libraries.
20710build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20711
20712# Whether or not to disallow shared libs when runtime libs are static
20713allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20714
20715# Whether or not to optimize for fast installation.
20716fast_install=$enable_fast_install
20717
20718# The host system.
20719host_alias=$host_alias
20720host=$host
20721host_os=$host_os
20722
20723# The build system.
20724build_alias=$build_alias
20725build=$build
20726build_os=$build_os
20727
20728# An echo program that does not interpret backslashes.
20729echo=$lt_echo
20730
20731# The archiver.
20732AR=$lt_AR
20733AR_FLAGS=$lt_AR_FLAGS
20734
20735# A C compiler.
20736LTCC=$lt_LTCC
20737
20738# LTCC compiler flags.
20739LTCFLAGS=$lt_LTCFLAGS
20740
20741# A language-specific compiler.
20742CC=$lt_compiler_GCJ
20743
20744# Is the compiler the GNU C compiler?
20745with_gcc=$GCC_GCJ
20746
20747# An ERE matcher.
20748EGREP=$lt_EGREP
20749
20750# The linker used to build libraries.
20751LD=$lt_LD_GCJ
20752
20753# Whether we need hard or soft links.
20754LN_S=$lt_LN_S
20755
20756# A BSD-compatible nm program.
20757NM=$lt_NM
20758
20759# A symbol stripping program
20760STRIP=$lt_STRIP
20761
20762# Used to examine libraries when file_magic_cmd begins "file"
20763MAGIC_CMD=$MAGIC_CMD
20764
20765# Used on cygwin: DLL creation program.
20766DLLTOOL="$DLLTOOL"
20767
20768# Used on cygwin: object dumper.
20769OBJDUMP="$OBJDUMP"
20770
20771# Used on cygwin: assembler.
20772AS="$AS"
20773
20774# The name of the directory that contains temporary libtool files.
20775objdir=$objdir
20776
20777# How to create reloadable object files.
20778reload_flag=$lt_reload_flag
20779reload_cmds=$lt_reload_cmds
20780
20781# How to pass a linker flag through the compiler.
20782wl=$lt_lt_prog_compiler_wl_GCJ
20783
20784# Object file suffix (normally "o").
20785objext="$ac_objext"
20786
20787# Old archive suffix (normally "a").
20788libext="$libext"
20789
20790# Shared library suffix (normally ".so").
20791shrext_cmds='$shrext_cmds'
20792
20793# Executable file suffix (normally "").
20794exeext="$exeext"
20795
20796# Additional compiler flags for building library objects.
20797pic_flag=$lt_lt_prog_compiler_pic_GCJ
20798pic_mode=$pic_mode
20799
20800# What is the maximum length of a command?
20801max_cmd_len=$lt_cv_sys_max_cmd_len
20802
20803# Does compiler simultaneously support -c and -o options?
20804compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20805
20806# Must we lock files when doing compilation?
20807need_locks=$lt_need_locks
20808
20809# Do we need the lib prefix for modules?
20810need_lib_prefix=$need_lib_prefix
20811
20812# Do we need a version for libraries?
20813need_version=$need_version
20814
20815# Whether dlopen is supported.
20816dlopen_support=$enable_dlopen
20817
20818# Whether dlopen of programs is supported.
20819dlopen_self=$enable_dlopen_self
20820
20821# Whether dlopen of statically linked programs is supported.
20822dlopen_self_static=$enable_dlopen_self_static
20823
20824# Compiler flag to prevent dynamic linking.
20825link_static_flag=$lt_lt_prog_compiler_static_GCJ
20826
20827# Compiler flag to turn off builtin functions.
20828no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20829
20830# Compiler flag to allow reflexive dlopens.
20831export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20832
20833# Compiler flag to generate shared objects directly from archives.
20834whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20835
20836# Compiler flag to generate thread-safe objects.
20837thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20838
20839# Library versioning type.
20840version_type=$version_type
20841
20842# Format of library name prefix.
20843libname_spec=$lt_libname_spec
20844
20845# List of archive names.  First name is the real one, the rest are links.
20846# The last name is the one that the linker finds with -lNAME.
20847library_names_spec=$lt_library_names_spec
20848
20849# The coded name of the library, if different from the real name.
20850soname_spec=$lt_soname_spec
20851
20852# Commands used to build and install an old-style archive.
20853RANLIB=$lt_RANLIB
20854old_archive_cmds=$lt_old_archive_cmds_GCJ
20855old_postinstall_cmds=$lt_old_postinstall_cmds
20856old_postuninstall_cmds=$lt_old_postuninstall_cmds
20857
20858# Create an old-style archive from a shared archive.
20859old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20860
20861# Create a temporary old-style archive to link instead of a shared archive.
20862old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20863
20864# Commands used to build and install a shared archive.
20865archive_cmds=$lt_archive_cmds_GCJ
20866archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20867postinstall_cmds=$lt_postinstall_cmds
20868postuninstall_cmds=$lt_postuninstall_cmds
20869
20870# Commands used to build a loadable module (assumed same as above if empty)
20871module_cmds=$lt_module_cmds_GCJ
20872module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20873
20874# Commands to strip libraries.
20875old_striplib=$lt_old_striplib
20876striplib=$lt_striplib
20877
20878# Dependencies to place before the objects being linked to create a
20879# shared library.
20880predep_objects=$lt_predep_objects_GCJ
20881
20882# Dependencies to place after the objects being linked to create a
20883# shared library.
20884postdep_objects=$lt_postdep_objects_GCJ
20885
20886# Dependencies to place before the objects being linked to create a
20887# shared library.
20888predeps=$lt_predeps_GCJ
20889
20890# Dependencies to place after the objects being linked to create a
20891# shared library.
20892postdeps=$lt_postdeps_GCJ
20893
20894# The library search path used internally by the compiler when linking
20895# a shared library.
20896compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20897
20898# Method to check whether dependent libraries are shared objects.
20899deplibs_check_method=$lt_deplibs_check_method
20900
20901# Command to use when deplibs_check_method == file_magic.
20902file_magic_cmd=$lt_file_magic_cmd
20903
20904# Flag that allows shared libraries with undefined symbols to be built.
20905allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20906
20907# Flag that forces no undefined symbols.
20908no_undefined_flag=$lt_no_undefined_flag_GCJ
20909
20910# Commands used to finish a libtool library installation in a directory.
20911finish_cmds=$lt_finish_cmds
20912
20913# Same as above, but a single script fragment to be evaled but not shown.
20914finish_eval=$lt_finish_eval
20915
20916# Take the output of nm and produce a listing of raw symbols and C names.
20917global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20918
20919# Transform the output of nm in a proper C declaration
20920global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20921
20922# Transform the output of nm in a C name address pair
20923global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20924
20925# This is the shared library runtime path variable.
20926runpath_var=$runpath_var
20927
20928# This is the shared library path variable.
20929shlibpath_var=$shlibpath_var
20930
20931# Is shlibpath searched before the hard-coded library search path?
20932shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20933
20934# How to hardcode a shared library path into an executable.
20935hardcode_action=$hardcode_action_GCJ
20936
20937# Whether we should hardcode library paths into libraries.
20938hardcode_into_libs=$hardcode_into_libs
20939
20940# Flag to hardcode \$libdir into a binary during linking.
20941# This must work even if \$libdir does not exist.
20942hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20943
20944# If ld is used when linking, flag to hardcode \$libdir into
20945# a binary during linking. This must work even if \$libdir does
20946# not exist.
20947hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20948
20949# Whether we need a single -rpath flag with a separated argument.
20950hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20951
20952# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20953# resulting binary.
20954hardcode_direct=$hardcode_direct_GCJ
20955
20956# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20957# resulting binary.
20958hardcode_minus_L=$hardcode_minus_L_GCJ
20959
20960# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20961# the resulting binary.
20962hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20963
20964# Set to yes if building a shared library automatically hardcodes DIR into the library
20965# and all subsequent libraries and executables linked against it.
20966hardcode_automatic=$hardcode_automatic_GCJ
20967
20968# Variables whose values should be saved in libtool wrapper scripts and
20969# restored at relink time.
20970variables_saved_for_relink="$variables_saved_for_relink"
20971
20972# Whether libtool must link a program against all its dependency libraries.
20973link_all_deplibs=$link_all_deplibs_GCJ
20974
20975# Compile-time system search path for libraries
20976sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20977
20978# Run-time system search path for libraries
20979sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20980
20981# Fix the shell variable \$srcfile for the compiler.
20982fix_srcfile_path=$lt_fix_srcfile_path
20983
20984# Set to yes if exported symbols are required.
20985always_export_symbols=$always_export_symbols_GCJ
20986
20987# The commands to list exported symbols.
20988export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20989
20990# The commands to extract the exported symbol list from a shared archive.
20991extract_expsyms_cmds=$lt_extract_expsyms_cmds
20992
20993# Symbols that should not be listed in the preloaded symbols.
20994exclude_expsyms=$lt_exclude_expsyms_GCJ
20995
20996# Symbols that must always be exported.
20997include_expsyms=$lt_include_expsyms_GCJ
20998
20999# ### END LIBTOOL TAG CONFIG: $tagname
21000
21001__EOF__
21002
21003
21004else
21005  # If there is no Makefile yet, we rely on a make rule to execute
21006  # `config.status --recheck' to rerun these tests and create the
21007  # libtool script then.
21008  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21009  if test -f "$ltmain_in"; then
21010    test -f Makefile && make "$ltmain"
21011  fi
21012fi
21013
21014
21015ac_ext=c
21016ac_cpp='$CPP $CPPFLAGS'
21017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21019ac_compiler_gnu=$ac_cv_c_compiler_gnu
21020
21021CC="$lt_save_CC"
21022
21023	else
21024	  tagname=""
21025	fi
21026	;;
21027
21028      RC)
21029
21030
21031# Source file extension for RC test sources.
21032ac_ext=rc
21033
21034# Object file extension for compiled RC test sources.
21035objext=o
21036objext_RC=$objext
21037
21038# Code to be used in simple compile tests
21039lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
21040
21041# Code to be used in simple link tests
21042lt_simple_link_test_code="$lt_simple_compile_test_code"
21043
21044# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21045
21046# If no C compiler was specified, use CC.
21047LTCC=${LTCC-"$CC"}
21048
21049# If no C compiler flags were specified, use CFLAGS.
21050LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21051
21052# Allow CC to be a program name with arguments.
21053compiler=$CC
21054
21055
21056# save warnings/boilerplate of simple test code
21057ac_outfile=conftest.$ac_objext
21058echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21059eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21060_lt_compiler_boilerplate=`cat conftest.err`
21061$rm conftest*
21062
21063ac_outfile=conftest.$ac_objext
21064echo "$lt_simple_link_test_code" >conftest.$ac_ext
21065eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21066_lt_linker_boilerplate=`cat conftest.err`
21067$rm conftest*
21068
21069
21070# Allow CC to be a program name with arguments.
21071lt_save_CC="$CC"
21072CC=${RC-"windres"}
21073compiler=$CC
21074compiler_RC=$CC
21075for cc_temp in $compiler""; do
21076  case $cc_temp in
21077    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21078    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21079    \-*) ;;
21080    *) break;;
21081  esac
21082done
21083cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21084
21085lt_cv_prog_compiler_c_o_RC=yes
21086
21087# The else clause should only fire when bootstrapping the
21088# libtool distribution, otherwise you forgot to ship ltmain.sh
21089# with your package, and you will get complaints that there are
21090# no rules to generate ltmain.sh.
21091if test -f "$ltmain"; then
21092  # See if we are running on zsh, and set the options which allow our commands through
21093  # without removal of \ escapes.
21094  if test -n "${ZSH_VERSION+set}" ; then
21095    setopt NO_GLOB_SUBST
21096  fi
21097  # Now quote all the things that may contain metacharacters while being
21098  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21099  # variables and quote the copies for generation of the libtool script.
21100  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21101    SED SHELL STRIP \
21102    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21103    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21104    deplibs_check_method reload_flag reload_cmds need_locks \
21105    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21106    lt_cv_sys_global_symbol_to_c_name_address \
21107    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21108    old_postinstall_cmds old_postuninstall_cmds \
21109    compiler_RC \
21110    CC_RC \
21111    LD_RC \
21112    lt_prog_compiler_wl_RC \
21113    lt_prog_compiler_pic_RC \
21114    lt_prog_compiler_static_RC \
21115    lt_prog_compiler_no_builtin_flag_RC \
21116    export_dynamic_flag_spec_RC \
21117    thread_safe_flag_spec_RC \
21118    whole_archive_flag_spec_RC \
21119    enable_shared_with_static_runtimes_RC \
21120    old_archive_cmds_RC \
21121    old_archive_from_new_cmds_RC \
21122    predep_objects_RC \
21123    postdep_objects_RC \
21124    predeps_RC \
21125    postdeps_RC \
21126    compiler_lib_search_path_RC \
21127    archive_cmds_RC \
21128    archive_expsym_cmds_RC \
21129    postinstall_cmds_RC \
21130    postuninstall_cmds_RC \
21131    old_archive_from_expsyms_cmds_RC \
21132    allow_undefined_flag_RC \
21133    no_undefined_flag_RC \
21134    export_symbols_cmds_RC \
21135    hardcode_libdir_flag_spec_RC \
21136    hardcode_libdir_flag_spec_ld_RC \
21137    hardcode_libdir_separator_RC \
21138    hardcode_automatic_RC \
21139    module_cmds_RC \
21140    module_expsym_cmds_RC \
21141    lt_cv_prog_compiler_c_o_RC \
21142    fix_srcfile_path_RC \
21143    exclude_expsyms_RC \
21144    include_expsyms_RC; do
21145
21146    case $var in
21147    old_archive_cmds_RC | \
21148    old_archive_from_new_cmds_RC | \
21149    archive_cmds_RC | \
21150    archive_expsym_cmds_RC | \
21151    module_cmds_RC | \
21152    module_expsym_cmds_RC | \
21153    old_archive_from_expsyms_cmds_RC | \
21154    export_symbols_cmds_RC | \
21155    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21156    postinstall_cmds | postuninstall_cmds | \
21157    old_postinstall_cmds | old_postuninstall_cmds | \
21158    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21159      # Double-quote double-evaled strings.
21160      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21161      ;;
21162    *)
21163      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21164      ;;
21165    esac
21166  done
21167
21168  case $lt_echo in
21169  *'\$0 --fallback-echo"')
21170    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21171    ;;
21172  esac
21173
21174cfgfile="$ofile"
21175
21176  cat <<__EOF__ >> "$cfgfile"
21177# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21178
21179# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21180
21181# Shell to use when invoking shell scripts.
21182SHELL=$lt_SHELL
21183
21184# Whether or not to build shared libraries.
21185build_libtool_libs=$enable_shared
21186
21187# Whether or not to build static libraries.
21188build_old_libs=$enable_static
21189
21190# Whether or not to add -lc for building shared libraries.
21191build_libtool_need_lc=$archive_cmds_need_lc_RC
21192
21193# Whether or not to disallow shared libs when runtime libs are static
21194allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21195
21196# Whether or not to optimize for fast installation.
21197fast_install=$enable_fast_install
21198
21199# The host system.
21200host_alias=$host_alias
21201host=$host
21202host_os=$host_os
21203
21204# The build system.
21205build_alias=$build_alias
21206build=$build
21207build_os=$build_os
21208
21209# An echo program that does not interpret backslashes.
21210echo=$lt_echo
21211
21212# The archiver.
21213AR=$lt_AR
21214AR_FLAGS=$lt_AR_FLAGS
21215
21216# A C compiler.
21217LTCC=$lt_LTCC
21218
21219# LTCC compiler flags.
21220LTCFLAGS=$lt_LTCFLAGS
21221
21222# A language-specific compiler.
21223CC=$lt_compiler_RC
21224
21225# Is the compiler the GNU C compiler?
21226with_gcc=$GCC_RC
21227
21228# An ERE matcher.
21229EGREP=$lt_EGREP
21230
21231# The linker used to build libraries.
21232LD=$lt_LD_RC
21233
21234# Whether we need hard or soft links.
21235LN_S=$lt_LN_S
21236
21237# A BSD-compatible nm program.
21238NM=$lt_NM
21239
21240# A symbol stripping program
21241STRIP=$lt_STRIP
21242
21243# Used to examine libraries when file_magic_cmd begins "file"
21244MAGIC_CMD=$MAGIC_CMD
21245
21246# Used on cygwin: DLL creation program.
21247DLLTOOL="$DLLTOOL"
21248
21249# Used on cygwin: object dumper.
21250OBJDUMP="$OBJDUMP"
21251
21252# Used on cygwin: assembler.
21253AS="$AS"
21254
21255# The name of the directory that contains temporary libtool files.
21256objdir=$objdir
21257
21258# How to create reloadable object files.
21259reload_flag=$lt_reload_flag
21260reload_cmds=$lt_reload_cmds
21261
21262# How to pass a linker flag through the compiler.
21263wl=$lt_lt_prog_compiler_wl_RC
21264
21265# Object file suffix (normally "o").
21266objext="$ac_objext"
21267
21268# Old archive suffix (normally "a").
21269libext="$libext"
21270
21271# Shared library suffix (normally ".so").
21272shrext_cmds='$shrext_cmds'
21273
21274# Executable file suffix (normally "").
21275exeext="$exeext"
21276
21277# Additional compiler flags for building library objects.
21278pic_flag=$lt_lt_prog_compiler_pic_RC
21279pic_mode=$pic_mode
21280
21281# What is the maximum length of a command?
21282max_cmd_len=$lt_cv_sys_max_cmd_len
21283
21284# Does compiler simultaneously support -c and -o options?
21285compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21286
21287# Must we lock files when doing compilation?
21288need_locks=$lt_need_locks
21289
21290# Do we need the lib prefix for modules?
21291need_lib_prefix=$need_lib_prefix
21292
21293# Do we need a version for libraries?
21294need_version=$need_version
21295
21296# Whether dlopen is supported.
21297dlopen_support=$enable_dlopen
21298
21299# Whether dlopen of programs is supported.
21300dlopen_self=$enable_dlopen_self
21301
21302# Whether dlopen of statically linked programs is supported.
21303dlopen_self_static=$enable_dlopen_self_static
21304
21305# Compiler flag to prevent dynamic linking.
21306link_static_flag=$lt_lt_prog_compiler_static_RC
21307
21308# Compiler flag to turn off builtin functions.
21309no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21310
21311# Compiler flag to allow reflexive dlopens.
21312export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21313
21314# Compiler flag to generate shared objects directly from archives.
21315whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21316
21317# Compiler flag to generate thread-safe objects.
21318thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21319
21320# Library versioning type.
21321version_type=$version_type
21322
21323# Format of library name prefix.
21324libname_spec=$lt_libname_spec
21325
21326# List of archive names.  First name is the real one, the rest are links.
21327# The last name is the one that the linker finds with -lNAME.
21328library_names_spec=$lt_library_names_spec
21329
21330# The coded name of the library, if different from the real name.
21331soname_spec=$lt_soname_spec
21332
21333# Commands used to build and install an old-style archive.
21334RANLIB=$lt_RANLIB
21335old_archive_cmds=$lt_old_archive_cmds_RC
21336old_postinstall_cmds=$lt_old_postinstall_cmds
21337old_postuninstall_cmds=$lt_old_postuninstall_cmds
21338
21339# Create an old-style archive from a shared archive.
21340old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21341
21342# Create a temporary old-style archive to link instead of a shared archive.
21343old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21344
21345# Commands used to build and install a shared archive.
21346archive_cmds=$lt_archive_cmds_RC
21347archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21348postinstall_cmds=$lt_postinstall_cmds
21349postuninstall_cmds=$lt_postuninstall_cmds
21350
21351# Commands used to build a loadable module (assumed same as above if empty)
21352module_cmds=$lt_module_cmds_RC
21353module_expsym_cmds=$lt_module_expsym_cmds_RC
21354
21355# Commands to strip libraries.
21356old_striplib=$lt_old_striplib
21357striplib=$lt_striplib
21358
21359# Dependencies to place before the objects being linked to create a
21360# shared library.
21361predep_objects=$lt_predep_objects_RC
21362
21363# Dependencies to place after the objects being linked to create a
21364# shared library.
21365postdep_objects=$lt_postdep_objects_RC
21366
21367# Dependencies to place before the objects being linked to create a
21368# shared library.
21369predeps=$lt_predeps_RC
21370
21371# Dependencies to place after the objects being linked to create a
21372# shared library.
21373postdeps=$lt_postdeps_RC
21374
21375# The library search path used internally by the compiler when linking
21376# a shared library.
21377compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21378
21379# Method to check whether dependent libraries are shared objects.
21380deplibs_check_method=$lt_deplibs_check_method
21381
21382# Command to use when deplibs_check_method == file_magic.
21383file_magic_cmd=$lt_file_magic_cmd
21384
21385# Flag that allows shared libraries with undefined symbols to be built.
21386allow_undefined_flag=$lt_allow_undefined_flag_RC
21387
21388# Flag that forces no undefined symbols.
21389no_undefined_flag=$lt_no_undefined_flag_RC
21390
21391# Commands used to finish a libtool library installation in a directory.
21392finish_cmds=$lt_finish_cmds
21393
21394# Same as above, but a single script fragment to be evaled but not shown.
21395finish_eval=$lt_finish_eval
21396
21397# Take the output of nm and produce a listing of raw symbols and C names.
21398global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21399
21400# Transform the output of nm in a proper C declaration
21401global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21402
21403# Transform the output of nm in a C name address pair
21404global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21405
21406# This is the shared library runtime path variable.
21407runpath_var=$runpath_var
21408
21409# This is the shared library path variable.
21410shlibpath_var=$shlibpath_var
21411
21412# Is shlibpath searched before the hard-coded library search path?
21413shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21414
21415# How to hardcode a shared library path into an executable.
21416hardcode_action=$hardcode_action_RC
21417
21418# Whether we should hardcode library paths into libraries.
21419hardcode_into_libs=$hardcode_into_libs
21420
21421# Flag to hardcode \$libdir into a binary during linking.
21422# This must work even if \$libdir does not exist.
21423hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21424
21425# If ld is used when linking, flag to hardcode \$libdir into
21426# a binary during linking. This must work even if \$libdir does
21427# not exist.
21428hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21429
21430# Whether we need a single -rpath flag with a separated argument.
21431hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21432
21433# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21434# resulting binary.
21435hardcode_direct=$hardcode_direct_RC
21436
21437# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21438# resulting binary.
21439hardcode_minus_L=$hardcode_minus_L_RC
21440
21441# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21442# the resulting binary.
21443hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21444
21445# Set to yes if building a shared library automatically hardcodes DIR into the library
21446# and all subsequent libraries and executables linked against it.
21447hardcode_automatic=$hardcode_automatic_RC
21448
21449# Variables whose values should be saved in libtool wrapper scripts and
21450# restored at relink time.
21451variables_saved_for_relink="$variables_saved_for_relink"
21452
21453# Whether libtool must link a program against all its dependency libraries.
21454link_all_deplibs=$link_all_deplibs_RC
21455
21456# Compile-time system search path for libraries
21457sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21458
21459# Run-time system search path for libraries
21460sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21461
21462# Fix the shell variable \$srcfile for the compiler.
21463fix_srcfile_path=$lt_fix_srcfile_path
21464
21465# Set to yes if exported symbols are required.
21466always_export_symbols=$always_export_symbols_RC
21467
21468# The commands to list exported symbols.
21469export_symbols_cmds=$lt_export_symbols_cmds_RC
21470
21471# The commands to extract the exported symbol list from a shared archive.
21472extract_expsyms_cmds=$lt_extract_expsyms_cmds
21473
21474# Symbols that should not be listed in the preloaded symbols.
21475exclude_expsyms=$lt_exclude_expsyms_RC
21476
21477# Symbols that must always be exported.
21478include_expsyms=$lt_include_expsyms_RC
21479
21480# ### END LIBTOOL TAG CONFIG: $tagname
21481
21482__EOF__
21483
21484
21485else
21486  # If there is no Makefile yet, we rely on a make rule to execute
21487  # `config.status --recheck' to rerun these tests and create the
21488  # libtool script then.
21489  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21490  if test -f "$ltmain_in"; then
21491    test -f Makefile && make "$ltmain"
21492  fi
21493fi
21494
21495
21496ac_ext=c
21497ac_cpp='$CPP $CPPFLAGS'
21498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21500ac_compiler_gnu=$ac_cv_c_compiler_gnu
21501
21502CC="$lt_save_CC"
21503
21504	;;
21505
21506      *)
21507	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21508$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21509   { (exit 1); exit 1; }; }
21510	;;
21511      esac
21512
21513      # Append the new tag name to the list of available tags.
21514      if test -n "$tagname" ; then
21515      available_tags="$available_tags $tagname"
21516    fi
21517    fi
21518  done
21519  IFS="$lt_save_ifs"
21520
21521  # Now substitute the updated list of available tags.
21522  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21523    mv "${ofile}T" "$ofile"
21524    chmod +x "$ofile"
21525  else
21526    rm -f "${ofile}T"
21527    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21528$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21529   { (exit 1); exit 1; }; }
21530  fi
21531fi
21532
21533
21534
21535# This can be used to rebuild libtool when needed
21536LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21537
21538# Always use our own libtool.
21539LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21540
21541# Prevent multiple expansion
21542
21543
21544
21545
21546
21547
21548
21549
21550
21551
21552
21553
21554
21555
21556
21557
21558
21559
21560
21561
21562
21563case "$host_os" in
21564  mingw* | cygwin*) is_woe32=yes ;;
21565  *) is_woe32=no ;;
21566esac
21567 if test $is_woe32 = yes; then
21568  WOE32_TRUE=
21569  WOE32_FALSE='#'
21570else
21571  WOE32_TRUE='#'
21572  WOE32_FALSE=
21573fi
21574
21575
21576
21577
21578  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
21579$as_echo_n "checking whether NLS is requested... " >&6; }
21580    # Check whether --enable-nls was given.
21581if test "${enable_nls+set}" = set; then
21582  enableval=$enable_nls; USE_NLS=$enableval
21583else
21584  USE_NLS=yes
21585fi
21586
21587  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
21588$as_echo "$USE_NLS" >&6; }
21589
21590
21591
21592
21593      GETTEXT_MACRO_VERSION=0.17
21594
21595
21596
21597
21598# Prepare PATH_SEPARATOR.
21599# The user is always right.
21600if test "${PATH_SEPARATOR+set}" != set; then
21601  echo "#! /bin/sh" >conf$$.sh
21602  echo  "exit 0"   >>conf$$.sh
21603  chmod +x conf$$.sh
21604  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21605    PATH_SEPARATOR=';'
21606  else
21607    PATH_SEPARATOR=:
21608  fi
21609  rm -f conf$$.sh
21610fi
21611
21612# Find out how to test for executable files. Don't use a zero-byte file,
21613# as systems may use methods other than mode bits to determine executability.
21614cat >conf$$.file <<_ASEOF
21615#! /bin/sh
21616exit 0
21617_ASEOF
21618chmod +x conf$$.file
21619if test -x conf$$.file >/dev/null 2>&1; then
21620  ac_executable_p="test -x"
21621else
21622  ac_executable_p="test -f"
21623fi
21624rm -f conf$$.file
21625
21626# Extract the first word of "msgfmt", so it can be a program name with args.
21627set dummy msgfmt; ac_word=$2
21628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21629$as_echo_n "checking for $ac_word... " >&6; }
21630if test "${ac_cv_path_MSGFMT+set}" = set; then
21631  $as_echo_n "(cached) " >&6
21632else
21633  case "$MSGFMT" in
21634  [\\/]* | ?:[\\/]*)
21635    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21636    ;;
21637  *)
21638    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21639    for ac_dir in $PATH; do
21640      IFS="$ac_save_IFS"
21641      test -z "$ac_dir" && ac_dir=.
21642      for ac_exec_ext in '' $ac_executable_extensions; do
21643        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21644          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21645          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
21646     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21647            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21648            break 2
21649          fi
21650        fi
21651      done
21652    done
21653    IFS="$ac_save_IFS"
21654  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21655    ;;
21656esac
21657fi
21658MSGFMT="$ac_cv_path_MSGFMT"
21659if test "$MSGFMT" != ":"; then
21660  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
21661$as_echo "$MSGFMT" >&6; }
21662else
21663  { $as_echo "$as_me:$LINENO: result: no" >&5
21664$as_echo "no" >&6; }
21665fi
21666
21667  # Extract the first word of "gmsgfmt", so it can be a program name with args.
21668set dummy gmsgfmt; ac_word=$2
21669{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21670$as_echo_n "checking for $ac_word... " >&6; }
21671if test "${ac_cv_path_GMSGFMT+set}" = set; then
21672  $as_echo_n "(cached) " >&6
21673else
21674  case $GMSGFMT in
21675  [\\/]* | ?:[\\/]*)
21676  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21677  ;;
21678  *)
21679  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21680for as_dir in $PATH
21681do
21682  IFS=$as_save_IFS
21683  test -z "$as_dir" && as_dir=.
21684  for ac_exec_ext in '' $ac_executable_extensions; do
21685  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21686    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
21687    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21688    break 2
21689  fi
21690done
21691done
21692IFS=$as_save_IFS
21693
21694  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21695  ;;
21696esac
21697fi
21698GMSGFMT=$ac_cv_path_GMSGFMT
21699if test -n "$GMSGFMT"; then
21700  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21701$as_echo "$GMSGFMT" >&6; }
21702else
21703  { $as_echo "$as_me:$LINENO: result: no" >&5
21704$as_echo "no" >&6; }
21705fi
21706
21707
21708
21709    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21710    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
21711    *) MSGFMT_015=$MSGFMT ;;
21712  esac
21713
21714  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21715    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
21716    *) GMSGFMT_015=$GMSGFMT ;;
21717  esac
21718
21719
21720
21721# Prepare PATH_SEPARATOR.
21722# The user is always right.
21723if test "${PATH_SEPARATOR+set}" != set; then
21724  echo "#! /bin/sh" >conf$$.sh
21725  echo  "exit 0"   >>conf$$.sh
21726  chmod +x conf$$.sh
21727  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21728    PATH_SEPARATOR=';'
21729  else
21730    PATH_SEPARATOR=:
21731  fi
21732  rm -f conf$$.sh
21733fi
21734
21735# Find out how to test for executable files. Don't use a zero-byte file,
21736# as systems may use methods other than mode bits to determine executability.
21737cat >conf$$.file <<_ASEOF
21738#! /bin/sh
21739exit 0
21740_ASEOF
21741chmod +x conf$$.file
21742if test -x conf$$.file >/dev/null 2>&1; then
21743  ac_executable_p="test -x"
21744else
21745  ac_executable_p="test -f"
21746fi
21747rm -f conf$$.file
21748
21749# Extract the first word of "xgettext", so it can be a program name with args.
21750set dummy xgettext; ac_word=$2
21751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21752$as_echo_n "checking for $ac_word... " >&6; }
21753if test "${ac_cv_path_XGETTEXT+set}" = set; then
21754  $as_echo_n "(cached) " >&6
21755else
21756  case "$XGETTEXT" in
21757  [\\/]* | ?:[\\/]*)
21758    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21759    ;;
21760  *)
21761    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21762    for ac_dir in $PATH; do
21763      IFS="$ac_save_IFS"
21764      test -z "$ac_dir" && ac_dir=.
21765      for ac_exec_ext in '' $ac_executable_extensions; do
21766        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21767          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21768          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21769     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21770            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21771            break 2
21772          fi
21773        fi
21774      done
21775    done
21776    IFS="$ac_save_IFS"
21777  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21778    ;;
21779esac
21780fi
21781XGETTEXT="$ac_cv_path_XGETTEXT"
21782if test "$XGETTEXT" != ":"; then
21783  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21784$as_echo "$XGETTEXT" >&6; }
21785else
21786  { $as_echo "$as_me:$LINENO: result: no" >&5
21787$as_echo "no" >&6; }
21788fi
21789
21790    rm -f messages.po
21791
21792    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21793    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
21794    *) XGETTEXT_015=$XGETTEXT ;;
21795  esac
21796
21797
21798
21799# Prepare PATH_SEPARATOR.
21800# The user is always right.
21801if test "${PATH_SEPARATOR+set}" != set; then
21802  echo "#! /bin/sh" >conf$$.sh
21803  echo  "exit 0"   >>conf$$.sh
21804  chmod +x conf$$.sh
21805  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21806    PATH_SEPARATOR=';'
21807  else
21808    PATH_SEPARATOR=:
21809  fi
21810  rm -f conf$$.sh
21811fi
21812
21813# Find out how to test for executable files. Don't use a zero-byte file,
21814# as systems may use methods other than mode bits to determine executability.
21815cat >conf$$.file <<_ASEOF
21816#! /bin/sh
21817exit 0
21818_ASEOF
21819chmod +x conf$$.file
21820if test -x conf$$.file >/dev/null 2>&1; then
21821  ac_executable_p="test -x"
21822else
21823  ac_executable_p="test -f"
21824fi
21825rm -f conf$$.file
21826
21827# Extract the first word of "msgmerge", so it can be a program name with args.
21828set dummy msgmerge; ac_word=$2
21829{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21830$as_echo_n "checking for $ac_word... " >&6; }
21831if test "${ac_cv_path_MSGMERGE+set}" = set; then
21832  $as_echo_n "(cached) " >&6
21833else
21834  case "$MSGMERGE" in
21835  [\\/]* | ?:[\\/]*)
21836    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21837    ;;
21838  *)
21839    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21840    for ac_dir in $PATH; do
21841      IFS="$ac_save_IFS"
21842      test -z "$ac_dir" && ac_dir=.
21843      for ac_exec_ext in '' $ac_executable_extensions; do
21844        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21845          echo "$as_me: trying $ac_dir/$ac_word..." >&5
21846          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
21847            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21848            break 2
21849          fi
21850        fi
21851      done
21852    done
21853    IFS="$ac_save_IFS"
21854  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21855    ;;
21856esac
21857fi
21858MSGMERGE="$ac_cv_path_MSGMERGE"
21859if test "$MSGMERGE" != ":"; then
21860  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21861$as_echo "$MSGMERGE" >&6; }
21862else
21863  { $as_echo "$as_me:$LINENO: result: no" >&5
21864$as_echo "no" >&6; }
21865fi
21866
21867
21868        test -n "$localedir" || localedir='${datadir}/locale'
21869
21870
21871    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
21872
21873
21874  ac_config_commands="$ac_config_commands po-directories"
21875
21876
21877
21878    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
21879$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
21880if test "${ac_cv_gnu_library_2+set}" = set; then
21881  $as_echo_n "(cached) " >&6
21882else
21883  cat >conftest.$ac_ext <<_ACEOF
21884/* confdefs.h.  */
21885_ACEOF
21886cat confdefs.h >>conftest.$ac_ext
21887cat >>conftest.$ac_ext <<_ACEOF
21888/* end confdefs.h.  */
21889
21890#include <features.h>
21891#ifdef __GNU_LIBRARY__
21892 #if (__GLIBC__ >= 2)
21893  Lucky GNU user
21894 #endif
21895#endif
21896
21897_ACEOF
21898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21899  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
21900  ac_cv_gnu_library_2=yes
21901else
21902  ac_cv_gnu_library_2=no
21903fi
21904rm -f conftest*
21905
21906
21907
21908fi
21909{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
21910$as_echo "$ac_cv_gnu_library_2" >&6; }
21911
21912    GLIBC2="$ac_cv_gnu_library_2"
21913
21914
21915
21916
21917  CFLAG_VISIBILITY=
21918  HAVE_VISIBILITY=0
21919  if test -n "$GCC"; then
21920    { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
21921$as_echo_n "checking for simple visibility declarations... " >&6; }
21922    if test "${gl_cv_cc_visibility+set}" = set; then
21923  $as_echo_n "(cached) " >&6
21924else
21925
21926      gl_save_CFLAGS="$CFLAGS"
21927      CFLAGS="$CFLAGS -fvisibility=hidden"
21928      cat >conftest.$ac_ext <<_ACEOF
21929/* confdefs.h.  */
21930_ACEOF
21931cat confdefs.h >>conftest.$ac_ext
21932cat >>conftest.$ac_ext <<_ACEOF
21933/* end confdefs.h.  */
21934extern __attribute__((__visibility__("hidden"))) int hiddenvar;
21935         extern __attribute__((__visibility__("default"))) int exportedvar;
21936         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
21937         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
21938int
21939main ()
21940{
21941
21942  ;
21943  return 0;
21944}
21945_ACEOF
21946rm -f conftest.$ac_objext
21947if { (ac_try="$ac_compile"
21948case "(($ac_try" in
21949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950  *) ac_try_echo=$ac_try;;
21951esac
21952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21953$as_echo "$ac_try_echo") >&5
21954  (eval "$ac_compile") 2>conftest.er1
21955  ac_status=$?
21956  grep -v '^ *+' conftest.er1 >conftest.err
21957  rm -f conftest.er1
21958  cat conftest.err >&5
21959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960  (exit $ac_status); } && {
21961	 test -z "$ac_c_werror_flag" ||
21962	 test ! -s conftest.err
21963       } && test -s conftest.$ac_objext; then
21964  gl_cv_cc_visibility=yes
21965else
21966  $as_echo "$as_me: failed program was:" >&5
21967sed 's/^/| /' conftest.$ac_ext >&5
21968
21969	gl_cv_cc_visibility=no
21970fi
21971
21972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21973      CFLAGS="$gl_save_CFLAGS"
21974fi
21975
21976    { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
21977$as_echo "$gl_cv_cc_visibility" >&6; }
21978    if test $gl_cv_cc_visibility = yes; then
21979      CFLAG_VISIBILITY="-fvisibility=hidden"
21980      HAVE_VISIBILITY=1
21981    fi
21982  fi
21983
21984
21985
21986cat >>confdefs.h <<_ACEOF
21987#define HAVE_VISIBILITY $HAVE_VISIBILITY
21988_ACEOF
21989
21990
21991{ $as_echo "$as_me:$LINENO: checking for inline" >&5
21992$as_echo_n "checking for inline... " >&6; }
21993if test "${ac_cv_c_inline+set}" = set; then
21994  $as_echo_n "(cached) " >&6
21995else
21996  ac_cv_c_inline=no
21997for ac_kw in inline __inline__ __inline; do
21998  cat >conftest.$ac_ext <<_ACEOF
21999/* confdefs.h.  */
22000_ACEOF
22001cat confdefs.h >>conftest.$ac_ext
22002cat >>conftest.$ac_ext <<_ACEOF
22003/* end confdefs.h.  */
22004#ifndef __cplusplus
22005typedef int foo_t;
22006static $ac_kw foo_t static_foo () {return 0; }
22007$ac_kw foo_t foo () {return 0; }
22008#endif
22009
22010_ACEOF
22011rm -f conftest.$ac_objext
22012if { (ac_try="$ac_compile"
22013case "(($ac_try" in
22014  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015  *) ac_try_echo=$ac_try;;
22016esac
22017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22018$as_echo "$ac_try_echo") >&5
22019  (eval "$ac_compile") 2>conftest.er1
22020  ac_status=$?
22021  grep -v '^ *+' conftest.er1 >conftest.err
22022  rm -f conftest.er1
22023  cat conftest.err >&5
22024  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025  (exit $ac_status); } && {
22026	 test -z "$ac_c_werror_flag" ||
22027	 test ! -s conftest.err
22028       } && test -s conftest.$ac_objext; then
22029  ac_cv_c_inline=$ac_kw
22030else
22031  $as_echo "$as_me: failed program was:" >&5
22032sed 's/^/| /' conftest.$ac_ext >&5
22033
22034
22035fi
22036
22037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22038  test "$ac_cv_c_inline" != no && break
22039done
22040
22041fi
22042{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22043$as_echo "$ac_cv_c_inline" >&6; }
22044
22045
22046case $ac_cv_c_inline in
22047  inline | yes) ;;
22048  *)
22049    case $ac_cv_c_inline in
22050      no) ac_val=;;
22051      *) ac_val=$ac_cv_c_inline;;
22052    esac
22053    cat >>confdefs.h <<_ACEOF
22054#ifndef __cplusplus
22055#define inline $ac_val
22056#endif
22057_ACEOF
22058    ;;
22059esac
22060
22061{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
22062$as_echo_n "checking for size_t... " >&6; }
22063if test "${ac_cv_type_size_t+set}" = set; then
22064  $as_echo_n "(cached) " >&6
22065else
22066  ac_cv_type_size_t=no
22067cat >conftest.$ac_ext <<_ACEOF
22068/* confdefs.h.  */
22069_ACEOF
22070cat confdefs.h >>conftest.$ac_ext
22071cat >>conftest.$ac_ext <<_ACEOF
22072/* end confdefs.h.  */
22073$ac_includes_default
22074int
22075main ()
22076{
22077if (sizeof (size_t))
22078       return 0;
22079  ;
22080  return 0;
22081}
22082_ACEOF
22083rm -f conftest.$ac_objext
22084if { (ac_try="$ac_compile"
22085case "(($ac_try" in
22086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087  *) ac_try_echo=$ac_try;;
22088esac
22089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22090$as_echo "$ac_try_echo") >&5
22091  (eval "$ac_compile") 2>conftest.er1
22092  ac_status=$?
22093  grep -v '^ *+' conftest.er1 >conftest.err
22094  rm -f conftest.er1
22095  cat conftest.err >&5
22096  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097  (exit $ac_status); } && {
22098	 test -z "$ac_c_werror_flag" ||
22099	 test ! -s conftest.err
22100       } && test -s conftest.$ac_objext; then
22101  cat >conftest.$ac_ext <<_ACEOF
22102/* confdefs.h.  */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
22106/* end confdefs.h.  */
22107$ac_includes_default
22108int
22109main ()
22110{
22111if (sizeof ((size_t)))
22112	  return 0;
22113  ;
22114  return 0;
22115}
22116_ACEOF
22117rm -f conftest.$ac_objext
22118if { (ac_try="$ac_compile"
22119case "(($ac_try" in
22120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121  *) ac_try_echo=$ac_try;;
22122esac
22123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22124$as_echo "$ac_try_echo") >&5
22125  (eval "$ac_compile") 2>conftest.er1
22126  ac_status=$?
22127  grep -v '^ *+' conftest.er1 >conftest.err
22128  rm -f conftest.er1
22129  cat conftest.err >&5
22130  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131  (exit $ac_status); } && {
22132	 test -z "$ac_c_werror_flag" ||
22133	 test ! -s conftest.err
22134       } && test -s conftest.$ac_objext; then
22135  :
22136else
22137  $as_echo "$as_me: failed program was:" >&5
22138sed 's/^/| /' conftest.$ac_ext >&5
22139
22140	ac_cv_type_size_t=yes
22141fi
22142
22143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144else
22145  $as_echo "$as_me: failed program was:" >&5
22146sed 's/^/| /' conftest.$ac_ext >&5
22147
22148
22149fi
22150
22151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152fi
22153{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22154$as_echo "$ac_cv_type_size_t" >&6; }
22155if test "x$ac_cv_type_size_t" = x""yes; then
22156  :
22157else
22158
22159cat >>confdefs.h <<_ACEOF
22160#define size_t unsigned int
22161_ACEOF
22162
22163fi
22164
22165
22166  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
22167$as_echo_n "checking for stdint.h... " >&6; }
22168if test "${gl_cv_header_stdint_h+set}" = set; then
22169  $as_echo_n "(cached) " >&6
22170else
22171  cat >conftest.$ac_ext <<_ACEOF
22172/* confdefs.h.  */
22173_ACEOF
22174cat confdefs.h >>conftest.$ac_ext
22175cat >>conftest.$ac_ext <<_ACEOF
22176/* end confdefs.h.  */
22177#include <sys/types.h>
22178#include <stdint.h>
22179int
22180main ()
22181{
22182uintmax_t i = (uintmax_t) -1; return !i;
22183  ;
22184  return 0;
22185}
22186_ACEOF
22187rm -f conftest.$ac_objext
22188if { (ac_try="$ac_compile"
22189case "(($ac_try" in
22190  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191  *) ac_try_echo=$ac_try;;
22192esac
22193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22194$as_echo "$ac_try_echo") >&5
22195  (eval "$ac_compile") 2>conftest.er1
22196  ac_status=$?
22197  grep -v '^ *+' conftest.er1 >conftest.err
22198  rm -f conftest.er1
22199  cat conftest.err >&5
22200  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201  (exit $ac_status); } && {
22202	 test -z "$ac_c_werror_flag" ||
22203	 test ! -s conftest.err
22204       } && test -s conftest.$ac_objext; then
22205  gl_cv_header_stdint_h=yes
22206else
22207  $as_echo "$as_me: failed program was:" >&5
22208sed 's/^/| /' conftest.$ac_ext >&5
22209
22210	gl_cv_header_stdint_h=no
22211fi
22212
22213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214fi
22215{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
22216$as_echo "$gl_cv_header_stdint_h" >&6; }
22217  if test $gl_cv_header_stdint_h = yes; then
22218
22219cat >>confdefs.h <<_ACEOF
22220#define HAVE_STDINT_H_WITH_UINTMAX 1
22221_ACEOF
22222
22223  fi
22224
22225# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22226# for constant arguments.  Useless!
22227{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
22228$as_echo_n "checking for working alloca.h... " >&6; }
22229if test "${ac_cv_working_alloca_h+set}" = set; then
22230  $as_echo_n "(cached) " >&6
22231else
22232  cat >conftest.$ac_ext <<_ACEOF
22233/* confdefs.h.  */
22234_ACEOF
22235cat confdefs.h >>conftest.$ac_ext
22236cat >>conftest.$ac_ext <<_ACEOF
22237/* end confdefs.h.  */
22238#include <alloca.h>
22239int
22240main ()
22241{
22242char *p = (char *) alloca (2 * sizeof (int));
22243			  if (p) return 0;
22244  ;
22245  return 0;
22246}
22247_ACEOF
22248rm -f conftest.$ac_objext conftest$ac_exeext
22249if { (ac_try="$ac_link"
22250case "(($ac_try" in
22251  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252  *) ac_try_echo=$ac_try;;
22253esac
22254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22255$as_echo "$ac_try_echo") >&5
22256  (eval "$ac_link") 2>conftest.er1
22257  ac_status=$?
22258  grep -v '^ *+' conftest.er1 >conftest.err
22259  rm -f conftest.er1
22260  cat conftest.err >&5
22261  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262  (exit $ac_status); } && {
22263	 test -z "$ac_c_werror_flag" ||
22264	 test ! -s conftest.err
22265       } && test -s conftest$ac_exeext && {
22266	 test "$cross_compiling" = yes ||
22267	 $as_test_x conftest$ac_exeext
22268       }; then
22269  ac_cv_working_alloca_h=yes
22270else
22271  $as_echo "$as_me: failed program was:" >&5
22272sed 's/^/| /' conftest.$ac_ext >&5
22273
22274	ac_cv_working_alloca_h=no
22275fi
22276
22277rm -rf conftest.dSYM
22278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22279      conftest$ac_exeext conftest.$ac_ext
22280fi
22281{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22282$as_echo "$ac_cv_working_alloca_h" >&6; }
22283if test $ac_cv_working_alloca_h = yes; then
22284
22285cat >>confdefs.h <<\_ACEOF
22286#define HAVE_ALLOCA_H 1
22287_ACEOF
22288
22289fi
22290
22291{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
22292$as_echo_n "checking for alloca... " >&6; }
22293if test "${ac_cv_func_alloca_works+set}" = set; then
22294  $as_echo_n "(cached) " >&6
22295else
22296  cat >conftest.$ac_ext <<_ACEOF
22297/* confdefs.h.  */
22298_ACEOF
22299cat confdefs.h >>conftest.$ac_ext
22300cat >>conftest.$ac_ext <<_ACEOF
22301/* end confdefs.h.  */
22302#ifdef __GNUC__
22303# define alloca __builtin_alloca
22304#else
22305# ifdef _MSC_VER
22306#  include <malloc.h>
22307#  define alloca _alloca
22308# else
22309#  ifdef HAVE_ALLOCA_H
22310#   include <alloca.h>
22311#  else
22312#   ifdef _AIX
22313 #pragma alloca
22314#   else
22315#    ifndef alloca /* predefined by HP cc +Olibcalls */
22316char *alloca ();
22317#    endif
22318#   endif
22319#  endif
22320# endif
22321#endif
22322
22323int
22324main ()
22325{
22326char *p = (char *) alloca (1);
22327				    if (p) return 0;
22328  ;
22329  return 0;
22330}
22331_ACEOF
22332rm -f conftest.$ac_objext conftest$ac_exeext
22333if { (ac_try="$ac_link"
22334case "(($ac_try" in
22335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336  *) ac_try_echo=$ac_try;;
22337esac
22338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22339$as_echo "$ac_try_echo") >&5
22340  (eval "$ac_link") 2>conftest.er1
22341  ac_status=$?
22342  grep -v '^ *+' conftest.er1 >conftest.err
22343  rm -f conftest.er1
22344  cat conftest.err >&5
22345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346  (exit $ac_status); } && {
22347	 test -z "$ac_c_werror_flag" ||
22348	 test ! -s conftest.err
22349       } && test -s conftest$ac_exeext && {
22350	 test "$cross_compiling" = yes ||
22351	 $as_test_x conftest$ac_exeext
22352       }; then
22353  ac_cv_func_alloca_works=yes
22354else
22355  $as_echo "$as_me: failed program was:" >&5
22356sed 's/^/| /' conftest.$ac_ext >&5
22357
22358	ac_cv_func_alloca_works=no
22359fi
22360
22361rm -rf conftest.dSYM
22362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22363      conftest$ac_exeext conftest.$ac_ext
22364fi
22365{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22366$as_echo "$ac_cv_func_alloca_works" >&6; }
22367
22368if test $ac_cv_func_alloca_works = yes; then
22369
22370cat >>confdefs.h <<\_ACEOF
22371#define HAVE_ALLOCA 1
22372_ACEOF
22373
22374else
22375  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22376# that cause trouble.  Some versions do not even contain alloca or
22377# contain a buggy version.  If you still want to use their alloca,
22378# use ar to extract alloca.o from them instead of compiling alloca.c.
22379
22380ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
22381
22382cat >>confdefs.h <<\_ACEOF
22383#define C_ALLOCA 1
22384_ACEOF
22385
22386
22387{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22388$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
22389if test "${ac_cv_os_cray+set}" = set; then
22390  $as_echo_n "(cached) " >&6
22391else
22392  cat >conftest.$ac_ext <<_ACEOF
22393/* confdefs.h.  */
22394_ACEOF
22395cat confdefs.h >>conftest.$ac_ext
22396cat >>conftest.$ac_ext <<_ACEOF
22397/* end confdefs.h.  */
22398#if defined CRAY && ! defined CRAY2
22399webecray
22400#else
22401wenotbecray
22402#endif
22403
22404_ACEOF
22405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22406  $EGREP "webecray" >/dev/null 2>&1; then
22407  ac_cv_os_cray=yes
22408else
22409  ac_cv_os_cray=no
22410fi
22411rm -f conftest*
22412
22413fi
22414{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22415$as_echo "$ac_cv_os_cray" >&6; }
22416if test $ac_cv_os_cray = yes; then
22417  for ac_func in _getb67 GETB67 getb67; do
22418    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22419{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22420$as_echo_n "checking for $ac_func... " >&6; }
22421if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22422  $as_echo_n "(cached) " >&6
22423else
22424  cat >conftest.$ac_ext <<_ACEOF
22425/* confdefs.h.  */
22426_ACEOF
22427cat confdefs.h >>conftest.$ac_ext
22428cat >>conftest.$ac_ext <<_ACEOF
22429/* end confdefs.h.  */
22430/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22431   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22432#define $ac_func innocuous_$ac_func
22433
22434/* System header to define __stub macros and hopefully few prototypes,
22435    which can conflict with char $ac_func (); below.
22436    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22437    <limits.h> exists even on freestanding compilers.  */
22438
22439#ifdef __STDC__
22440# include <limits.h>
22441#else
22442# include <assert.h>
22443#endif
22444
22445#undef $ac_func
22446
22447/* Override any GCC internal prototype to avoid an error.
22448   Use char because int might match the return type of a GCC
22449   builtin and then its argument prototype would still apply.  */
22450#ifdef __cplusplus
22451extern "C"
22452#endif
22453char $ac_func ();
22454/* The GNU C library defines this for functions which it implements
22455    to always fail with ENOSYS.  Some functions are actually named
22456    something starting with __ and the normal name is an alias.  */
22457#if defined __stub_$ac_func || defined __stub___$ac_func
22458choke me
22459#endif
22460
22461int
22462main ()
22463{
22464return $ac_func ();
22465  ;
22466  return 0;
22467}
22468_ACEOF
22469rm -f conftest.$ac_objext conftest$ac_exeext
22470if { (ac_try="$ac_link"
22471case "(($ac_try" in
22472  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473  *) ac_try_echo=$ac_try;;
22474esac
22475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22476$as_echo "$ac_try_echo") >&5
22477  (eval "$ac_link") 2>conftest.er1
22478  ac_status=$?
22479  grep -v '^ *+' conftest.er1 >conftest.err
22480  rm -f conftest.er1
22481  cat conftest.err >&5
22482  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483  (exit $ac_status); } && {
22484	 test -z "$ac_c_werror_flag" ||
22485	 test ! -s conftest.err
22486       } && test -s conftest$ac_exeext && {
22487	 test "$cross_compiling" = yes ||
22488	 $as_test_x conftest$ac_exeext
22489       }; then
22490  eval "$as_ac_var=yes"
22491else
22492  $as_echo "$as_me: failed program was:" >&5
22493sed 's/^/| /' conftest.$ac_ext >&5
22494
22495	eval "$as_ac_var=no"
22496fi
22497
22498rm -rf conftest.dSYM
22499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22500      conftest$ac_exeext conftest.$ac_ext
22501fi
22502ac_res=`eval 'as_val=${'$as_ac_var'}
22503		 $as_echo "$as_val"'`
22504	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22505$as_echo "$ac_res" >&6; }
22506as_val=`eval 'as_val=${'$as_ac_var'}
22507		 $as_echo "$as_val"'`
22508   if test "x$as_val" = x""yes; then
22509
22510cat >>confdefs.h <<_ACEOF
22511#define CRAY_STACKSEG_END $ac_func
22512_ACEOF
22513
22514    break
22515fi
22516
22517  done
22518fi
22519
22520{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22521$as_echo_n "checking stack direction for C alloca... " >&6; }
22522if test "${ac_cv_c_stack_direction+set}" = set; then
22523  $as_echo_n "(cached) " >&6
22524else
22525  if test "$cross_compiling" = yes; then
22526  ac_cv_c_stack_direction=0
22527else
22528  cat >conftest.$ac_ext <<_ACEOF
22529/* confdefs.h.  */
22530_ACEOF
22531cat confdefs.h >>conftest.$ac_ext
22532cat >>conftest.$ac_ext <<_ACEOF
22533/* end confdefs.h.  */
22534$ac_includes_default
22535int
22536find_stack_direction ()
22537{
22538  static char *addr = 0;
22539  auto char dummy;
22540  if (addr == 0)
22541    {
22542      addr = &dummy;
22543      return find_stack_direction ();
22544    }
22545  else
22546    return (&dummy > addr) ? 1 : -1;
22547}
22548
22549int
22550main ()
22551{
22552  return find_stack_direction () < 0;
22553}
22554_ACEOF
22555rm -f conftest$ac_exeext
22556if { (ac_try="$ac_link"
22557case "(($ac_try" in
22558  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559  *) ac_try_echo=$ac_try;;
22560esac
22561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22562$as_echo "$ac_try_echo") >&5
22563  (eval "$ac_link") 2>&5
22564  ac_status=$?
22565  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22567  { (case "(($ac_try" in
22568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569  *) ac_try_echo=$ac_try;;
22570esac
22571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22572$as_echo "$ac_try_echo") >&5
22573  (eval "$ac_try") 2>&5
22574  ac_status=$?
22575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576  (exit $ac_status); }; }; then
22577  ac_cv_c_stack_direction=1
22578else
22579  $as_echo "$as_me: program exited with status $ac_status" >&5
22580$as_echo "$as_me: failed program was:" >&5
22581sed 's/^/| /' conftest.$ac_ext >&5
22582
22583( exit $ac_status )
22584ac_cv_c_stack_direction=-1
22585fi
22586rm -rf conftest.dSYM
22587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22588fi
22589
22590
22591fi
22592{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22593$as_echo "$ac_cv_c_stack_direction" >&6; }
22594
22595cat >>confdefs.h <<_ACEOF
22596#define STACK_DIRECTION $ac_cv_c_stack_direction
22597_ACEOF
22598
22599
22600fi
22601
22602
22603
22604for ac_header in stdlib.h unistd.h
22605do
22606as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22607if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22608  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22609$as_echo_n "checking for $ac_header... " >&6; }
22610if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22611  $as_echo_n "(cached) " >&6
22612fi
22613ac_res=`eval 'as_val=${'$as_ac_Header'}
22614		 $as_echo "$as_val"'`
22615	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22616$as_echo "$ac_res" >&6; }
22617else
22618  # Is the header compilable?
22619{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22620$as_echo_n "checking $ac_header usability... " >&6; }
22621cat >conftest.$ac_ext <<_ACEOF
22622/* confdefs.h.  */
22623_ACEOF
22624cat confdefs.h >>conftest.$ac_ext
22625cat >>conftest.$ac_ext <<_ACEOF
22626/* end confdefs.h.  */
22627$ac_includes_default
22628#include <$ac_header>
22629_ACEOF
22630rm -f conftest.$ac_objext
22631if { (ac_try="$ac_compile"
22632case "(($ac_try" in
22633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634  *) ac_try_echo=$ac_try;;
22635esac
22636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22637$as_echo "$ac_try_echo") >&5
22638  (eval "$ac_compile") 2>conftest.er1
22639  ac_status=$?
22640  grep -v '^ *+' conftest.er1 >conftest.err
22641  rm -f conftest.er1
22642  cat conftest.err >&5
22643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644  (exit $ac_status); } && {
22645	 test -z "$ac_c_werror_flag" ||
22646	 test ! -s conftest.err
22647       } && test -s conftest.$ac_objext; then
22648  ac_header_compiler=yes
22649else
22650  $as_echo "$as_me: failed program was:" >&5
22651sed 's/^/| /' conftest.$ac_ext >&5
22652
22653	ac_header_compiler=no
22654fi
22655
22656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22658$as_echo "$ac_header_compiler" >&6; }
22659
22660# Is the header present?
22661{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22662$as_echo_n "checking $ac_header presence... " >&6; }
22663cat >conftest.$ac_ext <<_ACEOF
22664/* confdefs.h.  */
22665_ACEOF
22666cat confdefs.h >>conftest.$ac_ext
22667cat >>conftest.$ac_ext <<_ACEOF
22668/* end confdefs.h.  */
22669#include <$ac_header>
22670_ACEOF
22671if { (ac_try="$ac_cpp conftest.$ac_ext"
22672case "(($ac_try" in
22673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674  *) ac_try_echo=$ac_try;;
22675esac
22676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22677$as_echo "$ac_try_echo") >&5
22678  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22679  ac_status=$?
22680  grep -v '^ *+' conftest.er1 >conftest.err
22681  rm -f conftest.er1
22682  cat conftest.err >&5
22683  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684  (exit $ac_status); } >/dev/null && {
22685	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22686	 test ! -s conftest.err
22687       }; then
22688  ac_header_preproc=yes
22689else
22690  $as_echo "$as_me: failed program was:" >&5
22691sed 's/^/| /' conftest.$ac_ext >&5
22692
22693  ac_header_preproc=no
22694fi
22695
22696rm -f conftest.err conftest.$ac_ext
22697{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22698$as_echo "$ac_header_preproc" >&6; }
22699
22700# So?  What about this header?
22701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22702  yes:no: )
22703    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22704$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22705    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22706$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22707    ac_header_preproc=yes
22708    ;;
22709  no:yes:* )
22710    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22711$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22712    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22713$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22714    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22715$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22716    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22717$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22718    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22719$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22720    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22721$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22722
22723    ;;
22724esac
22725{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22726$as_echo_n "checking for $ac_header... " >&6; }
22727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22728  $as_echo_n "(cached) " >&6
22729else
22730  eval "$as_ac_Header=\$ac_header_preproc"
22731fi
22732ac_res=`eval 'as_val=${'$as_ac_Header'}
22733		 $as_echo "$as_val"'`
22734	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22735$as_echo "$ac_res" >&6; }
22736
22737fi
22738as_val=`eval 'as_val=${'$as_ac_Header'}
22739		 $as_echo "$as_val"'`
22740   if test "x$as_val" = x""yes; then
22741  cat >>confdefs.h <<_ACEOF
22742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22743_ACEOF
22744
22745fi
22746
22747done
22748
22749
22750for ac_func in getpagesize
22751do
22752as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22753{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22754$as_echo_n "checking for $ac_func... " >&6; }
22755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22756  $as_echo_n "(cached) " >&6
22757else
22758  cat >conftest.$ac_ext <<_ACEOF
22759/* confdefs.h.  */
22760_ACEOF
22761cat confdefs.h >>conftest.$ac_ext
22762cat >>conftest.$ac_ext <<_ACEOF
22763/* end confdefs.h.  */
22764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22765   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22766#define $ac_func innocuous_$ac_func
22767
22768/* System header to define __stub macros and hopefully few prototypes,
22769    which can conflict with char $ac_func (); below.
22770    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22771    <limits.h> exists even on freestanding compilers.  */
22772
22773#ifdef __STDC__
22774# include <limits.h>
22775#else
22776# include <assert.h>
22777#endif
22778
22779#undef $ac_func
22780
22781/* Override any GCC internal prototype to avoid an error.
22782   Use char because int might match the return type of a GCC
22783   builtin and then its argument prototype would still apply.  */
22784#ifdef __cplusplus
22785extern "C"
22786#endif
22787char $ac_func ();
22788/* The GNU C library defines this for functions which it implements
22789    to always fail with ENOSYS.  Some functions are actually named
22790    something starting with __ and the normal name is an alias.  */
22791#if defined __stub_$ac_func || defined __stub___$ac_func
22792choke me
22793#endif
22794
22795int
22796main ()
22797{
22798return $ac_func ();
22799  ;
22800  return 0;
22801}
22802_ACEOF
22803rm -f conftest.$ac_objext conftest$ac_exeext
22804if { (ac_try="$ac_link"
22805case "(($ac_try" in
22806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807  *) ac_try_echo=$ac_try;;
22808esac
22809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22810$as_echo "$ac_try_echo") >&5
22811  (eval "$ac_link") 2>conftest.er1
22812  ac_status=$?
22813  grep -v '^ *+' conftest.er1 >conftest.err
22814  rm -f conftest.er1
22815  cat conftest.err >&5
22816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817  (exit $ac_status); } && {
22818	 test -z "$ac_c_werror_flag" ||
22819	 test ! -s conftest.err
22820       } && test -s conftest$ac_exeext && {
22821	 test "$cross_compiling" = yes ||
22822	 $as_test_x conftest$ac_exeext
22823       }; then
22824  eval "$as_ac_var=yes"
22825else
22826  $as_echo "$as_me: failed program was:" >&5
22827sed 's/^/| /' conftest.$ac_ext >&5
22828
22829	eval "$as_ac_var=no"
22830fi
22831
22832rm -rf conftest.dSYM
22833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22834      conftest$ac_exeext conftest.$ac_ext
22835fi
22836ac_res=`eval 'as_val=${'$as_ac_var'}
22837		 $as_echo "$as_val"'`
22838	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22839$as_echo "$ac_res" >&6; }
22840as_val=`eval 'as_val=${'$as_ac_var'}
22841		 $as_echo "$as_val"'`
22842   if test "x$as_val" = x""yes; then
22843  cat >>confdefs.h <<_ACEOF
22844#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22845_ACEOF
22846
22847fi
22848done
22849
22850{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
22851$as_echo_n "checking for working mmap... " >&6; }
22852if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22853  $as_echo_n "(cached) " >&6
22854else
22855  if test "$cross_compiling" = yes; then
22856  ac_cv_func_mmap_fixed_mapped=no
22857else
22858  cat >conftest.$ac_ext <<_ACEOF
22859/* confdefs.h.  */
22860_ACEOF
22861cat confdefs.h >>conftest.$ac_ext
22862cat >>conftest.$ac_ext <<_ACEOF
22863/* end confdefs.h.  */
22864$ac_includes_default
22865/* malloc might have been renamed as rpl_malloc. */
22866#undef malloc
22867
22868/* Thanks to Mike Haertel and Jim Avera for this test.
22869   Here is a matrix of mmap possibilities:
22870	mmap private not fixed
22871	mmap private fixed at somewhere currently unmapped
22872	mmap private fixed at somewhere already mapped
22873	mmap shared not fixed
22874	mmap shared fixed at somewhere currently unmapped
22875	mmap shared fixed at somewhere already mapped
22876   For private mappings, we should verify that changes cannot be read()
22877   back from the file, nor mmap's back from the file at a different
22878   address.  (There have been systems where private was not correctly
22879   implemented like the infamous i386 svr4.0, and systems where the
22880   VM page cache was not coherent with the file system buffer cache
22881   like early versions of FreeBSD and possibly contemporary NetBSD.)
22882   For shared mappings, we should conversely verify that changes get
22883   propagated back to all the places they're supposed to be.
22884
22885   Grep wants private fixed already mapped.
22886   The main things grep needs to know about mmap are:
22887   * does it exist and is it safe to write into the mmap'd area
22888   * how to use it (BSD variants)  */
22889
22890#include <fcntl.h>
22891#include <sys/mman.h>
22892
22893#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22894char *malloc ();
22895#endif
22896
22897/* This mess was copied from the GNU getpagesize.h.  */
22898#ifndef HAVE_GETPAGESIZE
22899/* Assume that all systems that can run configure have sys/param.h.  */
22900# ifndef HAVE_SYS_PARAM_H
22901#  define HAVE_SYS_PARAM_H 1
22902# endif
22903
22904# ifdef _SC_PAGESIZE
22905#  define getpagesize() sysconf(_SC_PAGESIZE)
22906# else /* no _SC_PAGESIZE */
22907#  ifdef HAVE_SYS_PARAM_H
22908#   include <sys/param.h>
22909#   ifdef EXEC_PAGESIZE
22910#    define getpagesize() EXEC_PAGESIZE
22911#   else /* no EXEC_PAGESIZE */
22912#    ifdef NBPG
22913#     define getpagesize() NBPG * CLSIZE
22914#     ifndef CLSIZE
22915#      define CLSIZE 1
22916#     endif /* no CLSIZE */
22917#    else /* no NBPG */
22918#     ifdef NBPC
22919#      define getpagesize() NBPC
22920#     else /* no NBPC */
22921#      ifdef PAGESIZE
22922#       define getpagesize() PAGESIZE
22923#      endif /* PAGESIZE */
22924#     endif /* no NBPC */
22925#    endif /* no NBPG */
22926#   endif /* no EXEC_PAGESIZE */
22927#  else /* no HAVE_SYS_PARAM_H */
22928#   define getpagesize() 8192	/* punt totally */
22929#  endif /* no HAVE_SYS_PARAM_H */
22930# endif /* no _SC_PAGESIZE */
22931
22932#endif /* no HAVE_GETPAGESIZE */
22933
22934int
22935main ()
22936{
22937  char *data, *data2, *data3;
22938  int i, pagesize;
22939  int fd;
22940
22941  pagesize = getpagesize ();
22942
22943  /* First, make a file with some known garbage in it. */
22944  data = (char *) malloc (pagesize);
22945  if (!data)
22946    return 1;
22947  for (i = 0; i < pagesize; ++i)
22948    *(data + i) = rand ();
22949  umask (0);
22950  fd = creat ("conftest.mmap", 0600);
22951  if (fd < 0)
22952    return 1;
22953  if (write (fd, data, pagesize) != pagesize)
22954    return 1;
22955  close (fd);
22956
22957  /* Next, try to mmap the file at a fixed address which already has
22958     something else allocated at it.  If we can, also make sure that
22959     we see the same garbage.  */
22960  fd = open ("conftest.mmap", O_RDWR);
22961  if (fd < 0)
22962    return 1;
22963  data2 = (char *) malloc (2 * pagesize);
22964  if (!data2)
22965    return 1;
22966  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
22967  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22968		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
22969    return 1;
22970  for (i = 0; i < pagesize; ++i)
22971    if (*(data + i) != *(data2 + i))
22972      return 1;
22973
22974  /* Finally, make sure that changes to the mapped area do not
22975     percolate back to the file as seen by read().  (This is a bug on
22976     some variants of i386 svr4.0.)  */
22977  for (i = 0; i < pagesize; ++i)
22978    *(data2 + i) = *(data2 + i) + 1;
22979  data3 = (char *) malloc (pagesize);
22980  if (!data3)
22981    return 1;
22982  if (read (fd, data3, pagesize) != pagesize)
22983    return 1;
22984  for (i = 0; i < pagesize; ++i)
22985    if (*(data + i) != *(data3 + i))
22986      return 1;
22987  close (fd);
22988  return 0;
22989}
22990_ACEOF
22991rm -f conftest$ac_exeext
22992if { (ac_try="$ac_link"
22993case "(($ac_try" in
22994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995  *) ac_try_echo=$ac_try;;
22996esac
22997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22998$as_echo "$ac_try_echo") >&5
22999  (eval "$ac_link") 2>&5
23000  ac_status=$?
23001  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23003  { (case "(($ac_try" in
23004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005  *) ac_try_echo=$ac_try;;
23006esac
23007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23008$as_echo "$ac_try_echo") >&5
23009  (eval "$ac_try") 2>&5
23010  ac_status=$?
23011  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012  (exit $ac_status); }; }; then
23013  ac_cv_func_mmap_fixed_mapped=yes
23014else
23015  $as_echo "$as_me: program exited with status $ac_status" >&5
23016$as_echo "$as_me: failed program was:" >&5
23017sed 's/^/| /' conftest.$ac_ext >&5
23018
23019( exit $ac_status )
23020ac_cv_func_mmap_fixed_mapped=no
23021fi
23022rm -rf conftest.dSYM
23023rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23024fi
23025
23026
23027fi
23028{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23029$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23030if test $ac_cv_func_mmap_fixed_mapped = yes; then
23031
23032cat >>confdefs.h <<\_ACEOF
23033#define HAVE_MMAP 1
23034_ACEOF
23035
23036fi
23037rm -f conftest.mmap
23038
23039
23040
23041  { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
23042$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
23043if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
23044  $as_echo_n "(cached) " >&6
23045else
23046
23047      gt_cv_int_divbyzero_sigfpe=
23048      case "$host_os" in
23049        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
23050          # On MacOS X 10.2 or newer, just assume the same as when cross-
23051          # compiling. If we were to perform the real test, 1 Crash Report
23052          # dialog window would pop up.
23053          case "$host_cpu" in
23054            i[34567]86 | x86_64)
23055              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
23056          esac
23057          ;;
23058      esac
23059      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
23060        if test "$cross_compiling" = yes; then
23061
23062            # Guess based on the CPU.
23063            case "$host_cpu" in
23064              alpha* | i[34567]86 | x86_64 | m68k | s390*)
23065                gt_cv_int_divbyzero_sigfpe="guessing yes";;
23066              *)
23067                gt_cv_int_divbyzero_sigfpe="guessing no";;
23068            esac
23069
23070else
23071  cat >conftest.$ac_ext <<_ACEOF
23072/* confdefs.h.  */
23073_ACEOF
23074cat confdefs.h >>conftest.$ac_ext
23075cat >>conftest.$ac_ext <<_ACEOF
23076/* end confdefs.h.  */
23077
23078#include <stdlib.h>
23079#include <signal.h>
23080
23081static void
23082sigfpe_handler (int sig)
23083{
23084  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
23085  exit (sig != SIGFPE);
23086}
23087
23088int x = 1;
23089int y = 0;
23090int z;
23091int nan;
23092
23093int main ()
23094{
23095  signal (SIGFPE, sigfpe_handler);
23096/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
23097#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
23098  signal (SIGTRAP, sigfpe_handler);
23099#endif
23100/* Linux/SPARC yields signal SIGILL.  */
23101#if defined (__sparc__) && defined (__linux__)
23102  signal (SIGILL, sigfpe_handler);
23103#endif
23104
23105  z = x / y;
23106  nan = y / y;
23107  exit (1);
23108}
23109
23110_ACEOF
23111rm -f conftest$ac_exeext
23112if { (ac_try="$ac_link"
23113case "(($ac_try" in
23114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23115  *) ac_try_echo=$ac_try;;
23116esac
23117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23118$as_echo "$ac_try_echo") >&5
23119  (eval "$ac_link") 2>&5
23120  ac_status=$?
23121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23123  { (case "(($ac_try" in
23124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125  *) ac_try_echo=$ac_try;;
23126esac
23127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23128$as_echo "$ac_try_echo") >&5
23129  (eval "$ac_try") 2>&5
23130  ac_status=$?
23131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132  (exit $ac_status); }; }; then
23133  gt_cv_int_divbyzero_sigfpe=yes
23134else
23135  $as_echo "$as_me: program exited with status $ac_status" >&5
23136$as_echo "$as_me: failed program was:" >&5
23137sed 's/^/| /' conftest.$ac_ext >&5
23138
23139( exit $ac_status )
23140gt_cv_int_divbyzero_sigfpe=no
23141fi
23142rm -rf conftest.dSYM
23143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23144fi
23145
23146
23147      fi
23148
23149fi
23150{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
23151$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
23152  case "$gt_cv_int_divbyzero_sigfpe" in
23153    *yes) value=1;;
23154    *) value=0;;
23155  esac
23156
23157cat >>confdefs.h <<_ACEOF
23158#define INTDIV0_RAISES_SIGFPE $value
23159_ACEOF
23160
23161
23162
23163  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
23164$as_echo_n "checking for inttypes.h... " >&6; }
23165if test "${gl_cv_header_inttypes_h+set}" = set; then
23166  $as_echo_n "(cached) " >&6
23167else
23168  cat >conftest.$ac_ext <<_ACEOF
23169/* confdefs.h.  */
23170_ACEOF
23171cat confdefs.h >>conftest.$ac_ext
23172cat >>conftest.$ac_ext <<_ACEOF
23173/* end confdefs.h.  */
23174#include <sys/types.h>
23175#include <inttypes.h>
23176int
23177main ()
23178{
23179uintmax_t i = (uintmax_t) -1; return !i;
23180  ;
23181  return 0;
23182}
23183_ACEOF
23184rm -f conftest.$ac_objext
23185if { (ac_try="$ac_compile"
23186case "(($ac_try" in
23187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23188  *) ac_try_echo=$ac_try;;
23189esac
23190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23191$as_echo "$ac_try_echo") >&5
23192  (eval "$ac_compile") 2>conftest.er1
23193  ac_status=$?
23194  grep -v '^ *+' conftest.er1 >conftest.err
23195  rm -f conftest.er1
23196  cat conftest.err >&5
23197  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198  (exit $ac_status); } && {
23199	 test -z "$ac_c_werror_flag" ||
23200	 test ! -s conftest.err
23201       } && test -s conftest.$ac_objext; then
23202  gl_cv_header_inttypes_h=yes
23203else
23204  $as_echo "$as_me: failed program was:" >&5
23205sed 's/^/| /' conftest.$ac_ext >&5
23206
23207	gl_cv_header_inttypes_h=no
23208fi
23209
23210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23211fi
23212{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
23213$as_echo "$gl_cv_header_inttypes_h" >&6; }
23214  if test $gl_cv_header_inttypes_h = yes; then
23215
23216cat >>confdefs.h <<_ACEOF
23217#define HAVE_INTTYPES_H_WITH_UINTMAX 1
23218_ACEOF
23219
23220  fi
23221
23222
23223  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
23224$as_echo_n "checking for unsigned long long int... " >&6; }
23225if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
23226  $as_echo_n "(cached) " >&6
23227else
23228  cat >conftest.$ac_ext <<_ACEOF
23229
23230  /* confdefs.h.  */
23231_ACEOF
23232cat confdefs.h >>conftest.$ac_ext
23233cat >>conftest.$ac_ext <<_ACEOF
23234/* end confdefs.h.  */
23235/* Test preprocessor.  */
23236      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23237        error in preprocessor;
23238      #endif
23239      #if ! (18446744073709551615ULL <= -1ull)
23240        error in preprocessor;
23241      #endif
23242      /* Test literals.  */
23243      long long int ll = 9223372036854775807ll;
23244      long long int nll = -9223372036854775807LL;
23245      unsigned long long int ull = 18446744073709551615ULL;
23246      /* Test constant expressions.   */
23247      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23248		     ? 1 : -1)];
23249      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23250		     ? 1 : -1)];
23251      int i = 63;
23252int
23253main ()
23254{
23255/* Test availability of runtime routines for shift and division.  */
23256      long long int llmax = 9223372036854775807ll;
23257      unsigned long long int ullmax = 18446744073709551615ull;
23258      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23259	      | (llmax / ll) | (llmax % ll)
23260	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23261	      | (ullmax / ull) | (ullmax % ull));
23262  ;
23263  return 0;
23264}
23265
23266_ACEOF
23267rm -f conftest.$ac_objext conftest$ac_exeext
23268if { (ac_try="$ac_link"
23269case "(($ac_try" in
23270  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271  *) ac_try_echo=$ac_try;;
23272esac
23273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23274$as_echo "$ac_try_echo") >&5
23275  (eval "$ac_link") 2>conftest.er1
23276  ac_status=$?
23277  grep -v '^ *+' conftest.er1 >conftest.err
23278  rm -f conftest.er1
23279  cat conftest.err >&5
23280  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281  (exit $ac_status); } && {
23282	 test -z "$ac_c_werror_flag" ||
23283	 test ! -s conftest.err
23284       } && test -s conftest$ac_exeext && {
23285	 test "$cross_compiling" = yes ||
23286	 $as_test_x conftest$ac_exeext
23287       }; then
23288  ac_cv_type_unsigned_long_long_int=yes
23289else
23290  $as_echo "$as_me: failed program was:" >&5
23291sed 's/^/| /' conftest.$ac_ext >&5
23292
23293	ac_cv_type_unsigned_long_long_int=no
23294fi
23295
23296rm -rf conftest.dSYM
23297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23298      conftest$ac_exeext conftest.$ac_ext
23299fi
23300{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
23301$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23302  if test $ac_cv_type_unsigned_long_long_int = yes; then
23303
23304cat >>confdefs.h <<\_ACEOF
23305#define HAVE_UNSIGNED_LONG_LONG_INT 1
23306_ACEOF
23307
23308  fi
23309
23310
23311
23312
23313  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
23314
23315    test $ac_cv_type_unsigned_long_long_int = yes \
23316      && ac_type='unsigned long long' \
23317      || ac_type='unsigned long'
23318
23319cat >>confdefs.h <<_ACEOF
23320#define uintmax_t $ac_type
23321_ACEOF
23322
23323  else
23324
23325cat >>confdefs.h <<\_ACEOF
23326#define HAVE_UINTMAX_T 1
23327_ACEOF
23328
23329  fi
23330
23331
23332
23333for ac_header in inttypes.h
23334do
23335as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23336if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23337  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23338$as_echo_n "checking for $ac_header... " >&6; }
23339if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23340  $as_echo_n "(cached) " >&6
23341fi
23342ac_res=`eval 'as_val=${'$as_ac_Header'}
23343		 $as_echo "$as_val"'`
23344	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23345$as_echo "$ac_res" >&6; }
23346else
23347  # Is the header compilable?
23348{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23349$as_echo_n "checking $ac_header usability... " >&6; }
23350cat >conftest.$ac_ext <<_ACEOF
23351/* confdefs.h.  */
23352_ACEOF
23353cat confdefs.h >>conftest.$ac_ext
23354cat >>conftest.$ac_ext <<_ACEOF
23355/* end confdefs.h.  */
23356$ac_includes_default
23357#include <$ac_header>
23358_ACEOF
23359rm -f conftest.$ac_objext
23360if { (ac_try="$ac_compile"
23361case "(($ac_try" in
23362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23363  *) ac_try_echo=$ac_try;;
23364esac
23365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23366$as_echo "$ac_try_echo") >&5
23367  (eval "$ac_compile") 2>conftest.er1
23368  ac_status=$?
23369  grep -v '^ *+' conftest.er1 >conftest.err
23370  rm -f conftest.er1
23371  cat conftest.err >&5
23372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23373  (exit $ac_status); } && {
23374	 test -z "$ac_c_werror_flag" ||
23375	 test ! -s conftest.err
23376       } && test -s conftest.$ac_objext; then
23377  ac_header_compiler=yes
23378else
23379  $as_echo "$as_me: failed program was:" >&5
23380sed 's/^/| /' conftest.$ac_ext >&5
23381
23382	ac_header_compiler=no
23383fi
23384
23385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23387$as_echo "$ac_header_compiler" >&6; }
23388
23389# Is the header present?
23390{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23391$as_echo_n "checking $ac_header presence... " >&6; }
23392cat >conftest.$ac_ext <<_ACEOF
23393/* confdefs.h.  */
23394_ACEOF
23395cat confdefs.h >>conftest.$ac_ext
23396cat >>conftest.$ac_ext <<_ACEOF
23397/* end confdefs.h.  */
23398#include <$ac_header>
23399_ACEOF
23400if { (ac_try="$ac_cpp conftest.$ac_ext"
23401case "(($ac_try" in
23402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23403  *) ac_try_echo=$ac_try;;
23404esac
23405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23406$as_echo "$ac_try_echo") >&5
23407  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23408  ac_status=$?
23409  grep -v '^ *+' conftest.er1 >conftest.err
23410  rm -f conftest.er1
23411  cat conftest.err >&5
23412  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413  (exit $ac_status); } >/dev/null && {
23414	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23415	 test ! -s conftest.err
23416       }; then
23417  ac_header_preproc=yes
23418else
23419  $as_echo "$as_me: failed program was:" >&5
23420sed 's/^/| /' conftest.$ac_ext >&5
23421
23422  ac_header_preproc=no
23423fi
23424
23425rm -f conftest.err conftest.$ac_ext
23426{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23427$as_echo "$ac_header_preproc" >&6; }
23428
23429# So?  What about this header?
23430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23431  yes:no: )
23432    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23433$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23434    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23435$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23436    ac_header_preproc=yes
23437    ;;
23438  no:yes:* )
23439    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23440$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23441    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23442$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23443    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23444$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23445    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23446$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23447    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23448$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23449    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23450$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23451
23452    ;;
23453esac
23454{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23455$as_echo_n "checking for $ac_header... " >&6; }
23456if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23457  $as_echo_n "(cached) " >&6
23458else
23459  eval "$as_ac_Header=\$ac_header_preproc"
23460fi
23461ac_res=`eval 'as_val=${'$as_ac_Header'}
23462		 $as_echo "$as_val"'`
23463	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23464$as_echo "$ac_res" >&6; }
23465
23466fi
23467as_val=`eval 'as_val=${'$as_ac_Header'}
23468		 $as_echo "$as_val"'`
23469   if test "x$as_val" = x""yes; then
23470  cat >>confdefs.h <<_ACEOF
23471#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23472_ACEOF
23473
23474fi
23475
23476done
23477
23478  if test $ac_cv_header_inttypes_h = yes; then
23479    { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
23480$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
23481if test "${gt_cv_inttypes_pri_broken+set}" = set; then
23482  $as_echo_n "(cached) " >&6
23483else
23484
23485        cat >conftest.$ac_ext <<_ACEOF
23486/* confdefs.h.  */
23487_ACEOF
23488cat confdefs.h >>conftest.$ac_ext
23489cat >>conftest.$ac_ext <<_ACEOF
23490/* end confdefs.h.  */
23491#include <inttypes.h>
23492#ifdef PRId32
23493char *p = PRId32;
23494#endif
23495
23496int
23497main ()
23498{
23499
23500  ;
23501  return 0;
23502}
23503_ACEOF
23504rm -f conftest.$ac_objext
23505if { (ac_try="$ac_compile"
23506case "(($ac_try" in
23507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508  *) ac_try_echo=$ac_try;;
23509esac
23510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23511$as_echo "$ac_try_echo") >&5
23512  (eval "$ac_compile") 2>conftest.er1
23513  ac_status=$?
23514  grep -v '^ *+' conftest.er1 >conftest.err
23515  rm -f conftest.er1
23516  cat conftest.err >&5
23517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518  (exit $ac_status); } && {
23519	 test -z "$ac_c_werror_flag" ||
23520	 test ! -s conftest.err
23521       } && test -s conftest.$ac_objext; then
23522  gt_cv_inttypes_pri_broken=no
23523else
23524  $as_echo "$as_me: failed program was:" >&5
23525sed 's/^/| /' conftest.$ac_ext >&5
23526
23527	gt_cv_inttypes_pri_broken=yes
23528fi
23529
23530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531
23532fi
23533{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
23534$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
23535  fi
23536  if test "$gt_cv_inttypes_pri_broken" = yes; then
23537
23538cat >>confdefs.h <<_ACEOF
23539#define PRI_MACROS_BROKEN 1
23540_ACEOF
23541
23542    PRI_MACROS_BROKEN=1
23543  else
23544    PRI_MACROS_BROKEN=0
23545  fi
23546
23547
23548
23549
23550
23551
23552    # Check whether --enable-threads was given.
23553if test "${enable_threads+set}" = set; then
23554  enableval=$enable_threads; gl_use_threads=$enableval
23555else
23556  case "$host_os" in
23557                            osf*) gl_use_threads=no ;;
23558       *)    gl_use_threads=yes ;;
23559     esac
23560
23561fi
23562
23563  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
23564    # For using <pthread.h>:
23565    case "$host_os" in
23566      osf*)
23567        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
23568        # groks <pthread.h>. cc also understands the flag -pthread, but
23569        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
23570        # 2. putting a flag into CPPFLAGS that has an effect on the linker
23571        # causes the AC_TRY_LINK test below to succeed unexpectedly,
23572        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
23573        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
23574        ;;
23575    esac
23576    # Some systems optimize for single-threaded programs by default, and
23577    # need special flags to disable these optimizations. For example, the
23578    # definition of 'errno' in <errno.h>.
23579    case "$host_os" in
23580      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
23581      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
23582    esac
23583  fi
23584
23585
23586
23587
23588
23589      if test "X$prefix" = "XNONE"; then
23590    acl_final_prefix="$ac_default_prefix"
23591  else
23592    acl_final_prefix="$prefix"
23593  fi
23594  if test "X$exec_prefix" = "XNONE"; then
23595    acl_final_exec_prefix='${prefix}'
23596  else
23597    acl_final_exec_prefix="$exec_prefix"
23598  fi
23599  acl_save_prefix="$prefix"
23600  prefix="$acl_final_prefix"
23601  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
23602  prefix="$acl_save_prefix"
23603
23604
23605# Check whether --with-gnu-ld was given.
23606if test "${with_gnu_ld+set}" = set; then
23607  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
23608else
23609  with_gnu_ld=no
23610fi
23611
23612# Prepare PATH_SEPARATOR.
23613# The user is always right.
23614if test "${PATH_SEPARATOR+set}" != set; then
23615  echo "#! /bin/sh" >conf$$.sh
23616  echo  "exit 0"   >>conf$$.sh
23617  chmod +x conf$$.sh
23618  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23619    PATH_SEPARATOR=';'
23620  else
23621    PATH_SEPARATOR=:
23622  fi
23623  rm -f conf$$.sh
23624fi
23625ac_prog=ld
23626if test "$GCC" = yes; then
23627  # Check if gcc -print-prog-name=ld gives a path.
23628  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
23629$as_echo_n "checking for ld used by GCC... " >&6; }
23630  case $host in
23631  *-*-mingw*)
23632    # gcc leaves a trailing carriage return which upsets mingw
23633    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
23634  *)
23635    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
23636  esac
23637  case $ac_prog in
23638    # Accept absolute paths.
23639    [\\/]* | [A-Za-z]:[\\/]*)
23640      re_direlt='/[^/][^/]*/\.\./'
23641      # Canonicalize the path of ld
23642      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
23643      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
23644	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
23645      done
23646      test -z "$LD" && LD="$ac_prog"
23647      ;;
23648  "")
23649    # If it fails, then pretend we aren't using GCC.
23650    ac_prog=ld
23651    ;;
23652  *)
23653    # If it is relative, then search for the first ld in PATH.
23654    with_gnu_ld=unknown
23655    ;;
23656  esac
23657elif test "$with_gnu_ld" = yes; then
23658  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
23659$as_echo_n "checking for GNU ld... " >&6; }
23660else
23661  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
23662$as_echo_n "checking for non-GNU ld... " >&6; }
23663fi
23664if test "${acl_cv_path_LD+set}" = set; then
23665  $as_echo_n "(cached) " >&6
23666else
23667  if test -z "$LD"; then
23668  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
23669  for ac_dir in $PATH; do
23670    test -z "$ac_dir" && ac_dir=.
23671    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
23672      acl_cv_path_LD="$ac_dir/$ac_prog"
23673      # Check to see if the program is GNU ld.  I'd rather use --version,
23674      # but apparently some GNU ld's only accept -v.
23675      # Break only if it was the GNU/non-GNU ld that we prefer.
23676      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
23677      *GNU* | *'with BFD'*)
23678	test "$with_gnu_ld" != no && break ;;
23679      *)
23680	test "$with_gnu_ld" != yes && break ;;
23681      esac
23682    fi
23683  done
23684  IFS="$ac_save_ifs"
23685else
23686  acl_cv_path_LD="$LD" # Let the user override the test with a path.
23687fi
23688fi
23689
23690LD="$acl_cv_path_LD"
23691if test -n "$LD"; then
23692  { $as_echo "$as_me:$LINENO: result: $LD" >&5
23693$as_echo "$LD" >&6; }
23694else
23695  { $as_echo "$as_me:$LINENO: result: no" >&5
23696$as_echo "no" >&6; }
23697fi
23698test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
23699$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
23700   { (exit 1); exit 1; }; }
23701{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
23702$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
23703if test "${acl_cv_prog_gnu_ld+set}" = set; then
23704  $as_echo_n "(cached) " >&6
23705else
23706  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
23707case `$LD -v 2>&1 </dev/null` in
23708*GNU* | *'with BFD'*)
23709  acl_cv_prog_gnu_ld=yes ;;
23710*)
23711  acl_cv_prog_gnu_ld=no ;;
23712esac
23713fi
23714{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
23715$as_echo "$acl_cv_prog_gnu_ld" >&6; }
23716with_gnu_ld=$acl_cv_prog_gnu_ld
23717
23718
23719
23720
23721                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
23722$as_echo_n "checking for shared library run path origin... " >&6; }
23723if test "${acl_cv_rpath+set}" = set; then
23724  $as_echo_n "(cached) " >&6
23725else
23726
23727    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
23728    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
23729    . ./conftest.sh
23730    rm -f ./conftest.sh
23731    acl_cv_rpath=done
23732
23733fi
23734{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
23735$as_echo "$acl_cv_rpath" >&6; }
23736  wl="$acl_cv_wl"
23737  acl_libext="$acl_cv_libext"
23738  acl_shlibext="$acl_cv_shlibext"
23739  acl_libname_spec="$acl_cv_libname_spec"
23740  acl_library_names_spec="$acl_cv_library_names_spec"
23741  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
23742  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
23743  acl_hardcode_direct="$acl_cv_hardcode_direct"
23744  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
23745    # Check whether --enable-rpath was given.
23746if test "${enable_rpath+set}" = set; then
23747  enableval=$enable_rpath; :
23748else
23749  enable_rpath=yes
23750fi
23751
23752
23753
23754                  acl_libdirstem=lib
23755  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
23756  if test -n "$searchpath"; then
23757    acl_save_IFS="${IFS= 	}"; IFS=":"
23758    for searchdir in $searchpath; do
23759      if test -d "$searchdir"; then
23760        case "$searchdir" in
23761          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
23762          *) searchdir=`cd "$searchdir" && pwd`
23763             case "$searchdir" in
23764               */lib64 ) acl_libdirstem=lib64 ;;
23765             esac ;;
23766        esac
23767      fi
23768    done
23769    IFS="$acl_save_IFS"
23770  fi
23771
23772
23773
23774  gl_threads_api=none
23775  LIBTHREAD=
23776  LTLIBTHREAD=
23777  LIBMULTITHREAD=
23778  LTLIBMULTITHREAD=
23779  if test "$gl_use_threads" != no; then
23780        { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
23781$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
23782    gl_have_weak=no
23783    cat >conftest.$ac_ext <<_ACEOF
23784/* confdefs.h.  */
23785_ACEOF
23786cat confdefs.h >>conftest.$ac_ext
23787cat >>conftest.$ac_ext <<_ACEOF
23788/* end confdefs.h.  */
23789extern void xyzzy ();
23790#pragma weak xyzzy
23791int
23792main ()
23793{
23794xyzzy();
23795  ;
23796  return 0;
23797}
23798_ACEOF
23799rm -f conftest.$ac_objext conftest$ac_exeext
23800if { (ac_try="$ac_link"
23801case "(($ac_try" in
23802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803  *) ac_try_echo=$ac_try;;
23804esac
23805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23806$as_echo "$ac_try_echo") >&5
23807  (eval "$ac_link") 2>conftest.er1
23808  ac_status=$?
23809  grep -v '^ *+' conftest.er1 >conftest.err
23810  rm -f conftest.er1
23811  cat conftest.err >&5
23812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813  (exit $ac_status); } && {
23814	 test -z "$ac_c_werror_flag" ||
23815	 test ! -s conftest.err
23816       } && test -s conftest$ac_exeext && {
23817	 test "$cross_compiling" = yes ||
23818	 $as_test_x conftest$ac_exeext
23819       }; then
23820  gl_have_weak=yes
23821else
23822  $as_echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825
23826fi
23827
23828rm -rf conftest.dSYM
23829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23830      conftest$ac_exeext conftest.$ac_ext
23831    { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
23832$as_echo "$gl_have_weak" >&6; }
23833    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
23834      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
23835      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
23836      if test "${ac_cv_header_pthread_h+set}" = set; then
23837  { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23838$as_echo_n "checking for pthread.h... " >&6; }
23839if test "${ac_cv_header_pthread_h+set}" = set; then
23840  $as_echo_n "(cached) " >&6
23841fi
23842{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23843$as_echo "$ac_cv_header_pthread_h" >&6; }
23844else
23845  # Is the header compilable?
23846{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23847$as_echo_n "checking pthread.h usability... " >&6; }
23848cat >conftest.$ac_ext <<_ACEOF
23849/* confdefs.h.  */
23850_ACEOF
23851cat confdefs.h >>conftest.$ac_ext
23852cat >>conftest.$ac_ext <<_ACEOF
23853/* end confdefs.h.  */
23854$ac_includes_default
23855#include <pthread.h>
23856_ACEOF
23857rm -f conftest.$ac_objext
23858if { (ac_try="$ac_compile"
23859case "(($ac_try" in
23860  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861  *) ac_try_echo=$ac_try;;
23862esac
23863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23864$as_echo "$ac_try_echo") >&5
23865  (eval "$ac_compile") 2>conftest.er1
23866  ac_status=$?
23867  grep -v '^ *+' conftest.er1 >conftest.err
23868  rm -f conftest.er1
23869  cat conftest.err >&5
23870  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871  (exit $ac_status); } && {
23872	 test -z "$ac_c_werror_flag" ||
23873	 test ! -s conftest.err
23874       } && test -s conftest.$ac_objext; then
23875  ac_header_compiler=yes
23876else
23877  $as_echo "$as_me: failed program was:" >&5
23878sed 's/^/| /' conftest.$ac_ext >&5
23879
23880	ac_header_compiler=no
23881fi
23882
23883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23885$as_echo "$ac_header_compiler" >&6; }
23886
23887# Is the header present?
23888{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23889$as_echo_n "checking pthread.h presence... " >&6; }
23890cat >conftest.$ac_ext <<_ACEOF
23891/* confdefs.h.  */
23892_ACEOF
23893cat confdefs.h >>conftest.$ac_ext
23894cat >>conftest.$ac_ext <<_ACEOF
23895/* end confdefs.h.  */
23896#include <pthread.h>
23897_ACEOF
23898if { (ac_try="$ac_cpp conftest.$ac_ext"
23899case "(($ac_try" in
23900  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901  *) ac_try_echo=$ac_try;;
23902esac
23903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904$as_echo "$ac_try_echo") >&5
23905  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23906  ac_status=$?
23907  grep -v '^ *+' conftest.er1 >conftest.err
23908  rm -f conftest.er1
23909  cat conftest.err >&5
23910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911  (exit $ac_status); } >/dev/null && {
23912	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23913	 test ! -s conftest.err
23914       }; then
23915  ac_header_preproc=yes
23916else
23917  $as_echo "$as_me: failed program was:" >&5
23918sed 's/^/| /' conftest.$ac_ext >&5
23919
23920  ac_header_preproc=no
23921fi
23922
23923rm -f conftest.err conftest.$ac_ext
23924{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23925$as_echo "$ac_header_preproc" >&6; }
23926
23927# So?  What about this header?
23928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23929  yes:no: )
23930    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23931$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23932    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23933$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23934    ac_header_preproc=yes
23935    ;;
23936  no:yes:* )
23937    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23938$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23939    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23940$as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23941    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23942$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23943    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23944$as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23945    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23946$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23947    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23948$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23949
23950    ;;
23951esac
23952{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23953$as_echo_n "checking for pthread.h... " >&6; }
23954if test "${ac_cv_header_pthread_h+set}" = set; then
23955  $as_echo_n "(cached) " >&6
23956else
23957  ac_cv_header_pthread_h=$ac_header_preproc
23958fi
23959{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23960$as_echo "$ac_cv_header_pthread_h" >&6; }
23961
23962fi
23963if test "x$ac_cv_header_pthread_h" = x""yes; then
23964  gl_have_pthread_h=yes
23965else
23966  gl_have_pthread_h=no
23967fi
23968
23969
23970      if test "$gl_have_pthread_h" = yes; then
23971        # Other possible tests:
23972        #   -lpthreads (FSU threads, PCthreads)
23973        #   -lgthreads
23974        gl_have_pthread=
23975        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
23976        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
23977        # the second one only in libpthread, and lock.c needs it.
23978        cat >conftest.$ac_ext <<_ACEOF
23979/* confdefs.h.  */
23980_ACEOF
23981cat confdefs.h >>conftest.$ac_ext
23982cat >>conftest.$ac_ext <<_ACEOF
23983/* end confdefs.h.  */
23984#include <pthread.h>
23985int
23986main ()
23987{
23988pthread_mutex_lock((pthread_mutex_t*)0);
23989           pthread_mutexattr_init((pthread_mutexattr_t*)0);
23990  ;
23991  return 0;
23992}
23993_ACEOF
23994rm -f conftest.$ac_objext conftest$ac_exeext
23995if { (ac_try="$ac_link"
23996case "(($ac_try" in
23997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23998  *) ac_try_echo=$ac_try;;
23999esac
24000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24001$as_echo "$ac_try_echo") >&5
24002  (eval "$ac_link") 2>conftest.er1
24003  ac_status=$?
24004  grep -v '^ *+' conftest.er1 >conftest.err
24005  rm -f conftest.er1
24006  cat conftest.err >&5
24007  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008  (exit $ac_status); } && {
24009	 test -z "$ac_c_werror_flag" ||
24010	 test ! -s conftest.err
24011       } && test -s conftest$ac_exeext && {
24012	 test "$cross_compiling" = yes ||
24013	 $as_test_x conftest$ac_exeext
24014       }; then
24015  gl_have_pthread=yes
24016else
24017  $as_echo "$as_me: failed program was:" >&5
24018sed 's/^/| /' conftest.$ac_ext >&5
24019
24020
24021fi
24022
24023rm -rf conftest.dSYM
24024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24025      conftest$ac_exeext conftest.$ac_ext
24026        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
24027        # since it is defined as a macro on OSF/1.)
24028        if test -n "$gl_have_pthread"; then
24029          # The program links fine without libpthread. But it may actually
24030          # need to link with libpthread in order to create multiple threads.
24031          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
24032$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
24033if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
24034  $as_echo_n "(cached) " >&6
24035else
24036  ac_check_lib_save_LIBS=$LIBS
24037LIBS="-lpthread  $LIBS"
24038cat >conftest.$ac_ext <<_ACEOF
24039/* confdefs.h.  */
24040_ACEOF
24041cat confdefs.h >>conftest.$ac_ext
24042cat >>conftest.$ac_ext <<_ACEOF
24043/* end confdefs.h.  */
24044
24045/* Override any GCC internal prototype to avoid an error.
24046   Use char because int might match the return type of a GCC
24047   builtin and then its argument prototype would still apply.  */
24048#ifdef __cplusplus
24049extern "C"
24050#endif
24051char pthread_kill ();
24052int
24053main ()
24054{
24055return pthread_kill ();
24056  ;
24057  return 0;
24058}
24059_ACEOF
24060rm -f conftest.$ac_objext conftest$ac_exeext
24061if { (ac_try="$ac_link"
24062case "(($ac_try" in
24063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064  *) ac_try_echo=$ac_try;;
24065esac
24066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24067$as_echo "$ac_try_echo") >&5
24068  (eval "$ac_link") 2>conftest.er1
24069  ac_status=$?
24070  grep -v '^ *+' conftest.er1 >conftest.err
24071  rm -f conftest.er1
24072  cat conftest.err >&5
24073  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074  (exit $ac_status); } && {
24075	 test -z "$ac_c_werror_flag" ||
24076	 test ! -s conftest.err
24077       } && test -s conftest$ac_exeext && {
24078	 test "$cross_compiling" = yes ||
24079	 $as_test_x conftest$ac_exeext
24080       }; then
24081  ac_cv_lib_pthread_pthread_kill=yes
24082else
24083  $as_echo "$as_me: failed program was:" >&5
24084sed 's/^/| /' conftest.$ac_ext >&5
24085
24086	ac_cv_lib_pthread_pthread_kill=no
24087fi
24088
24089rm -rf conftest.dSYM
24090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24091      conftest$ac_exeext conftest.$ac_ext
24092LIBS=$ac_check_lib_save_LIBS
24093fi
24094{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
24095$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
24096if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
24097  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
24098             # On Solaris and HP-UX, most pthread functions exist also in libc.
24099             # Therefore pthread_in_use() needs to actually try to create a
24100             # thread: pthread_create from libc will fail, whereas
24101             # pthread_create will actually create a thread.
24102             case "$host_os" in
24103               solaris* | hpux*)
24104
24105cat >>confdefs.h <<\_ACEOF
24106#define PTHREAD_IN_USE_DETECTION_HARD 1
24107_ACEOF
24108
24109             esac
24110
24111fi
24112
24113        else
24114          # Some library is needed. Try libpthread and libc_r.
24115          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
24116$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
24117if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
24118  $as_echo_n "(cached) " >&6
24119else
24120  ac_check_lib_save_LIBS=$LIBS
24121LIBS="-lpthread  $LIBS"
24122cat >conftest.$ac_ext <<_ACEOF
24123/* confdefs.h.  */
24124_ACEOF
24125cat confdefs.h >>conftest.$ac_ext
24126cat >>conftest.$ac_ext <<_ACEOF
24127/* end confdefs.h.  */
24128
24129/* Override any GCC internal prototype to avoid an error.
24130   Use char because int might match the return type of a GCC
24131   builtin and then its argument prototype would still apply.  */
24132#ifdef __cplusplus
24133extern "C"
24134#endif
24135char pthread_kill ();
24136int
24137main ()
24138{
24139return pthread_kill ();
24140  ;
24141  return 0;
24142}
24143_ACEOF
24144rm -f conftest.$ac_objext conftest$ac_exeext
24145if { (ac_try="$ac_link"
24146case "(($ac_try" in
24147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24148  *) ac_try_echo=$ac_try;;
24149esac
24150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24151$as_echo "$ac_try_echo") >&5
24152  (eval "$ac_link") 2>conftest.er1
24153  ac_status=$?
24154  grep -v '^ *+' conftest.er1 >conftest.err
24155  rm -f conftest.er1
24156  cat conftest.err >&5
24157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158  (exit $ac_status); } && {
24159	 test -z "$ac_c_werror_flag" ||
24160	 test ! -s conftest.err
24161       } && test -s conftest$ac_exeext && {
24162	 test "$cross_compiling" = yes ||
24163	 $as_test_x conftest$ac_exeext
24164       }; then
24165  ac_cv_lib_pthread_pthread_kill=yes
24166else
24167  $as_echo "$as_me: failed program was:" >&5
24168sed 's/^/| /' conftest.$ac_ext >&5
24169
24170	ac_cv_lib_pthread_pthread_kill=no
24171fi
24172
24173rm -rf conftest.dSYM
24174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24175      conftest$ac_exeext conftest.$ac_ext
24176LIBS=$ac_check_lib_save_LIBS
24177fi
24178{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
24179$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
24180if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
24181  gl_have_pthread=yes
24182             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
24183             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
24184fi
24185
24186          if test -z "$gl_have_pthread"; then
24187            # For FreeBSD 4.
24188            { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
24189$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
24190if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
24191  $as_echo_n "(cached) " >&6
24192else
24193  ac_check_lib_save_LIBS=$LIBS
24194LIBS="-lc_r  $LIBS"
24195cat >conftest.$ac_ext <<_ACEOF
24196/* confdefs.h.  */
24197_ACEOF
24198cat confdefs.h >>conftest.$ac_ext
24199cat >>conftest.$ac_ext <<_ACEOF
24200/* end confdefs.h.  */
24201
24202/* Override any GCC internal prototype to avoid an error.
24203   Use char because int might match the return type of a GCC
24204   builtin and then its argument prototype would still apply.  */
24205#ifdef __cplusplus
24206extern "C"
24207#endif
24208char pthread_kill ();
24209int
24210main ()
24211{
24212return pthread_kill ();
24213  ;
24214  return 0;
24215}
24216_ACEOF
24217rm -f conftest.$ac_objext conftest$ac_exeext
24218if { (ac_try="$ac_link"
24219case "(($ac_try" in
24220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24221  *) ac_try_echo=$ac_try;;
24222esac
24223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24224$as_echo "$ac_try_echo") >&5
24225  (eval "$ac_link") 2>conftest.er1
24226  ac_status=$?
24227  grep -v '^ *+' conftest.er1 >conftest.err
24228  rm -f conftest.er1
24229  cat conftest.err >&5
24230  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231  (exit $ac_status); } && {
24232	 test -z "$ac_c_werror_flag" ||
24233	 test ! -s conftest.err
24234       } && test -s conftest$ac_exeext && {
24235	 test "$cross_compiling" = yes ||
24236	 $as_test_x conftest$ac_exeext
24237       }; then
24238  ac_cv_lib_c_r_pthread_kill=yes
24239else
24240  $as_echo "$as_me: failed program was:" >&5
24241sed 's/^/| /' conftest.$ac_ext >&5
24242
24243	ac_cv_lib_c_r_pthread_kill=no
24244fi
24245
24246rm -rf conftest.dSYM
24247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24248      conftest$ac_exeext conftest.$ac_ext
24249LIBS=$ac_check_lib_save_LIBS
24250fi
24251{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
24252$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
24253if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
24254  gl_have_pthread=yes
24255               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
24256               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
24257fi
24258
24259          fi
24260        fi
24261        if test -n "$gl_have_pthread"; then
24262          gl_threads_api=posix
24263
24264cat >>confdefs.h <<\_ACEOF
24265#define USE_POSIX_THREADS 1
24266_ACEOF
24267
24268          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
24269            if test $gl_have_weak = yes; then
24270
24271cat >>confdefs.h <<\_ACEOF
24272#define USE_POSIX_THREADS_WEAK 1
24273_ACEOF
24274
24275              LIBTHREAD=
24276              LTLIBTHREAD=
24277            fi
24278          fi
24279          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
24280          # pthread_rwlock_* functions.
24281          { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
24282$as_echo_n "checking for pthread_rwlock_t... " >&6; }
24283if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
24284  $as_echo_n "(cached) " >&6
24285else
24286  ac_cv_type_pthread_rwlock_t=no
24287cat >conftest.$ac_ext <<_ACEOF
24288/* confdefs.h.  */
24289_ACEOF
24290cat confdefs.h >>conftest.$ac_ext
24291cat >>conftest.$ac_ext <<_ACEOF
24292/* end confdefs.h.  */
24293#include <pthread.h>
24294
24295int
24296main ()
24297{
24298if (sizeof (pthread_rwlock_t))
24299       return 0;
24300  ;
24301  return 0;
24302}
24303_ACEOF
24304rm -f conftest.$ac_objext
24305if { (ac_try="$ac_compile"
24306case "(($ac_try" in
24307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308  *) ac_try_echo=$ac_try;;
24309esac
24310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24311$as_echo "$ac_try_echo") >&5
24312  (eval "$ac_compile") 2>conftest.er1
24313  ac_status=$?
24314  grep -v '^ *+' conftest.er1 >conftest.err
24315  rm -f conftest.er1
24316  cat conftest.err >&5
24317  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318  (exit $ac_status); } && {
24319	 test -z "$ac_c_werror_flag" ||
24320	 test ! -s conftest.err
24321       } && test -s conftest.$ac_objext; then
24322  cat >conftest.$ac_ext <<_ACEOF
24323/* confdefs.h.  */
24324_ACEOF
24325cat confdefs.h >>conftest.$ac_ext
24326cat >>conftest.$ac_ext <<_ACEOF
24327/* end confdefs.h.  */
24328#include <pthread.h>
24329
24330int
24331main ()
24332{
24333if (sizeof ((pthread_rwlock_t)))
24334	  return 0;
24335  ;
24336  return 0;
24337}
24338_ACEOF
24339rm -f conftest.$ac_objext
24340if { (ac_try="$ac_compile"
24341case "(($ac_try" in
24342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24343  *) ac_try_echo=$ac_try;;
24344esac
24345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24346$as_echo "$ac_try_echo") >&5
24347  (eval "$ac_compile") 2>conftest.er1
24348  ac_status=$?
24349  grep -v '^ *+' conftest.er1 >conftest.err
24350  rm -f conftest.er1
24351  cat conftest.err >&5
24352  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353  (exit $ac_status); } && {
24354	 test -z "$ac_c_werror_flag" ||
24355	 test ! -s conftest.err
24356       } && test -s conftest.$ac_objext; then
24357  :
24358else
24359  $as_echo "$as_me: failed program was:" >&5
24360sed 's/^/| /' conftest.$ac_ext >&5
24361
24362	ac_cv_type_pthread_rwlock_t=yes
24363fi
24364
24365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24366else
24367  $as_echo "$as_me: failed program was:" >&5
24368sed 's/^/| /' conftest.$ac_ext >&5
24369
24370
24371fi
24372
24373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24374fi
24375{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
24376$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
24377if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
24378
24379cat >>confdefs.h <<\_ACEOF
24380#define HAVE_PTHREAD_RWLOCK 1
24381_ACEOF
24382
24383fi
24384
24385          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24386          cat >conftest.$ac_ext <<_ACEOF
24387/* confdefs.h.  */
24388_ACEOF
24389cat confdefs.h >>conftest.$ac_ext
24390cat >>conftest.$ac_ext <<_ACEOF
24391/* end confdefs.h.  */
24392#include <pthread.h>
24393int
24394main ()
24395{
24396#if __FreeBSD__ == 4
24397error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24398#else
24399int x = (int)PTHREAD_MUTEX_RECURSIVE;
24400return !x;
24401#endif
24402  ;
24403  return 0;
24404}
24405_ACEOF
24406rm -f conftest.$ac_objext
24407if { (ac_try="$ac_compile"
24408case "(($ac_try" in
24409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410  *) ac_try_echo=$ac_try;;
24411esac
24412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24413$as_echo "$ac_try_echo") >&5
24414  (eval "$ac_compile") 2>conftest.er1
24415  ac_status=$?
24416  grep -v '^ *+' conftest.er1 >conftest.err
24417  rm -f conftest.er1
24418  cat conftest.err >&5
24419  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24420  (exit $ac_status); } && {
24421	 test -z "$ac_c_werror_flag" ||
24422	 test ! -s conftest.err
24423       } && test -s conftest.$ac_objext; then
24424
24425cat >>confdefs.h <<\_ACEOF
24426#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
24427_ACEOF
24428
24429else
24430  $as_echo "$as_me: failed program was:" >&5
24431sed 's/^/| /' conftest.$ac_ext >&5
24432
24433
24434fi
24435
24436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437        fi
24438      fi
24439    fi
24440    if test -z "$gl_have_pthread"; then
24441      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
24442        gl_have_solaristhread=
24443        gl_save_LIBS="$LIBS"
24444        LIBS="$LIBS -lthread"
24445        cat >conftest.$ac_ext <<_ACEOF
24446/* confdefs.h.  */
24447_ACEOF
24448cat confdefs.h >>conftest.$ac_ext
24449cat >>conftest.$ac_ext <<_ACEOF
24450/* end confdefs.h.  */
24451#include <thread.h>
24452#include <synch.h>
24453int
24454main ()
24455{
24456thr_self();
24457  ;
24458  return 0;
24459}
24460_ACEOF
24461rm -f conftest.$ac_objext conftest$ac_exeext
24462if { (ac_try="$ac_link"
24463case "(($ac_try" in
24464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465  *) ac_try_echo=$ac_try;;
24466esac
24467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24468$as_echo "$ac_try_echo") >&5
24469  (eval "$ac_link") 2>conftest.er1
24470  ac_status=$?
24471  grep -v '^ *+' conftest.er1 >conftest.err
24472  rm -f conftest.er1
24473  cat conftest.err >&5
24474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475  (exit $ac_status); } && {
24476	 test -z "$ac_c_werror_flag" ||
24477	 test ! -s conftest.err
24478       } && test -s conftest$ac_exeext && {
24479	 test "$cross_compiling" = yes ||
24480	 $as_test_x conftest$ac_exeext
24481       }; then
24482  gl_have_solaristhread=yes
24483else
24484  $as_echo "$as_me: failed program was:" >&5
24485sed 's/^/| /' conftest.$ac_ext >&5
24486
24487
24488fi
24489
24490rm -rf conftest.dSYM
24491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24492      conftest$ac_exeext conftest.$ac_ext
24493        LIBS="$gl_save_LIBS"
24494        if test -n "$gl_have_solaristhread"; then
24495          gl_threads_api=solaris
24496          LIBTHREAD=-lthread
24497          LTLIBTHREAD=-lthread
24498          LIBMULTITHREAD="$LIBTHREAD"
24499          LTLIBMULTITHREAD="$LTLIBTHREAD"
24500
24501cat >>confdefs.h <<\_ACEOF
24502#define USE_SOLARIS_THREADS 1
24503_ACEOF
24504
24505          if test $gl_have_weak = yes; then
24506
24507cat >>confdefs.h <<\_ACEOF
24508#define USE_SOLARIS_THREADS_WEAK 1
24509_ACEOF
24510
24511            LIBTHREAD=
24512            LTLIBTHREAD=
24513          fi
24514        fi
24515      fi
24516    fi
24517    if test "$gl_use_threads" = pth; then
24518      gl_save_CPPFLAGS="$CPPFLAGS"
24519
24520
24521
24522
24523
24524  { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
24525$as_echo_n "checking how to link with libpth... " >&6; }
24526if test "${ac_cv_libpth_libs+set}" = set; then
24527  $as_echo_n "(cached) " >&6
24528else
24529
24530
24531
24532
24533
24534    use_additional=yes
24535
24536  acl_save_prefix="$prefix"
24537  prefix="$acl_final_prefix"
24538  acl_save_exec_prefix="$exec_prefix"
24539  exec_prefix="$acl_final_exec_prefix"
24540
24541    eval additional_includedir=\"$includedir\"
24542    eval additional_libdir=\"$libdir\"
24543
24544  exec_prefix="$acl_save_exec_prefix"
24545  prefix="$acl_save_prefix"
24546
24547
24548# Check whether --with-libpth-prefix was given.
24549if test "${with_libpth_prefix+set}" = set; then
24550  withval=$with_libpth_prefix;
24551    if test "X$withval" = "Xno"; then
24552      use_additional=no
24553    else
24554      if test "X$withval" = "X"; then
24555
24556  acl_save_prefix="$prefix"
24557  prefix="$acl_final_prefix"
24558  acl_save_exec_prefix="$exec_prefix"
24559  exec_prefix="$acl_final_exec_prefix"
24560
24561          eval additional_includedir=\"$includedir\"
24562          eval additional_libdir=\"$libdir\"
24563
24564  exec_prefix="$acl_save_exec_prefix"
24565  prefix="$acl_save_prefix"
24566
24567      else
24568        additional_includedir="$withval/include"
24569        additional_libdir="$withval/$acl_libdirstem"
24570      fi
24571    fi
24572
24573fi
24574
24575      LIBPTH=
24576  LTLIBPTH=
24577  INCPTH=
24578  LIBPTH_PREFIX=
24579  rpathdirs=
24580  ltrpathdirs=
24581  names_already_handled=
24582  names_next_round='pth '
24583  while test -n "$names_next_round"; do
24584    names_this_round="$names_next_round"
24585    names_next_round=
24586    for name in $names_this_round; do
24587      already_handled=
24588      for n in $names_already_handled; do
24589        if test "$n" = "$name"; then
24590          already_handled=yes
24591          break
24592        fi
24593      done
24594      if test -z "$already_handled"; then
24595        names_already_handled="$names_already_handled $name"
24596                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
24597        eval value=\"\$HAVE_LIB$uppername\"
24598        if test -n "$value"; then
24599          if test "$value" = yes; then
24600            eval value=\"\$LIB$uppername\"
24601            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
24602            eval value=\"\$LTLIB$uppername\"
24603            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
24604          else
24605                                    :
24606          fi
24607        else
24608                              found_dir=
24609          found_la=
24610          found_so=
24611          found_a=
24612          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
24613          if test -n "$acl_shlibext"; then
24614            shrext=".$acl_shlibext"             # typically: shrext=.so
24615          else
24616            shrext=
24617          fi
24618          if test $use_additional = yes; then
24619            dir="$additional_libdir"
24620                                    if test -n "$acl_shlibext"; then
24621              if test -f "$dir/$libname$shrext"; then
24622                found_dir="$dir"
24623                found_so="$dir/$libname$shrext"
24624              else
24625                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24626                  ver=`(cd "$dir" && \
24627                        for f in "$libname$shrext".*; do echo "$f"; done \
24628                        | sed -e "s,^$libname$shrext\\\\.,," \
24629                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24630                        | sed 1q ) 2>/dev/null`
24631                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24632                    found_dir="$dir"
24633                    found_so="$dir/$libname$shrext.$ver"
24634                  fi
24635                else
24636                  eval library_names=\"$acl_library_names_spec\"
24637                  for f in $library_names; do
24638                    if test -f "$dir/$f"; then
24639                      found_dir="$dir"
24640                      found_so="$dir/$f"
24641                      break
24642                    fi
24643                  done
24644                fi
24645              fi
24646            fi
24647                        if test "X$found_dir" = "X"; then
24648              if test -f "$dir/$libname.$acl_libext"; then
24649                found_dir="$dir"
24650                found_a="$dir/$libname.$acl_libext"
24651              fi
24652            fi
24653            if test "X$found_dir" != "X"; then
24654              if test -f "$dir/$libname.la"; then
24655                found_la="$dir/$libname.la"
24656              fi
24657            fi
24658          fi
24659          if test "X$found_dir" = "X"; then
24660            for x in $LDFLAGS $LTLIBPTH; do
24661
24662  acl_save_prefix="$prefix"
24663  prefix="$acl_final_prefix"
24664  acl_save_exec_prefix="$exec_prefix"
24665  exec_prefix="$acl_final_exec_prefix"
24666  eval x=\"$x\"
24667  exec_prefix="$acl_save_exec_prefix"
24668  prefix="$acl_save_prefix"
24669
24670              case "$x" in
24671                -L*)
24672                  dir=`echo "X$x" | sed -e 's/^X-L//'`
24673                                    if test -n "$acl_shlibext"; then
24674                    if test -f "$dir/$libname$shrext"; then
24675                      found_dir="$dir"
24676                      found_so="$dir/$libname$shrext"
24677                    else
24678                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
24679                        ver=`(cd "$dir" && \
24680                              for f in "$libname$shrext".*; do echo "$f"; done \
24681                              | sed -e "s,^$libname$shrext\\\\.,," \
24682                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
24683                              | sed 1q ) 2>/dev/null`
24684                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
24685                          found_dir="$dir"
24686                          found_so="$dir/$libname$shrext.$ver"
24687                        fi
24688                      else
24689                        eval library_names=\"$acl_library_names_spec\"
24690                        for f in $library_names; do
24691                          if test -f "$dir/$f"; then
24692                            found_dir="$dir"
24693                            found_so="$dir/$f"
24694                            break
24695                          fi
24696                        done
24697                      fi
24698                    fi
24699                  fi
24700                                    if test "X$found_dir" = "X"; then
24701                    if test -f "$dir/$libname.$acl_libext"; then
24702                      found_dir="$dir"
24703                      found_a="$dir/$libname.$acl_libext"
24704                    fi
24705                  fi
24706                  if test "X$found_dir" != "X"; then
24707                    if test -f "$dir/$libname.la"; then
24708                      found_la="$dir/$libname.la"
24709                    fi
24710                  fi
24711                  ;;
24712              esac
24713              if test "X$found_dir" != "X"; then
24714                break
24715              fi
24716            done
24717          fi
24718          if test "X$found_dir" != "X"; then
24719                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
24720            if test "X$found_so" != "X"; then
24721                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
24722                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
24723              else
24724                                                                                haveit=
24725                for x in $ltrpathdirs; do
24726                  if test "X$x" = "X$found_dir"; then
24727                    haveit=yes
24728                    break
24729                  fi
24730                done
24731                if test -z "$haveit"; then
24732                  ltrpathdirs="$ltrpathdirs $found_dir"
24733                fi
24734                                if test "$acl_hardcode_direct" = yes; then
24735                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
24736                else
24737                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
24738                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
24739                                                            haveit=
24740                    for x in $rpathdirs; do
24741                      if test "X$x" = "X$found_dir"; then
24742                        haveit=yes
24743                        break
24744                      fi
24745                    done
24746                    if test -z "$haveit"; then
24747                      rpathdirs="$rpathdirs $found_dir"
24748                    fi
24749                  else
24750                                                                                haveit=
24751                    for x in $LDFLAGS $LIBPTH; do
24752
24753  acl_save_prefix="$prefix"
24754  prefix="$acl_final_prefix"
24755  acl_save_exec_prefix="$exec_prefix"
24756  exec_prefix="$acl_final_exec_prefix"
24757  eval x=\"$x\"
24758  exec_prefix="$acl_save_exec_prefix"
24759  prefix="$acl_save_prefix"
24760
24761                      if test "X$x" = "X-L$found_dir"; then
24762                        haveit=yes
24763                        break
24764                      fi
24765                    done
24766                    if test -z "$haveit"; then
24767                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
24768                    fi
24769                    if test "$acl_hardcode_minus_L" != no; then
24770                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
24771                    else
24772                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
24773                    fi
24774                  fi
24775                fi
24776              fi
24777            else
24778              if test "X$found_a" != "X"; then
24779                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
24780              else
24781                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
24782              fi
24783            fi
24784                        additional_includedir=
24785            case "$found_dir" in
24786              */$acl_libdirstem | */$acl_libdirstem/)
24787                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
24788                LIBPTH_PREFIX="$basedir"
24789                additional_includedir="$basedir/include"
24790                ;;
24791            esac
24792            if test "X$additional_includedir" != "X"; then
24793                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
24794                haveit=
24795                if test "X$additional_includedir" = "X/usr/local/include"; then
24796                  if test -n "$GCC"; then
24797                    case $host_os in
24798                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24799                    esac
24800                  fi
24801                fi
24802                if test -z "$haveit"; then
24803                  for x in $CPPFLAGS $INCPTH; do
24804
24805  acl_save_prefix="$prefix"
24806  prefix="$acl_final_prefix"
24807  acl_save_exec_prefix="$exec_prefix"
24808  exec_prefix="$acl_final_exec_prefix"
24809  eval x=\"$x\"
24810  exec_prefix="$acl_save_exec_prefix"
24811  prefix="$acl_save_prefix"
24812
24813                    if test "X$x" = "X-I$additional_includedir"; then
24814                      haveit=yes
24815                      break
24816                    fi
24817                  done
24818                  if test -z "$haveit"; then
24819                    if test -d "$additional_includedir"; then
24820                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
24821                    fi
24822                  fi
24823                fi
24824              fi
24825            fi
24826                        if test -n "$found_la"; then
24827                                                        save_libdir="$libdir"
24828              case "$found_la" in
24829                */* | *\\*) . "$found_la" ;;
24830                *) . "./$found_la" ;;
24831              esac
24832              libdir="$save_libdir"
24833                            for dep in $dependency_libs; do
24834                case "$dep" in
24835                  -L*)
24836                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
24837                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
24838                      haveit=
24839                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
24840                        if test -n "$GCC"; then
24841                          case $host_os in
24842                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
24843                          esac
24844                        fi
24845                      fi
24846                      if test -z "$haveit"; then
24847                        haveit=
24848                        for x in $LDFLAGS $LIBPTH; do
24849
24850  acl_save_prefix="$prefix"
24851  prefix="$acl_final_prefix"
24852  acl_save_exec_prefix="$exec_prefix"
24853  exec_prefix="$acl_final_exec_prefix"
24854  eval x=\"$x\"
24855  exec_prefix="$acl_save_exec_prefix"
24856  prefix="$acl_save_prefix"
24857
24858                          if test "X$x" = "X-L$additional_libdir"; then
24859                            haveit=yes
24860                            break
24861                          fi
24862                        done
24863                        if test -z "$haveit"; then
24864                          if test -d "$additional_libdir"; then
24865                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
24866                          fi
24867                        fi
24868                        haveit=
24869                        for x in $LDFLAGS $LTLIBPTH; do
24870
24871  acl_save_prefix="$prefix"
24872  prefix="$acl_final_prefix"
24873  acl_save_exec_prefix="$exec_prefix"
24874  exec_prefix="$acl_final_exec_prefix"
24875  eval x=\"$x\"
24876  exec_prefix="$acl_save_exec_prefix"
24877  prefix="$acl_save_prefix"
24878
24879                          if test "X$x" = "X-L$additional_libdir"; then
24880                            haveit=yes
24881                            break
24882                          fi
24883                        done
24884                        if test -z "$haveit"; then
24885                          if test -d "$additional_libdir"; then
24886                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
24887                          fi
24888                        fi
24889                      fi
24890                    fi
24891                    ;;
24892                  -R*)
24893                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
24894                    if test "$enable_rpath" != no; then
24895                                                                  haveit=
24896                      for x in $rpathdirs; do
24897                        if test "X$x" = "X$dir"; then
24898                          haveit=yes
24899                          break
24900                        fi
24901                      done
24902                      if test -z "$haveit"; then
24903                        rpathdirs="$rpathdirs $dir"
24904                      fi
24905                                                                  haveit=
24906                      for x in $ltrpathdirs; do
24907                        if test "X$x" = "X$dir"; then
24908                          haveit=yes
24909                          break
24910                        fi
24911                      done
24912                      if test -z "$haveit"; then
24913                        ltrpathdirs="$ltrpathdirs $dir"
24914                      fi
24915                    fi
24916                    ;;
24917                  -l*)
24918                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
24919                    ;;
24920                  *.la)
24921                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
24922                    ;;
24923                  *)
24924                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
24925                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
24926                    ;;
24927                esac
24928              done
24929            fi
24930          else
24931                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
24932            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
24933          fi
24934        fi
24935      fi
24936    done
24937  done
24938  if test "X$rpathdirs" != "X"; then
24939    if test -n "$acl_hardcode_libdir_separator"; then
24940                        alldirs=
24941      for found_dir in $rpathdirs; do
24942        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
24943      done
24944            acl_save_libdir="$libdir"
24945      libdir="$alldirs"
24946      eval flag=\"$acl_hardcode_libdir_flag_spec\"
24947      libdir="$acl_save_libdir"
24948      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
24949    else
24950            for found_dir in $rpathdirs; do
24951        acl_save_libdir="$libdir"
24952        libdir="$found_dir"
24953        eval flag=\"$acl_hardcode_libdir_flag_spec\"
24954        libdir="$acl_save_libdir"
24955        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
24956      done
24957    fi
24958  fi
24959  if test "X$ltrpathdirs" != "X"; then
24960            for found_dir in $ltrpathdirs; do
24961      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
24962    done
24963  fi
24964
24965    ac_cv_libpth_libs="$LIBPTH"
24966    ac_cv_libpth_ltlibs="$LTLIBPTH"
24967    ac_cv_libpth_cppflags="$INCPTH"
24968    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
24969
24970fi
24971{ $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
24972$as_echo "$ac_cv_libpth_libs" >&6; }
24973  LIBPTH="$ac_cv_libpth_libs"
24974  LTLIBPTH="$ac_cv_libpth_ltlibs"
24975  INCPTH="$ac_cv_libpth_cppflags"
24976  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
24977
24978  for element in $INCPTH; do
24979    haveit=
24980    for x in $CPPFLAGS; do
24981
24982  acl_save_prefix="$prefix"
24983  prefix="$acl_final_prefix"
24984  acl_save_exec_prefix="$exec_prefix"
24985  exec_prefix="$acl_final_exec_prefix"
24986  eval x=\"$x\"
24987  exec_prefix="$acl_save_exec_prefix"
24988  prefix="$acl_save_prefix"
24989
24990      if test "X$x" = "X$element"; then
24991        haveit=yes
24992        break
24993      fi
24994    done
24995    if test -z "$haveit"; then
24996      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
24997    fi
24998  done
24999
25000
25001
25002
25003      HAVE_LIBPTH=yes
25004
25005
25006
25007      gl_have_pth=
25008      gl_save_LIBS="$LIBS"
25009      LIBS="$LIBS -lpth"
25010      cat >conftest.$ac_ext <<_ACEOF
25011/* confdefs.h.  */
25012_ACEOF
25013cat confdefs.h >>conftest.$ac_ext
25014cat >>conftest.$ac_ext <<_ACEOF
25015/* end confdefs.h.  */
25016#include <pth.h>
25017int
25018main ()
25019{
25020pth_self();
25021  ;
25022  return 0;
25023}
25024_ACEOF
25025rm -f conftest.$ac_objext conftest$ac_exeext
25026if { (ac_try="$ac_link"
25027case "(($ac_try" in
25028  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25029  *) ac_try_echo=$ac_try;;
25030esac
25031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25032$as_echo "$ac_try_echo") >&5
25033  (eval "$ac_link") 2>conftest.er1
25034  ac_status=$?
25035  grep -v '^ *+' conftest.er1 >conftest.err
25036  rm -f conftest.er1
25037  cat conftest.err >&5
25038  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039  (exit $ac_status); } && {
25040	 test -z "$ac_c_werror_flag" ||
25041	 test ! -s conftest.err
25042       } && test -s conftest$ac_exeext && {
25043	 test "$cross_compiling" = yes ||
25044	 $as_test_x conftest$ac_exeext
25045       }; then
25046  gl_have_pth=yes
25047else
25048  $as_echo "$as_me: failed program was:" >&5
25049sed 's/^/| /' conftest.$ac_ext >&5
25050
25051
25052fi
25053
25054rm -rf conftest.dSYM
25055rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25056      conftest$ac_exeext conftest.$ac_ext
25057      LIBS="$gl_save_LIBS"
25058      if test -n "$gl_have_pth"; then
25059        gl_threads_api=pth
25060        LIBTHREAD="$LIBPTH"
25061        LTLIBTHREAD="$LTLIBPTH"
25062        LIBMULTITHREAD="$LIBTHREAD"
25063        LTLIBMULTITHREAD="$LTLIBTHREAD"
25064
25065cat >>confdefs.h <<\_ACEOF
25066#define USE_PTH_THREADS 1
25067_ACEOF
25068
25069        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
25070          if test $gl_have_weak = yes; then
25071
25072cat >>confdefs.h <<\_ACEOF
25073#define USE_PTH_THREADS_WEAK 1
25074_ACEOF
25075
25076            LIBTHREAD=
25077            LTLIBTHREAD=
25078          fi
25079        fi
25080      else
25081        CPPFLAGS="$gl_save_CPPFLAGS"
25082      fi
25083    fi
25084    if test -z "$gl_have_pthread"; then
25085      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
25086        if { case "$host_os" in
25087               mingw*) true;;
25088               *) false;;
25089             esac
25090           }; then
25091          gl_threads_api=win32
25092
25093cat >>confdefs.h <<\_ACEOF
25094#define USE_WIN32_THREADS 1
25095_ACEOF
25096
25097        fi
25098      fi
25099    fi
25100  fi
25101  { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
25102$as_echo_n "checking for multithread API to use... " >&6; }
25103  { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
25104$as_echo "$gl_threads_api" >&6; }
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125    use_additional=yes
25126
25127  acl_save_prefix="$prefix"
25128  prefix="$acl_final_prefix"
25129  acl_save_exec_prefix="$exec_prefix"
25130  exec_prefix="$acl_final_exec_prefix"
25131
25132    eval additional_includedir=\"$includedir\"
25133    eval additional_libdir=\"$libdir\"
25134
25135  exec_prefix="$acl_save_exec_prefix"
25136  prefix="$acl_save_prefix"
25137
25138
25139# Check whether --with-libiconv-prefix was given.
25140if test "${with_libiconv_prefix+set}" = set; then
25141  withval=$with_libiconv_prefix;
25142    if test "X$withval" = "Xno"; then
25143      use_additional=no
25144    else
25145      if test "X$withval" = "X"; then
25146
25147  acl_save_prefix="$prefix"
25148  prefix="$acl_final_prefix"
25149  acl_save_exec_prefix="$exec_prefix"
25150  exec_prefix="$acl_final_exec_prefix"
25151
25152          eval additional_includedir=\"$includedir\"
25153          eval additional_libdir=\"$libdir\"
25154
25155  exec_prefix="$acl_save_exec_prefix"
25156  prefix="$acl_save_prefix"
25157
25158      else
25159        additional_includedir="$withval/include"
25160        additional_libdir="$withval/$acl_libdirstem"
25161      fi
25162    fi
25163
25164fi
25165
25166      LIBICONV=
25167  LTLIBICONV=
25168  INCICONV=
25169  LIBICONV_PREFIX=
25170  rpathdirs=
25171  ltrpathdirs=
25172  names_already_handled=
25173  names_next_round='iconv '
25174  while test -n "$names_next_round"; do
25175    names_this_round="$names_next_round"
25176    names_next_round=
25177    for name in $names_this_round; do
25178      already_handled=
25179      for n in $names_already_handled; do
25180        if test "$n" = "$name"; then
25181          already_handled=yes
25182          break
25183        fi
25184      done
25185      if test -z "$already_handled"; then
25186        names_already_handled="$names_already_handled $name"
25187                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25188        eval value=\"\$HAVE_LIB$uppername\"
25189        if test -n "$value"; then
25190          if test "$value" = yes; then
25191            eval value=\"\$LIB$uppername\"
25192            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
25193            eval value=\"\$LTLIB$uppername\"
25194            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
25195          else
25196                                    :
25197          fi
25198        else
25199                              found_dir=
25200          found_la=
25201          found_so=
25202          found_a=
25203          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
25204          if test -n "$acl_shlibext"; then
25205            shrext=".$acl_shlibext"             # typically: shrext=.so
25206          else
25207            shrext=
25208          fi
25209          if test $use_additional = yes; then
25210            dir="$additional_libdir"
25211                                    if test -n "$acl_shlibext"; then
25212              if test -f "$dir/$libname$shrext"; then
25213                found_dir="$dir"
25214                found_so="$dir/$libname$shrext"
25215              else
25216                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25217                  ver=`(cd "$dir" && \
25218                        for f in "$libname$shrext".*; do echo "$f"; done \
25219                        | sed -e "s,^$libname$shrext\\\\.,," \
25220                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25221                        | sed 1q ) 2>/dev/null`
25222                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25223                    found_dir="$dir"
25224                    found_so="$dir/$libname$shrext.$ver"
25225                  fi
25226                else
25227                  eval library_names=\"$acl_library_names_spec\"
25228                  for f in $library_names; do
25229                    if test -f "$dir/$f"; then
25230                      found_dir="$dir"
25231                      found_so="$dir/$f"
25232                      break
25233                    fi
25234                  done
25235                fi
25236              fi
25237            fi
25238                        if test "X$found_dir" = "X"; then
25239              if test -f "$dir/$libname.$acl_libext"; then
25240                found_dir="$dir"
25241                found_a="$dir/$libname.$acl_libext"
25242              fi
25243            fi
25244            if test "X$found_dir" != "X"; then
25245              if test -f "$dir/$libname.la"; then
25246                found_la="$dir/$libname.la"
25247              fi
25248            fi
25249          fi
25250          if test "X$found_dir" = "X"; then
25251            for x in $LDFLAGS $LTLIBICONV; do
25252
25253  acl_save_prefix="$prefix"
25254  prefix="$acl_final_prefix"
25255  acl_save_exec_prefix="$exec_prefix"
25256  exec_prefix="$acl_final_exec_prefix"
25257  eval x=\"$x\"
25258  exec_prefix="$acl_save_exec_prefix"
25259  prefix="$acl_save_prefix"
25260
25261              case "$x" in
25262                -L*)
25263                  dir=`echo "X$x" | sed -e 's/^X-L//'`
25264                                    if test -n "$acl_shlibext"; then
25265                    if test -f "$dir/$libname$shrext"; then
25266                      found_dir="$dir"
25267                      found_so="$dir/$libname$shrext"
25268                    else
25269                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25270                        ver=`(cd "$dir" && \
25271                              for f in "$libname$shrext".*; do echo "$f"; done \
25272                              | sed -e "s,^$libname$shrext\\\\.,," \
25273                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25274                              | sed 1q ) 2>/dev/null`
25275                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25276                          found_dir="$dir"
25277                          found_so="$dir/$libname$shrext.$ver"
25278                        fi
25279                      else
25280                        eval library_names=\"$acl_library_names_spec\"
25281                        for f in $library_names; do
25282                          if test -f "$dir/$f"; then
25283                            found_dir="$dir"
25284                            found_so="$dir/$f"
25285                            break
25286                          fi
25287                        done
25288                      fi
25289                    fi
25290                  fi
25291                                    if test "X$found_dir" = "X"; then
25292                    if test -f "$dir/$libname.$acl_libext"; then
25293                      found_dir="$dir"
25294                      found_a="$dir/$libname.$acl_libext"
25295                    fi
25296                  fi
25297                  if test "X$found_dir" != "X"; then
25298                    if test -f "$dir/$libname.la"; then
25299                      found_la="$dir/$libname.la"
25300                    fi
25301                  fi
25302                  ;;
25303              esac
25304              if test "X$found_dir" != "X"; then
25305                break
25306              fi
25307            done
25308          fi
25309          if test "X$found_dir" != "X"; then
25310                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
25311            if test "X$found_so" != "X"; then
25312                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
25313                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25314              else
25315                                                                                haveit=
25316                for x in $ltrpathdirs; do
25317                  if test "X$x" = "X$found_dir"; then
25318                    haveit=yes
25319                    break
25320                  fi
25321                done
25322                if test -z "$haveit"; then
25323                  ltrpathdirs="$ltrpathdirs $found_dir"
25324                fi
25325                                if test "$acl_hardcode_direct" = yes; then
25326                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25327                else
25328                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
25329                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25330                                                            haveit=
25331                    for x in $rpathdirs; do
25332                      if test "X$x" = "X$found_dir"; then
25333                        haveit=yes
25334                        break
25335                      fi
25336                    done
25337                    if test -z "$haveit"; then
25338                      rpathdirs="$rpathdirs $found_dir"
25339                    fi
25340                  else
25341                                                                                haveit=
25342                    for x in $LDFLAGS $LIBICONV; do
25343
25344  acl_save_prefix="$prefix"
25345  prefix="$acl_final_prefix"
25346  acl_save_exec_prefix="$exec_prefix"
25347  exec_prefix="$acl_final_exec_prefix"
25348  eval x=\"$x\"
25349  exec_prefix="$acl_save_exec_prefix"
25350  prefix="$acl_save_prefix"
25351
25352                      if test "X$x" = "X-L$found_dir"; then
25353                        haveit=yes
25354                        break
25355                      fi
25356                    done
25357                    if test -z "$haveit"; then
25358                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
25359                    fi
25360                    if test "$acl_hardcode_minus_L" != no; then
25361                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
25362                    else
25363                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25364                    fi
25365                  fi
25366                fi
25367              fi
25368            else
25369              if test "X$found_a" != "X"; then
25370                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
25371              else
25372                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
25373              fi
25374            fi
25375                        additional_includedir=
25376            case "$found_dir" in
25377              */$acl_libdirstem | */$acl_libdirstem/)
25378                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25379                LIBICONV_PREFIX="$basedir"
25380                additional_includedir="$basedir/include"
25381                ;;
25382            esac
25383            if test "X$additional_includedir" != "X"; then
25384                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
25385                haveit=
25386                if test "X$additional_includedir" = "X/usr/local/include"; then
25387                  if test -n "$GCC"; then
25388                    case $host_os in
25389                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25390                    esac
25391                  fi
25392                fi
25393                if test -z "$haveit"; then
25394                  for x in $CPPFLAGS $INCICONV; do
25395
25396  acl_save_prefix="$prefix"
25397  prefix="$acl_final_prefix"
25398  acl_save_exec_prefix="$exec_prefix"
25399  exec_prefix="$acl_final_exec_prefix"
25400  eval x=\"$x\"
25401  exec_prefix="$acl_save_exec_prefix"
25402  prefix="$acl_save_prefix"
25403
25404                    if test "X$x" = "X-I$additional_includedir"; then
25405                      haveit=yes
25406                      break
25407                    fi
25408                  done
25409                  if test -z "$haveit"; then
25410                    if test -d "$additional_includedir"; then
25411                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
25412                    fi
25413                  fi
25414                fi
25415              fi
25416            fi
25417                        if test -n "$found_la"; then
25418                                                        save_libdir="$libdir"
25419              case "$found_la" in
25420                */* | *\\*) . "$found_la" ;;
25421                *) . "./$found_la" ;;
25422              esac
25423              libdir="$save_libdir"
25424                            for dep in $dependency_libs; do
25425                case "$dep" in
25426                  -L*)
25427                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
25428                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
25429                      haveit=
25430                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
25431                        if test -n "$GCC"; then
25432                          case $host_os in
25433                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25434                          esac
25435                        fi
25436                      fi
25437                      if test -z "$haveit"; then
25438                        haveit=
25439                        for x in $LDFLAGS $LIBICONV; do
25440
25441  acl_save_prefix="$prefix"
25442  prefix="$acl_final_prefix"
25443  acl_save_exec_prefix="$exec_prefix"
25444  exec_prefix="$acl_final_exec_prefix"
25445  eval x=\"$x\"
25446  exec_prefix="$acl_save_exec_prefix"
25447  prefix="$acl_save_prefix"
25448
25449                          if test "X$x" = "X-L$additional_libdir"; then
25450                            haveit=yes
25451                            break
25452                          fi
25453                        done
25454                        if test -z "$haveit"; then
25455                          if test -d "$additional_libdir"; then
25456                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
25457                          fi
25458                        fi
25459                        haveit=
25460                        for x in $LDFLAGS $LTLIBICONV; do
25461
25462  acl_save_prefix="$prefix"
25463  prefix="$acl_final_prefix"
25464  acl_save_exec_prefix="$exec_prefix"
25465  exec_prefix="$acl_final_exec_prefix"
25466  eval x=\"$x\"
25467  exec_prefix="$acl_save_exec_prefix"
25468  prefix="$acl_save_prefix"
25469
25470                          if test "X$x" = "X-L$additional_libdir"; then
25471                            haveit=yes
25472                            break
25473                          fi
25474                        done
25475                        if test -z "$haveit"; then
25476                          if test -d "$additional_libdir"; then
25477                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
25478                          fi
25479                        fi
25480                      fi
25481                    fi
25482                    ;;
25483                  -R*)
25484                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
25485                    if test "$enable_rpath" != no; then
25486                                                                  haveit=
25487                      for x in $rpathdirs; do
25488                        if test "X$x" = "X$dir"; then
25489                          haveit=yes
25490                          break
25491                        fi
25492                      done
25493                      if test -z "$haveit"; then
25494                        rpathdirs="$rpathdirs $dir"
25495                      fi
25496                                                                  haveit=
25497                      for x in $ltrpathdirs; do
25498                        if test "X$x" = "X$dir"; then
25499                          haveit=yes
25500                          break
25501                        fi
25502                      done
25503                      if test -z "$haveit"; then
25504                        ltrpathdirs="$ltrpathdirs $dir"
25505                      fi
25506                    fi
25507                    ;;
25508                  -l*)
25509                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
25510                    ;;
25511                  *.la)
25512                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
25513                    ;;
25514                  *)
25515                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
25516                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
25517                    ;;
25518                esac
25519              done
25520            fi
25521          else
25522                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
25523            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
25524          fi
25525        fi
25526      fi
25527    done
25528  done
25529  if test "X$rpathdirs" != "X"; then
25530    if test -n "$acl_hardcode_libdir_separator"; then
25531                        alldirs=
25532      for found_dir in $rpathdirs; do
25533        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
25534      done
25535            acl_save_libdir="$libdir"
25536      libdir="$alldirs"
25537      eval flag=\"$acl_hardcode_libdir_flag_spec\"
25538      libdir="$acl_save_libdir"
25539      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25540    else
25541            for found_dir in $rpathdirs; do
25542        acl_save_libdir="$libdir"
25543        libdir="$found_dir"
25544        eval flag=\"$acl_hardcode_libdir_flag_spec\"
25545        libdir="$acl_save_libdir"
25546        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
25547      done
25548    fi
25549  fi
25550  if test "X$ltrpathdirs" != "X"; then
25551            for found_dir in $ltrpathdirs; do
25552      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
25553    done
25554  fi
25555
25556
25557
25558
25559
25560  cat >conftest.$ac_ext <<_ACEOF
25561/* confdefs.h.  */
25562_ACEOF
25563cat confdefs.h >>conftest.$ac_ext
25564cat >>conftest.$ac_ext <<_ACEOF
25565/* end confdefs.h.  */
25566int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
25567int
25568main ()
25569{
25570
25571  ;
25572  return 0;
25573}
25574_ACEOF
25575rm -f conftest.$ac_objext conftest$ac_exeext
25576if { (ac_try="$ac_link"
25577case "(($ac_try" in
25578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25579  *) ac_try_echo=$ac_try;;
25580esac
25581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25582$as_echo "$ac_try_echo") >&5
25583  (eval "$ac_link") 2>conftest.er1
25584  ac_status=$?
25585  grep -v '^ *+' conftest.er1 >conftest.err
25586  rm -f conftest.er1
25587  cat conftest.err >&5
25588  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589  (exit $ac_status); } && {
25590	 test -z "$ac_c_werror_flag" ||
25591	 test ! -s conftest.err
25592       } && test -s conftest$ac_exeext && {
25593	 test "$cross_compiling" = yes ||
25594	 $as_test_x conftest$ac_exeext
25595       }; then
25596
25597cat >>confdefs.h <<\_ACEOF
25598#define HAVE_BUILTIN_EXPECT 1
25599_ACEOF
25600
25601else
25602  $as_echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605
25606fi
25607
25608rm -rf conftest.dSYM
25609rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25610      conftest$ac_exeext conftest.$ac_ext
25611
25612
25613
25614
25615
25616
25617for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
25618do
25619as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25621  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25622$as_echo_n "checking for $ac_header... " >&6; }
25623if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25624  $as_echo_n "(cached) " >&6
25625fi
25626ac_res=`eval 'as_val=${'$as_ac_Header'}
25627		 $as_echo "$as_val"'`
25628	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25629$as_echo "$ac_res" >&6; }
25630else
25631  # Is the header compilable?
25632{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25633$as_echo_n "checking $ac_header usability... " >&6; }
25634cat >conftest.$ac_ext <<_ACEOF
25635/* confdefs.h.  */
25636_ACEOF
25637cat confdefs.h >>conftest.$ac_ext
25638cat >>conftest.$ac_ext <<_ACEOF
25639/* end confdefs.h.  */
25640$ac_includes_default
25641#include <$ac_header>
25642_ACEOF
25643rm -f conftest.$ac_objext
25644if { (ac_try="$ac_compile"
25645case "(($ac_try" in
25646  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25647  *) ac_try_echo=$ac_try;;
25648esac
25649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25650$as_echo "$ac_try_echo") >&5
25651  (eval "$ac_compile") 2>conftest.er1
25652  ac_status=$?
25653  grep -v '^ *+' conftest.er1 >conftest.err
25654  rm -f conftest.er1
25655  cat conftest.err >&5
25656  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657  (exit $ac_status); } && {
25658	 test -z "$ac_c_werror_flag" ||
25659	 test ! -s conftest.err
25660       } && test -s conftest.$ac_objext; then
25661  ac_header_compiler=yes
25662else
25663  $as_echo "$as_me: failed program was:" >&5
25664sed 's/^/| /' conftest.$ac_ext >&5
25665
25666	ac_header_compiler=no
25667fi
25668
25669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25670{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25671$as_echo "$ac_header_compiler" >&6; }
25672
25673# Is the header present?
25674{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25675$as_echo_n "checking $ac_header presence... " >&6; }
25676cat >conftest.$ac_ext <<_ACEOF
25677/* confdefs.h.  */
25678_ACEOF
25679cat confdefs.h >>conftest.$ac_ext
25680cat >>conftest.$ac_ext <<_ACEOF
25681/* end confdefs.h.  */
25682#include <$ac_header>
25683_ACEOF
25684if { (ac_try="$ac_cpp conftest.$ac_ext"
25685case "(($ac_try" in
25686  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25687  *) ac_try_echo=$ac_try;;
25688esac
25689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25690$as_echo "$ac_try_echo") >&5
25691  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25692  ac_status=$?
25693  grep -v '^ *+' conftest.er1 >conftest.err
25694  rm -f conftest.er1
25695  cat conftest.err >&5
25696  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697  (exit $ac_status); } >/dev/null && {
25698	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25699	 test ! -s conftest.err
25700       }; then
25701  ac_header_preproc=yes
25702else
25703  $as_echo "$as_me: failed program was:" >&5
25704sed 's/^/| /' conftest.$ac_ext >&5
25705
25706  ac_header_preproc=no
25707fi
25708
25709rm -f conftest.err conftest.$ac_ext
25710{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25711$as_echo "$ac_header_preproc" >&6; }
25712
25713# So?  What about this header?
25714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25715  yes:no: )
25716    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25717$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25718    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25719$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25720    ac_header_preproc=yes
25721    ;;
25722  no:yes:* )
25723    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25724$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25725    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25726$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25727    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25728$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25729    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25730$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25731    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25732$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25733    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25734$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25735
25736    ;;
25737esac
25738{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25739$as_echo_n "checking for $ac_header... " >&6; }
25740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25741  $as_echo_n "(cached) " >&6
25742else
25743  eval "$as_ac_Header=\$ac_header_preproc"
25744fi
25745ac_res=`eval 'as_val=${'$as_ac_Header'}
25746		 $as_echo "$as_val"'`
25747	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25748$as_echo "$ac_res" >&6; }
25749
25750fi
25751as_val=`eval 'as_val=${'$as_ac_Header'}
25752		 $as_echo "$as_val"'`
25753   if test "x$as_val" = x""yes; then
25754  cat >>confdefs.h <<_ACEOF
25755#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25756_ACEOF
25757
25758fi
25759
25760done
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776
25777
25778for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
25779    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
25780    argz_next __fsetlocking
25781do
25782as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25783{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25784$as_echo_n "checking for $ac_func... " >&6; }
25785if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25786  $as_echo_n "(cached) " >&6
25787else
25788  cat >conftest.$ac_ext <<_ACEOF
25789/* confdefs.h.  */
25790_ACEOF
25791cat confdefs.h >>conftest.$ac_ext
25792cat >>conftest.$ac_ext <<_ACEOF
25793/* end confdefs.h.  */
25794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25795   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25796#define $ac_func innocuous_$ac_func
25797
25798/* System header to define __stub macros and hopefully few prototypes,
25799    which can conflict with char $ac_func (); below.
25800    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25801    <limits.h> exists even on freestanding compilers.  */
25802
25803#ifdef __STDC__
25804# include <limits.h>
25805#else
25806# include <assert.h>
25807#endif
25808
25809#undef $ac_func
25810
25811/* Override any GCC internal prototype to avoid an error.
25812   Use char because int might match the return type of a GCC
25813   builtin and then its argument prototype would still apply.  */
25814#ifdef __cplusplus
25815extern "C"
25816#endif
25817char $ac_func ();
25818/* The GNU C library defines this for functions which it implements
25819    to always fail with ENOSYS.  Some functions are actually named
25820    something starting with __ and the normal name is an alias.  */
25821#if defined __stub_$ac_func || defined __stub___$ac_func
25822choke me
25823#endif
25824
25825int
25826main ()
25827{
25828return $ac_func ();
25829  ;
25830  return 0;
25831}
25832_ACEOF
25833rm -f conftest.$ac_objext conftest$ac_exeext
25834if { (ac_try="$ac_link"
25835case "(($ac_try" in
25836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25837  *) ac_try_echo=$ac_try;;
25838esac
25839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25840$as_echo "$ac_try_echo") >&5
25841  (eval "$ac_link") 2>conftest.er1
25842  ac_status=$?
25843  grep -v '^ *+' conftest.er1 >conftest.err
25844  rm -f conftest.er1
25845  cat conftest.err >&5
25846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847  (exit $ac_status); } && {
25848	 test -z "$ac_c_werror_flag" ||
25849	 test ! -s conftest.err
25850       } && test -s conftest$ac_exeext && {
25851	 test "$cross_compiling" = yes ||
25852	 $as_test_x conftest$ac_exeext
25853       }; then
25854  eval "$as_ac_var=yes"
25855else
25856  $as_echo "$as_me: failed program was:" >&5
25857sed 's/^/| /' conftest.$ac_ext >&5
25858
25859	eval "$as_ac_var=no"
25860fi
25861
25862rm -rf conftest.dSYM
25863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25864      conftest$ac_exeext conftest.$ac_ext
25865fi
25866ac_res=`eval 'as_val=${'$as_ac_var'}
25867		 $as_echo "$as_val"'`
25868	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25869$as_echo "$ac_res" >&6; }
25870as_val=`eval 'as_val=${'$as_ac_var'}
25871		 $as_echo "$as_val"'`
25872   if test "x$as_val" = x""yes; then
25873  cat >>confdefs.h <<_ACEOF
25874#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25875_ACEOF
25876
25877fi
25878done
25879
25880
25881
25882  { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
25883$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
25884if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
25885  $as_echo_n "(cached) " >&6
25886else
25887  cat >conftest.$ac_ext <<_ACEOF
25888/* confdefs.h.  */
25889_ACEOF
25890cat confdefs.h >>conftest.$ac_ext
25891cat >>conftest.$ac_ext <<_ACEOF
25892/* end confdefs.h.  */
25893#include <stdio.h>
25894int
25895main ()
25896{
25897
25898#ifndef feof_unlocked
25899  char *p = (char *) feof_unlocked;
25900#endif
25901
25902  ;
25903  return 0;
25904}
25905_ACEOF
25906rm -f conftest.$ac_objext
25907if { (ac_try="$ac_compile"
25908case "(($ac_try" in
25909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910  *) ac_try_echo=$ac_try;;
25911esac
25912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25913$as_echo "$ac_try_echo") >&5
25914  (eval "$ac_compile") 2>conftest.er1
25915  ac_status=$?
25916  grep -v '^ *+' conftest.er1 >conftest.err
25917  rm -f conftest.er1
25918  cat conftest.err >&5
25919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920  (exit $ac_status); } && {
25921	 test -z "$ac_c_werror_flag" ||
25922	 test ! -s conftest.err
25923       } && test -s conftest.$ac_objext; then
25924  ac_cv_have_decl_feof_unlocked=yes
25925else
25926  $as_echo "$as_me: failed program was:" >&5
25927sed 's/^/| /' conftest.$ac_ext >&5
25928
25929	ac_cv_have_decl_feof_unlocked=no
25930fi
25931
25932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25933fi
25934{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
25935$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
25936  if test $ac_cv_have_decl_feof_unlocked = yes; then
25937    gt_value=1
25938  else
25939    gt_value=0
25940  fi
25941
25942cat >>confdefs.h <<_ACEOF
25943#define HAVE_DECL_FEOF_UNLOCKED $gt_value
25944_ACEOF
25945
25946
25947
25948  { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
25949$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
25950if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
25951  $as_echo_n "(cached) " >&6
25952else
25953  cat >conftest.$ac_ext <<_ACEOF
25954/* confdefs.h.  */
25955_ACEOF
25956cat confdefs.h >>conftest.$ac_ext
25957cat >>conftest.$ac_ext <<_ACEOF
25958/* end confdefs.h.  */
25959#include <stdio.h>
25960int
25961main ()
25962{
25963
25964#ifndef fgets_unlocked
25965  char *p = (char *) fgets_unlocked;
25966#endif
25967
25968  ;
25969  return 0;
25970}
25971_ACEOF
25972rm -f conftest.$ac_objext
25973if { (ac_try="$ac_compile"
25974case "(($ac_try" in
25975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25976  *) ac_try_echo=$ac_try;;
25977esac
25978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25979$as_echo "$ac_try_echo") >&5
25980  (eval "$ac_compile") 2>conftest.er1
25981  ac_status=$?
25982  grep -v '^ *+' conftest.er1 >conftest.err
25983  rm -f conftest.er1
25984  cat conftest.err >&5
25985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986  (exit $ac_status); } && {
25987	 test -z "$ac_c_werror_flag" ||
25988	 test ! -s conftest.err
25989       } && test -s conftest.$ac_objext; then
25990  ac_cv_have_decl_fgets_unlocked=yes
25991else
25992  $as_echo "$as_me: failed program was:" >&5
25993sed 's/^/| /' conftest.$ac_ext >&5
25994
25995	ac_cv_have_decl_fgets_unlocked=no
25996fi
25997
25998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25999fi
26000{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
26001$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
26002  if test $ac_cv_have_decl_fgets_unlocked = yes; then
26003    gt_value=1
26004  else
26005    gt_value=0
26006  fi
26007
26008cat >>confdefs.h <<_ACEOF
26009#define HAVE_DECL_FGETS_UNLOCKED $gt_value
26010_ACEOF
26011
26012
26013
26014
26015
26016
26017
26018
26019          am_save_CPPFLAGS="$CPPFLAGS"
26020
26021  for element in $INCICONV; do
26022    haveit=
26023    for x in $CPPFLAGS; do
26024
26025  acl_save_prefix="$prefix"
26026  prefix="$acl_final_prefix"
26027  acl_save_exec_prefix="$exec_prefix"
26028  exec_prefix="$acl_final_exec_prefix"
26029  eval x=\"$x\"
26030  exec_prefix="$acl_save_exec_prefix"
26031  prefix="$acl_save_prefix"
26032
26033      if test "X$x" = "X$element"; then
26034        haveit=yes
26035        break
26036      fi
26037    done
26038    if test -z "$haveit"; then
26039      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26040    fi
26041  done
26042
26043
26044  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
26045$as_echo_n "checking for iconv... " >&6; }
26046if test "${am_cv_func_iconv+set}" = set; then
26047  $as_echo_n "(cached) " >&6
26048else
26049
26050    am_cv_func_iconv="no, consider installing GNU libiconv"
26051    am_cv_lib_iconv=no
26052    cat >conftest.$ac_ext <<_ACEOF
26053/* confdefs.h.  */
26054_ACEOF
26055cat confdefs.h >>conftest.$ac_ext
26056cat >>conftest.$ac_ext <<_ACEOF
26057/* end confdefs.h.  */
26058#include <stdlib.h>
26059#include <iconv.h>
26060int
26061main ()
26062{
26063iconv_t cd = iconv_open("","");
26064       iconv(cd,NULL,NULL,NULL,NULL);
26065       iconv_close(cd);
26066  ;
26067  return 0;
26068}
26069_ACEOF
26070rm -f conftest.$ac_objext conftest$ac_exeext
26071if { (ac_try="$ac_link"
26072case "(($ac_try" in
26073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074  *) ac_try_echo=$ac_try;;
26075esac
26076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26077$as_echo "$ac_try_echo") >&5
26078  (eval "$ac_link") 2>conftest.er1
26079  ac_status=$?
26080  grep -v '^ *+' conftest.er1 >conftest.err
26081  rm -f conftest.er1
26082  cat conftest.err >&5
26083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084  (exit $ac_status); } && {
26085	 test -z "$ac_c_werror_flag" ||
26086	 test ! -s conftest.err
26087       } && test -s conftest$ac_exeext && {
26088	 test "$cross_compiling" = yes ||
26089	 $as_test_x conftest$ac_exeext
26090       }; then
26091  am_cv_func_iconv=yes
26092else
26093  $as_echo "$as_me: failed program was:" >&5
26094sed 's/^/| /' conftest.$ac_ext >&5
26095
26096
26097fi
26098
26099rm -rf conftest.dSYM
26100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26101      conftest$ac_exeext conftest.$ac_ext
26102    if test "$am_cv_func_iconv" != yes; then
26103      am_save_LIBS="$LIBS"
26104      LIBS="$LIBS $LIBICONV"
26105      cat >conftest.$ac_ext <<_ACEOF
26106/* confdefs.h.  */
26107_ACEOF
26108cat confdefs.h >>conftest.$ac_ext
26109cat >>conftest.$ac_ext <<_ACEOF
26110/* end confdefs.h.  */
26111#include <stdlib.h>
26112#include <iconv.h>
26113int
26114main ()
26115{
26116iconv_t cd = iconv_open("","");
26117         iconv(cd,NULL,NULL,NULL,NULL);
26118         iconv_close(cd);
26119  ;
26120  return 0;
26121}
26122_ACEOF
26123rm -f conftest.$ac_objext conftest$ac_exeext
26124if { (ac_try="$ac_link"
26125case "(($ac_try" in
26126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127  *) ac_try_echo=$ac_try;;
26128esac
26129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26130$as_echo "$ac_try_echo") >&5
26131  (eval "$ac_link") 2>conftest.er1
26132  ac_status=$?
26133  grep -v '^ *+' conftest.er1 >conftest.err
26134  rm -f conftest.er1
26135  cat conftest.err >&5
26136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26137  (exit $ac_status); } && {
26138	 test -z "$ac_c_werror_flag" ||
26139	 test ! -s conftest.err
26140       } && test -s conftest$ac_exeext && {
26141	 test "$cross_compiling" = yes ||
26142	 $as_test_x conftest$ac_exeext
26143       }; then
26144  am_cv_lib_iconv=yes
26145        am_cv_func_iconv=yes
26146else
26147  $as_echo "$as_me: failed program was:" >&5
26148sed 's/^/| /' conftest.$ac_ext >&5
26149
26150
26151fi
26152
26153rm -rf conftest.dSYM
26154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26155      conftest$ac_exeext conftest.$ac_ext
26156      LIBS="$am_save_LIBS"
26157    fi
26158
26159fi
26160{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
26161$as_echo "$am_cv_func_iconv" >&6; }
26162  if test "$am_cv_func_iconv" = yes; then
26163    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
26164$as_echo_n "checking for working iconv... " >&6; }
26165if test "${am_cv_func_iconv_works+set}" = set; then
26166  $as_echo_n "(cached) " >&6
26167else
26168
26169            am_save_LIBS="$LIBS"
26170      if test $am_cv_lib_iconv = yes; then
26171        LIBS="$LIBS $LIBICONV"
26172      fi
26173      if test "$cross_compiling" = yes; then
26174  case "$host_os" in
26175           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
26176           *)            am_cv_func_iconv_works="guessing yes" ;;
26177         esac
26178else
26179  cat >conftest.$ac_ext <<_ACEOF
26180/* confdefs.h.  */
26181_ACEOF
26182cat confdefs.h >>conftest.$ac_ext
26183cat >>conftest.$ac_ext <<_ACEOF
26184/* end confdefs.h.  */
26185
26186#include <iconv.h>
26187#include <string.h>
26188int main ()
26189{
26190  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
26191     returns.  */
26192  {
26193    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
26194    if (cd_utf8_to_88591 != (iconv_t)(-1))
26195      {
26196        static const char input[] = "\342\202\254"; /* EURO SIGN */
26197        char buf[10];
26198        const char *inptr = input;
26199        size_t inbytesleft = strlen (input);
26200        char *outptr = buf;
26201        size_t outbytesleft = sizeof (buf);
26202        size_t res = iconv (cd_utf8_to_88591,
26203                            (char **) &inptr, &inbytesleft,
26204                            &outptr, &outbytesleft);
26205        if (res == 0)
26206          return 1;
26207      }
26208  }
26209#if 0 /* This bug could be worked around by the caller.  */
26210  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
26211  {
26212    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
26213    if (cd_88591_to_utf8 != (iconv_t)(-1))
26214      {
26215        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
26216        char buf[50];
26217        const char *inptr = input;
26218        size_t inbytesleft = strlen (input);
26219        char *outptr = buf;
26220        size_t outbytesleft = sizeof (buf);
26221        size_t res = iconv (cd_88591_to_utf8,
26222                            (char **) &inptr, &inbytesleft,
26223                            &outptr, &outbytesleft);
26224        if ((int)res > 0)
26225          return 1;
26226      }
26227  }
26228#endif
26229  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
26230     provided.  */
26231  if (/* Try standardized names.  */
26232      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
26233      /* Try IRIX, OSF/1 names.  */
26234      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
26235      /* Try AIX names.  */
26236      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
26237      /* Try HP-UX names.  */
26238      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
26239    return 1;
26240  return 0;
26241}
26242_ACEOF
26243rm -f conftest$ac_exeext
26244if { (ac_try="$ac_link"
26245case "(($ac_try" in
26246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26247  *) ac_try_echo=$ac_try;;
26248esac
26249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26250$as_echo "$ac_try_echo") >&5
26251  (eval "$ac_link") 2>&5
26252  ac_status=$?
26253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26255  { (case "(($ac_try" in
26256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257  *) ac_try_echo=$ac_try;;
26258esac
26259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26260$as_echo "$ac_try_echo") >&5
26261  (eval "$ac_try") 2>&5
26262  ac_status=$?
26263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264  (exit $ac_status); }; }; then
26265  am_cv_func_iconv_works=yes
26266else
26267  $as_echo "$as_me: program exited with status $ac_status" >&5
26268$as_echo "$as_me: failed program was:" >&5
26269sed 's/^/| /' conftest.$ac_ext >&5
26270
26271( exit $ac_status )
26272am_cv_func_iconv_works=no
26273fi
26274rm -rf conftest.dSYM
26275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26276fi
26277
26278
26279      LIBS="$am_save_LIBS"
26280
26281fi
26282{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
26283$as_echo "$am_cv_func_iconv_works" >&6; }
26284    case "$am_cv_func_iconv_works" in
26285      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
26286      *)   am_func_iconv=yes ;;
26287    esac
26288  else
26289    am_func_iconv=no am_cv_lib_iconv=no
26290  fi
26291  if test "$am_func_iconv" = yes; then
26292
26293cat >>confdefs.h <<\_ACEOF
26294#define HAVE_ICONV 1
26295_ACEOF
26296
26297  fi
26298  if test "$am_cv_lib_iconv" = yes; then
26299    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
26300$as_echo_n "checking how to link with libiconv... " >&6; }
26301    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
26302$as_echo "$LIBICONV" >&6; }
26303  else
26304            CPPFLAGS="$am_save_CPPFLAGS"
26305    LIBICONV=
26306    LTLIBICONV=
26307  fi
26308
26309
26310
26311  if test "$am_cv_func_iconv" = yes; then
26312    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
26313$as_echo_n "checking for iconv declaration... " >&6; }
26314    if test "${am_cv_proto_iconv+set}" = set; then
26315  $as_echo_n "(cached) " >&6
26316else
26317
26318      cat >conftest.$ac_ext <<_ACEOF
26319/* confdefs.h.  */
26320_ACEOF
26321cat confdefs.h >>conftest.$ac_ext
26322cat >>conftest.$ac_ext <<_ACEOF
26323/* end confdefs.h.  */
26324
26325#include <stdlib.h>
26326#include <iconv.h>
26327extern
26328#ifdef __cplusplus
26329"C"
26330#endif
26331#if defined(__STDC__) || defined(__cplusplus)
26332size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
26333#else
26334size_t iconv();
26335#endif
26336
26337int
26338main ()
26339{
26340
26341  ;
26342  return 0;
26343}
26344_ACEOF
26345rm -f conftest.$ac_objext
26346if { (ac_try="$ac_compile"
26347case "(($ac_try" in
26348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26349  *) ac_try_echo=$ac_try;;
26350esac
26351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26352$as_echo "$ac_try_echo") >&5
26353  (eval "$ac_compile") 2>conftest.er1
26354  ac_status=$?
26355  grep -v '^ *+' conftest.er1 >conftest.err
26356  rm -f conftest.er1
26357  cat conftest.err >&5
26358  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359  (exit $ac_status); } && {
26360	 test -z "$ac_c_werror_flag" ||
26361	 test ! -s conftest.err
26362       } && test -s conftest.$ac_objext; then
26363  am_cv_proto_iconv_arg1=""
26364else
26365  $as_echo "$as_me: failed program was:" >&5
26366sed 's/^/| /' conftest.$ac_ext >&5
26367
26368	am_cv_proto_iconv_arg1="const"
26369fi
26370
26371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26372      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
26373fi
26374
26375    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
26376    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
26377         }$am_cv_proto_iconv" >&5
26378$as_echo "${ac_t:-
26379         }$am_cv_proto_iconv" >&6; }
26380
26381cat >>confdefs.h <<_ACEOF
26382#define ICONV_CONST $am_cv_proto_iconv_arg1
26383_ACEOF
26384
26385  fi
26386
26387
26388      { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
26389$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
26390if test "${gt_cv_nl_locale_name+set}" = set; then
26391  $as_echo_n "(cached) " >&6
26392else
26393  cat >conftest.$ac_ext <<_ACEOF
26394/* confdefs.h.  */
26395_ACEOF
26396cat confdefs.h >>conftest.$ac_ext
26397cat >>conftest.$ac_ext <<_ACEOF
26398/* end confdefs.h.  */
26399#include <langinfo.h>
26400#include <locale.h>
26401int
26402main ()
26403{
26404char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
26405       return !cs;
26406
26407  ;
26408  return 0;
26409}
26410_ACEOF
26411rm -f conftest.$ac_objext conftest$ac_exeext
26412if { (ac_try="$ac_link"
26413case "(($ac_try" in
26414  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26415  *) ac_try_echo=$ac_try;;
26416esac
26417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26418$as_echo "$ac_try_echo") >&5
26419  (eval "$ac_link") 2>conftest.er1
26420  ac_status=$?
26421  grep -v '^ *+' conftest.er1 >conftest.err
26422  rm -f conftest.er1
26423  cat conftest.err >&5
26424  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425  (exit $ac_status); } && {
26426	 test -z "$ac_c_werror_flag" ||
26427	 test ! -s conftest.err
26428       } && test -s conftest$ac_exeext && {
26429	 test "$cross_compiling" = yes ||
26430	 $as_test_x conftest$ac_exeext
26431       }; then
26432  gt_cv_nl_locale_name=yes
26433else
26434  $as_echo "$as_me: failed program was:" >&5
26435sed 's/^/| /' conftest.$ac_ext >&5
26436
26437	gt_cv_nl_locale_name=no
26438fi
26439
26440rm -rf conftest.dSYM
26441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26442      conftest$ac_exeext conftest.$ac_ext
26443
26444fi
26445{ $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
26446$as_echo "$gt_cv_nl_locale_name" >&6; }
26447  if test $gt_cv_nl_locale_name = yes; then
26448
26449cat >>confdefs.h <<\_ACEOF
26450#define HAVE_NL_LOCALE_NAME 1
26451_ACEOF
26452
26453  fi
26454
26455                      for ac_prog in bison
26456do
26457  # Extract the first word of "$ac_prog", so it can be a program name with args.
26458set dummy $ac_prog; ac_word=$2
26459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26460$as_echo_n "checking for $ac_word... " >&6; }
26461if test "${ac_cv_prog_INTLBISON+set}" = set; then
26462  $as_echo_n "(cached) " >&6
26463else
26464  if test -n "$INTLBISON"; then
26465  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
26466else
26467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26468for as_dir in $PATH
26469do
26470  IFS=$as_save_IFS
26471  test -z "$as_dir" && as_dir=.
26472  for ac_exec_ext in '' $ac_executable_extensions; do
26473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26474    ac_cv_prog_INTLBISON="$ac_prog"
26475    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26476    break 2
26477  fi
26478done
26479done
26480IFS=$as_save_IFS
26481
26482fi
26483fi
26484INTLBISON=$ac_cv_prog_INTLBISON
26485if test -n "$INTLBISON"; then
26486  { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
26487$as_echo "$INTLBISON" >&6; }
26488else
26489  { $as_echo "$as_me:$LINENO: result: no" >&5
26490$as_echo "no" >&6; }
26491fi
26492
26493
26494  test -n "$INTLBISON" && break
26495done
26496
26497  if test -z "$INTLBISON"; then
26498    ac_verc_fail=yes
26499  else
26500        { $as_echo "$as_me:$LINENO: checking version of bison" >&5
26501$as_echo_n "checking version of bison... " >&6; }
26502    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
26503    case $ac_prog_version in
26504      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
26505      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
26506         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
26507      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
26508    esac
26509    { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
26510$as_echo "$ac_prog_version" >&6; }
26511  fi
26512  if test $ac_verc_fail = yes; then
26513    INTLBISON=:
26514  fi
26515
26516
26517  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
26518$as_echo_n "checking for long long int... " >&6; }
26519if test "${ac_cv_type_long_long_int+set}" = set; then
26520  $as_echo_n "(cached) " >&6
26521else
26522  cat >conftest.$ac_ext <<_ACEOF
26523
26524  /* confdefs.h.  */
26525_ACEOF
26526cat confdefs.h >>conftest.$ac_ext
26527cat >>conftest.$ac_ext <<_ACEOF
26528/* end confdefs.h.  */
26529/* Test preprocessor.  */
26530      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
26531        error in preprocessor;
26532      #endif
26533      #if ! (18446744073709551615ULL <= -1ull)
26534        error in preprocessor;
26535      #endif
26536      /* Test literals.  */
26537      long long int ll = 9223372036854775807ll;
26538      long long int nll = -9223372036854775807LL;
26539      unsigned long long int ull = 18446744073709551615ULL;
26540      /* Test constant expressions.   */
26541      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
26542		     ? 1 : -1)];
26543      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
26544		     ? 1 : -1)];
26545      int i = 63;
26546int
26547main ()
26548{
26549/* Test availability of runtime routines for shift and division.  */
26550      long long int llmax = 9223372036854775807ll;
26551      unsigned long long int ullmax = 18446744073709551615ull;
26552      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
26553	      | (llmax / ll) | (llmax % ll)
26554	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
26555	      | (ullmax / ull) | (ullmax % ull));
26556  ;
26557  return 0;
26558}
26559
26560_ACEOF
26561rm -f conftest.$ac_objext conftest$ac_exeext
26562if { (ac_try="$ac_link"
26563case "(($ac_try" in
26564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26565  *) ac_try_echo=$ac_try;;
26566esac
26567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26568$as_echo "$ac_try_echo") >&5
26569  (eval "$ac_link") 2>conftest.er1
26570  ac_status=$?
26571  grep -v '^ *+' conftest.er1 >conftest.err
26572  rm -f conftest.er1
26573  cat conftest.err >&5
26574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575  (exit $ac_status); } && {
26576	 test -z "$ac_c_werror_flag" ||
26577	 test ! -s conftest.err
26578       } && test -s conftest$ac_exeext && {
26579	 test "$cross_compiling" = yes ||
26580	 $as_test_x conftest$ac_exeext
26581       }; then
26582  			if test "$cross_compiling" = yes; then
26583  ac_cv_type_long_long_int=yes
26584else
26585  cat >conftest.$ac_ext <<_ACEOF
26586/* confdefs.h.  */
26587_ACEOF
26588cat confdefs.h >>conftest.$ac_ext
26589cat >>conftest.$ac_ext <<_ACEOF
26590/* end confdefs.h.  */
26591#include <limits.h>
26592	       #ifndef LLONG_MAX
26593	       # define HALF \
26594			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
26595	       # define LLONG_MAX (HALF - 1 + HALF)
26596	       #endif
26597int
26598main ()
26599{
26600long long int n = 1;
26601	       int i;
26602	       for (i = 0; ; i++)
26603		 {
26604		   long long int m = n << i;
26605		   if (m >> i != n)
26606		     return 1;
26607		   if (LLONG_MAX / 2 < m)
26608		     break;
26609		 }
26610	       return 0;
26611  ;
26612  return 0;
26613}
26614_ACEOF
26615rm -f conftest$ac_exeext
26616if { (ac_try="$ac_link"
26617case "(($ac_try" in
26618  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26619  *) ac_try_echo=$ac_try;;
26620esac
26621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26622$as_echo "$ac_try_echo") >&5
26623  (eval "$ac_link") 2>&5
26624  ac_status=$?
26625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26627  { (case "(($ac_try" in
26628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26629  *) ac_try_echo=$ac_try;;
26630esac
26631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26632$as_echo "$ac_try_echo") >&5
26633  (eval "$ac_try") 2>&5
26634  ac_status=$?
26635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26636  (exit $ac_status); }; }; then
26637  ac_cv_type_long_long_int=yes
26638else
26639  $as_echo "$as_me: program exited with status $ac_status" >&5
26640$as_echo "$as_me: failed program was:" >&5
26641sed 's/^/| /' conftest.$ac_ext >&5
26642
26643( exit $ac_status )
26644ac_cv_type_long_long_int=no
26645fi
26646rm -rf conftest.dSYM
26647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26648fi
26649
26650
26651else
26652  $as_echo "$as_me: failed program was:" >&5
26653sed 's/^/| /' conftest.$ac_ext >&5
26654
26655	ac_cv_type_long_long_int=no
26656fi
26657
26658rm -rf conftest.dSYM
26659rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26660      conftest$ac_exeext conftest.$ac_ext
26661fi
26662{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
26663$as_echo "$ac_cv_type_long_long_int" >&6; }
26664  if test $ac_cv_type_long_long_int = yes; then
26665
26666cat >>confdefs.h <<\_ACEOF
26667#define HAVE_LONG_LONG_INT 1
26668_ACEOF
26669
26670  fi
26671
26672
26673  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
26674$as_echo_n "checking for wchar_t... " >&6; }
26675if test "${gt_cv_c_wchar_t+set}" = set; then
26676  $as_echo_n "(cached) " >&6
26677else
26678  cat >conftest.$ac_ext <<_ACEOF
26679/* confdefs.h.  */
26680_ACEOF
26681cat confdefs.h >>conftest.$ac_ext
26682cat >>conftest.$ac_ext <<_ACEOF
26683/* end confdefs.h.  */
26684#include <stddef.h>
26685       wchar_t foo = (wchar_t)'\0';
26686int
26687main ()
26688{
26689
26690  ;
26691  return 0;
26692}
26693_ACEOF
26694rm -f conftest.$ac_objext
26695if { (ac_try="$ac_compile"
26696case "(($ac_try" in
26697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26698  *) ac_try_echo=$ac_try;;
26699esac
26700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26701$as_echo "$ac_try_echo") >&5
26702  (eval "$ac_compile") 2>conftest.er1
26703  ac_status=$?
26704  grep -v '^ *+' conftest.er1 >conftest.err
26705  rm -f conftest.er1
26706  cat conftest.err >&5
26707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708  (exit $ac_status); } && {
26709	 test -z "$ac_c_werror_flag" ||
26710	 test ! -s conftest.err
26711       } && test -s conftest.$ac_objext; then
26712  gt_cv_c_wchar_t=yes
26713else
26714  $as_echo "$as_me: failed program was:" >&5
26715sed 's/^/| /' conftest.$ac_ext >&5
26716
26717	gt_cv_c_wchar_t=no
26718fi
26719
26720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26721fi
26722{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
26723$as_echo "$gt_cv_c_wchar_t" >&6; }
26724  if test $gt_cv_c_wchar_t = yes; then
26725
26726cat >>confdefs.h <<\_ACEOF
26727#define HAVE_WCHAR_T 1
26728_ACEOF
26729
26730  fi
26731
26732
26733  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
26734$as_echo_n "checking for wint_t... " >&6; }
26735if test "${gt_cv_c_wint_t+set}" = set; then
26736  $as_echo_n "(cached) " >&6
26737else
26738  cat >conftest.$ac_ext <<_ACEOF
26739/* confdefs.h.  */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h.  */
26744
26745/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
26746   <wchar.h>.
26747   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
26748   before <wchar.h>.  */
26749#include <stddef.h>
26750#include <stdio.h>
26751#include <time.h>
26752#include <wchar.h>
26753       wint_t foo = (wchar_t)'\0';
26754int
26755main ()
26756{
26757
26758  ;
26759  return 0;
26760}
26761_ACEOF
26762rm -f conftest.$ac_objext
26763if { (ac_try="$ac_compile"
26764case "(($ac_try" in
26765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26766  *) ac_try_echo=$ac_try;;
26767esac
26768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26769$as_echo "$ac_try_echo") >&5
26770  (eval "$ac_compile") 2>conftest.er1
26771  ac_status=$?
26772  grep -v '^ *+' conftest.er1 >conftest.err
26773  rm -f conftest.er1
26774  cat conftest.err >&5
26775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776  (exit $ac_status); } && {
26777	 test -z "$ac_c_werror_flag" ||
26778	 test ! -s conftest.err
26779       } && test -s conftest.$ac_objext; then
26780  gt_cv_c_wint_t=yes
26781else
26782  $as_echo "$as_me: failed program was:" >&5
26783sed 's/^/| /' conftest.$ac_ext >&5
26784
26785	gt_cv_c_wint_t=no
26786fi
26787
26788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26789fi
26790{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
26791$as_echo "$gt_cv_c_wint_t" >&6; }
26792  if test $gt_cv_c_wint_t = yes; then
26793
26794cat >>confdefs.h <<\_ACEOF
26795#define HAVE_WINT_T 1
26796_ACEOF
26797
26798  fi
26799
26800
26801
26802
26803  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
26804$as_echo_n "checking for intmax_t... " >&6; }
26805if test "${gt_cv_c_intmax_t+set}" = set; then
26806  $as_echo_n "(cached) " >&6
26807else
26808  cat >conftest.$ac_ext <<_ACEOF
26809/* confdefs.h.  */
26810_ACEOF
26811cat confdefs.h >>conftest.$ac_ext
26812cat >>conftest.$ac_ext <<_ACEOF
26813/* end confdefs.h.  */
26814
26815#include <stddef.h>
26816#include <stdlib.h>
26817#if HAVE_STDINT_H_WITH_UINTMAX
26818#include <stdint.h>
26819#endif
26820#if HAVE_INTTYPES_H_WITH_UINTMAX
26821#include <inttypes.h>
26822#endif
26823
26824int
26825main ()
26826{
26827intmax_t x = -1;
26828        return !x;
26829  ;
26830  return 0;
26831}
26832_ACEOF
26833rm -f conftest.$ac_objext
26834if { (ac_try="$ac_compile"
26835case "(($ac_try" in
26836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837  *) ac_try_echo=$ac_try;;
26838esac
26839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26840$as_echo "$ac_try_echo") >&5
26841  (eval "$ac_compile") 2>conftest.er1
26842  ac_status=$?
26843  grep -v '^ *+' conftest.er1 >conftest.err
26844  rm -f conftest.er1
26845  cat conftest.err >&5
26846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847  (exit $ac_status); } && {
26848	 test -z "$ac_c_werror_flag" ||
26849	 test ! -s conftest.err
26850       } && test -s conftest.$ac_objext; then
26851  gt_cv_c_intmax_t=yes
26852else
26853  $as_echo "$as_me: failed program was:" >&5
26854sed 's/^/| /' conftest.$ac_ext >&5
26855
26856	gt_cv_c_intmax_t=no
26857fi
26858
26859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26860fi
26861{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
26862$as_echo "$gt_cv_c_intmax_t" >&6; }
26863  if test $gt_cv_c_intmax_t = yes; then
26864
26865cat >>confdefs.h <<\_ACEOF
26866#define HAVE_INTMAX_T 1
26867_ACEOF
26868
26869  fi
26870
26871
26872
26873  { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
26874$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
26875if test "${gt_cv_func_printf_posix+set}" = set; then
26876  $as_echo_n "(cached) " >&6
26877else
26878
26879      if test "$cross_compiling" = yes; then
26880
26881        cat >conftest.$ac_ext <<_ACEOF
26882/* confdefs.h.  */
26883_ACEOF
26884cat confdefs.h >>conftest.$ac_ext
26885cat >>conftest.$ac_ext <<_ACEOF
26886/* end confdefs.h.  */
26887
26888#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
26889  notposix
26890#endif
26891
26892_ACEOF
26893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26894  $EGREP "notposix" >/dev/null 2>&1; then
26895  gt_cv_func_printf_posix="guessing no"
26896else
26897  gt_cv_func_printf_posix="guessing yes"
26898fi
26899rm -f conftest*
26900
26901
26902else
26903  cat >conftest.$ac_ext <<_ACEOF
26904/* confdefs.h.  */
26905_ACEOF
26906cat confdefs.h >>conftest.$ac_ext
26907cat >>conftest.$ac_ext <<_ACEOF
26908/* end confdefs.h.  */
26909
26910#include <stdio.h>
26911#include <string.h>
26912/* The string "%2$d %1$d", with dollar characters protected from the shell's
26913   dollar expansion (possibly an autoconf bug).  */
26914static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
26915static char buf[100];
26916int main ()
26917{
26918  sprintf (buf, format, 33, 55);
26919  return (strcmp (buf, "55 33") != 0);
26920}
26921_ACEOF
26922rm -f conftest$ac_exeext
26923if { (ac_try="$ac_link"
26924case "(($ac_try" in
26925  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926  *) ac_try_echo=$ac_try;;
26927esac
26928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26929$as_echo "$ac_try_echo") >&5
26930  (eval "$ac_link") 2>&5
26931  ac_status=$?
26932  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26934  { (case "(($ac_try" in
26935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26936  *) ac_try_echo=$ac_try;;
26937esac
26938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26939$as_echo "$ac_try_echo") >&5
26940  (eval "$ac_try") 2>&5
26941  ac_status=$?
26942  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943  (exit $ac_status); }; }; then
26944  gt_cv_func_printf_posix=yes
26945else
26946  $as_echo "$as_me: program exited with status $ac_status" >&5
26947$as_echo "$as_me: failed program was:" >&5
26948sed 's/^/| /' conftest.$ac_ext >&5
26949
26950( exit $ac_status )
26951gt_cv_func_printf_posix=no
26952fi
26953rm -rf conftest.dSYM
26954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26955fi
26956
26957
26958
26959fi
26960{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
26961$as_echo "$gt_cv_func_printf_posix" >&6; }
26962  case $gt_cv_func_printf_posix in
26963    *yes)
26964
26965cat >>confdefs.h <<\_ACEOF
26966#define HAVE_POSIX_PRINTF 1
26967_ACEOF
26968
26969      ;;
26970  esac
26971
26972
26973    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
26974$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
26975if test "${ac_cv_gnu_library_2_1+set}" = set; then
26976  $as_echo_n "(cached) " >&6
26977else
26978  cat >conftest.$ac_ext <<_ACEOF
26979/* confdefs.h.  */
26980_ACEOF
26981cat confdefs.h >>conftest.$ac_ext
26982cat >>conftest.$ac_ext <<_ACEOF
26983/* end confdefs.h.  */
26984
26985#include <features.h>
26986#ifdef __GNU_LIBRARY__
26987 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
26988  Lucky GNU user
26989 #endif
26990#endif
26991
26992_ACEOF
26993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26994  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
26995  ac_cv_gnu_library_2_1=yes
26996else
26997  ac_cv_gnu_library_2_1=no
26998fi
26999rm -f conftest*
27000
27001
27002
27003fi
27004{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
27005$as_echo "$ac_cv_gnu_library_2_1" >&6; }
27006
27007    GLIBC21="$ac_cv_gnu_library_2_1"
27008
27009
27010
27011
27012for ac_header in stdint.h
27013do
27014as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27016  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27017$as_echo_n "checking for $ac_header... " >&6; }
27018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27019  $as_echo_n "(cached) " >&6
27020fi
27021ac_res=`eval 'as_val=${'$as_ac_Header'}
27022		 $as_echo "$as_val"'`
27023	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27024$as_echo "$ac_res" >&6; }
27025else
27026  # Is the header compilable?
27027{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27028$as_echo_n "checking $ac_header usability... " >&6; }
27029cat >conftest.$ac_ext <<_ACEOF
27030/* confdefs.h.  */
27031_ACEOF
27032cat confdefs.h >>conftest.$ac_ext
27033cat >>conftest.$ac_ext <<_ACEOF
27034/* end confdefs.h.  */
27035$ac_includes_default
27036#include <$ac_header>
27037_ACEOF
27038rm -f conftest.$ac_objext
27039if { (ac_try="$ac_compile"
27040case "(($ac_try" in
27041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27042  *) ac_try_echo=$ac_try;;
27043esac
27044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27045$as_echo "$ac_try_echo") >&5
27046  (eval "$ac_compile") 2>conftest.er1
27047  ac_status=$?
27048  grep -v '^ *+' conftest.er1 >conftest.err
27049  rm -f conftest.er1
27050  cat conftest.err >&5
27051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052  (exit $ac_status); } && {
27053	 test -z "$ac_c_werror_flag" ||
27054	 test ! -s conftest.err
27055       } && test -s conftest.$ac_objext; then
27056  ac_header_compiler=yes
27057else
27058  $as_echo "$as_me: failed program was:" >&5
27059sed 's/^/| /' conftest.$ac_ext >&5
27060
27061	ac_header_compiler=no
27062fi
27063
27064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27065{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27066$as_echo "$ac_header_compiler" >&6; }
27067
27068# Is the header present?
27069{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27070$as_echo_n "checking $ac_header presence... " >&6; }
27071cat >conftest.$ac_ext <<_ACEOF
27072/* confdefs.h.  */
27073_ACEOF
27074cat confdefs.h >>conftest.$ac_ext
27075cat >>conftest.$ac_ext <<_ACEOF
27076/* end confdefs.h.  */
27077#include <$ac_header>
27078_ACEOF
27079if { (ac_try="$ac_cpp conftest.$ac_ext"
27080case "(($ac_try" in
27081  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082  *) ac_try_echo=$ac_try;;
27083esac
27084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27085$as_echo "$ac_try_echo") >&5
27086  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27087  ac_status=$?
27088  grep -v '^ *+' conftest.er1 >conftest.err
27089  rm -f conftest.er1
27090  cat conftest.err >&5
27091  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092  (exit $ac_status); } >/dev/null && {
27093	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27094	 test ! -s conftest.err
27095       }; then
27096  ac_header_preproc=yes
27097else
27098  $as_echo "$as_me: failed program was:" >&5
27099sed 's/^/| /' conftest.$ac_ext >&5
27100
27101  ac_header_preproc=no
27102fi
27103
27104rm -f conftest.err conftest.$ac_ext
27105{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27106$as_echo "$ac_header_preproc" >&6; }
27107
27108# So?  What about this header?
27109case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27110  yes:no: )
27111    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27112$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27113    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27114$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27115    ac_header_preproc=yes
27116    ;;
27117  no:yes:* )
27118    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27119$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27120    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27121$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27122    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27123$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27124    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27125$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27126    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27127$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27128    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27129$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27130
27131    ;;
27132esac
27133{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27134$as_echo_n "checking for $ac_header... " >&6; }
27135if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27136  $as_echo_n "(cached) " >&6
27137else
27138  eval "$as_ac_Header=\$ac_header_preproc"
27139fi
27140ac_res=`eval 'as_val=${'$as_ac_Header'}
27141		 $as_echo "$as_val"'`
27142	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27143$as_echo "$ac_res" >&6; }
27144
27145fi
27146as_val=`eval 'as_val=${'$as_ac_Header'}
27147		 $as_echo "$as_val"'`
27148   if test "x$as_val" = x""yes; then
27149  cat >>confdefs.h <<_ACEOF
27150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27151_ACEOF
27152
27153fi
27154
27155done
27156
27157    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
27158$as_echo_n "checking for SIZE_MAX... " >&6; }
27159  if test "${gl_cv_size_max+set}" = set; then
27160  $as_echo_n "(cached) " >&6
27161else
27162
27163    gl_cv_size_max=
27164    cat >conftest.$ac_ext <<_ACEOF
27165/* confdefs.h.  */
27166_ACEOF
27167cat confdefs.h >>conftest.$ac_ext
27168cat >>conftest.$ac_ext <<_ACEOF
27169/* end confdefs.h.  */
27170
27171#include <limits.h>
27172#if HAVE_STDINT_H
27173#include <stdint.h>
27174#endif
27175#ifdef SIZE_MAX
27176Found it
27177#endif
27178
27179_ACEOF
27180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27181  $EGREP "Found it" >/dev/null 2>&1; then
27182  gl_cv_size_max=yes
27183fi
27184rm -f conftest*
27185
27186    if test -z "$gl_cv_size_max"; then
27187                        if test "$cross_compiling" = yes; then
27188  # Depending upon the size, compute the lo and hi bounds.
27189cat >conftest.$ac_ext <<_ACEOF
27190/* confdefs.h.  */
27191_ACEOF
27192cat confdefs.h >>conftest.$ac_ext
27193cat >>conftest.$ac_ext <<_ACEOF
27194/* end confdefs.h.  */
27195#include <stddef.h>
27196#include <limits.h>
27197int
27198main ()
27199{
27200static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
27201test_array [0] = 0
27202
27203  ;
27204  return 0;
27205}
27206_ACEOF
27207rm -f conftest.$ac_objext
27208if { (ac_try="$ac_compile"
27209case "(($ac_try" in
27210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211  *) ac_try_echo=$ac_try;;
27212esac
27213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27214$as_echo "$ac_try_echo") >&5
27215  (eval "$ac_compile") 2>conftest.er1
27216  ac_status=$?
27217  grep -v '^ *+' conftest.er1 >conftest.err
27218  rm -f conftest.er1
27219  cat conftest.err >&5
27220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221  (exit $ac_status); } && {
27222	 test -z "$ac_c_werror_flag" ||
27223	 test ! -s conftest.err
27224       } && test -s conftest.$ac_objext; then
27225  ac_lo=0 ac_mid=0
27226  while :; do
27227    cat >conftest.$ac_ext <<_ACEOF
27228/* confdefs.h.  */
27229_ACEOF
27230cat confdefs.h >>conftest.$ac_ext
27231cat >>conftest.$ac_ext <<_ACEOF
27232/* end confdefs.h.  */
27233#include <stddef.h>
27234#include <limits.h>
27235int
27236main ()
27237{
27238static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27239test_array [0] = 0
27240
27241  ;
27242  return 0;
27243}
27244_ACEOF
27245rm -f conftest.$ac_objext
27246if { (ac_try="$ac_compile"
27247case "(($ac_try" in
27248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27249  *) ac_try_echo=$ac_try;;
27250esac
27251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27252$as_echo "$ac_try_echo") >&5
27253  (eval "$ac_compile") 2>conftest.er1
27254  ac_status=$?
27255  grep -v '^ *+' conftest.er1 >conftest.err
27256  rm -f conftest.er1
27257  cat conftest.err >&5
27258  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259  (exit $ac_status); } && {
27260	 test -z "$ac_c_werror_flag" ||
27261	 test ! -s conftest.err
27262       } && test -s conftest.$ac_objext; then
27263  ac_hi=$ac_mid; break
27264else
27265  $as_echo "$as_me: failed program was:" >&5
27266sed 's/^/| /' conftest.$ac_ext >&5
27267
27268	ac_lo=`expr $ac_mid + 1`
27269			if test $ac_lo -le $ac_mid; then
27270			  ac_lo= ac_hi=
27271			  break
27272			fi
27273			ac_mid=`expr 2 '*' $ac_mid + 1`
27274fi
27275
27276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27277  done
27278else
27279  $as_echo "$as_me: failed program was:" >&5
27280sed 's/^/| /' conftest.$ac_ext >&5
27281
27282	cat >conftest.$ac_ext <<_ACEOF
27283/* confdefs.h.  */
27284_ACEOF
27285cat confdefs.h >>conftest.$ac_ext
27286cat >>conftest.$ac_ext <<_ACEOF
27287/* end confdefs.h.  */
27288#include <stddef.h>
27289#include <limits.h>
27290int
27291main ()
27292{
27293static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
27294test_array [0] = 0
27295
27296  ;
27297  return 0;
27298}
27299_ACEOF
27300rm -f conftest.$ac_objext
27301if { (ac_try="$ac_compile"
27302case "(($ac_try" in
27303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27304  *) ac_try_echo=$ac_try;;
27305esac
27306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27307$as_echo "$ac_try_echo") >&5
27308  (eval "$ac_compile") 2>conftest.er1
27309  ac_status=$?
27310  grep -v '^ *+' conftest.er1 >conftest.err
27311  rm -f conftest.er1
27312  cat conftest.err >&5
27313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314  (exit $ac_status); } && {
27315	 test -z "$ac_c_werror_flag" ||
27316	 test ! -s conftest.err
27317       } && test -s conftest.$ac_objext; then
27318  ac_hi=-1 ac_mid=-1
27319  while :; do
27320    cat >conftest.$ac_ext <<_ACEOF
27321/* confdefs.h.  */
27322_ACEOF
27323cat confdefs.h >>conftest.$ac_ext
27324cat >>conftest.$ac_ext <<_ACEOF
27325/* end confdefs.h.  */
27326#include <stddef.h>
27327#include <limits.h>
27328int
27329main ()
27330{
27331static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
27332test_array [0] = 0
27333
27334  ;
27335  return 0;
27336}
27337_ACEOF
27338rm -f conftest.$ac_objext
27339if { (ac_try="$ac_compile"
27340case "(($ac_try" in
27341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27342  *) ac_try_echo=$ac_try;;
27343esac
27344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27345$as_echo "$ac_try_echo") >&5
27346  (eval "$ac_compile") 2>conftest.er1
27347  ac_status=$?
27348  grep -v '^ *+' conftest.er1 >conftest.err
27349  rm -f conftest.er1
27350  cat conftest.err >&5
27351  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352  (exit $ac_status); } && {
27353	 test -z "$ac_c_werror_flag" ||
27354	 test ! -s conftest.err
27355       } && test -s conftest.$ac_objext; then
27356  ac_lo=$ac_mid; break
27357else
27358  $as_echo "$as_me: failed program was:" >&5
27359sed 's/^/| /' conftest.$ac_ext >&5
27360
27361	ac_hi=`expr '(' $ac_mid ')' - 1`
27362			if test $ac_mid -le $ac_hi; then
27363			  ac_lo= ac_hi=
27364			  break
27365			fi
27366			ac_mid=`expr 2 '*' $ac_mid`
27367fi
27368
27369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27370  done
27371else
27372  $as_echo "$as_me: failed program was:" >&5
27373sed 's/^/| /' conftest.$ac_ext >&5
27374
27375	ac_lo= ac_hi=
27376fi
27377
27378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27379fi
27380
27381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27382# Binary search between lo and hi bounds.
27383while test "x$ac_lo" != "x$ac_hi"; do
27384  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27385  cat >conftest.$ac_ext <<_ACEOF
27386/* confdefs.h.  */
27387_ACEOF
27388cat confdefs.h >>conftest.$ac_ext
27389cat >>conftest.$ac_ext <<_ACEOF
27390/* end confdefs.h.  */
27391#include <stddef.h>
27392#include <limits.h>
27393int
27394main ()
27395{
27396static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
27397test_array [0] = 0
27398
27399  ;
27400  return 0;
27401}
27402_ACEOF
27403rm -f conftest.$ac_objext
27404if { (ac_try="$ac_compile"
27405case "(($ac_try" in
27406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407  *) ac_try_echo=$ac_try;;
27408esac
27409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27410$as_echo "$ac_try_echo") >&5
27411  (eval "$ac_compile") 2>conftest.er1
27412  ac_status=$?
27413  grep -v '^ *+' conftest.er1 >conftest.err
27414  rm -f conftest.er1
27415  cat conftest.err >&5
27416  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27417  (exit $ac_status); } && {
27418	 test -z "$ac_c_werror_flag" ||
27419	 test ! -s conftest.err
27420       } && test -s conftest.$ac_objext; then
27421  ac_hi=$ac_mid
27422else
27423  $as_echo "$as_me: failed program was:" >&5
27424sed 's/^/| /' conftest.$ac_ext >&5
27425
27426	ac_lo=`expr '(' $ac_mid ')' + 1`
27427fi
27428
27429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27430done
27431case $ac_lo in
27432?*) size_t_bits_minus_1=$ac_lo;;
27433'') size_t_bits_minus_1= ;;
27434esac
27435else
27436  cat >conftest.$ac_ext <<_ACEOF
27437/* confdefs.h.  */
27438_ACEOF
27439cat confdefs.h >>conftest.$ac_ext
27440cat >>conftest.$ac_ext <<_ACEOF
27441/* end confdefs.h.  */
27442#include <stddef.h>
27443#include <limits.h>
27444static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
27445static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
27446#include <stdio.h>
27447#include <stdlib.h>
27448int
27449main ()
27450{
27451
27452  FILE *f = fopen ("conftest.val", "w");
27453  if (! f)
27454    return 1;
27455  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
27456    {
27457      long int i = longval ();
27458      if (i != (sizeof (size_t) * CHAR_BIT - 1))
27459	return 1;
27460      fprintf (f, "%ld", i);
27461    }
27462  else
27463    {
27464      unsigned long int i = ulongval ();
27465      if (i != (sizeof (size_t) * CHAR_BIT - 1))
27466	return 1;
27467      fprintf (f, "%lu", i);
27468    }
27469  /* Do not output a trailing newline, as this causes \r\n confusion
27470     on some platforms.  */
27471  return ferror (f) || fclose (f) != 0;
27472
27473  ;
27474  return 0;
27475}
27476_ACEOF
27477rm -f conftest$ac_exeext
27478if { (ac_try="$ac_link"
27479case "(($ac_try" in
27480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481  *) ac_try_echo=$ac_try;;
27482esac
27483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27484$as_echo "$ac_try_echo") >&5
27485  (eval "$ac_link") 2>&5
27486  ac_status=$?
27487  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27489  { (case "(($ac_try" in
27490  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491  *) ac_try_echo=$ac_try;;
27492esac
27493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27494$as_echo "$ac_try_echo") >&5
27495  (eval "$ac_try") 2>&5
27496  ac_status=$?
27497  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498  (exit $ac_status); }; }; then
27499  size_t_bits_minus_1=`cat conftest.val`
27500else
27501  $as_echo "$as_me: program exited with status $ac_status" >&5
27502$as_echo "$as_me: failed program was:" >&5
27503sed 's/^/| /' conftest.$ac_ext >&5
27504
27505( exit $ac_status )
27506size_t_bits_minus_1=
27507fi
27508rm -rf conftest.dSYM
27509rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27510fi
27511rm -f conftest.val
27512      if test "$cross_compiling" = yes; then
27513  # Depending upon the size, compute the lo and hi bounds.
27514cat >conftest.$ac_ext <<_ACEOF
27515/* confdefs.h.  */
27516_ACEOF
27517cat confdefs.h >>conftest.$ac_ext
27518cat >>conftest.$ac_ext <<_ACEOF
27519/* end confdefs.h.  */
27520#include <stddef.h>
27521int
27522main ()
27523{
27524static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
27525test_array [0] = 0
27526
27527  ;
27528  return 0;
27529}
27530_ACEOF
27531rm -f conftest.$ac_objext
27532if { (ac_try="$ac_compile"
27533case "(($ac_try" in
27534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535  *) ac_try_echo=$ac_try;;
27536esac
27537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27538$as_echo "$ac_try_echo") >&5
27539  (eval "$ac_compile") 2>conftest.er1
27540  ac_status=$?
27541  grep -v '^ *+' conftest.er1 >conftest.err
27542  rm -f conftest.er1
27543  cat conftest.err >&5
27544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545  (exit $ac_status); } && {
27546	 test -z "$ac_c_werror_flag" ||
27547	 test ! -s conftest.err
27548       } && test -s conftest.$ac_objext; then
27549  ac_lo=0 ac_mid=0
27550  while :; do
27551    cat >conftest.$ac_ext <<_ACEOF
27552/* confdefs.h.  */
27553_ACEOF
27554cat confdefs.h >>conftest.$ac_ext
27555cat >>conftest.$ac_ext <<_ACEOF
27556/* end confdefs.h.  */
27557#include <stddef.h>
27558int
27559main ()
27560{
27561static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27562test_array [0] = 0
27563
27564  ;
27565  return 0;
27566}
27567_ACEOF
27568rm -f conftest.$ac_objext
27569if { (ac_try="$ac_compile"
27570case "(($ac_try" in
27571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572  *) ac_try_echo=$ac_try;;
27573esac
27574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27575$as_echo "$ac_try_echo") >&5
27576  (eval "$ac_compile") 2>conftest.er1
27577  ac_status=$?
27578  grep -v '^ *+' conftest.er1 >conftest.err
27579  rm -f conftest.er1
27580  cat conftest.err >&5
27581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582  (exit $ac_status); } && {
27583	 test -z "$ac_c_werror_flag" ||
27584	 test ! -s conftest.err
27585       } && test -s conftest.$ac_objext; then
27586  ac_hi=$ac_mid; break
27587else
27588  $as_echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
27591	ac_lo=`expr $ac_mid + 1`
27592			if test $ac_lo -le $ac_mid; then
27593			  ac_lo= ac_hi=
27594			  break
27595			fi
27596			ac_mid=`expr 2 '*' $ac_mid + 1`
27597fi
27598
27599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600  done
27601else
27602  $as_echo "$as_me: failed program was:" >&5
27603sed 's/^/| /' conftest.$ac_ext >&5
27604
27605	cat >conftest.$ac_ext <<_ACEOF
27606/* confdefs.h.  */
27607_ACEOF
27608cat confdefs.h >>conftest.$ac_ext
27609cat >>conftest.$ac_ext <<_ACEOF
27610/* end confdefs.h.  */
27611#include <stddef.h>
27612int
27613main ()
27614{
27615static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
27616test_array [0] = 0
27617
27618  ;
27619  return 0;
27620}
27621_ACEOF
27622rm -f conftest.$ac_objext
27623if { (ac_try="$ac_compile"
27624case "(($ac_try" in
27625  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27626  *) ac_try_echo=$ac_try;;
27627esac
27628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27629$as_echo "$ac_try_echo") >&5
27630  (eval "$ac_compile") 2>conftest.er1
27631  ac_status=$?
27632  grep -v '^ *+' conftest.er1 >conftest.err
27633  rm -f conftest.er1
27634  cat conftest.err >&5
27635  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636  (exit $ac_status); } && {
27637	 test -z "$ac_c_werror_flag" ||
27638	 test ! -s conftest.err
27639       } && test -s conftest.$ac_objext; then
27640  ac_hi=-1 ac_mid=-1
27641  while :; do
27642    cat >conftest.$ac_ext <<_ACEOF
27643/* confdefs.h.  */
27644_ACEOF
27645cat confdefs.h >>conftest.$ac_ext
27646cat >>conftest.$ac_ext <<_ACEOF
27647/* end confdefs.h.  */
27648#include <stddef.h>
27649int
27650main ()
27651{
27652static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
27653test_array [0] = 0
27654
27655  ;
27656  return 0;
27657}
27658_ACEOF
27659rm -f conftest.$ac_objext
27660if { (ac_try="$ac_compile"
27661case "(($ac_try" in
27662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663  *) ac_try_echo=$ac_try;;
27664esac
27665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27666$as_echo "$ac_try_echo") >&5
27667  (eval "$ac_compile") 2>conftest.er1
27668  ac_status=$?
27669  grep -v '^ *+' conftest.er1 >conftest.err
27670  rm -f conftest.er1
27671  cat conftest.err >&5
27672  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673  (exit $ac_status); } && {
27674	 test -z "$ac_c_werror_flag" ||
27675	 test ! -s conftest.err
27676       } && test -s conftest.$ac_objext; then
27677  ac_lo=$ac_mid; break
27678else
27679  $as_echo "$as_me: failed program was:" >&5
27680sed 's/^/| /' conftest.$ac_ext >&5
27681
27682	ac_hi=`expr '(' $ac_mid ')' - 1`
27683			if test $ac_mid -le $ac_hi; then
27684			  ac_lo= ac_hi=
27685			  break
27686			fi
27687			ac_mid=`expr 2 '*' $ac_mid`
27688fi
27689
27690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27691  done
27692else
27693  $as_echo "$as_me: failed program was:" >&5
27694sed 's/^/| /' conftest.$ac_ext >&5
27695
27696	ac_lo= ac_hi=
27697fi
27698
27699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27700fi
27701
27702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27703# Binary search between lo and hi bounds.
27704while test "x$ac_lo" != "x$ac_hi"; do
27705  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27706  cat >conftest.$ac_ext <<_ACEOF
27707/* confdefs.h.  */
27708_ACEOF
27709cat confdefs.h >>conftest.$ac_ext
27710cat >>conftest.$ac_ext <<_ACEOF
27711/* end confdefs.h.  */
27712#include <stddef.h>
27713int
27714main ()
27715{
27716static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
27717test_array [0] = 0
27718
27719  ;
27720  return 0;
27721}
27722_ACEOF
27723rm -f conftest.$ac_objext
27724if { (ac_try="$ac_compile"
27725case "(($ac_try" in
27726  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27727  *) ac_try_echo=$ac_try;;
27728esac
27729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27730$as_echo "$ac_try_echo") >&5
27731  (eval "$ac_compile") 2>conftest.er1
27732  ac_status=$?
27733  grep -v '^ *+' conftest.er1 >conftest.err
27734  rm -f conftest.er1
27735  cat conftest.err >&5
27736  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737  (exit $ac_status); } && {
27738	 test -z "$ac_c_werror_flag" ||
27739	 test ! -s conftest.err
27740       } && test -s conftest.$ac_objext; then
27741  ac_hi=$ac_mid
27742else
27743  $as_echo "$as_me: failed program was:" >&5
27744sed 's/^/| /' conftest.$ac_ext >&5
27745
27746	ac_lo=`expr '(' $ac_mid ')' + 1`
27747fi
27748
27749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27750done
27751case $ac_lo in
27752?*) fits_in_uint=$ac_lo;;
27753'') fits_in_uint= ;;
27754esac
27755else
27756  cat >conftest.$ac_ext <<_ACEOF
27757/* confdefs.h.  */
27758_ACEOF
27759cat confdefs.h >>conftest.$ac_ext
27760cat >>conftest.$ac_ext <<_ACEOF
27761/* end confdefs.h.  */
27762#include <stddef.h>
27763static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
27764static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
27765#include <stdio.h>
27766#include <stdlib.h>
27767int
27768main ()
27769{
27770
27771  FILE *f = fopen ("conftest.val", "w");
27772  if (! f)
27773    return 1;
27774  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
27775    {
27776      long int i = longval ();
27777      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27778	return 1;
27779      fprintf (f, "%ld", i);
27780    }
27781  else
27782    {
27783      unsigned long int i = ulongval ();
27784      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
27785	return 1;
27786      fprintf (f, "%lu", i);
27787    }
27788  /* Do not output a trailing newline, as this causes \r\n confusion
27789     on some platforms.  */
27790  return ferror (f) || fclose (f) != 0;
27791
27792  ;
27793  return 0;
27794}
27795_ACEOF
27796rm -f conftest$ac_exeext
27797if { (ac_try="$ac_link"
27798case "(($ac_try" in
27799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800  *) ac_try_echo=$ac_try;;
27801esac
27802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27803$as_echo "$ac_try_echo") >&5
27804  (eval "$ac_link") 2>&5
27805  ac_status=$?
27806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27808  { (case "(($ac_try" in
27809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810  *) ac_try_echo=$ac_try;;
27811esac
27812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27813$as_echo "$ac_try_echo") >&5
27814  (eval "$ac_try") 2>&5
27815  ac_status=$?
27816  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817  (exit $ac_status); }; }; then
27818  fits_in_uint=`cat conftest.val`
27819else
27820  $as_echo "$as_me: program exited with status $ac_status" >&5
27821$as_echo "$as_me: failed program was:" >&5
27822sed 's/^/| /' conftest.$ac_ext >&5
27823
27824( exit $ac_status )
27825fits_in_uint=
27826fi
27827rm -rf conftest.dSYM
27828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27829fi
27830rm -f conftest.val
27831      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
27832        if test $fits_in_uint = 1; then
27833                              cat >conftest.$ac_ext <<_ACEOF
27834/* confdefs.h.  */
27835_ACEOF
27836cat confdefs.h >>conftest.$ac_ext
27837cat >>conftest.$ac_ext <<_ACEOF
27838/* end confdefs.h.  */
27839#include <stddef.h>
27840            extern size_t foo;
27841            extern unsigned long foo;
27842
27843int
27844main ()
27845{
27846
27847  ;
27848  return 0;
27849}
27850_ACEOF
27851rm -f conftest.$ac_objext
27852if { (ac_try="$ac_compile"
27853case "(($ac_try" in
27854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27855  *) ac_try_echo=$ac_try;;
27856esac
27857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27858$as_echo "$ac_try_echo") >&5
27859  (eval "$ac_compile") 2>conftest.er1
27860  ac_status=$?
27861  grep -v '^ *+' conftest.er1 >conftest.err
27862  rm -f conftest.er1
27863  cat conftest.err >&5
27864  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865  (exit $ac_status); } && {
27866	 test -z "$ac_c_werror_flag" ||
27867	 test ! -s conftest.err
27868       } && test -s conftest.$ac_objext; then
27869  fits_in_uint=0
27870else
27871  $as_echo "$as_me: failed program was:" >&5
27872sed 's/^/| /' conftest.$ac_ext >&5
27873
27874
27875fi
27876
27877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27878        fi
27879                                if test $fits_in_uint = 1; then
27880          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
27881        else
27882          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
27883        fi
27884      else
27885                gl_cv_size_max='((size_t)~(size_t)0)'
27886      fi
27887    fi
27888
27889fi
27890
27891  { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
27892$as_echo "$gl_cv_size_max" >&6; }
27893  if test "$gl_cv_size_max" != yes; then
27894
27895cat >>confdefs.h <<_ACEOF
27896#define SIZE_MAX $gl_cv_size_max
27897_ACEOF
27898
27899  fi
27900
27901
27902
27903
27904
27905for ac_header in stdint.h
27906do
27907as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27909  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
27910$as_echo_n "checking for $ac_header... " >&6; }
27911if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27912  $as_echo_n "(cached) " >&6
27913fi
27914ac_res=`eval 'as_val=${'$as_ac_Header'}
27915		 $as_echo "$as_val"'`
27916	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27917$as_echo "$ac_res" >&6; }
27918else
27919  # Is the header compilable?
27920{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
27921$as_echo_n "checking $ac_header usability... " >&6; }
27922cat >conftest.$ac_ext <<_ACEOF
27923/* confdefs.h.  */
27924_ACEOF
27925cat confdefs.h >>conftest.$ac_ext
27926cat >>conftest.$ac_ext <<_ACEOF
27927/* end confdefs.h.  */
27928$ac_includes_default
27929#include <$ac_header>
27930_ACEOF
27931rm -f conftest.$ac_objext
27932if { (ac_try="$ac_compile"
27933case "(($ac_try" in
27934  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27935  *) ac_try_echo=$ac_try;;
27936esac
27937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27938$as_echo "$ac_try_echo") >&5
27939  (eval "$ac_compile") 2>conftest.er1
27940  ac_status=$?
27941  grep -v '^ *+' conftest.er1 >conftest.err
27942  rm -f conftest.er1
27943  cat conftest.err >&5
27944  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945  (exit $ac_status); } && {
27946	 test -z "$ac_c_werror_flag" ||
27947	 test ! -s conftest.err
27948       } && test -s conftest.$ac_objext; then
27949  ac_header_compiler=yes
27950else
27951  $as_echo "$as_me: failed program was:" >&5
27952sed 's/^/| /' conftest.$ac_ext >&5
27953
27954	ac_header_compiler=no
27955fi
27956
27957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27958{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27959$as_echo "$ac_header_compiler" >&6; }
27960
27961# Is the header present?
27962{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
27963$as_echo_n "checking $ac_header presence... " >&6; }
27964cat >conftest.$ac_ext <<_ACEOF
27965/* confdefs.h.  */
27966_ACEOF
27967cat confdefs.h >>conftest.$ac_ext
27968cat >>conftest.$ac_ext <<_ACEOF
27969/* end confdefs.h.  */
27970#include <$ac_header>
27971_ACEOF
27972if { (ac_try="$ac_cpp conftest.$ac_ext"
27973case "(($ac_try" in
27974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27975  *) ac_try_echo=$ac_try;;
27976esac
27977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27978$as_echo "$ac_try_echo") >&5
27979  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27980  ac_status=$?
27981  grep -v '^ *+' conftest.er1 >conftest.err
27982  rm -f conftest.er1
27983  cat conftest.err >&5
27984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985  (exit $ac_status); } >/dev/null && {
27986	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27987	 test ! -s conftest.err
27988       }; then
27989  ac_header_preproc=yes
27990else
27991  $as_echo "$as_me: failed program was:" >&5
27992sed 's/^/| /' conftest.$ac_ext >&5
27993
27994  ac_header_preproc=no
27995fi
27996
27997rm -f conftest.err conftest.$ac_ext
27998{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27999$as_echo "$ac_header_preproc" >&6; }
28000
28001# So?  What about this header?
28002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28003  yes:no: )
28004    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28005$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28006    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28007$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28008    ac_header_preproc=yes
28009    ;;
28010  no:yes:* )
28011    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28012$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28013    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28014$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28015    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28016$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28017    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28018$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28019    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28020$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28021    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28022$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28023
28024    ;;
28025esac
28026{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28027$as_echo_n "checking for $ac_header... " >&6; }
28028if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28029  $as_echo_n "(cached) " >&6
28030else
28031  eval "$as_ac_Header=\$ac_header_preproc"
28032fi
28033ac_res=`eval 'as_val=${'$as_ac_Header'}
28034		 $as_echo "$as_val"'`
28035	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28036$as_echo "$ac_res" >&6; }
28037
28038fi
28039as_val=`eval 'as_val=${'$as_ac_Header'}
28040		 $as_echo "$as_val"'`
28041   if test "x$as_val" = x""yes; then
28042  cat >>confdefs.h <<_ACEOF
28043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28044_ACEOF
28045
28046fi
28047
28048done
28049
28050
28051
28052    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
28053$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
28054if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
28055  $as_echo_n "(cached) " >&6
28056else
28057  gt_save_LIBS="$LIBS"
28058     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
28059     cat >conftest.$ac_ext <<_ACEOF
28060/* confdefs.h.  */
28061_ACEOF
28062cat confdefs.h >>conftest.$ac_ext
28063cat >>conftest.$ac_ext <<_ACEOF
28064/* end confdefs.h.  */
28065#include <CoreFoundation/CFPreferences.h>
28066int
28067main ()
28068{
28069CFPreferencesCopyAppValue(NULL, NULL)
28070  ;
28071  return 0;
28072}
28073_ACEOF
28074rm -f conftest.$ac_objext conftest$ac_exeext
28075if { (ac_try="$ac_link"
28076case "(($ac_try" in
28077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078  *) ac_try_echo=$ac_try;;
28079esac
28080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28081$as_echo "$ac_try_echo") >&5
28082  (eval "$ac_link") 2>conftest.er1
28083  ac_status=$?
28084  grep -v '^ *+' conftest.er1 >conftest.err
28085  rm -f conftest.er1
28086  cat conftest.err >&5
28087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088  (exit $ac_status); } && {
28089	 test -z "$ac_c_werror_flag" ||
28090	 test ! -s conftest.err
28091       } && test -s conftest$ac_exeext && {
28092	 test "$cross_compiling" = yes ||
28093	 $as_test_x conftest$ac_exeext
28094       }; then
28095  gt_cv_func_CFPreferencesCopyAppValue=yes
28096else
28097  $as_echo "$as_me: failed program was:" >&5
28098sed 's/^/| /' conftest.$ac_ext >&5
28099
28100	gt_cv_func_CFPreferencesCopyAppValue=no
28101fi
28102
28103rm -rf conftest.dSYM
28104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28105      conftest$ac_exeext conftest.$ac_ext
28106     LIBS="$gt_save_LIBS"
28107fi
28108{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
28109$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
28110  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
28111
28112cat >>confdefs.h <<\_ACEOF
28113#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
28114_ACEOF
28115
28116  fi
28117    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
28118$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
28119if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
28120  $as_echo_n "(cached) " >&6
28121else
28122  gt_save_LIBS="$LIBS"
28123     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
28124     cat >conftest.$ac_ext <<_ACEOF
28125/* confdefs.h.  */
28126_ACEOF
28127cat confdefs.h >>conftest.$ac_ext
28128cat >>conftest.$ac_ext <<_ACEOF
28129/* end confdefs.h.  */
28130#include <CoreFoundation/CFLocale.h>
28131int
28132main ()
28133{
28134CFLocaleCopyCurrent();
28135  ;
28136  return 0;
28137}
28138_ACEOF
28139rm -f conftest.$ac_objext conftest$ac_exeext
28140if { (ac_try="$ac_link"
28141case "(($ac_try" in
28142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143  *) ac_try_echo=$ac_try;;
28144esac
28145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28146$as_echo "$ac_try_echo") >&5
28147  (eval "$ac_link") 2>conftest.er1
28148  ac_status=$?
28149  grep -v '^ *+' conftest.er1 >conftest.err
28150  rm -f conftest.er1
28151  cat conftest.err >&5
28152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153  (exit $ac_status); } && {
28154	 test -z "$ac_c_werror_flag" ||
28155	 test ! -s conftest.err
28156       } && test -s conftest$ac_exeext && {
28157	 test "$cross_compiling" = yes ||
28158	 $as_test_x conftest$ac_exeext
28159       }; then
28160  gt_cv_func_CFLocaleCopyCurrent=yes
28161else
28162  $as_echo "$as_me: failed program was:" >&5
28163sed 's/^/| /' conftest.$ac_ext >&5
28164
28165	gt_cv_func_CFLocaleCopyCurrent=no
28166fi
28167
28168rm -rf conftest.dSYM
28169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28170      conftest$ac_exeext conftest.$ac_ext
28171     LIBS="$gt_save_LIBS"
28172fi
28173{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
28174$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
28175  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
28176
28177cat >>confdefs.h <<\_ACEOF
28178#define HAVE_CFLOCALECOPYCURRENT 1
28179_ACEOF
28180
28181  fi
28182  INTL_MACOSX_LIBS=
28183  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
28184    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
28185  fi
28186
28187
28188
28189
28190
28191
28192
28193  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
28194$as_echo_n "checking for ptrdiff_t... " >&6; }
28195if test "${ac_cv_type_ptrdiff_t+set}" = set; then
28196  $as_echo_n "(cached) " >&6
28197else
28198  ac_cv_type_ptrdiff_t=no
28199cat >conftest.$ac_ext <<_ACEOF
28200/* confdefs.h.  */
28201_ACEOF
28202cat confdefs.h >>conftest.$ac_ext
28203cat >>conftest.$ac_ext <<_ACEOF
28204/* end confdefs.h.  */
28205$ac_includes_default
28206int
28207main ()
28208{
28209if (sizeof (ptrdiff_t))
28210       return 0;
28211  ;
28212  return 0;
28213}
28214_ACEOF
28215rm -f conftest.$ac_objext
28216if { (ac_try="$ac_compile"
28217case "(($ac_try" in
28218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28219  *) ac_try_echo=$ac_try;;
28220esac
28221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28222$as_echo "$ac_try_echo") >&5
28223  (eval "$ac_compile") 2>conftest.er1
28224  ac_status=$?
28225  grep -v '^ *+' conftest.er1 >conftest.err
28226  rm -f conftest.er1
28227  cat conftest.err >&5
28228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229  (exit $ac_status); } && {
28230	 test -z "$ac_c_werror_flag" ||
28231	 test ! -s conftest.err
28232       } && test -s conftest.$ac_objext; then
28233  cat >conftest.$ac_ext <<_ACEOF
28234/* confdefs.h.  */
28235_ACEOF
28236cat confdefs.h >>conftest.$ac_ext
28237cat >>conftest.$ac_ext <<_ACEOF
28238/* end confdefs.h.  */
28239$ac_includes_default
28240int
28241main ()
28242{
28243if (sizeof ((ptrdiff_t)))
28244	  return 0;
28245  ;
28246  return 0;
28247}
28248_ACEOF
28249rm -f conftest.$ac_objext
28250if { (ac_try="$ac_compile"
28251case "(($ac_try" in
28252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28253  *) ac_try_echo=$ac_try;;
28254esac
28255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28256$as_echo "$ac_try_echo") >&5
28257  (eval "$ac_compile") 2>conftest.er1
28258  ac_status=$?
28259  grep -v '^ *+' conftest.er1 >conftest.err
28260  rm -f conftest.er1
28261  cat conftest.err >&5
28262  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263  (exit $ac_status); } && {
28264	 test -z "$ac_c_werror_flag" ||
28265	 test ! -s conftest.err
28266       } && test -s conftest.$ac_objext; then
28267  :
28268else
28269  $as_echo "$as_me: failed program was:" >&5
28270sed 's/^/| /' conftest.$ac_ext >&5
28271
28272	ac_cv_type_ptrdiff_t=yes
28273fi
28274
28275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28276else
28277  $as_echo "$as_me: failed program was:" >&5
28278sed 's/^/| /' conftest.$ac_ext >&5
28279
28280
28281fi
28282
28283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28284fi
28285{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
28286$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
28287if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
28288  :
28289else
28290
28291cat >>confdefs.h <<\_ACEOF
28292#define ptrdiff_t long
28293_ACEOF
28294
28295
28296fi
28297
28298
28299
28300
28301for ac_header in stddef.h stdlib.h string.h
28302do
28303as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28305  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28306$as_echo_n "checking for $ac_header... " >&6; }
28307if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28308  $as_echo_n "(cached) " >&6
28309fi
28310ac_res=`eval 'as_val=${'$as_ac_Header'}
28311		 $as_echo "$as_val"'`
28312	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28313$as_echo "$ac_res" >&6; }
28314else
28315  # Is the header compilable?
28316{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28317$as_echo_n "checking $ac_header usability... " >&6; }
28318cat >conftest.$ac_ext <<_ACEOF
28319/* confdefs.h.  */
28320_ACEOF
28321cat confdefs.h >>conftest.$ac_ext
28322cat >>conftest.$ac_ext <<_ACEOF
28323/* end confdefs.h.  */
28324$ac_includes_default
28325#include <$ac_header>
28326_ACEOF
28327rm -f conftest.$ac_objext
28328if { (ac_try="$ac_compile"
28329case "(($ac_try" in
28330  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28331  *) ac_try_echo=$ac_try;;
28332esac
28333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28334$as_echo "$ac_try_echo") >&5
28335  (eval "$ac_compile") 2>conftest.er1
28336  ac_status=$?
28337  grep -v '^ *+' conftest.er1 >conftest.err
28338  rm -f conftest.er1
28339  cat conftest.err >&5
28340  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341  (exit $ac_status); } && {
28342	 test -z "$ac_c_werror_flag" ||
28343	 test ! -s conftest.err
28344       } && test -s conftest.$ac_objext; then
28345  ac_header_compiler=yes
28346else
28347  $as_echo "$as_me: failed program was:" >&5
28348sed 's/^/| /' conftest.$ac_ext >&5
28349
28350	ac_header_compiler=no
28351fi
28352
28353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28354{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28355$as_echo "$ac_header_compiler" >&6; }
28356
28357# Is the header present?
28358{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28359$as_echo_n "checking $ac_header presence... " >&6; }
28360cat >conftest.$ac_ext <<_ACEOF
28361/* confdefs.h.  */
28362_ACEOF
28363cat confdefs.h >>conftest.$ac_ext
28364cat >>conftest.$ac_ext <<_ACEOF
28365/* end confdefs.h.  */
28366#include <$ac_header>
28367_ACEOF
28368if { (ac_try="$ac_cpp conftest.$ac_ext"
28369case "(($ac_try" in
28370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371  *) ac_try_echo=$ac_try;;
28372esac
28373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28374$as_echo "$ac_try_echo") >&5
28375  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28376  ac_status=$?
28377  grep -v '^ *+' conftest.er1 >conftest.err
28378  rm -f conftest.er1
28379  cat conftest.err >&5
28380  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381  (exit $ac_status); } >/dev/null && {
28382	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28383	 test ! -s conftest.err
28384       }; then
28385  ac_header_preproc=yes
28386else
28387  $as_echo "$as_me: failed program was:" >&5
28388sed 's/^/| /' conftest.$ac_ext >&5
28389
28390  ac_header_preproc=no
28391fi
28392
28393rm -f conftest.err conftest.$ac_ext
28394{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28395$as_echo "$ac_header_preproc" >&6; }
28396
28397# So?  What about this header?
28398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28399  yes:no: )
28400    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28401$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28402    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28403$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28404    ac_header_preproc=yes
28405    ;;
28406  no:yes:* )
28407    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28408$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28409    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28410$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28411    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28412$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28413    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28414$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28415    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28416$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28417    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28418$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28419
28420    ;;
28421esac
28422{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28423$as_echo_n "checking for $ac_header... " >&6; }
28424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28425  $as_echo_n "(cached) " >&6
28426else
28427  eval "$as_ac_Header=\$ac_header_preproc"
28428fi
28429ac_res=`eval 'as_val=${'$as_ac_Header'}
28430		 $as_echo "$as_val"'`
28431	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28432$as_echo "$ac_res" >&6; }
28433
28434fi
28435as_val=`eval 'as_val=${'$as_ac_Header'}
28436		 $as_echo "$as_val"'`
28437   if test "x$as_val" = x""yes; then
28438  cat >>confdefs.h <<_ACEOF
28439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28440_ACEOF
28441
28442fi
28443
28444done
28445
28446
28447
28448
28449
28450
28451
28452
28453for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
28454do
28455as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28456{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28457$as_echo_n "checking for $ac_func... " >&6; }
28458if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28459  $as_echo_n "(cached) " >&6
28460else
28461  cat >conftest.$ac_ext <<_ACEOF
28462/* confdefs.h.  */
28463_ACEOF
28464cat confdefs.h >>conftest.$ac_ext
28465cat >>conftest.$ac_ext <<_ACEOF
28466/* end confdefs.h.  */
28467/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28468   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28469#define $ac_func innocuous_$ac_func
28470
28471/* System header to define __stub macros and hopefully few prototypes,
28472    which can conflict with char $ac_func (); below.
28473    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28474    <limits.h> exists even on freestanding compilers.  */
28475
28476#ifdef __STDC__
28477# include <limits.h>
28478#else
28479# include <assert.h>
28480#endif
28481
28482#undef $ac_func
28483
28484/* Override any GCC internal prototype to avoid an error.
28485   Use char because int might match the return type of a GCC
28486   builtin and then its argument prototype would still apply.  */
28487#ifdef __cplusplus
28488extern "C"
28489#endif
28490char $ac_func ();
28491/* The GNU C library defines this for functions which it implements
28492    to always fail with ENOSYS.  Some functions are actually named
28493    something starting with __ and the normal name is an alias.  */
28494#if defined __stub_$ac_func || defined __stub___$ac_func
28495choke me
28496#endif
28497
28498int
28499main ()
28500{
28501return $ac_func ();
28502  ;
28503  return 0;
28504}
28505_ACEOF
28506rm -f conftest.$ac_objext conftest$ac_exeext
28507if { (ac_try="$ac_link"
28508case "(($ac_try" in
28509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28510  *) ac_try_echo=$ac_try;;
28511esac
28512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28513$as_echo "$ac_try_echo") >&5
28514  (eval "$ac_link") 2>conftest.er1
28515  ac_status=$?
28516  grep -v '^ *+' conftest.er1 >conftest.err
28517  rm -f conftest.er1
28518  cat conftest.err >&5
28519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520  (exit $ac_status); } && {
28521	 test -z "$ac_c_werror_flag" ||
28522	 test ! -s conftest.err
28523       } && test -s conftest$ac_exeext && {
28524	 test "$cross_compiling" = yes ||
28525	 $as_test_x conftest$ac_exeext
28526       }; then
28527  eval "$as_ac_var=yes"
28528else
28529  $as_echo "$as_me: failed program was:" >&5
28530sed 's/^/| /' conftest.$ac_ext >&5
28531
28532	eval "$as_ac_var=no"
28533fi
28534
28535rm -rf conftest.dSYM
28536rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28537      conftest$ac_exeext conftest.$ac_ext
28538fi
28539ac_res=`eval 'as_val=${'$as_ac_var'}
28540		 $as_echo "$as_val"'`
28541	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28542$as_echo "$ac_res" >&6; }
28543as_val=`eval 'as_val=${'$as_ac_var'}
28544		 $as_echo "$as_val"'`
28545   if test "x$as_val" = x""yes; then
28546  cat >>confdefs.h <<_ACEOF
28547#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28548_ACEOF
28549
28550fi
28551done
28552
28553
28554
28555  { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
28556$as_echo_n "checking whether _snprintf is declared... " >&6; }
28557if test "${ac_cv_have_decl__snprintf+set}" = set; then
28558  $as_echo_n "(cached) " >&6
28559else
28560  cat >conftest.$ac_ext <<_ACEOF
28561/* confdefs.h.  */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h.  */
28566#include <stdio.h>
28567int
28568main ()
28569{
28570
28571#ifndef _snprintf
28572  char *p = (char *) _snprintf;
28573#endif
28574
28575  ;
28576  return 0;
28577}
28578_ACEOF
28579rm -f conftest.$ac_objext
28580if { (ac_try="$ac_compile"
28581case "(($ac_try" in
28582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28583  *) ac_try_echo=$ac_try;;
28584esac
28585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28586$as_echo "$ac_try_echo") >&5
28587  (eval "$ac_compile") 2>conftest.er1
28588  ac_status=$?
28589  grep -v '^ *+' conftest.er1 >conftest.err
28590  rm -f conftest.er1
28591  cat conftest.err >&5
28592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593  (exit $ac_status); } && {
28594	 test -z "$ac_c_werror_flag" ||
28595	 test ! -s conftest.err
28596       } && test -s conftest.$ac_objext; then
28597  ac_cv_have_decl__snprintf=yes
28598else
28599  $as_echo "$as_me: failed program was:" >&5
28600sed 's/^/| /' conftest.$ac_ext >&5
28601
28602	ac_cv_have_decl__snprintf=no
28603fi
28604
28605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28606fi
28607{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
28608$as_echo "$ac_cv_have_decl__snprintf" >&6; }
28609  if test $ac_cv_have_decl__snprintf = yes; then
28610    gt_value=1
28611  else
28612    gt_value=0
28613  fi
28614
28615cat >>confdefs.h <<_ACEOF
28616#define HAVE_DECL__SNPRINTF $gt_value
28617_ACEOF
28618
28619
28620
28621  { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
28622$as_echo_n "checking whether _snwprintf is declared... " >&6; }
28623if test "${ac_cv_have_decl__snwprintf+set}" = set; then
28624  $as_echo_n "(cached) " >&6
28625else
28626  cat >conftest.$ac_ext <<_ACEOF
28627/* confdefs.h.  */
28628_ACEOF
28629cat confdefs.h >>conftest.$ac_ext
28630cat >>conftest.$ac_ext <<_ACEOF
28631/* end confdefs.h.  */
28632#include <stdio.h>
28633int
28634main ()
28635{
28636
28637#ifndef _snwprintf
28638  char *p = (char *) _snwprintf;
28639#endif
28640
28641  ;
28642  return 0;
28643}
28644_ACEOF
28645rm -f conftest.$ac_objext
28646if { (ac_try="$ac_compile"
28647case "(($ac_try" in
28648  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28649  *) ac_try_echo=$ac_try;;
28650esac
28651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28652$as_echo "$ac_try_echo") >&5
28653  (eval "$ac_compile") 2>conftest.er1
28654  ac_status=$?
28655  grep -v '^ *+' conftest.er1 >conftest.err
28656  rm -f conftest.er1
28657  cat conftest.err >&5
28658  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659  (exit $ac_status); } && {
28660	 test -z "$ac_c_werror_flag" ||
28661	 test ! -s conftest.err
28662       } && test -s conftest.$ac_objext; then
28663  ac_cv_have_decl__snwprintf=yes
28664else
28665  $as_echo "$as_me: failed program was:" >&5
28666sed 's/^/| /' conftest.$ac_ext >&5
28667
28668	ac_cv_have_decl__snwprintf=no
28669fi
28670
28671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28672fi
28673{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
28674$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
28675  if test $ac_cv_have_decl__snwprintf = yes; then
28676    gt_value=1
28677  else
28678    gt_value=0
28679  fi
28680
28681cat >>confdefs.h <<_ACEOF
28682#define HAVE_DECL__SNWPRINTF $gt_value
28683_ACEOF
28684
28685
28686
28687
28688  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
28689$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
28690if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
28691  $as_echo_n "(cached) " >&6
28692else
28693  cat >conftest.$ac_ext <<_ACEOF
28694/* confdefs.h.  */
28695_ACEOF
28696cat confdefs.h >>conftest.$ac_ext
28697cat >>conftest.$ac_ext <<_ACEOF
28698/* end confdefs.h.  */
28699#include <stdio.h>
28700int
28701main ()
28702{
28703
28704#ifndef getc_unlocked
28705  char *p = (char *) getc_unlocked;
28706#endif
28707
28708  ;
28709  return 0;
28710}
28711_ACEOF
28712rm -f conftest.$ac_objext
28713if { (ac_try="$ac_compile"
28714case "(($ac_try" in
28715  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716  *) ac_try_echo=$ac_try;;
28717esac
28718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28719$as_echo "$ac_try_echo") >&5
28720  (eval "$ac_compile") 2>conftest.er1
28721  ac_status=$?
28722  grep -v '^ *+' conftest.er1 >conftest.err
28723  rm -f conftest.er1
28724  cat conftest.err >&5
28725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726  (exit $ac_status); } && {
28727	 test -z "$ac_c_werror_flag" ||
28728	 test ! -s conftest.err
28729       } && test -s conftest.$ac_objext; then
28730  ac_cv_have_decl_getc_unlocked=yes
28731else
28732  $as_echo "$as_me: failed program was:" >&5
28733sed 's/^/| /' conftest.$ac_ext >&5
28734
28735	ac_cv_have_decl_getc_unlocked=no
28736fi
28737
28738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28739fi
28740{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
28741$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
28742  if test $ac_cv_have_decl_getc_unlocked = yes; then
28743    gt_value=1
28744  else
28745    gt_value=0
28746  fi
28747
28748cat >>confdefs.h <<_ACEOF
28749#define HAVE_DECL_GETC_UNLOCKED $gt_value
28750_ACEOF
28751
28752
28753
28754  case $gt_cv_func_printf_posix in
28755    *yes) HAVE_POSIX_PRINTF=1 ;;
28756    *) HAVE_POSIX_PRINTF=0 ;;
28757  esac
28758
28759  if test "$ac_cv_func_asprintf" = yes; then
28760    HAVE_ASPRINTF=1
28761  else
28762    HAVE_ASPRINTF=0
28763  fi
28764
28765  if test "$ac_cv_func_snprintf" = yes; then
28766    HAVE_SNPRINTF=1
28767  else
28768    HAVE_SNPRINTF=0
28769  fi
28770
28771  if test "$ac_cv_func_wprintf" = yes; then
28772    HAVE_WPRINTF=1
28773  else
28774    HAVE_WPRINTF=0
28775  fi
28776
28777
28778
28779  { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
28780$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
28781if test "${am_cv_langinfo_codeset+set}" = set; then
28782  $as_echo_n "(cached) " >&6
28783else
28784  cat >conftest.$ac_ext <<_ACEOF
28785/* confdefs.h.  */
28786_ACEOF
28787cat confdefs.h >>conftest.$ac_ext
28788cat >>conftest.$ac_ext <<_ACEOF
28789/* end confdefs.h.  */
28790#include <langinfo.h>
28791int
28792main ()
28793{
28794char* cs = nl_langinfo(CODESET); return !cs;
28795  ;
28796  return 0;
28797}
28798_ACEOF
28799rm -f conftest.$ac_objext conftest$ac_exeext
28800if { (ac_try="$ac_link"
28801case "(($ac_try" in
28802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28803  *) ac_try_echo=$ac_try;;
28804esac
28805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28806$as_echo "$ac_try_echo") >&5
28807  (eval "$ac_link") 2>conftest.er1
28808  ac_status=$?
28809  grep -v '^ *+' conftest.er1 >conftest.err
28810  rm -f conftest.er1
28811  cat conftest.err >&5
28812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813  (exit $ac_status); } && {
28814	 test -z "$ac_c_werror_flag" ||
28815	 test ! -s conftest.err
28816       } && test -s conftest$ac_exeext && {
28817	 test "$cross_compiling" = yes ||
28818	 $as_test_x conftest$ac_exeext
28819       }; then
28820  am_cv_langinfo_codeset=yes
28821else
28822  $as_echo "$as_me: failed program was:" >&5
28823sed 's/^/| /' conftest.$ac_ext >&5
28824
28825	am_cv_langinfo_codeset=no
28826fi
28827
28828rm -rf conftest.dSYM
28829rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28830      conftest$ac_exeext conftest.$ac_ext
28831
28832fi
28833{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
28834$as_echo "$am_cv_langinfo_codeset" >&6; }
28835  if test $am_cv_langinfo_codeset = yes; then
28836
28837cat >>confdefs.h <<\_ACEOF
28838#define HAVE_LANGINFO_CODESET 1
28839_ACEOF
28840
28841  fi
28842
28843
28844  { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
28845$as_echo_n "checking for LC_MESSAGES... " >&6; }
28846if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
28847  $as_echo_n "(cached) " >&6
28848else
28849  cat >conftest.$ac_ext <<_ACEOF
28850/* confdefs.h.  */
28851_ACEOF
28852cat confdefs.h >>conftest.$ac_ext
28853cat >>conftest.$ac_ext <<_ACEOF
28854/* end confdefs.h.  */
28855#include <locale.h>
28856int
28857main ()
28858{
28859return LC_MESSAGES
28860  ;
28861  return 0;
28862}
28863_ACEOF
28864rm -f conftest.$ac_objext conftest$ac_exeext
28865if { (ac_try="$ac_link"
28866case "(($ac_try" in
28867  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868  *) ac_try_echo=$ac_try;;
28869esac
28870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28871$as_echo "$ac_try_echo") >&5
28872  (eval "$ac_link") 2>conftest.er1
28873  ac_status=$?
28874  grep -v '^ *+' conftest.er1 >conftest.err
28875  rm -f conftest.er1
28876  cat conftest.err >&5
28877  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878  (exit $ac_status); } && {
28879	 test -z "$ac_c_werror_flag" ||
28880	 test ! -s conftest.err
28881       } && test -s conftest$ac_exeext && {
28882	 test "$cross_compiling" = yes ||
28883	 $as_test_x conftest$ac_exeext
28884       }; then
28885  gt_cv_val_LC_MESSAGES=yes
28886else
28887  $as_echo "$as_me: failed program was:" >&5
28888sed 's/^/| /' conftest.$ac_ext >&5
28889
28890	gt_cv_val_LC_MESSAGES=no
28891fi
28892
28893rm -rf conftest.dSYM
28894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28895      conftest$ac_exeext conftest.$ac_ext
28896fi
28897{ $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
28898$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
28899  if test $gt_cv_val_LC_MESSAGES = yes; then
28900
28901cat >>confdefs.h <<\_ACEOF
28902#define HAVE_LC_MESSAGES 1
28903_ACEOF
28904
28905  fi
28906
28907
28908                if test "$enable_shared" = yes; then
28909    case "$host_os" in
28910      mingw* | cygwin*) is_woe32dll=yes ;;
28911      *) is_woe32dll=no ;;
28912    esac
28913  else
28914    is_woe32dll=no
28915  fi
28916  WOE32DLL=$is_woe32dll
28917
28918
28919      case "$host_os" in
28920    mingw* | cygwin*) is_woe32=yes ;;
28921    *) is_woe32=no ;;
28922  esac
28923  WOE32=$is_woe32
28924
28925  if test $WOE32 = yes; then
28926        if test -n "$ac_tool_prefix"; then
28927  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
28928set dummy ${ac_tool_prefix}windres; ac_word=$2
28929{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28930$as_echo_n "checking for $ac_word... " >&6; }
28931if test "${ac_cv_prog_WINDRES+set}" = set; then
28932  $as_echo_n "(cached) " >&6
28933else
28934  if test -n "$WINDRES"; then
28935  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
28936else
28937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28938for as_dir in $PATH
28939do
28940  IFS=$as_save_IFS
28941  test -z "$as_dir" && as_dir=.
28942  for ac_exec_ext in '' $ac_executable_extensions; do
28943  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28944    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
28945    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28946    break 2
28947  fi
28948done
28949done
28950IFS=$as_save_IFS
28951
28952fi
28953fi
28954WINDRES=$ac_cv_prog_WINDRES
28955if test -n "$WINDRES"; then
28956  { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
28957$as_echo "$WINDRES" >&6; }
28958else
28959  { $as_echo "$as_me:$LINENO: result: no" >&5
28960$as_echo "no" >&6; }
28961fi
28962
28963
28964fi
28965if test -z "$ac_cv_prog_WINDRES"; then
28966  ac_ct_WINDRES=$WINDRES
28967  # Extract the first word of "windres", so it can be a program name with args.
28968set dummy windres; ac_word=$2
28969{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28970$as_echo_n "checking for $ac_word... " >&6; }
28971if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
28972  $as_echo_n "(cached) " >&6
28973else
28974  if test -n "$ac_ct_WINDRES"; then
28975  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
28976else
28977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28978for as_dir in $PATH
28979do
28980  IFS=$as_save_IFS
28981  test -z "$as_dir" && as_dir=.
28982  for ac_exec_ext in '' $ac_executable_extensions; do
28983  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28984    ac_cv_prog_ac_ct_WINDRES="windres"
28985    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28986    break 2
28987  fi
28988done
28989done
28990IFS=$as_save_IFS
28991
28992fi
28993fi
28994ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
28995if test -n "$ac_ct_WINDRES"; then
28996  { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
28997$as_echo "$ac_ct_WINDRES" >&6; }
28998else
28999  { $as_echo "$as_me:$LINENO: result: no" >&5
29000$as_echo "no" >&6; }
29001fi
29002
29003  if test "x$ac_ct_WINDRES" = x; then
29004    WINDRES=""
29005  else
29006    case $cross_compiling:$ac_tool_warned in
29007yes:)
29008{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
29009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29010ac_tool_warned=yes ;;
29011esac
29012    WINDRES=$ac_ct_WINDRES
29013  fi
29014else
29015  WINDRES="$ac_cv_prog_WINDRES"
29016fi
29017
29018  fi
29019
29020              case "$host_os" in
29021    hpux*) LTLIBC="" ;;
29022    *)     LTLIBC="-lc" ;;
29023  esac
29024
29025
29026
29027
29028
29029
29030
29031
29032
29033
29034
29035
29036
29037
29038
29039
29040
29041
29042
29043
29044
29045
29046
29047
29048
29049
29050
29051    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
29052$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
29053if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
29054  $as_echo_n "(cached) " >&6
29055else
29056  gt_save_LIBS="$LIBS"
29057     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
29058     cat >conftest.$ac_ext <<_ACEOF
29059/* confdefs.h.  */
29060_ACEOF
29061cat confdefs.h >>conftest.$ac_ext
29062cat >>conftest.$ac_ext <<_ACEOF
29063/* end confdefs.h.  */
29064#include <CoreFoundation/CFPreferences.h>
29065int
29066main ()
29067{
29068CFPreferencesCopyAppValue(NULL, NULL)
29069  ;
29070  return 0;
29071}
29072_ACEOF
29073rm -f conftest.$ac_objext conftest$ac_exeext
29074if { (ac_try="$ac_link"
29075case "(($ac_try" in
29076  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29077  *) ac_try_echo=$ac_try;;
29078esac
29079eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29080$as_echo "$ac_try_echo") >&5
29081  (eval "$ac_link") 2>conftest.er1
29082  ac_status=$?
29083  grep -v '^ *+' conftest.er1 >conftest.err
29084  rm -f conftest.er1
29085  cat conftest.err >&5
29086  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087  (exit $ac_status); } && {
29088	 test -z "$ac_c_werror_flag" ||
29089	 test ! -s conftest.err
29090       } && test -s conftest$ac_exeext && {
29091	 test "$cross_compiling" = yes ||
29092	 $as_test_x conftest$ac_exeext
29093       }; then
29094  gt_cv_func_CFPreferencesCopyAppValue=yes
29095else
29096  $as_echo "$as_me: failed program was:" >&5
29097sed 's/^/| /' conftest.$ac_ext >&5
29098
29099	gt_cv_func_CFPreferencesCopyAppValue=no
29100fi
29101
29102rm -rf conftest.dSYM
29103rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29104      conftest$ac_exeext conftest.$ac_ext
29105     LIBS="$gt_save_LIBS"
29106fi
29107{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
29108$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
29109  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
29110
29111cat >>confdefs.h <<\_ACEOF
29112#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
29113_ACEOF
29114
29115  fi
29116    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
29117$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
29118if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
29119  $as_echo_n "(cached) " >&6
29120else
29121  gt_save_LIBS="$LIBS"
29122     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
29123     cat >conftest.$ac_ext <<_ACEOF
29124/* confdefs.h.  */
29125_ACEOF
29126cat confdefs.h >>conftest.$ac_ext
29127cat >>conftest.$ac_ext <<_ACEOF
29128/* end confdefs.h.  */
29129#include <CoreFoundation/CFLocale.h>
29130int
29131main ()
29132{
29133CFLocaleCopyCurrent();
29134  ;
29135  return 0;
29136}
29137_ACEOF
29138rm -f conftest.$ac_objext conftest$ac_exeext
29139if { (ac_try="$ac_link"
29140case "(($ac_try" in
29141  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142  *) ac_try_echo=$ac_try;;
29143esac
29144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29145$as_echo "$ac_try_echo") >&5
29146  (eval "$ac_link") 2>conftest.er1
29147  ac_status=$?
29148  grep -v '^ *+' conftest.er1 >conftest.err
29149  rm -f conftest.er1
29150  cat conftest.err >&5
29151  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152  (exit $ac_status); } && {
29153	 test -z "$ac_c_werror_flag" ||
29154	 test ! -s conftest.err
29155       } && test -s conftest$ac_exeext && {
29156	 test "$cross_compiling" = yes ||
29157	 $as_test_x conftest$ac_exeext
29158       }; then
29159  gt_cv_func_CFLocaleCopyCurrent=yes
29160else
29161  $as_echo "$as_me: failed program was:" >&5
29162sed 's/^/| /' conftest.$ac_ext >&5
29163
29164	gt_cv_func_CFLocaleCopyCurrent=no
29165fi
29166
29167rm -rf conftest.dSYM
29168rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29169      conftest$ac_exeext conftest.$ac_ext
29170     LIBS="$gt_save_LIBS"
29171fi
29172{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
29173$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
29174  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
29175
29176cat >>confdefs.h <<\_ACEOF
29177#define HAVE_CFLOCALECOPYCURRENT 1
29178_ACEOF
29179
29180  fi
29181  INTL_MACOSX_LIBS=
29182  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
29183    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
29184  fi
29185
29186
29187
29188
29189
29190
29191    BUILD_INCLUDED_LIBINTL=no
29192    USE_INCLUDED_LIBINTL=no
29193
29194  LIBINTL=
29195  LTLIBINTL=
29196  POSUB=
29197
29198    case " $gt_needs " in
29199    *" need-formatstring-macros "*) gt_api_version=3 ;;
29200    *" need-ngettext "*) gt_api_version=2 ;;
29201    *) gt_api_version=1 ;;
29202  esac
29203  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
29204  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
29205
29206    if test "$USE_NLS" = "yes"; then
29207    gt_use_preinstalled_gnugettext=no
29208
29209      { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
29210$as_echo_n "checking whether included gettext is requested... " >&6; }
29211
29212# Check whether --with-included-gettext was given.
29213if test "${with_included_gettext+set}" = set; then
29214  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
29215else
29216  nls_cv_force_use_gnu_gettext=no
29217fi
29218
29219      { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
29220$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
29221
29222      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
29223      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
29224
29225
29226        if test $gt_api_version -ge 3; then
29227          gt_revision_test_code='
29228#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
29229#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
29230#endif
29231typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
29232'
29233        else
29234          gt_revision_test_code=
29235        fi
29236        if test $gt_api_version -ge 2; then
29237          gt_expression_test_code=' + * ngettext ("", "", 0)'
29238        else
29239          gt_expression_test_code=
29240        fi
29241
29242        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
29243$as_echo_n "checking for GNU gettext in libc... " >&6; }
29244if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
29245  $as_echo_n "(cached) " >&6
29246else
29247  cat >conftest.$ac_ext <<_ACEOF
29248/* confdefs.h.  */
29249_ACEOF
29250cat confdefs.h >>conftest.$ac_ext
29251cat >>conftest.$ac_ext <<_ACEOF
29252/* end confdefs.h.  */
29253#include <libintl.h>
29254$gt_revision_test_code
29255extern int _nl_msg_cat_cntr;
29256extern int *_nl_domain_bindings;
29257int
29258main ()
29259{
29260bindtextdomain ("", "");
29261return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
29262  ;
29263  return 0;
29264}
29265_ACEOF
29266rm -f conftest.$ac_objext conftest$ac_exeext
29267if { (ac_try="$ac_link"
29268case "(($ac_try" in
29269  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270  *) ac_try_echo=$ac_try;;
29271esac
29272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29273$as_echo "$ac_try_echo") >&5
29274  (eval "$ac_link") 2>conftest.er1
29275  ac_status=$?
29276  grep -v '^ *+' conftest.er1 >conftest.err
29277  rm -f conftest.er1
29278  cat conftest.err >&5
29279  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280  (exit $ac_status); } && {
29281	 test -z "$ac_c_werror_flag" ||
29282	 test ! -s conftest.err
29283       } && test -s conftest$ac_exeext && {
29284	 test "$cross_compiling" = yes ||
29285	 $as_test_x conftest$ac_exeext
29286       }; then
29287  eval "$gt_func_gnugettext_libc=yes"
29288else
29289  $as_echo "$as_me: failed program was:" >&5
29290sed 's/^/| /' conftest.$ac_ext >&5
29291
29292	eval "$gt_func_gnugettext_libc=no"
29293fi
29294
29295rm -rf conftest.dSYM
29296rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29297      conftest$ac_exeext conftest.$ac_ext
29298fi
29299ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
29300		 $as_echo "$as_val"'`
29301	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29302$as_echo "$ac_res" >&6; }
29303
29304        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
29305
29306
29307
29308
29309
29310    use_additional=yes
29311
29312  acl_save_prefix="$prefix"
29313  prefix="$acl_final_prefix"
29314  acl_save_exec_prefix="$exec_prefix"
29315  exec_prefix="$acl_final_exec_prefix"
29316
29317    eval additional_includedir=\"$includedir\"
29318    eval additional_libdir=\"$libdir\"
29319
29320  exec_prefix="$acl_save_exec_prefix"
29321  prefix="$acl_save_prefix"
29322
29323
29324# Check whether --with-libintl-prefix was given.
29325if test "${with_libintl_prefix+set}" = set; then
29326  withval=$with_libintl_prefix;
29327    if test "X$withval" = "Xno"; then
29328      use_additional=no
29329    else
29330      if test "X$withval" = "X"; then
29331
29332  acl_save_prefix="$prefix"
29333  prefix="$acl_final_prefix"
29334  acl_save_exec_prefix="$exec_prefix"
29335  exec_prefix="$acl_final_exec_prefix"
29336
29337          eval additional_includedir=\"$includedir\"
29338          eval additional_libdir=\"$libdir\"
29339
29340  exec_prefix="$acl_save_exec_prefix"
29341  prefix="$acl_save_prefix"
29342
29343      else
29344        additional_includedir="$withval/include"
29345        additional_libdir="$withval/$acl_libdirstem"
29346      fi
29347    fi
29348
29349fi
29350
29351      LIBINTL=
29352  LTLIBINTL=
29353  INCINTL=
29354  LIBINTL_PREFIX=
29355  rpathdirs=
29356  ltrpathdirs=
29357  names_already_handled=
29358  names_next_round='intl '
29359  while test -n "$names_next_round"; do
29360    names_this_round="$names_next_round"
29361    names_next_round=
29362    for name in $names_this_round; do
29363      already_handled=
29364      for n in $names_already_handled; do
29365        if test "$n" = "$name"; then
29366          already_handled=yes
29367          break
29368        fi
29369      done
29370      if test -z "$already_handled"; then
29371        names_already_handled="$names_already_handled $name"
29372                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
29373        eval value=\"\$HAVE_LIB$uppername\"
29374        if test -n "$value"; then
29375          if test "$value" = yes; then
29376            eval value=\"\$LIB$uppername\"
29377            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
29378            eval value=\"\$LTLIB$uppername\"
29379            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
29380          else
29381                                    :
29382          fi
29383        else
29384                              found_dir=
29385          found_la=
29386          found_so=
29387          found_a=
29388          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
29389          if test -n "$acl_shlibext"; then
29390            shrext=".$acl_shlibext"             # typically: shrext=.so
29391          else
29392            shrext=
29393          fi
29394          if test $use_additional = yes; then
29395            dir="$additional_libdir"
29396                                    if test -n "$acl_shlibext"; then
29397              if test -f "$dir/$libname$shrext"; then
29398                found_dir="$dir"
29399                found_so="$dir/$libname$shrext"
29400              else
29401                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
29402                  ver=`(cd "$dir" && \
29403                        for f in "$libname$shrext".*; do echo "$f"; done \
29404                        | sed -e "s,^$libname$shrext\\\\.,," \
29405                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
29406                        | sed 1q ) 2>/dev/null`
29407                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
29408                    found_dir="$dir"
29409                    found_so="$dir/$libname$shrext.$ver"
29410                  fi
29411                else
29412                  eval library_names=\"$acl_library_names_spec\"
29413                  for f in $library_names; do
29414                    if test -f "$dir/$f"; then
29415                      found_dir="$dir"
29416                      found_so="$dir/$f"
29417                      break
29418                    fi
29419                  done
29420                fi
29421              fi
29422            fi
29423                        if test "X$found_dir" = "X"; then
29424              if test -f "$dir/$libname.$acl_libext"; then
29425                found_dir="$dir"
29426                found_a="$dir/$libname.$acl_libext"
29427              fi
29428            fi
29429            if test "X$found_dir" != "X"; then
29430              if test -f "$dir/$libname.la"; then
29431                found_la="$dir/$libname.la"
29432              fi
29433            fi
29434          fi
29435          if test "X$found_dir" = "X"; then
29436            for x in $LDFLAGS $LTLIBINTL; do
29437
29438  acl_save_prefix="$prefix"
29439  prefix="$acl_final_prefix"
29440  acl_save_exec_prefix="$exec_prefix"
29441  exec_prefix="$acl_final_exec_prefix"
29442  eval x=\"$x\"
29443  exec_prefix="$acl_save_exec_prefix"
29444  prefix="$acl_save_prefix"
29445
29446              case "$x" in
29447                -L*)
29448                  dir=`echo "X$x" | sed -e 's/^X-L//'`
29449                                    if test -n "$acl_shlibext"; then
29450                    if test -f "$dir/$libname$shrext"; then
29451                      found_dir="$dir"
29452                      found_so="$dir/$libname$shrext"
29453                    else
29454                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
29455                        ver=`(cd "$dir" && \
29456                              for f in "$libname$shrext".*; do echo "$f"; done \
29457                              | sed -e "s,^$libname$shrext\\\\.,," \
29458                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
29459                              | sed 1q ) 2>/dev/null`
29460                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
29461                          found_dir="$dir"
29462                          found_so="$dir/$libname$shrext.$ver"
29463                        fi
29464                      else
29465                        eval library_names=\"$acl_library_names_spec\"
29466                        for f in $library_names; do
29467                          if test -f "$dir/$f"; then
29468                            found_dir="$dir"
29469                            found_so="$dir/$f"
29470                            break
29471                          fi
29472                        done
29473                      fi
29474                    fi
29475                  fi
29476                                    if test "X$found_dir" = "X"; then
29477                    if test -f "$dir/$libname.$acl_libext"; then
29478                      found_dir="$dir"
29479                      found_a="$dir/$libname.$acl_libext"
29480                    fi
29481                  fi
29482                  if test "X$found_dir" != "X"; then
29483                    if test -f "$dir/$libname.la"; then
29484                      found_la="$dir/$libname.la"
29485                    fi
29486                  fi
29487                  ;;
29488              esac
29489              if test "X$found_dir" != "X"; then
29490                break
29491              fi
29492            done
29493          fi
29494          if test "X$found_dir" != "X"; then
29495                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
29496            if test "X$found_so" != "X"; then
29497                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
29498                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
29499              else
29500                                                                                haveit=
29501                for x in $ltrpathdirs; do
29502                  if test "X$x" = "X$found_dir"; then
29503                    haveit=yes
29504                    break
29505                  fi
29506                done
29507                if test -z "$haveit"; then
29508                  ltrpathdirs="$ltrpathdirs $found_dir"
29509                fi
29510                                if test "$acl_hardcode_direct" = yes; then
29511                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
29512                else
29513                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
29514                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
29515                                                            haveit=
29516                    for x in $rpathdirs; do
29517                      if test "X$x" = "X$found_dir"; then
29518                        haveit=yes
29519                        break
29520                      fi
29521                    done
29522                    if test -z "$haveit"; then
29523                      rpathdirs="$rpathdirs $found_dir"
29524                    fi
29525                  else
29526                                                                                haveit=
29527                    for x in $LDFLAGS $LIBINTL; do
29528
29529  acl_save_prefix="$prefix"
29530  prefix="$acl_final_prefix"
29531  acl_save_exec_prefix="$exec_prefix"
29532  exec_prefix="$acl_final_exec_prefix"
29533  eval x=\"$x\"
29534  exec_prefix="$acl_save_exec_prefix"
29535  prefix="$acl_save_prefix"
29536
29537                      if test "X$x" = "X-L$found_dir"; then
29538                        haveit=yes
29539                        break
29540                      fi
29541                    done
29542                    if test -z "$haveit"; then
29543                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
29544                    fi
29545                    if test "$acl_hardcode_minus_L" != no; then
29546                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
29547                    else
29548                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
29549                    fi
29550                  fi
29551                fi
29552              fi
29553            else
29554              if test "X$found_a" != "X"; then
29555                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
29556              else
29557                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
29558              fi
29559            fi
29560                        additional_includedir=
29561            case "$found_dir" in
29562              */$acl_libdirstem | */$acl_libdirstem/)
29563                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
29564                LIBINTL_PREFIX="$basedir"
29565                additional_includedir="$basedir/include"
29566                ;;
29567            esac
29568            if test "X$additional_includedir" != "X"; then
29569                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
29570                haveit=
29571                if test "X$additional_includedir" = "X/usr/local/include"; then
29572                  if test -n "$GCC"; then
29573                    case $host_os in
29574                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29575                    esac
29576                  fi
29577                fi
29578                if test -z "$haveit"; then
29579                  for x in $CPPFLAGS $INCINTL; do
29580
29581  acl_save_prefix="$prefix"
29582  prefix="$acl_final_prefix"
29583  acl_save_exec_prefix="$exec_prefix"
29584  exec_prefix="$acl_final_exec_prefix"
29585  eval x=\"$x\"
29586  exec_prefix="$acl_save_exec_prefix"
29587  prefix="$acl_save_prefix"
29588
29589                    if test "X$x" = "X-I$additional_includedir"; then
29590                      haveit=yes
29591                      break
29592                    fi
29593                  done
29594                  if test -z "$haveit"; then
29595                    if test -d "$additional_includedir"; then
29596                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
29597                    fi
29598                  fi
29599                fi
29600              fi
29601            fi
29602                        if test -n "$found_la"; then
29603                                                        save_libdir="$libdir"
29604              case "$found_la" in
29605                */* | *\\*) . "$found_la" ;;
29606                *) . "./$found_la" ;;
29607              esac
29608              libdir="$save_libdir"
29609                            for dep in $dependency_libs; do
29610                case "$dep" in
29611                  -L*)
29612                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
29613                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
29614                      haveit=
29615                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
29616                        if test -n "$GCC"; then
29617                          case $host_os in
29618                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
29619                          esac
29620                        fi
29621                      fi
29622                      if test -z "$haveit"; then
29623                        haveit=
29624                        for x in $LDFLAGS $LIBINTL; do
29625
29626  acl_save_prefix="$prefix"
29627  prefix="$acl_final_prefix"
29628  acl_save_exec_prefix="$exec_prefix"
29629  exec_prefix="$acl_final_exec_prefix"
29630  eval x=\"$x\"
29631  exec_prefix="$acl_save_exec_prefix"
29632  prefix="$acl_save_prefix"
29633
29634                          if test "X$x" = "X-L$additional_libdir"; then
29635                            haveit=yes
29636                            break
29637                          fi
29638                        done
29639                        if test -z "$haveit"; then
29640                          if test -d "$additional_libdir"; then
29641                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
29642                          fi
29643                        fi
29644                        haveit=
29645                        for x in $LDFLAGS $LTLIBINTL; do
29646
29647  acl_save_prefix="$prefix"
29648  prefix="$acl_final_prefix"
29649  acl_save_exec_prefix="$exec_prefix"
29650  exec_prefix="$acl_final_exec_prefix"
29651  eval x=\"$x\"
29652  exec_prefix="$acl_save_exec_prefix"
29653  prefix="$acl_save_prefix"
29654
29655                          if test "X$x" = "X-L$additional_libdir"; then
29656                            haveit=yes
29657                            break
29658                          fi
29659                        done
29660                        if test -z "$haveit"; then
29661                          if test -d "$additional_libdir"; then
29662                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
29663                          fi
29664                        fi
29665                      fi
29666                    fi
29667                    ;;
29668                  -R*)
29669                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
29670                    if test "$enable_rpath" != no; then
29671                                                                  haveit=
29672                      for x in $rpathdirs; do
29673                        if test "X$x" = "X$dir"; then
29674                          haveit=yes
29675                          break
29676                        fi
29677                      done
29678                      if test -z "$haveit"; then
29679                        rpathdirs="$rpathdirs $dir"
29680                      fi
29681                                                                  haveit=
29682                      for x in $ltrpathdirs; do
29683                        if test "X$x" = "X$dir"; then
29684                          haveit=yes
29685                          break
29686                        fi
29687                      done
29688                      if test -z "$haveit"; then
29689                        ltrpathdirs="$ltrpathdirs $dir"
29690                      fi
29691                    fi
29692                    ;;
29693                  -l*)
29694                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
29695                    ;;
29696                  *.la)
29697                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
29698                    ;;
29699                  *)
29700                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
29701                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
29702                    ;;
29703                esac
29704              done
29705            fi
29706          else
29707                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
29708            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
29709          fi
29710        fi
29711      fi
29712    done
29713  done
29714  if test "X$rpathdirs" != "X"; then
29715    if test -n "$acl_hardcode_libdir_separator"; then
29716                        alldirs=
29717      for found_dir in $rpathdirs; do
29718        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
29719      done
29720            acl_save_libdir="$libdir"
29721      libdir="$alldirs"
29722      eval flag=\"$acl_hardcode_libdir_flag_spec\"
29723      libdir="$acl_save_libdir"
29724      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
29725    else
29726            for found_dir in $rpathdirs; do
29727        acl_save_libdir="$libdir"
29728        libdir="$found_dir"
29729        eval flag=\"$acl_hardcode_libdir_flag_spec\"
29730        libdir="$acl_save_libdir"
29731        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
29732      done
29733    fi
29734  fi
29735  if test "X$ltrpathdirs" != "X"; then
29736            for found_dir in $ltrpathdirs; do
29737      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
29738    done
29739  fi
29740
29741          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
29742$as_echo_n "checking for GNU gettext in libintl... " >&6; }
29743if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
29744  $as_echo_n "(cached) " >&6
29745else
29746  gt_save_CPPFLAGS="$CPPFLAGS"
29747            CPPFLAGS="$CPPFLAGS $INCINTL"
29748            gt_save_LIBS="$LIBS"
29749            LIBS="$LIBS $LIBINTL"
29750                        cat >conftest.$ac_ext <<_ACEOF
29751/* confdefs.h.  */
29752_ACEOF
29753cat confdefs.h >>conftest.$ac_ext
29754cat >>conftest.$ac_ext <<_ACEOF
29755/* end confdefs.h.  */
29756#include <libintl.h>
29757$gt_revision_test_code
29758extern int _nl_msg_cat_cntr;
29759extern
29760#ifdef __cplusplus
29761"C"
29762#endif
29763const char *_nl_expand_alias (const char *);
29764int
29765main ()
29766{
29767bindtextdomain ("", "");
29768return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
29769  ;
29770  return 0;
29771}
29772_ACEOF
29773rm -f conftest.$ac_objext conftest$ac_exeext
29774if { (ac_try="$ac_link"
29775case "(($ac_try" in
29776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777  *) ac_try_echo=$ac_try;;
29778esac
29779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29780$as_echo "$ac_try_echo") >&5
29781  (eval "$ac_link") 2>conftest.er1
29782  ac_status=$?
29783  grep -v '^ *+' conftest.er1 >conftest.err
29784  rm -f conftest.er1
29785  cat conftest.err >&5
29786  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787  (exit $ac_status); } && {
29788	 test -z "$ac_c_werror_flag" ||
29789	 test ! -s conftest.err
29790       } && test -s conftest$ac_exeext && {
29791	 test "$cross_compiling" = yes ||
29792	 $as_test_x conftest$ac_exeext
29793       }; then
29794  eval "$gt_func_gnugettext_libintl=yes"
29795else
29796  $as_echo "$as_me: failed program was:" >&5
29797sed 's/^/| /' conftest.$ac_ext >&5
29798
29799	eval "$gt_func_gnugettext_libintl=no"
29800fi
29801
29802rm -rf conftest.dSYM
29803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29804      conftest$ac_exeext conftest.$ac_ext
29805                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
29806              LIBS="$LIBS $LIBICONV"
29807              cat >conftest.$ac_ext <<_ACEOF
29808/* confdefs.h.  */
29809_ACEOF
29810cat confdefs.h >>conftest.$ac_ext
29811cat >>conftest.$ac_ext <<_ACEOF
29812/* end confdefs.h.  */
29813#include <libintl.h>
29814$gt_revision_test_code
29815extern int _nl_msg_cat_cntr;
29816extern
29817#ifdef __cplusplus
29818"C"
29819#endif
29820const char *_nl_expand_alias (const char *);
29821int
29822main ()
29823{
29824bindtextdomain ("", "");
29825return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
29826  ;
29827  return 0;
29828}
29829_ACEOF
29830rm -f conftest.$ac_objext conftest$ac_exeext
29831if { (ac_try="$ac_link"
29832case "(($ac_try" in
29833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29834  *) ac_try_echo=$ac_try;;
29835esac
29836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29837$as_echo "$ac_try_echo") >&5
29838  (eval "$ac_link") 2>conftest.er1
29839  ac_status=$?
29840  grep -v '^ *+' conftest.er1 >conftest.err
29841  rm -f conftest.er1
29842  cat conftest.err >&5
29843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844  (exit $ac_status); } && {
29845	 test -z "$ac_c_werror_flag" ||
29846	 test ! -s conftest.err
29847       } && test -s conftest$ac_exeext && {
29848	 test "$cross_compiling" = yes ||
29849	 $as_test_x conftest$ac_exeext
29850       }; then
29851  LIBINTL="$LIBINTL $LIBICONV"
29852                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
29853                eval "$gt_func_gnugettext_libintl=yes"
29854
29855else
29856  $as_echo "$as_me: failed program was:" >&5
29857sed 's/^/| /' conftest.$ac_ext >&5
29858
29859
29860fi
29861
29862rm -rf conftest.dSYM
29863rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29864      conftest$ac_exeext conftest.$ac_ext
29865            fi
29866            CPPFLAGS="$gt_save_CPPFLAGS"
29867            LIBS="$gt_save_LIBS"
29868fi
29869ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
29870		 $as_echo "$as_val"'`
29871	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29872$as_echo "$ac_res" >&6; }
29873        fi
29874
29875                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
29876           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
29877                && test "$PACKAGE" != gettext-runtime \
29878                && test "$PACKAGE" != gettext-tools; }; then
29879          gt_use_preinstalled_gnugettext=yes
29880        else
29881                    LIBINTL=
29882          LTLIBINTL=
29883          INCINTL=
29884        fi
29885
29886
29887        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
29888                              nls_cv_use_gnu_gettext=yes
29889        fi
29890      fi
29891
29892      if test "$nls_cv_use_gnu_gettext" = "yes"; then
29893                BUILD_INCLUDED_LIBINTL=yes
29894        USE_INCLUDED_LIBINTL=yes
29895        LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
29896        LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
29897        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
29898      fi
29899
29900      CATOBJEXT=
29901      if test "$gt_use_preinstalled_gnugettext" = "yes" \
29902         || test "$nls_cv_use_gnu_gettext" = "yes"; then
29903                CATOBJEXT=.gmo
29904      fi
29905
29906
29907    if test -n "$INTL_MACOSX_LIBS"; then
29908      if test "$gt_use_preinstalled_gnugettext" = "yes" \
29909         || test "$nls_cv_use_gnu_gettext" = "yes"; then
29910                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
29911        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
29912      fi
29913    fi
29914
29915    if test "$gt_use_preinstalled_gnugettext" = "yes" \
29916       || test "$nls_cv_use_gnu_gettext" = "yes"; then
29917
29918cat >>confdefs.h <<\_ACEOF
29919#define ENABLE_NLS 1
29920_ACEOF
29921
29922    else
29923      USE_NLS=no
29924    fi
29925  fi
29926
29927  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
29928$as_echo_n "checking whether to use NLS... " >&6; }
29929  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
29930$as_echo "$USE_NLS" >&6; }
29931  if test "$USE_NLS" = "yes"; then
29932    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
29933$as_echo_n "checking where the gettext function comes from... " >&6; }
29934    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
29935      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
29936        gt_source="external libintl"
29937      else
29938        gt_source="libc"
29939      fi
29940    else
29941      gt_source="included intl directory"
29942    fi
29943    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
29944$as_echo "$gt_source" >&6; }
29945  fi
29946
29947  if test "$USE_NLS" = "yes"; then
29948
29949    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
29950      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
29951        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
29952$as_echo_n "checking how to link with libintl... " >&6; }
29953        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
29954$as_echo "$LIBINTL" >&6; }
29955
29956  for element in $INCINTL; do
29957    haveit=
29958    for x in $CPPFLAGS; do
29959
29960  acl_save_prefix="$prefix"
29961  prefix="$acl_final_prefix"
29962  acl_save_exec_prefix="$exec_prefix"
29963  exec_prefix="$acl_final_exec_prefix"
29964  eval x=\"$x\"
29965  exec_prefix="$acl_save_exec_prefix"
29966  prefix="$acl_save_prefix"
29967
29968      if test "X$x" = "X$element"; then
29969        haveit=yes
29970        break
29971      fi
29972    done
29973    if test -z "$haveit"; then
29974      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
29975    fi
29976  done
29977
29978      fi
29979
29980
29981cat >>confdefs.h <<\_ACEOF
29982#define HAVE_GETTEXT 1
29983_ACEOF
29984
29985
29986cat >>confdefs.h <<\_ACEOF
29987#define HAVE_DCGETTEXT 1
29988_ACEOF
29989
29990    fi
29991
29992        POSUB=po
29993  fi
29994
29995
29996            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
29997      BUILD_INCLUDED_LIBINTL=yes
29998    fi
29999
30000
30001
30002
30003
30004        nls_cv_header_intl=
30005    nls_cv_header_libgt=
30006
30007        DATADIRNAME=share
30008
30009
30010        INSTOBJEXT=.mo
30011
30012
30013        GENCAT=gencat
30014
30015
30016        INTLOBJS=
30017    if test "$USE_INCLUDED_LIBINTL" = yes; then
30018      INTLOBJS="\$(GETTOBJS)"
30019    fi
30020
30021
30022        INTL_LIBTOOL_SUFFIX_PREFIX=l
30023
30024
30025
30026    INTLLIBS="$LIBINTL"
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039for ac_header in $gl_header_list
30040do
30041as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30043  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30044$as_echo_n "checking for $ac_header... " >&6; }
30045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30046  $as_echo_n "(cached) " >&6
30047fi
30048ac_res=`eval 'as_val=${'$as_ac_Header'}
30049		 $as_echo "$as_val"'`
30050	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30051$as_echo "$ac_res" >&6; }
30052else
30053  # Is the header compilable?
30054{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30055$as_echo_n "checking $ac_header usability... " >&6; }
30056cat >conftest.$ac_ext <<_ACEOF
30057/* confdefs.h.  */
30058_ACEOF
30059cat confdefs.h >>conftest.$ac_ext
30060cat >>conftest.$ac_ext <<_ACEOF
30061/* end confdefs.h.  */
30062$ac_includes_default
30063#include <$ac_header>
30064_ACEOF
30065rm -f conftest.$ac_objext
30066if { (ac_try="$ac_compile"
30067case "(($ac_try" in
30068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069  *) ac_try_echo=$ac_try;;
30070esac
30071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30072$as_echo "$ac_try_echo") >&5
30073  (eval "$ac_compile") 2>conftest.er1
30074  ac_status=$?
30075  grep -v '^ *+' conftest.er1 >conftest.err
30076  rm -f conftest.er1
30077  cat conftest.err >&5
30078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079  (exit $ac_status); } && {
30080	 test -z "$ac_c_werror_flag" ||
30081	 test ! -s conftest.err
30082       } && test -s conftest.$ac_objext; then
30083  ac_header_compiler=yes
30084else
30085  $as_echo "$as_me: failed program was:" >&5
30086sed 's/^/| /' conftest.$ac_ext >&5
30087
30088	ac_header_compiler=no
30089fi
30090
30091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30092{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30093$as_echo "$ac_header_compiler" >&6; }
30094
30095# Is the header present?
30096{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30097$as_echo_n "checking $ac_header presence... " >&6; }
30098cat >conftest.$ac_ext <<_ACEOF
30099/* confdefs.h.  */
30100_ACEOF
30101cat confdefs.h >>conftest.$ac_ext
30102cat >>conftest.$ac_ext <<_ACEOF
30103/* end confdefs.h.  */
30104#include <$ac_header>
30105_ACEOF
30106if { (ac_try="$ac_cpp conftest.$ac_ext"
30107case "(($ac_try" in
30108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109  *) ac_try_echo=$ac_try;;
30110esac
30111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30112$as_echo "$ac_try_echo") >&5
30113  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30114  ac_status=$?
30115  grep -v '^ *+' conftest.er1 >conftest.err
30116  rm -f conftest.er1
30117  cat conftest.err >&5
30118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30119  (exit $ac_status); } >/dev/null && {
30120	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30121	 test ! -s conftest.err
30122       }; then
30123  ac_header_preproc=yes
30124else
30125  $as_echo "$as_me: failed program was:" >&5
30126sed 's/^/| /' conftest.$ac_ext >&5
30127
30128  ac_header_preproc=no
30129fi
30130
30131rm -f conftest.err conftest.$ac_ext
30132{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30133$as_echo "$ac_header_preproc" >&6; }
30134
30135# So?  What about this header?
30136case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30137  yes:no: )
30138    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30139$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30140    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30141$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30142    ac_header_preproc=yes
30143    ;;
30144  no:yes:* )
30145    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30146$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30147    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30148$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30149    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30150$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30151    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30152$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30153    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30154$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30155    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30156$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30157
30158    ;;
30159esac
30160{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30161$as_echo_n "checking for $ac_header... " >&6; }
30162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30163  $as_echo_n "(cached) " >&6
30164else
30165  eval "$as_ac_Header=\$ac_header_preproc"
30166fi
30167ac_res=`eval 'as_val=${'$as_ac_Header'}
30168		 $as_echo "$as_val"'`
30169	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30170$as_echo "$ac_res" >&6; }
30171
30172fi
30173as_val=`eval 'as_val=${'$as_ac_Header'}
30174		 $as_echo "$as_val"'`
30175   if test "x$as_val" = x""yes; then
30176  cat >>confdefs.h <<_ACEOF
30177#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30178_ACEOF
30179
30180fi
30181
30182done
30183
30184
30185
30186
30187
30188
30189
30190
30191
30192
30193
30194
30195
30196      { $as_echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
30197$as_echo_n "checking whether canonicalize_file_name is declared... " >&6; }
30198if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
30199  $as_echo_n "(cached) " >&6
30200else
30201  cat >conftest.$ac_ext <<_ACEOF
30202/* confdefs.h.  */
30203_ACEOF
30204cat confdefs.h >>conftest.$ac_ext
30205cat >>conftest.$ac_ext <<_ACEOF
30206/* end confdefs.h.  */
30207$ac_includes_default
30208int
30209main ()
30210{
30211#ifndef canonicalize_file_name
30212  (void) canonicalize_file_name;
30213#endif
30214
30215  ;
30216  return 0;
30217}
30218_ACEOF
30219rm -f conftest.$ac_objext
30220if { (ac_try="$ac_compile"
30221case "(($ac_try" in
30222  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30223  *) ac_try_echo=$ac_try;;
30224esac
30225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30226$as_echo "$ac_try_echo") >&5
30227  (eval "$ac_compile") 2>conftest.er1
30228  ac_status=$?
30229  grep -v '^ *+' conftest.er1 >conftest.err
30230  rm -f conftest.er1
30231  cat conftest.err >&5
30232  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30233  (exit $ac_status); } && {
30234	 test -z "$ac_c_werror_flag" ||
30235	 test ! -s conftest.err
30236       } && test -s conftest.$ac_objext; then
30237  ac_cv_have_decl_canonicalize_file_name=yes
30238else
30239  $as_echo "$as_me: failed program was:" >&5
30240sed 's/^/| /' conftest.$ac_ext >&5
30241
30242	ac_cv_have_decl_canonicalize_file_name=no
30243fi
30244
30245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30246fi
30247{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
30248$as_echo "$ac_cv_have_decl_canonicalize_file_name" >&6; }
30249if test "x$ac_cv_have_decl_canonicalize_file_name" = x""yes; then
30250
30251cat >>confdefs.h <<_ACEOF
30252#define HAVE_DECL_CANONICALIZE_FILE_NAME 1
30253_ACEOF
30254
30255
30256else
30257  cat >>confdefs.h <<_ACEOF
30258#define HAVE_DECL_CANONICALIZE_FILE_NAME 0
30259_ACEOF
30260
30261
30262fi
30263
30264
30265
30266
30267
30268
30269
30270
30271for ac_func in $gl_func_list
30272do
30273as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30274{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30275$as_echo_n "checking for $ac_func... " >&6; }
30276if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30277  $as_echo_n "(cached) " >&6
30278else
30279  cat >conftest.$ac_ext <<_ACEOF
30280/* confdefs.h.  */
30281_ACEOF
30282cat confdefs.h >>conftest.$ac_ext
30283cat >>conftest.$ac_ext <<_ACEOF
30284/* end confdefs.h.  */
30285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30286   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30287#define $ac_func innocuous_$ac_func
30288
30289/* System header to define __stub macros and hopefully few prototypes,
30290    which can conflict with char $ac_func (); below.
30291    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30292    <limits.h> exists even on freestanding compilers.  */
30293
30294#ifdef __STDC__
30295# include <limits.h>
30296#else
30297# include <assert.h>
30298#endif
30299
30300#undef $ac_func
30301
30302/* Override any GCC internal prototype to avoid an error.
30303   Use char because int might match the return type of a GCC
30304   builtin and then its argument prototype would still apply.  */
30305#ifdef __cplusplus
30306extern "C"
30307#endif
30308char $ac_func ();
30309/* The GNU C library defines this for functions which it implements
30310    to always fail with ENOSYS.  Some functions are actually named
30311    something starting with __ and the normal name is an alias.  */
30312#if defined __stub_$ac_func || defined __stub___$ac_func
30313choke me
30314#endif
30315
30316int
30317main ()
30318{
30319return $ac_func ();
30320  ;
30321  return 0;
30322}
30323_ACEOF
30324rm -f conftest.$ac_objext conftest$ac_exeext
30325if { (ac_try="$ac_link"
30326case "(($ac_try" in
30327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328  *) ac_try_echo=$ac_try;;
30329esac
30330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30331$as_echo "$ac_try_echo") >&5
30332  (eval "$ac_link") 2>conftest.er1
30333  ac_status=$?
30334  grep -v '^ *+' conftest.er1 >conftest.err
30335  rm -f conftest.er1
30336  cat conftest.err >&5
30337  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338  (exit $ac_status); } && {
30339	 test -z "$ac_c_werror_flag" ||
30340	 test ! -s conftest.err
30341       } && test -s conftest$ac_exeext && {
30342	 test "$cross_compiling" = yes ||
30343	 $as_test_x conftest$ac_exeext
30344       }; then
30345  eval "$as_ac_var=yes"
30346else
30347  $as_echo "$as_me: failed program was:" >&5
30348sed 's/^/| /' conftest.$ac_ext >&5
30349
30350	eval "$as_ac_var=no"
30351fi
30352
30353rm -rf conftest.dSYM
30354rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30355      conftest$ac_exeext conftest.$ac_ext
30356fi
30357ac_res=`eval 'as_val=${'$as_ac_var'}
30358		 $as_echo "$as_val"'`
30359	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30360$as_echo "$ac_res" >&6; }
30361as_val=`eval 'as_val=${'$as_ac_var'}
30362		 $as_echo "$as_val"'`
30363   if test "x$as_val" = x""yes; then
30364  cat >>confdefs.h <<_ACEOF
30365#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30366_ACEOF
30367
30368fi
30369done
30370
30371
30372
30373
30374
30375
30376
30377
30378
30379
30380
30381
30382
30383
30384
30385
30386
30387
30388
30389
30390
30391
30392
30393
30394
30395
30396
30397
30398
30399
30400{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
30401$as_echo_n "checking whether strerror_r is declared... " >&6; }
30402if test "${ac_cv_have_decl_strerror_r+set}" = set; then
30403  $as_echo_n "(cached) " >&6
30404else
30405  cat >conftest.$ac_ext <<_ACEOF
30406/* confdefs.h.  */
30407_ACEOF
30408cat confdefs.h >>conftest.$ac_ext
30409cat >>conftest.$ac_ext <<_ACEOF
30410/* end confdefs.h.  */
30411$ac_includes_default
30412int
30413main ()
30414{
30415#ifndef strerror_r
30416  (void) strerror_r;
30417#endif
30418
30419  ;
30420  return 0;
30421}
30422_ACEOF
30423rm -f conftest.$ac_objext
30424if { (ac_try="$ac_compile"
30425case "(($ac_try" in
30426  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30427  *) ac_try_echo=$ac_try;;
30428esac
30429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30430$as_echo "$ac_try_echo") >&5
30431  (eval "$ac_compile") 2>conftest.er1
30432  ac_status=$?
30433  grep -v '^ *+' conftest.er1 >conftest.err
30434  rm -f conftest.er1
30435  cat conftest.err >&5
30436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437  (exit $ac_status); } && {
30438	 test -z "$ac_c_werror_flag" ||
30439	 test ! -s conftest.err
30440       } && test -s conftest.$ac_objext; then
30441  ac_cv_have_decl_strerror_r=yes
30442else
30443  $as_echo "$as_me: failed program was:" >&5
30444sed 's/^/| /' conftest.$ac_ext >&5
30445
30446	ac_cv_have_decl_strerror_r=no
30447fi
30448
30449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30450fi
30451{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
30452$as_echo "$ac_cv_have_decl_strerror_r" >&6; }
30453if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
30454
30455cat >>confdefs.h <<_ACEOF
30456#define HAVE_DECL_STRERROR_R 1
30457_ACEOF
30458
30459
30460else
30461  cat >>confdefs.h <<_ACEOF
30462#define HAVE_DECL_STRERROR_R 0
30463_ACEOF
30464
30465
30466fi
30467
30468
30469
30470for ac_func in strerror_r
30471do
30472as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30473{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30474$as_echo_n "checking for $ac_func... " >&6; }
30475if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30476  $as_echo_n "(cached) " >&6
30477else
30478  cat >conftest.$ac_ext <<_ACEOF
30479/* confdefs.h.  */
30480_ACEOF
30481cat confdefs.h >>conftest.$ac_ext
30482cat >>conftest.$ac_ext <<_ACEOF
30483/* end confdefs.h.  */
30484/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30485   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30486#define $ac_func innocuous_$ac_func
30487
30488/* System header to define __stub macros and hopefully few prototypes,
30489    which can conflict with char $ac_func (); below.
30490    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30491    <limits.h> exists even on freestanding compilers.  */
30492
30493#ifdef __STDC__
30494# include <limits.h>
30495#else
30496# include <assert.h>
30497#endif
30498
30499#undef $ac_func
30500
30501/* Override any GCC internal prototype to avoid an error.
30502   Use char because int might match the return type of a GCC
30503   builtin and then its argument prototype would still apply.  */
30504#ifdef __cplusplus
30505extern "C"
30506#endif
30507char $ac_func ();
30508/* The GNU C library defines this for functions which it implements
30509    to always fail with ENOSYS.  Some functions are actually named
30510    something starting with __ and the normal name is an alias.  */
30511#if defined __stub_$ac_func || defined __stub___$ac_func
30512choke me
30513#endif
30514
30515int
30516main ()
30517{
30518return $ac_func ();
30519  ;
30520  return 0;
30521}
30522_ACEOF
30523rm -f conftest.$ac_objext conftest$ac_exeext
30524if { (ac_try="$ac_link"
30525case "(($ac_try" in
30526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30527  *) ac_try_echo=$ac_try;;
30528esac
30529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30530$as_echo "$ac_try_echo") >&5
30531  (eval "$ac_link") 2>conftest.er1
30532  ac_status=$?
30533  grep -v '^ *+' conftest.er1 >conftest.err
30534  rm -f conftest.er1
30535  cat conftest.err >&5
30536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537  (exit $ac_status); } && {
30538	 test -z "$ac_c_werror_flag" ||
30539	 test ! -s conftest.err
30540       } && test -s conftest$ac_exeext && {
30541	 test "$cross_compiling" = yes ||
30542	 $as_test_x conftest$ac_exeext
30543       }; then
30544  eval "$as_ac_var=yes"
30545else
30546  $as_echo "$as_me: failed program was:" >&5
30547sed 's/^/| /' conftest.$ac_ext >&5
30548
30549	eval "$as_ac_var=no"
30550fi
30551
30552rm -rf conftest.dSYM
30553rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30554      conftest$ac_exeext conftest.$ac_ext
30555fi
30556ac_res=`eval 'as_val=${'$as_ac_var'}
30557		 $as_echo "$as_val"'`
30558	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30559$as_echo "$ac_res" >&6; }
30560as_val=`eval 'as_val=${'$as_ac_var'}
30561		 $as_echo "$as_val"'`
30562   if test "x$as_val" = x""yes; then
30563  cat >>confdefs.h <<_ACEOF
30564#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30565_ACEOF
30566
30567fi
30568done
30569
30570{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
30571$as_echo_n "checking whether strerror_r returns char *... " >&6; }
30572if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
30573  $as_echo_n "(cached) " >&6
30574else
30575
30576    ac_cv_func_strerror_r_char_p=no
30577    if test $ac_cv_have_decl_strerror_r = yes; then
30578      cat >conftest.$ac_ext <<_ACEOF
30579/* confdefs.h.  */
30580_ACEOF
30581cat confdefs.h >>conftest.$ac_ext
30582cat >>conftest.$ac_ext <<_ACEOF
30583/* end confdefs.h.  */
30584$ac_includes_default
30585int
30586main ()
30587{
30588
30589	  char buf[100];
30590	  char x = *strerror_r (0, buf, sizeof buf);
30591	  char *p = strerror_r (0, buf, sizeof buf);
30592	  return !p || x;
30593
30594  ;
30595  return 0;
30596}
30597_ACEOF
30598rm -f conftest.$ac_objext
30599if { (ac_try="$ac_compile"
30600case "(($ac_try" in
30601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602  *) ac_try_echo=$ac_try;;
30603esac
30604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30605$as_echo "$ac_try_echo") >&5
30606  (eval "$ac_compile") 2>conftest.er1
30607  ac_status=$?
30608  grep -v '^ *+' conftest.er1 >conftest.err
30609  rm -f conftest.er1
30610  cat conftest.err >&5
30611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612  (exit $ac_status); } && {
30613	 test -z "$ac_c_werror_flag" ||
30614	 test ! -s conftest.err
30615       } && test -s conftest.$ac_objext; then
30616  ac_cv_func_strerror_r_char_p=yes
30617else
30618  $as_echo "$as_me: failed program was:" >&5
30619sed 's/^/| /' conftest.$ac_ext >&5
30620
30621
30622fi
30623
30624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30625    else
30626      # strerror_r is not declared.  Choose between
30627      # systems that have relatively inaccessible declarations for the
30628      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
30629      # former has a strerror_r that returns char*, while the latter
30630      # has a strerror_r that returns `int'.
30631      # This test should segfault on the DEC system.
30632      if test "$cross_compiling" = yes; then
30633  :
30634else
30635  cat >conftest.$ac_ext <<_ACEOF
30636/* confdefs.h.  */
30637_ACEOF
30638cat confdefs.h >>conftest.$ac_ext
30639cat >>conftest.$ac_ext <<_ACEOF
30640/* end confdefs.h.  */
30641$ac_includes_default
30642	extern char *strerror_r ();
30643int
30644main ()
30645{
30646char buf[100];
30647	  char x = *strerror_r (0, buf, sizeof buf);
30648	  return ! isalpha (x);
30649  ;
30650  return 0;
30651}
30652_ACEOF
30653rm -f conftest$ac_exeext
30654if { (ac_try="$ac_link"
30655case "(($ac_try" in
30656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657  *) ac_try_echo=$ac_try;;
30658esac
30659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30660$as_echo "$ac_try_echo") >&5
30661  (eval "$ac_link") 2>&5
30662  ac_status=$?
30663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30664  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30665  { (case "(($ac_try" in
30666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30667  *) ac_try_echo=$ac_try;;
30668esac
30669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30670$as_echo "$ac_try_echo") >&5
30671  (eval "$ac_try") 2>&5
30672  ac_status=$?
30673  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30674  (exit $ac_status); }; }; then
30675  ac_cv_func_strerror_r_char_p=yes
30676else
30677  $as_echo "$as_me: program exited with status $ac_status" >&5
30678$as_echo "$as_me: failed program was:" >&5
30679sed 's/^/| /' conftest.$ac_ext >&5
30680
30681fi
30682rm -rf conftest.dSYM
30683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30684fi
30685
30686
30687    fi
30688
30689fi
30690{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
30691$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
30692if test $ac_cv_func_strerror_r_char_p = yes; then
30693
30694cat >>confdefs.h <<\_ACEOF
30695#define STRERROR_R_CHAR_P 1
30696_ACEOF
30697
30698fi
30699
30700
30701  XGETTEXT_EXTRA_OPTIONS=
30702
30703
30704  if test -z "$GETOPT_H"; then
30705
30706for ac_header in getopt.h
30707do
30708as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30709if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30710  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30711$as_echo_n "checking for $ac_header... " >&6; }
30712if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30713  $as_echo_n "(cached) " >&6
30714fi
30715ac_res=`eval 'as_val=${'$as_ac_Header'}
30716		 $as_echo "$as_val"'`
30717	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30718$as_echo "$ac_res" >&6; }
30719else
30720  # Is the header compilable?
30721{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30722$as_echo_n "checking $ac_header usability... " >&6; }
30723cat >conftest.$ac_ext <<_ACEOF
30724/* confdefs.h.  */
30725_ACEOF
30726cat confdefs.h >>conftest.$ac_ext
30727cat >>conftest.$ac_ext <<_ACEOF
30728/* end confdefs.h.  */
30729$ac_includes_default
30730#include <$ac_header>
30731_ACEOF
30732rm -f conftest.$ac_objext
30733if { (ac_try="$ac_compile"
30734case "(($ac_try" in
30735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736  *) ac_try_echo=$ac_try;;
30737esac
30738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30739$as_echo "$ac_try_echo") >&5
30740  (eval "$ac_compile") 2>conftest.er1
30741  ac_status=$?
30742  grep -v '^ *+' conftest.er1 >conftest.err
30743  rm -f conftest.er1
30744  cat conftest.err >&5
30745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30746  (exit $ac_status); } && {
30747	 test -z "$ac_c_werror_flag" ||
30748	 test ! -s conftest.err
30749       } && test -s conftest.$ac_objext; then
30750  ac_header_compiler=yes
30751else
30752  $as_echo "$as_me: failed program was:" >&5
30753sed 's/^/| /' conftest.$ac_ext >&5
30754
30755	ac_header_compiler=no
30756fi
30757
30758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30759{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30760$as_echo "$ac_header_compiler" >&6; }
30761
30762# Is the header present?
30763{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30764$as_echo_n "checking $ac_header presence... " >&6; }
30765cat >conftest.$ac_ext <<_ACEOF
30766/* confdefs.h.  */
30767_ACEOF
30768cat confdefs.h >>conftest.$ac_ext
30769cat >>conftest.$ac_ext <<_ACEOF
30770/* end confdefs.h.  */
30771#include <$ac_header>
30772_ACEOF
30773if { (ac_try="$ac_cpp conftest.$ac_ext"
30774case "(($ac_try" in
30775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776  *) ac_try_echo=$ac_try;;
30777esac
30778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30779$as_echo "$ac_try_echo") >&5
30780  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30781  ac_status=$?
30782  grep -v '^ *+' conftest.er1 >conftest.err
30783  rm -f conftest.er1
30784  cat conftest.err >&5
30785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30786  (exit $ac_status); } >/dev/null && {
30787	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30788	 test ! -s conftest.err
30789       }; then
30790  ac_header_preproc=yes
30791else
30792  $as_echo "$as_me: failed program was:" >&5
30793sed 's/^/| /' conftest.$ac_ext >&5
30794
30795  ac_header_preproc=no
30796fi
30797
30798rm -f conftest.err conftest.$ac_ext
30799{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30800$as_echo "$ac_header_preproc" >&6; }
30801
30802# So?  What about this header?
30803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30804  yes:no: )
30805    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30806$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30807    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30808$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30809    ac_header_preproc=yes
30810    ;;
30811  no:yes:* )
30812    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30813$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30814    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30815$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30816    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30817$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30818    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30819$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30820    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30821$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30822    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30823$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30824
30825    ;;
30826esac
30827{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30828$as_echo_n "checking for $ac_header... " >&6; }
30829if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30830  $as_echo_n "(cached) " >&6
30831else
30832  eval "$as_ac_Header=\$ac_header_preproc"
30833fi
30834ac_res=`eval 'as_val=${'$as_ac_Header'}
30835		 $as_echo "$as_val"'`
30836	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30837$as_echo "$ac_res" >&6; }
30838
30839fi
30840as_val=`eval 'as_val=${'$as_ac_Header'}
30841		 $as_echo "$as_val"'`
30842   if test "x$as_val" = x""yes; then
30843  cat >>confdefs.h <<_ACEOF
30844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30845_ACEOF
30846
30847else
30848  GETOPT_H=getopt.h
30849fi
30850
30851done
30852
30853  fi
30854
30855  if test -z "$GETOPT_H"; then
30856
30857for ac_func in getopt_long_only
30858do
30859as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30860{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30861$as_echo_n "checking for $ac_func... " >&6; }
30862if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30863  $as_echo_n "(cached) " >&6
30864else
30865  cat >conftest.$ac_ext <<_ACEOF
30866/* confdefs.h.  */
30867_ACEOF
30868cat confdefs.h >>conftest.$ac_ext
30869cat >>conftest.$ac_ext <<_ACEOF
30870/* end confdefs.h.  */
30871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30872   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30873#define $ac_func innocuous_$ac_func
30874
30875/* System header to define __stub macros and hopefully few prototypes,
30876    which can conflict with char $ac_func (); below.
30877    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30878    <limits.h> exists even on freestanding compilers.  */
30879
30880#ifdef __STDC__
30881# include <limits.h>
30882#else
30883# include <assert.h>
30884#endif
30885
30886#undef $ac_func
30887
30888/* Override any GCC internal prototype to avoid an error.
30889   Use char because int might match the return type of a GCC
30890   builtin and then its argument prototype would still apply.  */
30891#ifdef __cplusplus
30892extern "C"
30893#endif
30894char $ac_func ();
30895/* The GNU C library defines this for functions which it implements
30896    to always fail with ENOSYS.  Some functions are actually named
30897    something starting with __ and the normal name is an alias.  */
30898#if defined __stub_$ac_func || defined __stub___$ac_func
30899choke me
30900#endif
30901
30902int
30903main ()
30904{
30905return $ac_func ();
30906  ;
30907  return 0;
30908}
30909_ACEOF
30910rm -f conftest.$ac_objext conftest$ac_exeext
30911if { (ac_try="$ac_link"
30912case "(($ac_try" in
30913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30914  *) ac_try_echo=$ac_try;;
30915esac
30916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30917$as_echo "$ac_try_echo") >&5
30918  (eval "$ac_link") 2>conftest.er1
30919  ac_status=$?
30920  grep -v '^ *+' conftest.er1 >conftest.err
30921  rm -f conftest.er1
30922  cat conftest.err >&5
30923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924  (exit $ac_status); } && {
30925	 test -z "$ac_c_werror_flag" ||
30926	 test ! -s conftest.err
30927       } && test -s conftest$ac_exeext && {
30928	 test "$cross_compiling" = yes ||
30929	 $as_test_x conftest$ac_exeext
30930       }; then
30931  eval "$as_ac_var=yes"
30932else
30933  $as_echo "$as_me: failed program was:" >&5
30934sed 's/^/| /' conftest.$ac_ext >&5
30935
30936	eval "$as_ac_var=no"
30937fi
30938
30939rm -rf conftest.dSYM
30940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30941      conftest$ac_exeext conftest.$ac_ext
30942fi
30943ac_res=`eval 'as_val=${'$as_ac_var'}
30944		 $as_echo "$as_val"'`
30945	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30946$as_echo "$ac_res" >&6; }
30947as_val=`eval 'as_val=${'$as_ac_var'}
30948		 $as_echo "$as_val"'`
30949   if test "x$as_val" = x""yes; then
30950  cat >>confdefs.h <<_ACEOF
30951#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30952_ACEOF
30953
30954else
30955  GETOPT_H=getopt.h
30956fi
30957done
30958
30959  fi
30960
30961      if test -z "$GETOPT_H"; then
30962    { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
30963$as_echo_n "checking whether optreset is declared... " >&6; }
30964if test "${ac_cv_have_decl_optreset+set}" = set; then
30965  $as_echo_n "(cached) " >&6
30966else
30967  cat >conftest.$ac_ext <<_ACEOF
30968/* confdefs.h.  */
30969_ACEOF
30970cat confdefs.h >>conftest.$ac_ext
30971cat >>conftest.$ac_ext <<_ACEOF
30972/* end confdefs.h.  */
30973#include <getopt.h>
30974
30975int
30976main ()
30977{
30978#ifndef optreset
30979  (void) optreset;
30980#endif
30981
30982  ;
30983  return 0;
30984}
30985_ACEOF
30986rm -f conftest.$ac_objext
30987if { (ac_try="$ac_compile"
30988case "(($ac_try" in
30989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990  *) ac_try_echo=$ac_try;;
30991esac
30992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30993$as_echo "$ac_try_echo") >&5
30994  (eval "$ac_compile") 2>conftest.er1
30995  ac_status=$?
30996  grep -v '^ *+' conftest.er1 >conftest.err
30997  rm -f conftest.er1
30998  cat conftest.err >&5
30999  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000  (exit $ac_status); } && {
31001	 test -z "$ac_c_werror_flag" ||
31002	 test ! -s conftest.err
31003       } && test -s conftest.$ac_objext; then
31004  ac_cv_have_decl_optreset=yes
31005else
31006  $as_echo "$as_me: failed program was:" >&5
31007sed 's/^/| /' conftest.$ac_ext >&5
31008
31009	ac_cv_have_decl_optreset=no
31010fi
31011
31012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31013fi
31014{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
31015$as_echo "$ac_cv_have_decl_optreset" >&6; }
31016if test "x$ac_cv_have_decl_optreset" = x""yes; then
31017  GETOPT_H=getopt.h
31018fi
31019
31020  fi
31021
31022      if test -z "$GETOPT_H"; then
31023    { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
31024$as_echo_n "checking for working GNU getopt function... " >&6; }
31025if test "${gl_cv_func_gnu_getopt+set}" = set; then
31026  $as_echo_n "(cached) " >&6
31027else
31028  if test "$cross_compiling" = yes; then
31029  	 	 	 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
31030$as_echo_n "checking whether getopt_clip is declared... " >&6; }
31031if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
31032  $as_echo_n "(cached) " >&6
31033else
31034  cat >conftest.$ac_ext <<_ACEOF
31035/* confdefs.h.  */
31036_ACEOF
31037cat confdefs.h >>conftest.$ac_ext
31038cat >>conftest.$ac_ext <<_ACEOF
31039/* end confdefs.h.  */
31040#include <getopt.h>
31041
31042int
31043main ()
31044{
31045#ifndef getopt_clip
31046  (void) getopt_clip;
31047#endif
31048
31049  ;
31050  return 0;
31051}
31052_ACEOF
31053rm -f conftest.$ac_objext
31054if { (ac_try="$ac_compile"
31055case "(($ac_try" in
31056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31057  *) ac_try_echo=$ac_try;;
31058esac
31059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31060$as_echo "$ac_try_echo") >&5
31061  (eval "$ac_compile") 2>conftest.er1
31062  ac_status=$?
31063  grep -v '^ *+' conftest.er1 >conftest.err
31064  rm -f conftest.er1
31065  cat conftest.err >&5
31066  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067  (exit $ac_status); } && {
31068	 test -z "$ac_c_werror_flag" ||
31069	 test ! -s conftest.err
31070       } && test -s conftest.$ac_objext; then
31071  ac_cv_have_decl_getopt_clip=yes
31072else
31073  $as_echo "$as_me: failed program was:" >&5
31074sed 's/^/| /' conftest.$ac_ext >&5
31075
31076	ac_cv_have_decl_getopt_clip=no
31077fi
31078
31079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31080fi
31081{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
31082$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
31083if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
31084  gl_cv_func_gnu_getopt=no
31085else
31086  gl_cv_func_gnu_getopt=yes
31087fi
31088
31089else
31090  cat >conftest.$ac_ext <<_ACEOF
31091/* confdefs.h.  */
31092_ACEOF
31093cat confdefs.h >>conftest.$ac_ext
31094cat >>conftest.$ac_ext <<_ACEOF
31095/* end confdefs.h.  */
31096#include <getopt.h>
31097int
31098main ()
31099{
31100
31101	     char *myargv[3];
31102	     myargv[0] = "conftest";
31103	     myargv[1] = "-+";
31104	     myargv[2] = 0;
31105	     return getopt (2, myargv, "+a") != '?';
31106
31107  ;
31108  return 0;
31109}
31110_ACEOF
31111rm -f conftest$ac_exeext
31112if { (ac_try="$ac_link"
31113case "(($ac_try" in
31114  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31115  *) ac_try_echo=$ac_try;;
31116esac
31117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31118$as_echo "$ac_try_echo") >&5
31119  (eval "$ac_link") 2>&5
31120  ac_status=$?
31121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31123  { (case "(($ac_try" in
31124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31125  *) ac_try_echo=$ac_try;;
31126esac
31127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31128$as_echo "$ac_try_echo") >&5
31129  (eval "$ac_try") 2>&5
31130  ac_status=$?
31131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132  (exit $ac_status); }; }; then
31133  gl_cv_func_gnu_getopt=yes
31134else
31135  $as_echo "$as_me: program exited with status $ac_status" >&5
31136$as_echo "$as_me: failed program was:" >&5
31137sed 's/^/| /' conftest.$ac_ext >&5
31138
31139( exit $ac_status )
31140gl_cv_func_gnu_getopt=no
31141fi
31142rm -rf conftest.dSYM
31143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31144fi
31145
31146
31147fi
31148{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
31149$as_echo "$gl_cv_func_gnu_getopt" >&6; }
31150    if test "$gl_cv_func_gnu_getopt" = "no"; then
31151      GETOPT_H=getopt.h
31152    fi
31153  fi
31154
31155
31156      { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
31157$as_echo_n "checking whether getenv is declared... " >&6; }
31158if test "${ac_cv_have_decl_getenv+set}" = set; then
31159  $as_echo_n "(cached) " >&6
31160else
31161  cat >conftest.$ac_ext <<_ACEOF
31162/* confdefs.h.  */
31163_ACEOF
31164cat confdefs.h >>conftest.$ac_ext
31165cat >>conftest.$ac_ext <<_ACEOF
31166/* end confdefs.h.  */
31167$ac_includes_default
31168int
31169main ()
31170{
31171#ifndef getenv
31172  (void) getenv;
31173#endif
31174
31175  ;
31176  return 0;
31177}
31178_ACEOF
31179rm -f conftest.$ac_objext
31180if { (ac_try="$ac_compile"
31181case "(($ac_try" in
31182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31183  *) ac_try_echo=$ac_try;;
31184esac
31185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31186$as_echo "$ac_try_echo") >&5
31187  (eval "$ac_compile") 2>conftest.er1
31188  ac_status=$?
31189  grep -v '^ *+' conftest.er1 >conftest.err
31190  rm -f conftest.er1
31191  cat conftest.err >&5
31192  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193  (exit $ac_status); } && {
31194	 test -z "$ac_c_werror_flag" ||
31195	 test ! -s conftest.err
31196       } && test -s conftest.$ac_objext; then
31197  ac_cv_have_decl_getenv=yes
31198else
31199  $as_echo "$as_me: failed program was:" >&5
31200sed 's/^/| /' conftest.$ac_ext >&5
31201
31202	ac_cv_have_decl_getenv=no
31203fi
31204
31205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31206fi
31207{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
31208$as_echo "$ac_cv_have_decl_getenv" >&6; }
31209if test "x$ac_cv_have_decl_getenv" = x""yes; then
31210
31211cat >>confdefs.h <<_ACEOF
31212#define HAVE_DECL_GETENV 1
31213_ACEOF
31214
31215
31216else
31217  cat >>confdefs.h <<_ACEOF
31218#define HAVE_DECL_GETENV 0
31219_ACEOF
31220
31221
31222fi
31223
31224
31225
31226
31227    REPLACE_ICONV=0;
31228  REPLACE_ICONV_OPEN=0;
31229  REPLACE_ICONV_UTF=0;
31230
31231
31232
31233  { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
31234$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
31235if test "${gl_cv_have_include_next+set}" = set; then
31236  $as_echo_n "(cached) " >&6
31237else
31238  rm -rf conftestd1 conftestd2
31239     mkdir conftestd1 conftestd2
31240     cat <<EOF > conftestd1/conftest.h
31241#define DEFINED_IN_CONFTESTD1
31242#include_next <conftest.h>
31243#ifdef DEFINED_IN_CONFTESTD2
31244int foo;
31245#else
31246#error "include_next doesn't work"
31247#endif
31248EOF
31249     cat <<EOF > conftestd2/conftest.h
31250#ifndef DEFINED_IN_CONFTESTD1
31251#error "include_next test doesn't work"
31252#endif
31253#define DEFINED_IN_CONFTESTD2
31254EOF
31255     save_CPPFLAGS="$CPPFLAGS"
31256     CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
31257     cat >conftest.$ac_ext <<_ACEOF
31258#include <conftest.h>
31259_ACEOF
31260rm -f conftest.$ac_objext
31261if { (ac_try="$ac_compile"
31262case "(($ac_try" in
31263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264  *) ac_try_echo=$ac_try;;
31265esac
31266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31267$as_echo "$ac_try_echo") >&5
31268  (eval "$ac_compile") 2>conftest.er1
31269  ac_status=$?
31270  grep -v '^ *+' conftest.er1 >conftest.err
31271  rm -f conftest.er1
31272  cat conftest.err >&5
31273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274  (exit $ac_status); } && {
31275	 test -z "$ac_c_werror_flag" ||
31276	 test ! -s conftest.err
31277       } && test -s conftest.$ac_objext; then
31278  gl_cv_have_include_next=yes
31279else
31280  $as_echo "$as_me: failed program was:" >&5
31281sed 's/^/| /' conftest.$ac_ext >&5
31282
31283	gl_cv_have_include_next=no
31284fi
31285
31286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31287     CPPFLAGS="$save_CPPFLAGS"
31288     rm -rf conftestd1 conftestd2
31289
31290fi
31291{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
31292$as_echo "$gl_cv_have_include_next" >&6; }
31293  if test $gl_cv_have_include_next = yes; then
31294
31295
31296cat >>confdefs.h <<\_ACEOF
31297#define HAVE_INCLUDE_NEXT 1
31298_ACEOF
31299
31300
31301    INCLUDE_NEXT=include_next
31302  else
31303    INCLUDE_NEXT=include
31304  fi
31305
31306
31307
31308
31309
31310
31311
31312
31313
31314      { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
31315$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
31316if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
31317  $as_echo_n "(cached) " >&6
31318else
31319  cat >conftest.$ac_ext <<_ACEOF
31320/* confdefs.h.  */
31321_ACEOF
31322cat confdefs.h >>conftest.$ac_ext
31323cat >>conftest.$ac_ext <<_ACEOF
31324/* end confdefs.h.  */
31325$ac_includes_default
31326int
31327main ()
31328{
31329#ifndef getc_unlocked
31330  (void) getc_unlocked;
31331#endif
31332
31333  ;
31334  return 0;
31335}
31336_ACEOF
31337rm -f conftest.$ac_objext
31338if { (ac_try="$ac_compile"
31339case "(($ac_try" in
31340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31341  *) ac_try_echo=$ac_try;;
31342esac
31343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31344$as_echo "$ac_try_echo") >&5
31345  (eval "$ac_compile") 2>conftest.er1
31346  ac_status=$?
31347  grep -v '^ *+' conftest.er1 >conftest.err
31348  rm -f conftest.er1
31349  cat conftest.err >&5
31350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351  (exit $ac_status); } && {
31352	 test -z "$ac_c_werror_flag" ||
31353	 test ! -s conftest.err
31354       } && test -s conftest.$ac_objext; then
31355  ac_cv_have_decl_getc_unlocked=yes
31356else
31357  $as_echo "$as_me: failed program was:" >&5
31358sed 's/^/| /' conftest.$ac_ext >&5
31359
31360	ac_cv_have_decl_getc_unlocked=no
31361fi
31362
31363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31364fi
31365{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
31366$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
31367if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
31368
31369cat >>confdefs.h <<_ACEOF
31370#define HAVE_DECL_GETC_UNLOCKED 1
31371_ACEOF
31372
31373
31374else
31375  cat >>confdefs.h <<_ACEOF
31376#define HAVE_DECL_GETC_UNLOCKED 0
31377_ACEOF
31378
31379
31380fi
31381
31382
31383
31384
31385  { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
31386$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
31387if test "${gl_cv_func_malloc_posix+set}" = set; then
31388  $as_echo_n "(cached) " >&6
31389else
31390
31391                        cat >conftest.$ac_ext <<_ACEOF
31392/* confdefs.h.  */
31393_ACEOF
31394cat confdefs.h >>conftest.$ac_ext
31395cat >>conftest.$ac_ext <<_ACEOF
31396/* end confdefs.h.  */
31397
31398int
31399main ()
31400{
31401#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
31402         choke me
31403         #endif
31404
31405  ;
31406  return 0;
31407}
31408_ACEOF
31409rm -f conftest.$ac_objext
31410if { (ac_try="$ac_compile"
31411case "(($ac_try" in
31412  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413  *) ac_try_echo=$ac_try;;
31414esac
31415eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31416$as_echo "$ac_try_echo") >&5
31417  (eval "$ac_compile") 2>conftest.er1
31418  ac_status=$?
31419  grep -v '^ *+' conftest.er1 >conftest.err
31420  rm -f conftest.er1
31421  cat conftest.err >&5
31422  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423  (exit $ac_status); } && {
31424	 test -z "$ac_c_werror_flag" ||
31425	 test ! -s conftest.err
31426       } && test -s conftest.$ac_objext; then
31427  gl_cv_func_malloc_posix=yes
31428else
31429  $as_echo "$as_me: failed program was:" >&5
31430sed 's/^/| /' conftest.$ac_ext >&5
31431
31432	gl_cv_func_malloc_posix=no
31433fi
31434
31435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31436
31437fi
31438{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
31439$as_echo "$gl_cv_func_malloc_posix" >&6; }
31440
31441
31442  GNULIB_MALLOC_POSIX=0;
31443  GNULIB_REALLOC_POSIX=0;
31444  GNULIB_CALLOC_POSIX=0;
31445  GNULIB_GETSUBOPT=0;
31446  GNULIB_MKDTEMP=0;
31447  GNULIB_MKSTEMP=0;
31448  GNULIB_PUTENV=0;
31449    HAVE_CALLOC_POSIX=1;
31450  HAVE_GETSUBOPT=1;
31451  HAVE_MALLOC_POSIX=1;
31452  HAVE_MKDTEMP=1;
31453  HAVE_REALLOC_POSIX=1;
31454  REPLACE_MKSTEMP=0;
31455  REPLACE_PUTENV=0;
31456
31457
31458
31459for ac_header in stdlib.h
31460do
31461as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31462if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31463  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31464$as_echo_n "checking for $ac_header... " >&6; }
31465if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31466  $as_echo_n "(cached) " >&6
31467fi
31468ac_res=`eval 'as_val=${'$as_ac_Header'}
31469		 $as_echo "$as_val"'`
31470	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31471$as_echo "$ac_res" >&6; }
31472else
31473  # Is the header compilable?
31474{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31475$as_echo_n "checking $ac_header usability... " >&6; }
31476cat >conftest.$ac_ext <<_ACEOF
31477/* confdefs.h.  */
31478_ACEOF
31479cat confdefs.h >>conftest.$ac_ext
31480cat >>conftest.$ac_ext <<_ACEOF
31481/* end confdefs.h.  */
31482$ac_includes_default
31483#include <$ac_header>
31484_ACEOF
31485rm -f conftest.$ac_objext
31486if { (ac_try="$ac_compile"
31487case "(($ac_try" in
31488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489  *) ac_try_echo=$ac_try;;
31490esac
31491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31492$as_echo "$ac_try_echo") >&5
31493  (eval "$ac_compile") 2>conftest.er1
31494  ac_status=$?
31495  grep -v '^ *+' conftest.er1 >conftest.err
31496  rm -f conftest.er1
31497  cat conftest.err >&5
31498  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31499  (exit $ac_status); } && {
31500	 test -z "$ac_c_werror_flag" ||
31501	 test ! -s conftest.err
31502       } && test -s conftest.$ac_objext; then
31503  ac_header_compiler=yes
31504else
31505  $as_echo "$as_me: failed program was:" >&5
31506sed 's/^/| /' conftest.$ac_ext >&5
31507
31508	ac_header_compiler=no
31509fi
31510
31511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31512{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31513$as_echo "$ac_header_compiler" >&6; }
31514
31515# Is the header present?
31516{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31517$as_echo_n "checking $ac_header presence... " >&6; }
31518cat >conftest.$ac_ext <<_ACEOF
31519/* confdefs.h.  */
31520_ACEOF
31521cat confdefs.h >>conftest.$ac_ext
31522cat >>conftest.$ac_ext <<_ACEOF
31523/* end confdefs.h.  */
31524#include <$ac_header>
31525_ACEOF
31526if { (ac_try="$ac_cpp conftest.$ac_ext"
31527case "(($ac_try" in
31528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31529  *) ac_try_echo=$ac_try;;
31530esac
31531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31532$as_echo "$ac_try_echo") >&5
31533  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31534  ac_status=$?
31535  grep -v '^ *+' conftest.er1 >conftest.err
31536  rm -f conftest.er1
31537  cat conftest.err >&5
31538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539  (exit $ac_status); } >/dev/null && {
31540	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31541	 test ! -s conftest.err
31542       }; then
31543  ac_header_preproc=yes
31544else
31545  $as_echo "$as_me: failed program was:" >&5
31546sed 's/^/| /' conftest.$ac_ext >&5
31547
31548  ac_header_preproc=no
31549fi
31550
31551rm -f conftest.err conftest.$ac_ext
31552{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31553$as_echo "$ac_header_preproc" >&6; }
31554
31555# So?  What about this header?
31556case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31557  yes:no: )
31558    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31559$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31560    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31561$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31562    ac_header_preproc=yes
31563    ;;
31564  no:yes:* )
31565    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31566$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31567    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31568$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31569    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31570$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31571    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31572$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31573    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31574$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31575    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31576$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31577
31578    ;;
31579esac
31580{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31581$as_echo_n "checking for $ac_header... " >&6; }
31582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31583  $as_echo_n "(cached) " >&6
31584else
31585  eval "$as_ac_Header=\$ac_header_preproc"
31586fi
31587ac_res=`eval 'as_val=${'$as_ac_Header'}
31588		 $as_echo "$as_val"'`
31589	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31590$as_echo "$ac_res" >&6; }
31591
31592fi
31593as_val=`eval 'as_val=${'$as_ac_Header'}
31594		 $as_echo "$as_val"'`
31595   if test "x$as_val" = x""yes; then
31596  cat >>confdefs.h <<_ACEOF
31597#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31598_ACEOF
31599
31600fi
31601
31602done
31603
31604{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
31605$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
31606if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
31607  $as_echo_n "(cached) " >&6
31608else
31609  if test "$cross_compiling" = yes; then
31610  ac_cv_func_malloc_0_nonnull=no
31611else
31612  cat >conftest.$ac_ext <<_ACEOF
31613/* confdefs.h.  */
31614_ACEOF
31615cat confdefs.h >>conftest.$ac_ext
31616cat >>conftest.$ac_ext <<_ACEOF
31617/* end confdefs.h.  */
31618#if defined STDC_HEADERS || defined HAVE_STDLIB_H
31619# include <stdlib.h>
31620#else
31621char *malloc ();
31622#endif
31623
31624int
31625main ()
31626{
31627return ! malloc (0);
31628  ;
31629  return 0;
31630}
31631_ACEOF
31632rm -f conftest$ac_exeext
31633if { (ac_try="$ac_link"
31634case "(($ac_try" in
31635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31636  *) ac_try_echo=$ac_try;;
31637esac
31638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31639$as_echo "$ac_try_echo") >&5
31640  (eval "$ac_link") 2>&5
31641  ac_status=$?
31642  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31644  { (case "(($ac_try" in
31645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646  *) ac_try_echo=$ac_try;;
31647esac
31648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31649$as_echo "$ac_try_echo") >&5
31650  (eval "$ac_try") 2>&5
31651  ac_status=$?
31652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653  (exit $ac_status); }; }; then
31654  ac_cv_func_malloc_0_nonnull=yes
31655else
31656  $as_echo "$as_me: program exited with status $ac_status" >&5
31657$as_echo "$as_me: failed program was:" >&5
31658sed 's/^/| /' conftest.$ac_ext >&5
31659
31660( exit $ac_status )
31661ac_cv_func_malloc_0_nonnull=no
31662fi
31663rm -rf conftest.dSYM
31664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31665fi
31666
31667
31668fi
31669{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
31670$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
31671if test $ac_cv_func_malloc_0_nonnull = yes; then
31672  gl_cv_func_malloc_0_nonnull=1
31673else
31674  gl_cv_func_malloc_0_nonnull=0
31675fi
31676
31677
31678
31679cat >>confdefs.h <<_ACEOF
31680#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
31681_ACEOF
31682
31683
31684
31685    { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
31686$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
31687if test "${gl_cv_func_mbrtowc+set}" = set; then
31688  $as_echo_n "(cached) " >&6
31689else
31690  cat >conftest.$ac_ext <<_ACEOF
31691/* confdefs.h.  */
31692_ACEOF
31693cat confdefs.h >>conftest.$ac_ext
31694cat >>conftest.$ac_ext <<_ACEOF
31695/* end confdefs.h.  */
31696#include <wchar.h>
31697int
31698main ()
31699{
31700wchar_t wc;
31701              char const s[] = "";
31702              size_t n = 1;
31703              mbstate_t state;
31704              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
31705  ;
31706  return 0;
31707}
31708_ACEOF
31709rm -f conftest.$ac_objext conftest$ac_exeext
31710if { (ac_try="$ac_link"
31711case "(($ac_try" in
31712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31713  *) ac_try_echo=$ac_try;;
31714esac
31715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31716$as_echo "$ac_try_echo") >&5
31717  (eval "$ac_link") 2>conftest.er1
31718  ac_status=$?
31719  grep -v '^ *+' conftest.er1 >conftest.err
31720  rm -f conftest.er1
31721  cat conftest.err >&5
31722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31723  (exit $ac_status); } && {
31724	 test -z "$ac_c_werror_flag" ||
31725	 test ! -s conftest.err
31726       } && test -s conftest$ac_exeext && {
31727	 test "$cross_compiling" = yes ||
31728	 $as_test_x conftest$ac_exeext
31729       }; then
31730  gl_cv_func_mbrtowc=yes
31731else
31732  $as_echo "$as_me: failed program was:" >&5
31733sed 's/^/| /' conftest.$ac_ext >&5
31734
31735	gl_cv_func_mbrtowc=no
31736fi
31737
31738rm -rf conftest.dSYM
31739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31740      conftest$ac_exeext conftest.$ac_ext
31741fi
31742{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
31743$as_echo "$gl_cv_func_mbrtowc" >&6; }
31744  if test $gl_cv_func_mbrtowc = yes; then
31745
31746cat >>confdefs.h <<\_ACEOF
31747#define HAVE_MBRTOWC 1
31748_ACEOF
31749
31750  fi
31751
31752
31753  GNULIB_MEMMEM=0;
31754  GNULIB_MEMPCPY=0;
31755  GNULIB_MEMRCHR=0;
31756  GNULIB_STPCPY=0;
31757  GNULIB_STPNCPY=0;
31758  GNULIB_STRCHRNUL=0;
31759  GNULIB_STRDUP=0;
31760  GNULIB_STRNDUP=0;
31761  GNULIB_STRNLEN=0;
31762  GNULIB_STRPBRK=0;
31763  GNULIB_STRSEP=0;
31764  GNULIB_STRCASESTR=0;
31765  GNULIB_STRTOK_R=0;
31766  GNULIB_MBSLEN=0;
31767  GNULIB_MBSNLEN=0;
31768  GNULIB_MBSCHR=0;
31769  GNULIB_MBSRCHR=0;
31770  GNULIB_MBSSTR=0;
31771  GNULIB_MBSCASECMP=0;
31772  GNULIB_MBSNCASECMP=0;
31773  GNULIB_MBSPCASECMP=0;
31774  GNULIB_MBSCASESTR=0;
31775  GNULIB_MBSCSPN=0;
31776  GNULIB_MBSPBRK=0;
31777  GNULIB_MBSSPN=0;
31778  GNULIB_MBSSEP=0;
31779  GNULIB_MBSTOK_R=0;
31780  GNULIB_STRERROR=0;
31781    HAVE_DECL_MEMMEM=1;
31782  HAVE_MEMPCPY=1;
31783  HAVE_DECL_MEMRCHR=1;
31784  HAVE_STPCPY=1;
31785  HAVE_STPNCPY=1;
31786  HAVE_STRCASECMP=1;
31787  HAVE_DECL_STRNCASECMP=1;
31788  HAVE_STRCHRNUL=1;
31789  HAVE_DECL_STRDUP=1;
31790  HAVE_STRNDUP=1;
31791  HAVE_DECL_STRNDUP=1;
31792  HAVE_DECL_STRNLEN=1;
31793  HAVE_STRPBRK=1;
31794  HAVE_STRSEP=1;
31795  HAVE_STRCASESTR=1;
31796  HAVE_DECL_STRTOK_R=1;
31797  HAVE_DECL_STRERROR=1;
31798  REPLACE_STRERROR=0;
31799
31800{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
31801$as_echo_n "checking for mbstate_t... " >&6; }
31802if test "${ac_cv_type_mbstate_t+set}" = set; then
31803  $as_echo_n "(cached) " >&6
31804else
31805  cat >conftest.$ac_ext <<_ACEOF
31806/* confdefs.h.  */
31807_ACEOF
31808cat confdefs.h >>conftest.$ac_ext
31809cat >>conftest.$ac_ext <<_ACEOF
31810/* end confdefs.h.  */
31811$ac_includes_default
31812#	    include <wchar.h>
31813int
31814main ()
31815{
31816mbstate_t x; return sizeof x;
31817  ;
31818  return 0;
31819}
31820_ACEOF
31821rm -f conftest.$ac_objext
31822if { (ac_try="$ac_compile"
31823case "(($ac_try" in
31824  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825  *) ac_try_echo=$ac_try;;
31826esac
31827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31828$as_echo "$ac_try_echo") >&5
31829  (eval "$ac_compile") 2>conftest.er1
31830  ac_status=$?
31831  grep -v '^ *+' conftest.er1 >conftest.err
31832  rm -f conftest.er1
31833  cat conftest.err >&5
31834  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835  (exit $ac_status); } && {
31836	 test -z "$ac_c_werror_flag" ||
31837	 test ! -s conftest.err
31838       } && test -s conftest.$ac_objext; then
31839  ac_cv_type_mbstate_t=yes
31840else
31841  $as_echo "$as_me: failed program was:" >&5
31842sed 's/^/| /' conftest.$ac_ext >&5
31843
31844	ac_cv_type_mbstate_t=no
31845fi
31846
31847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31848fi
31849{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
31850$as_echo "$ac_cv_type_mbstate_t" >&6; }
31851   if test $ac_cv_type_mbstate_t = yes; then
31852
31853cat >>confdefs.h <<\_ACEOF
31854#define HAVE_MBSTATE_T 1
31855_ACEOF
31856
31857   else
31858
31859cat >>confdefs.h <<\_ACEOF
31860#define mbstate_t int
31861_ACEOF
31862
31863   fi
31864
31865  GNULIB_CHOWN=0;
31866  GNULIB_DUP2=0;
31867  GNULIB_FCHDIR=0;
31868  GNULIB_FTRUNCATE=0;
31869  GNULIB_GETCWD=0;
31870  GNULIB_GETLOGIN_R=0;
31871  GNULIB_LCHOWN=0;
31872  GNULIB_LSEEK=0;
31873  GNULIB_READLINK=0;
31874  GNULIB_SLEEP=0;
31875    HAVE_DUP2=1;
31876  HAVE_FTRUNCATE=1;
31877  HAVE_READLINK=1;
31878  HAVE_SLEEP=1;
31879  HAVE_DECL_GETLOGIN_R=1;
31880  REPLACE_CHOWN=0;
31881  REPLACE_FCHDIR=0;
31882  REPLACE_GETCWD=0;
31883  REPLACE_LCHOWN=0;
31884  REPLACE_LSEEK=0;
31885
31886
31887                              { $as_echo "$as_me:$LINENO: checking for shared library path variable" >&5
31888$as_echo_n "checking for shared library path variable... " >&6; }
31889if test "${acl_cv_libpath+set}" = set; then
31890  $as_echo_n "(cached) " >&6
31891else
31892
31893    LD="$LD" \
31894    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
31895    . ./conftest.sh
31896    rm -f ./conftest.sh
31897    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
31898
31899fi
31900{ $as_echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
31901$as_echo "$acl_cv_libpath" >&6; }
31902  shlibpath_var="$acl_cv_shlibpath_var"
31903
31904
31905  { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
31906$as_echo_n "checking whether to activate relocatable installation... " >&6; }
31907  # Check whether --enable-relocatable was given.
31908if test "${enable_relocatable+set}" = set; then
31909  enableval=$enable_relocatable; if test "$enableval" != no; then
31910       RELOCATABLE=yes
31911     else
31912       RELOCATABLE=no
31913     fi
31914
31915else
31916  RELOCATABLE=no
31917fi
31918
31919
31920  { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
31921$as_echo "$RELOCATABLE" >&6; }
31922
31923
31924
31925    if test "X$prefix" = "XNONE"; then
31926    reloc_final_prefix="$ac_default_prefix"
31927  else
31928    reloc_final_prefix="$prefix"
31929  fi
31930
31931cat >>confdefs.h <<_ACEOF
31932#define INSTALLPREFIX "${reloc_final_prefix}"
31933_ACEOF
31934
31935  if test $RELOCATABLE = yes; then
31936
31937cat >>confdefs.h <<\_ACEOF
31938#define ENABLE_RELOCATABLE 1
31939_ACEOF
31940
31941  fi
31942
31943
31944
31945
31946
31947
31948  is_noop=no
31949  use_elf_origin_trick=no
31950  if test $RELOCATABLE = yes; then
31951    # --enable-relocatable implies --disable-rpath
31952    enable_rpath=no
31953
31954for ac_header in mach-o/dyld.h
31955do
31956as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31957if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31958  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31959$as_echo_n "checking for $ac_header... " >&6; }
31960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31961  $as_echo_n "(cached) " >&6
31962fi
31963ac_res=`eval 'as_val=${'$as_ac_Header'}
31964		 $as_echo "$as_val"'`
31965	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31966$as_echo "$ac_res" >&6; }
31967else
31968  # Is the header compilable?
31969{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31970$as_echo_n "checking $ac_header usability... " >&6; }
31971cat >conftest.$ac_ext <<_ACEOF
31972/* confdefs.h.  */
31973_ACEOF
31974cat confdefs.h >>conftest.$ac_ext
31975cat >>conftest.$ac_ext <<_ACEOF
31976/* end confdefs.h.  */
31977$ac_includes_default
31978#include <$ac_header>
31979_ACEOF
31980rm -f conftest.$ac_objext
31981if { (ac_try="$ac_compile"
31982case "(($ac_try" in
31983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984  *) ac_try_echo=$ac_try;;
31985esac
31986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31987$as_echo "$ac_try_echo") >&5
31988  (eval "$ac_compile") 2>conftest.er1
31989  ac_status=$?
31990  grep -v '^ *+' conftest.er1 >conftest.err
31991  rm -f conftest.er1
31992  cat conftest.err >&5
31993  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994  (exit $ac_status); } && {
31995	 test -z "$ac_c_werror_flag" ||
31996	 test ! -s conftest.err
31997       } && test -s conftest.$ac_objext; then
31998  ac_header_compiler=yes
31999else
32000  $as_echo "$as_me: failed program was:" >&5
32001sed 's/^/| /' conftest.$ac_ext >&5
32002
32003	ac_header_compiler=no
32004fi
32005
32006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32007{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32008$as_echo "$ac_header_compiler" >&6; }
32009
32010# Is the header present?
32011{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32012$as_echo_n "checking $ac_header presence... " >&6; }
32013cat >conftest.$ac_ext <<_ACEOF
32014/* confdefs.h.  */
32015_ACEOF
32016cat confdefs.h >>conftest.$ac_ext
32017cat >>conftest.$ac_ext <<_ACEOF
32018/* end confdefs.h.  */
32019#include <$ac_header>
32020_ACEOF
32021if { (ac_try="$ac_cpp conftest.$ac_ext"
32022case "(($ac_try" in
32023  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32024  *) ac_try_echo=$ac_try;;
32025esac
32026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32027$as_echo "$ac_try_echo") >&5
32028  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32029  ac_status=$?
32030  grep -v '^ *+' conftest.er1 >conftest.err
32031  rm -f conftest.er1
32032  cat conftest.err >&5
32033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034  (exit $ac_status); } >/dev/null && {
32035	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32036	 test ! -s conftest.err
32037       }; then
32038  ac_header_preproc=yes
32039else
32040  $as_echo "$as_me: failed program was:" >&5
32041sed 's/^/| /' conftest.$ac_ext >&5
32042
32043  ac_header_preproc=no
32044fi
32045
32046rm -f conftest.err conftest.$ac_ext
32047{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32048$as_echo "$ac_header_preproc" >&6; }
32049
32050# So?  What about this header?
32051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32052  yes:no: )
32053    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32054$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32055    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32056$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32057    ac_header_preproc=yes
32058    ;;
32059  no:yes:* )
32060    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32061$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32062    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32063$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32064    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32065$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32066    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32067$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32068    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32069$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32070    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32071$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32072
32073    ;;
32074esac
32075{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32076$as_echo_n "checking for $ac_header... " >&6; }
32077if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32078  $as_echo_n "(cached) " >&6
32079else
32080  eval "$as_ac_Header=\$ac_header_preproc"
32081fi
32082ac_res=`eval 'as_val=${'$as_ac_Header'}
32083		 $as_echo "$as_val"'`
32084	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32085$as_echo "$ac_res" >&6; }
32086
32087fi
32088as_val=`eval 'as_val=${'$as_ac_Header'}
32089		 $as_echo "$as_val"'`
32090   if test "x$as_val" = x""yes; then
32091  cat >>confdefs.h <<_ACEOF
32092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32093_ACEOF
32094
32095fi
32096
32097done
32098
32099
32100for ac_func in _NSGetExecutablePath
32101do
32102as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32103{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32104$as_echo_n "checking for $ac_func... " >&6; }
32105if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32106  $as_echo_n "(cached) " >&6
32107else
32108  cat >conftest.$ac_ext <<_ACEOF
32109/* confdefs.h.  */
32110_ACEOF
32111cat confdefs.h >>conftest.$ac_ext
32112cat >>conftest.$ac_ext <<_ACEOF
32113/* end confdefs.h.  */
32114/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32115   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32116#define $ac_func innocuous_$ac_func
32117
32118/* System header to define __stub macros and hopefully few prototypes,
32119    which can conflict with char $ac_func (); below.
32120    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32121    <limits.h> exists even on freestanding compilers.  */
32122
32123#ifdef __STDC__
32124# include <limits.h>
32125#else
32126# include <assert.h>
32127#endif
32128
32129#undef $ac_func
32130
32131/* Override any GCC internal prototype to avoid an error.
32132   Use char because int might match the return type of a GCC
32133   builtin and then its argument prototype would still apply.  */
32134#ifdef __cplusplus
32135extern "C"
32136#endif
32137char $ac_func ();
32138/* The GNU C library defines this for functions which it implements
32139    to always fail with ENOSYS.  Some functions are actually named
32140    something starting with __ and the normal name is an alias.  */
32141#if defined __stub_$ac_func || defined __stub___$ac_func
32142choke me
32143#endif
32144
32145int
32146main ()
32147{
32148return $ac_func ();
32149  ;
32150  return 0;
32151}
32152_ACEOF
32153rm -f conftest.$ac_objext conftest$ac_exeext
32154if { (ac_try="$ac_link"
32155case "(($ac_try" in
32156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32157  *) ac_try_echo=$ac_try;;
32158esac
32159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32160$as_echo "$ac_try_echo") >&5
32161  (eval "$ac_link") 2>conftest.er1
32162  ac_status=$?
32163  grep -v '^ *+' conftest.er1 >conftest.err
32164  rm -f conftest.er1
32165  cat conftest.err >&5
32166  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167  (exit $ac_status); } && {
32168	 test -z "$ac_c_werror_flag" ||
32169	 test ! -s conftest.err
32170       } && test -s conftest$ac_exeext && {
32171	 test "$cross_compiling" = yes ||
32172	 $as_test_x conftest$ac_exeext
32173       }; then
32174  eval "$as_ac_var=yes"
32175else
32176  $as_echo "$as_me: failed program was:" >&5
32177sed 's/^/| /' conftest.$ac_ext >&5
32178
32179	eval "$as_ac_var=no"
32180fi
32181
32182rm -rf conftest.dSYM
32183rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32184      conftest$ac_exeext conftest.$ac_ext
32185fi
32186ac_res=`eval 'as_val=${'$as_ac_var'}
32187		 $as_echo "$as_val"'`
32188	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32189$as_echo "$ac_res" >&6; }
32190as_val=`eval 'as_val=${'$as_ac_var'}
32191		 $as_echo "$as_val"'`
32192   if test "x$as_val" = x""yes; then
32193  cat >>confdefs.h <<_ACEOF
32194#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32195_ACEOF
32196
32197fi
32198done
32199
32200    case "$host_os" in
32201      mingw*) is_noop=yes ;;
32202      linux*) use_elf_origin_trick=yes ;;
32203    esac
32204    if test $is_noop = yes; then
32205      RELOCATABLE_LDFLAGS=:
32206
32207    else
32208      if test $use_elf_origin_trick = yes; then
32209                case "$ac_aux_dir" in
32210          /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
32211          *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
32212        esac
32213        RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
32214
32215      else
32216                                        INSTALL_PROGRAM_ENV="RELOC_LIBRARY_PATH_VAR=\"$shlibpath_var\" RELOC_LIBRARY_PATH_VALUE=\"\$(RELOCATABLE_LIBRARY_PATH)\" RELOC_PREFIX=\"\$(prefix)\" RELOC_COMPILE_COMMAND=\"\$(CC) \$(CPPFLAGS) \$(CFLAGS) \$(LDFLAGS)\" RELOC_SRCDIR=\"\$(RELOCATABLE_SRC_DIR)\" RELOC_BUILDDIR=\"\$(RELOCATABLE_BUILD_DIR)\" RELOC_CONFIG_H_DIR=\"\$(RELOCATABLE_CONFIG_H_DIR)\" RELOC_EXEEXT=\"\$(EXEEXT)\" RELOC_INSTALL_PROG=\"$INSTALL_PROGRAM\""
32217
32218        case "$ac_aux_dir" in
32219          /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
32220          *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
32221        esac
32222      fi
32223    fi
32224  fi
32225   if test $is_noop = yes || test $use_elf_origin_trick = yes; then
32226  RELOCATABLE_VIA_LD_TRUE=
32227  RELOCATABLE_VIA_LD_FALSE='#'
32228else
32229  RELOCATABLE_VIA_LD_TRUE='#'
32230  RELOCATABLE_VIA_LD_FALSE=
32231fi
32232
32233
32234
32235
32236
32237
32238
32239
32240
32241
32242
32243
32244
32245{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
32246$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
32247if test "${ac_cv_header_stdbool_h+set}" = set; then
32248  $as_echo_n "(cached) " >&6
32249else
32250  cat >conftest.$ac_ext <<_ACEOF
32251/* confdefs.h.  */
32252_ACEOF
32253cat confdefs.h >>conftest.$ac_ext
32254cat >>conftest.$ac_ext <<_ACEOF
32255/* end confdefs.h.  */
32256
32257	  #include <stdbool.h>
32258	  #ifndef bool
32259	   "error: bool is not defined"
32260	  #endif
32261	  #ifndef false
32262	   "error: false is not defined"
32263	  #endif
32264	  #if false
32265	   "error: false is not 0"
32266	  #endif
32267	  #ifndef true
32268	   "error: true is not defined"
32269	  #endif
32270	  #if true != 1
32271	   "error: true is not 1"
32272	  #endif
32273	  #ifndef __bool_true_false_are_defined
32274	   "error: __bool_true_false_are_defined is not defined"
32275	  #endif
32276
32277	  struct s { _Bool s: 1; _Bool t; } s;
32278
32279	  char a[true == 1 ? 1 : -1];
32280	  char b[false == 0 ? 1 : -1];
32281	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
32282	  char d[(bool) 0.5 == true ? 1 : -1];
32283	  bool e = &s;
32284	  char f[(_Bool) 0.0 == false ? 1 : -1];
32285	  char g[true];
32286	  char h[sizeof (_Bool)];
32287	  char i[sizeof s.t];
32288	  enum { j = false, k = true, l = false * true, m = true * 256 };
32289	  _Bool n[m];
32290	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
32291	  char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
32292	  #if defined __xlc__ || defined __GNUC__
32293	   /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
32294	      reported by James Lemley on 2005-10-05; see
32295	      http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
32296	      This test is not quite right, since xlc is allowed to
32297	      reject this program, as the initializer for xlcbug is
32298	      not one of the forms that C requires support for.
32299	      However, doing the test right would require a run-time
32300	      test, and that would make cross-compilation harder.
32301	      Let us hope that IBM fixes the xlc bug, and also adds
32302	      support for this kind of constant expression.  In the
32303	      meantime, this test will reject xlc, which is OK, since
32304	      our stdbool.h substitute should suffice.  We also test
32305	      this with GCC, where it should work, to detect more
32306	      quickly whether someone messes up the test in the
32307	      future.  */
32308	   char digs[] = "0123456789";
32309	   int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
32310	  #endif
32311	  /* Catch a bug in an HP-UX C compiler.  See
32312	     http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
32313	     http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
32314	   */
32315	  _Bool q = true;
32316	  _Bool *pq = &q;
32317
32318int
32319main ()
32320{
32321
32322	  *pq |= q;
32323	  *pq |= ! q;
32324	  /* Refer to every declared value, to avoid compiler optimizations.  */
32325	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
32326		  + !m + !n + !o + !p + !q + !pq);
32327
32328  ;
32329  return 0;
32330}
32331_ACEOF
32332rm -f conftest.$ac_objext
32333if { (ac_try="$ac_compile"
32334case "(($ac_try" in
32335  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32336  *) ac_try_echo=$ac_try;;
32337esac
32338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32339$as_echo "$ac_try_echo") >&5
32340  (eval "$ac_compile") 2>conftest.er1
32341  ac_status=$?
32342  grep -v '^ *+' conftest.er1 >conftest.err
32343  rm -f conftest.er1
32344  cat conftest.err >&5
32345  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32346  (exit $ac_status); } && {
32347	 test -z "$ac_c_werror_flag" ||
32348	 test ! -s conftest.err
32349       } && test -s conftest.$ac_objext; then
32350  ac_cv_header_stdbool_h=yes
32351else
32352  $as_echo "$as_me: failed program was:" >&5
32353sed 's/^/| /' conftest.$ac_ext >&5
32354
32355	ac_cv_header_stdbool_h=no
32356fi
32357
32358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32359fi
32360{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
32361$as_echo "$ac_cv_header_stdbool_h" >&6; }
32362   { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
32363$as_echo_n "checking for _Bool... " >&6; }
32364if test "${ac_cv_type__Bool+set}" = set; then
32365  $as_echo_n "(cached) " >&6
32366else
32367  ac_cv_type__Bool=no
32368cat >conftest.$ac_ext <<_ACEOF
32369/* confdefs.h.  */
32370_ACEOF
32371cat confdefs.h >>conftest.$ac_ext
32372cat >>conftest.$ac_ext <<_ACEOF
32373/* end confdefs.h.  */
32374$ac_includes_default
32375int
32376main ()
32377{
32378if (sizeof (_Bool))
32379       return 0;
32380  ;
32381  return 0;
32382}
32383_ACEOF
32384rm -f conftest.$ac_objext
32385if { (ac_try="$ac_compile"
32386case "(($ac_try" in
32387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388  *) ac_try_echo=$ac_try;;
32389esac
32390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32391$as_echo "$ac_try_echo") >&5
32392  (eval "$ac_compile") 2>conftest.er1
32393  ac_status=$?
32394  grep -v '^ *+' conftest.er1 >conftest.err
32395  rm -f conftest.er1
32396  cat conftest.err >&5
32397  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398  (exit $ac_status); } && {
32399	 test -z "$ac_c_werror_flag" ||
32400	 test ! -s conftest.err
32401       } && test -s conftest.$ac_objext; then
32402  cat >conftest.$ac_ext <<_ACEOF
32403/* confdefs.h.  */
32404_ACEOF
32405cat confdefs.h >>conftest.$ac_ext
32406cat >>conftest.$ac_ext <<_ACEOF
32407/* end confdefs.h.  */
32408$ac_includes_default
32409int
32410main ()
32411{
32412if (sizeof ((_Bool)))
32413	  return 0;
32414  ;
32415  return 0;
32416}
32417_ACEOF
32418rm -f conftest.$ac_objext
32419if { (ac_try="$ac_compile"
32420case "(($ac_try" in
32421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32422  *) ac_try_echo=$ac_try;;
32423esac
32424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32425$as_echo "$ac_try_echo") >&5
32426  (eval "$ac_compile") 2>conftest.er1
32427  ac_status=$?
32428  grep -v '^ *+' conftest.er1 >conftest.err
32429  rm -f conftest.er1
32430  cat conftest.err >&5
32431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32432  (exit $ac_status); } && {
32433	 test -z "$ac_c_werror_flag" ||
32434	 test ! -s conftest.err
32435       } && test -s conftest.$ac_objext; then
32436  :
32437else
32438  $as_echo "$as_me: failed program was:" >&5
32439sed 's/^/| /' conftest.$ac_ext >&5
32440
32441	ac_cv_type__Bool=yes
32442fi
32443
32444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32445else
32446  $as_echo "$as_me: failed program was:" >&5
32447sed 's/^/| /' conftest.$ac_ext >&5
32448
32449
32450fi
32451
32452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32453fi
32454{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
32455$as_echo "$ac_cv_type__Bool" >&6; }
32456if test "x$ac_cv_type__Bool" = x""yes; then
32457
32458cat >>confdefs.h <<_ACEOF
32459#define HAVE__BOOL 1
32460_ACEOF
32461
32462
32463fi
32464
32465   if test $ac_cv_header_stdbool_h = yes; then
32466
32467cat >>confdefs.h <<\_ACEOF
32468#define HAVE_STDBOOL_H 1
32469_ACEOF
32470
32471   fi
32472
32473
32474
32475
32476
32477
32478
32479
32480
32481
32482
32483
32484
32485      { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
32486$as_echo_n "checking whether strdup is declared... " >&6; }
32487if test "${ac_cv_have_decl_strdup+set}" = set; then
32488  $as_echo_n "(cached) " >&6
32489else
32490  cat >conftest.$ac_ext <<_ACEOF
32491/* confdefs.h.  */
32492_ACEOF
32493cat confdefs.h >>conftest.$ac_ext
32494cat >>conftest.$ac_ext <<_ACEOF
32495/* end confdefs.h.  */
32496$ac_includes_default
32497int
32498main ()
32499{
32500#ifndef strdup
32501  (void) strdup;
32502#endif
32503
32504  ;
32505  return 0;
32506}
32507_ACEOF
32508rm -f conftest.$ac_objext
32509if { (ac_try="$ac_compile"
32510case "(($ac_try" in
32511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32512  *) ac_try_echo=$ac_try;;
32513esac
32514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32515$as_echo "$ac_try_echo") >&5
32516  (eval "$ac_compile") 2>conftest.er1
32517  ac_status=$?
32518  grep -v '^ *+' conftest.er1 >conftest.err
32519  rm -f conftest.er1
32520  cat conftest.err >&5
32521  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522  (exit $ac_status); } && {
32523	 test -z "$ac_c_werror_flag" ||
32524	 test ! -s conftest.err
32525       } && test -s conftest.$ac_objext; then
32526  ac_cv_have_decl_strdup=yes
32527else
32528  $as_echo "$as_me: failed program was:" >&5
32529sed 's/^/| /' conftest.$ac_ext >&5
32530
32531	ac_cv_have_decl_strdup=no
32532fi
32533
32534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32535fi
32536{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
32537$as_echo "$ac_cv_have_decl_strdup" >&6; }
32538if test "x$ac_cv_have_decl_strdup" = x""yes; then
32539
32540cat >>confdefs.h <<_ACEOF
32541#define HAVE_DECL_STRDUP 1
32542_ACEOF
32543
32544
32545else
32546  cat >>confdefs.h <<_ACEOF
32547#define HAVE_DECL_STRDUP 0
32548_ACEOF
32549
32550
32551fi
32552
32553
32554
32555{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
32556$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
32557if test "${ac_cv_c_restrict+set}" = set; then
32558  $as_echo_n "(cached) " >&6
32559else
32560  ac_cv_c_restrict=no
32561   # The order here caters to the fact that C++ does not require restrict.
32562   for ac_kw in __restrict __restrict__ _Restrict restrict; do
32563     cat >conftest.$ac_ext <<_ACEOF
32564/* confdefs.h.  */
32565_ACEOF
32566cat confdefs.h >>conftest.$ac_ext
32567cat >>conftest.$ac_ext <<_ACEOF
32568/* end confdefs.h.  */
32569typedef int * int_ptr;
32570	int foo (int_ptr $ac_kw ip) {
32571	return ip[0];
32572       }
32573int
32574main ()
32575{
32576int s[1];
32577	int * $ac_kw t = s;
32578	t[0] = 0;
32579	return foo(t)
32580  ;
32581  return 0;
32582}
32583_ACEOF
32584rm -f conftest.$ac_objext
32585if { (ac_try="$ac_compile"
32586case "(($ac_try" in
32587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588  *) ac_try_echo=$ac_try;;
32589esac
32590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32591$as_echo "$ac_try_echo") >&5
32592  (eval "$ac_compile") 2>conftest.er1
32593  ac_status=$?
32594  grep -v '^ *+' conftest.er1 >conftest.err
32595  rm -f conftest.er1
32596  cat conftest.err >&5
32597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598  (exit $ac_status); } && {
32599	 test -z "$ac_c_werror_flag" ||
32600	 test ! -s conftest.err
32601       } && test -s conftest.$ac_objext; then
32602  ac_cv_c_restrict=$ac_kw
32603else
32604  $as_echo "$as_me: failed program was:" >&5
32605sed 's/^/| /' conftest.$ac_ext >&5
32606
32607
32608fi
32609
32610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32611     test "$ac_cv_c_restrict" != no && break
32612   done
32613
32614fi
32615{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
32616$as_echo "$ac_cv_c_restrict" >&6; }
32617
32618
32619 case $ac_cv_c_restrict in
32620   restrict) ;;
32621   no) cat >>confdefs.h <<\_ACEOF
32622#define restrict /**/
32623_ACEOF
32624 ;;
32625   *)  cat >>confdefs.h <<_ACEOF
32626#define restrict $ac_cv_c_restrict
32627_ACEOF
32628 ;;
32629 esac
32630
32631
32632
32633
32634
32635
32636
32637  :
32638
32639
32640
32641
32642
32643
32644
32645     if test $gl_cv_have_include_next = yes; then
32646       gl_cv_next_string_h='<'string.h'>'
32647     else
32648       { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
32649$as_echo_n "checking absolute name of <string.h>... " >&6; }
32650if test "${gl_cv_next_string_h+set}" = set; then
32651  $as_echo_n "(cached) " >&6
32652else
32653
32654	  if test $ac_cv_header_string_h = yes; then
32655	    cat >conftest.$ac_ext <<_ACEOF
32656/* confdefs.h.  */
32657_ACEOF
32658cat confdefs.h >>conftest.$ac_ext
32659cat >>conftest.$ac_ext <<_ACEOF
32660/* end confdefs.h.  */
32661#include <string.h>
32662
32663_ACEOF
32664	    	    	    	    gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32665	       sed -n '\#/string.h#{
32666		 s#.*"\(.*/string.h\)".*#\1#
32667		 s#^/[^/]#//&#
32668		 p
32669		 q
32670	       }'`'"'
32671	  else
32672	    gl_cv_next_string_h='<'string.h'>'
32673	  fi
32674
32675fi
32676{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
32677$as_echo "$gl_cv_next_string_h" >&6; }
32678     fi
32679     NEXT_STRING_H=$gl_cv_next_string_h
32680
32681
32682
32683
32684
32685      { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
32686$as_echo_n "checking whether strnlen is declared... " >&6; }
32687if test "${ac_cv_have_decl_strnlen+set}" = set; then
32688  $as_echo_n "(cached) " >&6
32689else
32690  cat >conftest.$ac_ext <<_ACEOF
32691/* confdefs.h.  */
32692_ACEOF
32693cat confdefs.h >>conftest.$ac_ext
32694cat >>conftest.$ac_ext <<_ACEOF
32695/* end confdefs.h.  */
32696$ac_includes_default
32697int
32698main ()
32699{
32700#ifndef strnlen
32701  (void) strnlen;
32702#endif
32703
32704  ;
32705  return 0;
32706}
32707_ACEOF
32708rm -f conftest.$ac_objext
32709if { (ac_try="$ac_compile"
32710case "(($ac_try" in
32711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32712  *) ac_try_echo=$ac_try;;
32713esac
32714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32715$as_echo "$ac_try_echo") >&5
32716  (eval "$ac_compile") 2>conftest.er1
32717  ac_status=$?
32718  grep -v '^ *+' conftest.er1 >conftest.err
32719  rm -f conftest.er1
32720  cat conftest.err >&5
32721  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722  (exit $ac_status); } && {
32723	 test -z "$ac_c_werror_flag" ||
32724	 test ! -s conftest.err
32725       } && test -s conftest.$ac_objext; then
32726  ac_cv_have_decl_strnlen=yes
32727else
32728  $as_echo "$as_me: failed program was:" >&5
32729sed 's/^/| /' conftest.$ac_ext >&5
32730
32731	ac_cv_have_decl_strnlen=no
32732fi
32733
32734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32735fi
32736{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
32737$as_echo "$ac_cv_have_decl_strnlen" >&6; }
32738if test "x$ac_cv_have_decl_strnlen" = x""yes; then
32739
32740cat >>confdefs.h <<_ACEOF
32741#define HAVE_DECL_STRNLEN 1
32742_ACEOF
32743
32744
32745else
32746  cat >>confdefs.h <<_ACEOF
32747#define HAVE_DECL_STRNLEN 0
32748_ACEOF
32749
32750
32751fi
32752
32753
32754
32755
32756      { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
32757$as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
32758if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
32759  $as_echo_n "(cached) " >&6
32760else
32761  cat >conftest.$ac_ext <<_ACEOF
32762/* confdefs.h.  */
32763_ACEOF
32764cat confdefs.h >>conftest.$ac_ext
32765cat >>conftest.$ac_ext <<_ACEOF
32766/* end confdefs.h.  */
32767$ac_includes_default
32768int
32769main ()
32770{
32771#ifndef clearerr_unlocked
32772  (void) clearerr_unlocked;
32773#endif
32774
32775  ;
32776  return 0;
32777}
32778_ACEOF
32779rm -f conftest.$ac_objext
32780if { (ac_try="$ac_compile"
32781case "(($ac_try" in
32782  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32783  *) ac_try_echo=$ac_try;;
32784esac
32785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32786$as_echo "$ac_try_echo") >&5
32787  (eval "$ac_compile") 2>conftest.er1
32788  ac_status=$?
32789  grep -v '^ *+' conftest.er1 >conftest.err
32790  rm -f conftest.er1
32791  cat conftest.err >&5
32792  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793  (exit $ac_status); } && {
32794	 test -z "$ac_c_werror_flag" ||
32795	 test ! -s conftest.err
32796       } && test -s conftest.$ac_objext; then
32797  ac_cv_have_decl_clearerr_unlocked=yes
32798else
32799  $as_echo "$as_me: failed program was:" >&5
32800sed 's/^/| /' conftest.$ac_ext >&5
32801
32802	ac_cv_have_decl_clearerr_unlocked=no
32803fi
32804
32805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32806fi
32807{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
32808$as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
32809if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
32810
32811cat >>confdefs.h <<_ACEOF
32812#define HAVE_DECL_CLEARERR_UNLOCKED 1
32813_ACEOF
32814
32815
32816else
32817  cat >>confdefs.h <<_ACEOF
32818#define HAVE_DECL_CLEARERR_UNLOCKED 0
32819_ACEOF
32820
32821
32822fi
32823
32824
32825
32826
32827      { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
32828$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
32829if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
32830  $as_echo_n "(cached) " >&6
32831else
32832  cat >conftest.$ac_ext <<_ACEOF
32833/* confdefs.h.  */
32834_ACEOF
32835cat confdefs.h >>conftest.$ac_ext
32836cat >>conftest.$ac_ext <<_ACEOF
32837/* end confdefs.h.  */
32838$ac_includes_default
32839int
32840main ()
32841{
32842#ifndef feof_unlocked
32843  (void) feof_unlocked;
32844#endif
32845
32846  ;
32847  return 0;
32848}
32849_ACEOF
32850rm -f conftest.$ac_objext
32851if { (ac_try="$ac_compile"
32852case "(($ac_try" in
32853  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854  *) ac_try_echo=$ac_try;;
32855esac
32856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32857$as_echo "$ac_try_echo") >&5
32858  (eval "$ac_compile") 2>conftest.er1
32859  ac_status=$?
32860  grep -v '^ *+' conftest.er1 >conftest.err
32861  rm -f conftest.er1
32862  cat conftest.err >&5
32863  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32864  (exit $ac_status); } && {
32865	 test -z "$ac_c_werror_flag" ||
32866	 test ! -s conftest.err
32867       } && test -s conftest.$ac_objext; then
32868  ac_cv_have_decl_feof_unlocked=yes
32869else
32870  $as_echo "$as_me: failed program was:" >&5
32871sed 's/^/| /' conftest.$ac_ext >&5
32872
32873	ac_cv_have_decl_feof_unlocked=no
32874fi
32875
32876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32877fi
32878{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
32879$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
32880if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
32881
32882cat >>confdefs.h <<_ACEOF
32883#define HAVE_DECL_FEOF_UNLOCKED 1
32884_ACEOF
32885
32886
32887else
32888  cat >>confdefs.h <<_ACEOF
32889#define HAVE_DECL_FEOF_UNLOCKED 0
32890_ACEOF
32891
32892
32893fi
32894
32895
32896
32897
32898      { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
32899$as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
32900if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
32901  $as_echo_n "(cached) " >&6
32902else
32903  cat >conftest.$ac_ext <<_ACEOF
32904/* confdefs.h.  */
32905_ACEOF
32906cat confdefs.h >>conftest.$ac_ext
32907cat >>conftest.$ac_ext <<_ACEOF
32908/* end confdefs.h.  */
32909$ac_includes_default
32910int
32911main ()
32912{
32913#ifndef ferror_unlocked
32914  (void) ferror_unlocked;
32915#endif
32916
32917  ;
32918  return 0;
32919}
32920_ACEOF
32921rm -f conftest.$ac_objext
32922if { (ac_try="$ac_compile"
32923case "(($ac_try" in
32924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925  *) ac_try_echo=$ac_try;;
32926esac
32927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32928$as_echo "$ac_try_echo") >&5
32929  (eval "$ac_compile") 2>conftest.er1
32930  ac_status=$?
32931  grep -v '^ *+' conftest.er1 >conftest.err
32932  rm -f conftest.er1
32933  cat conftest.err >&5
32934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32935  (exit $ac_status); } && {
32936	 test -z "$ac_c_werror_flag" ||
32937	 test ! -s conftest.err
32938       } && test -s conftest.$ac_objext; then
32939  ac_cv_have_decl_ferror_unlocked=yes
32940else
32941  $as_echo "$as_me: failed program was:" >&5
32942sed 's/^/| /' conftest.$ac_ext >&5
32943
32944	ac_cv_have_decl_ferror_unlocked=no
32945fi
32946
32947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32948fi
32949{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
32950$as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
32951if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
32952
32953cat >>confdefs.h <<_ACEOF
32954#define HAVE_DECL_FERROR_UNLOCKED 1
32955_ACEOF
32956
32957
32958else
32959  cat >>confdefs.h <<_ACEOF
32960#define HAVE_DECL_FERROR_UNLOCKED 0
32961_ACEOF
32962
32963
32964fi
32965
32966
32967
32968
32969      { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
32970$as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
32971if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
32972  $as_echo_n "(cached) " >&6
32973else
32974  cat >conftest.$ac_ext <<_ACEOF
32975/* confdefs.h.  */
32976_ACEOF
32977cat confdefs.h >>conftest.$ac_ext
32978cat >>conftest.$ac_ext <<_ACEOF
32979/* end confdefs.h.  */
32980$ac_includes_default
32981int
32982main ()
32983{
32984#ifndef fflush_unlocked
32985  (void) fflush_unlocked;
32986#endif
32987
32988  ;
32989  return 0;
32990}
32991_ACEOF
32992rm -f conftest.$ac_objext
32993if { (ac_try="$ac_compile"
32994case "(($ac_try" in
32995  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996  *) ac_try_echo=$ac_try;;
32997esac
32998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32999$as_echo "$ac_try_echo") >&5
33000  (eval "$ac_compile") 2>conftest.er1
33001  ac_status=$?
33002  grep -v '^ *+' conftest.er1 >conftest.err
33003  rm -f conftest.er1
33004  cat conftest.err >&5
33005  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33006  (exit $ac_status); } && {
33007	 test -z "$ac_c_werror_flag" ||
33008	 test ! -s conftest.err
33009       } && test -s conftest.$ac_objext; then
33010  ac_cv_have_decl_fflush_unlocked=yes
33011else
33012  $as_echo "$as_me: failed program was:" >&5
33013sed 's/^/| /' conftest.$ac_ext >&5
33014
33015	ac_cv_have_decl_fflush_unlocked=no
33016fi
33017
33018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33019fi
33020{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
33021$as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
33022if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
33023
33024cat >>confdefs.h <<_ACEOF
33025#define HAVE_DECL_FFLUSH_UNLOCKED 1
33026_ACEOF
33027
33028
33029else
33030  cat >>confdefs.h <<_ACEOF
33031#define HAVE_DECL_FFLUSH_UNLOCKED 0
33032_ACEOF
33033
33034
33035fi
33036
33037
33038
33039
33040      { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
33041$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
33042if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
33043  $as_echo_n "(cached) " >&6
33044else
33045  cat >conftest.$ac_ext <<_ACEOF
33046/* confdefs.h.  */
33047_ACEOF
33048cat confdefs.h >>conftest.$ac_ext
33049cat >>conftest.$ac_ext <<_ACEOF
33050/* end confdefs.h.  */
33051$ac_includes_default
33052int
33053main ()
33054{
33055#ifndef fgets_unlocked
33056  (void) fgets_unlocked;
33057#endif
33058
33059  ;
33060  return 0;
33061}
33062_ACEOF
33063rm -f conftest.$ac_objext
33064if { (ac_try="$ac_compile"
33065case "(($ac_try" in
33066  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067  *) ac_try_echo=$ac_try;;
33068esac
33069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33070$as_echo "$ac_try_echo") >&5
33071  (eval "$ac_compile") 2>conftest.er1
33072  ac_status=$?
33073  grep -v '^ *+' conftest.er1 >conftest.err
33074  rm -f conftest.er1
33075  cat conftest.err >&5
33076  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077  (exit $ac_status); } && {
33078	 test -z "$ac_c_werror_flag" ||
33079	 test ! -s conftest.err
33080       } && test -s conftest.$ac_objext; then
33081  ac_cv_have_decl_fgets_unlocked=yes
33082else
33083  $as_echo "$as_me: failed program was:" >&5
33084sed 's/^/| /' conftest.$ac_ext >&5
33085
33086	ac_cv_have_decl_fgets_unlocked=no
33087fi
33088
33089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33090fi
33091{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
33092$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
33093if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
33094
33095cat >>confdefs.h <<_ACEOF
33096#define HAVE_DECL_FGETS_UNLOCKED 1
33097_ACEOF
33098
33099
33100else
33101  cat >>confdefs.h <<_ACEOF
33102#define HAVE_DECL_FGETS_UNLOCKED 0
33103_ACEOF
33104
33105
33106fi
33107
33108
33109
33110
33111      { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
33112$as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
33113if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
33114  $as_echo_n "(cached) " >&6
33115else
33116  cat >conftest.$ac_ext <<_ACEOF
33117/* confdefs.h.  */
33118_ACEOF
33119cat confdefs.h >>conftest.$ac_ext
33120cat >>conftest.$ac_ext <<_ACEOF
33121/* end confdefs.h.  */
33122$ac_includes_default
33123int
33124main ()
33125{
33126#ifndef fputc_unlocked
33127  (void) fputc_unlocked;
33128#endif
33129
33130  ;
33131  return 0;
33132}
33133_ACEOF
33134rm -f conftest.$ac_objext
33135if { (ac_try="$ac_compile"
33136case "(($ac_try" in
33137  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33138  *) ac_try_echo=$ac_try;;
33139esac
33140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33141$as_echo "$ac_try_echo") >&5
33142  (eval "$ac_compile") 2>conftest.er1
33143  ac_status=$?
33144  grep -v '^ *+' conftest.er1 >conftest.err
33145  rm -f conftest.er1
33146  cat conftest.err >&5
33147  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148  (exit $ac_status); } && {
33149	 test -z "$ac_c_werror_flag" ||
33150	 test ! -s conftest.err
33151       } && test -s conftest.$ac_objext; then
33152  ac_cv_have_decl_fputc_unlocked=yes
33153else
33154  $as_echo "$as_me: failed program was:" >&5
33155sed 's/^/| /' conftest.$ac_ext >&5
33156
33157	ac_cv_have_decl_fputc_unlocked=no
33158fi
33159
33160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33161fi
33162{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
33163$as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
33164if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
33165
33166cat >>confdefs.h <<_ACEOF
33167#define HAVE_DECL_FPUTC_UNLOCKED 1
33168_ACEOF
33169
33170
33171else
33172  cat >>confdefs.h <<_ACEOF
33173#define HAVE_DECL_FPUTC_UNLOCKED 0
33174_ACEOF
33175
33176
33177fi
33178
33179
33180
33181
33182      { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
33183$as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
33184if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
33185  $as_echo_n "(cached) " >&6
33186else
33187  cat >conftest.$ac_ext <<_ACEOF
33188/* confdefs.h.  */
33189_ACEOF
33190cat confdefs.h >>conftest.$ac_ext
33191cat >>conftest.$ac_ext <<_ACEOF
33192/* end confdefs.h.  */
33193$ac_includes_default
33194int
33195main ()
33196{
33197#ifndef fputs_unlocked
33198  (void) fputs_unlocked;
33199#endif
33200
33201  ;
33202  return 0;
33203}
33204_ACEOF
33205rm -f conftest.$ac_objext
33206if { (ac_try="$ac_compile"
33207case "(($ac_try" in
33208  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209  *) ac_try_echo=$ac_try;;
33210esac
33211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33212$as_echo "$ac_try_echo") >&5
33213  (eval "$ac_compile") 2>conftest.er1
33214  ac_status=$?
33215  grep -v '^ *+' conftest.er1 >conftest.err
33216  rm -f conftest.er1
33217  cat conftest.err >&5
33218  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219  (exit $ac_status); } && {
33220	 test -z "$ac_c_werror_flag" ||
33221	 test ! -s conftest.err
33222       } && test -s conftest.$ac_objext; then
33223  ac_cv_have_decl_fputs_unlocked=yes
33224else
33225  $as_echo "$as_me: failed program was:" >&5
33226sed 's/^/| /' conftest.$ac_ext >&5
33227
33228	ac_cv_have_decl_fputs_unlocked=no
33229fi
33230
33231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33232fi
33233{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
33234$as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
33235if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
33236
33237cat >>confdefs.h <<_ACEOF
33238#define HAVE_DECL_FPUTS_UNLOCKED 1
33239_ACEOF
33240
33241
33242else
33243  cat >>confdefs.h <<_ACEOF
33244#define HAVE_DECL_FPUTS_UNLOCKED 0
33245_ACEOF
33246
33247
33248fi
33249
33250
33251
33252
33253      { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
33254$as_echo_n "checking whether fread_unlocked is declared... " >&6; }
33255if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
33256  $as_echo_n "(cached) " >&6
33257else
33258  cat >conftest.$ac_ext <<_ACEOF
33259/* confdefs.h.  */
33260_ACEOF
33261cat confdefs.h >>conftest.$ac_ext
33262cat >>conftest.$ac_ext <<_ACEOF
33263/* end confdefs.h.  */
33264$ac_includes_default
33265int
33266main ()
33267{
33268#ifndef fread_unlocked
33269  (void) fread_unlocked;
33270#endif
33271
33272  ;
33273  return 0;
33274}
33275_ACEOF
33276rm -f conftest.$ac_objext
33277if { (ac_try="$ac_compile"
33278case "(($ac_try" in
33279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33280  *) ac_try_echo=$ac_try;;
33281esac
33282eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33283$as_echo "$ac_try_echo") >&5
33284  (eval "$ac_compile") 2>conftest.er1
33285  ac_status=$?
33286  grep -v '^ *+' conftest.er1 >conftest.err
33287  rm -f conftest.er1
33288  cat conftest.err >&5
33289  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290  (exit $ac_status); } && {
33291	 test -z "$ac_c_werror_flag" ||
33292	 test ! -s conftest.err
33293       } && test -s conftest.$ac_objext; then
33294  ac_cv_have_decl_fread_unlocked=yes
33295else
33296  $as_echo "$as_me: failed program was:" >&5
33297sed 's/^/| /' conftest.$ac_ext >&5
33298
33299	ac_cv_have_decl_fread_unlocked=no
33300fi
33301
33302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33303fi
33304{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
33305$as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
33306if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
33307
33308cat >>confdefs.h <<_ACEOF
33309#define HAVE_DECL_FREAD_UNLOCKED 1
33310_ACEOF
33311
33312
33313else
33314  cat >>confdefs.h <<_ACEOF
33315#define HAVE_DECL_FREAD_UNLOCKED 0
33316_ACEOF
33317
33318
33319fi
33320
33321
33322
33323
33324      { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
33325$as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
33326if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
33327  $as_echo_n "(cached) " >&6
33328else
33329  cat >conftest.$ac_ext <<_ACEOF
33330/* confdefs.h.  */
33331_ACEOF
33332cat confdefs.h >>conftest.$ac_ext
33333cat >>conftest.$ac_ext <<_ACEOF
33334/* end confdefs.h.  */
33335$ac_includes_default
33336int
33337main ()
33338{
33339#ifndef fwrite_unlocked
33340  (void) fwrite_unlocked;
33341#endif
33342
33343  ;
33344  return 0;
33345}
33346_ACEOF
33347rm -f conftest.$ac_objext
33348if { (ac_try="$ac_compile"
33349case "(($ac_try" in
33350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33351  *) ac_try_echo=$ac_try;;
33352esac
33353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33354$as_echo "$ac_try_echo") >&5
33355  (eval "$ac_compile") 2>conftest.er1
33356  ac_status=$?
33357  grep -v '^ *+' conftest.er1 >conftest.err
33358  rm -f conftest.er1
33359  cat conftest.err >&5
33360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361  (exit $ac_status); } && {
33362	 test -z "$ac_c_werror_flag" ||
33363	 test ! -s conftest.err
33364       } && test -s conftest.$ac_objext; then
33365  ac_cv_have_decl_fwrite_unlocked=yes
33366else
33367  $as_echo "$as_me: failed program was:" >&5
33368sed 's/^/| /' conftest.$ac_ext >&5
33369
33370	ac_cv_have_decl_fwrite_unlocked=no
33371fi
33372
33373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33374fi
33375{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
33376$as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
33377if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
33378
33379cat >>confdefs.h <<_ACEOF
33380#define HAVE_DECL_FWRITE_UNLOCKED 1
33381_ACEOF
33382
33383
33384else
33385  cat >>confdefs.h <<_ACEOF
33386#define HAVE_DECL_FWRITE_UNLOCKED 0
33387_ACEOF
33388
33389
33390fi
33391
33392
33393
33394
33395      { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
33396$as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
33397if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
33398  $as_echo_n "(cached) " >&6
33399else
33400  cat >conftest.$ac_ext <<_ACEOF
33401/* confdefs.h.  */
33402_ACEOF
33403cat confdefs.h >>conftest.$ac_ext
33404cat >>conftest.$ac_ext <<_ACEOF
33405/* end confdefs.h.  */
33406$ac_includes_default
33407int
33408main ()
33409{
33410#ifndef getchar_unlocked
33411  (void) getchar_unlocked;
33412#endif
33413
33414  ;
33415  return 0;
33416}
33417_ACEOF
33418rm -f conftest.$ac_objext
33419if { (ac_try="$ac_compile"
33420case "(($ac_try" in
33421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422  *) ac_try_echo=$ac_try;;
33423esac
33424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33425$as_echo "$ac_try_echo") >&5
33426  (eval "$ac_compile") 2>conftest.er1
33427  ac_status=$?
33428  grep -v '^ *+' conftest.er1 >conftest.err
33429  rm -f conftest.er1
33430  cat conftest.err >&5
33431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33432  (exit $ac_status); } && {
33433	 test -z "$ac_c_werror_flag" ||
33434	 test ! -s conftest.err
33435       } && test -s conftest.$ac_objext; then
33436  ac_cv_have_decl_getchar_unlocked=yes
33437else
33438  $as_echo "$as_me: failed program was:" >&5
33439sed 's/^/| /' conftest.$ac_ext >&5
33440
33441	ac_cv_have_decl_getchar_unlocked=no
33442fi
33443
33444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33445fi
33446{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
33447$as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
33448if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
33449
33450cat >>confdefs.h <<_ACEOF
33451#define HAVE_DECL_GETCHAR_UNLOCKED 1
33452_ACEOF
33453
33454
33455else
33456  cat >>confdefs.h <<_ACEOF
33457#define HAVE_DECL_GETCHAR_UNLOCKED 0
33458_ACEOF
33459
33460
33461fi
33462
33463
33464
33465
33466      { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
33467$as_echo_n "checking whether putc_unlocked is declared... " >&6; }
33468if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
33469  $as_echo_n "(cached) " >&6
33470else
33471  cat >conftest.$ac_ext <<_ACEOF
33472/* confdefs.h.  */
33473_ACEOF
33474cat confdefs.h >>conftest.$ac_ext
33475cat >>conftest.$ac_ext <<_ACEOF
33476/* end confdefs.h.  */
33477$ac_includes_default
33478int
33479main ()
33480{
33481#ifndef putc_unlocked
33482  (void) putc_unlocked;
33483#endif
33484
33485  ;
33486  return 0;
33487}
33488_ACEOF
33489rm -f conftest.$ac_objext
33490if { (ac_try="$ac_compile"
33491case "(($ac_try" in
33492  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33493  *) ac_try_echo=$ac_try;;
33494esac
33495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33496$as_echo "$ac_try_echo") >&5
33497  (eval "$ac_compile") 2>conftest.er1
33498  ac_status=$?
33499  grep -v '^ *+' conftest.er1 >conftest.err
33500  rm -f conftest.er1
33501  cat conftest.err >&5
33502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503  (exit $ac_status); } && {
33504	 test -z "$ac_c_werror_flag" ||
33505	 test ! -s conftest.err
33506       } && test -s conftest.$ac_objext; then
33507  ac_cv_have_decl_putc_unlocked=yes
33508else
33509  $as_echo "$as_me: failed program was:" >&5
33510sed 's/^/| /' conftest.$ac_ext >&5
33511
33512	ac_cv_have_decl_putc_unlocked=no
33513fi
33514
33515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33516fi
33517{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
33518$as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
33519if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
33520
33521cat >>confdefs.h <<_ACEOF
33522#define HAVE_DECL_PUTC_UNLOCKED 1
33523_ACEOF
33524
33525
33526else
33527  cat >>confdefs.h <<_ACEOF
33528#define HAVE_DECL_PUTC_UNLOCKED 0
33529_ACEOF
33530
33531
33532fi
33533
33534
33535
33536
33537      { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
33538$as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
33539if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
33540  $as_echo_n "(cached) " >&6
33541else
33542  cat >conftest.$ac_ext <<_ACEOF
33543/* confdefs.h.  */
33544_ACEOF
33545cat confdefs.h >>conftest.$ac_ext
33546cat >>conftest.$ac_ext <<_ACEOF
33547/* end confdefs.h.  */
33548$ac_includes_default
33549int
33550main ()
33551{
33552#ifndef putchar_unlocked
33553  (void) putchar_unlocked;
33554#endif
33555
33556  ;
33557  return 0;
33558}
33559_ACEOF
33560rm -f conftest.$ac_objext
33561if { (ac_try="$ac_compile"
33562case "(($ac_try" in
33563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33564  *) ac_try_echo=$ac_try;;
33565esac
33566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33567$as_echo "$ac_try_echo") >&5
33568  (eval "$ac_compile") 2>conftest.er1
33569  ac_status=$?
33570  grep -v '^ *+' conftest.er1 >conftest.err
33571  rm -f conftest.er1
33572  cat conftest.err >&5
33573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574  (exit $ac_status); } && {
33575	 test -z "$ac_c_werror_flag" ||
33576	 test ! -s conftest.err
33577       } && test -s conftest.$ac_objext; then
33578  ac_cv_have_decl_putchar_unlocked=yes
33579else
33580  $as_echo "$as_me: failed program was:" >&5
33581sed 's/^/| /' conftest.$ac_ext >&5
33582
33583	ac_cv_have_decl_putchar_unlocked=no
33584fi
33585
33586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33587fi
33588{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
33589$as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
33590if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
33591
33592cat >>confdefs.h <<_ACEOF
33593#define HAVE_DECL_PUTCHAR_UNLOCKED 1
33594_ACEOF
33595
33596
33597else
33598  cat >>confdefs.h <<_ACEOF
33599#define HAVE_DECL_PUTCHAR_UNLOCKED 0
33600_ACEOF
33601
33602
33603fi
33604
33605
33606
33607
33608  GNULIB_WCWIDTH=0;
33609    HAVE_DECL_WCWIDTH=1;
33610  REPLACE_WCWIDTH=0;
33611  WCHAR_H=
33612
33613
33614
33615
33616
33617
33618
33619
33620
33621
33622
33623
33624
33625
33626
33627
33628
33629
33630
33631
33632
33633
33634
33635
33636   if false; then
33637  GL_COND_LIBTOOL_TRUE=
33638  GL_COND_LIBTOOL_FALSE='#'
33639else
33640  GL_COND_LIBTOOL_TRUE='#'
33641  GL_COND_LIBTOOL_FALSE=
33642fi
33643
33644  gl_cond_libtool=false
33645  gl_libdeps=
33646  gl_ltlibdeps=
33647  gl_source_base='gnulib-lib'
33648
33649
33650
33651
33652
33653  if test $ac_cv_func_alloca_works = no; then
33654
33655
33656  :
33657
33658
33659
33660
33661
33662
33663
33664
33665  :
33666
33667  fi
33668
33669  # Define an additional variable used in the Makefile substitution.
33670
33671  cat >conftest.$ac_ext <<_ACEOF
33672/* confdefs.h.  */
33673_ACEOF
33674cat confdefs.h >>conftest.$ac_ext
33675cat >>conftest.$ac_ext <<_ACEOF
33676/* end confdefs.h.  */
33677
33678#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
33679  Need own alloca
33680#endif
33681
33682_ACEOF
33683if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33684  $EGREP "Need own alloca" >/dev/null 2>&1; then
33685  ALLOCA_H=alloca.h
33686else
33687  ALLOCA_H=
33688fi
33689rm -f conftest*
33690
33691
33692
33693
33694
33695
33696
33697
33698
33699
33700
33701
33702for ac_func in atexit
33703do
33704as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33705{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33706$as_echo_n "checking for $ac_func... " >&6; }
33707if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33708  $as_echo_n "(cached) " >&6
33709else
33710  cat >conftest.$ac_ext <<_ACEOF
33711/* confdefs.h.  */
33712_ACEOF
33713cat confdefs.h >>conftest.$ac_ext
33714cat >>conftest.$ac_ext <<_ACEOF
33715/* end confdefs.h.  */
33716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33717   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33718#define $ac_func innocuous_$ac_func
33719
33720/* System header to define __stub macros and hopefully few prototypes,
33721    which can conflict with char $ac_func (); below.
33722    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33723    <limits.h> exists even on freestanding compilers.  */
33724
33725#ifdef __STDC__
33726# include <limits.h>
33727#else
33728# include <assert.h>
33729#endif
33730
33731#undef $ac_func
33732
33733/* Override any GCC internal prototype to avoid an error.
33734   Use char because int might match the return type of a GCC
33735   builtin and then its argument prototype would still apply.  */
33736#ifdef __cplusplus
33737extern "C"
33738#endif
33739char $ac_func ();
33740/* The GNU C library defines this for functions which it implements
33741    to always fail with ENOSYS.  Some functions are actually named
33742    something starting with __ and the normal name is an alias.  */
33743#if defined __stub_$ac_func || defined __stub___$ac_func
33744choke me
33745#endif
33746
33747int
33748main ()
33749{
33750return $ac_func ();
33751  ;
33752  return 0;
33753}
33754_ACEOF
33755rm -f conftest.$ac_objext conftest$ac_exeext
33756if { (ac_try="$ac_link"
33757case "(($ac_try" in
33758  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33759  *) ac_try_echo=$ac_try;;
33760esac
33761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33762$as_echo "$ac_try_echo") >&5
33763  (eval "$ac_link") 2>conftest.er1
33764  ac_status=$?
33765  grep -v '^ *+' conftest.er1 >conftest.err
33766  rm -f conftest.er1
33767  cat conftest.err >&5
33768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769  (exit $ac_status); } && {
33770	 test -z "$ac_c_werror_flag" ||
33771	 test ! -s conftest.err
33772       } && test -s conftest$ac_exeext && {
33773	 test "$cross_compiling" = yes ||
33774	 $as_test_x conftest$ac_exeext
33775       }; then
33776  eval "$as_ac_var=yes"
33777else
33778  $as_echo "$as_me: failed program was:" >&5
33779sed 's/^/| /' conftest.$ac_ext >&5
33780
33781	eval "$as_ac_var=no"
33782fi
33783
33784rm -rf conftest.dSYM
33785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33786      conftest$ac_exeext conftest.$ac_ext
33787fi
33788ac_res=`eval 'as_val=${'$as_ac_var'}
33789		 $as_echo "$as_val"'`
33790	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33791$as_echo "$ac_res" >&6; }
33792as_val=`eval 'as_val=${'$as_ac_var'}
33793		 $as_echo "$as_val"'`
33794   if test "x$as_val" = x""yes; then
33795  cat >>confdefs.h <<_ACEOF
33796#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33797_ACEOF
33798
33799else
33800
33801    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33802
33803fi
33804done
33805
33806
33807  if test $ac_cv_func_atexit = no; then
33808
33809  :
33810
33811  fi
33812
33813
33814
33815  :
33816
33817
33818
33819
33820
33821
33822  :
33823
33824
33825
33826
33827
33828  if test $ac_cv_func_canonicalize_file_name = no; then
33829
33830
33831
33832
33833
33834
33835
33836  gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
33837
33838
33839cat >>confdefs.h <<\_ACEOF
33840#define realpath rpl_realpath
33841_ACEOF
33842
33843
33844
33845  :
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855  :
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865  fi
33866
33867
33868  ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
33882$as_echo_n "checking for error_at_line... " >&6; }
33883if test "${ac_cv_lib_error_at_line+set}" = set; then
33884  $as_echo_n "(cached) " >&6
33885else
33886  cat >conftest.$ac_ext <<_ACEOF
33887/* confdefs.h.  */
33888_ACEOF
33889cat confdefs.h >>conftest.$ac_ext
33890cat >>conftest.$ac_ext <<_ACEOF
33891/* end confdefs.h.  */
33892#include <error.h>
33893int
33894main ()
33895{
33896error_at_line (0, 0, "", 0, "an error occurred");
33897  ;
33898  return 0;
33899}
33900_ACEOF
33901rm -f conftest.$ac_objext conftest$ac_exeext
33902if { (ac_try="$ac_link"
33903case "(($ac_try" in
33904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33905  *) ac_try_echo=$ac_try;;
33906esac
33907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33908$as_echo "$ac_try_echo") >&5
33909  (eval "$ac_link") 2>conftest.er1
33910  ac_status=$?
33911  grep -v '^ *+' conftest.er1 >conftest.err
33912  rm -f conftest.er1
33913  cat conftest.err >&5
33914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915  (exit $ac_status); } && {
33916	 test -z "$ac_c_werror_flag" ||
33917	 test ! -s conftest.err
33918       } && test -s conftest$ac_exeext && {
33919	 test "$cross_compiling" = yes ||
33920	 $as_test_x conftest$ac_exeext
33921       }; then
33922  ac_cv_lib_error_at_line=yes
33923else
33924  $as_echo "$as_me: failed program was:" >&5
33925sed 's/^/| /' conftest.$ac_ext >&5
33926
33927	ac_cv_lib_error_at_line=no
33928fi
33929
33930rm -rf conftest.dSYM
33931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33932      conftest$ac_exeext conftest.$ac_ext
33933fi
33934{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
33935$as_echo "$ac_cv_lib_error_at_line" >&6; }
33936if test $ac_cv_lib_error_at_line = no; then
33937
33938
33939
33940
33941
33942
33943
33944  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
33945
33946fi
33947
33948
33949
33950  :
33951
33952
33953
33954
33955  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
33956
33957
33958
33959  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
33960
33961
33962
33963cat >>confdefs.h <<\_ACEOF
33964#define GNULIB_FWRITEERROR 1
33965_ACEOF
33966
33967
33968
33969
33970  if test -n "$GETOPT_H"; then
33971
33972
33973
33974
33975
33976
33977
33978
33979  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
33980
33981
33982
33983
33984
33985
33986
33987
33988  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
33989
33990
33991  GETOPT_H=getopt.h
33992
33993cat >>confdefs.h <<\_ACEOF
33994#define __GETOPT_PREFIX rpl_
33995_ACEOF
33996
33997
33998
33999
34000
34001  :
34002
34003
34004
34005
34006
34007
34008
34009fi
34010
34011
34012
34013
34014
34015
34016
34017
34018
34019          am_save_CPPFLAGS="$CPPFLAGS"
34020
34021  for element in $INCICONV; do
34022    haveit=
34023    for x in $CPPFLAGS; do
34024
34025  acl_save_prefix="$prefix"
34026  prefix="$acl_final_prefix"
34027  acl_save_exec_prefix="$exec_prefix"
34028  exec_prefix="$acl_final_exec_prefix"
34029  eval x=\"$x\"
34030  exec_prefix="$acl_save_exec_prefix"
34031  prefix="$acl_save_prefix"
34032
34033      if test "X$x" = "X$element"; then
34034        haveit=yes
34035        break
34036      fi
34037    done
34038    if test -z "$haveit"; then
34039      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
34040    fi
34041  done
34042
34043
34044  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
34045$as_echo_n "checking for iconv... " >&6; }
34046if test "${am_cv_func_iconv+set}" = set; then
34047  $as_echo_n "(cached) " >&6
34048else
34049
34050    am_cv_func_iconv="no, consider installing GNU libiconv"
34051    am_cv_lib_iconv=no
34052    cat >conftest.$ac_ext <<_ACEOF
34053/* confdefs.h.  */
34054_ACEOF
34055cat confdefs.h >>conftest.$ac_ext
34056cat >>conftest.$ac_ext <<_ACEOF
34057/* end confdefs.h.  */
34058#include <stdlib.h>
34059#include <iconv.h>
34060int
34061main ()
34062{
34063iconv_t cd = iconv_open("","");
34064       iconv(cd,NULL,NULL,NULL,NULL);
34065       iconv_close(cd);
34066  ;
34067  return 0;
34068}
34069_ACEOF
34070rm -f conftest.$ac_objext conftest$ac_exeext
34071if { (ac_try="$ac_link"
34072case "(($ac_try" in
34073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074  *) ac_try_echo=$ac_try;;
34075esac
34076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34077$as_echo "$ac_try_echo") >&5
34078  (eval "$ac_link") 2>conftest.er1
34079  ac_status=$?
34080  grep -v '^ *+' conftest.er1 >conftest.err
34081  rm -f conftest.er1
34082  cat conftest.err >&5
34083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084  (exit $ac_status); } && {
34085	 test -z "$ac_c_werror_flag" ||
34086	 test ! -s conftest.err
34087       } && test -s conftest$ac_exeext && {
34088	 test "$cross_compiling" = yes ||
34089	 $as_test_x conftest$ac_exeext
34090       }; then
34091  am_cv_func_iconv=yes
34092else
34093  $as_echo "$as_me: failed program was:" >&5
34094sed 's/^/| /' conftest.$ac_ext >&5
34095
34096
34097fi
34098
34099rm -rf conftest.dSYM
34100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34101      conftest$ac_exeext conftest.$ac_ext
34102    if test "$am_cv_func_iconv" != yes; then
34103      am_save_LIBS="$LIBS"
34104      LIBS="$LIBS $LIBICONV"
34105      cat >conftest.$ac_ext <<_ACEOF
34106/* confdefs.h.  */
34107_ACEOF
34108cat confdefs.h >>conftest.$ac_ext
34109cat >>conftest.$ac_ext <<_ACEOF
34110/* end confdefs.h.  */
34111#include <stdlib.h>
34112#include <iconv.h>
34113int
34114main ()
34115{
34116iconv_t cd = iconv_open("","");
34117         iconv(cd,NULL,NULL,NULL,NULL);
34118         iconv_close(cd);
34119  ;
34120  return 0;
34121}
34122_ACEOF
34123rm -f conftest.$ac_objext conftest$ac_exeext
34124if { (ac_try="$ac_link"
34125case "(($ac_try" in
34126  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34127  *) ac_try_echo=$ac_try;;
34128esac
34129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34130$as_echo "$ac_try_echo") >&5
34131  (eval "$ac_link") 2>conftest.er1
34132  ac_status=$?
34133  grep -v '^ *+' conftest.er1 >conftest.err
34134  rm -f conftest.er1
34135  cat conftest.err >&5
34136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137  (exit $ac_status); } && {
34138	 test -z "$ac_c_werror_flag" ||
34139	 test ! -s conftest.err
34140       } && test -s conftest$ac_exeext && {
34141	 test "$cross_compiling" = yes ||
34142	 $as_test_x conftest$ac_exeext
34143       }; then
34144  am_cv_lib_iconv=yes
34145        am_cv_func_iconv=yes
34146else
34147  $as_echo "$as_me: failed program was:" >&5
34148sed 's/^/| /' conftest.$ac_ext >&5
34149
34150
34151fi
34152
34153rm -rf conftest.dSYM
34154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34155      conftest$ac_exeext conftest.$ac_ext
34156      LIBS="$am_save_LIBS"
34157    fi
34158
34159fi
34160{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34161$as_echo "$am_cv_func_iconv" >&6; }
34162  if test "$am_cv_func_iconv" = yes; then
34163    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
34164$as_echo_n "checking for working iconv... " >&6; }
34165if test "${am_cv_func_iconv_works+set}" = set; then
34166  $as_echo_n "(cached) " >&6
34167else
34168
34169            am_save_LIBS="$LIBS"
34170      if test $am_cv_lib_iconv = yes; then
34171        LIBS="$LIBS $LIBICONV"
34172      fi
34173      if test "$cross_compiling" = yes; then
34174  case "$host_os" in
34175           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
34176           *)            am_cv_func_iconv_works="guessing yes" ;;
34177         esac
34178else
34179  cat >conftest.$ac_ext <<_ACEOF
34180/* confdefs.h.  */
34181_ACEOF
34182cat confdefs.h >>conftest.$ac_ext
34183cat >>conftest.$ac_ext <<_ACEOF
34184/* end confdefs.h.  */
34185
34186#include <iconv.h>
34187#include <string.h>
34188int main ()
34189{
34190  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
34191     returns.  */
34192  {
34193    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
34194    if (cd_utf8_to_88591 != (iconv_t)(-1))
34195      {
34196        static const char input[] = "\342\202\254"; /* EURO SIGN */
34197        char buf[10];
34198        const char *inptr = input;
34199        size_t inbytesleft = strlen (input);
34200        char *outptr = buf;
34201        size_t outbytesleft = sizeof (buf);
34202        size_t res = iconv (cd_utf8_to_88591,
34203                            (char **) &inptr, &inbytesleft,
34204                            &outptr, &outbytesleft);
34205        if (res == 0)
34206          return 1;
34207      }
34208  }
34209#if 0 /* This bug could be worked around by the caller.  */
34210  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
34211  {
34212    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
34213    if (cd_88591_to_utf8 != (iconv_t)(-1))
34214      {
34215        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
34216        char buf[50];
34217        const char *inptr = input;
34218        size_t inbytesleft = strlen (input);
34219        char *outptr = buf;
34220        size_t outbytesleft = sizeof (buf);
34221        size_t res = iconv (cd_88591_to_utf8,
34222                            (char **) &inptr, &inbytesleft,
34223                            &outptr, &outbytesleft);
34224        if ((int)res > 0)
34225          return 1;
34226      }
34227  }
34228#endif
34229  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
34230     provided.  */
34231  if (/* Try standardized names.  */
34232      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
34233      /* Try IRIX, OSF/1 names.  */
34234      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
34235      /* Try AIX names.  */
34236      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
34237      /* Try HP-UX names.  */
34238      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
34239    return 1;
34240  return 0;
34241}
34242_ACEOF
34243rm -f conftest$ac_exeext
34244if { (ac_try="$ac_link"
34245case "(($ac_try" in
34246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34247  *) ac_try_echo=$ac_try;;
34248esac
34249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34250$as_echo "$ac_try_echo") >&5
34251  (eval "$ac_link") 2>&5
34252  ac_status=$?
34253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34255  { (case "(($ac_try" in
34256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34257  *) ac_try_echo=$ac_try;;
34258esac
34259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34260$as_echo "$ac_try_echo") >&5
34261  (eval "$ac_try") 2>&5
34262  ac_status=$?
34263  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264  (exit $ac_status); }; }; then
34265  am_cv_func_iconv_works=yes
34266else
34267  $as_echo "$as_me: program exited with status $ac_status" >&5
34268$as_echo "$as_me: failed program was:" >&5
34269sed 's/^/| /' conftest.$ac_ext >&5
34270
34271( exit $ac_status )
34272am_cv_func_iconv_works=no
34273fi
34274rm -rf conftest.dSYM
34275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34276fi
34277
34278
34279      LIBS="$am_save_LIBS"
34280
34281fi
34282{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
34283$as_echo "$am_cv_func_iconv_works" >&6; }
34284    case "$am_cv_func_iconv_works" in
34285      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
34286      *)   am_func_iconv=yes ;;
34287    esac
34288  else
34289    am_func_iconv=no am_cv_lib_iconv=no
34290  fi
34291  if test "$am_func_iconv" = yes; then
34292
34293cat >>confdefs.h <<\_ACEOF
34294#define HAVE_ICONV 1
34295_ACEOF
34296
34297  fi
34298  if test "$am_cv_lib_iconv" = yes; then
34299    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
34300$as_echo_n "checking how to link with libiconv... " >&6; }
34301    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
34302$as_echo "$LIBICONV" >&6; }
34303  else
34304            CPPFLAGS="$am_save_CPPFLAGS"
34305    LIBICONV=
34306    LTLIBICONV=
34307  fi
34308
34309
34310
34311  if test "$am_cv_func_iconv" = yes; then
34312    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
34313$as_echo_n "checking for iconv declaration... " >&6; }
34314    if test "${am_cv_proto_iconv+set}" = set; then
34315  $as_echo_n "(cached) " >&6
34316else
34317
34318      cat >conftest.$ac_ext <<_ACEOF
34319/* confdefs.h.  */
34320_ACEOF
34321cat confdefs.h >>conftest.$ac_ext
34322cat >>conftest.$ac_ext <<_ACEOF
34323/* end confdefs.h.  */
34324
34325#include <stdlib.h>
34326#include <iconv.h>
34327extern
34328#ifdef __cplusplus
34329"C"
34330#endif
34331#if defined(__STDC__) || defined(__cplusplus)
34332size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34333#else
34334size_t iconv();
34335#endif
34336
34337int
34338main ()
34339{
34340
34341  ;
34342  return 0;
34343}
34344_ACEOF
34345rm -f conftest.$ac_objext
34346if { (ac_try="$ac_compile"
34347case "(($ac_try" in
34348  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34349  *) ac_try_echo=$ac_try;;
34350esac
34351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34352$as_echo "$ac_try_echo") >&5
34353  (eval "$ac_compile") 2>conftest.er1
34354  ac_status=$?
34355  grep -v '^ *+' conftest.er1 >conftest.err
34356  rm -f conftest.er1
34357  cat conftest.err >&5
34358  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359  (exit $ac_status); } && {
34360	 test -z "$ac_c_werror_flag" ||
34361	 test ! -s conftest.err
34362       } && test -s conftest.$ac_objext; then
34363  am_cv_proto_iconv_arg1=""
34364else
34365  $as_echo "$as_me: failed program was:" >&5
34366sed 's/^/| /' conftest.$ac_ext >&5
34367
34368	am_cv_proto_iconv_arg1="const"
34369fi
34370
34371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34372      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
34373fi
34374
34375    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
34376    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
34377         }$am_cv_proto_iconv" >&5
34378$as_echo "${ac_t:-
34379         }$am_cv_proto_iconv" >&6; }
34380
34381cat >>confdefs.h <<_ACEOF
34382#define ICONV_CONST $am_cv_proto_iconv_arg1
34383_ACEOF
34384
34385  fi
34386
34387
34388
34389
34390
34391
34392  :
34393
34394
34395
34396
34397
34398
34399
34400     if test $gl_cv_have_include_next = yes; then
34401       gl_cv_next_iconv_h='<'iconv.h'>'
34402     else
34403       { $as_echo "$as_me:$LINENO: checking absolute name of <iconv.h>" >&5
34404$as_echo_n "checking absolute name of <iconv.h>... " >&6; }
34405if test "${gl_cv_next_iconv_h+set}" = set; then
34406  $as_echo_n "(cached) " >&6
34407else
34408
34409	  if test $ac_cv_header_iconv_h = yes; then
34410	    cat >conftest.$ac_ext <<_ACEOF
34411/* confdefs.h.  */
34412_ACEOF
34413cat confdefs.h >>conftest.$ac_ext
34414cat >>conftest.$ac_ext <<_ACEOF
34415/* end confdefs.h.  */
34416#include <iconv.h>
34417
34418_ACEOF
34419	    	    	    	    gl_cv_next_iconv_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34420	       sed -n '\#/iconv.h#{
34421		 s#.*"\(.*/iconv.h\)".*#\1#
34422		 s#^/[^/]#//&#
34423		 p
34424		 q
34425	       }'`'"'
34426	  else
34427	    gl_cv_next_iconv_h='<'iconv.h'>'
34428	  fi
34429
34430fi
34431{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_iconv_h" >&5
34432$as_echo "$gl_cv_next_iconv_h" >&6; }
34433     fi
34434     NEXT_ICONV_H=$gl_cv_next_iconv_h
34435
34436
34437
34438  ICONV_H=
34439
34440
34441
34442
34443
34444
34445  if test "$am_cv_func_iconv" = yes; then
34446            cat >conftest.$ac_ext <<_ACEOF
34447/* confdefs.h.  */
34448_ACEOF
34449cat confdefs.h >>conftest.$ac_ext
34450cat >>conftest.$ac_ext <<_ACEOF
34451/* end confdefs.h.  */
34452
34453      #include <iconv.h>
34454      #if defined _LIBICONV_VERSION || defined __GLIBC__
34455       gnu_iconv
34456      #endif
34457
34458_ACEOF
34459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34460  $EGREP "gnu_iconv" >/dev/null 2>&1; then
34461  gl_func_iconv_gnu=yes
34462else
34463  gl_func_iconv_gnu=no
34464fi
34465rm -f conftest*
34466
34467    if test $gl_func_iconv_gnu = no; then
34468      iconv_flavor=
34469      case "$host_os" in
34470        aix*)  iconv_flavor=ICONV_FLAVOR_AIX ;;
34471        irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
34472        hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
34473        osf*)  iconv_flavor=ICONV_FLAVOR_OSF ;;
34474      esac
34475      if test -n "$iconv_flavor"; then
34476
34477cat >>confdefs.h <<_ACEOF
34478#define ICONV_FLAVOR $iconv_flavor
34479_ACEOF
34480
34481
34482  REPLACE_ICONV_OPEN=1
34483
34484
34485
34486
34487
34488
34489
34490  gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
34491
34492  ICONV_H='iconv.h'
34493
34494      fi
34495    fi
34496  fi
34497
34498
34499  { $as_echo "$as_me:$LINENO: checking whether to use Java" >&5
34500$as_echo_n "checking whether to use Java... " >&6; }
34501  # Check whether --enable-java was given.
34502if test "${enable_java+set}" = set; then
34503  enableval=$enable_java; JAVA_CHOICE="$enableval"
34504else
34505  JAVA_CHOICE=yes
34506fi
34507
34508  { $as_echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5
34509$as_echo "$JAVA_CHOICE" >&6; }
34510  if test "$JAVA_CHOICE" = yes; then
34511    # Check whether --enable-native-java was given.
34512if test "${enable_native_java+set}" = set; then
34513  enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
34514fi
34515
34516  fi
34517
34518
34519  # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
34520  ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
34521
34522
34523
34524
34525  :
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537  if test $gl_cv_func_malloc_posix = yes; then
34538    HAVE_MALLOC_POSIX=1
34539
34540cat >>confdefs.h <<\_ACEOF
34541#define HAVE_MALLOC_POSIX 1
34542_ACEOF
34543
34544  else
34545
34546
34547
34548
34549
34550
34551
34552  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34553
34554    HAVE_MALLOC_POSIX=0
34555  fi
34556
34557
34558
34559
34560  GNULIB_MALLOC_POSIX=1
34561
34562
34563
34564
34565
34566
34567
34568
34569
34570
34571
34572  :
34573
34574
34575
34576
34577  GNULIB_MBSLEN=1
34578
34579
34580
34581
34582  :
34583
34584
34585
34586
34587  GNULIB_MBSSTR=1
34588
34589
34590
34591
34592  :
34593
34594
34595
34596
34597
34598
34599
34600
34601
34602
34603for ac_func in memchr
34604do
34605as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34606{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34607$as_echo_n "checking for $ac_func... " >&6; }
34608if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34609  $as_echo_n "(cached) " >&6
34610else
34611  cat >conftest.$ac_ext <<_ACEOF
34612/* confdefs.h.  */
34613_ACEOF
34614cat confdefs.h >>conftest.$ac_ext
34615cat >>conftest.$ac_ext <<_ACEOF
34616/* end confdefs.h.  */
34617/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34618   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34619#define $ac_func innocuous_$ac_func
34620
34621/* System header to define __stub macros and hopefully few prototypes,
34622    which can conflict with char $ac_func (); below.
34623    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34624    <limits.h> exists even on freestanding compilers.  */
34625
34626#ifdef __STDC__
34627# include <limits.h>
34628#else
34629# include <assert.h>
34630#endif
34631
34632#undef $ac_func
34633
34634/* Override any GCC internal prototype to avoid an error.
34635   Use char because int might match the return type of a GCC
34636   builtin and then its argument prototype would still apply.  */
34637#ifdef __cplusplus
34638extern "C"
34639#endif
34640char $ac_func ();
34641/* The GNU C library defines this for functions which it implements
34642    to always fail with ENOSYS.  Some functions are actually named
34643    something starting with __ and the normal name is an alias.  */
34644#if defined __stub_$ac_func || defined __stub___$ac_func
34645choke me
34646#endif
34647
34648int
34649main ()
34650{
34651return $ac_func ();
34652  ;
34653  return 0;
34654}
34655_ACEOF
34656rm -f conftest.$ac_objext conftest$ac_exeext
34657if { (ac_try="$ac_link"
34658case "(($ac_try" in
34659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34660  *) ac_try_echo=$ac_try;;
34661esac
34662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34663$as_echo "$ac_try_echo") >&5
34664  (eval "$ac_link") 2>conftest.er1
34665  ac_status=$?
34666  grep -v '^ *+' conftest.er1 >conftest.err
34667  rm -f conftest.er1
34668  cat conftest.err >&5
34669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670  (exit $ac_status); } && {
34671	 test -z "$ac_c_werror_flag" ||
34672	 test ! -s conftest.err
34673       } && test -s conftest$ac_exeext && {
34674	 test "$cross_compiling" = yes ||
34675	 $as_test_x conftest$ac_exeext
34676       }; then
34677  eval "$as_ac_var=yes"
34678else
34679  $as_echo "$as_me: failed program was:" >&5
34680sed 's/^/| /' conftest.$ac_ext >&5
34681
34682	eval "$as_ac_var=no"
34683fi
34684
34685rm -rf conftest.dSYM
34686rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34687      conftest$ac_exeext conftest.$ac_ext
34688fi
34689ac_res=`eval 'as_val=${'$as_ac_var'}
34690		 $as_echo "$as_val"'`
34691	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34692$as_echo "$ac_res" >&6; }
34693as_val=`eval 'as_val=${'$as_ac_var'}
34694		 $as_echo "$as_val"'`
34695   if test "x$as_val" = x""yes; then
34696  cat >>confdefs.h <<_ACEOF
34697#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34698_ACEOF
34699
34700else
34701
34702    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34703
34704fi
34705done
34706
34707
34708  if test $ac_cv_func_memchr = no; then
34709
34710
34711for ac_header in bp-sym.h
34712do
34713as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34715  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34716$as_echo_n "checking for $ac_header... " >&6; }
34717if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34718  $as_echo_n "(cached) " >&6
34719fi
34720ac_res=`eval 'as_val=${'$as_ac_Header'}
34721		 $as_echo "$as_val"'`
34722	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34723$as_echo "$ac_res" >&6; }
34724else
34725  # Is the header compilable?
34726{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34727$as_echo_n "checking $ac_header usability... " >&6; }
34728cat >conftest.$ac_ext <<_ACEOF
34729/* confdefs.h.  */
34730_ACEOF
34731cat confdefs.h >>conftest.$ac_ext
34732cat >>conftest.$ac_ext <<_ACEOF
34733/* end confdefs.h.  */
34734$ac_includes_default
34735#include <$ac_header>
34736_ACEOF
34737rm -f conftest.$ac_objext
34738if { (ac_try="$ac_compile"
34739case "(($ac_try" in
34740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34741  *) ac_try_echo=$ac_try;;
34742esac
34743eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34744$as_echo "$ac_try_echo") >&5
34745  (eval "$ac_compile") 2>conftest.er1
34746  ac_status=$?
34747  grep -v '^ *+' conftest.er1 >conftest.err
34748  rm -f conftest.er1
34749  cat conftest.err >&5
34750  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34751  (exit $ac_status); } && {
34752	 test -z "$ac_c_werror_flag" ||
34753	 test ! -s conftest.err
34754       } && test -s conftest.$ac_objext; then
34755  ac_header_compiler=yes
34756else
34757  $as_echo "$as_me: failed program was:" >&5
34758sed 's/^/| /' conftest.$ac_ext >&5
34759
34760	ac_header_compiler=no
34761fi
34762
34763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34764{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34765$as_echo "$ac_header_compiler" >&6; }
34766
34767# Is the header present?
34768{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34769$as_echo_n "checking $ac_header presence... " >&6; }
34770cat >conftest.$ac_ext <<_ACEOF
34771/* confdefs.h.  */
34772_ACEOF
34773cat confdefs.h >>conftest.$ac_ext
34774cat >>conftest.$ac_ext <<_ACEOF
34775/* end confdefs.h.  */
34776#include <$ac_header>
34777_ACEOF
34778if { (ac_try="$ac_cpp conftest.$ac_ext"
34779case "(($ac_try" in
34780  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34781  *) ac_try_echo=$ac_try;;
34782esac
34783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34784$as_echo "$ac_try_echo") >&5
34785  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34786  ac_status=$?
34787  grep -v '^ *+' conftest.er1 >conftest.err
34788  rm -f conftest.er1
34789  cat conftest.err >&5
34790  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791  (exit $ac_status); } >/dev/null && {
34792	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34793	 test ! -s conftest.err
34794       }; then
34795  ac_header_preproc=yes
34796else
34797  $as_echo "$as_me: failed program was:" >&5
34798sed 's/^/| /' conftest.$ac_ext >&5
34799
34800  ac_header_preproc=no
34801fi
34802
34803rm -f conftest.err conftest.$ac_ext
34804{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34805$as_echo "$ac_header_preproc" >&6; }
34806
34807# So?  What about this header?
34808case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34809  yes:no: )
34810    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34811$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34812    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34813$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34814    ac_header_preproc=yes
34815    ;;
34816  no:yes:* )
34817    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34818$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34819    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34820$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34821    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34822$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34823    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34824$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34825    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34826$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34827    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34828$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34829
34830    ;;
34831esac
34832{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34833$as_echo_n "checking for $ac_header... " >&6; }
34834if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34835  $as_echo_n "(cached) " >&6
34836else
34837  eval "$as_ac_Header=\$ac_header_preproc"
34838fi
34839ac_res=`eval 'as_val=${'$as_ac_Header'}
34840		 $as_echo "$as_val"'`
34841	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34842$as_echo "$ac_res" >&6; }
34843
34844fi
34845as_val=`eval 'as_val=${'$as_ac_Header'}
34846		 $as_echo "$as_val"'`
34847   if test "x$as_val" = x""yes; then
34848  cat >>confdefs.h <<_ACEOF
34849#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34850_ACEOF
34851
34852fi
34853
34854done
34855
34856
34857  fi
34858
34859
34860
34861
34862
34863
34864
34865
34866
34867
34868for ac_func in memmove
34869do
34870as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34871{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34872$as_echo_n "checking for $ac_func... " >&6; }
34873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34874  $as_echo_n "(cached) " >&6
34875else
34876  cat >conftest.$ac_ext <<_ACEOF
34877/* confdefs.h.  */
34878_ACEOF
34879cat confdefs.h >>conftest.$ac_ext
34880cat >>conftest.$ac_ext <<_ACEOF
34881/* end confdefs.h.  */
34882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34883   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34884#define $ac_func innocuous_$ac_func
34885
34886/* System header to define __stub macros and hopefully few prototypes,
34887    which can conflict with char $ac_func (); below.
34888    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34889    <limits.h> exists even on freestanding compilers.  */
34890
34891#ifdef __STDC__
34892# include <limits.h>
34893#else
34894# include <assert.h>
34895#endif
34896
34897#undef $ac_func
34898
34899/* Override any GCC internal prototype to avoid an error.
34900   Use char because int might match the return type of a GCC
34901   builtin and then its argument prototype would still apply.  */
34902#ifdef __cplusplus
34903extern "C"
34904#endif
34905char $ac_func ();
34906/* The GNU C library defines this for functions which it implements
34907    to always fail with ENOSYS.  Some functions are actually named
34908    something starting with __ and the normal name is an alias.  */
34909#if defined __stub_$ac_func || defined __stub___$ac_func
34910choke me
34911#endif
34912
34913int
34914main ()
34915{
34916return $ac_func ();
34917  ;
34918  return 0;
34919}
34920_ACEOF
34921rm -f conftest.$ac_objext conftest$ac_exeext
34922if { (ac_try="$ac_link"
34923case "(($ac_try" in
34924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34925  *) ac_try_echo=$ac_try;;
34926esac
34927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34928$as_echo "$ac_try_echo") >&5
34929  (eval "$ac_link") 2>conftest.er1
34930  ac_status=$?
34931  grep -v '^ *+' conftest.er1 >conftest.err
34932  rm -f conftest.er1
34933  cat conftest.err >&5
34934  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935  (exit $ac_status); } && {
34936	 test -z "$ac_c_werror_flag" ||
34937	 test ! -s conftest.err
34938       } && test -s conftest$ac_exeext && {
34939	 test "$cross_compiling" = yes ||
34940	 $as_test_x conftest$ac_exeext
34941       }; then
34942  eval "$as_ac_var=yes"
34943else
34944  $as_echo "$as_me: failed program was:" >&5
34945sed 's/^/| /' conftest.$ac_ext >&5
34946
34947	eval "$as_ac_var=no"
34948fi
34949
34950rm -rf conftest.dSYM
34951rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34952      conftest$ac_exeext conftest.$ac_ext
34953fi
34954ac_res=`eval 'as_val=${'$as_ac_var'}
34955		 $as_echo "$as_val"'`
34956	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34957$as_echo "$ac_res" >&6; }
34958as_val=`eval 'as_val=${'$as_ac_var'}
34959		 $as_echo "$as_val"'`
34960   if test "x$as_val" = x""yes; then
34961  cat >>confdefs.h <<_ACEOF
34962#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34963_ACEOF
34964
34965else
34966
34967    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34968
34969fi
34970done
34971
34972
34973  if test $ac_cv_func_memmove = no; then
34974
34975  :
34976
34977  fi
34978
34979
34980
34981  :
34982
34983
34984
34985
34986
34987
34988
34989
34990
34991  :
34992
34993
34994
34995
34996
34997  if test $ac_cv_func_readlink = no; then
34998    HAVE_READLINK=0
34999
35000
35001
35002
35003
35004
35005
35006  gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
35007
35008
35009  :
35010
35011  fi
35012
35013
35014
35015  GNULIB_READLINK=1
35016
35017
35018
35019
35020
35021  if test $RELOCATABLE = yes; then
35022
35023
35024
35025
35026
35027
35028
35029  gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
35030
35031  fi
35032
35033  if test $RELOCATABLE = yes; then
35034
35035
35036
35037
35038
35039
35040
35041  gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
35042
35043  fi
35044  : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
35045  RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
35046  RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
35047
35048
35049
35050  :
35051
35052
35053
35054
35055
35056
35057  :
35058
35059
35060
35061
35062  :
35063
35064
35065
35066
35067
35068
35069  :
35070
35071
35072
35073
35074
35075
35076
35077  :
35078
35079
35080
35081
35082
35083
35084
35085
35086
35087  :
35088
35089
35090
35091
35092
35093
35094
35095
35096
35097
35098
35099
35100
35101
35102
35103
35104
35105
35106
35107  :
35108
35109
35110
35111
35112
35113
35114
35115
35116  :
35117
35118
35119
35120
35121
35122
35123for ac_header in search.h
35124do
35125as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35126if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35127  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35128$as_echo_n "checking for $ac_header... " >&6; }
35129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35130  $as_echo_n "(cached) " >&6
35131fi
35132ac_res=`eval 'as_val=${'$as_ac_Header'}
35133		 $as_echo "$as_val"'`
35134	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35135$as_echo "$ac_res" >&6; }
35136else
35137  # Is the header compilable?
35138{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35139$as_echo_n "checking $ac_header usability... " >&6; }
35140cat >conftest.$ac_ext <<_ACEOF
35141/* confdefs.h.  */
35142_ACEOF
35143cat confdefs.h >>conftest.$ac_ext
35144cat >>conftest.$ac_ext <<_ACEOF
35145/* end confdefs.h.  */
35146$ac_includes_default
35147#include <$ac_header>
35148_ACEOF
35149rm -f conftest.$ac_objext
35150if { (ac_try="$ac_compile"
35151case "(($ac_try" in
35152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35153  *) ac_try_echo=$ac_try;;
35154esac
35155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35156$as_echo "$ac_try_echo") >&5
35157  (eval "$ac_compile") 2>conftest.er1
35158  ac_status=$?
35159  grep -v '^ *+' conftest.er1 >conftest.err
35160  rm -f conftest.er1
35161  cat conftest.err >&5
35162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163  (exit $ac_status); } && {
35164	 test -z "$ac_c_werror_flag" ||
35165	 test ! -s conftest.err
35166       } && test -s conftest.$ac_objext; then
35167  ac_header_compiler=yes
35168else
35169  $as_echo "$as_me: failed program was:" >&5
35170sed 's/^/| /' conftest.$ac_ext >&5
35171
35172	ac_header_compiler=no
35173fi
35174
35175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35176{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35177$as_echo "$ac_header_compiler" >&6; }
35178
35179# Is the header present?
35180{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35181$as_echo_n "checking $ac_header presence... " >&6; }
35182cat >conftest.$ac_ext <<_ACEOF
35183/* confdefs.h.  */
35184_ACEOF
35185cat confdefs.h >>conftest.$ac_ext
35186cat >>conftest.$ac_ext <<_ACEOF
35187/* end confdefs.h.  */
35188#include <$ac_header>
35189_ACEOF
35190if { (ac_try="$ac_cpp conftest.$ac_ext"
35191case "(($ac_try" in
35192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35193  *) ac_try_echo=$ac_try;;
35194esac
35195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35196$as_echo "$ac_try_echo") >&5
35197  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35198  ac_status=$?
35199  grep -v '^ *+' conftest.er1 >conftest.err
35200  rm -f conftest.er1
35201  cat conftest.err >&5
35202  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35203  (exit $ac_status); } >/dev/null && {
35204	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35205	 test ! -s conftest.err
35206       }; then
35207  ac_header_preproc=yes
35208else
35209  $as_echo "$as_me: failed program was:" >&5
35210sed 's/^/| /' conftest.$ac_ext >&5
35211
35212  ac_header_preproc=no
35213fi
35214
35215rm -f conftest.err conftest.$ac_ext
35216{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35217$as_echo "$ac_header_preproc" >&6; }
35218
35219# So?  What about this header?
35220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35221  yes:no: )
35222    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35223$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35224    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35225$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35226    ac_header_preproc=yes
35227    ;;
35228  no:yes:* )
35229    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35230$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35231    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35232$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35233    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35234$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35235    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35236$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35237    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35238$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35239    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35240$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35241
35242    ;;
35243esac
35244{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35245$as_echo_n "checking for $ac_header... " >&6; }
35246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35247  $as_echo_n "(cached) " >&6
35248else
35249  eval "$as_ac_Header=\$ac_header_preproc"
35250fi
35251ac_res=`eval 'as_val=${'$as_ac_Header'}
35252		 $as_echo "$as_val"'`
35253	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35254$as_echo "$ac_res" >&6; }
35255
35256fi
35257as_val=`eval 'as_val=${'$as_ac_Header'}
35258		 $as_echo "$as_val"'`
35259   if test "x$as_val" = x""yes; then
35260  cat >>confdefs.h <<_ACEOF
35261#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35262_ACEOF
35263
35264fi
35265
35266done
35267
35268
35269for ac_func in tsearch
35270do
35271as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35272{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35273$as_echo_n "checking for $ac_func... " >&6; }
35274if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35275  $as_echo_n "(cached) " >&6
35276else
35277  cat >conftest.$ac_ext <<_ACEOF
35278/* confdefs.h.  */
35279_ACEOF
35280cat confdefs.h >>conftest.$ac_ext
35281cat >>conftest.$ac_ext <<_ACEOF
35282/* end confdefs.h.  */
35283/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35284   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35285#define $ac_func innocuous_$ac_func
35286
35287/* System header to define __stub macros and hopefully few prototypes,
35288    which can conflict with char $ac_func (); below.
35289    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35290    <limits.h> exists even on freestanding compilers.  */
35291
35292#ifdef __STDC__
35293# include <limits.h>
35294#else
35295# include <assert.h>
35296#endif
35297
35298#undef $ac_func
35299
35300/* Override any GCC internal prototype to avoid an error.
35301   Use char because int might match the return type of a GCC
35302   builtin and then its argument prototype would still apply.  */
35303#ifdef __cplusplus
35304extern "C"
35305#endif
35306char $ac_func ();
35307/* The GNU C library defines this for functions which it implements
35308    to always fail with ENOSYS.  Some functions are actually named
35309    something starting with __ and the normal name is an alias.  */
35310#if defined __stub_$ac_func || defined __stub___$ac_func
35311choke me
35312#endif
35313
35314int
35315main ()
35316{
35317return $ac_func ();
35318  ;
35319  return 0;
35320}
35321_ACEOF
35322rm -f conftest.$ac_objext conftest$ac_exeext
35323if { (ac_try="$ac_link"
35324case "(($ac_try" in
35325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35326  *) ac_try_echo=$ac_try;;
35327esac
35328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35329$as_echo "$ac_try_echo") >&5
35330  (eval "$ac_link") 2>conftest.er1
35331  ac_status=$?
35332  grep -v '^ *+' conftest.er1 >conftest.err
35333  rm -f conftest.er1
35334  cat conftest.err >&5
35335  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35336  (exit $ac_status); } && {
35337	 test -z "$ac_c_werror_flag" ||
35338	 test ! -s conftest.err
35339       } && test -s conftest$ac_exeext && {
35340	 test "$cross_compiling" = yes ||
35341	 $as_test_x conftest$ac_exeext
35342       }; then
35343  eval "$as_ac_var=yes"
35344else
35345  $as_echo "$as_me: failed program was:" >&5
35346sed 's/^/| /' conftest.$ac_ext >&5
35347
35348	eval "$as_ac_var=no"
35349fi
35350
35351rm -rf conftest.dSYM
35352rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35353      conftest$ac_exeext conftest.$ac_ext
35354fi
35355ac_res=`eval 'as_val=${'$as_ac_var'}
35356		 $as_echo "$as_val"'`
35357	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35358$as_echo "$ac_res" >&6; }
35359as_val=`eval 'as_val=${'$as_ac_var'}
35360		 $as_echo "$as_val"'`
35361   if test "x$as_val" = x""yes; then
35362  cat >>confdefs.h <<_ACEOF
35363#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35364_ACEOF
35365
35366fi
35367done
35368
35369
35370
35371  { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
35372$as_echo_n "checking if environ is properly declared... " >&6; }
35373  if test "${gt_cv_var_environ_declaration+set}" = set; then
35374  $as_echo_n "(cached) " >&6
35375else
35376
35377    cat >conftest.$ac_ext <<_ACEOF
35378/* confdefs.h.  */
35379_ACEOF
35380cat confdefs.h >>conftest.$ac_ext
35381cat >>conftest.$ac_ext <<_ACEOF
35382/* end confdefs.h.  */
35383#include <unistd.h>
35384      extern struct { int foo; } environ;
35385int
35386main ()
35387{
35388environ.foo = 1;
35389  ;
35390  return 0;
35391}
35392_ACEOF
35393rm -f conftest.$ac_objext
35394if { (ac_try="$ac_compile"
35395case "(($ac_try" in
35396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35397  *) ac_try_echo=$ac_try;;
35398esac
35399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35400$as_echo "$ac_try_echo") >&5
35401  (eval "$ac_compile") 2>conftest.er1
35402  ac_status=$?
35403  grep -v '^ *+' conftest.er1 >conftest.err
35404  rm -f conftest.er1
35405  cat conftest.err >&5
35406  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407  (exit $ac_status); } && {
35408	 test -z "$ac_c_werror_flag" ||
35409	 test ! -s conftest.err
35410       } && test -s conftest.$ac_objext; then
35411  gt_cv_var_environ_declaration=no
35412else
35413  $as_echo "$as_me: failed program was:" >&5
35414sed 's/^/| /' conftest.$ac_ext >&5
35415
35416	gt_cv_var_environ_declaration=yes
35417fi
35418
35419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35420fi
35421
35422  { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
35423$as_echo "$gt_cv_var_environ_declaration" >&6; }
35424  if test $gt_cv_var_environ_declaration = yes; then
35425
35426cat >>confdefs.h <<\_ACEOF
35427#define HAVE_ENVIRON_DECL 1
35428_ACEOF
35429
35430  fi
35431
35432
35433
35434
35435  { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
35436$as_echo_n "checking for working strerror function... " >&6; }
35437if test "${gl_cv_func_working_strerror+set}" = set; then
35438  $as_echo_n "(cached) " >&6
35439else
35440  if test "$cross_compiling" = yes; then
35441         cat >conftest.$ac_ext <<_ACEOF
35442/* confdefs.h.  */
35443_ACEOF
35444cat confdefs.h >>conftest.$ac_ext
35445cat >>conftest.$ac_ext <<_ACEOF
35446/* end confdefs.h.  */
35447#include <string.h>
35448
35449int
35450main ()
35451{
35452return !*strerror (-2);
35453  ;
35454  return 0;
35455}
35456_ACEOF
35457rm -f conftest.$ac_objext
35458if { (ac_try="$ac_compile"
35459case "(($ac_try" in
35460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35461  *) ac_try_echo=$ac_try;;
35462esac
35463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35464$as_echo "$ac_try_echo") >&5
35465  (eval "$ac_compile") 2>conftest.er1
35466  ac_status=$?
35467  grep -v '^ *+' conftest.er1 >conftest.err
35468  rm -f conftest.er1
35469  cat conftest.err >&5
35470  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35471  (exit $ac_status); } && {
35472	 test -z "$ac_c_werror_flag" ||
35473	 test ! -s conftest.err
35474       } && test -s conftest.$ac_objext; then
35475  gl_cv_func_working_strerror=yes
35476else
35477  $as_echo "$as_me: failed program was:" >&5
35478sed 's/^/| /' conftest.$ac_ext >&5
35479
35480	gl_cv_func_working_strerror=no
35481fi
35482
35483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35484else
35485  cat >conftest.$ac_ext <<_ACEOF
35486/* confdefs.h.  */
35487_ACEOF
35488cat confdefs.h >>conftest.$ac_ext
35489cat >>conftest.$ac_ext <<_ACEOF
35490/* end confdefs.h.  */
35491#include <string.h>
35492
35493int
35494main ()
35495{
35496return !*strerror (-2);
35497  ;
35498  return 0;
35499}
35500_ACEOF
35501rm -f conftest$ac_exeext
35502if { (ac_try="$ac_link"
35503case "(($ac_try" in
35504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35505  *) ac_try_echo=$ac_try;;
35506esac
35507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35508$as_echo "$ac_try_echo") >&5
35509  (eval "$ac_link") 2>&5
35510  ac_status=$?
35511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35513  { (case "(($ac_try" in
35514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35515  *) ac_try_echo=$ac_try;;
35516esac
35517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35518$as_echo "$ac_try_echo") >&5
35519  (eval "$ac_try") 2>&5
35520  ac_status=$?
35521  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35522  (exit $ac_status); }; }; then
35523  gl_cv_func_working_strerror=yes
35524else
35525  $as_echo "$as_me: program exited with status $ac_status" >&5
35526$as_echo "$as_me: failed program was:" >&5
35527sed 's/^/| /' conftest.$ac_ext >&5
35528
35529( exit $ac_status )
35530gl_cv_func_working_strerror=no
35531fi
35532rm -rf conftest.dSYM
35533rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35534fi
35535
35536
35537fi
35538{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
35539$as_echo "$gl_cv_func_working_strerror" >&6; }
35540  if test $gl_cv_func_working_strerror = no ; then
35541    REPLACE_STRERROR=1
35542
35543  { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
35544$as_echo_n "checking whether strerror is declared... " >&6; }
35545if test "${ac_cv_have_decl_strerror+set}" = set; then
35546  $as_echo_n "(cached) " >&6
35547else
35548  cat >conftest.$ac_ext <<_ACEOF
35549/* confdefs.h.  */
35550_ACEOF
35551cat confdefs.h >>conftest.$ac_ext
35552cat >>conftest.$ac_ext <<_ACEOF
35553/* end confdefs.h.  */
35554$ac_includes_default
35555int
35556main ()
35557{
35558#ifndef strerror
35559  (void) strerror;
35560#endif
35561
35562  ;
35563  return 0;
35564}
35565_ACEOF
35566rm -f conftest.$ac_objext
35567if { (ac_try="$ac_compile"
35568case "(($ac_try" in
35569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35570  *) ac_try_echo=$ac_try;;
35571esac
35572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35573$as_echo "$ac_try_echo") >&5
35574  (eval "$ac_compile") 2>conftest.er1
35575  ac_status=$?
35576  grep -v '^ *+' conftest.er1 >conftest.err
35577  rm -f conftest.er1
35578  cat conftest.err >&5
35579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580  (exit $ac_status); } && {
35581	 test -z "$ac_c_werror_flag" ||
35582	 test ! -s conftest.err
35583       } && test -s conftest.$ac_objext; then
35584  ac_cv_have_decl_strerror=yes
35585else
35586  $as_echo "$as_me: failed program was:" >&5
35587sed 's/^/| /' conftest.$ac_ext >&5
35588
35589	ac_cv_have_decl_strerror=no
35590fi
35591
35592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35593fi
35594{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
35595$as_echo "$ac_cv_have_decl_strerror" >&6; }
35596if test "x$ac_cv_have_decl_strerror" = x""yes; then
35597
35598cat >>confdefs.h <<_ACEOF
35599#define HAVE_DECL_STRERROR 1
35600_ACEOF
35601
35602
35603else
35604  cat >>confdefs.h <<_ACEOF
35605#define HAVE_DECL_STRERROR 0
35606_ACEOF
35607
35608
35609fi
35610
35611
35612
35613  fi
35614
35615
35616  { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
35617$as_echo_n "checking for ssize_t... " >&6; }
35618if test "${gt_cv_ssize_t+set}" = set; then
35619  $as_echo_n "(cached) " >&6
35620else
35621  cat >conftest.$ac_ext <<_ACEOF
35622/* confdefs.h.  */
35623_ACEOF
35624cat confdefs.h >>conftest.$ac_ext
35625cat >>conftest.$ac_ext <<_ACEOF
35626/* end confdefs.h.  */
35627#include <sys/types.h>
35628int
35629main ()
35630{
35631int x = sizeof (ssize_t *) + sizeof (ssize_t);
35632        return !x;
35633  ;
35634  return 0;
35635}
35636_ACEOF
35637rm -f conftest.$ac_objext
35638if { (ac_try="$ac_compile"
35639case "(($ac_try" in
35640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35641  *) ac_try_echo=$ac_try;;
35642esac
35643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35644$as_echo "$ac_try_echo") >&5
35645  (eval "$ac_compile") 2>conftest.er1
35646  ac_status=$?
35647  grep -v '^ *+' conftest.er1 >conftest.err
35648  rm -f conftest.er1
35649  cat conftest.err >&5
35650  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651  (exit $ac_status); } && {
35652	 test -z "$ac_c_werror_flag" ||
35653	 test ! -s conftest.err
35654       } && test -s conftest.$ac_objext; then
35655  gt_cv_ssize_t=yes
35656else
35657  $as_echo "$as_me: failed program was:" >&5
35658sed 's/^/| /' conftest.$ac_ext >&5
35659
35660	gt_cv_ssize_t=no
35661fi
35662
35663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35664fi
35665{ $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
35666$as_echo "$gt_cv_ssize_t" >&6; }
35667  if test $gt_cv_ssize_t = no; then
35668
35669cat >>confdefs.h <<\_ACEOF
35670#define ssize_t int
35671_ACEOF
35672
35673  fi
35674
35675
35676
35677
35678  # Define two additional variables used in the Makefile substitution.
35679
35680  if test "$ac_cv_header_stdbool_h" = yes; then
35681    STDBOOL_H=''
35682  else
35683    STDBOOL_H='stdbool.h'
35684  fi
35685
35686
35687  if test "$ac_cv_type__Bool" = yes; then
35688    HAVE__BOOL=1
35689  else
35690    HAVE__BOOL=0
35691  fi
35692
35693
35694
35695
35696
35697  if test $ac_cv_type_long_long_int = yes; then
35698    HAVE_LONG_LONG_INT=1
35699  else
35700    HAVE_LONG_LONG_INT=0
35701  fi
35702
35703
35704  if test $ac_cv_type_unsigned_long_long_int = yes; then
35705    HAVE_UNSIGNED_LONG_LONG_INT=1
35706  else
35707    HAVE_UNSIGNED_LONG_LONG_INT=0
35708  fi
35709
35710
35711      if test $ac_cv_header_inttypes_h = yes; then
35712    HAVE_INTTYPES_H=1
35713  else
35714    HAVE_INTTYPES_H=0
35715  fi
35716
35717
35718      if test $ac_cv_header_sys_types_h = yes; then
35719    HAVE_SYS_TYPES_H=1
35720  else
35721    HAVE_SYS_TYPES_H=0
35722  fi
35723
35724
35725
35726
35727
35728  :
35729
35730
35731
35732
35733
35734
35735
35736     if test $gl_cv_have_include_next = yes; then
35737       gl_cv_next_stdint_h='<'stdint.h'>'
35738     else
35739       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
35740$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
35741if test "${gl_cv_next_stdint_h+set}" = set; then
35742  $as_echo_n "(cached) " >&6
35743else
35744
35745	  if test $ac_cv_header_stdint_h = yes; then
35746	    cat >conftest.$ac_ext <<_ACEOF
35747/* confdefs.h.  */
35748_ACEOF
35749cat confdefs.h >>conftest.$ac_ext
35750cat >>conftest.$ac_ext <<_ACEOF
35751/* end confdefs.h.  */
35752#include <stdint.h>
35753
35754_ACEOF
35755	    	    	    	    gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35756	       sed -n '\#/stdint.h#{
35757		 s#.*"\(.*/stdint.h\)".*#\1#
35758		 s#^/[^/]#//&#
35759		 p
35760		 q
35761	       }'`'"'
35762	  else
35763	    gl_cv_next_stdint_h='<'stdint.h'>'
35764	  fi
35765
35766fi
35767{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
35768$as_echo "$gl_cv_next_stdint_h" >&6; }
35769     fi
35770     NEXT_STDINT_H=$gl_cv_next_stdint_h
35771
35772
35773
35774  if test $ac_cv_header_stdint_h = yes; then
35775    HAVE_STDINT_H=1
35776  else
35777    HAVE_STDINT_H=0
35778  fi
35779
35780
35781    if test $ac_cv_header_stdint_h = yes; then
35782    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
35783$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
35784if test "${gl_cv_header_working_stdint_h+set}" = set; then
35785  $as_echo_n "(cached) " >&6
35786else
35787  gl_cv_header_working_stdint_h=no
35788       cat >conftest.$ac_ext <<_ACEOF
35789
35790         /* confdefs.h.  */
35791_ACEOF
35792cat confdefs.h >>conftest.$ac_ext
35793cat >>conftest.$ac_ext <<_ACEOF
35794/* end confdefs.h.  */
35795
35796#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
35797#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
35798#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
35799#include <stdint.h>
35800/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
35801#if !(defined WCHAR_MIN && defined WCHAR_MAX)
35802#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
35803#endif
35804
35805
35806  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35807     included before <wchar.h>.  */
35808  #include <stddef.h>
35809  #include <signal.h>
35810  #if HAVE_WCHAR_H
35811  # include <stdio.h>
35812  # include <time.h>
35813  # include <wchar.h>
35814  #endif
35815
35816
35817#ifdef INT8_MAX
35818int8_t a1 = INT8_MAX;
35819int8_t a1min = INT8_MIN;
35820#endif
35821#ifdef INT16_MAX
35822int16_t a2 = INT16_MAX;
35823int16_t a2min = INT16_MIN;
35824#endif
35825#ifdef INT32_MAX
35826int32_t a3 = INT32_MAX;
35827int32_t a3min = INT32_MIN;
35828#endif
35829#ifdef INT64_MAX
35830int64_t a4 = INT64_MAX;
35831int64_t a4min = INT64_MIN;
35832#endif
35833#ifdef UINT8_MAX
35834uint8_t b1 = UINT8_MAX;
35835#else
35836typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
35837#endif
35838#ifdef UINT16_MAX
35839uint16_t b2 = UINT16_MAX;
35840#endif
35841#ifdef UINT32_MAX
35842uint32_t b3 = UINT32_MAX;
35843#endif
35844#ifdef UINT64_MAX
35845uint64_t b4 = UINT64_MAX;
35846#endif
35847int_least8_t c1 = INT8_C (0x7f);
35848int_least8_t c1max = INT_LEAST8_MAX;
35849int_least8_t c1min = INT_LEAST8_MIN;
35850int_least16_t c2 = INT16_C (0x7fff);
35851int_least16_t c2max = INT_LEAST16_MAX;
35852int_least16_t c2min = INT_LEAST16_MIN;
35853int_least32_t c3 = INT32_C (0x7fffffff);
35854int_least32_t c3max = INT_LEAST32_MAX;
35855int_least32_t c3min = INT_LEAST32_MIN;
35856int_least64_t c4 = INT64_C (0x7fffffffffffffff);
35857int_least64_t c4max = INT_LEAST64_MAX;
35858int_least64_t c4min = INT_LEAST64_MIN;
35859uint_least8_t d1 = UINT8_C (0xff);
35860uint_least8_t d1max = UINT_LEAST8_MAX;
35861uint_least16_t d2 = UINT16_C (0xffff);
35862uint_least16_t d2max = UINT_LEAST16_MAX;
35863uint_least32_t d3 = UINT32_C (0xffffffff);
35864uint_least32_t d3max = UINT_LEAST32_MAX;
35865uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
35866uint_least64_t d4max = UINT_LEAST64_MAX;
35867int_fast8_t e1 = INT_FAST8_MAX;
35868int_fast8_t e1min = INT_FAST8_MIN;
35869int_fast16_t e2 = INT_FAST16_MAX;
35870int_fast16_t e2min = INT_FAST16_MIN;
35871int_fast32_t e3 = INT_FAST32_MAX;
35872int_fast32_t e3min = INT_FAST32_MIN;
35873int_fast64_t e4 = INT_FAST64_MAX;
35874int_fast64_t e4min = INT_FAST64_MIN;
35875uint_fast8_t f1 = UINT_FAST8_MAX;
35876uint_fast16_t f2 = UINT_FAST16_MAX;
35877uint_fast32_t f3 = UINT_FAST32_MAX;
35878uint_fast64_t f4 = UINT_FAST64_MAX;
35879#ifdef INTPTR_MAX
35880intptr_t g = INTPTR_MAX;
35881intptr_t gmin = INTPTR_MIN;
35882#endif
35883#ifdef UINTPTR_MAX
35884uintptr_t h = UINTPTR_MAX;
35885#endif
35886intmax_t i = INTMAX_MAX;
35887uintmax_t j = UINTMAX_MAX;
35888
35889#include <limits.h> /* for CHAR_BIT */
35890#define TYPE_MINIMUM(t) \
35891  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
35892#define TYPE_MAXIMUM(t) \
35893  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
35894struct s {
35895  int check_PTRDIFF:
35896      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
35897      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
35898      ? 1 : -1;
35899  /* Detect bug in FreeBSD 6.0 / ia64.  */
35900  int check_SIG_ATOMIC:
35901      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
35902      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
35903      ? 1 : -1;
35904  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
35905  int check_WCHAR:
35906      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
35907      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
35908      ? 1 : -1;
35909  /* Detect bug in mingw.  */
35910  int check_WINT:
35911      WINT_MIN == TYPE_MINIMUM (wint_t)
35912      && WINT_MAX == TYPE_MAXIMUM (wint_t)
35913      ? 1 : -1;
35914
35915  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
35916  int check_UINT8_C:
35917        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
35918  int check_UINT16_C:
35919        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
35920
35921  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
35922#ifdef UINT8_MAX
35923  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
35924#endif
35925#ifdef UINT16_MAX
35926  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
35927#endif
35928#ifdef UINT32_MAX
35929  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
35930#endif
35931#ifdef UINT64_MAX
35932  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
35933#endif
35934  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
35935  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
35936  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
35937  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
35938  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
35939  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
35940  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
35941  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
35942  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
35943  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
35944  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
35945};
35946
35947int
35948main ()
35949{
35950
35951  ;
35952  return 0;
35953}
35954_ACEOF
35955rm -f conftest.$ac_objext
35956if { (ac_try="$ac_compile"
35957case "(($ac_try" in
35958  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35959  *) ac_try_echo=$ac_try;;
35960esac
35961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35962$as_echo "$ac_try_echo") >&5
35963  (eval "$ac_compile") 2>conftest.er1
35964  ac_status=$?
35965  grep -v '^ *+' conftest.er1 >conftest.err
35966  rm -f conftest.er1
35967  cat conftest.err >&5
35968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35969  (exit $ac_status); } && {
35970	 test -z "$ac_c_werror_flag" ||
35971	 test ! -s conftest.err
35972       } && test -s conftest.$ac_objext; then
35973  gl_cv_header_working_stdint_h=yes
35974else
35975  $as_echo "$as_me: failed program was:" >&5
35976sed 's/^/| /' conftest.$ac_ext >&5
35977
35978
35979fi
35980
35981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35982fi
35983{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
35984$as_echo "$gl_cv_header_working_stdint_h" >&6; }
35985  fi
35986  if test "$gl_cv_header_working_stdint_h" = yes; then
35987    STDINT_H=
35988  else
35989
35990
35991for ac_header in sys/inttypes.h sys/bitypes.h
35992do
35993as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35994if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35995  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35996$as_echo_n "checking for $ac_header... " >&6; }
35997if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35998  $as_echo_n "(cached) " >&6
35999fi
36000ac_res=`eval 'as_val=${'$as_ac_Header'}
36001		 $as_echo "$as_val"'`
36002	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36003$as_echo "$ac_res" >&6; }
36004else
36005  # Is the header compilable?
36006{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36007$as_echo_n "checking $ac_header usability... " >&6; }
36008cat >conftest.$ac_ext <<_ACEOF
36009/* confdefs.h.  */
36010_ACEOF
36011cat confdefs.h >>conftest.$ac_ext
36012cat >>conftest.$ac_ext <<_ACEOF
36013/* end confdefs.h.  */
36014$ac_includes_default
36015#include <$ac_header>
36016_ACEOF
36017rm -f conftest.$ac_objext
36018if { (ac_try="$ac_compile"
36019case "(($ac_try" in
36020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36021  *) ac_try_echo=$ac_try;;
36022esac
36023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36024$as_echo "$ac_try_echo") >&5
36025  (eval "$ac_compile") 2>conftest.er1
36026  ac_status=$?
36027  grep -v '^ *+' conftest.er1 >conftest.err
36028  rm -f conftest.er1
36029  cat conftest.err >&5
36030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031  (exit $ac_status); } && {
36032	 test -z "$ac_c_werror_flag" ||
36033	 test ! -s conftest.err
36034       } && test -s conftest.$ac_objext; then
36035  ac_header_compiler=yes
36036else
36037  $as_echo "$as_me: failed program was:" >&5
36038sed 's/^/| /' conftest.$ac_ext >&5
36039
36040	ac_header_compiler=no
36041fi
36042
36043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36044{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36045$as_echo "$ac_header_compiler" >&6; }
36046
36047# Is the header present?
36048{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36049$as_echo_n "checking $ac_header presence... " >&6; }
36050cat >conftest.$ac_ext <<_ACEOF
36051/* confdefs.h.  */
36052_ACEOF
36053cat confdefs.h >>conftest.$ac_ext
36054cat >>conftest.$ac_ext <<_ACEOF
36055/* end confdefs.h.  */
36056#include <$ac_header>
36057_ACEOF
36058if { (ac_try="$ac_cpp conftest.$ac_ext"
36059case "(($ac_try" in
36060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36061  *) ac_try_echo=$ac_try;;
36062esac
36063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36064$as_echo "$ac_try_echo") >&5
36065  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36066  ac_status=$?
36067  grep -v '^ *+' conftest.er1 >conftest.err
36068  rm -f conftest.er1
36069  cat conftest.err >&5
36070  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071  (exit $ac_status); } >/dev/null && {
36072	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36073	 test ! -s conftest.err
36074       }; then
36075  ac_header_preproc=yes
36076else
36077  $as_echo "$as_me: failed program was:" >&5
36078sed 's/^/| /' conftest.$ac_ext >&5
36079
36080  ac_header_preproc=no
36081fi
36082
36083rm -f conftest.err conftest.$ac_ext
36084{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36085$as_echo "$ac_header_preproc" >&6; }
36086
36087# So?  What about this header?
36088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36089  yes:no: )
36090    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36091$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36092    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36093$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36094    ac_header_preproc=yes
36095    ;;
36096  no:yes:* )
36097    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36098$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36099    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36100$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36101    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36102$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36103    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36104$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36105    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36106$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36107    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36108$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36109
36110    ;;
36111esac
36112{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36113$as_echo_n "checking for $ac_header... " >&6; }
36114if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36115  $as_echo_n "(cached) " >&6
36116else
36117  eval "$as_ac_Header=\$ac_header_preproc"
36118fi
36119ac_res=`eval 'as_val=${'$as_ac_Header'}
36120		 $as_echo "$as_val"'`
36121	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36122$as_echo "$ac_res" >&6; }
36123
36124fi
36125as_val=`eval 'as_val=${'$as_ac_Header'}
36126		 $as_echo "$as_val"'`
36127   if test "x$as_val" = x""yes; then
36128  cat >>confdefs.h <<_ACEOF
36129#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36130_ACEOF
36131
36132fi
36133
36134done
36135
36136    if test $ac_cv_header_sys_inttypes_h = yes; then
36137      HAVE_SYS_INTTYPES_H=1
36138    else
36139      HAVE_SYS_INTTYPES_H=0
36140    fi
36141
36142    if test $ac_cv_header_sys_bitypes_h = yes; then
36143      HAVE_SYS_BITYPES_H=1
36144    else
36145      HAVE_SYS_BITYPES_H=0
36146    fi
36147
36148
36149
36150  :
36151
36152
36153
36154
36155
36156
36157
36158
36159
36160
36161
36162
36163
36164
36165  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
36166    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
36167$as_echo_n "checking for bit size of $gltype... " >&6; }
36168if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
36169  $as_echo_n "(cached) " >&6
36170else
36171  if test "$cross_compiling" = yes; then
36172  # Depending upon the size, compute the lo and hi bounds.
36173cat >conftest.$ac_ext <<_ACEOF
36174/* confdefs.h.  */
36175_ACEOF
36176cat confdefs.h >>conftest.$ac_ext
36177cat >>conftest.$ac_ext <<_ACEOF
36178/* end confdefs.h.  */
36179
36180  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36181     included before <wchar.h>.  */
36182  #include <stddef.h>
36183  #include <signal.h>
36184  #if HAVE_WCHAR_H
36185  # include <stdio.h>
36186  # include <time.h>
36187  # include <wchar.h>
36188  #endif
36189
36190#include <limits.h>
36191int
36192main ()
36193{
36194static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
36195test_array [0] = 0
36196
36197  ;
36198  return 0;
36199}
36200_ACEOF
36201rm -f conftest.$ac_objext
36202if { (ac_try="$ac_compile"
36203case "(($ac_try" in
36204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36205  *) ac_try_echo=$ac_try;;
36206esac
36207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36208$as_echo "$ac_try_echo") >&5
36209  (eval "$ac_compile") 2>conftest.er1
36210  ac_status=$?
36211  grep -v '^ *+' conftest.er1 >conftest.err
36212  rm -f conftest.er1
36213  cat conftest.err >&5
36214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215  (exit $ac_status); } && {
36216	 test -z "$ac_c_werror_flag" ||
36217	 test ! -s conftest.err
36218       } && test -s conftest.$ac_objext; then
36219  ac_lo=0 ac_mid=0
36220  while :; do
36221    cat >conftest.$ac_ext <<_ACEOF
36222/* confdefs.h.  */
36223_ACEOF
36224cat confdefs.h >>conftest.$ac_ext
36225cat >>conftest.$ac_ext <<_ACEOF
36226/* end confdefs.h.  */
36227
36228  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36229     included before <wchar.h>.  */
36230  #include <stddef.h>
36231  #include <signal.h>
36232  #if HAVE_WCHAR_H
36233  # include <stdio.h>
36234  # include <time.h>
36235  # include <wchar.h>
36236  #endif
36237
36238#include <limits.h>
36239int
36240main ()
36241{
36242static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
36243test_array [0] = 0
36244
36245  ;
36246  return 0;
36247}
36248_ACEOF
36249rm -f conftest.$ac_objext
36250if { (ac_try="$ac_compile"
36251case "(($ac_try" in
36252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36253  *) ac_try_echo=$ac_try;;
36254esac
36255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36256$as_echo "$ac_try_echo") >&5
36257  (eval "$ac_compile") 2>conftest.er1
36258  ac_status=$?
36259  grep -v '^ *+' conftest.er1 >conftest.err
36260  rm -f conftest.er1
36261  cat conftest.err >&5
36262  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36263  (exit $ac_status); } && {
36264	 test -z "$ac_c_werror_flag" ||
36265	 test ! -s conftest.err
36266       } && test -s conftest.$ac_objext; then
36267  ac_hi=$ac_mid; break
36268else
36269  $as_echo "$as_me: failed program was:" >&5
36270sed 's/^/| /' conftest.$ac_ext >&5
36271
36272	ac_lo=`expr $ac_mid + 1`
36273			if test $ac_lo -le $ac_mid; then
36274			  ac_lo= ac_hi=
36275			  break
36276			fi
36277			ac_mid=`expr 2 '*' $ac_mid + 1`
36278fi
36279
36280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36281  done
36282else
36283  $as_echo "$as_me: failed program was:" >&5
36284sed 's/^/| /' conftest.$ac_ext >&5
36285
36286	cat >conftest.$ac_ext <<_ACEOF
36287/* confdefs.h.  */
36288_ACEOF
36289cat confdefs.h >>conftest.$ac_ext
36290cat >>conftest.$ac_ext <<_ACEOF
36291/* end confdefs.h.  */
36292
36293  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36294     included before <wchar.h>.  */
36295  #include <stddef.h>
36296  #include <signal.h>
36297  #if HAVE_WCHAR_H
36298  # include <stdio.h>
36299  # include <time.h>
36300  # include <wchar.h>
36301  #endif
36302
36303#include <limits.h>
36304int
36305main ()
36306{
36307static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
36308test_array [0] = 0
36309
36310  ;
36311  return 0;
36312}
36313_ACEOF
36314rm -f conftest.$ac_objext
36315if { (ac_try="$ac_compile"
36316case "(($ac_try" in
36317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36318  *) ac_try_echo=$ac_try;;
36319esac
36320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36321$as_echo "$ac_try_echo") >&5
36322  (eval "$ac_compile") 2>conftest.er1
36323  ac_status=$?
36324  grep -v '^ *+' conftest.er1 >conftest.err
36325  rm -f conftest.er1
36326  cat conftest.err >&5
36327  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36328  (exit $ac_status); } && {
36329	 test -z "$ac_c_werror_flag" ||
36330	 test ! -s conftest.err
36331       } && test -s conftest.$ac_objext; then
36332  ac_hi=-1 ac_mid=-1
36333  while :; do
36334    cat >conftest.$ac_ext <<_ACEOF
36335/* confdefs.h.  */
36336_ACEOF
36337cat confdefs.h >>conftest.$ac_ext
36338cat >>conftest.$ac_ext <<_ACEOF
36339/* end confdefs.h.  */
36340
36341  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36342     included before <wchar.h>.  */
36343  #include <stddef.h>
36344  #include <signal.h>
36345  #if HAVE_WCHAR_H
36346  # include <stdio.h>
36347  # include <time.h>
36348  # include <wchar.h>
36349  #endif
36350
36351#include <limits.h>
36352int
36353main ()
36354{
36355static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
36356test_array [0] = 0
36357
36358  ;
36359  return 0;
36360}
36361_ACEOF
36362rm -f conftest.$ac_objext
36363if { (ac_try="$ac_compile"
36364case "(($ac_try" in
36365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36366  *) ac_try_echo=$ac_try;;
36367esac
36368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36369$as_echo "$ac_try_echo") >&5
36370  (eval "$ac_compile") 2>conftest.er1
36371  ac_status=$?
36372  grep -v '^ *+' conftest.er1 >conftest.err
36373  rm -f conftest.er1
36374  cat conftest.err >&5
36375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376  (exit $ac_status); } && {
36377	 test -z "$ac_c_werror_flag" ||
36378	 test ! -s conftest.err
36379       } && test -s conftest.$ac_objext; then
36380  ac_lo=$ac_mid; break
36381else
36382  $as_echo "$as_me: failed program was:" >&5
36383sed 's/^/| /' conftest.$ac_ext >&5
36384
36385	ac_hi=`expr '(' $ac_mid ')' - 1`
36386			if test $ac_mid -le $ac_hi; then
36387			  ac_lo= ac_hi=
36388			  break
36389			fi
36390			ac_mid=`expr 2 '*' $ac_mid`
36391fi
36392
36393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36394  done
36395else
36396  $as_echo "$as_me: failed program was:" >&5
36397sed 's/^/| /' conftest.$ac_ext >&5
36398
36399	ac_lo= ac_hi=
36400fi
36401
36402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36403fi
36404
36405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36406# Binary search between lo and hi bounds.
36407while test "x$ac_lo" != "x$ac_hi"; do
36408  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36409  cat >conftest.$ac_ext <<_ACEOF
36410/* confdefs.h.  */
36411_ACEOF
36412cat confdefs.h >>conftest.$ac_ext
36413cat >>conftest.$ac_ext <<_ACEOF
36414/* end confdefs.h.  */
36415
36416  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36417     included before <wchar.h>.  */
36418  #include <stddef.h>
36419  #include <signal.h>
36420  #if HAVE_WCHAR_H
36421  # include <stdio.h>
36422  # include <time.h>
36423  # include <wchar.h>
36424  #endif
36425
36426#include <limits.h>
36427int
36428main ()
36429{
36430static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
36431test_array [0] = 0
36432
36433  ;
36434  return 0;
36435}
36436_ACEOF
36437rm -f conftest.$ac_objext
36438if { (ac_try="$ac_compile"
36439case "(($ac_try" in
36440  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36441  *) ac_try_echo=$ac_try;;
36442esac
36443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36444$as_echo "$ac_try_echo") >&5
36445  (eval "$ac_compile") 2>conftest.er1
36446  ac_status=$?
36447  grep -v '^ *+' conftest.er1 >conftest.err
36448  rm -f conftest.er1
36449  cat conftest.err >&5
36450  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36451  (exit $ac_status); } && {
36452	 test -z "$ac_c_werror_flag" ||
36453	 test ! -s conftest.err
36454       } && test -s conftest.$ac_objext; then
36455  ac_hi=$ac_mid
36456else
36457  $as_echo "$as_me: failed program was:" >&5
36458sed 's/^/| /' conftest.$ac_ext >&5
36459
36460	ac_lo=`expr '(' $ac_mid ')' + 1`
36461fi
36462
36463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36464done
36465case $ac_lo in
36466?*) result=$ac_lo;;
36467'') result=unknown ;;
36468esac
36469else
36470  cat >conftest.$ac_ext <<_ACEOF
36471/* confdefs.h.  */
36472_ACEOF
36473cat confdefs.h >>conftest.$ac_ext
36474cat >>conftest.$ac_ext <<_ACEOF
36475/* end confdefs.h.  */
36476
36477  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36478     included before <wchar.h>.  */
36479  #include <stddef.h>
36480  #include <signal.h>
36481  #if HAVE_WCHAR_H
36482  # include <stdio.h>
36483  # include <time.h>
36484  # include <wchar.h>
36485  #endif
36486
36487#include <limits.h>
36488static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
36489static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
36490#include <stdio.h>
36491#include <stdlib.h>
36492int
36493main ()
36494{
36495
36496  FILE *f = fopen ("conftest.val", "w");
36497  if (! f)
36498    return 1;
36499  if ((sizeof ($gltype) * CHAR_BIT) < 0)
36500    {
36501      long int i = longval ();
36502      if (i != (sizeof ($gltype) * CHAR_BIT))
36503	return 1;
36504      fprintf (f, "%ld", i);
36505    }
36506  else
36507    {
36508      unsigned long int i = ulongval ();
36509      if (i != (sizeof ($gltype) * CHAR_BIT))
36510	return 1;
36511      fprintf (f, "%lu", i);
36512    }
36513  /* Do not output a trailing newline, as this causes \r\n confusion
36514     on some platforms.  */
36515  return ferror (f) || fclose (f) != 0;
36516
36517  ;
36518  return 0;
36519}
36520_ACEOF
36521rm -f conftest$ac_exeext
36522if { (ac_try="$ac_link"
36523case "(($ac_try" in
36524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525  *) ac_try_echo=$ac_try;;
36526esac
36527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36528$as_echo "$ac_try_echo") >&5
36529  (eval "$ac_link") 2>&5
36530  ac_status=$?
36531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36533  { (case "(($ac_try" in
36534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36535  *) ac_try_echo=$ac_try;;
36536esac
36537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36538$as_echo "$ac_try_echo") >&5
36539  (eval "$ac_try") 2>&5
36540  ac_status=$?
36541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36542  (exit $ac_status); }; }; then
36543  result=`cat conftest.val`
36544else
36545  $as_echo "$as_me: program exited with status $ac_status" >&5
36546$as_echo "$as_me: failed program was:" >&5
36547sed 's/^/| /' conftest.$ac_ext >&5
36548
36549( exit $ac_status )
36550result=unknown
36551fi
36552rm -rf conftest.dSYM
36553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36554fi
36555rm -f conftest.val
36556       eval gl_cv_bitsizeof_${gltype}=\$result
36557
36558fi
36559ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
36560		 $as_echo "$as_val"'`
36561	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36562$as_echo "$ac_res" >&6; }
36563    eval result=\$gl_cv_bitsizeof_${gltype}
36564    if test $result = unknown; then
36565                                                result=0
36566    fi
36567    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
36568    cat >>confdefs.h <<_ACEOF
36569#define BITSIZEOF_${GLTYPE} $result
36570_ACEOF
36571
36572    eval BITSIZEOF_${GLTYPE}=\$result
36573  done
36574
36575
36576
36577
36578
36579
36580
36581  for gltype in sig_atomic_t wchar_t wint_t ; do
36582    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
36583$as_echo_n "checking whether $gltype is signed... " >&6; }
36584if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
36585  $as_echo_n "(cached) " >&6
36586else
36587  cat >conftest.$ac_ext <<_ACEOF
36588/* confdefs.h.  */
36589_ACEOF
36590cat confdefs.h >>conftest.$ac_ext
36591cat >>conftest.$ac_ext <<_ACEOF
36592/* end confdefs.h.  */
36593
36594  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36595     included before <wchar.h>.  */
36596  #include <stddef.h>
36597  #include <signal.h>
36598  #if HAVE_WCHAR_H
36599  # include <stdio.h>
36600  # include <time.h>
36601  # include <wchar.h>
36602  #endif
36603
36604            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
36605int
36606main ()
36607{
36608
36609  ;
36610  return 0;
36611}
36612_ACEOF
36613rm -f conftest.$ac_objext
36614if { (ac_try="$ac_compile"
36615case "(($ac_try" in
36616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36617  *) ac_try_echo=$ac_try;;
36618esac
36619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36620$as_echo "$ac_try_echo") >&5
36621  (eval "$ac_compile") 2>conftest.er1
36622  ac_status=$?
36623  grep -v '^ *+' conftest.er1 >conftest.err
36624  rm -f conftest.er1
36625  cat conftest.err >&5
36626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36627  (exit $ac_status); } && {
36628	 test -z "$ac_c_werror_flag" ||
36629	 test ! -s conftest.err
36630       } && test -s conftest.$ac_objext; then
36631  result=yes
36632else
36633  $as_echo "$as_me: failed program was:" >&5
36634sed 's/^/| /' conftest.$ac_ext >&5
36635
36636	result=no
36637fi
36638
36639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36640       eval gl_cv_type_${gltype}_signed=\$result
36641
36642fi
36643ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
36644		 $as_echo "$as_val"'`
36645	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36646$as_echo "$ac_res" >&6; }
36647    eval result=\$gl_cv_type_${gltype}_signed
36648    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
36649    if test "$result" = yes; then
36650      cat >>confdefs.h <<_ACEOF
36651#define HAVE_SIGNED_${GLTYPE} 1
36652_ACEOF
36653
36654      eval HAVE_SIGNED_${GLTYPE}=1
36655    else
36656      eval HAVE_SIGNED_${GLTYPE}=0
36657    fi
36658  done
36659
36660
36661  gl_cv_type_ptrdiff_t_signed=yes
36662  gl_cv_type_size_t_signed=no
36663
36664
36665
36666
36667
36668
36669
36670  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
36671    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
36672$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
36673if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
36674  $as_echo_n "(cached) " >&6
36675else
36676  eval gl_cv_type_${gltype}_suffix=no
36677       eval result=\$gl_cv_type_${gltype}_signed
36678       if test "$result" = yes; then
36679         glsufu=
36680       else
36681         glsufu=u
36682       fi
36683       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
36684         case $glsuf in
36685           '')  gltype1='int';;
36686           l)	gltype1='long int';;
36687           ll)	gltype1='long long int';;
36688           i64)	gltype1='__int64';;
36689           u)	gltype1='unsigned int';;
36690           ul)	gltype1='unsigned long int';;
36691           ull)	gltype1='unsigned long long int';;
36692           ui64)gltype1='unsigned __int64';;
36693         esac
36694         cat >conftest.$ac_ext <<_ACEOF
36695/* confdefs.h.  */
36696_ACEOF
36697cat confdefs.h >>conftest.$ac_ext
36698cat >>conftest.$ac_ext <<_ACEOF
36699/* end confdefs.h.  */
36700
36701  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
36702     included before <wchar.h>.  */
36703  #include <stddef.h>
36704  #include <signal.h>
36705  #if HAVE_WCHAR_H
36706  # include <stdio.h>
36707  # include <time.h>
36708  # include <wchar.h>
36709  #endif
36710
36711              extern $gltype foo;
36712              extern $gltype1 foo;
36713int
36714main ()
36715{
36716
36717  ;
36718  return 0;
36719}
36720_ACEOF
36721rm -f conftest.$ac_objext
36722if { (ac_try="$ac_compile"
36723case "(($ac_try" in
36724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36725  *) ac_try_echo=$ac_try;;
36726esac
36727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36728$as_echo "$ac_try_echo") >&5
36729  (eval "$ac_compile") 2>conftest.er1
36730  ac_status=$?
36731  grep -v '^ *+' conftest.er1 >conftest.err
36732  rm -f conftest.er1
36733  cat conftest.err >&5
36734  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735  (exit $ac_status); } && {
36736	 test -z "$ac_c_werror_flag" ||
36737	 test ! -s conftest.err
36738       } && test -s conftest.$ac_objext; then
36739  eval gl_cv_type_${gltype}_suffix=\$glsuf
36740else
36741  $as_echo "$as_me: failed program was:" >&5
36742sed 's/^/| /' conftest.$ac_ext >&5
36743
36744
36745fi
36746
36747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36748         eval result=\$gl_cv_type_${gltype}_suffix
36749         test "$result" != no && break
36750       done
36751fi
36752ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
36753		 $as_echo "$as_val"'`
36754	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36755$as_echo "$ac_res" >&6; }
36756    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
36757    eval result=\$gl_cv_type_${gltype}_suffix
36758    test "$result" = no && result=
36759    eval ${GLTYPE}_SUFFIX=\$result
36760    cat >>confdefs.h <<_ACEOF
36761#define ${GLTYPE}_SUFFIX $result
36762_ACEOF
36763
36764  done
36765
36766
36767
36768    STDINT_H=stdint.h
36769  fi
36770
36771
36772
36773
36774
36775
36776
36777  :
36778
36779
36780
36781
36782
36783
36784
36785     if test $gl_cv_have_include_next = yes; then
36786       gl_cv_next_stdlib_h='<'stdlib.h'>'
36787     else
36788       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
36789$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
36790if test "${gl_cv_next_stdlib_h+set}" = set; then
36791  $as_echo_n "(cached) " >&6
36792else
36793
36794	  if test $ac_cv_header_stdlib_h = yes; then
36795	    cat >conftest.$ac_ext <<_ACEOF
36796/* confdefs.h.  */
36797_ACEOF
36798cat confdefs.h >>conftest.$ac_ext
36799cat >>conftest.$ac_ext <<_ACEOF
36800/* end confdefs.h.  */
36801#include <stdlib.h>
36802
36803_ACEOF
36804	    	    	    	    gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36805	       sed -n '\#/stdlib.h#{
36806		 s#.*"\(.*/stdlib.h\)".*#\1#
36807		 s#^/[^/]#//&#
36808		 p
36809		 q
36810	       }'`'"'
36811	  else
36812	    gl_cv_next_stdlib_h='<'stdlib.h'>'
36813	  fi
36814
36815fi
36816{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
36817$as_echo "$gl_cv_next_stdlib_h" >&6; }
36818     fi
36819     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
36820
36821
36822
36823
36824
36825
36826
36827
36828
36829
36830
36831
36832
36833
36834for ac_func in strdup
36835do
36836as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36837{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36838$as_echo_n "checking for $ac_func... " >&6; }
36839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36840  $as_echo_n "(cached) " >&6
36841else
36842  cat >conftest.$ac_ext <<_ACEOF
36843/* confdefs.h.  */
36844_ACEOF
36845cat confdefs.h >>conftest.$ac_ext
36846cat >>conftest.$ac_ext <<_ACEOF
36847/* end confdefs.h.  */
36848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36849   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36850#define $ac_func innocuous_$ac_func
36851
36852/* System header to define __stub macros and hopefully few prototypes,
36853    which can conflict with char $ac_func (); below.
36854    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36855    <limits.h> exists even on freestanding compilers.  */
36856
36857#ifdef __STDC__
36858# include <limits.h>
36859#else
36860# include <assert.h>
36861#endif
36862
36863#undef $ac_func
36864
36865/* Override any GCC internal prototype to avoid an error.
36866   Use char because int might match the return type of a GCC
36867   builtin and then its argument prototype would still apply.  */
36868#ifdef __cplusplus
36869extern "C"
36870#endif
36871char $ac_func ();
36872/* The GNU C library defines this for functions which it implements
36873    to always fail with ENOSYS.  Some functions are actually named
36874    something starting with __ and the normal name is an alias.  */
36875#if defined __stub_$ac_func || defined __stub___$ac_func
36876choke me
36877#endif
36878
36879int
36880main ()
36881{
36882return $ac_func ();
36883  ;
36884  return 0;
36885}
36886_ACEOF
36887rm -f conftest.$ac_objext conftest$ac_exeext
36888if { (ac_try="$ac_link"
36889case "(($ac_try" in
36890  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36891  *) ac_try_echo=$ac_try;;
36892esac
36893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36894$as_echo "$ac_try_echo") >&5
36895  (eval "$ac_link") 2>conftest.er1
36896  ac_status=$?
36897  grep -v '^ *+' conftest.er1 >conftest.err
36898  rm -f conftest.er1
36899  cat conftest.err >&5
36900  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36901  (exit $ac_status); } && {
36902	 test -z "$ac_c_werror_flag" ||
36903	 test ! -s conftest.err
36904       } && test -s conftest$ac_exeext && {
36905	 test "$cross_compiling" = yes ||
36906	 $as_test_x conftest$ac_exeext
36907       }; then
36908  eval "$as_ac_var=yes"
36909else
36910  $as_echo "$as_me: failed program was:" >&5
36911sed 's/^/| /' conftest.$ac_ext >&5
36912
36913	eval "$as_ac_var=no"
36914fi
36915
36916rm -rf conftest.dSYM
36917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36918      conftest$ac_exeext conftest.$ac_ext
36919fi
36920ac_res=`eval 'as_val=${'$as_ac_var'}
36921		 $as_echo "$as_val"'`
36922	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36923$as_echo "$ac_res" >&6; }
36924as_val=`eval 'as_val=${'$as_ac_var'}
36925		 $as_echo "$as_val"'`
36926   if test "x$as_val" = x""yes; then
36927  cat >>confdefs.h <<_ACEOF
36928#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36929_ACEOF
36930
36931else
36932
36933    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36934
36935fi
36936done
36937
36938
36939
36940  :
36941
36942
36943
36944
36945
36946  if test $ac_cv_have_decl_strdup = no; then
36947    HAVE_DECL_STRDUP=0
36948  fi
36949  :
36950
36951
36952
36953  GNULIB_STRDUP=1
36954
36955
36956
36957  if test $gl_cv_func_working_strerror = no; then
36958
36959
36960
36961
36962
36963
36964
36965  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
36966
36967
36968cat >>confdefs.h <<_ACEOF
36969#define REPLACE_STRERROR $REPLACE_STRERROR
36970_ACEOF
36971
36972  fi
36973
36974
36975
36976  GNULIB_STRERROR=1
36977
36978  if test $gl_cond_libtool = false; then
36979    gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
36980    gl_libdeps="$gl_libdeps $LIBICONV"
36981  fi
36982
36983
36984
36985
36986
36987
36988
36989
36990  :
36991
36992
36993
36994
36995
36996  if test $ac_cv_have_decl_strnlen = no; then
36997    HAVE_DECL_STRNLEN=0
36998  fi
36999
37000  { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
37001$as_echo_n "checking for working strnlen... " >&6; }
37002if test "${ac_cv_func_strnlen_working+set}" = set; then
37003  $as_echo_n "(cached) " >&6
37004else
37005  if test "$cross_compiling" = yes; then
37006  ac_cv_func_strnlen_working=no
37007else
37008  cat >conftest.$ac_ext <<_ACEOF
37009/* confdefs.h.  */
37010_ACEOF
37011cat confdefs.h >>conftest.$ac_ext
37012cat >>conftest.$ac_ext <<_ACEOF
37013/* end confdefs.h.  */
37014$ac_includes_default
37015int
37016main ()
37017{
37018
37019#define S "foobar"
37020#define S_LEN (sizeof S - 1)
37021
37022  /* At least one implementation is buggy: that of AIX 4.3 would
37023     give strnlen (S, 1) == 3.  */
37024
37025  int i;
37026  for (i = 0; i < S_LEN + 1; ++i)
37027    {
37028      int expected = i <= S_LEN ? i : S_LEN;
37029      if (strnlen (S, i) != expected)
37030	return 1;
37031    }
37032  return 0;
37033
37034  ;
37035  return 0;
37036}
37037_ACEOF
37038rm -f conftest$ac_exeext
37039if { (ac_try="$ac_link"
37040case "(($ac_try" in
37041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37042  *) ac_try_echo=$ac_try;;
37043esac
37044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37045$as_echo "$ac_try_echo") >&5
37046  (eval "$ac_link") 2>&5
37047  ac_status=$?
37048  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37050  { (case "(($ac_try" in
37051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37052  *) ac_try_echo=$ac_try;;
37053esac
37054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37055$as_echo "$ac_try_echo") >&5
37056  (eval "$ac_try") 2>&5
37057  ac_status=$?
37058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37059  (exit $ac_status); }; }; then
37060  ac_cv_func_strnlen_working=yes
37061else
37062  $as_echo "$as_me: program exited with status $ac_status" >&5
37063$as_echo "$as_me: failed program was:" >&5
37064sed 's/^/| /' conftest.$ac_ext >&5
37065
37066( exit $ac_status )
37067ac_cv_func_strnlen_working=no
37068fi
37069rm -rf conftest.dSYM
37070rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37071fi
37072
37073
37074fi
37075{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
37076$as_echo "$ac_cv_func_strnlen_working" >&6; }
37077test $ac_cv_func_strnlen_working = no &&
37078
37079
37080
37081
37082
37083
37084  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
37085
37086
37087  if test $ac_cv_func_strnlen_working = no; then
37088    # This is necessary because automake-1.6.1 doesn't understand
37089    # that the above use of AC_FUNC_STRNLEN means we may have to use
37090    # lib/strnlen.c.
37091    #AC_LIBOBJ(strnlen)
37092
37093cat >>confdefs.h <<\_ACEOF
37094#define strnlen rpl_strnlen
37095_ACEOF
37096
37097    :
37098  fi
37099
37100
37101
37102  GNULIB_STRNLEN=1
37103
37104
37105
37106
37107
37108
37109
37110
37111
37112
37113for ac_func in strtol
37114do
37115as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37116{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37117$as_echo_n "checking for $ac_func... " >&6; }
37118if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37119  $as_echo_n "(cached) " >&6
37120else
37121  cat >conftest.$ac_ext <<_ACEOF
37122/* confdefs.h.  */
37123_ACEOF
37124cat confdefs.h >>conftest.$ac_ext
37125cat >>conftest.$ac_ext <<_ACEOF
37126/* end confdefs.h.  */
37127/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37128   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37129#define $ac_func innocuous_$ac_func
37130
37131/* System header to define __stub macros and hopefully few prototypes,
37132    which can conflict with char $ac_func (); below.
37133    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37134    <limits.h> exists even on freestanding compilers.  */
37135
37136#ifdef __STDC__
37137# include <limits.h>
37138#else
37139# include <assert.h>
37140#endif
37141
37142#undef $ac_func
37143
37144/* Override any GCC internal prototype to avoid an error.
37145   Use char because int might match the return type of a GCC
37146   builtin and then its argument prototype would still apply.  */
37147#ifdef __cplusplus
37148extern "C"
37149#endif
37150char $ac_func ();
37151/* The GNU C library defines this for functions which it implements
37152    to always fail with ENOSYS.  Some functions are actually named
37153    something starting with __ and the normal name is an alias.  */
37154#if defined __stub_$ac_func || defined __stub___$ac_func
37155choke me
37156#endif
37157
37158int
37159main ()
37160{
37161return $ac_func ();
37162  ;
37163  return 0;
37164}
37165_ACEOF
37166rm -f conftest.$ac_objext conftest$ac_exeext
37167if { (ac_try="$ac_link"
37168case "(($ac_try" in
37169  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37170  *) ac_try_echo=$ac_try;;
37171esac
37172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37173$as_echo "$ac_try_echo") >&5
37174  (eval "$ac_link") 2>conftest.er1
37175  ac_status=$?
37176  grep -v '^ *+' conftest.er1 >conftest.err
37177  rm -f conftest.er1
37178  cat conftest.err >&5
37179  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180  (exit $ac_status); } && {
37181	 test -z "$ac_c_werror_flag" ||
37182	 test ! -s conftest.err
37183       } && test -s conftest$ac_exeext && {
37184	 test "$cross_compiling" = yes ||
37185	 $as_test_x conftest$ac_exeext
37186       }; then
37187  eval "$as_ac_var=yes"
37188else
37189  $as_echo "$as_me: failed program was:" >&5
37190sed 's/^/| /' conftest.$ac_ext >&5
37191
37192	eval "$as_ac_var=no"
37193fi
37194
37195rm -rf conftest.dSYM
37196rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37197      conftest$ac_exeext conftest.$ac_ext
37198fi
37199ac_res=`eval 'as_val=${'$as_ac_var'}
37200		 $as_echo "$as_val"'`
37201	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37202$as_echo "$ac_res" >&6; }
37203as_val=`eval 'as_val=${'$as_ac_var'}
37204		 $as_echo "$as_val"'`
37205   if test "x$as_val" = x""yes; then
37206  cat >>confdefs.h <<_ACEOF
37207#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37208_ACEOF
37209
37210else
37211
37212    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37213
37214fi
37215done
37216
37217
37218
37219
37220
37221
37222
37223
37224
37225
37226
37227
37228for ac_func in strtoul
37229do
37230as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37231{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37232$as_echo_n "checking for $ac_func... " >&6; }
37233if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37234  $as_echo_n "(cached) " >&6
37235else
37236  cat >conftest.$ac_ext <<_ACEOF
37237/* confdefs.h.  */
37238_ACEOF
37239cat confdefs.h >>conftest.$ac_ext
37240cat >>conftest.$ac_ext <<_ACEOF
37241/* end confdefs.h.  */
37242/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37243   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37244#define $ac_func innocuous_$ac_func
37245
37246/* System header to define __stub macros and hopefully few prototypes,
37247    which can conflict with char $ac_func (); below.
37248    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37249    <limits.h> exists even on freestanding compilers.  */
37250
37251#ifdef __STDC__
37252# include <limits.h>
37253#else
37254# include <assert.h>
37255#endif
37256
37257#undef $ac_func
37258
37259/* Override any GCC internal prototype to avoid an error.
37260   Use char because int might match the return type of a GCC
37261   builtin and then its argument prototype would still apply.  */
37262#ifdef __cplusplus
37263extern "C"
37264#endif
37265char $ac_func ();
37266/* The GNU C library defines this for functions which it implements
37267    to always fail with ENOSYS.  Some functions are actually named
37268    something starting with __ and the normal name is an alias.  */
37269#if defined __stub_$ac_func || defined __stub___$ac_func
37270choke me
37271#endif
37272
37273int
37274main ()
37275{
37276return $ac_func ();
37277  ;
37278  return 0;
37279}
37280_ACEOF
37281rm -f conftest.$ac_objext conftest$ac_exeext
37282if { (ac_try="$ac_link"
37283case "(($ac_try" in
37284  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37285  *) ac_try_echo=$ac_try;;
37286esac
37287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37288$as_echo "$ac_try_echo") >&5
37289  (eval "$ac_link") 2>conftest.er1
37290  ac_status=$?
37291  grep -v '^ *+' conftest.er1 >conftest.err
37292  rm -f conftest.er1
37293  cat conftest.err >&5
37294  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37295  (exit $ac_status); } && {
37296	 test -z "$ac_c_werror_flag" ||
37297	 test ! -s conftest.err
37298       } && test -s conftest$ac_exeext && {
37299	 test "$cross_compiling" = yes ||
37300	 $as_test_x conftest$ac_exeext
37301       }; then
37302  eval "$as_ac_var=yes"
37303else
37304  $as_echo "$as_me: failed program was:" >&5
37305sed 's/^/| /' conftest.$ac_ext >&5
37306
37307	eval "$as_ac_var=no"
37308fi
37309
37310rm -rf conftest.dSYM
37311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37312      conftest$ac_exeext conftest.$ac_ext
37313fi
37314ac_res=`eval 'as_val=${'$as_ac_var'}
37315		 $as_echo "$as_val"'`
37316	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37317$as_echo "$ac_res" >&6; }
37318as_val=`eval 'as_val=${'$as_ac_var'}
37319		 $as_echo "$as_val"'`
37320   if test "x$as_val" = x""yes; then
37321  cat >>confdefs.h <<_ACEOF
37322#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37323_ACEOF
37324
37325else
37326
37327    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37328
37329fi
37330done
37331
37332
37333
37334
37335
37336
37337
37338
37339
37340  :
37341
37342
37343
37344
37345
37346
37347
37348     if test $gl_cv_have_include_next = yes; then
37349       gl_cv_next_unistd_h='<'unistd.h'>'
37350     else
37351       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
37352$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
37353if test "${gl_cv_next_unistd_h+set}" = set; then
37354  $as_echo_n "(cached) " >&6
37355else
37356
37357	  if test $ac_cv_header_unistd_h = yes; then
37358	    cat >conftest.$ac_ext <<_ACEOF
37359/* confdefs.h.  */
37360_ACEOF
37361cat confdefs.h >>conftest.$ac_ext
37362cat >>conftest.$ac_ext <<_ACEOF
37363/* end confdefs.h.  */
37364#include <unistd.h>
37365
37366_ACEOF
37367	    	    	    	    gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37368	       sed -n '\#/unistd.h#{
37369		 s#.*"\(.*/unistd.h\)".*#\1#
37370		 s#^/[^/]#//&#
37371		 p
37372		 q
37373	       }'`'"'
37374	  else
37375	    gl_cv_next_unistd_h='<'unistd.h'>'
37376	  fi
37377
37378fi
37379{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
37380$as_echo "$gl_cv_next_unistd_h" >&6; }
37381     fi
37382     NEXT_UNISTD_H=$gl_cv_next_unistd_h
37383
37384
37385
37386
37387
37388  :
37389
37390
37391
37392
37393
37394  if test $ac_cv_header_unistd_h = yes; then
37395    HAVE_UNISTD_H=1
37396  else
37397    HAVE_UNISTD_H=0
37398  fi
37399
37400
37401
37402
37403cat >>confdefs.h <<\_ACEOF
37404#define USE_UNLOCKED_IO 1
37405_ACEOF
37406
37407
37408
37409
37410
37411  :
37412
37413
37414
37415
37416
37417
37418  :
37419
37420
37421
37422
37423
37424
37425  :
37426
37427
37428
37429
37430
37431
37432  :
37433
37434
37435
37436
37437
37438
37439  :
37440
37441
37442
37443
37444
37445
37446  :
37447
37448
37449
37450
37451
37452
37453  :
37454
37455
37456
37457
37458
37459
37460  :
37461
37462
37463
37464
37465
37466
37467  :
37468
37469
37470
37471
37472
37473
37474  :
37475
37476
37477
37478
37479
37480
37481  :
37482
37483
37484
37485
37486
37487
37488  :
37489
37490
37491
37492
37493
37494
37495  :
37496
37497
37498
37499
37500
37501
37502
37503
37504  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
37505$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
37506if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
37507  $as_echo_n "(cached) " >&6
37508else
37509  cat >conftest.$ac_ext <<_ACEOF
37510#include <wchar.h>
37511wchar_t w;
37512_ACEOF
37513rm -f conftest.$ac_objext
37514if { (ac_try="$ac_compile"
37515case "(($ac_try" in
37516  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37517  *) ac_try_echo=$ac_try;;
37518esac
37519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37520$as_echo "$ac_try_echo") >&5
37521  (eval "$ac_compile") 2>conftest.er1
37522  ac_status=$?
37523  grep -v '^ *+' conftest.er1 >conftest.err
37524  rm -f conftest.er1
37525  cat conftest.err >&5
37526  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527  (exit $ac_status); } && {
37528	 test -z "$ac_c_werror_flag" ||
37529	 test ! -s conftest.err
37530       } && test -s conftest.$ac_objext; then
37531  gl_cv_header_wchar_h_standalone=yes
37532else
37533  $as_echo "$as_me: failed program was:" >&5
37534sed 's/^/| /' conftest.$ac_ext >&5
37535
37536	gl_cv_header_wchar_h_standalone=no
37537fi
37538
37539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37540fi
37541{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
37542$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
37543  if test $gl_cv_header_wchar_h_standalone != yes; then
37544    WCHAR_H=wchar.h
37545  fi
37546
37547
37548  :
37549
37550
37551
37552
37553
37554  if test $ac_cv_header_wchar_h = yes; then
37555    HAVE_WCHAR_H=1
37556  else
37557    HAVE_WCHAR_H=0
37558  fi
37559
37560
37561
37562
37563  :
37564
37565
37566
37567
37568
37569
37570
37571     if test $gl_cv_have_include_next = yes; then
37572       gl_cv_next_wchar_h='<'wchar.h'>'
37573     else
37574       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
37575$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
37576if test "${gl_cv_next_wchar_h+set}" = set; then
37577  $as_echo_n "(cached) " >&6
37578else
37579
37580	  if test $ac_cv_header_wchar_h = yes; then
37581	    cat >conftest.$ac_ext <<_ACEOF
37582/* confdefs.h.  */
37583_ACEOF
37584cat confdefs.h >>conftest.$ac_ext
37585cat >>conftest.$ac_ext <<_ACEOF
37586/* end confdefs.h.  */
37587#include <wchar.h>
37588
37589_ACEOF
37590	    	    	    	    gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37591	       sed -n '\#/wchar.h#{
37592		 s#.*"\(.*/wchar.h\)".*#\1#
37593		 s#^/[^/]#//&#
37594		 p
37595		 q
37596	       }'`'"'
37597	  else
37598	    gl_cv_next_wchar_h='<'wchar.h'>'
37599	  fi
37600
37601fi
37602{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
37603$as_echo "$gl_cv_next_wchar_h" >&6; }
37604     fi
37605     NEXT_WCHAR_H=$gl_cv_next_wchar_h
37606
37607
37608
37609
37610
37611
37612  :
37613
37614
37615
37616
37617
37618  if test $ac_cv_func_iswcntrl = yes; then
37619    HAVE_ISWCNTRL=1
37620  else
37621    HAVE_ISWCNTRL=0
37622  fi
37623
37624
37625  :
37626
37627
37628
37629
37630
37631
37632
37633
37634  if test $gt_cv_c_wint_t = yes; then
37635    HAVE_WINT_T=1
37636  else
37637    HAVE_WINT_T=0
37638  fi
37639
37640
37641  WCTYPE_H=wctype.h
37642  if test $ac_cv_header_wctype_h = yes; then
37643    if test $ac_cv_func_iswcntrl = yes; then
37644      WCTYPE_H=
37645    fi
37646
37647
37648
37649  :
37650
37651
37652
37653
37654
37655
37656
37657     if test $gl_cv_have_include_next = yes; then
37658       gl_cv_next_wctype_h='<'wctype.h'>'
37659     else
37660       { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
37661$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
37662if test "${gl_cv_next_wctype_h+set}" = set; then
37663  $as_echo_n "(cached) " >&6
37664else
37665
37666	  if test $ac_cv_header_wctype_h = yes; then
37667	    cat >conftest.$ac_ext <<_ACEOF
37668/* confdefs.h.  */
37669_ACEOF
37670cat confdefs.h >>conftest.$ac_ext
37671cat >>conftest.$ac_ext <<_ACEOF
37672/* end confdefs.h.  */
37673#include <wctype.h>
37674
37675_ACEOF
37676	    	    	    	    gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37677	       sed -n '\#/wctype.h#{
37678		 s#.*"\(.*/wctype.h\)".*#\1#
37679		 s#^/[^/]#//&#
37680		 p
37681		 q
37682	       }'`'"'
37683	  else
37684	    gl_cv_next_wctype_h='<'wctype.h'>'
37685	  fi
37686
37687fi
37688{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
37689$as_echo "$gl_cv_next_wctype_h" >&6; }
37690     fi
37691     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
37692
37693
37694
37695    HAVE_WCTYPE_H=1
37696  else
37697    HAVE_WCTYPE_H=0
37698  fi
37699
37700
37701
37702
37703
37704
37705
37706
37707
37708
37709
37710
37711  :
37712
37713
37714
37715
37716
37717
37718  :
37719
37720
37721
37722
37723
37724
37725  { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
37726$as_echo_n "checking whether wcwidth is declared... " >&6; }
37727if test "${ac_cv_have_decl_wcwidth+set}" = set; then
37728  $as_echo_n "(cached) " >&6
37729else
37730  cat >conftest.$ac_ext <<_ACEOF
37731/* confdefs.h.  */
37732_ACEOF
37733cat confdefs.h >>conftest.$ac_ext
37734cat >>conftest.$ac_ext <<_ACEOF
37735/* end confdefs.h.  */
37736
37737/* AIX 3.2.5 declares wcwidth in <string.h>. */
37738#include <string.h>
37739/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37740   <wchar.h>.
37741   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
37742   before <wchar.h>.  */
37743#include <stddef.h>
37744#include <stdio.h>
37745#include <time.h>
37746#include <wchar.h>
37747
37748
37749int
37750main ()
37751{
37752#ifndef wcwidth
37753  (void) wcwidth;
37754#endif
37755
37756  ;
37757  return 0;
37758}
37759_ACEOF
37760rm -f conftest.$ac_objext
37761if { (ac_try="$ac_compile"
37762case "(($ac_try" in
37763  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37764  *) ac_try_echo=$ac_try;;
37765esac
37766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37767$as_echo "$ac_try_echo") >&5
37768  (eval "$ac_compile") 2>conftest.er1
37769  ac_status=$?
37770  grep -v '^ *+' conftest.er1 >conftest.err
37771  rm -f conftest.er1
37772  cat conftest.err >&5
37773  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37774  (exit $ac_status); } && {
37775	 test -z "$ac_c_werror_flag" ||
37776	 test ! -s conftest.err
37777       } && test -s conftest.$ac_objext; then
37778  ac_cv_have_decl_wcwidth=yes
37779else
37780  $as_echo "$as_me: failed program was:" >&5
37781sed 's/^/| /' conftest.$ac_ext >&5
37782
37783	ac_cv_have_decl_wcwidth=no
37784fi
37785
37786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37787fi
37788{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
37789$as_echo "$ac_cv_have_decl_wcwidth" >&6; }
37790if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
37791
37792cat >>confdefs.h <<_ACEOF
37793#define HAVE_DECL_WCWIDTH 1
37794_ACEOF
37795
37796
37797else
37798  cat >>confdefs.h <<_ACEOF
37799#define HAVE_DECL_WCWIDTH 0
37800_ACEOF
37801
37802
37803fi
37804
37805
37806  if test $ac_cv_have_decl_wcwidth != yes; then
37807    HAVE_DECL_WCWIDTH=0
37808  fi
37809
37810  if test $ac_cv_func_wcwidth = no; then
37811    REPLACE_WCWIDTH=1
37812  else
37813                { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
37814$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
37815if test "${gl_cv_func_wcwidth_works+set}" = set; then
37816  $as_echo_n "(cached) " >&6
37817else
37818
37819        if test "$cross_compiling" = yes; then
37820  gl_cv_func_wcwidth_works="guessing no"
37821else
37822  cat >conftest.$ac_ext <<_ACEOF
37823/* confdefs.h.  */
37824_ACEOF
37825cat confdefs.h >>conftest.$ac_ext
37826cat >>conftest.$ac_ext <<_ACEOF
37827/* end confdefs.h.  */
37828
37829#include <locale.h>
37830/* AIX 3.2.5 declares wcwidth in <string.h>. */
37831#include <string.h>
37832/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
37833   <wchar.h>.
37834   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
37835   before <wchar.h>.  */
37836#include <stddef.h>
37837#include <stdio.h>
37838#include <time.h>
37839#include <wchar.h>
37840#if !HAVE_DECL_WCWIDTH
37841extern
37842# ifdef __cplusplus
37843"C"
37844# endif
37845int wcwidth (int);
37846#endif
37847int main ()
37848{
37849  if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
37850    if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
37851      return 1;
37852  return 0;
37853}
37854_ACEOF
37855rm -f conftest$ac_exeext
37856if { (ac_try="$ac_link"
37857case "(($ac_try" in
37858  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37859  *) ac_try_echo=$ac_try;;
37860esac
37861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37862$as_echo "$ac_try_echo") >&5
37863  (eval "$ac_link") 2>&5
37864  ac_status=$?
37865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37866  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37867  { (case "(($ac_try" in
37868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37869  *) ac_try_echo=$ac_try;;
37870esac
37871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37872$as_echo "$ac_try_echo") >&5
37873  (eval "$ac_try") 2>&5
37874  ac_status=$?
37875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37876  (exit $ac_status); }; }; then
37877  gl_cv_func_wcwidth_works=yes
37878else
37879  $as_echo "$as_me: program exited with status $ac_status" >&5
37880$as_echo "$as_me: failed program was:" >&5
37881sed 's/^/| /' conftest.$ac_ext >&5
37882
37883( exit $ac_status )
37884gl_cv_func_wcwidth_works=no
37885fi
37886rm -rf conftest.dSYM
37887rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37888fi
37889
37890
37891
37892fi
37893{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
37894$as_echo "$gl_cv_func_wcwidth_works" >&6; }
37895    case "$gl_cv_func_wcwidth_works" in
37896      *yes) ;;
37897      *no) REPLACE_WCWIDTH=1 ;;
37898    esac
37899  fi
37900  if test $REPLACE_WCWIDTH = 1; then
37901
37902
37903
37904
37905
37906
37907
37908  gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
37909
37910  fi
37911
37912  if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
37913    WCHAR_H=wchar.h
37914  fi
37915
37916
37917
37918  GNULIB_WCWIDTH=1
37919
37920  LIBGRT_LIBDEPS="$gl_libdeps"
37921
37922  LIBGRT_LTLIBDEPS="$gl_ltlibdeps"
37923
37924
37925
37926
37927
37928
37929{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
37930$as_echo_n "checking for size_t... " >&6; }
37931if test "${ac_cv_type_size_t+set}" = set; then
37932  $as_echo_n "(cached) " >&6
37933else
37934  ac_cv_type_size_t=no
37935cat >conftest.$ac_ext <<_ACEOF
37936/* confdefs.h.  */
37937_ACEOF
37938cat confdefs.h >>conftest.$ac_ext
37939cat >>conftest.$ac_ext <<_ACEOF
37940/* end confdefs.h.  */
37941$ac_includes_default
37942int
37943main ()
37944{
37945if (sizeof (size_t))
37946       return 0;
37947  ;
37948  return 0;
37949}
37950_ACEOF
37951rm -f conftest.$ac_objext
37952if { (ac_try="$ac_compile"
37953case "(($ac_try" in
37954  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37955  *) ac_try_echo=$ac_try;;
37956esac
37957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37958$as_echo "$ac_try_echo") >&5
37959  (eval "$ac_compile") 2>conftest.er1
37960  ac_status=$?
37961  grep -v '^ *+' conftest.er1 >conftest.err
37962  rm -f conftest.er1
37963  cat conftest.err >&5
37964  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37965  (exit $ac_status); } && {
37966	 test -z "$ac_c_werror_flag" ||
37967	 test ! -s conftest.err
37968       } && test -s conftest.$ac_objext; then
37969  cat >conftest.$ac_ext <<_ACEOF
37970/* confdefs.h.  */
37971_ACEOF
37972cat confdefs.h >>conftest.$ac_ext
37973cat >>conftest.$ac_ext <<_ACEOF
37974/* end confdefs.h.  */
37975$ac_includes_default
37976int
37977main ()
37978{
37979if (sizeof ((size_t)))
37980	  return 0;
37981  ;
37982  return 0;
37983}
37984_ACEOF
37985rm -f conftest.$ac_objext
37986if { (ac_try="$ac_compile"
37987case "(($ac_try" in
37988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37989  *) ac_try_echo=$ac_try;;
37990esac
37991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37992$as_echo "$ac_try_echo") >&5
37993  (eval "$ac_compile") 2>conftest.er1
37994  ac_status=$?
37995  grep -v '^ *+' conftest.er1 >conftest.err
37996  rm -f conftest.er1
37997  cat conftest.err >&5
37998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37999  (exit $ac_status); } && {
38000	 test -z "$ac_c_werror_flag" ||
38001	 test ! -s conftest.err
38002       } && test -s conftest.$ac_objext; then
38003  :
38004else
38005  $as_echo "$as_me: failed program was:" >&5
38006sed 's/^/| /' conftest.$ac_ext >&5
38007
38008	ac_cv_type_size_t=yes
38009fi
38010
38011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38012else
38013  $as_echo "$as_me: failed program was:" >&5
38014sed 's/^/| /' conftest.$ac_ext >&5
38015
38016
38017fi
38018
38019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38020fi
38021{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38022$as_echo "$ac_cv_type_size_t" >&6; }
38023if test "x$ac_cv_type_size_t" = x""yes; then
38024  :
38025else
38026
38027cat >>confdefs.h <<_ACEOF
38028#define size_t unsigned int
38029_ACEOF
38030
38031fi
38032
38033
38034for ac_func in setlocale
38035do
38036as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38037{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38038$as_echo_n "checking for $ac_func... " >&6; }
38039if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38040  $as_echo_n "(cached) " >&6
38041else
38042  cat >conftest.$ac_ext <<_ACEOF
38043/* confdefs.h.  */
38044_ACEOF
38045cat confdefs.h >>conftest.$ac_ext
38046cat >>conftest.$ac_ext <<_ACEOF
38047/* end confdefs.h.  */
38048/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38049   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38050#define $ac_func innocuous_$ac_func
38051
38052/* System header to define __stub macros and hopefully few prototypes,
38053    which can conflict with char $ac_func (); below.
38054    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38055    <limits.h> exists even on freestanding compilers.  */
38056
38057#ifdef __STDC__
38058# include <limits.h>
38059#else
38060# include <assert.h>
38061#endif
38062
38063#undef $ac_func
38064
38065/* Override any GCC internal prototype to avoid an error.
38066   Use char because int might match the return type of a GCC
38067   builtin and then its argument prototype would still apply.  */
38068#ifdef __cplusplus
38069extern "C"
38070#endif
38071char $ac_func ();
38072/* The GNU C library defines this for functions which it implements
38073    to always fail with ENOSYS.  Some functions are actually named
38074    something starting with __ and the normal name is an alias.  */
38075#if defined __stub_$ac_func || defined __stub___$ac_func
38076choke me
38077#endif
38078
38079int
38080main ()
38081{
38082return $ac_func ();
38083  ;
38084  return 0;
38085}
38086_ACEOF
38087rm -f conftest.$ac_objext conftest$ac_exeext
38088if { (ac_try="$ac_link"
38089case "(($ac_try" in
38090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38091  *) ac_try_echo=$ac_try;;
38092esac
38093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38094$as_echo "$ac_try_echo") >&5
38095  (eval "$ac_link") 2>conftest.er1
38096  ac_status=$?
38097  grep -v '^ *+' conftest.er1 >conftest.err
38098  rm -f conftest.er1
38099  cat conftest.err >&5
38100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101  (exit $ac_status); } && {
38102	 test -z "$ac_c_werror_flag" ||
38103	 test ! -s conftest.err
38104       } && test -s conftest$ac_exeext && {
38105	 test "$cross_compiling" = yes ||
38106	 $as_test_x conftest$ac_exeext
38107       }; then
38108  eval "$as_ac_var=yes"
38109else
38110  $as_echo "$as_me: failed program was:" >&5
38111sed 's/^/| /' conftest.$ac_ext >&5
38112
38113	eval "$as_ac_var=no"
38114fi
38115
38116rm -rf conftest.dSYM
38117rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38118      conftest$ac_exeext conftest.$ac_ext
38119fi
38120ac_res=`eval 'as_val=${'$as_ac_var'}
38121		 $as_echo "$as_val"'`
38122	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38123$as_echo "$ac_res" >&6; }
38124as_val=`eval 'as_val=${'$as_ac_var'}
38125		 $as_echo "$as_val"'`
38126   if test "x$as_val" = x""yes; then
38127  cat >>confdefs.h <<_ACEOF
38128#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38129_ACEOF
38130
38131fi
38132done
38133
38134
38135
38136
38137
38138ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
38139# Extract the first word of "perl", so it can be a program name with args.
38140set dummy perl; ac_word=$2
38141{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38142$as_echo_n "checking for $ac_word... " >&6; }
38143if test "${ac_cv_path_PERL+set}" = set; then
38144  $as_echo_n "(cached) " >&6
38145else
38146  case $PERL in
38147  [\\/]* | ?:[\\/]*)
38148  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
38149  ;;
38150  *)
38151  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38152for as_dir in $PATH
38153do
38154  IFS=$as_save_IFS
38155  test -z "$as_dir" && as_dir=.
38156  for ac_exec_ext in '' $ac_executable_extensions; do
38157  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38158    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
38159    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38160    break 2
38161  fi
38162done
38163done
38164IFS=$as_save_IFS
38165
38166  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
38167  ;;
38168esac
38169fi
38170PERL=$ac_cv_path_PERL
38171if test -n "$PERL"; then
38172  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
38173$as_echo "$PERL" >&6; }
38174else
38175  { $as_echo "$as_me:$LINENO: result: no" >&5
38176$as_echo "no" >&6; }
38177fi
38178
38179
38180
38181CROSS_COMPILING=$cross_compiling
38182
38183
38184
38185for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
38186do
38187  # Extract the first word of "$ac_prog", so it can be a program name with args.
38188set dummy $ac_prog; ac_word=$2
38189{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38190$as_echo_n "checking for $ac_word... " >&6; }
38191if test "${ac_cv_prog_CXX+set}" = set; then
38192  $as_echo_n "(cached) " >&6
38193else
38194  if test -n "$CXX"; then
38195  ac_cv_prog_CXX="$CXX" # Let the user override the test.
38196else
38197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38198for as_dir in $PATH
38199do
38200  IFS=$as_save_IFS
38201  test -z "$as_dir" && as_dir=.
38202  for ac_exec_ext in '' $ac_executable_extensions; do
38203  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38204    ac_cv_prog_CXX="$ac_prog"
38205    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38206    break 2
38207  fi
38208done
38209done
38210IFS=$as_save_IFS
38211
38212fi
38213fi
38214CXX=$ac_cv_prog_CXX
38215if test -n "$CXX"; then
38216  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
38217$as_echo "$CXX" >&6; }
38218else
38219  { $as_echo "$as_me:$LINENO: result: no" >&5
38220$as_echo "no" >&6; }
38221fi
38222
38223
38224  test -n "$CXX" && break
38225done
38226test -n "$CXX" || CXX=":"
38227
38228if test "$CXX" != ":"; then
38229      { $as_echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
38230$as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
38231  ac_ext=cpp
38232ac_cpp='$CXXCPP $CPPFLAGS'
38233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38236
38237
38238
38239  echo 'int main () { return 0; }' > conftest.$ac_ext
38240  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38241  (eval $ac_link) 2>&5
38242  ac_status=$?
38243  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38244  (exit $ac_status); } && test -s conftest$ac_exeext; then
38245    ac_cv_prog_cxx_works=yes
38246    if (./conftest; exit) 2>/dev/null; then
38247      ac_cv_prog_cxx_cross=no
38248    else
38249      ac_cv_prog_cxx_cross=yes
38250    fi
38251  else
38252    ac_cv_prog_cxx_works=no
38253  fi
38254  rm -fr conftest*
38255  ac_ext=c
38256ac_cpp='$CPP $CPPFLAGS'
38257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38259ac_compiler_gnu=$ac_cv_c_compiler_gnu
38260
38261  { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5
38262$as_echo "$ac_cv_prog_cxx_works" >&6; }
38263  if test $ac_cv_prog_cxx_works = no; then
38264    CXX=:
38265  else
38266            { $as_echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5
38267$as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
38268    ac_ext=cpp
38269ac_cpp='$CXXCPP $CPPFLAGS'
38270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38273
38274    cat <<EOF > conftest.$ac_ext
38275#include <iostream>
38276namespace test { using namespace std; }
38277std::ostream* ptr;
38278int main () { return 0; }
38279EOF
38280    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38281  (eval $ac_link) 2>&5
38282  ac_status=$?
38283  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38284  (exit $ac_status); } && test -s conftest$ac_exeext; then
38285      gt_cv_prog_cxx_namespaces=yes
38286    else
38287      gt_cv_prog_cxx_namespaces=no
38288    fi
38289    rm -fr conftest*
38290    ac_ext=c
38291ac_cpp='$CPP $CPPFLAGS'
38292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38294ac_compiler_gnu=$ac_cv_c_compiler_gnu
38295
38296    { $as_echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5
38297$as_echo "$gt_cv_prog_cxx_namespaces" >&6; }
38298    if test $gt_cv_prog_cxx_namespaces = no; then
38299      CXX=:
38300    fi
38301  fi
38302fi
38303
38304
38305LIBSCHED=
38306if test $gl_threads_api = posix; then
38307    { $as_echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
38308$as_echo_n "checking for sched_yield in -lrt... " >&6; }
38309if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
38310  $as_echo_n "(cached) " >&6
38311else
38312  ac_check_lib_save_LIBS=$LIBS
38313LIBS="-lrt  $LIBS"
38314cat >conftest.$ac_ext <<_ACEOF
38315/* confdefs.h.  */
38316_ACEOF
38317cat confdefs.h >>conftest.$ac_ext
38318cat >>conftest.$ac_ext <<_ACEOF
38319/* end confdefs.h.  */
38320
38321/* Override any GCC internal prototype to avoid an error.
38322   Use char because int might match the return type of a GCC
38323   builtin and then its argument prototype would still apply.  */
38324#ifdef __cplusplus
38325extern "C"
38326#endif
38327char sched_yield ();
38328int
38329main ()
38330{
38331return sched_yield ();
38332  ;
38333  return 0;
38334}
38335_ACEOF
38336rm -f conftest.$ac_objext conftest$ac_exeext
38337if { (ac_try="$ac_link"
38338case "(($ac_try" in
38339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38340  *) ac_try_echo=$ac_try;;
38341esac
38342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38343$as_echo "$ac_try_echo") >&5
38344  (eval "$ac_link") 2>conftest.er1
38345  ac_status=$?
38346  grep -v '^ *+' conftest.er1 >conftest.err
38347  rm -f conftest.er1
38348  cat conftest.err >&5
38349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38350  (exit $ac_status); } && {
38351	 test -z "$ac_c_werror_flag" ||
38352	 test ! -s conftest.err
38353       } && test -s conftest$ac_exeext && {
38354	 test "$cross_compiling" = yes ||
38355	 $as_test_x conftest$ac_exeext
38356       }; then
38357  ac_cv_lib_rt_sched_yield=yes
38358else
38359  $as_echo "$as_me: failed program was:" >&5
38360sed 's/^/| /' conftest.$ac_ext >&5
38361
38362	ac_cv_lib_rt_sched_yield=no
38363fi
38364
38365rm -rf conftest.dSYM
38366rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38367      conftest$ac_exeext conftest.$ac_ext
38368LIBS=$ac_check_lib_save_LIBS
38369fi
38370{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
38371$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
38372if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then
38373  LIBSCHED=-lrt
38374else
38375       { $as_echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38376$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
38377if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38378  $as_echo_n "(cached) " >&6
38379else
38380  ac_check_lib_save_LIBS=$LIBS
38381LIBS="-lposix4  $LIBS"
38382cat >conftest.$ac_ext <<_ACEOF
38383/* confdefs.h.  */
38384_ACEOF
38385cat confdefs.h >>conftest.$ac_ext
38386cat >>conftest.$ac_ext <<_ACEOF
38387/* end confdefs.h.  */
38388
38389/* Override any GCC internal prototype to avoid an error.
38390   Use char because int might match the return type of a GCC
38391   builtin and then its argument prototype would still apply.  */
38392#ifdef __cplusplus
38393extern "C"
38394#endif
38395char sched_yield ();
38396int
38397main ()
38398{
38399return sched_yield ();
38400  ;
38401  return 0;
38402}
38403_ACEOF
38404rm -f conftest.$ac_objext conftest$ac_exeext
38405if { (ac_try="$ac_link"
38406case "(($ac_try" in
38407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38408  *) ac_try_echo=$ac_try;;
38409esac
38410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38411$as_echo "$ac_try_echo") >&5
38412  (eval "$ac_link") 2>conftest.er1
38413  ac_status=$?
38414  grep -v '^ *+' conftest.er1 >conftest.err
38415  rm -f conftest.er1
38416  cat conftest.err >&5
38417  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38418  (exit $ac_status); } && {
38419	 test -z "$ac_c_werror_flag" ||
38420	 test ! -s conftest.err
38421       } && test -s conftest$ac_exeext && {
38422	 test "$cross_compiling" = yes ||
38423	 $as_test_x conftest$ac_exeext
38424       }; then
38425  ac_cv_lib_posix4_sched_yield=yes
38426else
38427  $as_echo "$as_me: failed program was:" >&5
38428sed 's/^/| /' conftest.$ac_ext >&5
38429
38430	ac_cv_lib_posix4_sched_yield=no
38431fi
38432
38433rm -rf conftest.dSYM
38434rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38435      conftest$ac_exeext conftest.$ac_ext
38436LIBS=$ac_check_lib_save_LIBS
38437fi
38438{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38439$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
38440if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then
38441  LIBSCHED=-lposix4
38442fi
38443
38444fi
38445
38446fi
38447
38448
38449# Check whether --enable-libasprintf was given.
38450if test "${enable_libasprintf+set}" = set; then
38451  enableval=$enable_libasprintf; if test "$enableval" != no; then
38452     SUBDIR_libasprintf=libasprintf
38453   else
38454     SUBDIR_libasprintf=
38455   fi
38456
38457else
38458  SUBDIR_libasprintf=libasprintf
38459fi
38460
38461if test "$CXX" = ":"; then
38462  SUBDIR_libasprintf=
38463fi
38464 if test -n "$SUBDIR_libasprintf"; then
38465  ENABLE_LIBASPRINTF_TRUE=
38466  ENABLE_LIBASPRINTF_FALSE='#'
38467else
38468  ENABLE_LIBASPRINTF_TRUE='#'
38469  ENABLE_LIBASPRINTF_FALSE=
38470fi
38471
38472
38473
38474
38475subdirs="$subdirs libasprintf"
38476
38477
38478ac_config_files="$ac_config_files Makefile"
38479
38480
38481ac_config_files="$ac_config_files doc/Makefile"
38482
38483
38484ac_config_files="$ac_config_files intl/Makefile"
38485
38486
38487ac_config_files="$ac_config_files intl-java/Makefile"
38488
38489
38490ac_config_files="$ac_config_files intl-csharp/Makefile"
38491
38492
38493ac_config_files="$ac_config_files gnulib-lib/Makefile"
38494
38495
38496ac_config_files="$ac_config_files src/Makefile"
38497
38498ac_config_files="$ac_config_files src/gettext.sh"
38499
38500
38501ac_config_files="$ac_config_files po/Makefile.in"
38502
38503
38504ac_config_files="$ac_config_files man/Makefile"
38505
38506ac_config_files="$ac_config_files man/x-to-1"
38507
38508
38509ac_config_files="$ac_config_files m4/Makefile"
38510
38511
38512ac_config_files="$ac_config_files tests/Makefile"
38513
38514
38515cat >confcache <<\_ACEOF
38516# This file is a shell script that caches the results of configure
38517# tests run on this system so they can be shared between configure
38518# scripts and configure runs, see configure's option --config-cache.
38519# It is not useful on other systems.  If it contains results you don't
38520# want to keep, you may remove or edit it.
38521#
38522# config.status only pays attention to the cache file if you give it
38523# the --recheck option to rerun configure.
38524#
38525# `ac_cv_env_foo' variables (set or unset) will be overridden when
38526# loading this file, other *unset* `ac_cv_foo' will be assigned the
38527# following values.
38528
38529_ACEOF
38530
38531# The following way of writing the cache mishandles newlines in values,
38532# but we know of no workaround that is simple, portable, and efficient.
38533# So, we kill variables containing newlines.
38534# Ultrix sh set writes to stderr and can't be redirected directly,
38535# and sets the high bit in the cache file unless we assign to the vars.
38536(
38537  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
38538    eval ac_val=\$$ac_var
38539    case $ac_val in #(
38540    *${as_nl}*)
38541      case $ac_var in #(
38542      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
38543$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
38544      esac
38545      case $ac_var in #(
38546      _ | IFS | as_nl) ;; #(
38547      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
38548      *) $as_unset $ac_var ;;
38549      esac ;;
38550    esac
38551  done
38552
38553  (set) 2>&1 |
38554    case $as_nl`(ac_space=' '; set) 2>&1` in #(
38555    *${as_nl}ac_space=\ *)
38556      # `set' does not quote correctly, so add quotes (double-quote
38557      # substitution turns \\\\ into \\, and sed turns \\ into \).
38558      sed -n \
38559	"s/'/'\\\\''/g;
38560	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38561      ;; #(
38562    *)
38563      # `set' quotes correctly as required by POSIX, so do not add quotes.
38564      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
38565      ;;
38566    esac |
38567    sort
38568) |
38569  sed '
38570     /^ac_cv_env_/b end
38571     t clear
38572     :clear
38573     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38574     t end
38575     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38576     :end' >>confcache
38577if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
38578  if test -w "$cache_file"; then
38579    test "x$cache_file" != "x/dev/null" &&
38580      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
38581$as_echo "$as_me: updating cache $cache_file" >&6;}
38582    cat confcache >$cache_file
38583  else
38584    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
38585$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
38586  fi
38587fi
38588rm -f confcache
38589
38590test "x$prefix" = xNONE && prefix=$ac_default_prefix
38591# Let make expand exec_prefix.
38592test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38593
38594DEFS=-DHAVE_CONFIG_H
38595
38596ac_libobjs=
38597ac_ltlibobjs=
38598for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38599  # 1. Remove the extension, and $U if already installed.
38600  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38601  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
38602  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38603  #    will be set to the directory where LIBOBJS objects are built.
38604  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38605  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38606done
38607LIBOBJS=$ac_libobjs
38608
38609LTLIBOBJS=$ac_ltlibobjs
38610
38611
38612if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38613  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38614Usually this means the macro was only invoked conditionally." >&5
38615$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
38616Usually this means the macro was only invoked conditionally." >&2;}
38617   { (exit 1); exit 1; }; }
38618fi
38619if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38620  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38621Usually this means the macro was only invoked conditionally." >&5
38622$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38623Usually this means the macro was only invoked conditionally." >&2;}
38624   { (exit 1); exit 1; }; }
38625fi
38626if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
38627  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
38628Usually this means the macro was only invoked conditionally." >&5
38629$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
38630Usually this means the macro was only invoked conditionally." >&2;}
38631   { (exit 1); exit 1; }; }
38632fi
38633if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
38634  { { $as_echo "$as_me:$LINENO: error: conditional \"WOE32\" was never defined.
38635Usually this means the macro was only invoked conditionally." >&5
38636$as_echo "$as_me: error: conditional \"WOE32\" was never defined.
38637Usually this means the macro was only invoked conditionally." >&2;}
38638   { (exit 1); exit 1; }; }
38639fi
38640if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
38641  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
38642Usually this means the macro was only invoked conditionally." >&5
38643$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
38644Usually this means the macro was only invoked conditionally." >&2;}
38645   { (exit 1); exit 1; }; }
38646fi
38647if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
38648  { { $as_echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
38649Usually this means the macro was only invoked conditionally." >&5
38650$as_echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
38651Usually this means the macro was only invoked conditionally." >&2;}
38652   { (exit 1); exit 1; }; }
38653fi
38654
38655    gl_libobjs=
38656    gl_ltlibobjs=
38657    if test -n "$gl_LIBOBJS"; then
38658      # Remove the extension.
38659      sed_drop_objext='s/\.o$//;s/\.obj$//'
38660      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
38661        gl_libobjs="$gl_libobjs $i.$ac_objext"
38662        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
38663      done
38664    fi
38665    gl_LIBOBJS=$gl_libobjs
38666
38667    gl_LTLIBOBJS=$gl_ltlibobjs
38668
38669
38670if test -z "${ENABLE_LIBASPRINTF_TRUE}" && test -z "${ENABLE_LIBASPRINTF_FALSE}"; then
38671  { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBASPRINTF\" was never defined.
38672Usually this means the macro was only invoked conditionally." >&5
38673$as_echo "$as_me: error: conditional \"ENABLE_LIBASPRINTF\" was never defined.
38674Usually this means the macro was only invoked conditionally." >&2;}
38675   { (exit 1); exit 1; }; }
38676fi
38677
38678: ${CONFIG_STATUS=./config.status}
38679ac_write_fail=0
38680ac_clean_files_save=$ac_clean_files
38681ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38682{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38683$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
38684cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38685#! $SHELL
38686# Generated by $as_me.
38687# Run this file to recreate the current configuration.
38688# Compiler output produced by configure, useful for debugging
38689# configure, is in config.log if it exists.
38690
38691debug=false
38692ac_cs_recheck=false
38693ac_cs_silent=false
38694SHELL=\${CONFIG_SHELL-$SHELL}
38695_ACEOF
38696
38697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38698## --------------------- ##
38699## M4sh Initialization.  ##
38700## --------------------- ##
38701
38702# Be more Bourne compatible
38703DUALCASE=1; export DUALCASE # for MKS sh
38704if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38705  emulate sh
38706  NULLCMD=:
38707  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
38708  # is contrary to our usage.  Disable this feature.
38709  alias -g '${1+"$@"}'='"$@"'
38710  setopt NO_GLOB_SUBST
38711else
38712  case `(set -o) 2>/dev/null` in
38713  *posix*) set -o posix ;;
38714esac
38715
38716fi
38717
38718
38719
38720
38721# PATH needs CR
38722# Avoid depending upon Character Ranges.
38723as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38724as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38725as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38726as_cr_digits='0123456789'
38727as_cr_alnum=$as_cr_Letters$as_cr_digits
38728
38729as_nl='
38730'
38731export as_nl
38732# Printing a long string crashes Solaris 7 /usr/bin/printf.
38733as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
38735as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
38736if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
38737  as_echo='printf %s\n'
38738  as_echo_n='printf %s'
38739else
38740  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
38741    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
38742    as_echo_n='/usr/ucb/echo -n'
38743  else
38744    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
38745    as_echo_n_body='eval
38746      arg=$1;
38747      case $arg in
38748      *"$as_nl"*)
38749	expr "X$arg" : "X\\(.*\\)$as_nl";
38750	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
38751      esac;
38752      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
38753    '
38754    export as_echo_n_body
38755    as_echo_n='sh -c $as_echo_n_body as_echo'
38756  fi
38757  export as_echo_body
38758  as_echo='sh -c $as_echo_body as_echo'
38759fi
38760
38761# The user is always right.
38762if test "${PATH_SEPARATOR+set}" != set; then
38763  PATH_SEPARATOR=:
38764  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
38765    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
38766      PATH_SEPARATOR=';'
38767  }
38768fi
38769
38770# Support unset when possible.
38771if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38772  as_unset=unset
38773else
38774  as_unset=false
38775fi
38776
38777
38778# IFS
38779# We need space, tab and new line, in precisely that order.  Quoting is
38780# there to prevent editors from complaining about space-tab.
38781# (If _AS_PATH_WALK were called with IFS unset, it would disable word
38782# splitting by setting IFS to empty value.)
38783IFS=" ""	$as_nl"
38784
38785# Find who we are.  Look in the path if we contain no directory separator.
38786case $0 in
38787  *[\\/]* ) as_myself=$0 ;;
38788  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38789for as_dir in $PATH
38790do
38791  IFS=$as_save_IFS
38792  test -z "$as_dir" && as_dir=.
38793  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38794done
38795IFS=$as_save_IFS
38796
38797     ;;
38798esac
38799# We did not find ourselves, most probably we were run as `sh COMMAND'
38800# in which case we are not to be found in the path.
38801if test "x$as_myself" = x; then
38802  as_myself=$0
38803fi
38804if test ! -f "$as_myself"; then
38805  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38806  { (exit 1); exit 1; }
38807fi
38808
38809# Work around bugs in pre-3.0 UWIN ksh.
38810for as_var in ENV MAIL MAILPATH
38811do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38812done
38813PS1='$ '
38814PS2='> '
38815PS4='+ '
38816
38817# NLS nuisances.
38818LC_ALL=C
38819export LC_ALL
38820LANGUAGE=C
38821export LANGUAGE
38822
38823# Required to use basename.
38824if expr a : '\(a\)' >/dev/null 2>&1 &&
38825   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38826  as_expr=expr
38827else
38828  as_expr=false
38829fi
38830
38831if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38832  as_basename=basename
38833else
38834  as_basename=false
38835fi
38836
38837
38838# Name of the executable.
38839as_me=`$as_basename -- "$0" ||
38840$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38841	 X"$0" : 'X\(//\)$' \| \
38842	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38843$as_echo X/"$0" |
38844    sed '/^.*\/\([^/][^/]*\)\/*$/{
38845	    s//\1/
38846	    q
38847	  }
38848	  /^X\/\(\/\/\)$/{
38849	    s//\1/
38850	    q
38851	  }
38852	  /^X\/\(\/\).*/{
38853	    s//\1/
38854	    q
38855	  }
38856	  s/.*/./; q'`
38857
38858# CDPATH.
38859$as_unset CDPATH
38860
38861
38862
38863  as_lineno_1=$LINENO
38864  as_lineno_2=$LINENO
38865  test "x$as_lineno_1" != "x$as_lineno_2" &&
38866  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38867
38868  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38869  # uniformly replaced by the line number.  The first 'sed' inserts a
38870  # line-number line after each line using $LINENO; the second 'sed'
38871  # does the real work.  The second script uses 'N' to pair each
38872  # line-number line with the line containing $LINENO, and appends
38873  # trailing '-' during substitution so that $LINENO is not a special
38874  # case at line end.
38875  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38876  # scripts with optimization help from Paolo Bonzini.  Blame Lee
38877  # E. McMahon (1931-1989) for sed's syntax.  :-)
38878  sed -n '
38879    p
38880    /[$]LINENO/=
38881  ' <$as_myself |
38882    sed '
38883      s/[$]LINENO.*/&-/
38884      t lineno
38885      b
38886      :lineno
38887      N
38888      :loop
38889      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38890      t loop
38891      s/-\n.*//
38892    ' >$as_me.lineno &&
38893  chmod +x "$as_me.lineno" ||
38894    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38895   { (exit 1); exit 1; }; }
38896
38897  # Don't try to exec as it changes $[0], causing all sort of problems
38898  # (the dirname of $[0] is not the place where we might find the
38899  # original and so on.  Autoconf is especially sensitive to this).
38900  . "./$as_me.lineno"
38901  # Exit status is that of the last command.
38902  exit
38903}
38904
38905
38906if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38907  as_dirname=dirname
38908else
38909  as_dirname=false
38910fi
38911
38912ECHO_C= ECHO_N= ECHO_T=
38913case `echo -n x` in
38914-n*)
38915  case `echo 'x\c'` in
38916  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
38917  *)   ECHO_C='\c';;
38918  esac;;
38919*)
38920  ECHO_N='-n';;
38921esac
38922if expr a : '\(a\)' >/dev/null 2>&1 &&
38923   test "X`expr 00001 : '.*\(...\)'`" = X001; then
38924  as_expr=expr
38925else
38926  as_expr=false
38927fi
38928
38929rm -f conf$$ conf$$.exe conf$$.file
38930if test -d conf$$.dir; then
38931  rm -f conf$$.dir/conf$$.file
38932else
38933  rm -f conf$$.dir
38934  mkdir conf$$.dir 2>/dev/null
38935fi
38936if (echo >conf$$.file) 2>/dev/null; then
38937  if ln -s conf$$.file conf$$ 2>/dev/null; then
38938    as_ln_s='ln -s'
38939    # ... but there are two gotchas:
38940    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38941    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38942    # In both cases, we have to default to `cp -p'.
38943    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38944      as_ln_s='cp -p'
38945  elif ln conf$$.file conf$$ 2>/dev/null; then
38946    as_ln_s=ln
38947  else
38948    as_ln_s='cp -p'
38949  fi
38950else
38951  as_ln_s='cp -p'
38952fi
38953rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38954rmdir conf$$.dir 2>/dev/null
38955
38956if mkdir -p . 2>/dev/null; then
38957  as_mkdir_p=:
38958else
38959  test -d ./-p && rmdir ./-p
38960  as_mkdir_p=false
38961fi
38962
38963if test -x / >/dev/null 2>&1; then
38964  as_test_x='test -x'
38965else
38966  if ls -dL / >/dev/null 2>&1; then
38967    as_ls_L_option=L
38968  else
38969    as_ls_L_option=
38970  fi
38971  as_test_x='
38972    eval sh -c '\''
38973      if test -d "$1"; then
38974	test -d "$1/.";
38975      else
38976	case $1 in
38977	-*)set "./$1";;
38978	esac;
38979	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
38980	???[sx]*):;;*)false;;esac;fi
38981    '\'' sh
38982  '
38983fi
38984as_executable_p=$as_test_x
38985
38986# Sed expression to map a string onto a valid CPP name.
38987as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38988
38989# Sed expression to map a string onto a valid variable name.
38990as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38991
38992
38993exec 6>&1
38994
38995# Save the log message, to keep $[0] and so on meaningful, and to
38996# report actual input values of CONFIG_FILES etc. instead of their
38997# values after options handling.
38998ac_log="
38999This file was extended by $as_me, which was
39000generated by GNU Autoconf 2.63.  Invocation command line was
39001
39002  CONFIG_FILES    = $CONFIG_FILES
39003  CONFIG_HEADERS  = $CONFIG_HEADERS
39004  CONFIG_LINKS    = $CONFIG_LINKS
39005  CONFIG_COMMANDS = $CONFIG_COMMANDS
39006  $ $0 $@
39007
39008on `(hostname || uname -n) 2>/dev/null | sed 1q`
39009"
39010
39011_ACEOF
39012
39013case $ac_config_files in *"
39014"*) set x $ac_config_files; shift; ac_config_files=$*;;
39015esac
39016
39017case $ac_config_headers in *"
39018"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
39019esac
39020
39021
39022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39023# Files that config.status was made for.
39024config_files="$ac_config_files"
39025config_headers="$ac_config_headers"
39026config_commands="$ac_config_commands"
39027
39028_ACEOF
39029
39030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39031ac_cs_usage="\
39032\`$as_me' instantiates files from templates according to the
39033current configuration.
39034
39035Usage: $0 [OPTION]... [FILE]...
39036
39037  -h, --help       print this help, then exit
39038  -V, --version    print version number and configuration settings, then exit
39039  -q, --quiet, --silent
39040                   do not print progress messages
39041  -d, --debug      don't remove temporary files
39042      --recheck    update $as_me by reconfiguring in the same conditions
39043      --file=FILE[:TEMPLATE]
39044                   instantiate the configuration file FILE
39045      --header=FILE[:TEMPLATE]
39046                   instantiate the configuration header FILE
39047
39048Configuration files:
39049$config_files
39050
39051Configuration headers:
39052$config_headers
39053
39054Configuration commands:
39055$config_commands
39056
39057Report bugs to <bug-autoconf@gnu.org>."
39058
39059_ACEOF
39060cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39061ac_cs_version="\\
39062config.status
39063configured by $0, generated by GNU Autoconf 2.63,
39064  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39065
39066Copyright (C) 2008 Free Software Foundation, Inc.
39067This config.status script is free software; the Free Software Foundation
39068gives unlimited permission to copy, distribute and modify it."
39069
39070ac_pwd='$ac_pwd'
39071srcdir='$srcdir'
39072INSTALL='$INSTALL'
39073MKDIR_P='$MKDIR_P'
39074AWK='$AWK'
39075test -n "\$AWK" || AWK=awk
39076_ACEOF
39077
39078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39079# The default lists apply if the user does not specify any file.
39080ac_need_defaults=:
39081while test $# != 0
39082do
39083  case $1 in
39084  --*=*)
39085    ac_option=`expr "X$1" : 'X\([^=]*\)='`
39086    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39087    ac_shift=:
39088    ;;
39089  *)
39090    ac_option=$1
39091    ac_optarg=$2
39092    ac_shift=shift
39093    ;;
39094  esac
39095
39096  case $ac_option in
39097  # Handling of the options.
39098  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39099    ac_cs_recheck=: ;;
39100  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39101    $as_echo "$ac_cs_version"; exit ;;
39102  --debug | --debu | --deb | --de | --d | -d )
39103    debug=: ;;
39104  --file | --fil | --fi | --f )
39105    $ac_shift
39106    case $ac_optarg in
39107    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
39108    esac
39109    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
39110    ac_need_defaults=false;;
39111  --header | --heade | --head | --hea )
39112    $ac_shift
39113    case $ac_optarg in
39114    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
39115    esac
39116    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
39117    ac_need_defaults=false;;
39118  --he | --h)
39119    # Conflict between --help and --header
39120    { $as_echo "$as_me: error: ambiguous option: $1
39121Try \`$0 --help' for more information." >&2
39122   { (exit 1); exit 1; }; };;
39123  --help | --hel | -h )
39124    $as_echo "$ac_cs_usage"; exit ;;
39125  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39126  | -silent | --silent | --silen | --sile | --sil | --si | --s)
39127    ac_cs_silent=: ;;
39128
39129  # This is an error.
39130  -*) { $as_echo "$as_me: error: unrecognized option: $1
39131Try \`$0 --help' for more information." >&2
39132   { (exit 1); exit 1; }; } ;;
39133
39134  *) ac_config_targets="$ac_config_targets $1"
39135     ac_need_defaults=false ;;
39136
39137  esac
39138  shift
39139done
39140
39141ac_configure_extra_args=
39142
39143if $ac_cs_silent; then
39144  exec 6>/dev/null
39145  ac_configure_extra_args="$ac_configure_extra_args --silent"
39146fi
39147
39148_ACEOF
39149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39150if \$ac_cs_recheck; then
39151  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39152  shift
39153  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
39154  CONFIG_SHELL='$SHELL'
39155  export CONFIG_SHELL
39156  exec "\$@"
39157fi
39158
39159_ACEOF
39160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39161exec 5>>config.log
39162{
39163  echo
39164  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39165## Running $as_me. ##
39166_ASBOX
39167  $as_echo "$ac_log"
39168} >&5
39169
39170_ACEOF
39171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39172#
39173# INIT-COMMANDS
39174#
39175AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39176# Capture the value of obsolete ALL_LINGUAS because we need it to compute
39177    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
39178    # from automake < 1.5.
39179    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
39180    # Capture the value of LINGUAS because we need it to compute CATALOGS.
39181    LINGUAS="${LINGUAS-%UNSET%}"
39182
39183
39184_ACEOF
39185
39186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39187
39188# Handling of arguments.
39189for ac_config_target in $ac_config_targets
39190do
39191  case $ac_config_target in
39192    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
39193    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39194    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
39195    "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
39196    "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
39197    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39198    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
39199    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
39200    "intl-java/Makefile") CONFIG_FILES="$CONFIG_FILES intl-java/Makefile" ;;
39201    "intl-csharp/Makefile") CONFIG_FILES="$CONFIG_FILES intl-csharp/Makefile" ;;
39202    "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
39203    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39204    "src/gettext.sh") CONFIG_FILES="$CONFIG_FILES src/gettext.sh" ;;
39205    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
39206    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
39207    "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
39208    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
39209    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
39210
39211  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39212$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39213   { (exit 1); exit 1; }; };;
39214  esac
39215done
39216
39217
39218# If the user did not use the arguments to specify the items to instantiate,
39219# then the envvar interface is used.  Set only those that are not.
39220# We use the long form for the default assignment because of an extremely
39221# bizarre bug on SunOS 4.1.3.
39222if $ac_need_defaults; then
39223  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39224  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39225  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39226fi
39227
39228# Have a temporary directory for convenience.  Make it in the build tree
39229# simply because there is no reason against having it here, and in addition,
39230# creating and moving files from /tmp can sometimes cause problems.
39231# Hook for its removal unless debugging.
39232# Note that there is a small window in which the directory will not be cleaned:
39233# after its creation but before its name has been assigned to `$tmp'.
39234$debug ||
39235{
39236  tmp=
39237  trap 'exit_status=$?
39238  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39239' 0
39240  trap '{ (exit 1); exit 1; }' 1 2 13 15
39241}
39242# Create a (secure) tmp directory for tmp files.
39243
39244{
39245  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39246  test -n "$tmp" && test -d "$tmp"
39247}  ||
39248{
39249  tmp=./conf$$-$RANDOM
39250  (umask 077 && mkdir "$tmp")
39251} ||
39252{
39253   $as_echo "$as_me: cannot create a temporary directory in ." >&2
39254   { (exit 1); exit 1; }
39255}
39256
39257# Set up the scripts for CONFIG_FILES section.
39258# No need to generate them if there are no CONFIG_FILES.
39259# This happens for instance with `./config.status config.h'.
39260if test -n "$CONFIG_FILES"; then
39261
39262
39263ac_cr='
39264'
39265ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
39266if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
39267  ac_cs_awk_cr='\\r'
39268else
39269  ac_cs_awk_cr=$ac_cr
39270fi
39271
39272echo 'BEGIN {' >"$tmp/subs1.awk" &&
39273_ACEOF
39274
39275
39276{
39277  echo "cat >conf$$subs.awk <<_ACEOF" &&
39278  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
39279  echo "_ACEOF"
39280} >conf$$subs.sh ||
39281  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39282$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39283   { (exit 1); exit 1; }; }
39284ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
39285ac_delim='%!_!# '
39286for ac_last_try in false false false false false :; do
39287  . ./conf$$subs.sh ||
39288    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39289$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39290   { (exit 1); exit 1; }; }
39291
39292  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
39293  if test $ac_delim_n = $ac_delim_num; then
39294    break
39295  elif $ac_last_try; then
39296    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39297$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39298   { (exit 1); exit 1; }; }
39299  else
39300    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39301  fi
39302done
39303rm -f conf$$subs.sh
39304
39305cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39306cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
39307_ACEOF
39308sed -n '
39309h
39310s/^/S["/; s/!.*/"]=/
39311p
39312g
39313s/^[^!]*!//
39314:repl
39315t repl
39316s/'"$ac_delim"'$//
39317t delim
39318:nl
39319h
39320s/\(.\{148\}\).*/\1/
39321t more1
39322s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
39323p
39324n
39325b repl
39326:more1
39327s/["\\]/\\&/g; s/^/"/; s/$/"\\/
39328p
39329g
39330s/.\{148\}//
39331t nl
39332:delim
39333h
39334s/\(.\{148\}\).*/\1/
39335t more2
39336s/["\\]/\\&/g; s/^/"/; s/$/"/
39337p
39338b
39339:more2
39340s/["\\]/\\&/g; s/^/"/; s/$/"\\/
39341p
39342g
39343s/.\{148\}//
39344t delim
39345' <conf$$subs.awk | sed '
39346/^[^""]/{
39347  N
39348  s/\n//
39349}
39350' >>$CONFIG_STATUS || ac_write_fail=1
39351rm -f conf$$subs.awk
39352cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39353_ACAWK
39354cat >>"\$tmp/subs1.awk" <<_ACAWK &&
39355  for (key in S) S_is_set[key] = 1
39356  FS = ""
39357
39358}
39359{
39360  line = $ 0
39361  nfields = split(line, field, "@")
39362  substed = 0
39363  len = length(field[1])
39364  for (i = 2; i < nfields; i++) {
39365    key = field[i]
39366    keylen = length(key)
39367    if (S_is_set[key]) {
39368      value = S[key]
39369      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
39370      len += length(value) + length(field[++i])
39371      substed = 1
39372    } else
39373      len += 1 + keylen
39374  }
39375
39376  print line
39377}
39378
39379_ACAWK
39380_ACEOF
39381cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39382if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
39383  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
39384else
39385  cat
39386fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
39387  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
39388$as_echo "$as_me: error: could not setup config files machinery" >&2;}
39389   { (exit 1); exit 1; }; }
39390_ACEOF
39391
39392# VPATH may cause trouble with some makes, so we remove $(srcdir),
39393# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39394# trailing colons and then remove the whole line if VPATH becomes empty
39395# (actually we leave an empty line to preserve line numbers).
39396if test "x$srcdir" = x.; then
39397  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
39398s/:*\$(srcdir):*/:/
39399s/:*\${srcdir}:*/:/
39400s/:*@srcdir@:*/:/
39401s/^\([^=]*=[	 ]*\):*/\1/
39402s/:*$//
39403s/^[^=]*=[	 ]*$//
39404}'
39405fi
39406
39407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39408fi # test -n "$CONFIG_FILES"
39409
39410# Set up the scripts for CONFIG_HEADERS section.
39411# No need to generate them if there are no CONFIG_HEADERS.
39412# This happens for instance with `./config.status Makefile'.
39413if test -n "$CONFIG_HEADERS"; then
39414cat >"$tmp/defines.awk" <<\_ACAWK ||
39415BEGIN {
39416_ACEOF
39417
39418# Transform confdefs.h into an awk script `defines.awk', embedded as
39419# here-document in config.status, that substitutes the proper values into
39420# config.h.in to produce config.h.
39421
39422# Create a delimiter string that does not exist in confdefs.h, to ease
39423# handling of long lines.
39424ac_delim='%!_!# '
39425for ac_last_try in false false :; do
39426  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
39427  if test -z "$ac_t"; then
39428    break
39429  elif $ac_last_try; then
39430    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
39431$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
39432   { (exit 1); exit 1; }; }
39433  else
39434    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39435  fi
39436done
39437
39438# For the awk script, D is an array of macro values keyed by name,
39439# likewise P contains macro parameters if any.  Preserve backslash
39440# newline sequences.
39441
39442ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39443sed -n '
39444s/.\{148\}/&'"$ac_delim"'/g
39445t rset
39446:rset
39447s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
39448t def
39449d
39450:def
39451s/\\$//
39452t bsnl
39453s/["\\]/\\&/g
39454s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
39455D["\1"]=" \3"/p
39456s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
39457d
39458:bsnl
39459s/["\\]/\\&/g
39460s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
39461D["\1"]=" \3\\\\\\n"\\/p
39462t cont
39463s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
39464t cont
39465d
39466:cont
39467n
39468s/.\{148\}/&'"$ac_delim"'/g
39469t clear
39470:clear
39471s/\\$//
39472t bsnlc
39473s/["\\]/\\&/g; s/^/"/; s/$/"/p
39474d
39475:bsnlc
39476s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
39477b cont
39478' <confdefs.h | sed '
39479s/'"$ac_delim"'/"\\\
39480"/g' >>$CONFIG_STATUS || ac_write_fail=1
39481
39482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39483  for (key in D) D_is_set[key] = 1
39484  FS = ""
39485}
39486/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39487  line = \$ 0
39488  split(line, arg, " ")
39489  if (arg[1] == "#") {
39490    defundef = arg[2]
39491    mac1 = arg[3]
39492  } else {
39493    defundef = substr(arg[1], 2)
39494    mac1 = arg[2]
39495  }
39496  split(mac1, mac2, "(") #)
39497  macro = mac2[1]
39498  prefix = substr(line, 1, index(line, defundef) - 1)
39499  if (D_is_set[macro]) {
39500    # Preserve the white space surrounding the "#".
39501    print prefix "define", macro P[macro] D[macro]
39502    next
39503  } else {
39504    # Replace #undef with comments.  This is necessary, for example,
39505    # in the case of _POSIX_SOURCE, which is predefined and required
39506    # on some systems where configure will not decide to define it.
39507    if (defundef == "undef") {
39508      print "/*", prefix defundef, macro, "*/"
39509      next
39510    }
39511  }
39512}
39513{ print }
39514_ACAWK
39515_ACEOF
39516cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39517  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
39518$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
39519   { (exit 1); exit 1; }; }
39520fi # test -n "$CONFIG_HEADERS"
39521
39522
39523eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
39524shift
39525for ac_tag
39526do
39527  case $ac_tag in
39528  :[FHLC]) ac_mode=$ac_tag; continue;;
39529  esac
39530  case $ac_mode$ac_tag in
39531  :[FHL]*:*);;
39532  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
39533$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
39534   { (exit 1); exit 1; }; };;
39535  :[FH]-) ac_tag=-:-;;
39536  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39537  esac
39538  ac_save_IFS=$IFS
39539  IFS=:
39540  set x $ac_tag
39541  IFS=$ac_save_IFS
39542  shift
39543  ac_file=$1
39544  shift
39545
39546  case $ac_mode in
39547  :L) ac_source=$1;;
39548  :[FH])
39549    ac_file_inputs=
39550    for ac_f
39551    do
39552      case $ac_f in
39553      -) ac_f="$tmp/stdin";;
39554      *) # Look for the file first in the build tree, then in the source tree
39555	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
39556	 # because $ac_f cannot contain `:'.
39557	 test -f "$ac_f" ||
39558	   case $ac_f in
39559	   [\\/$]*) false;;
39560	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39561	   esac ||
39562	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39563$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39564   { (exit 1); exit 1; }; };;
39565      esac
39566      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39567      ac_file_inputs="$ac_file_inputs '$ac_f'"
39568    done
39569
39570    # Let's still pretend it is `configure' which instantiates (i.e., don't
39571    # use $as_me), people would be surprised to read:
39572    #    /* config.h.  Generated by config.status.  */
39573    configure_input='Generated from '`
39574	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39575	`' by configure.'
39576    if test x"$ac_file" != x-; then
39577      configure_input="$ac_file.  $configure_input"
39578      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
39579$as_echo "$as_me: creating $ac_file" >&6;}
39580    fi
39581    # Neutralize special characters interpreted by sed in replacement strings.
39582    case $configure_input in #(
39583    *\&* | *\|* | *\\* )
39584       ac_sed_conf_input=`$as_echo "$configure_input" |
39585       sed 's/[\\\\&|]/\\\\&/g'`;; #(
39586    *) ac_sed_conf_input=$configure_input;;
39587    esac
39588
39589    case $ac_tag in
39590    *:-:* | *:-) cat >"$tmp/stdin" \
39591      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39592$as_echo "$as_me: error: could not create $ac_file" >&2;}
39593   { (exit 1); exit 1; }; } ;;
39594    esac
39595    ;;
39596  esac
39597
39598  ac_dir=`$as_dirname -- "$ac_file" ||
39599$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39600	 X"$ac_file" : 'X\(//\)[^/]' \| \
39601	 X"$ac_file" : 'X\(//\)$' \| \
39602	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39603$as_echo X"$ac_file" |
39604    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39605	    s//\1/
39606	    q
39607	  }
39608	  /^X\(\/\/\)[^/].*/{
39609	    s//\1/
39610	    q
39611	  }
39612	  /^X\(\/\/\)$/{
39613	    s//\1/
39614	    q
39615	  }
39616	  /^X\(\/\).*/{
39617	    s//\1/
39618	    q
39619	  }
39620	  s/.*/./; q'`
39621  { as_dir="$ac_dir"
39622  case $as_dir in #(
39623  -*) as_dir=./$as_dir;;
39624  esac
39625  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39626    as_dirs=
39627    while :; do
39628      case $as_dir in #(
39629      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
39630      *) as_qdir=$as_dir;;
39631      esac
39632      as_dirs="'$as_qdir' $as_dirs"
39633      as_dir=`$as_dirname -- "$as_dir" ||
39634$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39635	 X"$as_dir" : 'X\(//\)[^/]' \| \
39636	 X"$as_dir" : 'X\(//\)$' \| \
39637	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39638$as_echo X"$as_dir" |
39639    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39640	    s//\1/
39641	    q
39642	  }
39643	  /^X\(\/\/\)[^/].*/{
39644	    s//\1/
39645	    q
39646	  }
39647	  /^X\(\/\/\)$/{
39648	    s//\1/
39649	    q
39650	  }
39651	  /^X\(\/\).*/{
39652	    s//\1/
39653	    q
39654	  }
39655	  s/.*/./; q'`
39656      test -d "$as_dir" && break
39657    done
39658    test -z "$as_dirs" || eval "mkdir $as_dirs"
39659  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39660$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
39661   { (exit 1); exit 1; }; }; }
39662  ac_builddir=.
39663
39664case "$ac_dir" in
39665.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39666*)
39667  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39668  # A ".." for each directory in $ac_dir_suffix.
39669  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39670  case $ac_top_builddir_sub in
39671  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39672  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39673  esac ;;
39674esac
39675ac_abs_top_builddir=$ac_pwd
39676ac_abs_builddir=$ac_pwd$ac_dir_suffix
39677# for backward compatibility:
39678ac_top_builddir=$ac_top_build_prefix
39679
39680case $srcdir in
39681  .)  # We are building in place.
39682    ac_srcdir=.
39683    ac_top_srcdir=$ac_top_builddir_sub
39684    ac_abs_top_srcdir=$ac_pwd ;;
39685  [\\/]* | ?:[\\/]* )  # Absolute name.
39686    ac_srcdir=$srcdir$ac_dir_suffix;
39687    ac_top_srcdir=$srcdir
39688    ac_abs_top_srcdir=$srcdir ;;
39689  *) # Relative name.
39690    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39691    ac_top_srcdir=$ac_top_build_prefix$srcdir
39692    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39693esac
39694ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39695
39696
39697  case $ac_mode in
39698  :F)
39699  #
39700  # CONFIG_FILE
39701  #
39702
39703  case $INSTALL in
39704  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39705  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39706  esac
39707  ac_MKDIR_P=$MKDIR_P
39708  case $MKDIR_P in
39709  [\\/$]* | ?:[\\/]* ) ;;
39710  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39711  esac
39712_ACEOF
39713
39714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39715# If the template does not know about datarootdir, expand it.
39716# FIXME: This hack should be removed a few years after 2.60.
39717ac_datarootdir_hack=; ac_datarootdir_seen=
39718
39719ac_sed_dataroot='
39720/datarootdir/ {
39721  p
39722  q
39723}
39724/@datadir@/p
39725/@docdir@/p
39726/@infodir@/p
39727/@localedir@/p
39728/@mandir@/p
39729'
39730case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39731*datarootdir*) ac_datarootdir_seen=yes;;
39732*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39733  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39734$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39735_ACEOF
39736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39737  ac_datarootdir_hack='
39738  s&@datadir@&$datadir&g
39739  s&@docdir@&$docdir&g
39740  s&@infodir@&$infodir&g
39741  s&@localedir@&$localedir&g
39742  s&@mandir@&$mandir&g
39743    s&\\\${datarootdir}&$datarootdir&g' ;;
39744esac
39745_ACEOF
39746
39747# Neutralize VPATH when `$srcdir' = `.'.
39748# Shell code in configure.ac might set extrasub.
39749# FIXME: do we really want to maintain this feature?
39750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39751ac_sed_extra="$ac_vpsub
39752$extrasub
39753_ACEOF
39754cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39755:t
39756/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39757s|@configure_input@|$ac_sed_conf_input|;t t
39758s&@top_builddir@&$ac_top_builddir_sub&;t t
39759s&@top_build_prefix@&$ac_top_build_prefix&;t t
39760s&@srcdir@&$ac_srcdir&;t t
39761s&@abs_srcdir@&$ac_abs_srcdir&;t t
39762s&@top_srcdir@&$ac_top_srcdir&;t t
39763s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39764s&@builddir@&$ac_builddir&;t t
39765s&@abs_builddir@&$ac_abs_builddir&;t t
39766s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39767s&@INSTALL@&$ac_INSTALL&;t t
39768s&@MKDIR_P@&$ac_MKDIR_P&;t t
39769$ac_datarootdir_hack
39770"
39771eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
39772  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39773$as_echo "$as_me: error: could not create $ac_file" >&2;}
39774   { (exit 1); exit 1; }; }
39775
39776test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39777  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39778  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39779  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39780which seems to be undefined.  Please make sure it is defined." >&5
39781$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39782which seems to be undefined.  Please make sure it is defined." >&2;}
39783
39784  rm -f "$tmp/stdin"
39785  case $ac_file in
39786  -) cat "$tmp/out" && rm -f "$tmp/out";;
39787  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
39788  esac \
39789  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39790$as_echo "$as_me: error: could not create $ac_file" >&2;}
39791   { (exit 1); exit 1; }; }
39792 ;;
39793  :H)
39794  #
39795  # CONFIG_HEADER
39796  #
39797  if test x"$ac_file" != x-; then
39798    {
39799      $as_echo "/* $configure_input  */" \
39800      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
39801    } >"$tmp/config.h" \
39802      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39803$as_echo "$as_me: error: could not create $ac_file" >&2;}
39804   { (exit 1); exit 1; }; }
39805    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
39806      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39807$as_echo "$as_me: $ac_file is unchanged" >&6;}
39808    else
39809      rm -f "$ac_file"
39810      mv "$tmp/config.h" "$ac_file" \
39811	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
39812$as_echo "$as_me: error: could not create $ac_file" >&2;}
39813   { (exit 1); exit 1; }; }
39814    fi
39815  else
39816    $as_echo "/* $configure_input  */" \
39817      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
39818      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
39819$as_echo "$as_me: error: could not create -" >&2;}
39820   { (exit 1); exit 1; }; }
39821  fi
39822# Compute "$ac_file"'s index in $config_headers.
39823_am_stamp_count=1
39824for _am_header in $config_headers :; do
39825  case $_am_header in
39826    "$ac_file" | "$ac_file":* )
39827      break ;;
39828    * )
39829      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39830  esac
39831done
39832echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
39833$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39834	 X"$ac_file" : 'X\(//\)[^/]' \| \
39835	 X"$ac_file" : 'X\(//\)$' \| \
39836	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39837$as_echo X"$ac_file" |
39838    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39839	    s//\1/
39840	    q
39841	  }
39842	  /^X\(\/\/\)[^/].*/{
39843	    s//\1/
39844	    q
39845	  }
39846	  /^X\(\/\/\)$/{
39847	    s//\1/
39848	    q
39849	  }
39850	  /^X\(\/\).*/{
39851	    s//\1/
39852	    q
39853	  }
39854	  s/.*/./; q'`/stamp-h$_am_stamp_count
39855 ;;
39856
39857  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
39858$as_echo "$as_me: executing $ac_file commands" >&6;}
39859 ;;
39860  esac
39861
39862
39863  case $ac_file$ac_mode in
39864    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39865  # Strip MF so we end up with the name of the file.
39866  mf=`echo "$mf" | sed -e 's/:.*$//'`
39867  # Check whether this is an Automake generated Makefile or not.
39868  # We used to match only the files named `Makefile.in', but
39869  # some people rename them; so instead we look at the file content.
39870  # Grep'ing the first line is not enough: some people post-process
39871  # each Makefile.in and add a new line on top of each file to say so.
39872  # Grep'ing the whole file is not good either: AIX grep has a line
39873  # limit of 2048, but all sed's we know have understand at least 4000.
39874  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
39875    dirpart=`$as_dirname -- "$mf" ||
39876$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39877	 X"$mf" : 'X\(//\)[^/]' \| \
39878	 X"$mf" : 'X\(//\)$' \| \
39879	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39880$as_echo X"$mf" |
39881    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39882	    s//\1/
39883	    q
39884	  }
39885	  /^X\(\/\/\)[^/].*/{
39886	    s//\1/
39887	    q
39888	  }
39889	  /^X\(\/\/\)$/{
39890	    s//\1/
39891	    q
39892	  }
39893	  /^X\(\/\).*/{
39894	    s//\1/
39895	    q
39896	  }
39897	  s/.*/./; q'`
39898  else
39899    continue
39900  fi
39901  # Extract the definition of DEPDIR, am__include, and am__quote
39902  # from the Makefile without running `make'.
39903  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39904  test -z "$DEPDIR" && continue
39905  am__include=`sed -n 's/^am__include = //p' < "$mf"`
39906  test -z "am__include" && continue
39907  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39908  # When using ansi2knr, U may be empty or an underscore; expand it
39909  U=`sed -n 's/^U = //p' < "$mf"`
39910  # Find all dependency output files, they are included files with
39911  # $(DEPDIR) in their names.  We invoke sed twice because it is the
39912  # simplest approach to changing $(DEPDIR) to its actual value in the
39913  # expansion.
39914  for file in `sed -n "
39915    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39916       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
39917    # Make sure the directory exists.
39918    test -f "$dirpart/$file" && continue
39919    fdir=`$as_dirname -- "$file" ||
39920$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39921	 X"$file" : 'X\(//\)[^/]' \| \
39922	 X"$file" : 'X\(//\)$' \| \
39923	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39924$as_echo X"$file" |
39925    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39926	    s//\1/
39927	    q
39928	  }
39929	  /^X\(\/\/\)[^/].*/{
39930	    s//\1/
39931	    q
39932	  }
39933	  /^X\(\/\/\)$/{
39934	    s//\1/
39935	    q
39936	  }
39937	  /^X\(\/\).*/{
39938	    s//\1/
39939	    q
39940	  }
39941	  s/.*/./; q'`
39942    { as_dir=$dirpart/$fdir
39943  case $as_dir in #(
39944  -*) as_dir=./$as_dir;;
39945  esac
39946  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39947    as_dirs=
39948    while :; do
39949      case $as_dir in #(
39950      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
39951      *) as_qdir=$as_dir;;
39952      esac
39953      as_dirs="'$as_qdir' $as_dirs"
39954      as_dir=`$as_dirname -- "$as_dir" ||
39955$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39956	 X"$as_dir" : 'X\(//\)[^/]' \| \
39957	 X"$as_dir" : 'X\(//\)$' \| \
39958	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39959$as_echo X"$as_dir" |
39960    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39961	    s//\1/
39962	    q
39963	  }
39964	  /^X\(\/\/\)[^/].*/{
39965	    s//\1/
39966	    q
39967	  }
39968	  /^X\(\/\/\)$/{
39969	    s//\1/
39970	    q
39971	  }
39972	  /^X\(\/\).*/{
39973	    s//\1/
39974	    q
39975	  }
39976	  s/.*/./; q'`
39977      test -d "$as_dir" && break
39978    done
39979    test -z "$as_dirs" || eval "mkdir $as_dirs"
39980  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39981$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
39982   { (exit 1); exit 1; }; }; }
39983    # echo "creating $dirpart/$file"
39984    echo '# dummy' > "$dirpart/$file"
39985  done
39986done
39987 ;;
39988    "po-directories":C)
39989    for ac_file in $CONFIG_FILES; do
39990      # Support "outfile[:infile[:infile...]]"
39991      case "$ac_file" in
39992        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
39993      esac
39994      # PO directories have a Makefile.in generated from Makefile.in.in.
39995      case "$ac_file" in */Makefile.in)
39996        # Adjust a relative srcdir.
39997        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
39998        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
39999        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
40000        # In autoconf-2.13 it is called $ac_given_srcdir.
40001        # In autoconf-2.50 it is called $srcdir.
40002        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
40003        case "$ac_given_srcdir" in
40004          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
40005          /*) top_srcdir="$ac_given_srcdir" ;;
40006          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
40007        esac
40008        # Treat a directory as a PO directory if and only if it has a
40009        # POTFILES.in file. This allows packages to have multiple PO
40010        # directories under different names or in different locations.
40011        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
40012          rm -f "$ac_dir/POTFILES"
40013          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
40014          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
40015          POMAKEFILEDEPS="POTFILES.in"
40016          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
40017          # on $ac_dir but don't depend on user-specified configuration
40018          # parameters.
40019          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
40020            # The LINGUAS file contains the set of available languages.
40021            if test -n "$OBSOLETE_ALL_LINGUAS"; then
40022              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
40023            fi
40024            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
40025            # Hide the ALL_LINGUAS assigment from automake < 1.5.
40026            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
40027            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
40028          else
40029            # The set of available languages was given in configure.in.
40030            # Hide the ALL_LINGUAS assigment from automake < 1.5.
40031            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
40032          fi
40033          # Compute POFILES
40034          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
40035          # Compute UPDATEPOFILES
40036          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
40037          # Compute DUMMYPOFILES
40038          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
40039          # Compute GMOFILES
40040          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
40041          case "$ac_given_srcdir" in
40042            .) srcdirpre= ;;
40043            *) srcdirpre='$(srcdir)/' ;;
40044          esac
40045          POFILES=
40046          UPDATEPOFILES=
40047          DUMMYPOFILES=
40048          GMOFILES=
40049          for lang in $ALL_LINGUAS; do
40050            POFILES="$POFILES $srcdirpre$lang.po"
40051            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
40052            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
40053            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
40054          done
40055          # CATALOGS depends on both $ac_dir and the user's LINGUAS
40056          # environment variable.
40057          INST_LINGUAS=
40058          if test -n "$ALL_LINGUAS"; then
40059            for presentlang in $ALL_LINGUAS; do
40060              useit=no
40061              if test "%UNSET%" != "$LINGUAS"; then
40062                desiredlanguages="$LINGUAS"
40063              else
40064                desiredlanguages="$ALL_LINGUAS"
40065              fi
40066              for desiredlang in $desiredlanguages; do
40067                # Use the presentlang catalog if desiredlang is
40068                #   a. equal to presentlang, or
40069                #   b. a variant of presentlang (because in this case,
40070                #      presentlang can be used as a fallback for messages
40071                #      which are not translated in the desiredlang catalog).
40072                case "$desiredlang" in
40073                  "$presentlang"*) useit=yes;;
40074                esac
40075              done
40076              if test $useit = yes; then
40077                INST_LINGUAS="$INST_LINGUAS $presentlang"
40078              fi
40079            done
40080          fi
40081          CATALOGS=
40082          if test -n "$INST_LINGUAS"; then
40083            for lang in $INST_LINGUAS; do
40084              CATALOGS="$CATALOGS $lang.gmo"
40085            done
40086          fi
40087          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
40088          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
40089          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
40090            if test -f "$f"; then
40091              case "$f" in
40092                *.orig | *.bak | *~) ;;
40093                *) cat "$f" >> "$ac_dir/Makefile" ;;
40094              esac
40095            fi
40096          done
40097        fi
40098        ;;
40099      esac
40100    done ;;
40101    "gnulib-lib/Makefile":F)
40102  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
40103  mv $ac_file.tmp $ac_file
40104 ;;
40105    "src/Makefile":F)
40106  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
40107  mv $ac_file.tmp $ac_file
40108 ;;
40109    "src/gettext.sh":F) chmod a+x src/gettext.sh ;;
40110    "man/Makefile":F)
40111  sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
40112  mv $ac_file.tmp $ac_file
40113 ;;
40114
40115  esac
40116done # for ac_tag
40117
40118
40119{ (exit 0); exit 0; }
40120_ACEOF
40121chmod +x $CONFIG_STATUS
40122ac_clean_files=$ac_clean_files_save
40123
40124test $ac_write_fail = 0 ||
40125  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
40126$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
40127   { (exit 1); exit 1; }; }
40128
40129
40130# configure is writing to config.log, and then calls config.status.
40131# config.status does its own redirection, appending to config.log.
40132# Unfortunately, on DOS this fails, as config.log is still kept open
40133# by configure, so config.status won't be able to write to it; its
40134# output is simply discarded.  So we exec the FD to /dev/null,
40135# effectively closing config.log, so it can be properly (re)opened and
40136# appended to by config.status.  When coming back to configure, we
40137# need to make the FD available again.
40138if test "$no_create" != yes; then
40139  ac_cs_success=:
40140  ac_config_status_args=
40141  test "$silent" = yes &&
40142    ac_config_status_args="$ac_config_status_args --quiet"
40143  exec 5>/dev/null
40144  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40145  exec 5>>config.log
40146  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40147  # would make configure fail if this is the last instruction.
40148  $ac_cs_success || { (exit 1); exit 1; }
40149fi
40150
40151#
40152# CONFIG_SUBDIRS section.
40153#
40154if test "$no_recursion" != yes; then
40155
40156  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
40157  # so they do not pile up.
40158  ac_sub_configure_args=
40159  ac_prev=
40160  eval "set x $ac_configure_args"
40161  shift
40162  for ac_arg
40163  do
40164    if test -n "$ac_prev"; then
40165      ac_prev=
40166      continue
40167    fi
40168    case $ac_arg in
40169    -cache-file | --cache-file | --cache-fil | --cache-fi \
40170    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40171      ac_prev=cache_file ;;
40172    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40173    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40174    | --c=*)
40175      ;;
40176    --config-cache | -C)
40177      ;;
40178    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40179      ac_prev=srcdir ;;
40180    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40181      ;;
40182    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40183      ac_prev=prefix ;;
40184    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40185      ;;
40186    --disable-option-checking)
40187      ;;
40188    *)
40189      case $ac_arg in
40190      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40191      esac
40192      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
40193    esac
40194  done
40195
40196  # Always prepend --prefix to ensure using the same prefix
40197  # in subdir configurations.
40198  ac_arg="--prefix=$prefix"
40199  case $ac_arg in
40200  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
40201  esac
40202  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
40203
40204  # Pass --silent
40205  if test "$silent" = yes; then
40206    ac_sub_configure_args="--silent $ac_sub_configure_args"
40207  fi
40208
40209  # Always prepend --disable-option-checking to silence warnings, since
40210  # different subdirs can have different --enable and --with options.
40211  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
40212
40213  ac_popdir=`pwd`
40214  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40215
40216    # Do not complain, so a configure script can configure whichever
40217    # parts of a large source tree are present.
40218    test -d "$srcdir/$ac_dir" || continue
40219
40220    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
40221    $as_echo "$as_me:$LINENO: $ac_msg" >&5
40222    $as_echo "$ac_msg" >&6
40223    { as_dir="$ac_dir"
40224  case $as_dir in #(
40225  -*) as_dir=./$as_dir;;
40226  esac
40227  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40228    as_dirs=
40229    while :; do
40230      case $as_dir in #(
40231      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40232      *) as_qdir=$as_dir;;
40233      esac
40234      as_dirs="'$as_qdir' $as_dirs"
40235      as_dir=`$as_dirname -- "$as_dir" ||
40236$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40237	 X"$as_dir" : 'X\(//\)[^/]' \| \
40238	 X"$as_dir" : 'X\(//\)$' \| \
40239	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40240$as_echo X"$as_dir" |
40241    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40242	    s//\1/
40243	    q
40244	  }
40245	  /^X\(\/\/\)[^/].*/{
40246	    s//\1/
40247	    q
40248	  }
40249	  /^X\(\/\/\)$/{
40250	    s//\1/
40251	    q
40252	  }
40253	  /^X\(\/\).*/{
40254	    s//\1/
40255	    q
40256	  }
40257	  s/.*/./; q'`
40258      test -d "$as_dir" && break
40259    done
40260    test -z "$as_dirs" || eval "mkdir $as_dirs"
40261  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40262$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
40263   { (exit 1); exit 1; }; }; }
40264    ac_builddir=.
40265
40266case "$ac_dir" in
40267.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40268*)
40269  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
40270  # A ".." for each directory in $ac_dir_suffix.
40271  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
40272  case $ac_top_builddir_sub in
40273  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40274  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40275  esac ;;
40276esac
40277ac_abs_top_builddir=$ac_pwd
40278ac_abs_builddir=$ac_pwd$ac_dir_suffix
40279# for backward compatibility:
40280ac_top_builddir=$ac_top_build_prefix
40281
40282case $srcdir in
40283  .)  # We are building in place.
40284    ac_srcdir=.
40285    ac_top_srcdir=$ac_top_builddir_sub
40286    ac_abs_top_srcdir=$ac_pwd ;;
40287  [\\/]* | ?:[\\/]* )  # Absolute name.
40288    ac_srcdir=$srcdir$ac_dir_suffix;
40289    ac_top_srcdir=$srcdir
40290    ac_abs_top_srcdir=$srcdir ;;
40291  *) # Relative name.
40292    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40293    ac_top_srcdir=$ac_top_build_prefix$srcdir
40294    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40295esac
40296ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40297
40298
40299    cd "$ac_dir"
40300
40301    # Check for guested configure; otherwise get Cygnus style configure.
40302    if test -f "$ac_srcdir/configure.gnu"; then
40303      ac_sub_configure=$ac_srcdir/configure.gnu
40304    elif test -f "$ac_srcdir/configure"; then
40305      ac_sub_configure=$ac_srcdir/configure
40306    elif test -f "$ac_srcdir/configure.in"; then
40307      # This should be Cygnus configure.
40308      ac_sub_configure=$ac_aux_dir/configure
40309    else
40310      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40311$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40312      ac_sub_configure=
40313    fi
40314
40315    # The recursion is here.
40316    if test -n "$ac_sub_configure"; then
40317      # Make the cache file name correct relative to the subdirectory.
40318      case $cache_file in
40319      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40320      *) # Relative name.
40321	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
40322      esac
40323
40324      { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40325$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40326      # The eval makes quoting arguments work.
40327      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
40328	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
40329	{ { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
40330$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40331   { (exit 1); exit 1; }; }
40332    fi
40333
40334    cd "$ac_popdir"
40335  done
40336fi
40337if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40338  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40339$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40340fi
40341
40342