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="src/msgfmt.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='gtpo_LTLIBOBJS
797gtpo_LIBOBJS
798gl_LTLIBOBJS
799gl_LIBOBJS
800LTLIBOBJS
801LIBOBJS
802subdirs
803TESTLIBASPRINTF
804LOCALE_JA
805CROSS_COMPILING
806PERL
807TEXI2PDF
808DVIPS
809aclocaldir
810lispdir
811EMACSLOADPATH
812EMACS
813HAVE_GLOBAL_SYMBOL_PIPE
814GLOBAL_SYMBOL_PIPE
815NM
816LIBEXPAT_PREFIX
817HAVE_LIBEXPAT
818LTLIBEXPAT
819LIBEXPAT
820WOE32DLL_FALSE
821WOE32DLL_TRUE
822LIBGREPOBJS
823WCTYPE_H
824HAVE_WCTYPE_H
825NEXT_WCTYPE_H
826HAVE_WINT_T
827HAVE_ISWCNTRL
828NEXT_WCHAR_H
829HAVE_WCHAR_H
830WCHAR_H
831REPLACE_WCWIDTH
832HAVE_DECL_WCWIDTH
833GNULIB_WCWIDTH
834EOVERFLOW
835HAVE_UNISTD_H
836NEXT_UNISTD_H
837INCTERMINFO
838LTLIBTERMINFO
839LIBTERMINFO
840SYS_STAT_H
841NEXT_SYS_STAT_H
842HAVE_IO_H
843HAVE_DECL_MKDIR
844HAVE_LSTAT
845NEXT_STRING_H
846NEXT_STDLIB_H
847NEXT_STDIO_H
848STDINT_H
849WINT_T_SUFFIX
850WCHAR_T_SUFFIX
851SIZE_T_SUFFIX
852SIG_ATOMIC_T_SUFFIX
853PTRDIFF_T_SUFFIX
854HAVE_SIGNED_WINT_T
855HAVE_SIGNED_WCHAR_T
856HAVE_SIGNED_SIG_ATOMIC_T
857BITSIZEOF_WINT_T
858BITSIZEOF_WCHAR_T
859BITSIZEOF_SIZE_T
860BITSIZEOF_SIG_ATOMIC_T
861BITSIZEOF_PTRDIFF_T
862HAVE_SYS_BITYPES_H
863HAVE_SYS_INTTYPES_H
864HAVE_STDINT_H
865NEXT_STDINT_H
866HAVE_SYS_TYPES_H
867HAVE_INTTYPES_H
868HAVE_UNSIGNED_LONG_LONG_INT
869HAVE_LONG_LONG_INT
870HAVE__BOOL
871STDBOOL_H
872NEXT_SIGNAL_H
873HAVE_SIGSET_T
874HAVE_POSIX_SIGNALBLOCKING
875GNULIB_SIGPROCMASK
876RELOCATABLE_BUILD_DIR
877RELOCATABLE_SRC_DIR
878RELOCATABLE_CONFIG_H_DIR
879RELOCATABLE_LIBRARY_PATH
880RELOCATABLE_VIA_LD_FALSE
881RELOCATABLE_VIA_LD_TRUE
882INSTALL_PROGRAM_ENV
883RELOCATABLE_LDFLAGS
884RELOCATABLE
885REPLACE_LSEEK
886REPLACE_LCHOWN
887REPLACE_GETCWD
888REPLACE_FCHDIR
889REPLACE_CHOWN
890HAVE_DECL_GETLOGIN_R
891HAVE_SLEEP
892HAVE_READLINK
893HAVE_FTRUNCATE
894HAVE_DUP2
895GNULIB_SLEEP
896GNULIB_READLINK
897GNULIB_LSEEK
898GNULIB_LCHOWN
899GNULIB_GETLOGIN_R
900GNULIB_GETCWD
901GNULIB_FTRUNCATE
902GNULIB_FCHDIR
903GNULIB_DUP2
904GNULIB_CHOWN
905OPENMP_CFLAGS
906NO_CXX
907LOCALE_ZH_CN
908LOCALE_FR_UTF8
909REPLACE_STRERROR
910HAVE_DECL_STRERROR
911HAVE_DECL_STRTOK_R
912HAVE_STRCASESTR
913HAVE_STRSEP
914HAVE_STRPBRK
915HAVE_DECL_STRNLEN
916HAVE_DECL_STRNDUP
917HAVE_STRNDUP
918HAVE_DECL_STRDUP
919HAVE_STRCHRNUL
920HAVE_DECL_STRNCASECMP
921HAVE_STRCASECMP
922HAVE_STPNCPY
923HAVE_STPCPY
924HAVE_DECL_MEMRCHR
925HAVE_MEMPCPY
926HAVE_DECL_MEMMEM
927GNULIB_STRERROR
928GNULIB_MBSTOK_R
929GNULIB_MBSSEP
930GNULIB_MBSSPN
931GNULIB_MBSPBRK
932GNULIB_MBSCSPN
933GNULIB_MBSCASESTR
934GNULIB_MBSPCASECMP
935GNULIB_MBSNCASECMP
936GNULIB_MBSCASECMP
937GNULIB_MBSSTR
938GNULIB_MBSRCHR
939GNULIB_MBSCHR
940GNULIB_MBSNLEN
941GNULIB_MBSLEN
942GNULIB_STRTOK_R
943GNULIB_STRCASESTR
944GNULIB_STRSEP
945GNULIB_STRPBRK
946GNULIB_STRNLEN
947GNULIB_STRNDUP
948GNULIB_STRDUP
949GNULIB_STRCHRNUL
950GNULIB_STPNCPY
951GNULIB_STPCPY
952GNULIB_MEMRCHR
953GNULIB_MEMPCPY
954GNULIB_MEMMEM
955REPLACE_PUTENV
956REPLACE_MKSTEMP
957HAVE_REALLOC_POSIX
958HAVE_MKDTEMP
959HAVE_GETSUBOPT
960HAVE_CALLOC_POSIX
961GNULIB_PUTENV
962GNULIB_MKSTEMP
963GNULIB_MKDTEMP
964GNULIB_GETSUBOPT
965GNULIB_CALLOC_POSIX
966GNULIB_REALLOC_POSIX
967GNULIB_MALLOC_POSIX
968HAVE_MALLOC_POSIX
969LIBSCHED
970LOCALE_H
971NEXT_LOCALE_H
972INCLUDED_LIBXML_FALSE
973INCLUDED_LIBXML_TRUE
974LIBXML_H
975INCXML
976LTLIBXML
977LIBXML
978INCLUDED_LIBCROCO_FALSE
979INCLUDED_LIBCROCO_TRUE
980INCCROCO
981LTLIBCROCO
982LIBCROCO
983INCLUDED_LIBGLIB_FALSE
984INCLUDED_LIBGLIB_TRUE
985LIBGLIB_H
986INCGLIB
987LTLIBGLIB
988LIBGLIB
989ICONV_H
990NEXT_ICONV_H
991REPLACE_ICONV_UTF
992REPLACE_ICONV_OPEN
993REPLACE_ICONV
994SYS_TIME_H
995REPLACE_GETTIMEOFDAY
996HAVE_STRUCT_TIMEVAL
997HAVE_SYS_TIME_H
998NEXT_SYS_TIME_H
999GETOPT_H
1000REPLACE_GETLINE
1001HAVE_DECL_GETLINE
1002HAVE_DECL_GETDELIM
1003REPLACE_FFLUSH
1004REPLACE_FTELL
1005REPLACE_FTELLO
1006HAVE_FTELLO
1007REPLACE_FSEEK
1008REPLACE_FSEEKO
1009HAVE_FSEEKO
1010REPLACE_FREOPEN
1011REPLACE_FOPEN
1012REPLACE_VASPRINTF
1013HAVE_VASPRINTF
1014REPLACE_VSPRINTF
1015REPLACE_SPRINTF
1016HAVE_DECL_VSNPRINTF
1017REPLACE_VSNPRINTF
1018HAVE_DECL_SNPRINTF
1019REPLACE_SNPRINTF
1020REPLACE_VPRINTF
1021REPLACE_PRINTF
1022REPLACE_VFPRINTF
1023REPLACE_FPRINTF
1024GNULIB_GETLINE
1025GNULIB_GETDELIM
1026GNULIB_FFLUSH
1027GNULIB_FTELLO
1028GNULIB_FTELL
1029GNULIB_FSEEKO
1030GNULIB_FSEEK
1031GNULIB_FREOPEN
1032GNULIB_FOPEN
1033GNULIB_VASPRINTF
1034GNULIB_VSPRINTF_POSIX
1035GNULIB_VSNPRINTF
1036GNULIB_VPRINTF_POSIX
1037GNULIB_VFPRINTF_POSIX
1038GNULIB_SPRINTF_POSIX
1039GNULIB_SNPRINTF
1040GNULIB_PRINTF_POSIX
1041GNULIB_FPRINTF_POSIX
1042FNMATCH_H
1043FLOAT_H
1044NEXT_FLOAT_H
1045FCNTL_H
1046NEXT_FCNTL_H
1047INCLUDE_NEXT
1048REPLACE_OPEN
1049GNULIB_OPEN
1050LOCALE_TR_UTF8
1051LOCALE_FR
1052BYTESWAP_H
1053ALLOCA_H
1054LIB_ACL_TRIVIAL
1055LIB_ACL
1056GL_COND_LIBTOOL_FALSE
1057GL_COND_LIBTOOL_TRUE
1058MSGMERGE_LIBM
1059BISON_LOCALEDIR
1060POSUB
1061LTLIBINTL
1062LIBINTL
1063INTLLIBS
1064INTL_LIBTOOL_SUFFIX_PREFIX
1065INTLOBJS
1066GENCAT
1067INSTOBJEXT
1068DATADIRNAME
1069CATOBJEXT
1070USE_INCLUDED_LIBINTL
1071BUILD_INCLUDED_LIBINTL
1072LTLIBC
1073WINDRES
1074WOE32
1075WOE32DLL
1076HAVE_WPRINTF
1077HAVE_SNPRINTF
1078HAVE_ASPRINTF
1079HAVE_POSIX_PRINTF
1080INTL_MACOSX_LIBS
1081GLIBC21
1082INTLBISON
1083LTLIBICONV
1084LIBICONV
1085LTLIBMULTITHREAD
1086LIBMULTITHREAD
1087LTLIBTHREAD
1088LIBTHREAD
1089LIBPTH_PREFIX
1090LTLIBPTH
1091LIBPTH
1092PRI_MACROS_BROKEN
1093ALLOCA
1094HAVE_VISIBILITY
1095CFLAG_VISIBILITY
1096GLIBC2
1097XGETTEXT_EXTRA_OPTIONS
1098MSGMERGE
1099XGETTEXT_015
1100XGETTEXT
1101GMSGFMT_015
1102MSGFMT_015
1103GMSGFMT
1104MSGFMT
1105GETTEXT_MACRO_VERSION
1106USE_NLS
1107WOE32_FALSE
1108WOE32_TRUE
1109LTNOUNDEF
1110LIBTOOL
1111ac_ct_F77
1112FFLAGS
1113F77
1114CXXCPP
1115am__fastdepCXX_FALSE
1116am__fastdepCXX_TRUE
1117CXXDEPMODE
1118ac_ct_CXX
1119CXXFLAGS
1120CXX
1121OBJDUMP
1122AS
1123DLLTOOL
1124AR
1125ECHO
1126LN_S
1127SED
1128RANLIB
1129host_os
1130host_vendor
1131host_cpu
1132host
1133build_os
1134build_vendor
1135build_cpu
1136build
1137TESTCSHARP
1138HAVE_CLIX
1139HAVE_MONO
1140HAVE_ILRUN
1141CLIX_PATH
1142CLIX_PATH_VAR
1143MONO_PATH_SEPARATOR
1144MONO_PATH
1145HAVE_CLIX_IN_PATH
1146HAVE_MONO_IN_PATH
1147HAVE_ILRUN_IN_PATH
1148BUILDCSHARP
1149CSHARPCOMPFLAGS
1150HAVE_CSC
1151HAVE_MCS
1152HAVE_CSCC
1153HAVE_CSC_IN_PATH
1154HAVE_MCS_IN_PATH
1155HAVE_CSCC_IN_PATH
1156CSHARP_CHOICE
1157TESTJAVA
1158BUILDJAVA
1159JAR
1160HAVE_JIKES
1161HAVE_JAVAC
1162HAVE_GCJ_C
1163HAVE_JAVAC_ENVVAR
1164CONF_JAVAC
1165HAVE_JIKES_IN_PATH
1166HAVE_JAVAC_IN_PATH
1167HAVE_GCJ_IN_PATH
1168HAVE_JVIEW
1169HAVE_JRE
1170HAVE_JAVA
1171HAVE_GIJ
1172HAVE_JAVA_ENVVAR
1173CLASSPATH_SEPARATOR
1174CLASSPATH
1175CONF_JAVA
1176HAVE_JVIEW_IN_PATH
1177HAVE_JRE_IN_PATH
1178HAVE_JAVA_IN_PATH
1179HAVE_GIJ_IN_PATH
1180EGREP
1181GREP
1182CPP
1183BUILDJAVAEXE
1184HAVE_GCJ
1185GCJFLAGS
1186GCJ
1187JAVA_CHOICE
1188YFLAGS
1189YACC
1190am__fastdepCC_FALSE
1191am__fastdepCC_TRUE
1192CCDEPMODE
1193AMDEPBACKSLASH
1194AMDEP_FALSE
1195AMDEP_TRUE
1196am__quote
1197am__include
1198DEPDIR
1199OBJEXT
1200EXEEXT
1201ac_ct_CC
1202CPPFLAGS
1203LDFLAGS
1204CFLAGS
1205CC
1206am__untar
1207am__tar
1208AMTAR
1209am__leading_dot
1210SET_MAKE
1211AWK
1212mkdir_p
1213MKDIR_P
1214INSTALL_STRIP_PROGRAM
1215STRIP
1216install_sh
1217MAKEINFO
1218AUTOHEADER
1219AUTOMAKE
1220AUTOCONF
1221ACLOCAL
1222VERSION
1223PACKAGE
1224CYGPATH_W
1225am__isrc
1226INSTALL_DATA
1227INSTALL_SCRIPT
1228INSTALL_PROGRAM
1229target_alias
1230host_alias
1231build_alias
1232LIBS
1233ECHO_T
1234ECHO_N
1235ECHO_C
1236DEFS
1237mandir
1238localedir
1239libdir
1240psdir
1241pdfdir
1242dvidir
1243htmldir
1244infodir
1245docdir
1246oldincludedir
1247includedir
1248localstatedir
1249sharedstatedir
1250sysconfdir
1251datadir
1252datarootdir
1253libexecdir
1254sbindir
1255bindir
1256program_transform_name
1257prefix
1258exec_prefix
1259PACKAGE_BUGREPORT
1260PACKAGE_STRING
1261PACKAGE_VERSION
1262PACKAGE_TARNAME
1263PACKAGE_NAME
1264PATH_SEPARATOR
1265SHELL'
1266ac_subst_files='relocatable_sh'
1267ac_user_opts='
1268enable_option_checking
1269enable_dependency_tracking
1270enable_java
1271enable_native_java
1272enable_csharp
1273enable_threads
1274enable_shared
1275enable_static
1276enable_fast_install
1277with_gnu_ld
1278enable_libtool_lock
1279with_pic
1280with_tags
1281enable_nls
1282enable_rpath
1283with_libpth_prefix
1284with_libiconv_prefix
1285with_included_gettext
1286with_libintl_prefix
1287with_included_glib
1288with_libglib_2_0_prefix
1289with_included_libcroco
1290with_libcroco_0_6_prefix
1291with_included_libxml
1292with_libxml2_prefix
1293enable_openmp
1294enable_relocatable
1295enable_largefile
1296with_libncurses_prefix
1297with_libtermcap_prefix
1298with_libxcurses_prefix
1299with_libcurses_prefix
1300with_included_regex
1301with_libexpat_prefix
1302with_lispdir
1303with_emacs
1304'
1305      ac_precious_vars='build_alias
1306host_alias
1307target_alias
1308CC
1309CFLAGS
1310LDFLAGS
1311LIBS
1312CPPFLAGS
1313YACC
1314YFLAGS
1315GCJ
1316GCJFLAGS
1317CPP
1318CXX
1319CXXFLAGS
1320CCC
1321CXXCPP
1322F77
1323FFLAGS
1324EMACS
1325EMACSLOADPATH'
1326ac_subdirs_all='examples'
1327
1328# Initialize some variables set by options.
1329ac_init_help=
1330ac_init_version=false
1331ac_unrecognized_opts=
1332ac_unrecognized_sep=
1333# The variables have the same names as the options, with
1334# dashes changed to underlines.
1335cache_file=/dev/null
1336exec_prefix=NONE
1337no_create=
1338no_recursion=
1339prefix=NONE
1340program_prefix=NONE
1341program_suffix=NONE
1342program_transform_name=s,x,x,
1343silent=
1344site=
1345srcdir=
1346verbose=
1347x_includes=NONE
1348x_libraries=NONE
1349
1350# Installation directory options.
1351# These are left unexpanded so users can "make install exec_prefix=/foo"
1352# and all the variables that are supposed to be based on exec_prefix
1353# by default will actually change.
1354# Use braces instead of parens because sh, perl, etc. also accept them.
1355# (The list follows the same order as the GNU Coding Standards.)
1356bindir='${exec_prefix}/bin'
1357sbindir='${exec_prefix}/sbin'
1358libexecdir='${exec_prefix}/libexec'
1359datarootdir='${prefix}/share'
1360datadir='${datarootdir}'
1361sysconfdir='${prefix}/etc'
1362sharedstatedir='${prefix}/com'
1363localstatedir='${prefix}/var'
1364includedir='${prefix}/include'
1365oldincludedir='/usr/include'
1366docdir='${datarootdir}/doc/${PACKAGE}'
1367infodir='${datarootdir}/info'
1368htmldir='${docdir}'
1369dvidir='${docdir}'
1370pdfdir='${docdir}'
1371psdir='${docdir}'
1372libdir='${exec_prefix}/lib'
1373localedir='${datarootdir}/locale'
1374mandir='${datarootdir}/man'
1375
1376ac_prev=
1377ac_dashdash=
1378for ac_option
1379do
1380  # If the previous option needs an argument, assign it.
1381  if test -n "$ac_prev"; then
1382    eval $ac_prev=\$ac_option
1383    ac_prev=
1384    continue
1385  fi
1386
1387  case $ac_option in
1388  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1389  *)	ac_optarg=yes ;;
1390  esac
1391
1392  # Accept the important Cygnus configure options, so we can diagnose typos.
1393
1394  case $ac_dashdash$ac_option in
1395  --)
1396    ac_dashdash=yes ;;
1397
1398  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1399    ac_prev=bindir ;;
1400  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1401    bindir=$ac_optarg ;;
1402
1403  -build | --build | --buil | --bui | --bu)
1404    ac_prev=build_alias ;;
1405  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1406    build_alias=$ac_optarg ;;
1407
1408  -cache-file | --cache-file | --cache-fil | --cache-fi \
1409  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1410    ac_prev=cache_file ;;
1411  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1412  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1413    cache_file=$ac_optarg ;;
1414
1415  --config-cache | -C)
1416    cache_file=config.cache ;;
1417
1418  -datadir | --datadir | --datadi | --datad)
1419    ac_prev=datadir ;;
1420  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1421    datadir=$ac_optarg ;;
1422
1423  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1424  | --dataroo | --dataro | --datar)
1425    ac_prev=datarootdir ;;
1426  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1427  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1428    datarootdir=$ac_optarg ;;
1429
1430  -disable-* | --disable-*)
1431    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1432    # Reject names that are not valid shell variable names.
1433    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1434      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1435   { (exit 1); exit 1; }; }
1436    ac_useropt_orig=$ac_useropt
1437    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1438    case $ac_user_opts in
1439      *"
1440"enable_$ac_useropt"
1441"*) ;;
1442      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1443	 ac_unrecognized_sep=', ';;
1444    esac
1445    eval enable_$ac_useropt=no ;;
1446
1447  -docdir | --docdir | --docdi | --doc | --do)
1448    ac_prev=docdir ;;
1449  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1450    docdir=$ac_optarg ;;
1451
1452  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1453    ac_prev=dvidir ;;
1454  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1455    dvidir=$ac_optarg ;;
1456
1457  -enable-* | --enable-*)
1458    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1459    # Reject names that are not valid shell variable names.
1460    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1461      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1462   { (exit 1); exit 1; }; }
1463    ac_useropt_orig=$ac_useropt
1464    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1465    case $ac_user_opts in
1466      *"
1467"enable_$ac_useropt"
1468"*) ;;
1469      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1470	 ac_unrecognized_sep=', ';;
1471    esac
1472    eval enable_$ac_useropt=\$ac_optarg ;;
1473
1474  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1475  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1476  | --exec | --exe | --ex)
1477    ac_prev=exec_prefix ;;
1478  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1479  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1480  | --exec=* | --exe=* | --ex=*)
1481    exec_prefix=$ac_optarg ;;
1482
1483  -gas | --gas | --ga | --g)
1484    # Obsolete; use --with-gas.
1485    with_gas=yes ;;
1486
1487  -help | --help | --hel | --he | -h)
1488    ac_init_help=long ;;
1489  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1490    ac_init_help=recursive ;;
1491  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1492    ac_init_help=short ;;
1493
1494  -host | --host | --hos | --ho)
1495    ac_prev=host_alias ;;
1496  -host=* | --host=* | --hos=* | --ho=*)
1497    host_alias=$ac_optarg ;;
1498
1499  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1500    ac_prev=htmldir ;;
1501  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1502  | --ht=*)
1503    htmldir=$ac_optarg ;;
1504
1505  -includedir | --includedir | --includedi | --included | --include \
1506  | --includ | --inclu | --incl | --inc)
1507    ac_prev=includedir ;;
1508  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1509  | --includ=* | --inclu=* | --incl=* | --inc=*)
1510    includedir=$ac_optarg ;;
1511
1512  -infodir | --infodir | --infodi | --infod | --info | --inf)
1513    ac_prev=infodir ;;
1514  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1515    infodir=$ac_optarg ;;
1516
1517  -libdir | --libdir | --libdi | --libd)
1518    ac_prev=libdir ;;
1519  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1520    libdir=$ac_optarg ;;
1521
1522  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1523  | --libexe | --libex | --libe)
1524    ac_prev=libexecdir ;;
1525  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1526  | --libexe=* | --libex=* | --libe=*)
1527    libexecdir=$ac_optarg ;;
1528
1529  -localedir | --localedir | --localedi | --localed | --locale)
1530    ac_prev=localedir ;;
1531  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1532    localedir=$ac_optarg ;;
1533
1534  -localstatedir | --localstatedir | --localstatedi | --localstated \
1535  | --localstate | --localstat | --localsta | --localst | --locals)
1536    ac_prev=localstatedir ;;
1537  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1538  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1539    localstatedir=$ac_optarg ;;
1540
1541  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1542    ac_prev=mandir ;;
1543  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1544    mandir=$ac_optarg ;;
1545
1546  -nfp | --nfp | --nf)
1547    # Obsolete; use --without-fp.
1548    with_fp=no ;;
1549
1550  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1551  | --no-cr | --no-c | -n)
1552    no_create=yes ;;
1553
1554  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1555  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1556    no_recursion=yes ;;
1557
1558  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1559  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1560  | --oldin | --oldi | --old | --ol | --o)
1561    ac_prev=oldincludedir ;;
1562  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1563  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1564  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1565    oldincludedir=$ac_optarg ;;
1566
1567  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1568    ac_prev=prefix ;;
1569  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1570    prefix=$ac_optarg ;;
1571
1572  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1573  | --program-pre | --program-pr | --program-p)
1574    ac_prev=program_prefix ;;
1575  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1576  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1577    program_prefix=$ac_optarg ;;
1578
1579  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1580  | --program-suf | --program-su | --program-s)
1581    ac_prev=program_suffix ;;
1582  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1583  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1584    program_suffix=$ac_optarg ;;
1585
1586  -program-transform-name | --program-transform-name \
1587  | --program-transform-nam | --program-transform-na \
1588  | --program-transform-n | --program-transform- \
1589  | --program-transform | --program-transfor \
1590  | --program-transfo | --program-transf \
1591  | --program-trans | --program-tran \
1592  | --progr-tra | --program-tr | --program-t)
1593    ac_prev=program_transform_name ;;
1594  -program-transform-name=* | --program-transform-name=* \
1595  | --program-transform-nam=* | --program-transform-na=* \
1596  | --program-transform-n=* | --program-transform-=* \
1597  | --program-transform=* | --program-transfor=* \
1598  | --program-transfo=* | --program-transf=* \
1599  | --program-trans=* | --program-tran=* \
1600  | --progr-tra=* | --program-tr=* | --program-t=*)
1601    program_transform_name=$ac_optarg ;;
1602
1603  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1604    ac_prev=pdfdir ;;
1605  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1606    pdfdir=$ac_optarg ;;
1607
1608  -psdir | --psdir | --psdi | --psd | --ps)
1609    ac_prev=psdir ;;
1610  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1611    psdir=$ac_optarg ;;
1612
1613  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1614  | -silent | --silent | --silen | --sile | --sil)
1615    silent=yes ;;
1616
1617  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1618    ac_prev=sbindir ;;
1619  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1620  | --sbi=* | --sb=*)
1621    sbindir=$ac_optarg ;;
1622
1623  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1624  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1625  | --sharedst | --shareds | --shared | --share | --shar \
1626  | --sha | --sh)
1627    ac_prev=sharedstatedir ;;
1628  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1629  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1630  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1631  | --sha=* | --sh=*)
1632    sharedstatedir=$ac_optarg ;;
1633
1634  -site | --site | --sit)
1635    ac_prev=site ;;
1636  -site=* | --site=* | --sit=*)
1637    site=$ac_optarg ;;
1638
1639  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1640    ac_prev=srcdir ;;
1641  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1642    srcdir=$ac_optarg ;;
1643
1644  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1645  | --syscon | --sysco | --sysc | --sys | --sy)
1646    ac_prev=sysconfdir ;;
1647  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1648  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1649    sysconfdir=$ac_optarg ;;
1650
1651  -target | --target | --targe | --targ | --tar | --ta | --t)
1652    ac_prev=target_alias ;;
1653  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1654    target_alias=$ac_optarg ;;
1655
1656  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1657    verbose=yes ;;
1658
1659  -version | --version | --versio | --versi | --vers | -V)
1660    ac_init_version=: ;;
1661
1662  -with-* | --with-*)
1663    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1664    # Reject names that are not valid shell variable names.
1665    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1666      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1667   { (exit 1); exit 1; }; }
1668    ac_useropt_orig=$ac_useropt
1669    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1670    case $ac_user_opts in
1671      *"
1672"with_$ac_useropt"
1673"*) ;;
1674      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1675	 ac_unrecognized_sep=', ';;
1676    esac
1677    eval with_$ac_useropt=\$ac_optarg ;;
1678
1679  -without-* | --without-*)
1680    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1681    # Reject names that are not valid shell variable names.
1682    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1683      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1684   { (exit 1); exit 1; }; }
1685    ac_useropt_orig=$ac_useropt
1686    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1687    case $ac_user_opts in
1688      *"
1689"with_$ac_useropt"
1690"*) ;;
1691      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1692	 ac_unrecognized_sep=', ';;
1693    esac
1694    eval with_$ac_useropt=no ;;
1695
1696  --x)
1697    # Obsolete; use --with-x.
1698    with_x=yes ;;
1699
1700  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1701  | --x-incl | --x-inc | --x-in | --x-i)
1702    ac_prev=x_includes ;;
1703  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1704  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1705    x_includes=$ac_optarg ;;
1706
1707  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1708  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1709    ac_prev=x_libraries ;;
1710  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1711  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1712    x_libraries=$ac_optarg ;;
1713
1714  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1715Try \`$0 --help' for more information." >&2
1716   { (exit 1); exit 1; }; }
1717    ;;
1718
1719  *=*)
1720    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1721    # Reject names that are not valid shell variable names.
1722    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1723      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1724   { (exit 1); exit 1; }; }
1725    eval $ac_envvar=\$ac_optarg
1726    export $ac_envvar ;;
1727
1728  *)
1729    # FIXME: should be removed in autoconf 3.0.
1730    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1731    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1732      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1733    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1734    ;;
1735
1736  esac
1737done
1738
1739if test -n "$ac_prev"; then
1740  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1741  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1742   { (exit 1); exit 1; }; }
1743fi
1744
1745if test -n "$ac_unrecognized_opts"; then
1746  case $enable_option_checking in
1747    no) ;;
1748    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1749   { (exit 1); exit 1; }; } ;;
1750    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1751  esac
1752fi
1753
1754# Check all directory arguments for consistency.
1755for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1756		datadir sysconfdir sharedstatedir localstatedir includedir \
1757		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1758		libdir localedir mandir
1759do
1760  eval ac_val=\$$ac_var
1761  # Remove trailing slashes.
1762  case $ac_val in
1763    */ )
1764      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1765      eval $ac_var=\$ac_val;;
1766  esac
1767  # Be sure to have absolute directory names.
1768  case $ac_val in
1769    [\\/$]* | ?:[\\/]* )  continue;;
1770    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1771  esac
1772  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1773   { (exit 1); exit 1; }; }
1774done
1775
1776# There might be people who depend on the old broken behavior: `$host'
1777# used to hold the argument of --host etc.
1778# FIXME: To remove some day.
1779build=$build_alias
1780host=$host_alias
1781target=$target_alias
1782
1783# FIXME: To remove some day.
1784if test "x$host_alias" != x; then
1785  if test "x$build_alias" = x; then
1786    cross_compiling=maybe
1787    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1788    If a cross compiler is detected then cross compile mode will be used." >&2
1789  elif test "x$build_alias" != "x$host_alias"; then
1790    cross_compiling=yes
1791  fi
1792fi
1793
1794ac_tool_prefix=
1795test -n "$host_alias" && ac_tool_prefix=$host_alias-
1796
1797test "$silent" = yes && exec 6>/dev/null
1798
1799
1800ac_pwd=`pwd` && test -n "$ac_pwd" &&
1801ac_ls_di=`ls -di .` &&
1802ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1803  { $as_echo "$as_me: error: working directory cannot be determined" >&2
1804   { (exit 1); exit 1; }; }
1805test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1806  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1807   { (exit 1); exit 1; }; }
1808
1809
1810# Find the source files, if location was not specified.
1811if test -z "$srcdir"; then
1812  ac_srcdir_defaulted=yes
1813  # Try the directory containing this script, then the parent directory.
1814  ac_confdir=`$as_dirname -- "$as_myself" ||
1815$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1816	 X"$as_myself" : 'X\(//\)[^/]' \| \
1817	 X"$as_myself" : 'X\(//\)$' \| \
1818	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1819$as_echo X"$as_myself" |
1820    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1821	    s//\1/
1822	    q
1823	  }
1824	  /^X\(\/\/\)[^/].*/{
1825	    s//\1/
1826	    q
1827	  }
1828	  /^X\(\/\/\)$/{
1829	    s//\1/
1830	    q
1831	  }
1832	  /^X\(\/\).*/{
1833	    s//\1/
1834	    q
1835	  }
1836	  s/.*/./; q'`
1837  srcdir=$ac_confdir
1838  if test ! -r "$srcdir/$ac_unique_file"; then
1839    srcdir=..
1840  fi
1841else
1842  ac_srcdir_defaulted=no
1843fi
1844if test ! -r "$srcdir/$ac_unique_file"; then
1845  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1846  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1847   { (exit 1); exit 1; }; }
1848fi
1849ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1850ac_abs_confdir=`(
1851	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1852   { (exit 1); exit 1; }; }
1853	pwd)`
1854# When building in place, set srcdir=.
1855if test "$ac_abs_confdir" = "$ac_pwd"; then
1856  srcdir=.
1857fi
1858# Remove unnecessary trailing slashes from srcdir.
1859# Double slashes in file names in object file debugging info
1860# mess up M-x gdb in Emacs.
1861case $srcdir in
1862*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1863esac
1864for ac_var in $ac_precious_vars; do
1865  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1866  eval ac_env_${ac_var}_value=\$${ac_var}
1867  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1868  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1869done
1870
1871#
1872# Report the --help message.
1873#
1874if test "$ac_init_help" = "long"; then
1875  # Omit some internal or obsolete options to make the list less imposing.
1876  # This message is too long to be a string in the A/UX 3.1 sh.
1877  cat <<_ACEOF
1878\`configure' configures this package to adapt to many kinds of systems.
1879
1880Usage: $0 [OPTION]... [VAR=VALUE]...
1881
1882To assign environment variables (e.g., CC, CFLAGS...), specify them as
1883VAR=VALUE.  See below for descriptions of some of the useful variables.
1884
1885Defaults for the options are specified in brackets.
1886
1887Configuration:
1888  -h, --help              display this help and exit
1889      --help=short        display options specific to this package
1890      --help=recursive    display the short help of all the included packages
1891  -V, --version           display version information and exit
1892  -q, --quiet, --silent   do not print \`checking...' messages
1893      --cache-file=FILE   cache test results in FILE [disabled]
1894  -C, --config-cache      alias for \`--cache-file=config.cache'
1895  -n, --no-create         do not create output files
1896      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1897
1898Installation directories:
1899  --prefix=PREFIX         install architecture-independent files in PREFIX
1900                          [$ac_default_prefix]
1901  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1902                          [PREFIX]
1903
1904By default, \`make install' will install all the files in
1905\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1906an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1907for instance \`--prefix=\$HOME'.
1908
1909For better control, use the options below.
1910
1911Fine tuning of the installation directories:
1912  --bindir=DIR            user executables [EPREFIX/bin]
1913  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1914  --libexecdir=DIR        program executables [EPREFIX/libexec]
1915  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1916  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1917  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1918  --libdir=DIR            object code libraries [EPREFIX/lib]
1919  --includedir=DIR        C header files [PREFIX/include]
1920  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1921  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1922  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1923  --infodir=DIR           info documentation [DATAROOTDIR/info]
1924  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1925  --mandir=DIR            man documentation [DATAROOTDIR/man]
1926  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1927  --htmldir=DIR           html documentation [DOCDIR]
1928  --dvidir=DIR            dvi documentation [DOCDIR]
1929  --pdfdir=DIR            pdf documentation [DOCDIR]
1930  --psdir=DIR             ps documentation [DOCDIR]
1931_ACEOF
1932
1933  cat <<\_ACEOF
1934
1935Program names:
1936  --program-prefix=PREFIX            prepend PREFIX to installed program names
1937  --program-suffix=SUFFIX            append SUFFIX to installed program names
1938  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1939
1940System types:
1941  --build=BUILD     configure for building on BUILD [guessed]
1942  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1943_ACEOF
1944fi
1945
1946if test -n "$ac_init_help"; then
1947
1948  cat <<\_ACEOF
1949
1950Optional Features:
1951  --disable-option-checking  ignore unrecognized --enable/--with options
1952  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1953  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1954  --disable-dependency-tracking  speeds up one-time build
1955  --enable-dependency-tracking   do not reject slow dependency extractors
1956  --disable-java          do not build Java sources
1957  --disable-native-java   do not compile Java to native executables
1958  --enable-csharp[=IMPL]  choose preferred C# implementation (pnet or mono)
1959  --enable-threads={posix|solaris|pth|win32}
1960                          specify multithreading API
1961  --disable-threads       build without multithread safety
1962  --enable-shared[=PKGS]  build shared libraries [default=yes]
1963  --enable-static[=PKGS]  build static libraries [default=yes]
1964  --enable-fast-install[=PKGS]
1965                          optimize for fast installation [default=yes]
1966  --disable-libtool-lock  avoid locking (might break parallel builds)
1967  --disable-nls           do not use Native Language Support
1968  --disable-rpath         do not hardcode runtime library paths
1969  --disable-openmp        do not use OpenMP
1970  --enable-relocatable    install a package that can be moved in the filesystem
1971  --disable-largefile     omit support for large files
1972
1973Optional Packages:
1974  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1975  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1976  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1977  --with-pic              try to use only PIC/non-PIC objects [default=use
1978                          both]
1979  --with-tags[=TAGS]      include additional configurations [automatic]
1980  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1981  --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
1982  --without-libpth-prefix     don't search for libpth in includedir and libdir
1983  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1984  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1985  --with-included-gettext use the GNU gettext library included here
1986  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1987  --without-libintl-prefix     don't search for libintl in includedir and libdir
1988  --with-included-glib    use the glib2 included here
1989  --with-libglib-2.0-prefix[=DIR]  search for libglib-2.0 in DIR/include and DIR/lib
1990  --without-libglib-2.0-prefix     don't search for libglib-2.0 in includedir and libdir
1991  --with-included-libcroco  use the libcroco included here
1992  --with-libcroco-0.6-prefix[=DIR]  search for libcroco-0.6 in DIR/include and DIR/lib
1993  --without-libcroco-0.6-prefix     don't search for libcroco-0.6 in includedir and libdir
1994  --with-included-libxml  use the libxml2 included here
1995  --with-libxml2-prefix[=DIR]  search for libxml2 in DIR/include and DIR/lib
1996  --without-libxml2-prefix     don't search for libxml2 in includedir and libdir
1997  --with-libncurses-prefix[=DIR]  search for libncurses in DIR/include and DIR/lib
1998  --without-libncurses-prefix     don't search for libncurses in includedir and libdir
1999  --with-libtermcap-prefix[=DIR]  search for libtermcap in DIR/include and DIR/lib
2000  --without-libtermcap-prefix     don't search for libtermcap in includedir and libdir
2001  --with-libxcurses-prefix[=DIR]  search for libxcurses in DIR/include and DIR/lib
2002  --without-libxcurses-prefix     don't search for libxcurses in includedir and libdir
2003  --with-libcurses-prefix[=DIR]  search for libcurses in DIR/include and DIR/lib
2004  --without-libcurses-prefix     don't search for libcurses in includedir and libdir
2005  --without-included-regex don't compile regex; this is the default on
2006                          systems with version 2 of the GNU C library
2007                          (use with caution on other system)
2008  --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
2009  --without-libexpat-prefix     don't search for libexpat in includedir and libdir
2010  --with-lispdir          override the default lisp directory
2011  --without-emacs         do not use Emacs, don't install po-mode
2012
2013Some influential environment variables:
2014  CC          C compiler command
2015  CFLAGS      C compiler flags
2016  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2017              nonstandard directory <lib dir>
2018  LIBS        libraries to pass to the linker, e.g. -l<library>
2019  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2020              you have headers in a nonstandard directory <include dir>
2021  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2022              the first program found out of: `bison -y', `byacc', `yacc'.
2023  YFLAGS      The list of arguments that will be passed by default to $YACC.
2024              This script will default YFLAGS to the empty string to avoid a
2025              default value of `-d' given by some make applications.
2026  GCJ         Java native code compiler command
2027  GCJFLAGS    Java native code compiler flags
2028  CPP         C preprocessor
2029  CXX         C++ compiler command
2030  CXXFLAGS    C++ compiler flags
2031  CXXCPP      C++ preprocessor
2032  F77         Fortran 77 compiler command
2033  FFLAGS      Fortran 77 compiler flags
2034  EMACS       the Emacs editor command
2035  EMACSLOADPATH
2036              the Emacs library search path
2037
2038Use these variables to override the choices made by `configure' or to help
2039it to find libraries and programs with nonstandard names/locations.
2040
2041_ACEOF
2042ac_status=$?
2043fi
2044
2045if test "$ac_init_help" = "recursive"; then
2046  # If there are subdirs, report their specific --help.
2047  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2048    test -d "$ac_dir" ||
2049      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2050      continue
2051    ac_builddir=.
2052
2053case "$ac_dir" in
2054.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055*)
2056  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2057  # A ".." for each directory in $ac_dir_suffix.
2058  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2059  case $ac_top_builddir_sub in
2060  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2061  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2062  esac ;;
2063esac
2064ac_abs_top_builddir=$ac_pwd
2065ac_abs_builddir=$ac_pwd$ac_dir_suffix
2066# for backward compatibility:
2067ac_top_builddir=$ac_top_build_prefix
2068
2069case $srcdir in
2070  .)  # We are building in place.
2071    ac_srcdir=.
2072    ac_top_srcdir=$ac_top_builddir_sub
2073    ac_abs_top_srcdir=$ac_pwd ;;
2074  [\\/]* | ?:[\\/]* )  # Absolute name.
2075    ac_srcdir=$srcdir$ac_dir_suffix;
2076    ac_top_srcdir=$srcdir
2077    ac_abs_top_srcdir=$srcdir ;;
2078  *) # Relative name.
2079    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2080    ac_top_srcdir=$ac_top_build_prefix$srcdir
2081    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2082esac
2083ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2084
2085    cd "$ac_dir" || { ac_status=$?; continue; }
2086    # Check for guested configure.
2087    if test -f "$ac_srcdir/configure.gnu"; then
2088      echo &&
2089      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2090    elif test -f "$ac_srcdir/configure"; then
2091      echo &&
2092      $SHELL "$ac_srcdir/configure" --help=recursive
2093    else
2094      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2095    fi || ac_status=$?
2096    cd "$ac_pwd" || { ac_status=$?; break; }
2097  done
2098fi
2099
2100test -n "$ac_init_help" && exit $ac_status
2101if $ac_init_version; then
2102  cat <<\_ACEOF
2103configure
2104generated by GNU Autoconf 2.63
2105
2106Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21072002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2108This configure script is free software; the Free Software Foundation
2109gives unlimited permission to copy, distribute and modify it.
2110_ACEOF
2111  exit
2112fi
2113cat >config.log <<_ACEOF
2114This file contains any messages produced by compilers while
2115running configure, to aid debugging if configure makes a mistake.
2116
2117It was created by $as_me, which was
2118generated by GNU Autoconf 2.63.  Invocation command line was
2119
2120  $ $0 $@
2121
2122_ACEOF
2123exec 5>>config.log
2124{
2125cat <<_ASUNAME
2126## --------- ##
2127## Platform. ##
2128## --------- ##
2129
2130hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2131uname -m = `(uname -m) 2>/dev/null || echo unknown`
2132uname -r = `(uname -r) 2>/dev/null || echo unknown`
2133uname -s = `(uname -s) 2>/dev/null || echo unknown`
2134uname -v = `(uname -v) 2>/dev/null || echo unknown`
2135
2136/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2137/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2138
2139/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2140/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2141/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2142/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2143/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2144/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2145/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2146
2147_ASUNAME
2148
2149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150for as_dir in $PATH
2151do
2152  IFS=$as_save_IFS
2153  test -z "$as_dir" && as_dir=.
2154  $as_echo "PATH: $as_dir"
2155done
2156IFS=$as_save_IFS
2157
2158} >&5
2159
2160cat >&5 <<_ACEOF
2161
2162
2163## ----------- ##
2164## Core tests. ##
2165## ----------- ##
2166
2167_ACEOF
2168
2169
2170# Keep a trace of the command line.
2171# Strip out --no-create and --no-recursion so they do not pile up.
2172# Strip out --silent because we don't want to record it for future runs.
2173# Also quote any args containing shell meta-characters.
2174# Make two passes to allow for proper duplicate-argument suppression.
2175ac_configure_args=
2176ac_configure_args0=
2177ac_configure_args1=
2178ac_must_keep_next=false
2179for ac_pass in 1 2
2180do
2181  for ac_arg
2182  do
2183    case $ac_arg in
2184    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2185    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2186    | -silent | --silent | --silen | --sile | --sil)
2187      continue ;;
2188    *\'*)
2189      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2190    esac
2191    case $ac_pass in
2192    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2193    2)
2194      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2195      if test $ac_must_keep_next = true; then
2196	ac_must_keep_next=false # Got value, back to normal.
2197      else
2198	case $ac_arg in
2199	  *=* | --config-cache | -C | -disable-* | --disable-* \
2200	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2201	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2202	  | -with-* | --with-* | -without-* | --without-* | --x)
2203	    case "$ac_configure_args0 " in
2204	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2205	    esac
2206	    ;;
2207	  -* ) ac_must_keep_next=true ;;
2208	esac
2209      fi
2210      ac_configure_args="$ac_configure_args '$ac_arg'"
2211      ;;
2212    esac
2213  done
2214done
2215$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2216$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2217
2218# When interrupted or exit'd, cleanup temporary files, and complete
2219# config.log.  We remove comments because anyway the quotes in there
2220# would cause problems or look ugly.
2221# WARNING: Use '\'' to represent an apostrophe within the trap.
2222# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2223trap 'exit_status=$?
2224  # Save into config.log some information that might help in debugging.
2225  {
2226    echo
2227
2228    cat <<\_ASBOX
2229## ---------------- ##
2230## Cache variables. ##
2231## ---------------- ##
2232_ASBOX
2233    echo
2234    # The following way of writing the cache mishandles newlines in values,
2235(
2236  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237    eval ac_val=\$$ac_var
2238    case $ac_val in #(
2239    *${as_nl}*)
2240      case $ac_var in #(
2241      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2243      esac
2244      case $ac_var in #(
2245      _ | IFS | as_nl) ;; #(
2246      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2247      *) $as_unset $ac_var ;;
2248      esac ;;
2249    esac
2250  done
2251  (set) 2>&1 |
2252    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253    *${as_nl}ac_space=\ *)
2254      sed -n \
2255	"s/'\''/'\''\\\\'\'''\''/g;
2256	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257      ;; #(
2258    *)
2259      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2260      ;;
2261    esac |
2262    sort
2263)
2264    echo
2265
2266    cat <<\_ASBOX
2267## ----------------- ##
2268## Output variables. ##
2269## ----------------- ##
2270_ASBOX
2271    echo
2272    for ac_var in $ac_subst_vars
2273    do
2274      eval ac_val=\$$ac_var
2275      case $ac_val in
2276      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2277      esac
2278      $as_echo "$ac_var='\''$ac_val'\''"
2279    done | sort
2280    echo
2281
2282    if test -n "$ac_subst_files"; then
2283      cat <<\_ASBOX
2284## ------------------- ##
2285## File substitutions. ##
2286## ------------------- ##
2287_ASBOX
2288      echo
2289      for ac_var in $ac_subst_files
2290      do
2291	eval ac_val=\$$ac_var
2292	case $ac_val in
2293	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2294	esac
2295	$as_echo "$ac_var='\''$ac_val'\''"
2296      done | sort
2297      echo
2298    fi
2299
2300    if test -s confdefs.h; then
2301      cat <<\_ASBOX
2302## ----------- ##
2303## confdefs.h. ##
2304## ----------- ##
2305_ASBOX
2306      echo
2307      cat confdefs.h
2308      echo
2309    fi
2310    test "$ac_signal" != 0 &&
2311      $as_echo "$as_me: caught signal $ac_signal"
2312    $as_echo "$as_me: exit $exit_status"
2313  } >&5
2314  rm -f core *.core core.conftest.* &&
2315    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2316    exit $exit_status
2317' 0
2318for ac_signal in 1 2 13 15; do
2319  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2320done
2321ac_signal=0
2322
2323# confdefs.h avoids OS command line length limits that DEFS can exceed.
2324rm -f -r conftest* confdefs.h
2325
2326# Predefined preprocessor variables.
2327
2328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_NAME "$PACKAGE_NAME"
2330_ACEOF
2331
2332
2333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2335_ACEOF
2336
2337
2338cat >>confdefs.h <<_ACEOF
2339#define PACKAGE_VERSION "$PACKAGE_VERSION"
2340_ACEOF
2341
2342
2343cat >>confdefs.h <<_ACEOF
2344#define PACKAGE_STRING "$PACKAGE_STRING"
2345_ACEOF
2346
2347
2348cat >>confdefs.h <<_ACEOF
2349#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2350_ACEOF
2351
2352
2353# Let the site file select an alternate cache file if it wants to.
2354# Prefer an explicitly selected file to automatically selected ones.
2355ac_site_file1=NONE
2356ac_site_file2=NONE
2357if test -n "$CONFIG_SITE"; then
2358  ac_site_file1=$CONFIG_SITE
2359elif test "x$prefix" != xNONE; then
2360  ac_site_file1=$prefix/share/config.site
2361  ac_site_file2=$prefix/etc/config.site
2362else
2363  ac_site_file1=$ac_default_prefix/share/config.site
2364  ac_site_file2=$ac_default_prefix/etc/config.site
2365fi
2366for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2367do
2368  test "x$ac_site_file" = xNONE && continue
2369  if test -r "$ac_site_file"; then
2370    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2371$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2372    sed 's/^/| /' "$ac_site_file" >&5
2373    . "$ac_site_file"
2374  fi
2375done
2376
2377if test -r "$cache_file"; then
2378  # Some versions of bash will fail to source /dev/null (special
2379  # files actually), so we avoid doing that.
2380  if test -f "$cache_file"; then
2381    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2382$as_echo "$as_me: loading cache $cache_file" >&6;}
2383    case $cache_file in
2384      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2385      *)                      . "./$cache_file";;
2386    esac
2387  fi
2388else
2389  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2390$as_echo "$as_me: creating cache $cache_file" >&6;}
2391  >$cache_file
2392fi
2393
2394gt_needs="$gt_needs need-ngettext"
2395gl_header_list="$gl_header_list stdlib.h"
2396gl_header_list="$gl_header_list string.h"
2397gl_func_list="$gl_func_list canonicalize_file_name"
2398gl_header_list="$gl_header_list sys/param.h"
2399gl_header_list="$gl_header_list unistd.h"
2400gl_func_list="$gl_func_list getcwd"
2401gl_func_list="$gl_func_list readlink"
2402gl_header_list="$gl_header_list utime.h"
2403gl_func_list="$gl_func_list raise"
2404gl_header_list="$gl_header_list fcntl.h"
2405gl_header_list="$gl_header_list float.h"
2406gl_func_list="$gl_func_list btowc"
2407gl_func_list="$gl_func_list isblank"
2408gl_func_list="$gl_func_list iswctype"
2409gl_func_list="$gl_func_list mbsrtowcs"
2410gl_func_list="$gl_func_list mempcpy"
2411gl_func_list="$gl_func_list wmemchr"
2412gl_func_list="$gl_func_list wmemcpy"
2413gl_func_list="$gl_func_list wmempcpy"
2414gl_header_list="$gl_header_list wctype.h"
2415gl_header_list="$gl_header_list sys/time.h"
2416gl_func_list="$gl_func_list gettimeofday"
2417gl_header_list="$gl_header_list iconv.h"
2418gl_header_list="$gl_header_list libcroco-0.6/libcroco/libcroco-config.h"
2419gl_header_list="$gl_header_list libxml2/libxml/xmlversion.h"
2420gl_header_list="$gl_header_list locale.h"
2421gl_header_list="$gl_header_list wchar.h"
2422gl_func_list="$gl_func_list isascii"
2423gl_func_list="$gl_func_list mbsinit"
2424gl_func_list="$gl_func_list setenv"
2425gl_header_list="$gl_header_list signal.h"
2426gl_header_list="$gl_header_list stdint.h"
2427gl_header_list="$gl_header_list stdio.h"
2428gl_func_list="$gl_func_list lstat"
2429gl_header_list="$gl_header_list sys/stat.h"
2430gl_func_list="$gl_func_list vasnprintf"
2431gl_func_list="$gl_func_list iswcntrl"
2432gl_func_list="$gl_func_list wcwidth"
2433# Check that the precious variables saved in the cache have kept the same
2434# value.
2435ac_cache_corrupted=false
2436for ac_var in $ac_precious_vars; do
2437  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2438  eval ac_new_set=\$ac_env_${ac_var}_set
2439  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2440  eval ac_new_val=\$ac_env_${ac_var}_value
2441  case $ac_old_set,$ac_new_set in
2442    set,)
2443      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2444$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2445      ac_cache_corrupted=: ;;
2446    ,set)
2447      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2448$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2449      ac_cache_corrupted=: ;;
2450    ,);;
2451    *)
2452      if test "x$ac_old_val" != "x$ac_new_val"; then
2453	# differences in whitespace do not lead to failure.
2454	ac_old_val_w=`echo x $ac_old_val`
2455	ac_new_val_w=`echo x $ac_new_val`
2456	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2457	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2458$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2459	  ac_cache_corrupted=:
2460	else
2461	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2462$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2463	  eval $ac_var=\$ac_old_val
2464	fi
2465	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2466$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2467	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2468$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2469      fi;;
2470  esac
2471  # Pass precious variables to config.status.
2472  if test "$ac_new_set" = set; then
2473    case $ac_new_val in
2474    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2475    *) ac_arg=$ac_var=$ac_new_val ;;
2476    esac
2477    case " $ac_configure_args " in
2478      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2479      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2480    esac
2481  fi
2482done
2483if $ac_cache_corrupted; then
2484  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2486  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2487$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2488  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2489$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2490   { (exit 1); exit 1; }; }
2491fi
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509ac_ext=c
2510ac_cpp='$CPP $CPPFLAGS'
2511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516
2517ac_aux_dir=
2518for ac_dir in ../build-aux "$srcdir"/../build-aux; do
2519  if test -f "$ac_dir/install-sh"; then
2520    ac_aux_dir=$ac_dir
2521    ac_install_sh="$ac_aux_dir/install-sh -c"
2522    break
2523  elif test -f "$ac_dir/install.sh"; then
2524    ac_aux_dir=$ac_dir
2525    ac_install_sh="$ac_aux_dir/install.sh -c"
2526    break
2527  elif test -f "$ac_dir/shtool"; then
2528    ac_aux_dir=$ac_dir
2529    ac_install_sh="$ac_aux_dir/shtool install -c"
2530    break
2531  fi
2532done
2533if test -z "$ac_aux_dir"; then
2534  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&5
2535$as_echo "$as_me: error: cannot find install-sh or install.sh in ../build-aux \"$srcdir\"/../build-aux" >&2;}
2536   { (exit 1); exit 1; }; }
2537fi
2538
2539# These three variables are undocumented and unsupported,
2540# and are intended to be withdrawn in a future Autoconf release.
2541# They can cause serious problems if a builder's source tree is in a directory
2542# whose full name contains unusual characters.
2543ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2544ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2545ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2546
2547
2548. $srcdir/../version.sh
2549am__api_version='1.10'
2550
2551# Find a good install program.  We prefer a C program (faster),
2552# so one script is as good as another.  But avoid the broken or
2553# incompatible versions:
2554# SysV /etc/install, /usr/sbin/install
2555# SunOS /usr/etc/install
2556# IRIX /sbin/install
2557# AIX /bin/install
2558# AmigaOS /C/install, which installs bootblocks on floppy discs
2559# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2560# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2561# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2562# OS/2's system install, which has a completely different semantic
2563# ./install, which can be erroneously created by make from ./install.sh.
2564# Reject install programs that cannot install multiple files.
2565{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2566$as_echo_n "checking for a BSD-compatible install... " >&6; }
2567if test -z "$INSTALL"; then
2568if test "${ac_cv_path_install+set}" = set; then
2569  $as_echo_n "(cached) " >&6
2570else
2571  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574  IFS=$as_save_IFS
2575  test -z "$as_dir" && as_dir=.
2576  # Account for people who put trailing slashes in PATH elements.
2577case $as_dir/ in
2578  ./ | .// | /cC/* | \
2579  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2580  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2581  /usr/ucb/* ) ;;
2582  *)
2583    # OSF1 and SCO ODT 3.0 have their own names for install.
2584    # Don't use installbsd from OSF since it installs stuff as root
2585    # by default.
2586    for ac_prog in ginstall scoinst install; do
2587      for ac_exec_ext in '' $ac_executable_extensions; do
2588	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2589	  if test $ac_prog = install &&
2590	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2591	    # AIX install.  It has an incompatible calling convention.
2592	    :
2593	  elif test $ac_prog = install &&
2594	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2595	    # program-specific install script used by HP pwplus--don't use.
2596	    :
2597	  else
2598	    rm -rf conftest.one conftest.two conftest.dir
2599	    echo one > conftest.one
2600	    echo two > conftest.two
2601	    mkdir conftest.dir
2602	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2603	      test -s conftest.one && test -s conftest.two &&
2604	      test -s conftest.dir/conftest.one &&
2605	      test -s conftest.dir/conftest.two
2606	    then
2607	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2608	      break 3
2609	    fi
2610	  fi
2611	fi
2612      done
2613    done
2614    ;;
2615esac
2616
2617done
2618IFS=$as_save_IFS
2619
2620rm -rf conftest.one conftest.two conftest.dir
2621
2622fi
2623  if test "${ac_cv_path_install+set}" = set; then
2624    INSTALL=$ac_cv_path_install
2625  else
2626    # As a last resort, use the slow shell script.  Don't cache a
2627    # value for INSTALL within a source directory, because that will
2628    # break other packages using the cache if that directory is
2629    # removed, or if the value is a relative name.
2630    INSTALL=$ac_install_sh
2631  fi
2632fi
2633{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2634$as_echo "$INSTALL" >&6; }
2635
2636# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2637# It thinks the first close brace ends the variable substitution.
2638test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2639
2640test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2641
2642test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2643
2644{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2645$as_echo_n "checking whether build environment is sane... " >&6; }
2646# Just in case
2647sleep 1
2648echo timestamp > conftest.file
2649# Do `set' in a subshell so we don't clobber the current shell's
2650# arguments.  Must try -L first in case configure is actually a
2651# symlink; some systems play weird games with the mod time of symlinks
2652# (eg FreeBSD returns the mod time of the symlink's containing
2653# directory).
2654if (
2655   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2656   if test "$*" = "X"; then
2657      # -L didn't work.
2658      set X `ls -t $srcdir/configure conftest.file`
2659   fi
2660   rm -f conftest.file
2661   if test "$*" != "X $srcdir/configure conftest.file" \
2662      && test "$*" != "X conftest.file $srcdir/configure"; then
2663
2664      # If neither matched, then we have a broken ls.  This can happen
2665      # if, for instance, CONFIG_SHELL is bash and it inherits a
2666      # broken ls alias from the environment.  This has actually
2667      # happened.  Such a system could not be considered "sane".
2668      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2669alias in your environment" >&5
2670$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2671alias in your environment" >&2;}
2672   { (exit 1); exit 1; }; }
2673   fi
2674
2675   test "$2" = conftest.file
2676   )
2677then
2678   # Ok.
2679   :
2680else
2681   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2682Check your system clock" >&5
2683$as_echo "$as_me: error: newly created file is older than distributed files!
2684Check your system clock" >&2;}
2685   { (exit 1); exit 1; }; }
2686fi
2687{ $as_echo "$as_me:$LINENO: result: yes" >&5
2688$as_echo "yes" >&6; }
2689test "$program_prefix" != NONE &&
2690  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2691# Use a double $ so make ignores it.
2692test "$program_suffix" != NONE &&
2693  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2694# Double any \ or $.
2695# By default was `s,x,x', remove it if useless.
2696ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2697program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2698
2699# expand $ac_aux_dir to an absolute path
2700am_aux_dir=`cd $ac_aux_dir && pwd`
2701
2702test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2703# Use eval to expand $SHELL
2704if eval "$MISSING --run true"; then
2705  am_missing_run="$MISSING --run "
2706else
2707  am_missing_run=
2708  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2709$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2710fi
2711
2712{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2713$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2714if test -z "$MKDIR_P"; then
2715  if test "${ac_cv_path_mkdir+set}" = set; then
2716  $as_echo_n "(cached) " >&6
2717else
2718  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2720do
2721  IFS=$as_save_IFS
2722  test -z "$as_dir" && as_dir=.
2723  for ac_prog in mkdir gmkdir; do
2724	 for ac_exec_ext in '' $ac_executable_extensions; do
2725	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2726	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2727	     'mkdir (GNU coreutils) '* | \
2728	     'mkdir (coreutils) '* | \
2729	     'mkdir (fileutils) '4.1*)
2730	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2731	       break 3;;
2732	   esac
2733	 done
2734       done
2735done
2736IFS=$as_save_IFS
2737
2738fi
2739
2740  if test "${ac_cv_path_mkdir+set}" = set; then
2741    MKDIR_P="$ac_cv_path_mkdir -p"
2742  else
2743    # As a last resort, use the slow shell script.  Don't cache a
2744    # value for MKDIR_P within a source directory, because that will
2745    # break other packages using the cache if that directory is
2746    # removed, or if the value is a relative name.
2747    test -d ./--version && rmdir ./--version
2748    MKDIR_P="$ac_install_sh -d"
2749  fi
2750fi
2751{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2752$as_echo "$MKDIR_P" >&6; }
2753
2754mkdir_p="$MKDIR_P"
2755case $mkdir_p in
2756  [\\/$]* | ?:[\\/]*) ;;
2757  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2758esac
2759
2760for ac_prog in gawk mawk nawk awk
2761do
2762  # Extract the first word of "$ac_prog", so it can be a program name with args.
2763set dummy $ac_prog; ac_word=$2
2764{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2765$as_echo_n "checking for $ac_word... " >&6; }
2766if test "${ac_cv_prog_AWK+set}" = set; then
2767  $as_echo_n "(cached) " >&6
2768else
2769  if test -n "$AWK"; then
2770  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2771else
2772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775  IFS=$as_save_IFS
2776  test -z "$as_dir" && as_dir=.
2777  for ac_exec_ext in '' $ac_executable_extensions; do
2778  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779    ac_cv_prog_AWK="$ac_prog"
2780    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2781    break 2
2782  fi
2783done
2784done
2785IFS=$as_save_IFS
2786
2787fi
2788fi
2789AWK=$ac_cv_prog_AWK
2790if test -n "$AWK"; then
2791  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2792$as_echo "$AWK" >&6; }
2793else
2794  { $as_echo "$as_me:$LINENO: result: no" >&5
2795$as_echo "no" >&6; }
2796fi
2797
2798
2799  test -n "$AWK" && break
2800done
2801
2802{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2803$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2804set x ${MAKE-make}
2805ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2806if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2807  $as_echo_n "(cached) " >&6
2808else
2809  cat >conftest.make <<\_ACEOF
2810SHELL = /bin/sh
2811all:
2812	@echo '@@@%%%=$(MAKE)=@@@%%%'
2813_ACEOF
2814# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2815case `${MAKE-make} -f conftest.make 2>/dev/null` in
2816  *@@@%%%=?*=@@@%%%*)
2817    eval ac_cv_prog_make_${ac_make}_set=yes;;
2818  *)
2819    eval ac_cv_prog_make_${ac_make}_set=no;;
2820esac
2821rm -f conftest.make
2822fi
2823if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2824  { $as_echo "$as_me:$LINENO: result: yes" >&5
2825$as_echo "yes" >&6; }
2826  SET_MAKE=
2827else
2828  { $as_echo "$as_me:$LINENO: result: no" >&5
2829$as_echo "no" >&6; }
2830  SET_MAKE="MAKE=${MAKE-make}"
2831fi
2832
2833rm -rf .tst 2>/dev/null
2834mkdir .tst 2>/dev/null
2835if test -d .tst; then
2836  am__leading_dot=.
2837else
2838  am__leading_dot=_
2839fi
2840rmdir .tst 2>/dev/null
2841
2842if test "`cd $srcdir && pwd`" != "`pwd`"; then
2843  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2844  # is not polluted with repeated "-I."
2845  am__isrc=' -I$(srcdir)'
2846  # test to see if srcdir already configured
2847  if test -f $srcdir/config.status; then
2848    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2849$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2850   { (exit 1); exit 1; }; }
2851  fi
2852fi
2853
2854# test whether we have cygpath
2855if test -z "$CYGPATH_W"; then
2856  if (cygpath --version) >/dev/null 2>/dev/null; then
2857    CYGPATH_W='cygpath -w'
2858  else
2859    CYGPATH_W=echo
2860  fi
2861fi
2862
2863
2864# Define the identity of the package.
2865 PACKAGE=gettext-tools
2866 VERSION=$VERSION_NUMBER
2867
2868
2869cat >>confdefs.h <<_ACEOF
2870#define PACKAGE "$PACKAGE"
2871_ACEOF
2872
2873
2874cat >>confdefs.h <<_ACEOF
2875#define VERSION "$VERSION"
2876_ACEOF
2877
2878# Some tools Automake needs.
2879
2880ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2881
2882
2883AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2884
2885
2886AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2887
2888
2889AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2890
2891
2892MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2893
2894install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2895
2896# Installed binaries are usually stripped using `strip' when the user
2897# run `make install-strip'.  However `strip' might not be the right
2898# tool to use in cross-compilation environments, therefore Automake
2899# will honor the `STRIP' environment variable to overrule this program.
2900if test "$cross_compiling" != no; then
2901  if test -n "$ac_tool_prefix"; then
2902  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2903set dummy ${ac_tool_prefix}strip; ac_word=$2
2904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2905$as_echo_n "checking for $ac_word... " >&6; }
2906if test "${ac_cv_prog_STRIP+set}" = set; then
2907  $as_echo_n "(cached) " >&6
2908else
2909  if test -n "$STRIP"; then
2910  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915  IFS=$as_save_IFS
2916  test -z "$as_dir" && as_dir=.
2917  for ac_exec_ext in '' $ac_executable_extensions; do
2918  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2920    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921    break 2
2922  fi
2923done
2924done
2925IFS=$as_save_IFS
2926
2927fi
2928fi
2929STRIP=$ac_cv_prog_STRIP
2930if test -n "$STRIP"; then
2931  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2932$as_echo "$STRIP" >&6; }
2933else
2934  { $as_echo "$as_me:$LINENO: result: no" >&5
2935$as_echo "no" >&6; }
2936fi
2937
2938
2939fi
2940if test -z "$ac_cv_prog_STRIP"; then
2941  ac_ct_STRIP=$STRIP
2942  # Extract the first word of "strip", so it can be a program name with args.
2943set dummy strip; ac_word=$2
2944{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2945$as_echo_n "checking for $ac_word... " >&6; }
2946if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2947  $as_echo_n "(cached) " >&6
2948else
2949  if test -n "$ac_ct_STRIP"; then
2950  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2951else
2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953for as_dir in $PATH
2954do
2955  IFS=$as_save_IFS
2956  test -z "$as_dir" && as_dir=.
2957  for ac_exec_ext in '' $ac_executable_extensions; do
2958  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959    ac_cv_prog_ac_ct_STRIP="strip"
2960    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961    break 2
2962  fi
2963done
2964done
2965IFS=$as_save_IFS
2966
2967fi
2968fi
2969ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2970if test -n "$ac_ct_STRIP"; then
2971  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2972$as_echo "$ac_ct_STRIP" >&6; }
2973else
2974  { $as_echo "$as_me:$LINENO: result: no" >&5
2975$as_echo "no" >&6; }
2976fi
2977
2978  if test "x$ac_ct_STRIP" = x; then
2979    STRIP=":"
2980  else
2981    case $cross_compiling:$ac_tool_warned in
2982yes:)
2983{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2985ac_tool_warned=yes ;;
2986esac
2987    STRIP=$ac_ct_STRIP
2988  fi
2989else
2990  STRIP="$ac_cv_prog_STRIP"
2991fi
2992
2993fi
2994INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2995
2996# We need awk for the "check" target.  The system "awk" is bad on
2997# some platforms.
2998# Always define AMTAR for backward compatibility.
2999
3000AMTAR=${AMTAR-"${am_missing_run}tar"}
3001
3002am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3003
3004
3005
3006
3007
3008ac_config_headers="$ac_config_headers config.h"
3009
3010
3011test "$docdir" != '${datarootdir}/doc/${PACKAGE}' || docdir='${datarootdir}/doc/gettext'
3012
3013ac_ext=c
3014ac_cpp='$CPP $CPPFLAGS'
3015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3017ac_compiler_gnu=$ac_cv_c_compiler_gnu
3018if test -n "$ac_tool_prefix"; then
3019  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3020set dummy ${ac_tool_prefix}gcc; ac_word=$2
3021{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if test "${ac_cv_prog_CC+set}" = set; then
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$CC"; then
3027  ac_cv_prog_CC="$CC" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034  for ac_exec_ext in '' $ac_executable_extensions; do
3035  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3036    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3037    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046CC=$ac_cv_prog_CC
3047if test -n "$CC"; then
3048  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3049$as_echo "$CC" >&6; }
3050else
3051  { $as_echo "$as_me:$LINENO: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$ac_cv_prog_CC"; then
3058  ac_ct_CC=$CC
3059  # Extract the first word of "gcc", so it can be a program name with args.
3060set dummy gcc; ac_word=$2
3061{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3064  $as_echo_n "(cached) " >&6
3065else
3066  if test -n "$ac_ct_CC"; then
3067  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072  IFS=$as_save_IFS
3073  test -z "$as_dir" && as_dir=.
3074  for ac_exec_ext in '' $ac_executable_extensions; do
3075  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076    ac_cv_prog_ac_ct_CC="gcc"
3077    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078    break 2
3079  fi
3080done
3081done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086ac_ct_CC=$ac_cv_prog_ac_ct_CC
3087if test -n "$ac_ct_CC"; then
3088  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3089$as_echo "$ac_ct_CC" >&6; }
3090else
3091  { $as_echo "$as_me:$LINENO: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095  if test "x$ac_ct_CC" = x; then
3096    CC=""
3097  else
3098    case $cross_compiling:$ac_tool_warned in
3099yes:)
3100{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102ac_tool_warned=yes ;;
3103esac
3104    CC=$ac_ct_CC
3105  fi
3106else
3107  CC="$ac_cv_prog_CC"
3108fi
3109
3110if test -z "$CC"; then
3111          if test -n "$ac_tool_prefix"; then
3112    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113set dummy ${ac_tool_prefix}cc; ac_word=$2
3114{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3115$as_echo_n "checking for $ac_word... " >&6; }
3116if test "${ac_cv_prog_CC+set}" = set; then
3117  $as_echo_n "(cached) " >&6
3118else
3119  if test -n "$CC"; then
3120  ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127  for ac_exec_ext in '' $ac_executable_extensions; do
3128  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129    ac_cv_prog_CC="${ac_tool_prefix}cc"
3130    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134done
3135IFS=$as_save_IFS
3136
3137fi
3138fi
3139CC=$ac_cv_prog_CC
3140if test -n "$CC"; then
3141  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3142$as_echo "$CC" >&6; }
3143else
3144  { $as_echo "$as_me:$LINENO: result: no" >&5
3145$as_echo "no" >&6; }
3146fi
3147
3148
3149  fi
3150fi
3151if test -z "$CC"; then
3152  # Extract the first word of "cc", so it can be a program name with args.
3153set dummy cc; ac_word=$2
3154{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3155$as_echo_n "checking for $ac_word... " >&6; }
3156if test "${ac_cv_prog_CC+set}" = set; then
3157  $as_echo_n "(cached) " >&6
3158else
3159  if test -n "$CC"; then
3160  ac_cv_prog_CC="$CC" # Let the user override the test.
3161else
3162  ac_prog_rejected=no
3163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164for as_dir in $PATH
3165do
3166  IFS=$as_save_IFS
3167  test -z "$as_dir" && as_dir=.
3168  for ac_exec_ext in '' $ac_executable_extensions; do
3169  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3171       ac_prog_rejected=yes
3172       continue
3173     fi
3174    ac_cv_prog_CC="cc"
3175    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3176    break 2
3177  fi
3178done
3179done
3180IFS=$as_save_IFS
3181
3182if test $ac_prog_rejected = yes; then
3183  # We found a bogon in the path, so make sure we never use it.
3184  set dummy $ac_cv_prog_CC
3185  shift
3186  if test $# != 0; then
3187    # We chose a different compiler from the bogus one.
3188    # However, it has the same basename, so the bogon will be chosen
3189    # first if we set CC to just the basename; use the full file name.
3190    shift
3191    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3192  fi
3193fi
3194fi
3195fi
3196CC=$ac_cv_prog_CC
3197if test -n "$CC"; then
3198  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3199$as_echo "$CC" >&6; }
3200else
3201  { $as_echo "$as_me:$LINENO: result: no" >&5
3202$as_echo "no" >&6; }
3203fi
3204
3205
3206fi
3207if test -z "$CC"; then
3208  if test -n "$ac_tool_prefix"; then
3209  for ac_prog in cl.exe
3210  do
3211    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3212set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3213{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3214$as_echo_n "checking for $ac_word... " >&6; }
3215if test "${ac_cv_prog_CC+set}" = set; then
3216  $as_echo_n "(cached) " >&6
3217else
3218  if test -n "$CC"; then
3219  ac_cv_prog_CC="$CC" # Let the user override the test.
3220else
3221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222for as_dir in $PATH
3223do
3224  IFS=$as_save_IFS
3225  test -z "$as_dir" && as_dir=.
3226  for ac_exec_ext in '' $ac_executable_extensions; do
3227  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3229    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230    break 2
3231  fi
3232done
3233done
3234IFS=$as_save_IFS
3235
3236fi
3237fi
3238CC=$ac_cv_prog_CC
3239if test -n "$CC"; then
3240  { $as_echo "$as_me:$LINENO: result: $CC" >&5
3241$as_echo "$CC" >&6; }
3242else
3243  { $as_echo "$as_me:$LINENO: result: no" >&5
3244$as_echo "no" >&6; }
3245fi
3246
3247
3248    test -n "$CC" && break
3249  done
3250fi
3251if test -z "$CC"; then
3252  ac_ct_CC=$CC
3253  for ac_prog in cl.exe
3254do
3255  # Extract the first word of "$ac_prog", so it can be a program name with args.
3256set dummy $ac_prog; ac_word=$2
3257{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3258$as_echo_n "checking for $ac_word... " >&6; }
3259if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3260  $as_echo_n "(cached) " >&6
3261else
3262  if test -n "$ac_ct_CC"; then
3263  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3264else
3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266for as_dir in $PATH
3267do
3268  IFS=$as_save_IFS
3269  test -z "$as_dir" && as_dir=.
3270  for ac_exec_ext in '' $ac_executable_extensions; do
3271  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272    ac_cv_prog_ac_ct_CC="$ac_prog"
3273    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274    break 2
3275  fi
3276done
3277done
3278IFS=$as_save_IFS
3279
3280fi
3281fi
3282ac_ct_CC=$ac_cv_prog_ac_ct_CC
3283if test -n "$ac_ct_CC"; then
3284  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3285$as_echo "$ac_ct_CC" >&6; }
3286else
3287  { $as_echo "$as_me:$LINENO: result: no" >&5
3288$as_echo "no" >&6; }
3289fi
3290
3291
3292  test -n "$ac_ct_CC" && break
3293done
3294
3295  if test "x$ac_ct_CC" = x; then
3296    CC=""
3297  else
3298    case $cross_compiling:$ac_tool_warned in
3299yes:)
3300{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3301$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3302ac_tool_warned=yes ;;
3303esac
3304    CC=$ac_ct_CC
3305  fi
3306fi
3307
3308fi
3309
3310
3311test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3314See \`config.log' for more details." >&5
3315$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3316See \`config.log' for more details." >&2;}
3317   { (exit 1); exit 1; }; }; }
3318
3319# Provide some information about the compiler.
3320$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3321set X $ac_compile
3322ac_compiler=$2
3323{ (ac_try="$ac_compiler --version >&5"
3324case "(($ac_try" in
3325  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326  *) ac_try_echo=$ac_try;;
3327esac
3328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3329$as_echo "$ac_try_echo") >&5
3330  (eval "$ac_compiler --version >&5") 2>&5
3331  ac_status=$?
3332  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333  (exit $ac_status); }
3334{ (ac_try="$ac_compiler -v >&5"
3335case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340$as_echo "$ac_try_echo") >&5
3341  (eval "$ac_compiler -v >&5") 2>&5
3342  ac_status=$?
3343  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344  (exit $ac_status); }
3345{ (ac_try="$ac_compiler -V >&5"
3346case "(($ac_try" in
3347  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348  *) ac_try_echo=$ac_try;;
3349esac
3350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3351$as_echo "$ac_try_echo") >&5
3352  (eval "$ac_compiler -V >&5") 2>&5
3353  ac_status=$?
3354  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355  (exit $ac_status); }
3356
3357cat >conftest.$ac_ext <<_ACEOF
3358/* confdefs.h.  */
3359_ACEOF
3360cat confdefs.h >>conftest.$ac_ext
3361cat >>conftest.$ac_ext <<_ACEOF
3362/* end confdefs.h.  */
3363
3364int
3365main ()
3366{
3367
3368  ;
3369  return 0;
3370}
3371_ACEOF
3372ac_clean_files_save=$ac_clean_files
3373ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3374# Try to create an executable without -o first, disregard a.out.
3375# It will help us diagnose broken compilers, and finding out an intuition
3376# of exeext.
3377{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3378$as_echo_n "checking for C compiler default output file name... " >&6; }
3379ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3380
3381# The possible output files:
3382ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3383
3384ac_rmfiles=
3385for ac_file in $ac_files
3386do
3387  case $ac_file in
3388    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3389    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3390  esac
3391done
3392rm -f $ac_rmfiles
3393
3394if { (ac_try="$ac_link_default"
3395case "(($ac_try" in
3396  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397  *) ac_try_echo=$ac_try;;
3398esac
3399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3400$as_echo "$ac_try_echo") >&5
3401  (eval "$ac_link_default") 2>&5
3402  ac_status=$?
3403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; then
3405  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3406# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3407# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3408# so that the user can short-circuit this test for compilers unknown to
3409# Autoconf.
3410for ac_file in $ac_files ''
3411do
3412  test -f "$ac_file" || continue
3413  case $ac_file in
3414    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3415	;;
3416    [ab].out )
3417	# We found the default executable, but exeext='' is most
3418	# certainly right.
3419	break;;
3420    *.* )
3421        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3422	then :; else
3423	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3424	fi
3425	# We set ac_cv_exeext here because the later test for it is not
3426	# safe: cross compilers may not add the suffix if given an `-o'
3427	# argument, so we may need to know it at that point already.
3428	# Even if this section looks crufty: it has the advantage of
3429	# actually working.
3430	break;;
3431    * )
3432	break;;
3433  esac
3434done
3435test "$ac_cv_exeext" = no && ac_cv_exeext=
3436
3437else
3438  ac_file=''
3439fi
3440
3441{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3442$as_echo "$ac_file" >&6; }
3443if test -z "$ac_file"; then
3444  $as_echo "$as_me: failed program was:" >&5
3445sed 's/^/| /' conftest.$ac_ext >&5
3446
3447{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3450See \`config.log' for more details." >&5
3451$as_echo "$as_me: error: C compiler cannot create executables
3452See \`config.log' for more details." >&2;}
3453   { (exit 77); exit 77; }; }; }
3454fi
3455
3456ac_exeext=$ac_cv_exeext
3457
3458# Check that the compiler produces executables we can run.  If not, either
3459# the compiler is broken, or we cross compile.
3460{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3461$as_echo_n "checking whether the C compiler works... " >&6; }
3462# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3463# If not cross compiling, check that we can run a simple program.
3464if test "$cross_compiling" != yes; then
3465  if { ac_try='./$ac_file'
3466  { (case "(($ac_try" in
3467  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468  *) ac_try_echo=$ac_try;;
3469esac
3470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3471$as_echo "$ac_try_echo") >&5
3472  (eval "$ac_try") 2>&5
3473  ac_status=$?
3474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); }; }; then
3476    cross_compiling=no
3477  else
3478    if test "$cross_compiling" = maybe; then
3479	cross_compiling=yes
3480    else
3481	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3482$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3484If you meant to cross compile, use \`--host'.
3485See \`config.log' for more details." >&5
3486$as_echo "$as_me: error: cannot run C compiled programs.
3487If you meant to cross compile, use \`--host'.
3488See \`config.log' for more details." >&2;}
3489   { (exit 1); exit 1; }; }; }
3490    fi
3491  fi
3492fi
3493{ $as_echo "$as_me:$LINENO: result: yes" >&5
3494$as_echo "yes" >&6; }
3495
3496rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3497ac_clean_files=$ac_clean_files_save
3498# Check that the compiler produces executables we can run.  If not, either
3499# the compiler is broken, or we cross compile.
3500{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3501$as_echo_n "checking whether we are cross compiling... " >&6; }
3502{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3503$as_echo "$cross_compiling" >&6; }
3504
3505{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3506$as_echo_n "checking for suffix of executables... " >&6; }
3507if { (ac_try="$ac_link"
3508case "(($ac_try" in
3509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510  *) ac_try_echo=$ac_try;;
3511esac
3512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3513$as_echo "$ac_try_echo") >&5
3514  (eval "$ac_link") 2>&5
3515  ac_status=$?
3516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517  (exit $ac_status); }; then
3518  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3519# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3520# work properly (i.e., refer to `conftest.exe'), while it won't with
3521# `rm'.
3522for ac_file in conftest.exe conftest conftest.*; do
3523  test -f "$ac_file" || continue
3524  case $ac_file in
3525    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3526    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527	  break;;
3528    * ) break;;
3529  esac
3530done
3531else
3532  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3534{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3535See \`config.log' for more details." >&5
3536$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3537See \`config.log' for more details." >&2;}
3538   { (exit 1); exit 1; }; }; }
3539fi
3540
3541rm -f conftest$ac_cv_exeext
3542{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3543$as_echo "$ac_cv_exeext" >&6; }
3544
3545rm -f conftest.$ac_ext
3546EXEEXT=$ac_cv_exeext
3547ac_exeext=$EXEEXT
3548{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3549$as_echo_n "checking for suffix of object files... " >&6; }
3550if test "${ac_cv_objext+set}" = set; then
3551  $as_echo_n "(cached) " >&6
3552else
3553  cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h.  */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h.  */
3559
3560int
3561main ()
3562{
3563
3564  ;
3565  return 0;
3566}
3567_ACEOF
3568rm -f conftest.o conftest.obj
3569if { (ac_try="$ac_compile"
3570case "(($ac_try" in
3571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572  *) ac_try_echo=$ac_try;;
3573esac
3574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3575$as_echo "$ac_try_echo") >&5
3576  (eval "$ac_compile") 2>&5
3577  ac_status=$?
3578  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579  (exit $ac_status); }; then
3580  for ac_file in conftest.o conftest.obj conftest.*; do
3581  test -f "$ac_file" || continue;
3582  case $ac_file in
3583    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3584    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3585       break;;
3586  esac
3587done
3588else
3589  $as_echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3594{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3595See \`config.log' for more details." >&5
3596$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3597See \`config.log' for more details." >&2;}
3598   { (exit 1); exit 1; }; }; }
3599fi
3600
3601rm -f conftest.$ac_cv_objext conftest.$ac_ext
3602fi
3603{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3604$as_echo "$ac_cv_objext" >&6; }
3605OBJEXT=$ac_cv_objext
3606ac_objext=$OBJEXT
3607{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3608$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3609if test "${ac_cv_c_compiler_gnu+set}" = set; then
3610  $as_echo_n "(cached) " >&6
3611else
3612  cat >conftest.$ac_ext <<_ACEOF
3613/* confdefs.h.  */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h.  */
3618
3619int
3620main ()
3621{
3622#ifndef __GNUC__
3623       choke me
3624#endif
3625
3626  ;
3627  return 0;
3628}
3629_ACEOF
3630rm -f conftest.$ac_objext
3631if { (ac_try="$ac_compile"
3632case "(($ac_try" in
3633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634  *) ac_try_echo=$ac_try;;
3635esac
3636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3637$as_echo "$ac_try_echo") >&5
3638  (eval "$ac_compile") 2>conftest.er1
3639  ac_status=$?
3640  grep -v '^ *+' conftest.er1 >conftest.err
3641  rm -f conftest.er1
3642  cat conftest.err >&5
3643  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); } && {
3645	 test -z "$ac_c_werror_flag" ||
3646	 test ! -s conftest.err
3647       } && test -s conftest.$ac_objext; then
3648  ac_compiler_gnu=yes
3649else
3650  $as_echo "$as_me: failed program was:" >&5
3651sed 's/^/| /' conftest.$ac_ext >&5
3652
3653	ac_compiler_gnu=no
3654fi
3655
3656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657ac_cv_c_compiler_gnu=$ac_compiler_gnu
3658
3659fi
3660{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3661$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3662if test $ac_compiler_gnu = yes; then
3663  GCC=yes
3664else
3665  GCC=
3666fi
3667ac_test_CFLAGS=${CFLAGS+set}
3668ac_save_CFLAGS=$CFLAGS
3669{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3670$as_echo_n "checking whether $CC accepts -g... " >&6; }
3671if test "${ac_cv_prog_cc_g+set}" = set; then
3672  $as_echo_n "(cached) " >&6
3673else
3674  ac_save_c_werror_flag=$ac_c_werror_flag
3675   ac_c_werror_flag=yes
3676   ac_cv_prog_cc_g=no
3677   CFLAGS="-g"
3678   cat >conftest.$ac_ext <<_ACEOF
3679/* confdefs.h.  */
3680_ACEOF
3681cat confdefs.h >>conftest.$ac_ext
3682cat >>conftest.$ac_ext <<_ACEOF
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688
3689  ;
3690  return 0;
3691}
3692_ACEOF
3693rm -f conftest.$ac_objext
3694if { (ac_try="$ac_compile"
3695case "(($ac_try" in
3696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697  *) ac_try_echo=$ac_try;;
3698esac
3699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3700$as_echo "$ac_try_echo") >&5
3701  (eval "$ac_compile") 2>conftest.er1
3702  ac_status=$?
3703  grep -v '^ *+' conftest.er1 >conftest.err
3704  rm -f conftest.er1
3705  cat conftest.err >&5
3706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); } && {
3708	 test -z "$ac_c_werror_flag" ||
3709	 test ! -s conftest.err
3710       } && test -s conftest.$ac_objext; then
3711  ac_cv_prog_cc_g=yes
3712else
3713  $as_echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
3716	CFLAGS=""
3717      cat >conftest.$ac_ext <<_ACEOF
3718/* confdefs.h.  */
3719_ACEOF
3720cat confdefs.h >>conftest.$ac_ext
3721cat >>conftest.$ac_ext <<_ACEOF
3722/* end confdefs.h.  */
3723
3724int
3725main ()
3726{
3727
3728  ;
3729  return 0;
3730}
3731_ACEOF
3732rm -f conftest.$ac_objext
3733if { (ac_try="$ac_compile"
3734case "(($ac_try" in
3735  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736  *) ac_try_echo=$ac_try;;
3737esac
3738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3739$as_echo "$ac_try_echo") >&5
3740  (eval "$ac_compile") 2>conftest.er1
3741  ac_status=$?
3742  grep -v '^ *+' conftest.er1 >conftest.err
3743  rm -f conftest.er1
3744  cat conftest.err >&5
3745  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746  (exit $ac_status); } && {
3747	 test -z "$ac_c_werror_flag" ||
3748	 test ! -s conftest.err
3749       } && test -s conftest.$ac_objext; then
3750  :
3751else
3752  $as_echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755	ac_c_werror_flag=$ac_save_c_werror_flag
3756	 CFLAGS="-g"
3757	 cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772rm -f conftest.$ac_objext
3773if { (ac_try="$ac_compile"
3774case "(($ac_try" in
3775  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776  *) ac_try_echo=$ac_try;;
3777esac
3778eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3779$as_echo "$ac_try_echo") >&5
3780  (eval "$ac_compile") 2>conftest.er1
3781  ac_status=$?
3782  grep -v '^ *+' conftest.er1 >conftest.err
3783  rm -f conftest.er1
3784  cat conftest.err >&5
3785  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); } && {
3787	 test -z "$ac_c_werror_flag" ||
3788	 test ! -s conftest.err
3789       } && test -s conftest.$ac_objext; then
3790  ac_cv_prog_cc_g=yes
3791else
3792  $as_echo "$as_me: failed program was:" >&5
3793sed 's/^/| /' conftest.$ac_ext >&5
3794
3795
3796fi
3797
3798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799fi
3800
3801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3802fi
3803
3804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3805   ac_c_werror_flag=$ac_save_c_werror_flag
3806fi
3807{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3808$as_echo "$ac_cv_prog_cc_g" >&6; }
3809if test "$ac_test_CFLAGS" = set; then
3810  CFLAGS=$ac_save_CFLAGS
3811elif test $ac_cv_prog_cc_g = yes; then
3812  if test "$GCC" = yes; then
3813    CFLAGS="-g -O2"
3814  else
3815    CFLAGS="-g"
3816  fi
3817else
3818  if test "$GCC" = yes; then
3819    CFLAGS="-O2"
3820  else
3821    CFLAGS=
3822  fi
3823fi
3824{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3825$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3826if test "${ac_cv_prog_cc_c89+set}" = set; then
3827  $as_echo_n "(cached) " >&6
3828else
3829  ac_cv_prog_cc_c89=no
3830ac_save_CC=$CC
3831cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h.  */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h.  */
3837#include <stdarg.h>
3838#include <stdio.h>
3839#include <sys/types.h>
3840#include <sys/stat.h>
3841/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3842struct buf { int x; };
3843FILE * (*rcsopen) (struct buf *, struct stat *, int);
3844static char *e (p, i)
3845     char **p;
3846     int i;
3847{
3848  return p[i];
3849}
3850static char *f (char * (*g) (char **, int), char **p, ...)
3851{
3852  char *s;
3853  va_list v;
3854  va_start (v,p);
3855  s = g (p, va_arg (v,int));
3856  va_end (v);
3857  return s;
3858}
3859
3860/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3861   function prototypes and stuff, but not '\xHH' hex character constants.
3862   These don't provoke an error unfortunately, instead are silently treated
3863   as 'x'.  The following induces an error, until -std is added to get
3864   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3865   array size at least.  It's necessary to write '\x00'==0 to get something
3866   that's true only with -std.  */
3867int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3868
3869/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3870   inside strings and character constants.  */
3871#define FOO(x) 'x'
3872int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3873
3874int test (int i, double x);
3875struct s1 {int (*f) (int a);};
3876struct s2 {int (*f) (double a);};
3877int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3878int argc;
3879char **argv;
3880int
3881main ()
3882{
3883return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3889	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3890do
3891  CC="$ac_save_CC $ac_arg"
3892  rm -f conftest.$ac_objext
3893if { (ac_try="$ac_compile"
3894case "(($ac_try" in
3895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896  *) ac_try_echo=$ac_try;;
3897esac
3898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3899$as_echo "$ac_try_echo") >&5
3900  (eval "$ac_compile") 2>conftest.er1
3901  ac_status=$?
3902  grep -v '^ *+' conftest.er1 >conftest.err
3903  rm -f conftest.er1
3904  cat conftest.err >&5
3905  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906  (exit $ac_status); } && {
3907	 test -z "$ac_c_werror_flag" ||
3908	 test ! -s conftest.err
3909       } && test -s conftest.$ac_objext; then
3910  ac_cv_prog_cc_c89=$ac_arg
3911else
3912  $as_echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915
3916fi
3917
3918rm -f core conftest.err conftest.$ac_objext
3919  test "x$ac_cv_prog_cc_c89" != "xno" && break
3920done
3921rm -f conftest.$ac_ext
3922CC=$ac_save_CC
3923
3924fi
3925# AC_CACHE_VAL
3926case "x$ac_cv_prog_cc_c89" in
3927  x)
3928    { $as_echo "$as_me:$LINENO: result: none needed" >&5
3929$as_echo "none needed" >&6; } ;;
3930  xno)
3931    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3932$as_echo "unsupported" >&6; } ;;
3933  *)
3934    CC="$CC $ac_cv_prog_cc_c89"
3935    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3936$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3937esac
3938
3939
3940ac_ext=c
3941ac_cpp='$CPP $CPPFLAGS'
3942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945DEPDIR="${am__leading_dot}deps"
3946
3947ac_config_commands="$ac_config_commands depfiles"
3948
3949
3950am_make=${MAKE-make}
3951cat > confinc << 'END'
3952am__doit:
3953	@echo done
3954.PHONY: am__doit
3955END
3956# If we don't find an include directive, just comment out the code.
3957{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3958$as_echo_n "checking for style of include used by $am_make... " >&6; }
3959am__include="#"
3960am__quote=
3961_am_result=none
3962# First try GNU make style include.
3963echo "include confinc" > confmf
3964# We grep out `Entering directory' and `Leaving directory'
3965# messages which can occur if `w' ends up in MAKEFLAGS.
3966# In particular we don't look at `^make:' because GNU make might
3967# be invoked under some other name (usually "gmake"), in which
3968# case it prints its new name instead of `make'.
3969if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3970   am__include=include
3971   am__quote=
3972   _am_result=GNU
3973fi
3974# Now try BSD make style include.
3975if test "$am__include" = "#"; then
3976   echo '.include "confinc"' > confmf
3977   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3978      am__include=.include
3979      am__quote="\""
3980      _am_result=BSD
3981   fi
3982fi
3983
3984
3985{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3986$as_echo "$_am_result" >&6; }
3987rm -f confinc confmf
3988
3989# Check whether --enable-dependency-tracking was given.
3990if test "${enable_dependency_tracking+set}" = set; then
3991  enableval=$enable_dependency_tracking;
3992fi
3993
3994if test "x$enable_dependency_tracking" != xno; then
3995  am_depcomp="$ac_aux_dir/depcomp"
3996  AMDEPBACKSLASH='\'
3997fi
3998 if test "x$enable_dependency_tracking" != xno; then
3999  AMDEP_TRUE=
4000  AMDEP_FALSE='#'
4001else
4002  AMDEP_TRUE='#'
4003  AMDEP_FALSE=
4004fi
4005
4006
4007
4008depcc="$CC"   am_compiler_list=
4009
4010{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4011$as_echo_n "checking dependency style of $depcc... " >&6; }
4012if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4013  $as_echo_n "(cached) " >&6
4014else
4015  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4016  # We make a subdir and do the tests there.  Otherwise we can end up
4017  # making bogus files that we don't know about and never remove.  For
4018  # instance it was reported that on HP-UX the gcc test will end up
4019  # making a dummy file named `D' -- because `-MD' means `put the output
4020  # in D'.
4021  mkdir conftest.dir
4022  # Copy depcomp to subdir because otherwise we won't find it if we're
4023  # using a relative directory.
4024  cp "$am_depcomp" conftest.dir
4025  cd conftest.dir
4026  # We will build objects and dependencies in a subdirectory because
4027  # it helps to detect inapplicable dependency modes.  For instance
4028  # both Tru64's cc and ICC support -MD to output dependencies as a
4029  # side effect of compilation, but ICC will put the dependencies in
4030  # the current directory while Tru64 will put them in the object
4031  # directory.
4032  mkdir sub
4033
4034  am_cv_CC_dependencies_compiler_type=none
4035  if test "$am_compiler_list" = ""; then
4036     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4037  fi
4038  for depmode in $am_compiler_list; do
4039    # Setup a source with many dependencies, because some compilers
4040    # like to wrap large dependency lists on column 80 (with \), and
4041    # we should not choose a depcomp mode which is confused by this.
4042    #
4043    # We need to recreate these files for each test, as the compiler may
4044    # overwrite some of them when testing with obscure command lines.
4045    # This happens at least with the AIX C compiler.
4046    : > sub/conftest.c
4047    for i in 1 2 3 4 5 6; do
4048      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4049      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4050      # Solaris 8's {/usr,}/bin/sh.
4051      touch sub/conftst$i.h
4052    done
4053    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4054
4055    case $depmode in
4056    nosideeffect)
4057      # after this tag, mechanisms are not by side-effect, so they'll
4058      # only be used when explicitly requested
4059      if test "x$enable_dependency_tracking" = xyes; then
4060	continue
4061      else
4062	break
4063      fi
4064      ;;
4065    none) break ;;
4066    esac
4067    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4068    # mode.  It turns out that the SunPro C++ compiler does not properly
4069    # handle `-M -o', and we need to detect this.
4070    if depmode=$depmode \
4071       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4072       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4073       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4074         >/dev/null 2>conftest.err &&
4075       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4076       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4077       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4078       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4079      # icc doesn't choke on unknown options, it will just issue warnings
4080      # or remarks (even with -Werror).  So we grep stderr for any message
4081      # that says an option was ignored or not supported.
4082      # When given -MP, icc 7.0 and 7.1 complain thusly:
4083      #   icc: Command line warning: ignoring option '-M'; no argument required
4084      # The diagnosis changed in icc 8.0:
4085      #   icc: Command line remark: option '-MP' not supported
4086      if (grep 'ignoring option' conftest.err ||
4087          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4088        am_cv_CC_dependencies_compiler_type=$depmode
4089        break
4090      fi
4091    fi
4092  done
4093
4094  cd ..
4095  rm -rf conftest.dir
4096else
4097  am_cv_CC_dependencies_compiler_type=none
4098fi
4099
4100fi
4101{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4102$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4103CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4104
4105 if
4106  test "x$enable_dependency_tracking" != xno \
4107  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4108  am__fastdepCC_TRUE=
4109  am__fastdepCC_FALSE='#'
4110else
4111  am__fastdepCC_TRUE='#'
4112  am__fastdepCC_FALSE=
4113fi
4114
4115
4116# Find a good install program.  We prefer a C program (faster),
4117# so one script is as good as another.  But avoid the broken or
4118# incompatible versions:
4119# SysV /etc/install, /usr/sbin/install
4120# SunOS /usr/etc/install
4121# IRIX /sbin/install
4122# AIX /bin/install
4123# AmigaOS /C/install, which installs bootblocks on floppy discs
4124# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4125# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4126# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4127# OS/2's system install, which has a completely different semantic
4128# ./install, which can be erroneously created by make from ./install.sh.
4129# Reject install programs that cannot install multiple files.
4130{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4131$as_echo_n "checking for a BSD-compatible install... " >&6; }
4132if test -z "$INSTALL"; then
4133if test "${ac_cv_path_install+set}" = set; then
4134  $as_echo_n "(cached) " >&6
4135else
4136  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139  IFS=$as_save_IFS
4140  test -z "$as_dir" && as_dir=.
4141  # Account for people who put trailing slashes in PATH elements.
4142case $as_dir/ in
4143  ./ | .// | /cC/* | \
4144  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4145  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4146  /usr/ucb/* ) ;;
4147  *)
4148    # OSF1 and SCO ODT 3.0 have their own names for install.
4149    # Don't use installbsd from OSF since it installs stuff as root
4150    # by default.
4151    for ac_prog in ginstall scoinst install; do
4152      for ac_exec_ext in '' $ac_executable_extensions; do
4153	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4154	  if test $ac_prog = install &&
4155	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4156	    # AIX install.  It has an incompatible calling convention.
4157	    :
4158	  elif test $ac_prog = install &&
4159	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4160	    # program-specific install script used by HP pwplus--don't use.
4161	    :
4162	  else
4163	    rm -rf conftest.one conftest.two conftest.dir
4164	    echo one > conftest.one
4165	    echo two > conftest.two
4166	    mkdir conftest.dir
4167	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4168	      test -s conftest.one && test -s conftest.two &&
4169	      test -s conftest.dir/conftest.one &&
4170	      test -s conftest.dir/conftest.two
4171	    then
4172	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4173	      break 3
4174	    fi
4175	  fi
4176	fi
4177      done
4178    done
4179    ;;
4180esac
4181
4182done
4183IFS=$as_save_IFS
4184
4185rm -rf conftest.one conftest.two conftest.dir
4186
4187fi
4188  if test "${ac_cv_path_install+set}" = set; then
4189    INSTALL=$ac_cv_path_install
4190  else
4191    # As a last resort, use the slow shell script.  Don't cache a
4192    # value for INSTALL within a source directory, because that will
4193    # break other packages using the cache if that directory is
4194    # removed, or if the value is a relative name.
4195    INSTALL=$ac_install_sh
4196  fi
4197fi
4198{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4199$as_echo "$INSTALL" >&6; }
4200
4201# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4202# It thinks the first close brace ends the variable substitution.
4203test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4204
4205test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4206
4207test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4208
4209for ac_prog in 'bison -y' byacc
4210do
4211  # Extract the first word of "$ac_prog", so it can be a program name with args.
4212set dummy $ac_prog; ac_word=$2
4213{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4214$as_echo_n "checking for $ac_word... " >&6; }
4215if test "${ac_cv_prog_YACC+set}" = set; then
4216  $as_echo_n "(cached) " >&6
4217else
4218  if test -n "$YACC"; then
4219  ac_cv_prog_YACC="$YACC" # Let the user override the test.
4220else
4221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222for as_dir in $PATH
4223do
4224  IFS=$as_save_IFS
4225  test -z "$as_dir" && as_dir=.
4226  for ac_exec_ext in '' $ac_executable_extensions; do
4227  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228    ac_cv_prog_YACC="$ac_prog"
4229    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4230    break 2
4231  fi
4232done
4233done
4234IFS=$as_save_IFS
4235
4236fi
4237fi
4238YACC=$ac_cv_prog_YACC
4239if test -n "$YACC"; then
4240  { $as_echo "$as_me:$LINENO: result: $YACC" >&5
4241$as_echo "$YACC" >&6; }
4242else
4243  { $as_echo "$as_me:$LINENO: result: no" >&5
4244$as_echo "no" >&6; }
4245fi
4246
4247
4248  test -n "$YACC" && break
4249done
4250test -n "$YACC" || YACC="yacc"
4251
4252
4253
4254  { $as_echo "$as_me:$LINENO: checking whether to use Java" >&5
4255$as_echo_n "checking whether to use Java... " >&6; }
4256  # Check whether --enable-java was given.
4257if test "${enable_java+set}" = set; then
4258  enableval=$enable_java; JAVA_CHOICE="$enableval"
4259else
4260  JAVA_CHOICE=yes
4261fi
4262
4263  { $as_echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5
4264$as_echo "$JAVA_CHOICE" >&6; }
4265  if test "$JAVA_CHOICE" = yes; then
4266    # Check whether --enable-native-java was given.
4267if test "${enable_native_java+set}" = set; then
4268  enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
4269fi
4270
4271  fi
4272
4273
4274
4275
4276
4277
4278
4279  { $as_echo "$as_me:$LINENO: checking for Java to native code compiler" >&5
4280$as_echo_n "checking for Java to native code compiler... " >&6; }
4281  # Search for the gcj command or use the one provided by the user.
4282  if test -z "$GCJ"; then
4283                if test -n "$ac_tool_prefix"; then
4284  # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
4285set dummy ${ac_tool_prefix}gcj; ac_word=$2
4286:
4287if test "${ac_cv_prog_GCJ+set}" = set; then
4288  $as_echo_n "(cached) " >&6
4289else
4290  if test -n "$GCJ"; then
4291  ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
4292else
4293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294for as_dir in $PATH
4295do
4296  IFS=$as_save_IFS
4297  test -z "$as_dir" && as_dir=.
4298  for ac_exec_ext in '' $ac_executable_extensions; do
4299  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300    ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
4301    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302    break 2
4303  fi
4304done
4305done
4306IFS=$as_save_IFS
4307
4308fi
4309fi
4310GCJ=$ac_cv_prog_GCJ
4311if test -n "$GCJ"; then
4312  :
4313else
4314  :
4315fi
4316
4317
4318fi
4319if test -z "$ac_cv_prog_GCJ"; then
4320  ac_ct_GCJ=$GCJ
4321  # Extract the first word of "gcj", so it can be a program name with args.
4322set dummy gcj; ac_word=$2
4323:
4324if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
4325  $as_echo_n "(cached) " >&6
4326else
4327  if test -n "$ac_ct_GCJ"; then
4328  ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
4329else
4330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4331for as_dir in $PATH
4332do
4333  IFS=$as_save_IFS
4334  test -z "$as_dir" && as_dir=.
4335  for ac_exec_ext in '' $ac_executable_extensions; do
4336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337    ac_cv_prog_ac_ct_GCJ="gcj"
4338    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4339    break 2
4340  fi
4341done
4342done
4343IFS=$as_save_IFS
4344
4345fi
4346fi
4347ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
4348if test -n "$ac_ct_GCJ"; then
4349  :
4350else
4351  :
4352fi
4353
4354  if test "x$ac_ct_GCJ" = x; then
4355    GCJ="none"
4356  else
4357    case $cross_compiling:$ac_tool_warned in
4358yes:)
4359{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361ac_tool_warned=yes ;;
4362esac
4363    GCJ=$ac_ct_GCJ
4364  fi
4365else
4366  GCJ="$ac_cv_prog_GCJ"
4367fi
4368
4369              fi
4370  # Choose GCJFLAGS or use the one provided by the user.
4371  if test "$GCJ" != none; then
4372    test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
4373  fi
4374  # Check whether the version is ok and it can create executables.
4375  ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
4376  if test "$GCJ" != none \
4377     && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
4378     && (
4379      # See if libgcj.so is well installed and if exception handling works.
4380      cat > conftest.java <<EOF
4381public class conftest {
4382  public static void main (String[] args) {
4383    try {
4384      java.util.ResourceBundle.getBundle("foobar");
4385    } catch (Exception e) {
4386    }
4387    System.exit(0);
4388  }
4389}
4390EOF
4391      { (eval echo "$as_me:$LINENO: \"$ac_gcj_link\"") >&5
4392  (eval $ac_gcj_link) 2>&5
4393  ac_status=$?
4394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395  (exit $ac_status); }
4396      error=$?
4397      if test $error = 0 && test "$cross_compiling" != yes; then
4398        # Run conftest and catch its exit status, but silently.
4399        error=`./conftest >/dev/null 2>&1; echo $?`
4400        test $error = 0 || error=1
4401        rm -f core conftest.core
4402      fi
4403      rm -f conftest.java conftest$ac_exeext
4404      exit $error
4405     ); then
4406    :
4407  else
4408    GCJ=none
4409  fi
4410  { $as_echo "$as_me:$LINENO: result: $GCJ" >&5
4411$as_echo "$GCJ" >&6; }
4412  if test "$GCJ" != none; then
4413    HAVE_GCJ=1
4414  else
4415    HAVE_GCJ=
4416  fi
4417
4418
4419
4420
4421if test -n "$HAVE_GCJ" && test "$JAVA_CHOICE" = yes; then
4422  BUILDJAVAEXE=yes
4423else
4424  BUILDJAVAEXE=no
4425fi
4426
4427
4428
4429ac_ext=c
4430ac_cpp='$CPP $CPPFLAGS'
4431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4433ac_compiler_gnu=$ac_cv_c_compiler_gnu
4434{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4435$as_echo_n "checking how to run the C preprocessor... " >&6; }
4436# On Suns, sometimes $CPP names a directory.
4437if test -n "$CPP" && test -d "$CPP"; then
4438  CPP=
4439fi
4440if test -z "$CPP"; then
4441  if test "${ac_cv_prog_CPP+set}" = set; then
4442  $as_echo_n "(cached) " >&6
4443else
4444      # Double quotes because CPP needs to be expanded
4445    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4446    do
4447      ac_preproc_ok=false
4448for ac_c_preproc_warn_flag in '' yes
4449do
4450  # Use a header file that comes with gcc, so configuring glibc
4451  # with a fresh cross-compiler works.
4452  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453  # <limits.h> exists even on freestanding compilers.
4454  # On the NeXT, cc -E runs the code through the compiler's parser,
4455  # not just through cpp. "Syntax error" is here to catch this case.
4456  cat >conftest.$ac_ext <<_ACEOF
4457/* confdefs.h.  */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h.  */
4462#ifdef __STDC__
4463# include <limits.h>
4464#else
4465# include <assert.h>
4466#endif
4467		     Syntax error
4468_ACEOF
4469if { (ac_try="$ac_cpp conftest.$ac_ext"
4470case "(($ac_try" in
4471  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4472  *) ac_try_echo=$ac_try;;
4473esac
4474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4475$as_echo "$ac_try_echo") >&5
4476  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4477  ac_status=$?
4478  grep -v '^ *+' conftest.er1 >conftest.err
4479  rm -f conftest.er1
4480  cat conftest.err >&5
4481  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482  (exit $ac_status); } >/dev/null && {
4483	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4484	 test ! -s conftest.err
4485       }; then
4486  :
4487else
4488  $as_echo "$as_me: failed program was:" >&5
4489sed 's/^/| /' conftest.$ac_ext >&5
4490
4491  # Broken: fails on valid input.
4492continue
4493fi
4494
4495rm -f conftest.err conftest.$ac_ext
4496
4497  # OK, works on sane cases.  Now check whether nonexistent headers
4498  # can be detected and how.
4499  cat >conftest.$ac_ext <<_ACEOF
4500/* confdefs.h.  */
4501_ACEOF
4502cat confdefs.h >>conftest.$ac_ext
4503cat >>conftest.$ac_ext <<_ACEOF
4504/* end confdefs.h.  */
4505#include <ac_nonexistent.h>
4506_ACEOF
4507if { (ac_try="$ac_cpp conftest.$ac_ext"
4508case "(($ac_try" in
4509  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510  *) ac_try_echo=$ac_try;;
4511esac
4512eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4513$as_echo "$ac_try_echo") >&5
4514  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4515  ac_status=$?
4516  grep -v '^ *+' conftest.er1 >conftest.err
4517  rm -f conftest.er1
4518  cat conftest.err >&5
4519  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); } >/dev/null && {
4521	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4522	 test ! -s conftest.err
4523       }; then
4524  # Broken: success on invalid input.
4525continue
4526else
4527  $as_echo "$as_me: failed program was:" >&5
4528sed 's/^/| /' conftest.$ac_ext >&5
4529
4530  # Passes both tests.
4531ac_preproc_ok=:
4532break
4533fi
4534
4535rm -f conftest.err conftest.$ac_ext
4536
4537done
4538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539rm -f conftest.err conftest.$ac_ext
4540if $ac_preproc_ok; then
4541  break
4542fi
4543
4544    done
4545    ac_cv_prog_CPP=$CPP
4546
4547fi
4548  CPP=$ac_cv_prog_CPP
4549else
4550  ac_cv_prog_CPP=$CPP
4551fi
4552{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4553$as_echo "$CPP" >&6; }
4554ac_preproc_ok=false
4555for ac_c_preproc_warn_flag in '' yes
4556do
4557  # Use a header file that comes with gcc, so configuring glibc
4558  # with a fresh cross-compiler works.
4559  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560  # <limits.h> exists even on freestanding compilers.
4561  # On the NeXT, cc -E runs the code through the compiler's parser,
4562  # not just through cpp. "Syntax error" is here to catch this case.
4563  cat >conftest.$ac_ext <<_ACEOF
4564/* confdefs.h.  */
4565_ACEOF
4566cat confdefs.h >>conftest.$ac_ext
4567cat >>conftest.$ac_ext <<_ACEOF
4568/* end confdefs.h.  */
4569#ifdef __STDC__
4570# include <limits.h>
4571#else
4572# include <assert.h>
4573#endif
4574		     Syntax error
4575_ACEOF
4576if { (ac_try="$ac_cpp conftest.$ac_ext"
4577case "(($ac_try" in
4578  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579  *) ac_try_echo=$ac_try;;
4580esac
4581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4582$as_echo "$ac_try_echo") >&5
4583  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4584  ac_status=$?
4585  grep -v '^ *+' conftest.er1 >conftest.err
4586  rm -f conftest.er1
4587  cat conftest.err >&5
4588  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589  (exit $ac_status); } >/dev/null && {
4590	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4591	 test ! -s conftest.err
4592       }; then
4593  :
4594else
4595  $as_echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598  # Broken: fails on valid input.
4599continue
4600fi
4601
4602rm -f conftest.err conftest.$ac_ext
4603
4604  # OK, works on sane cases.  Now check whether nonexistent headers
4605  # can be detected and how.
4606  cat >conftest.$ac_ext <<_ACEOF
4607/* confdefs.h.  */
4608_ACEOF
4609cat confdefs.h >>conftest.$ac_ext
4610cat >>conftest.$ac_ext <<_ACEOF
4611/* end confdefs.h.  */
4612#include <ac_nonexistent.h>
4613_ACEOF
4614if { (ac_try="$ac_cpp conftest.$ac_ext"
4615case "(($ac_try" in
4616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617  *) ac_try_echo=$ac_try;;
4618esac
4619eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4620$as_echo "$ac_try_echo") >&5
4621  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4622  ac_status=$?
4623  grep -v '^ *+' conftest.er1 >conftest.err
4624  rm -f conftest.er1
4625  cat conftest.err >&5
4626  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); } >/dev/null && {
4628	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4629	 test ! -s conftest.err
4630       }; then
4631  # Broken: success on invalid input.
4632continue
4633else
4634  $as_echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637  # Passes both tests.
4638ac_preproc_ok=:
4639break
4640fi
4641
4642rm -f conftest.err conftest.$ac_ext
4643
4644done
4645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4646rm -f conftest.err conftest.$ac_ext
4647if $ac_preproc_ok; then
4648  :
4649else
4650  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4652{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4653See \`config.log' for more details." >&5
4654$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4655See \`config.log' for more details." >&2;}
4656   { (exit 1); exit 1; }; }; }
4657fi
4658
4659ac_ext=c
4660ac_cpp='$CPP $CPPFLAGS'
4661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664
4665
4666{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4667$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4668if test "${ac_cv_path_GREP+set}" = set; then
4669  $as_echo_n "(cached) " >&6
4670else
4671  if test -z "$GREP"; then
4672  ac_path_GREP_found=false
4673  # Loop through the user's path and test for each of PROGNAME-LIST
4674  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4676do
4677  IFS=$as_save_IFS
4678  test -z "$as_dir" && as_dir=.
4679  for ac_prog in grep ggrep; do
4680    for ac_exec_ext in '' $ac_executable_extensions; do
4681      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4682      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4683# Check for GNU ac_path_GREP and select it if it is found.
4684  # Check for GNU $ac_path_GREP
4685case `"$ac_path_GREP" --version 2>&1` in
4686*GNU*)
4687  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4688*)
4689  ac_count=0
4690  $as_echo_n 0123456789 >"conftest.in"
4691  while :
4692  do
4693    cat "conftest.in" "conftest.in" >"conftest.tmp"
4694    mv "conftest.tmp" "conftest.in"
4695    cp "conftest.in" "conftest.nl"
4696    $as_echo 'GREP' >> "conftest.nl"
4697    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4698    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4699    ac_count=`expr $ac_count + 1`
4700    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4701      # Best one so far, save it but keep looking for a better one
4702      ac_cv_path_GREP="$ac_path_GREP"
4703      ac_path_GREP_max=$ac_count
4704    fi
4705    # 10*(2^10) chars as input seems more than enough
4706    test $ac_count -gt 10 && break
4707  done
4708  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4709esac
4710
4711      $ac_path_GREP_found && break 3
4712    done
4713  done
4714done
4715IFS=$as_save_IFS
4716  if test -z "$ac_cv_path_GREP"; then
4717    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4718$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4719   { (exit 1); exit 1; }; }
4720  fi
4721else
4722  ac_cv_path_GREP=$GREP
4723fi
4724
4725fi
4726{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4727$as_echo "$ac_cv_path_GREP" >&6; }
4728 GREP="$ac_cv_path_GREP"
4729
4730
4731{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4732$as_echo_n "checking for egrep... " >&6; }
4733if test "${ac_cv_path_EGREP+set}" = set; then
4734  $as_echo_n "(cached) " >&6
4735else
4736  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4737   then ac_cv_path_EGREP="$GREP -E"
4738   else
4739     if test -z "$EGREP"; then
4740  ac_path_EGREP_found=false
4741  # Loop through the user's path and test for each of PROGNAME-LIST
4742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747  for ac_prog in egrep; do
4748    for ac_exec_ext in '' $ac_executable_extensions; do
4749      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4750      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4751# Check for GNU ac_path_EGREP and select it if it is found.
4752  # Check for GNU $ac_path_EGREP
4753case `"$ac_path_EGREP" --version 2>&1` in
4754*GNU*)
4755  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4756*)
4757  ac_count=0
4758  $as_echo_n 0123456789 >"conftest.in"
4759  while :
4760  do
4761    cat "conftest.in" "conftest.in" >"conftest.tmp"
4762    mv "conftest.tmp" "conftest.in"
4763    cp "conftest.in" "conftest.nl"
4764    $as_echo 'EGREP' >> "conftest.nl"
4765    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4766    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4767    ac_count=`expr $ac_count + 1`
4768    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4769      # Best one so far, save it but keep looking for a better one
4770      ac_cv_path_EGREP="$ac_path_EGREP"
4771      ac_path_EGREP_max=$ac_count
4772    fi
4773    # 10*(2^10) chars as input seems more than enough
4774    test $ac_count -gt 10 && break
4775  done
4776  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4777esac
4778
4779      $ac_path_EGREP_found && break 3
4780    done
4781  done
4782done
4783IFS=$as_save_IFS
4784  if test -z "$ac_cv_path_EGREP"; then
4785    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4786$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4787   { (exit 1); exit 1; }; }
4788  fi
4789else
4790  ac_cv_path_EGREP=$EGREP
4791fi
4792
4793   fi
4794fi
4795{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4796$as_echo "$ac_cv_path_EGREP" >&6; }
4797 EGREP="$ac_cv_path_EGREP"
4798
4799
4800
4801  { $as_echo "$as_me:$LINENO: checking for Java virtual machine" >&5
4802$as_echo_n "checking for Java virtual machine... " >&6; }
4803  cat >conftest.$ac_ext <<_ACEOF
4804/* confdefs.h.  */
4805_ACEOF
4806cat confdefs.h >>conftest.$ac_ext
4807cat >>conftest.$ac_ext <<_ACEOF
4808/* end confdefs.h.  */
4809
4810#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
4811  yes
4812#endif
4813
4814_ACEOF
4815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816  $EGREP "yes" >/dev/null 2>&1; then
4817  CLASSPATH_SEPARATOR=';'
4818else
4819  CLASSPATH_SEPARATOR=':'
4820fi
4821rm -f conftest*
4822
4823  CONF_JAVA=
4824  HAVE_JAVA_ENVVAR=
4825  HAVE_GIJ=
4826  HAVE_JAVA=
4827  HAVE_JRE=
4828  HAVE_JVIEW=
4829  HAVE_JAVAEXEC=1
4830  if test -n "$JAVA"; then
4831    HAVE_JAVA_ENVVAR=1
4832    CONF_JAVA="$JAVA"
4833  else
4834                # Extract the first word of "gij", so it can be a program name with args.
4835set dummy gij; ac_word=$2
4836:
4837if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then
4838  $as_echo_n "(cached) " >&6
4839else
4840  if test -n "$HAVE_GIJ_IN_PATH"; then
4841  ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the test.
4842else
4843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844for as_dir in $PATH
4845do
4846  IFS=$as_save_IFS
4847  test -z "$as_dir" && as_dir=.
4848  for ac_exec_ext in '' $ac_executable_extensions; do
4849  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4850    ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
4851    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4852    break 2
4853  fi
4854done
4855done
4856IFS=$as_save_IFS
4857
4858fi
4859fi
4860HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
4861if test -n "$HAVE_GIJ_IN_PATH"; then
4862  :
4863else
4864  :
4865fi
4866
4867
4868    # Extract the first word of "java", so it can be a program name with args.
4869set dummy java; ac_word=$2
4870:
4871if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then
4872  $as_echo_n "(cached) " >&6
4873else
4874  if test -n "$HAVE_JAVA_IN_PATH"; then
4875  ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880  IFS=$as_save_IFS
4881  test -z "$as_dir" && as_dir=.
4882  for ac_exec_ext in '' $ac_executable_extensions; do
4883  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4884    ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
4885    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886    break 2
4887  fi
4888done
4889done
4890IFS=$as_save_IFS
4891
4892fi
4893fi
4894HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
4895if test -n "$HAVE_JAVA_IN_PATH"; then
4896  :
4897else
4898  :
4899fi
4900
4901
4902    # Extract the first word of "jre", so it can be a program name with args.
4903set dummy jre; ac_word=$2
4904:
4905if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then
4906  $as_echo_n "(cached) " >&6
4907else
4908  if test -n "$HAVE_JRE_IN_PATH"; then
4909  ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914  IFS=$as_save_IFS
4915  test -z "$as_dir" && as_dir=.
4916  for ac_exec_ext in '' $ac_executable_extensions; do
4917  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918    ac_cv_prog_HAVE_JRE_IN_PATH="yes"
4919    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920    break 2
4921  fi
4922done
4923done
4924IFS=$as_save_IFS
4925
4926fi
4927fi
4928HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
4929if test -n "$HAVE_JRE_IN_PATH"; then
4930  :
4931else
4932  :
4933fi
4934
4935
4936    # Extract the first word of "jview", so it can be a program name with args.
4937set dummy jview; ac_word=$2
4938:
4939if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then
4940  $as_echo_n "(cached) " >&6
4941else
4942  if test -n "$HAVE_JVIEW_IN_PATH"; then
4943  ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override the test.
4944else
4945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946for as_dir in $PATH
4947do
4948  IFS=$as_save_IFS
4949  test -z "$as_dir" && as_dir=.
4950  for ac_exec_ext in '' $ac_executable_extensions; do
4951  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952    ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
4953    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954    break 2
4955  fi
4956done
4957done
4958IFS=$as_save_IFS
4959
4960fi
4961fi
4962HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
4963if test -n "$HAVE_JVIEW_IN_PATH"; then
4964  :
4965else
4966  :
4967fi
4968
4969
4970
4971    export CLASSPATH
4972    if test -n "$HAVE_GIJ_IN_PATH" \
4973       && gij --version >/dev/null 2>/dev/null \
4974       ; then
4975      HAVE_GIJ=1
4976      CONF_JAVA="gij"
4977    else
4978      if test -n "$HAVE_JAVA_IN_PATH" \
4979         && java -version >/dev/null 2>/dev/null \
4980         ; then
4981        HAVE_JAVA=1
4982        CONF_JAVA="java"
4983      else
4984        if test -n "$HAVE_JRE_IN_PATH" \
4985           && (jre >/dev/null 2>/dev/null || test $? = 1) \
4986           ; then
4987          HAVE_JRE=1
4988          CONF_JAVA="jre"
4989        else
4990          if test -n "$HAVE_JVIEW_IN_PATH" \
4991             && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
4992             ; then
4993            HAVE_JVIEW=1
4994            CONF_JAVA="jview"
4995          else
4996            HAVE_JAVAEXEC=
4997          fi
4998        fi
4999      fi
5000    fi
5001
5002  fi
5003  if test -n "$HAVE_JAVAEXEC"; then
5004    ac_result="$CONF_JAVA"
5005  else
5006    ac_result="no"
5007  fi
5008  { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
5009$as_echo "$ac_result" >&6; }
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021  cat >conftest.$ac_ext <<_ACEOF
5022/* confdefs.h.  */
5023_ACEOF
5024cat confdefs.h >>conftest.$ac_ext
5025cat >>conftest.$ac_ext <<_ACEOF
5026/* end confdefs.h.  */
5027
5028#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
5029  yes
5030#endif
5031
5032_ACEOF
5033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5034  $EGREP "yes" >/dev/null 2>&1; then
5035  CLASSPATH_SEPARATOR=';'
5036else
5037  CLASSPATH_SEPARATOR=':'
5038fi
5039rm -f conftest*
5040
5041  source_version=1.3
5042  test -n "$source_version" || {
5043    { { $as_echo "$as_me:$LINENO: error: missing source-version argument to gt_JAVACOMP" >&5
5044$as_echo "$as_me: error: missing source-version argument to gt_JAVACOMP" >&2;}
5045   { (exit 1); exit 1; }; }
5046  }
5047  if test -n "$HAVE_JAVAEXEC"; then
5048              cat > conftestver.java <<EOF
5049public class conftestver {
5050  public static void main (String[] args) {
5051    System.out.println(System.getProperty("java.specification.version"));
5052  }
5053}
5054EOF
5055                                                                      echo 'xyvw!$!H!C,!)!2+!3!4*!5,!3!6,!7!8)!9)!:"!(LdhdmM"!$EFV"!%Ni_a"!1PdhaQngYakUXYfa"!%gXdh"!8EWPeXoXJfXhcJTmkdhcKFV"!,TinkZaOdfa"!2ZihbmalmoakIeXoX.!*!+)!;.!<!="!<eXoXIljaZdbdZXmdihIoakldih.!>!?)!@.!A!B"!-Zihbmalmoak"!2eXoXJfXhcJRYeaZm"!2eXoXJfXhcJTplmag"!$inm"!7PeXoXJdiJSkdhmTmkaXgK"!-camSkijakmp"!DEPeXoXJfXhcJTmkdhcKFPeXoXJfXhcJTmkdhcK"!5eXoXJdiJSkdhmTmkaXg"!)jkdhmfh"!7EPeXoXJfXhcJTmkdhcKFV!C!(!)!!!!!#!"!*!+!"!,!!!?!"!"!!!&Gt!"q!!!"!-!!!(!"!!!"!+!.!/!"!,!!!E!#!"!!!.r!#4$u!%s!&q!!!"!-!!!,!#!!!$!-!%!"!0!!!#!1' \
5056         | tr -d '\012\015' \
5057         | tr '!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzH' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\046\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\142\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\262\266\267\270\272\276\312\376\055' \
5058         > conftestver.class
5059       target_version=`{
5060         unset JAVA_HOME
5061         echo "$as_me:5061: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver" >&5
5062         CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conftestver 2>&5
5063       }`
5064       case "$target_version" in
5065         1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;;
5066         null)
5067                      target_version=1.1 ;;
5068         *) { $as_echo "$as_me:$LINENO: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&5
5069$as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;}
5070            target_version=1.1 ;;
5071       esac
5072     else
5073       target_version="1.1"
5074     fi
5075
5076  case "$source_version" in
5077    1.3) goodcode='class conftest {}'
5078         failcode='class conftestfail { static { assert(true); } }' ;;
5079    1.4) goodcode='class conftest     { static { assert(true); } }'
5080         failcode='class conftestfail<T> { T foo() { return null; } }' ;;
5081    1.5) goodcode='class conftest<T>     { T foo() { return null; } }'
5082         failcode='class conftestfail syntax error' ;;
5083    *) { { $as_echo "$as_me:$LINENO: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&5
5084$as_echo "$as_me: error: invalid source-version argument to gt_JAVACOMP: $source_version" >&2;}
5085   { (exit 1); exit 1; }; } ;;
5086  esac
5087  case "$target_version" in
5088    1.1) cfversion=45 ;;
5089    1.2) cfversion=46 ;;
5090    1.3) cfversion=47 ;;
5091    1.4) cfversion=48 ;;
5092    1.5) cfversion=49 ;;
5093    1.6) cfversion=50 ;;
5094    *) { { $as_echo "$as_me:$LINENO: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&5
5095$as_echo "$as_me: error: invalid target-version argument to gt_JAVACOMP: $target_version" >&2;}
5096   { (exit 1); exit 1; }; } ;;
5097  esac
5098  # Function to output the classfile version of a file (8th byte) in decimal.
5099  if od -A x < /dev/null >/dev/null 2>/dev/null; then
5100    # Use POSIX od.
5101    func_classfile_version ()
5102    {
5103      od -A n -t d1 -j 7 -N 1 "$1"
5104    }
5105  else
5106    # Use BSD hexdump.
5107    func_classfile_version ()
5108    {
5109      dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
5110      echo
5111    }
5112  fi
5113  { $as_echo "$as_me:$LINENO: checking for Java compiler" >&5
5114$as_echo_n "checking for Java compiler... " >&6; }
5115                                                                                        CONF_JAVAC=
5116  HAVE_JAVAC_ENVVAR=
5117  HAVE_GCJ_C=
5118  HAVE_JAVAC=
5119  HAVE_JIKES=
5120  HAVE_JAVACOMP=
5121  cat > conftestlib.java <<EOF
5122public class conftestlib {
5123  public static void main (String[] args) {
5124  }
5125}
5126EOF
5127  echo "$goodcode" > conftest.java
5128  echo "$failcode" > conftestfail.java
5129        if test -n "$JAVAC"; then
5130        if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
5131            if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5132                        rm -f conftest.class
5133        if { echo "$as_me:5133: $JAVAC -d . conftest.java" >&5
5134             $JAVAC -d . conftest.java >&5 2>&1
5135           } \
5136           && test -f conftest.class \
5137           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5138                    rm -f conftest.class
5139          rm -f conftestfail.class
5140          if { echo "$as_me:5140: $JAVAC -fsource=$source_version -d . conftest.java" >&5
5141               $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
5142             } \
5143             && test -f conftest.class \
5144             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5145             && { echo "$as_me:5145: $JAVAC -d . conftestfail.java" >&5
5146                  $JAVAC -d . conftestfail.java >&5 2>&1
5147                } \
5148             && test -f conftestfail.class \
5149             && ! { echo "$as_me:5149: $JAVAC -fsource=$source_version -d . conftestfail.java" >&5
5150                    $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5151                  }; then
5152            CONF_JAVAC="$JAVAC -fsource=$source_version"
5153            HAVE_JAVAC_ENVVAR=1
5154            HAVE_JAVACOMP=1
5155          else
5156            CONF_JAVAC="$JAVAC"
5157            HAVE_JAVAC_ENVVAR=1
5158            HAVE_JAVACOMP=1
5159          fi
5160        else
5161                    rm -f conftest.class
5162          rm -f conftestfail.class
5163          if { echo "$as_me:5163: $JAVAC -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5164               $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5165             } \
5166             && test -f conftest.class \
5167             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5168            CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version"
5169            HAVE_JAVAC_ENVVAR=1
5170            HAVE_JAVACOMP=1
5171          fi
5172        fi
5173      else
5174                if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5175                    rm -f conftest.class
5176          if { echo "$as_me:5176: $JAVAC -d . conftest.java" >&5
5177               $JAVAC -d . conftest.java >&5 2>&1
5178             } \
5179             && test -f conftest.class; then
5180            CONF_JAVAC="$JAVAC"
5181            HAVE_JAVAC_ENVVAR=1
5182            HAVE_JAVACOMP=1
5183          fi
5184        else
5185          if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5186                                    javac_works=
5187            rm -f conftest.class
5188            if { echo "$as_me:5188: $JAVAC -d . conftest.java" >&5
5189                 $JAVAC -d . conftest.java >&5 2>&1
5190               } \
5191               && test -f conftest.class; then
5192              javac_works=1
5193            fi
5194            javac_noassert_works=
5195            rm -f conftest.class
5196            if { echo "$as_me:5196: $JAVAC -fno-assert -d . conftest.java" >&5
5197                 $JAVAC -fno-assert -d . conftest.java >&5 2>&1
5198               } \
5199               && test -f conftest.class; then
5200              javac_noassert_works=1
5201            fi
5202            if test -n "$javac_works" && test -n "$javac_noassert_works"; then
5203              rm -f conftestfail.class
5204              if { echo "$as_me:5204: $JAVAC -d . conftestfail.java" >&5
5205                   $JAVAC -d . conftestfail.java >&5 2>&1
5206                 } \
5207                 && test -f conftestfail.class \
5208                 && ! { echo "$as_me:5208: $JAVAC -fno-assert -d . conftestfail.java" >&5
5209                        $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
5210                      }; then
5211                                javac_works=
5212              fi
5213            fi
5214            if test -n "$javac_works"; then
5215              CONF_JAVAC="$JAVAC"
5216              HAVE_JAVAC_ENVVAR=1
5217              HAVE_JAVACOMP=1
5218            else
5219              if test -n "$javac_noassert_works"; then
5220                CONF_JAVAC="$JAVAC -fno-assert"
5221                HAVE_JAVAC_ENVVAR=1
5222                HAVE_JAVACOMP=1
5223              fi
5224            fi
5225          fi
5226        fi
5227      fi
5228    else
5229                  rm -f conftest.class
5230      if { echo "$as_me:5230: $JAVAC -d . conftest.java" >&5
5231           $JAVAC -d . conftest.java >&5 2>&1
5232         } \
5233         && test -f conftest.class \
5234         && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5235                rm -f conftest.class
5236        rm -f conftestfail.class
5237        if { echo "$as_me:5237: $JAVAC -source $source_version -d . conftest.java" >&5
5238             $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
5239           } \
5240           && test -f conftest.class \
5241           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5242           && { echo "$as_me:5242: $JAVAC -d . conftestfail.java" >&5
5243                $JAVAC -d . conftestfail.java >&5 2>&1
5244              } \
5245           && test -f conftestfail.class \
5246           && ! { echo "$as_me:5246: $JAVAC -source $source_version -d . conftestfail.java" >&5
5247                  $JAVAC -source "$source_version" -d . conftestfail.java >&5 2>&1
5248                }; then
5249          CONF_JAVAC="$JAVAC -source $source_version"
5250          HAVE_JAVAC_ENVVAR=1
5251          HAVE_JAVACOMP=1
5252        else
5253          CONF_JAVAC="$JAVAC"
5254          HAVE_JAVAC_ENVVAR=1
5255          HAVE_JAVACOMP=1
5256        fi
5257      else
5258                        rm -f conftest.class
5259        if { echo "$as_me:5259: $JAVAC -target $target_version -d . conftest.java" >&5
5260             $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
5261           } \
5262           && test -f conftest.class \
5263           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5264                    rm -f conftest.class
5265          rm -f conftestfail.class
5266          if { echo "$as_me:5266: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5267               $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5268             } \
5269             && test -f conftest.class \
5270             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5271             && { echo "$as_me:5271: $JAVAC -target $target_version -d . conftestfail.java" >&5
5272                  $JAVAC -target "$target_version" -d . conftestfail.java >&5 2>&1
5273                } \
5274             && test -f conftestfail.class \
5275             && ! { echo "$as_me:5275: $JAVAC -target $target_version -source $source_version -d . conftestfail.java" >&5
5276                    $JAVAC -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5277                  }; then
5278            CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5279            HAVE_JAVAC_ENVVAR=1
5280            HAVE_JAVACOMP=1
5281          else
5282            CONF_JAVAC="$JAVAC -target $target_version"
5283            HAVE_JAVAC_ENVVAR=1
5284            HAVE_JAVACOMP=1
5285          fi
5286        else
5287                                        rm -f conftest.class
5288          if { echo "$as_me:5288: $JAVAC -target $target_version -source $source_version -d . conftest.java" >&5
5289               $JAVAC -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5290             } \
5291             && test -f conftest.class \
5292             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5293            CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
5294            HAVE_JAVAC_ENVVAR=1
5295            HAVE_JAVACOMP=1
5296          fi
5297        fi
5298      fi
5299    fi
5300  fi
5301  if test -z "$HAVE_JAVACOMP"; then
5302                # Extract the first word of "gcj", so it can be a program name with args.
5303set dummy gcj; ac_word=$2
5304:
5305if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then
5306  $as_echo_n "(cached) " >&6
5307else
5308  if test -n "$HAVE_GCJ_IN_PATH"; then
5309  ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the test.
5310else
5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314  IFS=$as_save_IFS
5315  test -z "$as_dir" && as_dir=.
5316  for ac_exec_ext in '' $ac_executable_extensions; do
5317  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5318    ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
5319    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320    break 2
5321  fi
5322done
5323done
5324IFS=$as_save_IFS
5325
5326fi
5327fi
5328HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
5329if test -n "$HAVE_GCJ_IN_PATH"; then
5330  :
5331else
5332  :
5333fi
5334
5335
5336    # Extract the first word of "javac", so it can be a program name with args.
5337set dummy javac; ac_word=$2
5338:
5339if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then
5340  $as_echo_n "(cached) " >&6
5341else
5342  if test -n "$HAVE_JAVAC_IN_PATH"; then
5343  ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override the test.
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348  IFS=$as_save_IFS
5349  test -z "$as_dir" && as_dir=.
5350  for ac_exec_ext in '' $ac_executable_extensions; do
5351  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5352    ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
5353    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354    break 2
5355  fi
5356done
5357done
5358IFS=$as_save_IFS
5359
5360fi
5361fi
5362HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
5363if test -n "$HAVE_JAVAC_IN_PATH"; then
5364  :
5365else
5366  :
5367fi
5368
5369
5370    # Extract the first word of "jikes", so it can be a program name with args.
5371set dummy jikes; ac_word=$2
5372:
5373if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then
5374  $as_echo_n "(cached) " >&6
5375else
5376  if test -n "$HAVE_JIKES_IN_PATH"; then
5377  ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override the test.
5378else
5379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382  IFS=$as_save_IFS
5383  test -z "$as_dir" && as_dir=.
5384  for ac_exec_ext in '' $ac_executable_extensions; do
5385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386    ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
5387    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5388    break 2
5389  fi
5390done
5391done
5392IFS=$as_save_IFS
5393
5394fi
5395fi
5396HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
5397if test -n "$HAVE_JIKES_IN_PATH"; then
5398  :
5399else
5400  :
5401fi
5402
5403
5404                if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
5405            if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
5406                if { echo "$as_me:5406: gcj -C -d . conftestlib.java" >&5
5407             gcj -C -d . conftestlib.java >&5 2>&1
5408           }; then
5409                    if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
5410                                    rm -f conftest.class
5411            if { echo "$as_me:5411: gcj -C -d . conftest.java" >&5
5412                 gcj -C -d . conftest.java >&5 2>&1
5413               } \
5414               && test -f conftest.class \
5415               && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5416                            rm -f conftest.class
5417              rm -f conftestfail.class
5418              if { echo "$as_me:5418: gcj -C -fsource=$source_version -d . conftest.java" >&5
5419                   gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
5420                 } \
5421                 && test -f conftest.class \
5422                 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5423                 && { echo "$as_me:5423: gcj -C -d . conftestfail.java" >&5
5424                      gcj -C -d . conftestfail.java >&5 2>&1
5425                    } \
5426                 && test -f conftestfail.class \
5427                 && ! { echo "$as_me:5427: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
5428                        gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
5429                      }; then
5430                CONF_JAVAC="gcj -C -fsource=$source_version"
5431                HAVE_JAVAC_ENVVAR=1
5432                HAVE_JAVACOMP=1
5433              else
5434                CONF_JAVAC="gcj -C"
5435                HAVE_JAVAC_ENVVAR=1
5436                HAVE_JAVACOMP=1
5437              fi
5438            else
5439                            rm -f conftest.class
5440              rm -f conftestfail.class
5441              if { echo "$as_me:5441: gcj -C -fsource=$source_version -ftarget=$target_version -d . conftest.java" >&5
5442                   gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
5443                 } \
5444                 && test -f conftest.class \
5445                 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5446                CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_version"
5447                HAVE_JAVAC_ENVVAR=1
5448                HAVE_JAVACOMP=1
5449              fi
5450            fi
5451          else
5452                                                if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
5453              rm -f conftest.class
5454              if { echo "$as_me:5454: gcj -C -d . conftest.java" >&5
5455                   gcj -C -d . conftest.java >&5 2>&1
5456                 } \
5457                 && test -f conftest.class; then
5458                CONF_JAVAC="gcj -C"
5459                HAVE_GCJ_C=1
5460                HAVE_JAVACOMP=1
5461              fi
5462            else
5463              if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
5464                                                rm -f conftest.class
5465                if { echo "$as_me:5465: gcj -C -fno-assert -d . conftest.java" >&5
5466                     gcj -C -fno-assert -d . conftest.java >&5 2>&1
5467                   } \
5468                   && test -f conftest.class; then
5469                  CONF_JAVAC="gcj -C -fno-assert"
5470                  HAVE_GCJ_C=1
5471                  HAVE_JAVACOMP=1
5472                else
5473                  rm -f conftest.class
5474                  if { echo "$as_me:5474: gcj -C -d . conftest.java" >&5
5475                       gcj -C -d . conftest.java >&5 2>&1
5476                     } \
5477                     && test -f conftest.class; then
5478                    CONF_JAVAC="gcj -C"
5479                    HAVE_GCJ_C=1
5480                    HAVE_JAVACOMP=1
5481                  fi
5482                fi
5483              fi
5484            fi
5485          fi
5486        fi
5487      fi
5488    fi
5489    if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
5490            if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
5491         && ( 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
5492                                rm -f conftest.class
5493        if { echo "$as_me:5493: javac -d . conftest.java" >&5
5494             javac -d . conftest.java >&5 2>&1
5495           } \
5496           && test -f conftest.class \
5497           && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5498                    rm -f conftest.class
5499          rm -f conftestfail.class
5500          if { echo "$as_me:5500: javac -source $source_version -d . conftest.java" >&5
5501               javac -source "$source_version" -d . conftest.java >&5 2>&1
5502             } \
5503             && test -f conftest.class \
5504             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5505             && { echo "$as_me:5505: javac -d . conftestfail.java" >&5
5506                  javac -d . conftestfail.java >&5 2>&1
5507                } \
5508             && test -f conftestfail.class \
5509             && ! { echo "$as_me:5509: javac -source $source_version -d . conftestfail.java" >&5
5510                    javac -source "$source_version" -d . conftestfail.java >&5 2>&1
5511                  }; then
5512            CONF_JAVAC="javac -source $source_version"
5513            HAVE_JAVAC=1
5514            HAVE_JAVACOMP=1
5515          else
5516            CONF_JAVAC="javac"
5517            HAVE_JAVAC=1
5518            HAVE_JAVACOMP=1
5519          fi
5520        else
5521                              rm -f conftest.class
5522          if { echo "$as_me:5522: javac -target $target_version -d . conftest.java" >&5
5523               javac -target "$target_version" -d . conftest.java >&5 2>&1
5524             } \
5525             && test -f conftest.class \
5526             && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5527                        rm -f conftest.class
5528            rm -f conftestfail.class
5529            if { echo "$as_me:5529: javac -target $target_version -source $source_version -d . conftest.java" >&5
5530                 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5531               } \
5532               && test -f conftest.class \
5533               && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
5534               && { echo "$as_me:5534: javac -target $target_version -d . conftestfail.java" >&5
5535                    javac -target "$target_version" -d . conftestfail.java >&5 2>&1
5536                  } \
5537               && test -f conftestfail.class \
5538               && ! { echo "$as_me:5538: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
5539                      javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
5540                    }; then
5541              CONF_JAVAC="javac -target $target_version -source $source_version"
5542              HAVE_JAVAC=1
5543              HAVE_JAVACOMP=1
5544            else
5545              CONF_JAVAC="javac -target $target_version"
5546              HAVE_JAVAC=1
5547              HAVE_JAVACOMP=1
5548            fi
5549          else
5550                                                rm -f conftest.class
5551            if { echo "$as_me:5551: javac -target $target_version -source $source_version -d . conftest.java" >&5
5552                 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
5553               } \
5554               && test -f conftest.class \
5555               && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
5556              CONF_JAVAC="javac -target $target_version -source $source_version"
5557              HAVE_JAVAC=1
5558              HAVE_JAVACOMP=1
5559            fi
5560          fi
5561        fi
5562      fi
5563    fi
5564    if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
5565            if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
5566         && (
5567              # See if the existing CLASSPATH is sufficient to make jikes work.
5568              unset JAVA_HOME
5569              jikes conftestlib.java >&5 2>&1
5570              error=$?
5571              rm -f conftestlib.class
5572              exit $error
5573            ); then
5574                                if test "$source_version" = 1.3; then
5575          CONF_JAVAC="jikes"
5576          HAVE_JIKES=1
5577          HAVE_JAVACOMP=1
5578        fi
5579      fi
5580    fi
5581  fi
5582  rm -f conftest*.java conftest*.class
5583  if test -n "$HAVE_JAVACOMP"; then
5584    ac_result="$CONF_JAVAC"
5585  else
5586    ac_result="no"
5587  fi
5588  { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
5589$as_echo "$ac_result" >&6; }
5590
5591
5592
5593
5594
5595
5596
5597
5598# Extract the first word of "jar", so it can be a program name with args.
5599set dummy jar; ac_word=$2
5600{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5601$as_echo_n "checking for $ac_word... " >&6; }
5602if test "${ac_cv_prog_JAR+set}" = set; then
5603  $as_echo_n "(cached) " >&6
5604else
5605  if test -n "$JAR"; then
5606  ac_cv_prog_JAR="$JAR" # Let the user override the test.
5607else
5608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH
5610do
5611  IFS=$as_save_IFS
5612  test -z "$as_dir" && as_dir=.
5613  for ac_exec_ext in '' $ac_executable_extensions; do
5614  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615    ac_cv_prog_JAR="jar"
5616    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5617    break 2
5618  fi
5619done
5620done
5621IFS=$as_save_IFS
5622
5623fi
5624fi
5625JAR=$ac_cv_prog_JAR
5626if test -n "$JAR"; then
5627  { $as_echo "$as_me:$LINENO: result: $JAR" >&5
5628$as_echo "$JAR" >&6; }
5629else
5630  { $as_echo "$as_me:$LINENO: result: no" >&5
5631$as_echo "no" >&6; }
5632fi
5633
5634
5635if test -n "$HAVE_JAVACOMP" && test -n "$JAR" && test "$JAVA_CHOICE" != no; then
5636  BUILDJAVA=yes
5637else
5638  BUILDJAVA=no
5639fi
5640
5641if test -n "$HAVE_JAVAEXEC" && test $BUILDJAVA = yes; then
5642  TESTJAVA=yes
5643else
5644  TESTJAVA=no
5645fi
5646
5647
5648
5649  { $as_echo "$as_me:$LINENO: checking for preferred C# implementation" >&5
5650$as_echo_n "checking for preferred C# implementation... " >&6; }
5651  # Check whether --enable-csharp was given.
5652if test "${enable_csharp+set}" = set; then
5653  enableval=$enable_csharp; CSHARP_CHOICE="$enableval"
5654else
5655  CSHARP_CHOICE=any
5656fi
5657
5658
5659  { $as_echo "$as_me:$LINENO: result: $CSHARP_CHOICE" >&5
5660$as_echo "$CSHARP_CHOICE" >&6; }
5661  case "$CSHARP_CHOICE" in
5662    pnet)
5663
5664cat >>confdefs.h <<\_ACEOF
5665#define CSHARP_CHOICE_PNET 1
5666_ACEOF
5667
5668      ;;
5669    mono)
5670
5671cat >>confdefs.h <<\_ACEOF
5672#define CSHARP_CHOICE_MONO 1
5673_ACEOF
5674
5675      ;;
5676  esac
5677
5678
5679
5680  { $as_echo "$as_me:$LINENO: checking for C# compiler" >&5
5681$as_echo_n "checking for C# compiler... " >&6; }
5682  HAVE_CSHARPCOMP=1
5683        # Extract the first word of "cscc", so it can be a program name with args.
5684set dummy cscc; ac_word=$2
5685:
5686if test "${ac_cv_prog_HAVE_CSCC_IN_PATH+set}" = set; then
5687  $as_echo_n "(cached) " >&6
5688else
5689  if test -n "$HAVE_CSCC_IN_PATH"; then
5690  ac_cv_prog_HAVE_CSCC_IN_PATH="$HAVE_CSCC_IN_PATH" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695  IFS=$as_save_IFS
5696  test -z "$as_dir" && as_dir=.
5697  for ac_exec_ext in '' $ac_executable_extensions; do
5698  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699    ac_cv_prog_HAVE_CSCC_IN_PATH="yes"
5700    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704done
5705IFS=$as_save_IFS
5706
5707fi
5708fi
5709HAVE_CSCC_IN_PATH=$ac_cv_prog_HAVE_CSCC_IN_PATH
5710if test -n "$HAVE_CSCC_IN_PATH"; then
5711  :
5712else
5713  :
5714fi
5715
5716
5717  # Extract the first word of "mcs", so it can be a program name with args.
5718set dummy mcs; ac_word=$2
5719:
5720if test "${ac_cv_prog_HAVE_MCS_IN_PATH+set}" = set; then
5721  $as_echo_n "(cached) " >&6
5722else
5723  if test -n "$HAVE_MCS_IN_PATH"; then
5724  ac_cv_prog_HAVE_MCS_IN_PATH="$HAVE_MCS_IN_PATH" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731  for ac_exec_ext in '' $ac_executable_extensions; do
5732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733    ac_cv_prog_HAVE_MCS_IN_PATH="yes"
5734    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735    break 2
5736  fi
5737done
5738done
5739IFS=$as_save_IFS
5740
5741fi
5742fi
5743HAVE_MCS_IN_PATH=$ac_cv_prog_HAVE_MCS_IN_PATH
5744if test -n "$HAVE_MCS_IN_PATH"; then
5745  :
5746else
5747  :
5748fi
5749
5750
5751  # Extract the first word of "csc", so it can be a program name with args.
5752set dummy csc; ac_word=$2
5753:
5754if test "${ac_cv_prog_HAVE_CSC_IN_PATH+set}" = set; then
5755  $as_echo_n "(cached) " >&6
5756else
5757  if test -n "$HAVE_CSC_IN_PATH"; then
5758  ac_cv_prog_HAVE_CSC_IN_PATH="$HAVE_CSC_IN_PATH" # Let the user override the test.
5759else
5760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761for as_dir in $PATH
5762do
5763  IFS=$as_save_IFS
5764  test -z "$as_dir" && as_dir=.
5765  for ac_exec_ext in '' $ac_executable_extensions; do
5766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767    ac_cv_prog_HAVE_CSC_IN_PATH="yes"
5768    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5769    break 2
5770  fi
5771done
5772done
5773IFS=$as_save_IFS
5774
5775fi
5776fi
5777HAVE_CSC_IN_PATH=$ac_cv_prog_HAVE_CSC_IN_PATH
5778if test -n "$HAVE_CSC_IN_PATH"; then
5779  :
5780else
5781  :
5782fi
5783
5784
5785        for impl in "$CSHARP_CHOICE" pnet mono sscli no; do
5786    case "$impl" in
5787      pnet)
5788        if test -n "$HAVE_CSCC_IN_PATH" \
5789           && cscc --version >/dev/null 2>/dev/null \
5790           && (
5791             # See if pnetlib is well installed.
5792             echo 'class ConfTest { static void Main() { } }' > conftest.cs
5793             cscc -o conftest.exe conftest.cs 2>/dev/null
5794             error=$?
5795             rm -f conftest.cs conftest.exe
5796             exit $error
5797            ); then
5798          HAVE_CSCC=1
5799          ac_result="cscc"
5800          break
5801        fi
5802        ;;
5803      mono)
5804        if test -n "$HAVE_MCS_IN_PATH" \
5805           && mcs --version >/dev/null 2>/dev/null \
5806           && mcs --version 2>/dev/null | grep Mono >/dev/null; then
5807          HAVE_MCS=1
5808          ac_result="mcs"
5809          break
5810        fi
5811        ;;
5812      sscli)
5813        if test -n "$HAVE_CSC_IN_PATH" \
5814           && csc -help >/dev/null 2>/dev/null \
5815           && { if csc -help 2>/dev/null | grep -i chicken > /dev/null; then false; else true; fi; }; then
5816          HAVE_CSC=1
5817          ac_result="csc"
5818          break
5819        fi
5820        ;;
5821      no)
5822        HAVE_CSHARPCOMP=
5823        ac_result="no"
5824        break
5825        ;;
5826    esac
5827  done
5828  { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
5829$as_echo "$ac_result" >&6; }
5830
5831
5832
5833    if test -z "${CSHARPCOMPFLAGS+set}"; then
5834    CSHARPCOMPFLAGS="-O -g"
5835  fi
5836
5837
5838if test -n "$HAVE_CSHARPCOMP" && test "$CSHARP_CHOICE" != no; then
5839  BUILDCSHARP=yes
5840else
5841  BUILDCSHARP=no
5842fi
5843
5844
5845
5846
5847  { $as_echo "$as_me:$LINENO: checking for C# program execution engine" >&5
5848$as_echo_n "checking for C# program execution engine... " >&6; }
5849  cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h.  */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h.  */
5855
5856#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
5857  yes
5858#endif
5859
5860_ACEOF
5861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5862  $EGREP "yes" >/dev/null 2>&1; then
5863  MONO_PATH_SEPARATOR=';'
5864else
5865  MONO_PATH_SEPARATOR=':'
5866fi
5867rm -f conftest*
5868
5869  HAVE_CSHARPEXEC=1
5870        # Extract the first word of "ilrun", so it can be a program name with args.
5871set dummy ilrun; ac_word=$2
5872:
5873if test "${ac_cv_prog_HAVE_ILRUN_IN_PATH+set}" = set; then
5874  $as_echo_n "(cached) " >&6
5875else
5876  if test -n "$HAVE_ILRUN_IN_PATH"; then
5877  ac_cv_prog_HAVE_ILRUN_IN_PATH="$HAVE_ILRUN_IN_PATH" # Let the user override the test.
5878else
5879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880for as_dir in $PATH
5881do
5882  IFS=$as_save_IFS
5883  test -z "$as_dir" && as_dir=.
5884  for ac_exec_ext in '' $ac_executable_extensions; do
5885  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886    ac_cv_prog_HAVE_ILRUN_IN_PATH="yes"
5887    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5888    break 2
5889  fi
5890done
5891done
5892IFS=$as_save_IFS
5893
5894fi
5895fi
5896HAVE_ILRUN_IN_PATH=$ac_cv_prog_HAVE_ILRUN_IN_PATH
5897if test -n "$HAVE_ILRUN_IN_PATH"; then
5898  :
5899else
5900  :
5901fi
5902
5903
5904  # Extract the first word of "mono", so it can be a program name with args.
5905set dummy mono; ac_word=$2
5906:
5907if test "${ac_cv_prog_HAVE_MONO_IN_PATH+set}" = set; then
5908  $as_echo_n "(cached) " >&6
5909else
5910  if test -n "$HAVE_MONO_IN_PATH"; then
5911  ac_cv_prog_HAVE_MONO_IN_PATH="$HAVE_MONO_IN_PATH" # Let the user override the test.
5912else
5913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914for as_dir in $PATH
5915do
5916  IFS=$as_save_IFS
5917  test -z "$as_dir" && as_dir=.
5918  for ac_exec_ext in '' $ac_executable_extensions; do
5919  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920    ac_cv_prog_HAVE_MONO_IN_PATH="yes"
5921    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5922    break 2
5923  fi
5924done
5925done
5926IFS=$as_save_IFS
5927
5928fi
5929fi
5930HAVE_MONO_IN_PATH=$ac_cv_prog_HAVE_MONO_IN_PATH
5931if test -n "$HAVE_MONO_IN_PATH"; then
5932  :
5933else
5934  :
5935fi
5936
5937
5938  # Extract the first word of "clix", so it can be a program name with args.
5939set dummy clix; ac_word=$2
5940:
5941if test "${ac_cv_prog_HAVE_CLIX_IN_PATH+set}" = set; then
5942  $as_echo_n "(cached) " >&6
5943else
5944  if test -n "$HAVE_CLIX_IN_PATH"; then
5945  ac_cv_prog_HAVE_CLIX_IN_PATH="$HAVE_CLIX_IN_PATH" # Let the user override the test.
5946else
5947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948for as_dir in $PATH
5949do
5950  IFS=$as_save_IFS
5951  test -z "$as_dir" && as_dir=.
5952  for ac_exec_ext in '' $ac_executable_extensions; do
5953  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5954    ac_cv_prog_HAVE_CLIX_IN_PATH="yes"
5955    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5956    break 2
5957  fi
5958done
5959done
5960IFS=$as_save_IFS
5961
5962fi
5963fi
5964HAVE_CLIX_IN_PATH=$ac_cv_prog_HAVE_CLIX_IN_PATH
5965if test -n "$HAVE_CLIX_IN_PATH"; then
5966  :
5967else
5968  :
5969fi
5970
5971
5972        for impl in "$CSHARP_CHOICE" pnet mono no; do
5973    case "$impl" in
5974      pnet)
5975        if test -n "$HAVE_ILRUN_IN_PATH" \
5976           && ilrun --version >/dev/null 2>/dev/null \
5977           && ilrun $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
5978          HAVE_ILRUN=1
5979          ac_result="ilrun"
5980          break
5981        fi
5982        ;;
5983      mono)
5984        if test -n "$HAVE_MONO_IN_PATH" \
5985           && mono --version >/dev/null 2>/dev/null \
5986           && mono $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
5987          HAVE_MONO=1
5988          ac_result="mono"
5989          break
5990        fi
5991        ;;
5992      sscli)
5993        if test -n "$HAVE_CLIX_IN_PATH" \
5994           && clix $srcdir/m4/csharpexec-test.exe >/dev/null 2>/dev/null; then
5995          HAVE_CLIX=1
5996          case $host_os in
5997            cygwin* | mingw* | pw32*)
5998              CLIX_PATH_VAR=PATH
5999              ;;
6000            darwin* | rhapsody*)
6001              CLIX_PATH_VAR=DYLD_LIBRARY_PATH
6002              ;;
6003            *)
6004              CLIX_PATH_VAR=LD_LIBRARY_PATH
6005              ;;
6006          esac
6007          eval CLIX_PATH=\"\$CLIX_PATH_VAR\"
6008          ac_result="clix"
6009          break
6010        fi
6011        ;;
6012      no)
6013        HAVE_CSHARPEXEC=
6014        ac_result="no"
6015        break
6016        ;;
6017    esac
6018  done
6019  { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
6020$as_echo "$ac_result" >&6; }
6021
6022
6023
6024
6025
6026
6027
6028
6029if test -n "$HAVE_CSHARPEXEC" && test $BUILDCSHARP = yes; then
6030  TESTCSHARP=yes
6031else
6032  TESTCSHARP=no
6033fi
6034
6035
6036# Make sure we can run config.sub.
6037$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6038  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6039$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6040   { (exit 1); exit 1; }; }
6041
6042{ $as_echo "$as_me:$LINENO: checking build system type" >&5
6043$as_echo_n "checking build system type... " >&6; }
6044if test "${ac_cv_build+set}" = set; then
6045  $as_echo_n "(cached) " >&6
6046else
6047  ac_build_alias=$build_alias
6048test "x$ac_build_alias" = x &&
6049  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6050test "x$ac_build_alias" = x &&
6051  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6052$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6053   { (exit 1); exit 1; }; }
6054ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6055  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6056$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6057   { (exit 1); exit 1; }; }
6058
6059fi
6060{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6061$as_echo "$ac_cv_build" >&6; }
6062case $ac_cv_build in
6063*-*-*) ;;
6064*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6065$as_echo "$as_me: error: invalid value of canonical build" >&2;}
6066   { (exit 1); exit 1; }; };;
6067esac
6068build=$ac_cv_build
6069ac_save_IFS=$IFS; IFS='-'
6070set x $ac_cv_build
6071shift
6072build_cpu=$1
6073build_vendor=$2
6074shift; shift
6075# Remember, the first character of IFS is used to create $*,
6076# except with old shells:
6077build_os=$*
6078IFS=$ac_save_IFS
6079case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6080
6081
6082{ $as_echo "$as_me:$LINENO: checking host system type" >&5
6083$as_echo_n "checking host system type... " >&6; }
6084if test "${ac_cv_host+set}" = set; then
6085  $as_echo_n "(cached) " >&6
6086else
6087  if test "x$host_alias" = x; then
6088  ac_cv_host=$ac_cv_build
6089else
6090  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6091    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6092$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6093   { (exit 1); exit 1; }; }
6094fi
6095
6096fi
6097{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6098$as_echo "$ac_cv_host" >&6; }
6099case $ac_cv_host in
6100*-*-*) ;;
6101*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6102$as_echo "$as_me: error: invalid value of canonical host" >&2;}
6103   { (exit 1); exit 1; }; };;
6104esac
6105host=$ac_cv_host
6106ac_save_IFS=$IFS; IFS='-'
6107set x $ac_cv_host
6108shift
6109host_cpu=$1
6110host_vendor=$2
6111shift; shift
6112# Remember, the first character of IFS is used to create $*,
6113# except with old shells:
6114host_os=$*
6115IFS=$ac_save_IFS
6116case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6117
6118
6119
6120
6121
6122
6123if test -n "$ac_tool_prefix"; then
6124  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6125set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6126{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6127$as_echo_n "checking for $ac_word... " >&6; }
6128if test "${ac_cv_prog_RANLIB+set}" = set; then
6129  $as_echo_n "(cached) " >&6
6130else
6131  if test -n "$RANLIB"; then
6132  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6133else
6134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135for as_dir in $PATH
6136do
6137  IFS=$as_save_IFS
6138  test -z "$as_dir" && as_dir=.
6139  for ac_exec_ext in '' $ac_executable_extensions; do
6140  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6141    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6142    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6143    break 2
6144  fi
6145done
6146done
6147IFS=$as_save_IFS
6148
6149fi
6150fi
6151RANLIB=$ac_cv_prog_RANLIB
6152if test -n "$RANLIB"; then
6153  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6154$as_echo "$RANLIB" >&6; }
6155else
6156  { $as_echo "$as_me:$LINENO: result: no" >&5
6157$as_echo "no" >&6; }
6158fi
6159
6160
6161fi
6162if test -z "$ac_cv_prog_RANLIB"; then
6163  ac_ct_RANLIB=$RANLIB
6164  # Extract the first word of "ranlib", so it can be a program name with args.
6165set dummy ranlib; ac_word=$2
6166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6167$as_echo_n "checking for $ac_word... " >&6; }
6168if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6169  $as_echo_n "(cached) " >&6
6170else
6171  if test -n "$ac_ct_RANLIB"; then
6172  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6173else
6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH
6176do
6177  IFS=$as_save_IFS
6178  test -z "$as_dir" && as_dir=.
6179  for ac_exec_ext in '' $ac_executable_extensions; do
6180  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181    ac_cv_prog_ac_ct_RANLIB="ranlib"
6182    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183    break 2
6184  fi
6185done
6186done
6187IFS=$as_save_IFS
6188
6189fi
6190fi
6191ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6192if test -n "$ac_ct_RANLIB"; then
6193  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6194$as_echo "$ac_ct_RANLIB" >&6; }
6195else
6196  { $as_echo "$as_me:$LINENO: result: no" >&5
6197$as_echo "no" >&6; }
6198fi
6199
6200  if test "x$ac_ct_RANLIB" = x; then
6201    RANLIB=":"
6202  else
6203    case $cross_compiling:$ac_tool_warned in
6204yes:)
6205{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6207ac_tool_warned=yes ;;
6208esac
6209    RANLIB=$ac_ct_RANLIB
6210  fi
6211else
6212  RANLIB="$ac_cv_prog_RANLIB"
6213fi
6214
6215if test "x$CC" != xcc; then
6216  { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
6217$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6218else
6219  { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
6220$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6221fi
6222set dummy $CC; ac_cc=`$as_echo "$2" |
6223		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6224if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
6225  $as_echo_n "(cached) " >&6
6226else
6227  cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h.  */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h.  */
6233
6234int
6235main ()
6236{
6237
6238  ;
6239  return 0;
6240}
6241_ACEOF
6242# Make sure it works both with $CC and with simple cc.
6243# We do the test twice because some compilers refuse to overwrite an
6244# existing .o file with -o, though they will create one.
6245ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6246rm -f conftest2.*
6247if { (case "(($ac_try" in
6248  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249  *) ac_try_echo=$ac_try;;
6250esac
6251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6252$as_echo "$ac_try_echo") >&5
6253  (eval "$ac_try") 2>&5
6254  ac_status=$?
6255  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256  (exit $ac_status); } &&
6257   test -f conftest2.$ac_objext && { (case "(($ac_try" in
6258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259  *) ac_try_echo=$ac_try;;
6260esac
6261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262$as_echo "$ac_try_echo") >&5
6263  (eval "$ac_try") 2>&5
6264  ac_status=$?
6265  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266  (exit $ac_status); };
6267then
6268  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6269  if test "x$CC" != xcc; then
6270    # Test first that cc exists at all.
6271    if { ac_try='cc -c conftest.$ac_ext >&5'
6272  { (case "(($ac_try" in
6273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274  *) ac_try_echo=$ac_try;;
6275esac
6276eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6277$as_echo "$ac_try_echo") >&5
6278  (eval "$ac_try") 2>&5
6279  ac_status=$?
6280  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281  (exit $ac_status); }; }; then
6282      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6283      rm -f conftest2.*
6284      if { (case "(($ac_try" in
6285  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286  *) ac_try_echo=$ac_try;;
6287esac
6288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6289$as_echo "$ac_try_echo") >&5
6290  (eval "$ac_try") 2>&5
6291  ac_status=$?
6292  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); } &&
6294	 test -f conftest2.$ac_objext && { (case "(($ac_try" in
6295  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296  *) ac_try_echo=$ac_try;;
6297esac
6298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299$as_echo "$ac_try_echo") >&5
6300  (eval "$ac_try") 2>&5
6301  ac_status=$?
6302  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303  (exit $ac_status); };
6304      then
6305	# cc works too.
6306	:
6307      else
6308	# cc exists but doesn't like -o.
6309	eval ac_cv_prog_cc_${ac_cc}_c_o=no
6310      fi
6311    fi
6312  fi
6313else
6314  eval ac_cv_prog_cc_${ac_cc}_c_o=no
6315fi
6316rm -f core conftest*
6317
6318fi
6319if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6320  { $as_echo "$as_me:$LINENO: result: yes" >&5
6321$as_echo "yes" >&6; }
6322else
6323  { $as_echo "$as_me:$LINENO: result: no" >&5
6324$as_echo "no" >&6; }
6325
6326cat >>confdefs.h <<\_ACEOF
6327#define NO_MINUS_C_MINUS_O 1
6328_ACEOF
6329
6330fi
6331
6332# FIXME: we rely on the cache variable name because
6333# there is no other way.
6334set dummy $CC
6335ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6336if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6337   # Losing compiler, so override with the script.
6338   # FIXME: It is wrong to rewrite CC.
6339   # But if we don't then we get into trouble of one sort or another.
6340   # A longer-term fix would be to have automake use am__CC in this case,
6341   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6342   CC="$am_aux_dir/compile $CC"
6343fi
6344
6345
6346{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6347$as_echo_n "checking for ANSI C header files... " >&6; }
6348if test "${ac_cv_header_stdc+set}" = set; then
6349  $as_echo_n "(cached) " >&6
6350else
6351  cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h.  */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h.  */
6357#include <stdlib.h>
6358#include <stdarg.h>
6359#include <string.h>
6360#include <float.h>
6361
6362int
6363main ()
6364{
6365
6366  ;
6367  return 0;
6368}
6369_ACEOF
6370rm -f conftest.$ac_objext
6371if { (ac_try="$ac_compile"
6372case "(($ac_try" in
6373  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374  *) ac_try_echo=$ac_try;;
6375esac
6376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6377$as_echo "$ac_try_echo") >&5
6378  (eval "$ac_compile") 2>conftest.er1
6379  ac_status=$?
6380  grep -v '^ *+' conftest.er1 >conftest.err
6381  rm -f conftest.er1
6382  cat conftest.err >&5
6383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384  (exit $ac_status); } && {
6385	 test -z "$ac_c_werror_flag" ||
6386	 test ! -s conftest.err
6387       } && test -s conftest.$ac_objext; then
6388  ac_cv_header_stdc=yes
6389else
6390  $as_echo "$as_me: failed program was:" >&5
6391sed 's/^/| /' conftest.$ac_ext >&5
6392
6393	ac_cv_header_stdc=no
6394fi
6395
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397
6398if test $ac_cv_header_stdc = yes; then
6399  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6400  cat >conftest.$ac_ext <<_ACEOF
6401/* confdefs.h.  */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h.  */
6406#include <string.h>
6407
6408_ACEOF
6409if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410  $EGREP "memchr" >/dev/null 2>&1; then
6411  :
6412else
6413  ac_cv_header_stdc=no
6414fi
6415rm -f conftest*
6416
6417fi
6418
6419if test $ac_cv_header_stdc = yes; then
6420  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6421  cat >conftest.$ac_ext <<_ACEOF
6422/* confdefs.h.  */
6423_ACEOF
6424cat confdefs.h >>conftest.$ac_ext
6425cat >>conftest.$ac_ext <<_ACEOF
6426/* end confdefs.h.  */
6427#include <stdlib.h>
6428
6429_ACEOF
6430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6431  $EGREP "free" >/dev/null 2>&1; then
6432  :
6433else
6434  ac_cv_header_stdc=no
6435fi
6436rm -f conftest*
6437
6438fi
6439
6440if test $ac_cv_header_stdc = yes; then
6441  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6442  if test "$cross_compiling" = yes; then
6443  :
6444else
6445  cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h.  */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h.  */
6451#include <ctype.h>
6452#include <stdlib.h>
6453#if ((' ' & 0x0FF) == 0x020)
6454# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6455# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6456#else
6457# define ISLOWER(c) \
6458		   (('a' <= (c) && (c) <= 'i') \
6459		     || ('j' <= (c) && (c) <= 'r') \
6460		     || ('s' <= (c) && (c) <= 'z'))
6461# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6462#endif
6463
6464#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6465int
6466main ()
6467{
6468  int i;
6469  for (i = 0; i < 256; i++)
6470    if (XOR (islower (i), ISLOWER (i))
6471	|| toupper (i) != TOUPPER (i))
6472      return 2;
6473  return 0;
6474}
6475_ACEOF
6476rm -f conftest$ac_exeext
6477if { (ac_try="$ac_link"
6478case "(($ac_try" in
6479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480  *) ac_try_echo=$ac_try;;
6481esac
6482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483$as_echo "$ac_try_echo") >&5
6484  (eval "$ac_link") 2>&5
6485  ac_status=$?
6486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6488  { (case "(($ac_try" in
6489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490  *) ac_try_echo=$ac_try;;
6491esac
6492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6493$as_echo "$ac_try_echo") >&5
6494  (eval "$ac_try") 2>&5
6495  ac_status=$?
6496  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); }; }; then
6498  :
6499else
6500  $as_echo "$as_me: program exited with status $ac_status" >&5
6501$as_echo "$as_me: failed program was:" >&5
6502sed 's/^/| /' conftest.$ac_ext >&5
6503
6504( exit $ac_status )
6505ac_cv_header_stdc=no
6506fi
6507rm -rf conftest.dSYM
6508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6509fi
6510
6511
6512fi
6513fi
6514{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6515$as_echo "$ac_cv_header_stdc" >&6; }
6516if test $ac_cv_header_stdc = yes; then
6517
6518cat >>confdefs.h <<\_ACEOF
6519#define STDC_HEADERS 1
6520_ACEOF
6521
6522fi
6523
6524# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6535		  inttypes.h stdint.h unistd.h
6536do
6537as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6538{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6539$as_echo_n "checking for $ac_header... " >&6; }
6540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6541  $as_echo_n "(cached) " >&6
6542else
6543  cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h.  */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h.  */
6549$ac_includes_default
6550
6551#include <$ac_header>
6552_ACEOF
6553rm -f conftest.$ac_objext
6554if { (ac_try="$ac_compile"
6555case "(($ac_try" in
6556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557  *) ac_try_echo=$ac_try;;
6558esac
6559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6560$as_echo "$ac_try_echo") >&5
6561  (eval "$ac_compile") 2>conftest.er1
6562  ac_status=$?
6563  grep -v '^ *+' conftest.er1 >conftest.err
6564  rm -f conftest.er1
6565  cat conftest.err >&5
6566  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567  (exit $ac_status); } && {
6568	 test -z "$ac_c_werror_flag" ||
6569	 test ! -s conftest.err
6570       } && test -s conftest.$ac_objext; then
6571  eval "$as_ac_Header=yes"
6572else
6573  $as_echo "$as_me: failed program was:" >&5
6574sed 's/^/| /' conftest.$ac_ext >&5
6575
6576	eval "$as_ac_Header=no"
6577fi
6578
6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580fi
6581ac_res=`eval 'as_val=${'$as_ac_Header'}
6582		 $as_echo "$as_val"'`
6583	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6584$as_echo "$ac_res" >&6; }
6585as_val=`eval 'as_val=${'$as_ac_Header'}
6586		 $as_echo "$as_val"'`
6587   if test "x$as_val" = x""yes; then
6588  cat >>confdefs.h <<_ACEOF
6589#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6590_ACEOF
6591
6592fi
6593
6594done
6595
6596
6597
6598  if test "${ac_cv_header_minix_config_h+set}" = set; then
6599  { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6600$as_echo_n "checking for minix/config.h... " >&6; }
6601if test "${ac_cv_header_minix_config_h+set}" = set; then
6602  $as_echo_n "(cached) " >&6
6603fi
6604{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6605$as_echo "$ac_cv_header_minix_config_h" >&6; }
6606else
6607  # Is the header compilable?
6608{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6609$as_echo_n "checking minix/config.h usability... " >&6; }
6610cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h.  */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h.  */
6616$ac_includes_default
6617#include <minix/config.h>
6618_ACEOF
6619rm -f conftest.$ac_objext
6620if { (ac_try="$ac_compile"
6621case "(($ac_try" in
6622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623  *) ac_try_echo=$ac_try;;
6624esac
6625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6626$as_echo "$ac_try_echo") >&5
6627  (eval "$ac_compile") 2>conftest.er1
6628  ac_status=$?
6629  grep -v '^ *+' conftest.er1 >conftest.err
6630  rm -f conftest.er1
6631  cat conftest.err >&5
6632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633  (exit $ac_status); } && {
6634	 test -z "$ac_c_werror_flag" ||
6635	 test ! -s conftest.err
6636       } && test -s conftest.$ac_objext; then
6637  ac_header_compiler=yes
6638else
6639  $as_echo "$as_me: failed program was:" >&5
6640sed 's/^/| /' conftest.$ac_ext >&5
6641
6642	ac_header_compiler=no
6643fi
6644
6645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6647$as_echo "$ac_header_compiler" >&6; }
6648
6649# Is the header present?
6650{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6651$as_echo_n "checking minix/config.h presence... " >&6; }
6652cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h.  */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h.  */
6658#include <minix/config.h>
6659_ACEOF
6660if { (ac_try="$ac_cpp conftest.$ac_ext"
6661case "(($ac_try" in
6662  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663  *) ac_try_echo=$ac_try;;
6664esac
6665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6666$as_echo "$ac_try_echo") >&5
6667  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6668  ac_status=$?
6669  grep -v '^ *+' conftest.er1 >conftest.err
6670  rm -f conftest.er1
6671  cat conftest.err >&5
6672  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673  (exit $ac_status); } >/dev/null && {
6674	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6675	 test ! -s conftest.err
6676       }; then
6677  ac_header_preproc=yes
6678else
6679  $as_echo "$as_me: failed program was:" >&5
6680sed 's/^/| /' conftest.$ac_ext >&5
6681
6682  ac_header_preproc=no
6683fi
6684
6685rm -f conftest.err conftest.$ac_ext
6686{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6687$as_echo "$ac_header_preproc" >&6; }
6688
6689# So?  What about this header?
6690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6691  yes:no: )
6692    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6693$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6694    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6695$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6696    ac_header_preproc=yes
6697    ;;
6698  no:yes:* )
6699    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6700$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6701    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
6702$as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
6703    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6704$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6705    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
6706$as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6707    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6708$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6709    { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6710$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6711
6712    ;;
6713esac
6714{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6715$as_echo_n "checking for minix/config.h... " >&6; }
6716if test "${ac_cv_header_minix_config_h+set}" = set; then
6717  $as_echo_n "(cached) " >&6
6718else
6719  ac_cv_header_minix_config_h=$ac_header_preproc
6720fi
6721{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6722$as_echo "$ac_cv_header_minix_config_h" >&6; }
6723
6724fi
6725if test "x$ac_cv_header_minix_config_h" = x""yes; then
6726  MINIX=yes
6727else
6728  MINIX=
6729fi
6730
6731
6732  if test "$MINIX" = yes; then
6733
6734cat >>confdefs.h <<\_ACEOF
6735#define _POSIX_SOURCE 1
6736_ACEOF
6737
6738
6739cat >>confdefs.h <<\_ACEOF
6740#define _POSIX_1_SOURCE 2
6741_ACEOF
6742
6743
6744cat >>confdefs.h <<\_ACEOF
6745#define _MINIX 1
6746_ACEOF
6747
6748  fi
6749
6750
6751
6752  { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6753$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6754if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6755  $as_echo_n "(cached) " >&6
6756else
6757  cat >conftest.$ac_ext <<_ACEOF
6758/* confdefs.h.  */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h.  */
6763
6764#	  define __EXTENSIONS__ 1
6765	  $ac_includes_default
6766int
6767main ()
6768{
6769
6770  ;
6771  return 0;
6772}
6773_ACEOF
6774rm -f conftest.$ac_objext
6775if { (ac_try="$ac_compile"
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_compile") 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_objext; then
6792  ac_cv_safe_to_define___extensions__=yes
6793else
6794  $as_echo "$as_me: failed program was:" >&5
6795sed 's/^/| /' conftest.$ac_ext >&5
6796
6797	ac_cv_safe_to_define___extensions__=no
6798fi
6799
6800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6801fi
6802{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6803$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6804  test $ac_cv_safe_to_define___extensions__ = yes &&
6805    cat >>confdefs.h <<\_ACEOF
6806#define __EXTENSIONS__ 1
6807_ACEOF
6808
6809  cat >>confdefs.h <<\_ACEOF
6810#define _ALL_SOURCE 1
6811_ACEOF
6812
6813  cat >>confdefs.h <<\_ACEOF
6814#define _GNU_SOURCE 1
6815_ACEOF
6816
6817  cat >>confdefs.h <<\_ACEOF
6818#define _POSIX_PTHREAD_SEMANTICS 1
6819_ACEOF
6820
6821  cat >>confdefs.h <<\_ACEOF
6822#define _TANDEM_SOURCE 1
6823_ACEOF
6824
6825
6826
6827
6828
6829
6830
6831    # Check whether --enable-threads was given.
6832if test "${enable_threads+set}" = set; then
6833  enableval=$enable_threads; gl_use_threads=$enableval
6834else
6835  case "$host_os" in
6836                            osf*) gl_use_threads=no ;;
6837       *)    gl_use_threads=yes ;;
6838     esac
6839
6840fi
6841
6842  if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
6843    # For using <pthread.h>:
6844    case "$host_os" in
6845      osf*)
6846        # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
6847        # groks <pthread.h>. cc also understands the flag -pthread, but
6848        # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
6849        # 2. putting a flag into CPPFLAGS that has an effect on the linker
6850        # causes the AC_TRY_LINK test below to succeed unexpectedly,
6851        # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
6852        CPPFLAGS="$CPPFLAGS -D_REENTRANT"
6853        ;;
6854    esac
6855    # Some systems optimize for single-threaded programs by default, and
6856    # need special flags to disable these optimizations. For example, the
6857    # definition of 'errno' in <errno.h>.
6858    case "$host_os" in
6859      aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
6860      solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
6861    esac
6862  fi
6863
6864
6865
6866
6867   case $ac_cv_prog_cc_stdc in
6868  no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
6869  *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
6870$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6871if test "${ac_cv_prog_cc_c99+set}" = set; then
6872  $as_echo_n "(cached) " >&6
6873else
6874  ac_cv_prog_cc_c99=no
6875ac_save_CC=$CC
6876cat >conftest.$ac_ext <<_ACEOF
6877/* confdefs.h.  */
6878_ACEOF
6879cat confdefs.h >>conftest.$ac_ext
6880cat >>conftest.$ac_ext <<_ACEOF
6881/* end confdefs.h.  */
6882#include <stdarg.h>
6883#include <stdbool.h>
6884#include <stdlib.h>
6885#include <wchar.h>
6886#include <stdio.h>
6887
6888// Check varargs macros.  These examples are taken from C99 6.10.3.5.
6889#define debug(...) fprintf (stderr, __VA_ARGS__)
6890#define showlist(...) puts (#__VA_ARGS__)
6891#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6892static void
6893test_varargs_macros (void)
6894{
6895  int x = 1234;
6896  int y = 5678;
6897  debug ("Flag");
6898  debug ("X = %d\n", x);
6899  showlist (The first, second, and third items.);
6900  report (x>y, "x is %d but y is %d", x, y);
6901}
6902
6903// Check long long types.
6904#define BIG64 18446744073709551615ull
6905#define BIG32 4294967295ul
6906#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6907#if !BIG_OK
6908  your preprocessor is broken;
6909#endif
6910#if BIG_OK
6911#else
6912  your preprocessor is broken;
6913#endif
6914static long long int bignum = -9223372036854775807LL;
6915static unsigned long long int ubignum = BIG64;
6916
6917struct incomplete_array
6918{
6919  int datasize;
6920  double data[];
6921};
6922
6923struct named_init {
6924  int number;
6925  const wchar_t *name;
6926  double average;
6927};
6928
6929typedef const char *ccp;
6930
6931static inline int
6932test_restrict (ccp restrict text)
6933{
6934  // See if C++-style comments work.
6935  // Iterate through items via the restricted pointer.
6936  // Also check for declarations in for loops.
6937  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6938    continue;
6939  return 0;
6940}
6941
6942// Check varargs and va_copy.
6943static void
6944test_varargs (const char *format, ...)
6945{
6946  va_list args;
6947  va_start (args, format);
6948  va_list args_copy;
6949  va_copy (args_copy, args);
6950
6951  const char *str;
6952  int number;
6953  float fnumber;
6954
6955  while (*format)
6956    {
6957      switch (*format++)
6958	{
6959	case 's': // string
6960	  str = va_arg (args_copy, const char *);
6961	  break;
6962	case 'd': // int
6963	  number = va_arg (args_copy, int);
6964	  break;
6965	case 'f': // float
6966	  fnumber = va_arg (args_copy, double);
6967	  break;
6968	default:
6969	  break;
6970	}
6971    }
6972  va_end (args_copy);
6973  va_end (args);
6974}
6975
6976int
6977main ()
6978{
6979
6980  // Check bool.
6981  _Bool success = false;
6982
6983  // Check restrict.
6984  if (test_restrict ("String literal") == 0)
6985    success = true;
6986  char *restrict newvar = "Another string";
6987
6988  // Check varargs.
6989  test_varargs ("s, d' f .", "string", 65, 34.234);
6990  test_varargs_macros ();
6991
6992  // Check flexible array members.
6993  struct incomplete_array *ia =
6994    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6995  ia->datasize = 10;
6996  for (int i = 0; i < ia->datasize; ++i)
6997    ia->data[i] = i * 1.234;
6998
6999  // Check named initializers.
7000  struct named_init ni = {
7001    .number = 34,
7002    .name = L"Test wide string",
7003    .average = 543.34343,
7004  };
7005
7006  ni.number = 58;
7007
7008  int dynamic_array[ni.number];
7009  dynamic_array[ni.number - 1] = 543;
7010
7011  // work around unused variable warnings
7012  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7013	  || dynamic_array[ni.number - 1] != 543);
7014
7015  ;
7016  return 0;
7017}
7018_ACEOF
7019for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7020do
7021  CC="$ac_save_CC $ac_arg"
7022  rm -f conftest.$ac_objext
7023if { (ac_try="$ac_compile"
7024case "(($ac_try" in
7025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7026  *) ac_try_echo=$ac_try;;
7027esac
7028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7029$as_echo "$ac_try_echo") >&5
7030  (eval "$ac_compile") 2>conftest.er1
7031  ac_status=$?
7032  grep -v '^ *+' conftest.er1 >conftest.err
7033  rm -f conftest.er1
7034  cat conftest.err >&5
7035  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036  (exit $ac_status); } && {
7037	 test -z "$ac_c_werror_flag" ||
7038	 test ! -s conftest.err
7039       } && test -s conftest.$ac_objext; then
7040  ac_cv_prog_cc_c99=$ac_arg
7041else
7042  $as_echo "$as_me: failed program was:" >&5
7043sed 's/^/| /' conftest.$ac_ext >&5
7044
7045
7046fi
7047
7048rm -f core conftest.err conftest.$ac_objext
7049  test "x$ac_cv_prog_cc_c99" != "xno" && break
7050done
7051rm -f conftest.$ac_ext
7052CC=$ac_save_CC
7053
7054fi
7055# AC_CACHE_VAL
7056case "x$ac_cv_prog_cc_c99" in
7057  x)
7058    { $as_echo "$as_me:$LINENO: result: none needed" >&5
7059$as_echo "none needed" >&6; } ;;
7060  xno)
7061    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
7062$as_echo "unsupported" >&6; } ;;
7063  *)
7064    CC="$CC $ac_cv_prog_cc_c99"
7065    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
7066$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7067esac
7068if test "x$ac_cv_prog_cc_c99" != xno; then
7069  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7070else
7071  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
7072$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7073if test "${ac_cv_prog_cc_c89+set}" = set; then
7074  $as_echo_n "(cached) " >&6
7075else
7076  ac_cv_prog_cc_c89=no
7077ac_save_CC=$CC
7078cat >conftest.$ac_ext <<_ACEOF
7079/* confdefs.h.  */
7080_ACEOF
7081cat confdefs.h >>conftest.$ac_ext
7082cat >>conftest.$ac_ext <<_ACEOF
7083/* end confdefs.h.  */
7084#include <stdarg.h>
7085#include <stdio.h>
7086#include <sys/types.h>
7087#include <sys/stat.h>
7088/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7089struct buf { int x; };
7090FILE * (*rcsopen) (struct buf *, struct stat *, int);
7091static char *e (p, i)
7092     char **p;
7093     int i;
7094{
7095  return p[i];
7096}
7097static char *f (char * (*g) (char **, int), char **p, ...)
7098{
7099  char *s;
7100  va_list v;
7101  va_start (v,p);
7102  s = g (p, va_arg (v,int));
7103  va_end (v);
7104  return s;
7105}
7106
7107/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7108   function prototypes and stuff, but not '\xHH' hex character constants.
7109   These don't provoke an error unfortunately, instead are silently treated
7110   as 'x'.  The following induces an error, until -std is added to get
7111   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7112   array size at least.  It's necessary to write '\x00'==0 to get something
7113   that's true only with -std.  */
7114int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7115
7116/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7117   inside strings and character constants.  */
7118#define FOO(x) 'x'
7119int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7120
7121int test (int i, double x);
7122struct s1 {int (*f) (int a);};
7123struct s2 {int (*f) (double a);};
7124int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7125int argc;
7126char **argv;
7127int
7128main ()
7129{
7130return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7131  ;
7132  return 0;
7133}
7134_ACEOF
7135for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7136	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7137do
7138  CC="$ac_save_CC $ac_arg"
7139  rm -f conftest.$ac_objext
7140if { (ac_try="$ac_compile"
7141case "(($ac_try" in
7142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143  *) ac_try_echo=$ac_try;;
7144esac
7145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7146$as_echo "$ac_try_echo") >&5
7147  (eval "$ac_compile") 2>conftest.er1
7148  ac_status=$?
7149  grep -v '^ *+' conftest.er1 >conftest.err
7150  rm -f conftest.er1
7151  cat conftest.err >&5
7152  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153  (exit $ac_status); } && {
7154	 test -z "$ac_c_werror_flag" ||
7155	 test ! -s conftest.err
7156       } && test -s conftest.$ac_objext; then
7157  ac_cv_prog_cc_c89=$ac_arg
7158else
7159  $as_echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
7162
7163fi
7164
7165rm -f core conftest.err conftest.$ac_objext
7166  test "x$ac_cv_prog_cc_c89" != "xno" && break
7167done
7168rm -f conftest.$ac_ext
7169CC=$ac_save_CC
7170
7171fi
7172# AC_CACHE_VAL
7173case "x$ac_cv_prog_cc_c89" in
7174  x)
7175    { $as_echo "$as_me:$LINENO: result: none needed" >&5
7176$as_echo "none needed" >&6; } ;;
7177  xno)
7178    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
7179$as_echo "unsupported" >&6; } ;;
7180  *)
7181    CC="$CC $ac_cv_prog_cc_c89"
7182    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
7183$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7184esac
7185if test "x$ac_cv_prog_cc_c89" != xno; then
7186  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7187else
7188  ac_cv_prog_cc_stdc=no
7189fi
7190
7191
7192fi
7193
7194 ;;
7195esac
7196  { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
7197$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7198  if test "${ac_cv_prog_cc_stdc+set}" = set; then
7199  $as_echo_n "(cached) " >&6
7200fi
7201
7202  case $ac_cv_prog_cc_stdc in
7203  no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
7204$as_echo "unsupported" >&6; } ;;
7205  '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
7206$as_echo "none needed" >&6; } ;;
7207  *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7208$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7209esac
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232  case "$host_os" in
7233    mingw* | cygwin*)
7234      { $as_echo "$as_me:$LINENO: checking for auto-import of symbols" >&5
7235$as_echo_n "checking for auto-import of symbols... " >&6; }
7236      if test "${gl_cv_ld_autoimport+set}" = set; then
7237  $as_echo_n "(cached) " >&6
7238else
7239
7240        gl_save_LDFLAGS="$LDFLAGS"
7241        LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7242        cat >conftest.$ac_ext <<_ACEOF
7243/* confdefs.h.  */
7244_ACEOF
7245cat confdefs.h >>conftest.$ac_ext
7246cat >>conftest.$ac_ext <<_ACEOF
7247/* end confdefs.h.  */
7248
7249int
7250main ()
7251{
7252
7253  ;
7254  return 0;
7255}
7256_ACEOF
7257rm -f conftest.$ac_objext conftest$ac_exeext
7258if { (ac_try="$ac_link"
7259case "(($ac_try" in
7260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261  *) ac_try_echo=$ac_try;;
7262esac
7263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7264$as_echo "$ac_try_echo") >&5
7265  (eval "$ac_link") 2>conftest.er1
7266  ac_status=$?
7267  grep -v '^ *+' conftest.er1 >conftest.err
7268  rm -f conftest.er1
7269  cat conftest.err >&5
7270  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); } && {
7272	 test -z "$ac_c_werror_flag" ||
7273	 test ! -s conftest.err
7274       } && test -s conftest$ac_exeext && {
7275	 test "$cross_compiling" = yes ||
7276	 $as_test_x conftest$ac_exeext
7277       }; then
7278  gl_cv_ld_autoimport=yes
7279else
7280  $as_echo "$as_me: failed program was:" >&5
7281sed 's/^/| /' conftest.$ac_ext >&5
7282
7283	gl_cv_ld_autoimport=no
7284fi
7285
7286rm -rf conftest.dSYM
7287rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7288      conftest$ac_exeext conftest.$ac_ext
7289        LDFLAGS="$gl_save_LDFLAGS"
7290fi
7291
7292      { $as_echo "$as_me:$LINENO: result: $gl_cv_ld_autoimport" >&5
7293$as_echo "$gl_cv_ld_autoimport" >&6; }
7294      if test $gl_cv_ld_autoimport = yes; then
7295        LDFLAGS="$LDFLAGS -Wl,--disable-auto-import"
7296      fi
7297      ;;
7298  esac
7299
7300
7301
7302# Check whether --enable-shared was given.
7303if test "${enable_shared+set}" = set; then
7304  enableval=$enable_shared; p=${PACKAGE-default}
7305    case $enableval in
7306    yes) enable_shared=yes ;;
7307    no) enable_shared=no ;;
7308    *)
7309      enable_shared=no
7310      # Look at the argument we got.  We use all the common list separators.
7311      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7312      for pkg in $enableval; do
7313	IFS="$lt_save_ifs"
7314	if test "X$pkg" = "X$p"; then
7315	  enable_shared=yes
7316	fi
7317      done
7318      IFS="$lt_save_ifs"
7319      ;;
7320    esac
7321else
7322  enable_shared=yes
7323fi
7324
7325
7326# Check whether --enable-static was given.
7327if test "${enable_static+set}" = set; then
7328  enableval=$enable_static; p=${PACKAGE-default}
7329    case $enableval in
7330    yes) enable_static=yes ;;
7331    no) enable_static=no ;;
7332    *)
7333     enable_static=no
7334      # Look at the argument we got.  We use all the common list separators.
7335      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7336      for pkg in $enableval; do
7337	IFS="$lt_save_ifs"
7338	if test "X$pkg" = "X$p"; then
7339	  enable_static=yes
7340	fi
7341      done
7342      IFS="$lt_save_ifs"
7343      ;;
7344    esac
7345else
7346  enable_static=yes
7347fi
7348
7349
7350# Check whether --enable-fast-install was given.
7351if test "${enable_fast_install+set}" = set; then
7352  enableval=$enable_fast_install; p=${PACKAGE-default}
7353    case $enableval in
7354    yes) enable_fast_install=yes ;;
7355    no) enable_fast_install=no ;;
7356    *)
7357      enable_fast_install=no
7358      # Look at the argument we got.  We use all the common list separators.
7359      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7360      for pkg in $enableval; do
7361	IFS="$lt_save_ifs"
7362	if test "X$pkg" = "X$p"; then
7363	  enable_fast_install=yes
7364	fi
7365      done
7366      IFS="$lt_save_ifs"
7367      ;;
7368    esac
7369else
7370  enable_fast_install=yes
7371fi
7372
7373
7374{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7375$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7376if test "${lt_cv_path_SED+set}" = set; then
7377  $as_echo_n "(cached) " >&6
7378else
7379  # Loop through the user's path and test for sed and gsed.
7380# Then use that list of sed's as ones to test for truncation.
7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384  IFS=$as_save_IFS
7385  test -z "$as_dir" && as_dir=.
7386  for lt_ac_prog in sed gsed; do
7387    for ac_exec_ext in '' $ac_executable_extensions; do
7388      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
7389        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7390      fi
7391    done
7392  done
7393done
7394IFS=$as_save_IFS
7395lt_ac_max=0
7396lt_ac_count=0
7397# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7398# along with /bin/sed that truncates output.
7399for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7400  test ! -f $lt_ac_sed && continue
7401  cat /dev/null > conftest.in
7402  lt_ac_count=0
7403  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7404  # Check for GNU sed and select it if it is found.
7405  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7406    lt_cv_path_SED=$lt_ac_sed
7407    break
7408  fi
7409  while true; do
7410    cat conftest.in conftest.in >conftest.tmp
7411    mv conftest.tmp conftest.in
7412    cp conftest.in conftest.nl
7413    echo >>conftest.nl
7414    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7415    cmp -s conftest.out conftest.nl || break
7416    # 10000 chars as input seems more than enough
7417    test $lt_ac_count -gt 10 && break
7418    lt_ac_count=`expr $lt_ac_count + 1`
7419    if test $lt_ac_count -gt $lt_ac_max; then
7420      lt_ac_max=$lt_ac_count
7421      lt_cv_path_SED=$lt_ac_sed
7422    fi
7423  done
7424done
7425
7426fi
7427
7428SED=$lt_cv_path_SED
7429
7430{ $as_echo "$as_me:$LINENO: result: $SED" >&5
7431$as_echo "$SED" >&6; }
7432
7433
7434# Check whether --with-gnu-ld was given.
7435if test "${with_gnu_ld+set}" = set; then
7436  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7437else
7438  with_gnu_ld=no
7439fi
7440
7441ac_prog=ld
7442if test "$GCC" = yes; then
7443  # Check if gcc -print-prog-name=ld gives a path.
7444  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7445$as_echo_n "checking for ld used by $CC... " >&6; }
7446  case $host in
7447  *-*-mingw*)
7448    # gcc leaves a trailing carriage return which upsets mingw
7449    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7450  *)
7451    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7452  esac
7453  case $ac_prog in
7454    # Accept absolute paths.
7455    [\\/]* | ?:[\\/]*)
7456      re_direlt='/[^/][^/]*/\.\./'
7457      # Canonicalize the pathname of ld
7458      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7459      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7460	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7461      done
7462      test -z "$LD" && LD="$ac_prog"
7463      ;;
7464  "")
7465    # If it fails, then pretend we aren't using GCC.
7466    ac_prog=ld
7467    ;;
7468  *)
7469    # If it is relative, then search for the first ld in PATH.
7470    with_gnu_ld=unknown
7471    ;;
7472  esac
7473elif test "$with_gnu_ld" = yes; then
7474  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7475$as_echo_n "checking for GNU ld... " >&6; }
7476else
7477  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7478$as_echo_n "checking for non-GNU ld... " >&6; }
7479fi
7480if test "${lt_cv_path_LD+set}" = set; then
7481  $as_echo_n "(cached) " >&6
7482else
7483  if test -z "$LD"; then
7484  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7485  for ac_dir in $PATH; do
7486    IFS="$lt_save_ifs"
7487    test -z "$ac_dir" && ac_dir=.
7488    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7489      lt_cv_path_LD="$ac_dir/$ac_prog"
7490      # Check to see if the program is GNU ld.  I'd rather use --version,
7491      # but apparently some variants of GNU ld only accept -v.
7492      # Break only if it was the GNU/non-GNU ld that we prefer.
7493      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7494      *GNU* | *'with BFD'*)
7495	test "$with_gnu_ld" != no && break
7496	;;
7497      *)
7498	test "$with_gnu_ld" != yes && break
7499	;;
7500      esac
7501    fi
7502  done
7503  IFS="$lt_save_ifs"
7504else
7505  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7506fi
7507fi
7508
7509LD="$lt_cv_path_LD"
7510if test -n "$LD"; then
7511  { $as_echo "$as_me:$LINENO: result: $LD" >&5
7512$as_echo "$LD" >&6; }
7513else
7514  { $as_echo "$as_me:$LINENO: result: no" >&5
7515$as_echo "no" >&6; }
7516fi
7517test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7518$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7519   { (exit 1); exit 1; }; }
7520{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7521$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7522if test "${lt_cv_prog_gnu_ld+set}" = set; then
7523  $as_echo_n "(cached) " >&6
7524else
7525  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7526case `$LD -v 2>&1 </dev/null` in
7527*GNU* | *'with BFD'*)
7528  lt_cv_prog_gnu_ld=yes
7529  ;;
7530*)
7531  lt_cv_prog_gnu_ld=no
7532  ;;
7533esac
7534fi
7535{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7536$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7537with_gnu_ld=$lt_cv_prog_gnu_ld
7538
7539
7540{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7541$as_echo_n "checking for $LD option to reload object files... " >&6; }
7542if test "${lt_cv_ld_reload_flag+set}" = set; then
7543  $as_echo_n "(cached) " >&6
7544else
7545  lt_cv_ld_reload_flag='-r'
7546fi
7547{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7548$as_echo "$lt_cv_ld_reload_flag" >&6; }
7549reload_flag=$lt_cv_ld_reload_flag
7550case $reload_flag in
7551"" | " "*) ;;
7552*) reload_flag=" $reload_flag" ;;
7553esac
7554reload_cmds='$LD$reload_flag -o $output$reload_objs'
7555case $host_os in
7556  darwin*)
7557    if test "$GCC" = yes; then
7558      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7559    else
7560      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7561    fi
7562    ;;
7563esac
7564
7565{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7566$as_echo_n "checking for BSD-compatible nm... " >&6; }
7567if test "${lt_cv_path_NM+set}" = set; then
7568  $as_echo_n "(cached) " >&6
7569else
7570  if test -n "$NM"; then
7571  # Let the user override the test.
7572  lt_cv_path_NM="$NM"
7573else
7574  lt_nm_to_check="${ac_tool_prefix}nm"
7575  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7576    lt_nm_to_check="$lt_nm_to_check nm"
7577  fi
7578  for lt_tmp_nm in $lt_nm_to_check; do
7579    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7580    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7581      IFS="$lt_save_ifs"
7582      test -z "$ac_dir" && ac_dir=.
7583      tmp_nm="$ac_dir/$lt_tmp_nm"
7584      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7585	# Check to see if the nm accepts a BSD-compat flag.
7586	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7587	#   nm: unknown option "B" ignored
7588	# Tru64's nm complains that /dev/null is an invalid object file
7589	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7590	*/dev/null* | *'Invalid file or object type'*)
7591	  lt_cv_path_NM="$tmp_nm -B"
7592	  break
7593	  ;;
7594	*)
7595	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7596	  */dev/null*)
7597	    lt_cv_path_NM="$tmp_nm -p"
7598	    break
7599	    ;;
7600	  *)
7601	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7602	    continue # so that we can try to find one that supports BSD flags
7603	    ;;
7604	  esac
7605	  ;;
7606	esac
7607      fi
7608    done
7609    IFS="$lt_save_ifs"
7610  done
7611  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7612fi
7613fi
7614{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7615$as_echo "$lt_cv_path_NM" >&6; }
7616NM="$lt_cv_path_NM"
7617
7618{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7619$as_echo_n "checking whether ln -s works... " >&6; }
7620LN_S=$as_ln_s
7621if test "$LN_S" = "ln -s"; then
7622  { $as_echo "$as_me:$LINENO: result: yes" >&5
7623$as_echo "yes" >&6; }
7624else
7625  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7626$as_echo "no, using $LN_S" >&6; }
7627fi
7628
7629{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
7630$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7631if test "${lt_cv_deplibs_check_method+set}" = set; then
7632  $as_echo_n "(cached) " >&6
7633else
7634  lt_cv_file_magic_cmd='$MAGIC_CMD'
7635lt_cv_file_magic_test_file=
7636lt_cv_deplibs_check_method='unknown'
7637# Need to set the preceding variable on all platforms that support
7638# interlibrary dependencies.
7639# 'none' -- dependencies not supported.
7640# `unknown' -- same as none, but documents that we really don't know.
7641# 'pass_all' -- all dependencies passed with no checks.
7642# 'test_compile' -- check by making test program.
7643# 'file_magic [[regex]]' -- check by looking for files in library path
7644# which responds to the $file_magic_cmd with a given extended regex.
7645# If you have `file' or equivalent on your system and you're not sure
7646# whether `pass_all' will *always* work, you probably want this one.
7647
7648case $host_os in
7649aix4* | aix5*)
7650  lt_cv_deplibs_check_method=pass_all
7651  ;;
7652
7653beos*)
7654  lt_cv_deplibs_check_method=pass_all
7655  ;;
7656
7657bsdi[45]*)
7658  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7659  lt_cv_file_magic_cmd='/usr/bin/file -L'
7660  lt_cv_file_magic_test_file=/shlib/libc.so
7661  ;;
7662
7663cygwin*)
7664  # func_win32_libid is a shell function defined in ltmain.sh
7665  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7666  lt_cv_file_magic_cmd='func_win32_libid'
7667  ;;
7668
7669mingw* | pw32*)
7670  # Base MSYS/MinGW do not provide the 'file' command needed by
7671  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7672  # unless we find 'file', for example because we are cross-compiling.
7673  if ( file / ) >/dev/null 2>&1; then
7674    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7675    lt_cv_file_magic_cmd='func_win32_libid'
7676  else
7677    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7678    lt_cv_file_magic_cmd='$OBJDUMP -f'
7679  fi
7680  ;;
7681
7682darwin* | rhapsody*)
7683  lt_cv_deplibs_check_method=pass_all
7684  ;;
7685
7686freebsd* | dragonfly*)
7687  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7688    case $host_cpu in
7689    i*86 )
7690      # Not sure whether the presence of OpenBSD here was a mistake.
7691      # Let's accept both of them until this is cleared up.
7692      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7693      lt_cv_file_magic_cmd=/usr/bin/file
7694      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7695      ;;
7696    esac
7697  else
7698    lt_cv_deplibs_check_method=pass_all
7699  fi
7700  ;;
7701
7702gnu*)
7703  lt_cv_deplibs_check_method=pass_all
7704  ;;
7705
7706hpux10.20* | hpux11*)
7707  lt_cv_file_magic_cmd=/usr/bin/file
7708  case $host_cpu in
7709  ia64*)
7710    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7711    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7712    ;;
7713  hppa*64*)
7714    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]'
7715    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7716    ;;
7717  *)
7718    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7719    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7720    ;;
7721  esac
7722  ;;
7723
7724interix[3-9]*)
7725  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7726  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7727  ;;
7728
7729irix5* | irix6* | nonstopux*)
7730  case $LD in
7731  *-32|*"-32 ") libmagic=32-bit;;
7732  *-n32|*"-n32 ") libmagic=N32;;
7733  *-64|*"-64 ") libmagic=64-bit;;
7734  *) libmagic=never-match;;
7735  esac
7736  lt_cv_deplibs_check_method=pass_all
7737  ;;
7738
7739# This must be Linux ELF.
7740linux* | k*bsd*-gnu)
7741  lt_cv_deplibs_check_method=pass_all
7742  ;;
7743
7744netbsd*)
7745  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7746    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7747  else
7748    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7749  fi
7750  ;;
7751
7752newos6*)
7753  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7754  lt_cv_file_magic_cmd=/usr/bin/file
7755  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7756  ;;
7757
7758nto-qnx*)
7759  lt_cv_deplibs_check_method=unknown
7760  ;;
7761
7762openbsd*)
7763  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7764    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7765  else
7766    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7767  fi
7768  ;;
7769
7770osf3* | osf4* | osf5*)
7771  lt_cv_deplibs_check_method=pass_all
7772  ;;
7773
7774rdos*)
7775  lt_cv_deplibs_check_method=pass_all
7776  ;;
7777
7778solaris*)
7779  lt_cv_deplibs_check_method=pass_all
7780  ;;
7781
7782sysv4 | sysv4.3*)
7783  case $host_vendor in
7784  motorola)
7785    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]'
7786    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7787    ;;
7788  ncr)
7789    lt_cv_deplibs_check_method=pass_all
7790    ;;
7791  sequent)
7792    lt_cv_file_magic_cmd='/bin/file'
7793    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7794    ;;
7795  sni)
7796    lt_cv_file_magic_cmd='/bin/file'
7797    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7798    lt_cv_file_magic_test_file=/lib/libc.so
7799    ;;
7800  siemens)
7801    lt_cv_deplibs_check_method=pass_all
7802    ;;
7803  pc)
7804    lt_cv_deplibs_check_method=pass_all
7805    ;;
7806  esac
7807  ;;
7808
7809sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7810  lt_cv_deplibs_check_method=pass_all
7811  ;;
7812esac
7813
7814fi
7815{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7816$as_echo "$lt_cv_deplibs_check_method" >&6; }
7817file_magic_cmd=$lt_cv_file_magic_cmd
7818deplibs_check_method=$lt_cv_deplibs_check_method
7819test -z "$deplibs_check_method" && deplibs_check_method=unknown
7820
7821
7822# If no C compiler was specified, use CC.
7823LTCC=${LTCC-"$CC"}
7824
7825# If no C compiler flags were specified, use CFLAGS.
7826LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7827
7828# Allow CC to be a program name with arguments.
7829compiler=$CC
7830
7831# Check whether --enable-libtool-lock was given.
7832if test "${enable_libtool_lock+set}" = set; then
7833  enableval=$enable_libtool_lock;
7834fi
7835
7836test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7837
7838# Some flags need to be propagated to the compiler or linker for good
7839# libtool support.
7840case $host in
7841ia64-*-hpux*)
7842  # Find out which ABI we are using.
7843  echo 'int i;' > conftest.$ac_ext
7844  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7845  (eval $ac_compile) 2>&5
7846  ac_status=$?
7847  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848  (exit $ac_status); }; then
7849    case `/usr/bin/file conftest.$ac_objext` in
7850    *ELF-32*)
7851      HPUX_IA64_MODE="32"
7852      ;;
7853    *ELF-64*)
7854      HPUX_IA64_MODE="64"
7855      ;;
7856    esac
7857  fi
7858  rm -rf conftest*
7859  ;;
7860*-*-irix6*)
7861  # Find out which ABI we are using.
7862  echo '#line 7862 "configure"' > conftest.$ac_ext
7863  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7864  (eval $ac_compile) 2>&5
7865  ac_status=$?
7866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867  (exit $ac_status); }; then
7868   if test "$lt_cv_prog_gnu_ld" = yes; then
7869    case `/usr/bin/file conftest.$ac_objext` in
7870    *32-bit*)
7871      LD="${LD-ld} -melf32bsmip"
7872      ;;
7873    *N32*)
7874      LD="${LD-ld} -melf32bmipn32"
7875      ;;
7876    *64-bit*)
7877      LD="${LD-ld} -melf64bmip"
7878      ;;
7879    esac
7880   else
7881    case `/usr/bin/file conftest.$ac_objext` in
7882    *32-bit*)
7883      LD="${LD-ld} -32"
7884      ;;
7885    *N32*)
7886      LD="${LD-ld} -n32"
7887      ;;
7888    *64-bit*)
7889      LD="${LD-ld} -64"
7890      ;;
7891    esac
7892   fi
7893  fi
7894  rm -rf conftest*
7895  ;;
7896
7897x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7898s390*-*linux*|sparc*-*linux*)
7899  # Find out which ABI we are using.
7900  echo 'int i;' > conftest.$ac_ext
7901  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7902  (eval $ac_compile) 2>&5
7903  ac_status=$?
7904  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905  (exit $ac_status); }; then
7906    case `/usr/bin/file conftest.o` in
7907    *32-bit*)
7908      case $host in
7909        x86_64-*kfreebsd*-gnu)
7910          LD="${LD-ld} -m elf_i386_fbsd"
7911          ;;
7912        x86_64-*linux*)
7913          LD="${LD-ld} -m elf_i386"
7914          ;;
7915        ppc64-*linux*|powerpc64-*linux*)
7916          LD="${LD-ld} -m elf32ppclinux"
7917          ;;
7918        s390x-*linux*)
7919          LD="${LD-ld} -m elf_s390"
7920          ;;
7921        sparc64-*linux*)
7922          LD="${LD-ld} -m elf32_sparc"
7923          ;;
7924      esac
7925      ;;
7926    *64-bit*)
7927      case $host in
7928        x86_64-*kfreebsd*-gnu)
7929          LD="${LD-ld} -m elf_x86_64_fbsd"
7930          ;;
7931        x86_64-*linux*)
7932          LD="${LD-ld} -m elf_x86_64"
7933          ;;
7934        ppc*-*linux*|powerpc*-*linux*)
7935          LD="${LD-ld} -m elf64ppc"
7936          ;;
7937        s390*-*linux*)
7938          LD="${LD-ld} -m elf64_s390"
7939          ;;
7940        sparc*-*linux*)
7941          LD="${LD-ld} -m elf64_sparc"
7942          ;;
7943      esac
7944      ;;
7945    esac
7946  fi
7947  rm -rf conftest*
7948  ;;
7949
7950*-*-sco3.2v5*)
7951  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7952  SAVE_CFLAGS="$CFLAGS"
7953  CFLAGS="$CFLAGS -belf"
7954  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7955$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7956if test "${lt_cv_cc_needs_belf+set}" = set; then
7957  $as_echo_n "(cached) " >&6
7958else
7959  ac_ext=c
7960ac_cpp='$CPP $CPPFLAGS'
7961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7963ac_compiler_gnu=$ac_cv_c_compiler_gnu
7964
7965     cat >conftest.$ac_ext <<_ACEOF
7966/* confdefs.h.  */
7967_ACEOF
7968cat confdefs.h >>conftest.$ac_ext
7969cat >>conftest.$ac_ext <<_ACEOF
7970/* end confdefs.h.  */
7971
7972int
7973main ()
7974{
7975
7976  ;
7977  return 0;
7978}
7979_ACEOF
7980rm -f conftest.$ac_objext conftest$ac_exeext
7981if { (ac_try="$ac_link"
7982case "(($ac_try" in
7983  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7984  *) ac_try_echo=$ac_try;;
7985esac
7986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7987$as_echo "$ac_try_echo") >&5
7988  (eval "$ac_link") 2>conftest.er1
7989  ac_status=$?
7990  grep -v '^ *+' conftest.er1 >conftest.err
7991  rm -f conftest.er1
7992  cat conftest.err >&5
7993  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994  (exit $ac_status); } && {
7995	 test -z "$ac_c_werror_flag" ||
7996	 test ! -s conftest.err
7997       } && test -s conftest$ac_exeext && {
7998	 test "$cross_compiling" = yes ||
7999	 $as_test_x conftest$ac_exeext
8000       }; then
8001  lt_cv_cc_needs_belf=yes
8002else
8003  $as_echo "$as_me: failed program was:" >&5
8004sed 's/^/| /' conftest.$ac_ext >&5
8005
8006	lt_cv_cc_needs_belf=no
8007fi
8008
8009rm -rf conftest.dSYM
8010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8011      conftest$ac_exeext conftest.$ac_ext
8012     ac_ext=c
8013ac_cpp='$CPP $CPPFLAGS'
8014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8016ac_compiler_gnu=$ac_cv_c_compiler_gnu
8017
8018fi
8019{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8020$as_echo "$lt_cv_cc_needs_belf" >&6; }
8021  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8022    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8023    CFLAGS="$SAVE_CFLAGS"
8024  fi
8025  ;;
8026sparc*-*solaris*)
8027  # Find out which ABI we are using.
8028  echo 'int i;' > conftest.$ac_ext
8029  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8030  (eval $ac_compile) 2>&5
8031  ac_status=$?
8032  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033  (exit $ac_status); }; then
8034    case `/usr/bin/file conftest.o` in
8035    *64-bit*)
8036      case $lt_cv_prog_gnu_ld in
8037      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8038      *)    LD="${LD-ld} -64" ;;
8039      esac
8040      ;;
8041    esac
8042  fi
8043  rm -rf conftest*
8044  ;;
8045
8046*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8047  if test -n "$ac_tool_prefix"; then
8048  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8049set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8050{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8051$as_echo_n "checking for $ac_word... " >&6; }
8052if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8053  $as_echo_n "(cached) " >&6
8054else
8055  if test -n "$DLLTOOL"; then
8056  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8057else
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061  IFS=$as_save_IFS
8062  test -z "$as_dir" && as_dir=.
8063  for ac_exec_ext in '' $ac_executable_extensions; do
8064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8066    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067    break 2
8068  fi
8069done
8070done
8071IFS=$as_save_IFS
8072
8073fi
8074fi
8075DLLTOOL=$ac_cv_prog_DLLTOOL
8076if test -n "$DLLTOOL"; then
8077  { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8078$as_echo "$DLLTOOL" >&6; }
8079else
8080  { $as_echo "$as_me:$LINENO: result: no" >&5
8081$as_echo "no" >&6; }
8082fi
8083
8084
8085fi
8086if test -z "$ac_cv_prog_DLLTOOL"; then
8087  ac_ct_DLLTOOL=$DLLTOOL
8088  # Extract the first word of "dlltool", so it can be a program name with args.
8089set dummy dlltool; ac_word=$2
8090{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8091$as_echo_n "checking for $ac_word... " >&6; }
8092if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8093  $as_echo_n "(cached) " >&6
8094else
8095  if test -n "$ac_ct_DLLTOOL"; then
8096  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8097else
8098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099for as_dir in $PATH
8100do
8101  IFS=$as_save_IFS
8102  test -z "$as_dir" && as_dir=.
8103  for ac_exec_ext in '' $ac_executable_extensions; do
8104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8105    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8106    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107    break 2
8108  fi
8109done
8110done
8111IFS=$as_save_IFS
8112
8113fi
8114fi
8115ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8116if test -n "$ac_ct_DLLTOOL"; then
8117  { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8118$as_echo "$ac_ct_DLLTOOL" >&6; }
8119else
8120  { $as_echo "$as_me:$LINENO: result: no" >&5
8121$as_echo "no" >&6; }
8122fi
8123
8124  if test "x$ac_ct_DLLTOOL" = x; then
8125    DLLTOOL="false"
8126  else
8127    case $cross_compiling:$ac_tool_warned in
8128yes:)
8129{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8131ac_tool_warned=yes ;;
8132esac
8133    DLLTOOL=$ac_ct_DLLTOOL
8134  fi
8135else
8136  DLLTOOL="$ac_cv_prog_DLLTOOL"
8137fi
8138
8139  if test -n "$ac_tool_prefix"; then
8140  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8141set dummy ${ac_tool_prefix}as; ac_word=$2
8142{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8143$as_echo_n "checking for $ac_word... " >&6; }
8144if test "${ac_cv_prog_AS+set}" = set; then
8145  $as_echo_n "(cached) " >&6
8146else
8147  if test -n "$AS"; then
8148  ac_cv_prog_AS="$AS" # Let the user override the test.
8149else
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153  IFS=$as_save_IFS
8154  test -z "$as_dir" && as_dir=.
8155  for ac_exec_ext in '' $ac_executable_extensions; do
8156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157    ac_cv_prog_AS="${ac_tool_prefix}as"
8158    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159    break 2
8160  fi
8161done
8162done
8163IFS=$as_save_IFS
8164
8165fi
8166fi
8167AS=$ac_cv_prog_AS
8168if test -n "$AS"; then
8169  { $as_echo "$as_me:$LINENO: result: $AS" >&5
8170$as_echo "$AS" >&6; }
8171else
8172  { $as_echo "$as_me:$LINENO: result: no" >&5
8173$as_echo "no" >&6; }
8174fi
8175
8176
8177fi
8178if test -z "$ac_cv_prog_AS"; then
8179  ac_ct_AS=$AS
8180  # Extract the first word of "as", so it can be a program name with args.
8181set dummy as; ac_word=$2
8182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
8184if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
8185  $as_echo_n "(cached) " >&6
8186else
8187  if test -n "$ac_ct_AS"; then
8188  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  test -z "$as_dir" && as_dir=.
8195  for ac_exec_ext in '' $ac_executable_extensions; do
8196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8197    ac_cv_prog_ac_ct_AS="as"
8198    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8199    break 2
8200  fi
8201done
8202done
8203IFS=$as_save_IFS
8204
8205fi
8206fi
8207ac_ct_AS=$ac_cv_prog_ac_ct_AS
8208if test -n "$ac_ct_AS"; then
8209  { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
8210$as_echo "$ac_ct_AS" >&6; }
8211else
8212  { $as_echo "$as_me:$LINENO: result: no" >&5
8213$as_echo "no" >&6; }
8214fi
8215
8216  if test "x$ac_ct_AS" = x; then
8217    AS="false"
8218  else
8219    case $cross_compiling:$ac_tool_warned in
8220yes:)
8221{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8223ac_tool_warned=yes ;;
8224esac
8225    AS=$ac_ct_AS
8226  fi
8227else
8228  AS="$ac_cv_prog_AS"
8229fi
8230
8231  if test -n "$ac_tool_prefix"; then
8232  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8233set dummy ${ac_tool_prefix}objdump; ac_word=$2
8234{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8235$as_echo_n "checking for $ac_word... " >&6; }
8236if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8237  $as_echo_n "(cached) " >&6
8238else
8239  if test -n "$OBJDUMP"; then
8240  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8241else
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245  IFS=$as_save_IFS
8246  test -z "$as_dir" && as_dir=.
8247  for ac_exec_ext in '' $ac_executable_extensions; do
8248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8250    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251    break 2
8252  fi
8253done
8254done
8255IFS=$as_save_IFS
8256
8257fi
8258fi
8259OBJDUMP=$ac_cv_prog_OBJDUMP
8260if test -n "$OBJDUMP"; then
8261  { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8262$as_echo "$OBJDUMP" >&6; }
8263else
8264  { $as_echo "$as_me:$LINENO: result: no" >&5
8265$as_echo "no" >&6; }
8266fi
8267
8268
8269fi
8270if test -z "$ac_cv_prog_OBJDUMP"; then
8271  ac_ct_OBJDUMP=$OBJDUMP
8272  # Extract the first word of "objdump", so it can be a program name with args.
8273set dummy objdump; ac_word=$2
8274{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8277  $as_echo_n "(cached) " >&6
8278else
8279  if test -n "$ac_ct_OBJDUMP"; then
8280  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285  IFS=$as_save_IFS
8286  test -z "$as_dir" && as_dir=.
8287  for ac_exec_ext in '' $ac_executable_extensions; do
8288  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8290    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291    break 2
8292  fi
8293done
8294done
8295IFS=$as_save_IFS
8296
8297fi
8298fi
8299ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8300if test -n "$ac_ct_OBJDUMP"; then
8301  { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8302$as_echo "$ac_ct_OBJDUMP" >&6; }
8303else
8304  { $as_echo "$as_me:$LINENO: result: no" >&5
8305$as_echo "no" >&6; }
8306fi
8307
8308  if test "x$ac_ct_OBJDUMP" = x; then
8309    OBJDUMP="false"
8310  else
8311    case $cross_compiling:$ac_tool_warned in
8312yes:)
8313{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8314$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315ac_tool_warned=yes ;;
8316esac
8317    OBJDUMP=$ac_ct_OBJDUMP
8318  fi
8319else
8320  OBJDUMP="$ac_cv_prog_OBJDUMP"
8321fi
8322
8323  ;;
8324
8325esac
8326
8327need_locks="$enable_libtool_lock"
8328
8329
8330
8331for ac_header in dlfcn.h
8332do
8333as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8335  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8336$as_echo_n "checking for $ac_header... " >&6; }
8337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8338  $as_echo_n "(cached) " >&6
8339fi
8340ac_res=`eval 'as_val=${'$as_ac_Header'}
8341		 $as_echo "$as_val"'`
8342	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8343$as_echo "$ac_res" >&6; }
8344else
8345  # Is the header compilable?
8346{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8347$as_echo_n "checking $ac_header usability... " >&6; }
8348cat >conftest.$ac_ext <<_ACEOF
8349/* confdefs.h.  */
8350_ACEOF
8351cat confdefs.h >>conftest.$ac_ext
8352cat >>conftest.$ac_ext <<_ACEOF
8353/* end confdefs.h.  */
8354$ac_includes_default
8355#include <$ac_header>
8356_ACEOF
8357rm -f conftest.$ac_objext
8358if { (ac_try="$ac_compile"
8359case "(($ac_try" in
8360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361  *) ac_try_echo=$ac_try;;
8362esac
8363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8364$as_echo "$ac_try_echo") >&5
8365  (eval "$ac_compile") 2>conftest.er1
8366  ac_status=$?
8367  grep -v '^ *+' conftest.er1 >conftest.err
8368  rm -f conftest.er1
8369  cat conftest.err >&5
8370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371  (exit $ac_status); } && {
8372	 test -z "$ac_c_werror_flag" ||
8373	 test ! -s conftest.err
8374       } && test -s conftest.$ac_objext; then
8375  ac_header_compiler=yes
8376else
8377  $as_echo "$as_me: failed program was:" >&5
8378sed 's/^/| /' conftest.$ac_ext >&5
8379
8380	ac_header_compiler=no
8381fi
8382
8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8385$as_echo "$ac_header_compiler" >&6; }
8386
8387# Is the header present?
8388{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8389$as_echo_n "checking $ac_header presence... " >&6; }
8390cat >conftest.$ac_ext <<_ACEOF
8391/* confdefs.h.  */
8392_ACEOF
8393cat confdefs.h >>conftest.$ac_ext
8394cat >>conftest.$ac_ext <<_ACEOF
8395/* end confdefs.h.  */
8396#include <$ac_header>
8397_ACEOF
8398if { (ac_try="$ac_cpp conftest.$ac_ext"
8399case "(($ac_try" in
8400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401  *) ac_try_echo=$ac_try;;
8402esac
8403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8404$as_echo "$ac_try_echo") >&5
8405  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8406  ac_status=$?
8407  grep -v '^ *+' conftest.er1 >conftest.err
8408  rm -f conftest.er1
8409  cat conftest.err >&5
8410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411  (exit $ac_status); } >/dev/null && {
8412	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8413	 test ! -s conftest.err
8414       }; then
8415  ac_header_preproc=yes
8416else
8417  $as_echo "$as_me: failed program was:" >&5
8418sed 's/^/| /' conftest.$ac_ext >&5
8419
8420  ac_header_preproc=no
8421fi
8422
8423rm -f conftest.err conftest.$ac_ext
8424{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8425$as_echo "$ac_header_preproc" >&6; }
8426
8427# So?  What about this header?
8428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8429  yes:no: )
8430    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8431$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8432    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8433$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8434    ac_header_preproc=yes
8435    ;;
8436  no:yes:* )
8437    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8438$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8439    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8440$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8441    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8442$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8443    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8444$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8445    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8446$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8447    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8448$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8449
8450    ;;
8451esac
8452{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8453$as_echo_n "checking for $ac_header... " >&6; }
8454if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455  $as_echo_n "(cached) " >&6
8456else
8457  eval "$as_ac_Header=\$ac_header_preproc"
8458fi
8459ac_res=`eval 'as_val=${'$as_ac_Header'}
8460		 $as_echo "$as_val"'`
8461	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8462$as_echo "$ac_res" >&6; }
8463
8464fi
8465as_val=`eval 'as_val=${'$as_ac_Header'}
8466		 $as_echo "$as_val"'`
8467   if test "x$as_val" = x""yes; then
8468  cat >>confdefs.h <<_ACEOF
8469#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8470_ACEOF
8471
8472fi
8473
8474done
8475
8476ac_ext=cpp
8477ac_cpp='$CXXCPP $CPPFLAGS'
8478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8481if test -z "$CXX"; then
8482  if test -n "$CCC"; then
8483    CXX=$CCC
8484  else
8485    if test -n "$ac_tool_prefix"; then
8486  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8487  do
8488    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8490{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8491$as_echo_n "checking for $ac_word... " >&6; }
8492if test "${ac_cv_prog_CXX+set}" = set; then
8493  $as_echo_n "(cached) " >&6
8494else
8495  if test -n "$CXX"; then
8496  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8497else
8498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499for as_dir in $PATH
8500do
8501  IFS=$as_save_IFS
8502  test -z "$as_dir" && as_dir=.
8503  for ac_exec_ext in '' $ac_executable_extensions; do
8504  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8505    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8506    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8507    break 2
8508  fi
8509done
8510done
8511IFS=$as_save_IFS
8512
8513fi
8514fi
8515CXX=$ac_cv_prog_CXX
8516if test -n "$CXX"; then
8517  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
8518$as_echo "$CXX" >&6; }
8519else
8520  { $as_echo "$as_me:$LINENO: result: no" >&5
8521$as_echo "no" >&6; }
8522fi
8523
8524
8525    test -n "$CXX" && break
8526  done
8527fi
8528if test -z "$CXX"; then
8529  ac_ct_CXX=$CXX
8530  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8531do
8532  # Extract the first word of "$ac_prog", so it can be a program name with args.
8533set dummy $ac_prog; ac_word=$2
8534{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8535$as_echo_n "checking for $ac_word... " >&6; }
8536if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8537  $as_echo_n "(cached) " >&6
8538else
8539  if test -n "$ac_ct_CXX"; then
8540  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8541else
8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8543for as_dir in $PATH
8544do
8545  IFS=$as_save_IFS
8546  test -z "$as_dir" && as_dir=.
8547  for ac_exec_ext in '' $ac_executable_extensions; do
8548  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8549    ac_cv_prog_ac_ct_CXX="$ac_prog"
8550    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8551    break 2
8552  fi
8553done
8554done
8555IFS=$as_save_IFS
8556
8557fi
8558fi
8559ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8560if test -n "$ac_ct_CXX"; then
8561  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8562$as_echo "$ac_ct_CXX" >&6; }
8563else
8564  { $as_echo "$as_me:$LINENO: result: no" >&5
8565$as_echo "no" >&6; }
8566fi
8567
8568
8569  test -n "$ac_ct_CXX" && break
8570done
8571
8572  if test "x$ac_ct_CXX" = x; then
8573    CXX="g++"
8574  else
8575    case $cross_compiling:$ac_tool_warned in
8576yes:)
8577{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8579ac_tool_warned=yes ;;
8580esac
8581    CXX=$ac_ct_CXX
8582  fi
8583fi
8584
8585  fi
8586fi
8587# Provide some information about the compiler.
8588$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8589set X $ac_compile
8590ac_compiler=$2
8591{ (ac_try="$ac_compiler --version >&5"
8592case "(($ac_try" in
8593  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594  *) ac_try_echo=$ac_try;;
8595esac
8596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597$as_echo "$ac_try_echo") >&5
8598  (eval "$ac_compiler --version >&5") 2>&5
8599  ac_status=$?
8600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601  (exit $ac_status); }
8602{ (ac_try="$ac_compiler -v >&5"
8603case "(($ac_try" in
8604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605  *) ac_try_echo=$ac_try;;
8606esac
8607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8608$as_echo "$ac_try_echo") >&5
8609  (eval "$ac_compiler -v >&5") 2>&5
8610  ac_status=$?
8611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612  (exit $ac_status); }
8613{ (ac_try="$ac_compiler -V >&5"
8614case "(($ac_try" in
8615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616  *) ac_try_echo=$ac_try;;
8617esac
8618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8619$as_echo "$ac_try_echo") >&5
8620  (eval "$ac_compiler -V >&5") 2>&5
8621  ac_status=$?
8622  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623  (exit $ac_status); }
8624
8625{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8626$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8627if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8628  $as_echo_n "(cached) " >&6
8629else
8630  cat >conftest.$ac_ext <<_ACEOF
8631/* confdefs.h.  */
8632_ACEOF
8633cat confdefs.h >>conftest.$ac_ext
8634cat >>conftest.$ac_ext <<_ACEOF
8635/* end confdefs.h.  */
8636
8637int
8638main ()
8639{
8640#ifndef __GNUC__
8641       choke me
8642#endif
8643
8644  ;
8645  return 0;
8646}
8647_ACEOF
8648rm -f conftest.$ac_objext
8649if { (ac_try="$ac_compile"
8650case "(($ac_try" in
8651  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652  *) ac_try_echo=$ac_try;;
8653esac
8654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8655$as_echo "$ac_try_echo") >&5
8656  (eval "$ac_compile") 2>conftest.er1
8657  ac_status=$?
8658  grep -v '^ *+' conftest.er1 >conftest.err
8659  rm -f conftest.er1
8660  cat conftest.err >&5
8661  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662  (exit $ac_status); } && {
8663	 test -z "$ac_cxx_werror_flag" ||
8664	 test ! -s conftest.err
8665       } && test -s conftest.$ac_objext; then
8666  ac_compiler_gnu=yes
8667else
8668  $as_echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671	ac_compiler_gnu=no
8672fi
8673
8674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8676
8677fi
8678{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8679$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8680if test $ac_compiler_gnu = yes; then
8681  GXX=yes
8682else
8683  GXX=
8684fi
8685ac_test_CXXFLAGS=${CXXFLAGS+set}
8686ac_save_CXXFLAGS=$CXXFLAGS
8687{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8688$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8689if test "${ac_cv_prog_cxx_g+set}" = set; then
8690  $as_echo_n "(cached) " >&6
8691else
8692  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8693   ac_cxx_werror_flag=yes
8694   ac_cv_prog_cxx_g=no
8695   CXXFLAGS="-g"
8696   cat >conftest.$ac_ext <<_ACEOF
8697/* confdefs.h.  */
8698_ACEOF
8699cat confdefs.h >>conftest.$ac_ext
8700cat >>conftest.$ac_ext <<_ACEOF
8701/* end confdefs.h.  */
8702
8703int
8704main ()
8705{
8706
8707  ;
8708  return 0;
8709}
8710_ACEOF
8711rm -f conftest.$ac_objext
8712if { (ac_try="$ac_compile"
8713case "(($ac_try" in
8714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715  *) ac_try_echo=$ac_try;;
8716esac
8717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8718$as_echo "$ac_try_echo") >&5
8719  (eval "$ac_compile") 2>conftest.er1
8720  ac_status=$?
8721  grep -v '^ *+' conftest.er1 >conftest.err
8722  rm -f conftest.er1
8723  cat conftest.err >&5
8724  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725  (exit $ac_status); } && {
8726	 test -z "$ac_cxx_werror_flag" ||
8727	 test ! -s conftest.err
8728       } && test -s conftest.$ac_objext; then
8729  ac_cv_prog_cxx_g=yes
8730else
8731  $as_echo "$as_me: failed program was:" >&5
8732sed 's/^/| /' conftest.$ac_ext >&5
8733
8734	CXXFLAGS=""
8735      cat >conftest.$ac_ext <<_ACEOF
8736/* confdefs.h.  */
8737_ACEOF
8738cat confdefs.h >>conftest.$ac_ext
8739cat >>conftest.$ac_ext <<_ACEOF
8740/* end confdefs.h.  */
8741
8742int
8743main ()
8744{
8745
8746  ;
8747  return 0;
8748}
8749_ACEOF
8750rm -f conftest.$ac_objext
8751if { (ac_try="$ac_compile"
8752case "(($ac_try" in
8753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754  *) ac_try_echo=$ac_try;;
8755esac
8756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8757$as_echo "$ac_try_echo") >&5
8758  (eval "$ac_compile") 2>conftest.er1
8759  ac_status=$?
8760  grep -v '^ *+' conftest.er1 >conftest.err
8761  rm -f conftest.er1
8762  cat conftest.err >&5
8763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764  (exit $ac_status); } && {
8765	 test -z "$ac_cxx_werror_flag" ||
8766	 test ! -s conftest.err
8767       } && test -s conftest.$ac_objext; then
8768  :
8769else
8770  $as_echo "$as_me: failed program was:" >&5
8771sed 's/^/| /' conftest.$ac_ext >&5
8772
8773	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8774	 CXXFLAGS="-g"
8775	 cat >conftest.$ac_ext <<_ACEOF
8776/* confdefs.h.  */
8777_ACEOF
8778cat confdefs.h >>conftest.$ac_ext
8779cat >>conftest.$ac_ext <<_ACEOF
8780/* end confdefs.h.  */
8781
8782int
8783main ()
8784{
8785
8786  ;
8787  return 0;
8788}
8789_ACEOF
8790rm -f conftest.$ac_objext
8791if { (ac_try="$ac_compile"
8792case "(($ac_try" in
8793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8794  *) ac_try_echo=$ac_try;;
8795esac
8796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8797$as_echo "$ac_try_echo") >&5
8798  (eval "$ac_compile") 2>conftest.er1
8799  ac_status=$?
8800  grep -v '^ *+' conftest.er1 >conftest.err
8801  rm -f conftest.er1
8802  cat conftest.err >&5
8803  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804  (exit $ac_status); } && {
8805	 test -z "$ac_cxx_werror_flag" ||
8806	 test ! -s conftest.err
8807       } && test -s conftest.$ac_objext; then
8808  ac_cv_prog_cxx_g=yes
8809else
8810  $as_echo "$as_me: failed program was:" >&5
8811sed 's/^/| /' conftest.$ac_ext >&5
8812
8813
8814fi
8815
8816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817fi
8818
8819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8820fi
8821
8822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8824fi
8825{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8826$as_echo "$ac_cv_prog_cxx_g" >&6; }
8827if test "$ac_test_CXXFLAGS" = set; then
8828  CXXFLAGS=$ac_save_CXXFLAGS
8829elif test $ac_cv_prog_cxx_g = yes; then
8830  if test "$GXX" = yes; then
8831    CXXFLAGS="-g -O2"
8832  else
8833    CXXFLAGS="-g"
8834  fi
8835else
8836  if test "$GXX" = yes; then
8837    CXXFLAGS="-O2"
8838  else
8839    CXXFLAGS=
8840  fi
8841fi
8842ac_ext=cpp
8843ac_cpp='$CXXCPP $CPPFLAGS'
8844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8847
8848depcc="$CXX"  am_compiler_list=
8849
8850{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8851$as_echo_n "checking dependency style of $depcc... " >&6; }
8852if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8853  $as_echo_n "(cached) " >&6
8854else
8855  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8856  # We make a subdir and do the tests there.  Otherwise we can end up
8857  # making bogus files that we don't know about and never remove.  For
8858  # instance it was reported that on HP-UX the gcc test will end up
8859  # making a dummy file named `D' -- because `-MD' means `put the output
8860  # in D'.
8861  mkdir conftest.dir
8862  # Copy depcomp to subdir because otherwise we won't find it if we're
8863  # using a relative directory.
8864  cp "$am_depcomp" conftest.dir
8865  cd conftest.dir
8866  # We will build objects and dependencies in a subdirectory because
8867  # it helps to detect inapplicable dependency modes.  For instance
8868  # both Tru64's cc and ICC support -MD to output dependencies as a
8869  # side effect of compilation, but ICC will put the dependencies in
8870  # the current directory while Tru64 will put them in the object
8871  # directory.
8872  mkdir sub
8873
8874  am_cv_CXX_dependencies_compiler_type=none
8875  if test "$am_compiler_list" = ""; then
8876     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8877  fi
8878  for depmode in $am_compiler_list; do
8879    # Setup a source with many dependencies, because some compilers
8880    # like to wrap large dependency lists on column 80 (with \), and
8881    # we should not choose a depcomp mode which is confused by this.
8882    #
8883    # We need to recreate these files for each test, as the compiler may
8884    # overwrite some of them when testing with obscure command lines.
8885    # This happens at least with the AIX C compiler.
8886    : > sub/conftest.c
8887    for i in 1 2 3 4 5 6; do
8888      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8889      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8890      # Solaris 8's {/usr,}/bin/sh.
8891      touch sub/conftst$i.h
8892    done
8893    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8894
8895    case $depmode in
8896    nosideeffect)
8897      # after this tag, mechanisms are not by side-effect, so they'll
8898      # only be used when explicitly requested
8899      if test "x$enable_dependency_tracking" = xyes; then
8900	continue
8901      else
8902	break
8903      fi
8904      ;;
8905    none) break ;;
8906    esac
8907    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8908    # mode.  It turns out that the SunPro C++ compiler does not properly
8909    # handle `-M -o', and we need to detect this.
8910    if depmode=$depmode \
8911       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8912       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8913       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8914         >/dev/null 2>conftest.err &&
8915       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8916       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8917       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8918       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8919      # icc doesn't choke on unknown options, it will just issue warnings
8920      # or remarks (even with -Werror).  So we grep stderr for any message
8921      # that says an option was ignored or not supported.
8922      # When given -MP, icc 7.0 and 7.1 complain thusly:
8923      #   icc: Command line warning: ignoring option '-M'; no argument required
8924      # The diagnosis changed in icc 8.0:
8925      #   icc: Command line remark: option '-MP' not supported
8926      if (grep 'ignoring option' conftest.err ||
8927          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8928        am_cv_CXX_dependencies_compiler_type=$depmode
8929        break
8930      fi
8931    fi
8932  done
8933
8934  cd ..
8935  rm -rf conftest.dir
8936else
8937  am_cv_CXX_dependencies_compiler_type=none
8938fi
8939
8940fi
8941{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8942$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8943CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8944
8945 if
8946  test "x$enable_dependency_tracking" != xno \
8947  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8948  am__fastdepCXX_TRUE=
8949  am__fastdepCXX_FALSE='#'
8950else
8951  am__fastdepCXX_TRUE='#'
8952  am__fastdepCXX_FALSE=
8953fi
8954
8955
8956
8957
8958if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8959    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8960    (test "X$CXX" != "Xg++"))) ; then
8961  ac_ext=cpp
8962ac_cpp='$CXXCPP $CPPFLAGS'
8963ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8964ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8965ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8966{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8967$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8968if test -z "$CXXCPP"; then
8969  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8970  $as_echo_n "(cached) " >&6
8971else
8972      # Double quotes because CXXCPP needs to be expanded
8973    for CXXCPP in "$CXX -E" "/lib/cpp"
8974    do
8975      ac_preproc_ok=false
8976for ac_cxx_preproc_warn_flag in '' yes
8977do
8978  # Use a header file that comes with gcc, so configuring glibc
8979  # with a fresh cross-compiler works.
8980  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8981  # <limits.h> exists even on freestanding compilers.
8982  # On the NeXT, cc -E runs the code through the compiler's parser,
8983  # not just through cpp. "Syntax error" is here to catch this case.
8984  cat >conftest.$ac_ext <<_ACEOF
8985/* confdefs.h.  */
8986_ACEOF
8987cat confdefs.h >>conftest.$ac_ext
8988cat >>conftest.$ac_ext <<_ACEOF
8989/* end confdefs.h.  */
8990#ifdef __STDC__
8991# include <limits.h>
8992#else
8993# include <assert.h>
8994#endif
8995		     Syntax error
8996_ACEOF
8997if { (ac_try="$ac_cpp conftest.$ac_ext"
8998case "(($ac_try" in
8999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000  *) ac_try_echo=$ac_try;;
9001esac
9002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003$as_echo "$ac_try_echo") >&5
9004  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9005  ac_status=$?
9006  grep -v '^ *+' conftest.er1 >conftest.err
9007  rm -f conftest.er1
9008  cat conftest.err >&5
9009  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010  (exit $ac_status); } >/dev/null && {
9011	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9012	 test ! -s conftest.err
9013       }; then
9014  :
9015else
9016  $as_echo "$as_me: failed program was:" >&5
9017sed 's/^/| /' conftest.$ac_ext >&5
9018
9019  # Broken: fails on valid input.
9020continue
9021fi
9022
9023rm -f conftest.err conftest.$ac_ext
9024
9025  # OK, works on sane cases.  Now check whether nonexistent headers
9026  # can be detected and how.
9027  cat >conftest.$ac_ext <<_ACEOF
9028/* confdefs.h.  */
9029_ACEOF
9030cat confdefs.h >>conftest.$ac_ext
9031cat >>conftest.$ac_ext <<_ACEOF
9032/* end confdefs.h.  */
9033#include <ac_nonexistent.h>
9034_ACEOF
9035if { (ac_try="$ac_cpp conftest.$ac_ext"
9036case "(($ac_try" in
9037  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038  *) ac_try_echo=$ac_try;;
9039esac
9040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9041$as_echo "$ac_try_echo") >&5
9042  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9043  ac_status=$?
9044  grep -v '^ *+' conftest.er1 >conftest.err
9045  rm -f conftest.er1
9046  cat conftest.err >&5
9047  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048  (exit $ac_status); } >/dev/null && {
9049	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9050	 test ! -s conftest.err
9051       }; then
9052  # Broken: success on invalid input.
9053continue
9054else
9055  $as_echo "$as_me: failed program was:" >&5
9056sed 's/^/| /' conftest.$ac_ext >&5
9057
9058  # Passes both tests.
9059ac_preproc_ok=:
9060break
9061fi
9062
9063rm -f conftest.err conftest.$ac_ext
9064
9065done
9066# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9067rm -f conftest.err conftest.$ac_ext
9068if $ac_preproc_ok; then
9069  break
9070fi
9071
9072    done
9073    ac_cv_prog_CXXCPP=$CXXCPP
9074
9075fi
9076  CXXCPP=$ac_cv_prog_CXXCPP
9077else
9078  ac_cv_prog_CXXCPP=$CXXCPP
9079fi
9080{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
9081$as_echo "$CXXCPP" >&6; }
9082ac_preproc_ok=false
9083for ac_cxx_preproc_warn_flag in '' yes
9084do
9085  # Use a header file that comes with gcc, so configuring glibc
9086  # with a fresh cross-compiler works.
9087  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9088  # <limits.h> exists even on freestanding compilers.
9089  # On the NeXT, cc -E runs the code through the compiler's parser,
9090  # not just through cpp. "Syntax error" is here to catch this case.
9091  cat >conftest.$ac_ext <<_ACEOF
9092/* confdefs.h.  */
9093_ACEOF
9094cat confdefs.h >>conftest.$ac_ext
9095cat >>conftest.$ac_ext <<_ACEOF
9096/* end confdefs.h.  */
9097#ifdef __STDC__
9098# include <limits.h>
9099#else
9100# include <assert.h>
9101#endif
9102		     Syntax error
9103_ACEOF
9104if { (ac_try="$ac_cpp conftest.$ac_ext"
9105case "(($ac_try" in
9106  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107  *) ac_try_echo=$ac_try;;
9108esac
9109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110$as_echo "$ac_try_echo") >&5
9111  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9112  ac_status=$?
9113  grep -v '^ *+' conftest.er1 >conftest.err
9114  rm -f conftest.er1
9115  cat conftest.err >&5
9116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117  (exit $ac_status); } >/dev/null && {
9118	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9119	 test ! -s conftest.err
9120       }; then
9121  :
9122else
9123  $as_echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126  # Broken: fails on valid input.
9127continue
9128fi
9129
9130rm -f conftest.err conftest.$ac_ext
9131
9132  # OK, works on sane cases.  Now check whether nonexistent headers
9133  # can be detected and how.
9134  cat >conftest.$ac_ext <<_ACEOF
9135/* confdefs.h.  */
9136_ACEOF
9137cat confdefs.h >>conftest.$ac_ext
9138cat >>conftest.$ac_ext <<_ACEOF
9139/* end confdefs.h.  */
9140#include <ac_nonexistent.h>
9141_ACEOF
9142if { (ac_try="$ac_cpp conftest.$ac_ext"
9143case "(($ac_try" in
9144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145  *) ac_try_echo=$ac_try;;
9146esac
9147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9148$as_echo "$ac_try_echo") >&5
9149  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9150  ac_status=$?
9151  grep -v '^ *+' conftest.er1 >conftest.err
9152  rm -f conftest.er1
9153  cat conftest.err >&5
9154  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155  (exit $ac_status); } >/dev/null && {
9156	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9157	 test ! -s conftest.err
9158       }; then
9159  # Broken: success on invalid input.
9160continue
9161else
9162  $as_echo "$as_me: failed program was:" >&5
9163sed 's/^/| /' conftest.$ac_ext >&5
9164
9165  # Passes both tests.
9166ac_preproc_ok=:
9167break
9168fi
9169
9170rm -f conftest.err conftest.$ac_ext
9171
9172done
9173# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9174rm -f conftest.err conftest.$ac_ext
9175if $ac_preproc_ok; then
9176  :
9177else
9178  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9179$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9180{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9181See \`config.log' for more details." >&5
9182$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9183See \`config.log' for more details." >&2;}
9184   { (exit 1); exit 1; }; }; }
9185fi
9186
9187ac_ext=cpp
9188ac_cpp='$CXXCPP $CPPFLAGS'
9189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9192
9193fi
9194
9195
9196ac_ext=f
9197ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9198ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9199ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9200if test -n "$ac_tool_prefix"; then
9201  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
9202  do
9203    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9205{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9206$as_echo_n "checking for $ac_word... " >&6; }
9207if test "${ac_cv_prog_F77+set}" = set; then
9208  $as_echo_n "(cached) " >&6
9209else
9210  if test -n "$F77"; then
9211  ac_cv_prog_F77="$F77" # Let the user override the test.
9212else
9213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214for as_dir in $PATH
9215do
9216  IFS=$as_save_IFS
9217  test -z "$as_dir" && as_dir=.
9218  for ac_exec_ext in '' $ac_executable_extensions; do
9219  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9220    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9221    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222    break 2
9223  fi
9224done
9225done
9226IFS=$as_save_IFS
9227
9228fi
9229fi
9230F77=$ac_cv_prog_F77
9231if test -n "$F77"; then
9232  { $as_echo "$as_me:$LINENO: result: $F77" >&5
9233$as_echo "$F77" >&6; }
9234else
9235  { $as_echo "$as_me:$LINENO: result: no" >&5
9236$as_echo "no" >&6; }
9237fi
9238
9239
9240    test -n "$F77" && break
9241  done
9242fi
9243if test -z "$F77"; then
9244  ac_ct_F77=$F77
9245  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
9246do
9247  # Extract the first word of "$ac_prog", so it can be a program name with args.
9248set dummy $ac_prog; ac_word=$2
9249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9250$as_echo_n "checking for $ac_word... " >&6; }
9251if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9252  $as_echo_n "(cached) " >&6
9253else
9254  if test -n "$ac_ct_F77"; then
9255  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9256else
9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260  IFS=$as_save_IFS
9261  test -z "$as_dir" && as_dir=.
9262  for ac_exec_ext in '' $ac_executable_extensions; do
9263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264    ac_cv_prog_ac_ct_F77="$ac_prog"
9265    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9266    break 2
9267  fi
9268done
9269done
9270IFS=$as_save_IFS
9271
9272fi
9273fi
9274ac_ct_F77=$ac_cv_prog_ac_ct_F77
9275if test -n "$ac_ct_F77"; then
9276  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9277$as_echo "$ac_ct_F77" >&6; }
9278else
9279  { $as_echo "$as_me:$LINENO: result: no" >&5
9280$as_echo "no" >&6; }
9281fi
9282
9283
9284  test -n "$ac_ct_F77" && break
9285done
9286
9287  if test "x$ac_ct_F77" = x; then
9288    F77=""
9289  else
9290    case $cross_compiling:$ac_tool_warned in
9291yes:)
9292{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9294ac_tool_warned=yes ;;
9295esac
9296    F77=$ac_ct_F77
9297  fi
9298fi
9299
9300
9301# Provide some information about the compiler.
9302$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
9303set X $ac_compile
9304ac_compiler=$2
9305{ (ac_try="$ac_compiler --version >&5"
9306case "(($ac_try" in
9307  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9308  *) ac_try_echo=$ac_try;;
9309esac
9310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9311$as_echo "$ac_try_echo") >&5
9312  (eval "$ac_compiler --version >&5") 2>&5
9313  ac_status=$?
9314  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315  (exit $ac_status); }
9316{ (ac_try="$ac_compiler -v >&5"
9317case "(($ac_try" in
9318  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319  *) ac_try_echo=$ac_try;;
9320esac
9321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9322$as_echo "$ac_try_echo") >&5
9323  (eval "$ac_compiler -v >&5") 2>&5
9324  ac_status=$?
9325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326  (exit $ac_status); }
9327{ (ac_try="$ac_compiler -V >&5"
9328case "(($ac_try" in
9329  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330  *) ac_try_echo=$ac_try;;
9331esac
9332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9333$as_echo "$ac_try_echo") >&5
9334  (eval "$ac_compiler -V >&5") 2>&5
9335  ac_status=$?
9336  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337  (exit $ac_status); }
9338rm -f a.out
9339
9340# If we don't use `.F' as extension, the preprocessor is not run on the
9341# input file.  (Note that this only needs to work for GNU compilers.)
9342ac_save_ext=$ac_ext
9343ac_ext=F
9344{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9345$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
9346if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9347  $as_echo_n "(cached) " >&6
9348else
9349  cat >conftest.$ac_ext <<_ACEOF
9350      program main
9351#ifndef __GNUC__
9352       choke me
9353#endif
9354
9355      end
9356_ACEOF
9357rm -f conftest.$ac_objext
9358if { (ac_try="$ac_compile"
9359case "(($ac_try" in
9360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361  *) ac_try_echo=$ac_try;;
9362esac
9363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9364$as_echo "$ac_try_echo") >&5
9365  (eval "$ac_compile") 2>conftest.er1
9366  ac_status=$?
9367  grep -v '^ *+' conftest.er1 >conftest.err
9368  rm -f conftest.er1
9369  cat conftest.err >&5
9370  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371  (exit $ac_status); } && {
9372	 test -z "$ac_f77_werror_flag" ||
9373	 test ! -s conftest.err
9374       } && test -s conftest.$ac_objext; then
9375  ac_compiler_gnu=yes
9376else
9377  $as_echo "$as_me: failed program was:" >&5
9378sed 's/^/| /' conftest.$ac_ext >&5
9379
9380	ac_compiler_gnu=no
9381fi
9382
9383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9385
9386fi
9387{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9388$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
9389ac_ext=$ac_save_ext
9390ac_test_FFLAGS=${FFLAGS+set}
9391ac_save_FFLAGS=$FFLAGS
9392FFLAGS=
9393{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9394$as_echo_n "checking whether $F77 accepts -g... " >&6; }
9395if test "${ac_cv_prog_f77_g+set}" = set; then
9396  $as_echo_n "(cached) " >&6
9397else
9398  FFLAGS=-g
9399cat >conftest.$ac_ext <<_ACEOF
9400      program main
9401
9402      end
9403_ACEOF
9404rm -f conftest.$ac_objext
9405if { (ac_try="$ac_compile"
9406case "(($ac_try" in
9407  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408  *) ac_try_echo=$ac_try;;
9409esac
9410eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9411$as_echo "$ac_try_echo") >&5
9412  (eval "$ac_compile") 2>conftest.er1
9413  ac_status=$?
9414  grep -v '^ *+' conftest.er1 >conftest.err
9415  rm -f conftest.er1
9416  cat conftest.err >&5
9417  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418  (exit $ac_status); } && {
9419	 test -z "$ac_f77_werror_flag" ||
9420	 test ! -s conftest.err
9421       } && test -s conftest.$ac_objext; then
9422  ac_cv_prog_f77_g=yes
9423else
9424  $as_echo "$as_me: failed program was:" >&5
9425sed 's/^/| /' conftest.$ac_ext >&5
9426
9427	ac_cv_prog_f77_g=no
9428fi
9429
9430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9431
9432fi
9433{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9434$as_echo "$ac_cv_prog_f77_g" >&6; }
9435if test "$ac_test_FFLAGS" = set; then
9436  FFLAGS=$ac_save_FFLAGS
9437elif test $ac_cv_prog_f77_g = yes; then
9438  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9439    FFLAGS="-g -O2"
9440  else
9441    FFLAGS="-g"
9442  fi
9443else
9444  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9445    FFLAGS="-O2"
9446  else
9447    FFLAGS=
9448  fi
9449fi
9450
9451if test $ac_compiler_gnu = yes; then
9452  G77=yes
9453else
9454  G77=
9455fi
9456ac_ext=c
9457ac_cpp='$CPP $CPPFLAGS'
9458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9460ac_compiler_gnu=$ac_cv_c_compiler_gnu
9461
9462
9463
9464# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9465
9466# find the maximum length of command line arguments
9467{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9468$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9469if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9470  $as_echo_n "(cached) " >&6
9471else
9472    i=0
9473  teststring="ABCD"
9474
9475  case $build_os in
9476  msdosdjgpp*)
9477    # On DJGPP, this test can blow up pretty badly due to problems in libc
9478    # (any single argument exceeding 2000 bytes causes a buffer overrun
9479    # during glob expansion).  Even if it were fixed, the result of this
9480    # check would be larger than it should be.
9481    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9482    ;;
9483
9484  gnu*)
9485    # Under GNU Hurd, this test is not required because there is
9486    # no limit to the length of command line arguments.
9487    # Libtool will interpret -1 as no limit whatsoever
9488    lt_cv_sys_max_cmd_len=-1;
9489    ;;
9490
9491  cygwin* | mingw*)
9492    # On Win9x/ME, this test blows up -- it succeeds, but takes
9493    # about 5 minutes as the teststring grows exponentially.
9494    # Worse, since 9x/ME are not pre-emptively multitasking,
9495    # you end up with a "frozen" computer, even though with patience
9496    # the test eventually succeeds (with a max line length of 256k).
9497    # Instead, let's just punt: use the minimum linelength reported by
9498    # all of the supported platforms: 8192 (on NT/2K/XP).
9499    lt_cv_sys_max_cmd_len=8192;
9500    ;;
9501
9502  amigaos*)
9503    # On AmigaOS with pdksh, this test takes hours, literally.
9504    # So we just punt and use a minimum line length of 8192.
9505    lt_cv_sys_max_cmd_len=8192;
9506    ;;
9507
9508  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9509    # This has been around since 386BSD, at least.  Likely further.
9510    if test -x /sbin/sysctl; then
9511      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9512    elif test -x /usr/sbin/sysctl; then
9513      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9514    else
9515      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9516    fi
9517    # And add a safety zone
9518    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9519    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9520    ;;
9521
9522  interix*)
9523    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9524    lt_cv_sys_max_cmd_len=196608
9525    ;;
9526
9527  osf*)
9528    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9529    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9530    # nice to cause kernel panics so lets avoid the loop below.
9531    # First set a reasonable default.
9532    lt_cv_sys_max_cmd_len=16384
9533    #
9534    if test -x /sbin/sysconfig; then
9535      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9536        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9537      esac
9538    fi
9539    ;;
9540  sco3.2v5*)
9541    lt_cv_sys_max_cmd_len=102400
9542    ;;
9543  sysv5* | sco5v6* | sysv4.2uw2*)
9544    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9545    if test -n "$kargmax"; then
9546      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
9547    else
9548      lt_cv_sys_max_cmd_len=32768
9549    fi
9550    ;;
9551  *)
9552    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9553    if test -n "$lt_cv_sys_max_cmd_len"; then
9554      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9555      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9556    else
9557      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9558      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9559	       = "XX$teststring") >/dev/null 2>&1 &&
9560	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
9561	      lt_cv_sys_max_cmd_len=$new_result &&
9562	      test $i != 17 # 1/2 MB should be enough
9563      do
9564        i=`expr $i + 1`
9565        teststring=$teststring$teststring
9566      done
9567      teststring=
9568      # Add a significant safety factor because C++ compilers can tack on massive
9569      # amounts of additional arguments before passing them to the linker.
9570      # It appears as though 1/2 is a usable value.
9571      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9572    fi
9573    ;;
9574  esac
9575
9576fi
9577
9578if test -n $lt_cv_sys_max_cmd_len ; then
9579  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9580$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9581else
9582  { $as_echo "$as_me:$LINENO: result: none" >&5
9583$as_echo "none" >&6; }
9584fi
9585
9586
9587
9588
9589
9590# Check for command to grab the raw symbol name followed by C symbol from nm.
9591{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9592$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9593if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9594  $as_echo_n "(cached) " >&6
9595else
9596
9597# These are sane defaults that work on at least a few old systems.
9598# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9599
9600# Character class describing NM global symbol codes.
9601symcode='[BCDEGRST]'
9602
9603# Regexp to match symbols that can be accessed directly from C.
9604sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9605
9606# Transform an extracted symbol line into a proper C declaration
9607lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9608
9609# Transform an extracted symbol line into symbol name and symbol address
9610lt_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'"
9611
9612# Define system-specific variables.
9613case $host_os in
9614aix*)
9615  symcode='[BCDT]'
9616  ;;
9617cygwin* | mingw* | pw32*)
9618  symcode='[ABCDGISTW]'
9619  ;;
9620hpux*) # Its linker distinguishes data from code symbols
9621  if test "$host_cpu" = ia64; then
9622    symcode='[ABCDEGRST]'
9623  fi
9624  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9625  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'"
9626  ;;
9627linux* | k*bsd*-gnu)
9628  if test "$host_cpu" = ia64; then
9629    symcode='[ABCDGIRSTW]'
9630    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9631    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'"
9632  fi
9633  ;;
9634irix* | nonstopux*)
9635  symcode='[BCDEGRST]'
9636  ;;
9637osf*)
9638  symcode='[BCDEGQRST]'
9639  ;;
9640solaris*)
9641  symcode='[BDRT]'
9642  ;;
9643sco3.2v5*)
9644  symcode='[DT]'
9645  ;;
9646sysv4.2uw2*)
9647  symcode='[DT]'
9648  ;;
9649sysv5* | sco5v6* | unixware* | OpenUNIX*)
9650  symcode='[ABDT]'
9651  ;;
9652sysv4)
9653  symcode='[DFNSTU]'
9654  ;;
9655esac
9656
9657# Handle CRLF in mingw tool chain
9658opt_cr=
9659case $build_os in
9660mingw*)
9661  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9662  ;;
9663esac
9664
9665# If we're using GNU nm, then use its standard symbol codes.
9666case `$NM -V 2>&1` in
9667*GNU* | *'with BFD'*)
9668  symcode='[ABCDGIRSTW]' ;;
9669esac
9670
9671# Try without a prefix undercore, then with it.
9672for ac_symprfx in "" "_"; do
9673
9674  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9675  symxfrm="\\1 $ac_symprfx\\2 \\2"
9676
9677  # Write the raw and C identifiers.
9678  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9679
9680  # Check to see that the pipe works correctly.
9681  pipe_works=no
9682
9683  rm -f conftest*
9684  cat > conftest.$ac_ext <<EOF
9685#ifdef __cplusplus
9686extern "C" {
9687#endif
9688char nm_test_var;
9689void nm_test_func(){}
9690#ifdef __cplusplus
9691}
9692#endif
9693int main(){nm_test_var='a';nm_test_func();return(0);}
9694EOF
9695
9696  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9697  (eval $ac_compile) 2>&5
9698  ac_status=$?
9699  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700  (exit $ac_status); }; then
9701    # Now try to grab the symbols.
9702    nlist=conftest.nm
9703    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9704  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9705  ac_status=$?
9706  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707  (exit $ac_status); } && test -s "$nlist"; then
9708      # Try sorting and uniquifying the output.
9709      if sort "$nlist" | uniq > "$nlist"T; then
9710	mv -f "$nlist"T "$nlist"
9711      else
9712	rm -f "$nlist"T
9713      fi
9714
9715      # Make sure that we snagged all the symbols we need.
9716      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9717	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9718	  cat <<EOF > conftest.$ac_ext
9719#ifdef __cplusplus
9720extern "C" {
9721#endif
9722
9723EOF
9724	  # Now generate the symbol file.
9725	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9726
9727	  cat <<EOF >> conftest.$ac_ext
9728#if defined (__STDC__) && __STDC__
9729# define lt_ptr_t void *
9730#else
9731# define lt_ptr_t char *
9732# define const
9733#endif
9734
9735/* The mapping between symbol names and symbols. */
9736const struct {
9737  const char *name;
9738  lt_ptr_t address;
9739}
9740lt_preloaded_symbols[] =
9741{
9742EOF
9743	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9744	  cat <<\EOF >> conftest.$ac_ext
9745  {0, (lt_ptr_t) 0}
9746};
9747
9748#ifdef __cplusplus
9749}
9750#endif
9751EOF
9752	  # Now try linking the two files.
9753	  mv conftest.$ac_objext conftstm.$ac_objext
9754	  lt_save_LIBS="$LIBS"
9755	  lt_save_CFLAGS="$CFLAGS"
9756	  LIBS="conftstm.$ac_objext"
9757	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9758	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759  (eval $ac_link) 2>&5
9760  ac_status=$?
9761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762  (exit $ac_status); } && test -s conftest${ac_exeext}; then
9763	    pipe_works=yes
9764	  fi
9765	  LIBS="$lt_save_LIBS"
9766	  CFLAGS="$lt_save_CFLAGS"
9767	else
9768	  echo "cannot find nm_test_func in $nlist" >&5
9769	fi
9770      else
9771	echo "cannot find nm_test_var in $nlist" >&5
9772      fi
9773    else
9774      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9775    fi
9776  else
9777    echo "$progname: failed program was:" >&5
9778    cat conftest.$ac_ext >&5
9779  fi
9780  rm -f conftest* conftst*
9781
9782  # Do not use the global_symbol_pipe unless it works.
9783  if test "$pipe_works" = yes; then
9784    break
9785  else
9786    lt_cv_sys_global_symbol_pipe=
9787  fi
9788done
9789
9790fi
9791
9792if test -z "$lt_cv_sys_global_symbol_pipe"; then
9793  lt_cv_sys_global_symbol_to_cdecl=
9794fi
9795if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9796  { $as_echo "$as_me:$LINENO: result: failed" >&5
9797$as_echo "failed" >&6; }
9798else
9799  { $as_echo "$as_me:$LINENO: result: ok" >&5
9800$as_echo "ok" >&6; }
9801fi
9802
9803{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9804$as_echo_n "checking for objdir... " >&6; }
9805if test "${lt_cv_objdir+set}" = set; then
9806  $as_echo_n "(cached) " >&6
9807else
9808  rm -f .libs 2>/dev/null
9809mkdir .libs 2>/dev/null
9810if test -d .libs; then
9811  lt_cv_objdir=.libs
9812else
9813  # MS-DOS does not allow filenames that begin with a dot.
9814  lt_cv_objdir=_libs
9815fi
9816rmdir .libs 2>/dev/null
9817fi
9818{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9819$as_echo "$lt_cv_objdir" >&6; }
9820objdir=$lt_cv_objdir
9821
9822
9823
9824
9825
9826case $host_os in
9827aix3*)
9828  # AIX sometimes has problems with the GCC collect2 program.  For some
9829  # reason, if we set the COLLECT_NAMES environment variable, the problems
9830  # vanish in a puff of smoke.
9831  if test "X${COLLECT_NAMES+set}" != Xset; then
9832    COLLECT_NAMES=
9833    export COLLECT_NAMES
9834  fi
9835  ;;
9836esac
9837
9838# Sed substitution that helps us do robust quoting.  It backslashifies
9839# metacharacters that are still active within double-quoted strings.
9840Xsed='sed -e 1s/^X//'
9841sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9842
9843# Same as above, but do not quote variable references.
9844double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9845
9846# Sed substitution to delay expansion of an escaped shell variable in a
9847# double_quote_subst'ed string.
9848delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9849
9850# Sed substitution to avoid accidental globbing in evaled expressions
9851no_glob_subst='s/\*/\\\*/g'
9852
9853# Constants:
9854rm="rm -f"
9855
9856# Global variables:
9857default_ofile=libtool
9858can_build_shared=yes
9859
9860# All known linkers require a `.a' archive for static linking (except MSVC,
9861# which needs '.lib').
9862libext=a
9863ltmain="$ac_aux_dir/ltmain.sh"
9864ofile="$default_ofile"
9865with_gnu_ld="$lt_cv_prog_gnu_ld"
9866
9867if test -n "$ac_tool_prefix"; then
9868  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9869set dummy ${ac_tool_prefix}ar; ac_word=$2
9870{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9871$as_echo_n "checking for $ac_word... " >&6; }
9872if test "${ac_cv_prog_AR+set}" = set; then
9873  $as_echo_n "(cached) " >&6
9874else
9875  if test -n "$AR"; then
9876  ac_cv_prog_AR="$AR" # Let the user override the test.
9877else
9878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9879for as_dir in $PATH
9880do
9881  IFS=$as_save_IFS
9882  test -z "$as_dir" && as_dir=.
9883  for ac_exec_ext in '' $ac_executable_extensions; do
9884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9885    ac_cv_prog_AR="${ac_tool_prefix}ar"
9886    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9887    break 2
9888  fi
9889done
9890done
9891IFS=$as_save_IFS
9892
9893fi
9894fi
9895AR=$ac_cv_prog_AR
9896if test -n "$AR"; then
9897  { $as_echo "$as_me:$LINENO: result: $AR" >&5
9898$as_echo "$AR" >&6; }
9899else
9900  { $as_echo "$as_me:$LINENO: result: no" >&5
9901$as_echo "no" >&6; }
9902fi
9903
9904
9905fi
9906if test -z "$ac_cv_prog_AR"; then
9907  ac_ct_AR=$AR
9908  # Extract the first word of "ar", so it can be a program name with args.
9909set dummy ar; ac_word=$2
9910{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9911$as_echo_n "checking for $ac_word... " >&6; }
9912if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9913  $as_echo_n "(cached) " >&6
9914else
9915  if test -n "$ac_ct_AR"; then
9916  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9917else
9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921  IFS=$as_save_IFS
9922  test -z "$as_dir" && as_dir=.
9923  for ac_exec_ext in '' $ac_executable_extensions; do
9924  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925    ac_cv_prog_ac_ct_AR="ar"
9926    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9927    break 2
9928  fi
9929done
9930done
9931IFS=$as_save_IFS
9932
9933fi
9934fi
9935ac_ct_AR=$ac_cv_prog_ac_ct_AR
9936if test -n "$ac_ct_AR"; then
9937  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9938$as_echo "$ac_ct_AR" >&6; }
9939else
9940  { $as_echo "$as_me:$LINENO: result: no" >&5
9941$as_echo "no" >&6; }
9942fi
9943
9944  if test "x$ac_ct_AR" = x; then
9945    AR="false"
9946  else
9947    case $cross_compiling:$ac_tool_warned in
9948yes:)
9949{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9950$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9951ac_tool_warned=yes ;;
9952esac
9953    AR=$ac_ct_AR
9954  fi
9955else
9956  AR="$ac_cv_prog_AR"
9957fi
9958
9959if test -n "$ac_tool_prefix"; then
9960  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9961set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9962{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9963$as_echo_n "checking for $ac_word... " >&6; }
9964if test "${ac_cv_prog_RANLIB+set}" = set; then
9965  $as_echo_n "(cached) " >&6
9966else
9967  if test -n "$RANLIB"; then
9968  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9969else
9970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971for as_dir in $PATH
9972do
9973  IFS=$as_save_IFS
9974  test -z "$as_dir" && as_dir=.
9975  for ac_exec_ext in '' $ac_executable_extensions; do
9976  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9977    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9978    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9979    break 2
9980  fi
9981done
9982done
9983IFS=$as_save_IFS
9984
9985fi
9986fi
9987RANLIB=$ac_cv_prog_RANLIB
9988if test -n "$RANLIB"; then
9989  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9990$as_echo "$RANLIB" >&6; }
9991else
9992  { $as_echo "$as_me:$LINENO: result: no" >&5
9993$as_echo "no" >&6; }
9994fi
9995
9996
9997fi
9998if test -z "$ac_cv_prog_RANLIB"; then
9999  ac_ct_RANLIB=$RANLIB
10000  # Extract the first word of "ranlib", so it can be a program name with args.
10001set dummy ranlib; ac_word=$2
10002{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10003$as_echo_n "checking for $ac_word... " >&6; }
10004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10005  $as_echo_n "(cached) " >&6
10006else
10007  if test -n "$ac_ct_RANLIB"; then
10008  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10009else
10010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10011for as_dir in $PATH
10012do
10013  IFS=$as_save_IFS
10014  test -z "$as_dir" && as_dir=.
10015  for ac_exec_ext in '' $ac_executable_extensions; do
10016  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10017    ac_cv_prog_ac_ct_RANLIB="ranlib"
10018    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10019    break 2
10020  fi
10021done
10022done
10023IFS=$as_save_IFS
10024
10025fi
10026fi
10027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10028if test -n "$ac_ct_RANLIB"; then
10029  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10030$as_echo "$ac_ct_RANLIB" >&6; }
10031else
10032  { $as_echo "$as_me:$LINENO: result: no" >&5
10033$as_echo "no" >&6; }
10034fi
10035
10036  if test "x$ac_ct_RANLIB" = x; then
10037    RANLIB=":"
10038  else
10039    case $cross_compiling:$ac_tool_warned in
10040yes:)
10041{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10043ac_tool_warned=yes ;;
10044esac
10045    RANLIB=$ac_ct_RANLIB
10046  fi
10047else
10048  RANLIB="$ac_cv_prog_RANLIB"
10049fi
10050
10051if test -n "$ac_tool_prefix"; then
10052  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10053set dummy ${ac_tool_prefix}strip; ac_word=$2
10054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10055$as_echo_n "checking for $ac_word... " >&6; }
10056if test "${ac_cv_prog_STRIP+set}" = set; then
10057  $as_echo_n "(cached) " >&6
10058else
10059  if test -n "$STRIP"; then
10060  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10061else
10062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10063for as_dir in $PATH
10064do
10065  IFS=$as_save_IFS
10066  test -z "$as_dir" && as_dir=.
10067  for ac_exec_ext in '' $ac_executable_extensions; do
10068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10069    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10070    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10071    break 2
10072  fi
10073done
10074done
10075IFS=$as_save_IFS
10076
10077fi
10078fi
10079STRIP=$ac_cv_prog_STRIP
10080if test -n "$STRIP"; then
10081  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
10082$as_echo "$STRIP" >&6; }
10083else
10084  { $as_echo "$as_me:$LINENO: result: no" >&5
10085$as_echo "no" >&6; }
10086fi
10087
10088
10089fi
10090if test -z "$ac_cv_prog_STRIP"; then
10091  ac_ct_STRIP=$STRIP
10092  # Extract the first word of "strip", so it can be a program name with args.
10093set dummy strip; ac_word=$2
10094{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10095$as_echo_n "checking for $ac_word... " >&6; }
10096if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10097  $as_echo_n "(cached) " >&6
10098else
10099  if test -n "$ac_ct_STRIP"; then
10100  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10101else
10102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10103for as_dir in $PATH
10104do
10105  IFS=$as_save_IFS
10106  test -z "$as_dir" && as_dir=.
10107  for ac_exec_ext in '' $ac_executable_extensions; do
10108  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10109    ac_cv_prog_ac_ct_STRIP="strip"
10110    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10111    break 2
10112  fi
10113done
10114done
10115IFS=$as_save_IFS
10116
10117fi
10118fi
10119ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10120if test -n "$ac_ct_STRIP"; then
10121  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10122$as_echo "$ac_ct_STRIP" >&6; }
10123else
10124  { $as_echo "$as_me:$LINENO: result: no" >&5
10125$as_echo "no" >&6; }
10126fi
10127
10128  if test "x$ac_ct_STRIP" = x; then
10129    STRIP=":"
10130  else
10131    case $cross_compiling:$ac_tool_warned in
10132yes:)
10133{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10135ac_tool_warned=yes ;;
10136esac
10137    STRIP=$ac_ct_STRIP
10138  fi
10139else
10140  STRIP="$ac_cv_prog_STRIP"
10141fi
10142
10143
10144old_CC="$CC"
10145old_CFLAGS="$CFLAGS"
10146
10147# Set sane defaults for various variables
10148test -z "$AR" && AR=ar
10149test -z "$AR_FLAGS" && AR_FLAGS=cru
10150test -z "$AS" && AS=as
10151test -z "$CC" && CC=cc
10152test -z "$LTCC" && LTCC=$CC
10153test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10154test -z "$DLLTOOL" && DLLTOOL=dlltool
10155test -z "$LD" && LD=ld
10156test -z "$LN_S" && LN_S="ln -s"
10157test -z "$MAGIC_CMD" && MAGIC_CMD=file
10158test -z "$NM" && NM=nm
10159test -z "$SED" && SED=sed
10160test -z "$OBJDUMP" && OBJDUMP=objdump
10161test -z "$RANLIB" && RANLIB=:
10162test -z "$STRIP" && STRIP=:
10163test -z "$ac_objext" && ac_objext=o
10164
10165# Determine commands to create old-style static archives.
10166old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10167old_postinstall_cmds='chmod 644 $oldlib'
10168old_postuninstall_cmds=
10169
10170if test -n "$RANLIB"; then
10171  case $host_os in
10172  openbsd*)
10173    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10174    ;;
10175  *)
10176    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10177    ;;
10178  esac
10179  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10180fi
10181
10182for cc_temp in $compiler""; do
10183  case $cc_temp in
10184    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10185    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10186    \-*) ;;
10187    *) break;;
10188  esac
10189done
10190cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10191
10192
10193# Only perform the check for file, if the check method requires it
10194case $deplibs_check_method in
10195file_magic*)
10196  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10197    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10198$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10199if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10200  $as_echo_n "(cached) " >&6
10201else
10202  case $MAGIC_CMD in
10203[\\/*] |  ?:[\\/]*)
10204  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10205  ;;
10206*)
10207  lt_save_MAGIC_CMD="$MAGIC_CMD"
10208  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10209  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10210  for ac_dir in $ac_dummy; do
10211    IFS="$lt_save_ifs"
10212    test -z "$ac_dir" && ac_dir=.
10213    if test -f $ac_dir/${ac_tool_prefix}file; then
10214      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10215      if test -n "$file_magic_test_file"; then
10216	case $deplibs_check_method in
10217	"file_magic "*)
10218	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10219	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10220	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10221	    $EGREP "$file_magic_regex" > /dev/null; then
10222	    :
10223	  else
10224	    cat <<EOF 1>&2
10225
10226*** Warning: the command libtool uses to detect shared libraries,
10227*** $file_magic_cmd, produces output that libtool cannot recognize.
10228*** The result is that libtool may fail to recognize shared libraries
10229*** as such.  This will affect the creation of libtool libraries that
10230*** depend on shared libraries, but programs linked with such libtool
10231*** libraries will work regardless of this problem.  Nevertheless, you
10232*** may want to report the problem to your system manager and/or to
10233*** bug-libtool@gnu.org
10234
10235EOF
10236	  fi ;;
10237	esac
10238      fi
10239      break
10240    fi
10241  done
10242  IFS="$lt_save_ifs"
10243  MAGIC_CMD="$lt_save_MAGIC_CMD"
10244  ;;
10245esac
10246fi
10247
10248MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10249if test -n "$MAGIC_CMD"; then
10250  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10251$as_echo "$MAGIC_CMD" >&6; }
10252else
10253  { $as_echo "$as_me:$LINENO: result: no" >&5
10254$as_echo "no" >&6; }
10255fi
10256
10257if test -z "$lt_cv_path_MAGIC_CMD"; then
10258  if test -n "$ac_tool_prefix"; then
10259    { $as_echo "$as_me:$LINENO: checking for file" >&5
10260$as_echo_n "checking for file... " >&6; }
10261if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10262  $as_echo_n "(cached) " >&6
10263else
10264  case $MAGIC_CMD in
10265[\\/*] |  ?:[\\/]*)
10266  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10267  ;;
10268*)
10269  lt_save_MAGIC_CMD="$MAGIC_CMD"
10270  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10271  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10272  for ac_dir in $ac_dummy; do
10273    IFS="$lt_save_ifs"
10274    test -z "$ac_dir" && ac_dir=.
10275    if test -f $ac_dir/file; then
10276      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10277      if test -n "$file_magic_test_file"; then
10278	case $deplibs_check_method in
10279	"file_magic "*)
10280	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10281	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10282	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10283	    $EGREP "$file_magic_regex" > /dev/null; then
10284	    :
10285	  else
10286	    cat <<EOF 1>&2
10287
10288*** Warning: the command libtool uses to detect shared libraries,
10289*** $file_magic_cmd, produces output that libtool cannot recognize.
10290*** The result is that libtool may fail to recognize shared libraries
10291*** as such.  This will affect the creation of libtool libraries that
10292*** depend on shared libraries, but programs linked with such libtool
10293*** libraries will work regardless of this problem.  Nevertheless, you
10294*** may want to report the problem to your system manager and/or to
10295*** bug-libtool@gnu.org
10296
10297EOF
10298	  fi ;;
10299	esac
10300      fi
10301      break
10302    fi
10303  done
10304  IFS="$lt_save_ifs"
10305  MAGIC_CMD="$lt_save_MAGIC_CMD"
10306  ;;
10307esac
10308fi
10309
10310MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10311if test -n "$MAGIC_CMD"; then
10312  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10313$as_echo "$MAGIC_CMD" >&6; }
10314else
10315  { $as_echo "$as_me:$LINENO: result: no" >&5
10316$as_echo "no" >&6; }
10317fi
10318
10319  else
10320    MAGIC_CMD=:
10321  fi
10322fi
10323
10324  fi
10325  ;;
10326esac
10327
10328enable_dlopen=no
10329enable_win32_dll=yes
10330
10331# Check whether --enable-libtool-lock was given.
10332if test "${enable_libtool_lock+set}" = set; then
10333  enableval=$enable_libtool_lock;
10334fi
10335
10336test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10337
10338
10339# Check whether --with-pic was given.
10340if test "${with_pic+set}" = set; then
10341  withval=$with_pic; pic_mode="$withval"
10342else
10343  pic_mode=default
10344fi
10345
10346test -z "$pic_mode" && pic_mode=default
10347
10348# Use C for the default configuration in the libtool script
10349tagname=
10350lt_save_CC="$CC"
10351ac_ext=c
10352ac_cpp='$CPP $CPPFLAGS'
10353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10355ac_compiler_gnu=$ac_cv_c_compiler_gnu
10356
10357
10358# Source file extension for C test sources.
10359ac_ext=c
10360
10361# Object file extension for compiled C test sources.
10362objext=o
10363objext=$objext
10364
10365# Code to be used in simple compile tests
10366lt_simple_compile_test_code="int some_variable = 0;"
10367
10368# Code to be used in simple link tests
10369lt_simple_link_test_code='int main(){return(0);}'
10370
10371
10372# If no C compiler was specified, use CC.
10373LTCC=${LTCC-"$CC"}
10374
10375# If no C compiler flags were specified, use CFLAGS.
10376LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10377
10378# Allow CC to be a program name with arguments.
10379compiler=$CC
10380
10381
10382# save warnings/boilerplate of simple test code
10383ac_outfile=conftest.$ac_objext
10384echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10385eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10386_lt_compiler_boilerplate=`cat conftest.err`
10387$rm conftest*
10388
10389ac_outfile=conftest.$ac_objext
10390echo "$lt_simple_link_test_code" >conftest.$ac_ext
10391eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10392_lt_linker_boilerplate=`cat conftest.err`
10393$rm conftest*
10394
10395
10396## CAVEAT EMPTOR:
10397## There is no encapsulation within the following macros, do not change
10398## the running order or otherwise move them around unless you know exactly
10399## what you are doing...
10400
10401lt_prog_compiler_no_builtin_flag=
10402
10403if test "$GCC" = yes; then
10404  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10405
10406
10407{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10408$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10409if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10410  $as_echo_n "(cached) " >&6
10411else
10412  lt_cv_prog_compiler_rtti_exceptions=no
10413  ac_outfile=conftest.$ac_objext
10414   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10415   lt_compiler_flag="-fno-rtti -fno-exceptions"
10416   # Insert the option either (1) after the last *FLAGS variable, or
10417   # (2) before a word containing "conftest.", or (3) at the end.
10418   # Note that $ac_compile itself does not contain backslashes and begins
10419   # with a dollar sign (not a hyphen), so the echo should work correctly.
10420   # The option is referenced via a variable to avoid confusing sed.
10421   lt_compile=`echo "$ac_compile" | $SED \
10422   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10423   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10424   -e 's:$: $lt_compiler_flag:'`
10425   (eval echo "\"\$as_me:10425: $lt_compile\"" >&5)
10426   (eval "$lt_compile" 2>conftest.err)
10427   ac_status=$?
10428   cat conftest.err >&5
10429   echo "$as_me:10429: \$? = $ac_status" >&5
10430   if (exit $ac_status) && test -s "$ac_outfile"; then
10431     # The compiler can only warn and ignore the option if not recognized
10432     # So say no if there are warnings other than the usual output.
10433     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10434     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10435     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10436       lt_cv_prog_compiler_rtti_exceptions=yes
10437     fi
10438   fi
10439   $rm conftest*
10440
10441fi
10442{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10443$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10444
10445if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10446    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10447else
10448    :
10449fi
10450
10451fi
10452
10453lt_prog_compiler_wl=
10454lt_prog_compiler_pic=
10455lt_prog_compiler_static=
10456
10457{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10458$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10459
10460  if test "$GCC" = yes; then
10461    lt_prog_compiler_wl='-Wl,'
10462    lt_prog_compiler_static='-static'
10463
10464    case $host_os in
10465      aix*)
10466      # All AIX code is PIC.
10467      if test "$host_cpu" = ia64; then
10468	# AIX 5 now supports IA64 processor
10469	lt_prog_compiler_static='-Bstatic'
10470      fi
10471      ;;
10472
10473    amigaos*)
10474      # FIXME: we need at least 68020 code to build shared libraries, but
10475      # adding the `-m68020' flag to GCC prevents building anything better,
10476      # like `-m68040'.
10477      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10478      ;;
10479
10480    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10481      # PIC is the default for these OSes.
10482      ;;
10483
10484    mingw* | cygwin* | pw32* | os2*)
10485      # This hack is so that the source file can tell whether it is being
10486      # built for inclusion in a dll (and should export symbols for example).
10487      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10488      # (--disable-auto-import) libraries
10489      lt_prog_compiler_pic='-DDLL_EXPORT'
10490      ;;
10491
10492    darwin* | rhapsody*)
10493      # PIC is the default on this platform
10494      # Common symbols not allowed in MH_DYLIB files
10495      lt_prog_compiler_pic='-fno-common'
10496      ;;
10497
10498    interix[3-9]*)
10499      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10500      # Instead, we relocate shared libraries at runtime.
10501      ;;
10502
10503    msdosdjgpp*)
10504      # Just because we use GCC doesn't mean we suddenly get shared libraries
10505      # on systems that don't support them.
10506      lt_prog_compiler_can_build_shared=no
10507      enable_shared=no
10508      ;;
10509
10510    sysv4*MP*)
10511      if test -d /usr/nec; then
10512	lt_prog_compiler_pic=-Kconform_pic
10513      fi
10514      ;;
10515
10516    hpux*)
10517      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10518      # not for PA HP-UX.
10519      case $host_cpu in
10520      hppa*64*|ia64*)
10521	# +Z the default
10522	;;
10523      *)
10524	lt_prog_compiler_pic='-fPIC'
10525	;;
10526      esac
10527      ;;
10528
10529    *)
10530      lt_prog_compiler_pic='-fPIC'
10531      ;;
10532    esac
10533  else
10534    # PORTME Check for flag to pass linker flags through the system compiler.
10535    case $host_os in
10536    aix*)
10537      lt_prog_compiler_wl='-Wl,'
10538      if test "$host_cpu" = ia64; then
10539	# AIX 5 now supports IA64 processor
10540	lt_prog_compiler_static='-Bstatic'
10541      else
10542	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10543      fi
10544      ;;
10545      darwin*)
10546        # PIC is the default on this platform
10547        # Common symbols not allowed in MH_DYLIB files
10548       case $cc_basename in
10549         xlc*)
10550         lt_prog_compiler_pic='-qnocommon'
10551         lt_prog_compiler_wl='-Wl,'
10552         ;;
10553       esac
10554       ;;
10555
10556    mingw* | cygwin* | pw32* | os2*)
10557      # This hack is so that the source file can tell whether it is being
10558      # built for inclusion in a dll (and should export symbols for example).
10559      lt_prog_compiler_pic='-DDLL_EXPORT'
10560      ;;
10561
10562    hpux9* | hpux10* | hpux11*)
10563      lt_prog_compiler_wl='-Wl,'
10564      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10565      # not for PA HP-UX.
10566      case $host_cpu in
10567      hppa*64*|ia64*)
10568	# +Z the default
10569	;;
10570      *)
10571	lt_prog_compiler_pic='+Z'
10572	;;
10573      esac
10574      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10575      lt_prog_compiler_static='${wl}-a ${wl}archive'
10576      ;;
10577
10578    irix5* | irix6* | nonstopux*)
10579      lt_prog_compiler_wl='-Wl,'
10580      # PIC (with -KPIC) is the default.
10581      lt_prog_compiler_static='-non_shared'
10582      ;;
10583
10584    newsos6)
10585      lt_prog_compiler_pic='-KPIC'
10586      lt_prog_compiler_static='-Bstatic'
10587      ;;
10588
10589    linux* | k*bsd*-gnu)
10590      case $cc_basename in
10591      icc* | ecc*)
10592	lt_prog_compiler_wl='-Wl,'
10593	lt_prog_compiler_pic='-KPIC'
10594	lt_prog_compiler_static='-static'
10595        ;;
10596      pgcc* | pgf77* | pgf90* | pgf95*)
10597        # Portland Group compilers (*not* the Pentium gcc compiler,
10598	# which looks to be a dead project)
10599	lt_prog_compiler_wl='-Wl,'
10600	lt_prog_compiler_pic='-fpic'
10601	lt_prog_compiler_static='-Bstatic'
10602        ;;
10603      ccc*)
10604        lt_prog_compiler_wl='-Wl,'
10605        # All Alpha code is PIC.
10606        lt_prog_compiler_static='-non_shared'
10607        ;;
10608      como)
10609        lt_prog_compiler_wl='-lopt='
10610        ;;
10611      *)
10612        case `$CC -V 2>&1 | sed 5q` in
10613	*Sun\ C*)
10614	  # Sun C 5.9
10615	  lt_prog_compiler_pic='-KPIC'
10616	  lt_prog_compiler_static='-Bstatic'
10617	  lt_prog_compiler_wl='-Wl,'
10618	  ;;
10619	*Sun\ F*)
10620	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10621	  lt_prog_compiler_pic='-KPIC'
10622	  lt_prog_compiler_static='-Bstatic'
10623	  lt_prog_compiler_wl=''
10624	  ;;
10625	esac
10626	;;
10627      esac
10628      ;;
10629
10630    osf3* | osf4* | osf5*)
10631      lt_prog_compiler_wl='-Wl,'
10632      # All OSF/1 code is PIC.
10633      lt_prog_compiler_static='-non_shared'
10634      ;;
10635
10636    rdos*)
10637      lt_prog_compiler_static='-non_shared'
10638      ;;
10639
10640    solaris*)
10641      lt_prog_compiler_pic='-KPIC'
10642      lt_prog_compiler_static='-Bstatic'
10643      case $cc_basename in
10644      f77* | f90* | f95*)
10645	lt_prog_compiler_wl='-Qoption ld ';;
10646      *)
10647	lt_prog_compiler_wl='-Wl,';;
10648      esac
10649      ;;
10650
10651    sunos4*)
10652      lt_prog_compiler_wl='-Qoption ld '
10653      lt_prog_compiler_pic='-PIC'
10654      lt_prog_compiler_static='-Bstatic'
10655      ;;
10656
10657    sysv4 | sysv4.2uw2* | sysv4.3*)
10658      lt_prog_compiler_wl='-Wl,'
10659      lt_prog_compiler_pic='-KPIC'
10660      lt_prog_compiler_static='-Bstatic'
10661      ;;
10662
10663    sysv4*MP*)
10664      if test -d /usr/nec ;then
10665	lt_prog_compiler_pic='-Kconform_pic'
10666	lt_prog_compiler_static='-Bstatic'
10667      fi
10668      ;;
10669
10670    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10671      lt_prog_compiler_wl='-Wl,'
10672      lt_prog_compiler_pic='-KPIC'
10673      lt_prog_compiler_static='-Bstatic'
10674      ;;
10675
10676    unicos*)
10677      lt_prog_compiler_wl='-Wl,'
10678      lt_prog_compiler_can_build_shared=no
10679      ;;
10680
10681    uts4*)
10682      lt_prog_compiler_pic='-pic'
10683      lt_prog_compiler_static='-Bstatic'
10684      ;;
10685
10686    *)
10687      lt_prog_compiler_can_build_shared=no
10688      ;;
10689    esac
10690  fi
10691
10692{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10693$as_echo "$lt_prog_compiler_pic" >&6; }
10694
10695#
10696# Check to make sure the PIC flag actually works.
10697#
10698if test -n "$lt_prog_compiler_pic"; then
10699
10700{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10701$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10702if test "${lt_prog_compiler_pic_works+set}" = set; then
10703  $as_echo_n "(cached) " >&6
10704else
10705  lt_prog_compiler_pic_works=no
10706  ac_outfile=conftest.$ac_objext
10707   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10708   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10709   # Insert the option either (1) after the last *FLAGS variable, or
10710   # (2) before a word containing "conftest.", or (3) at the end.
10711   # Note that $ac_compile itself does not contain backslashes and begins
10712   # with a dollar sign (not a hyphen), so the echo should work correctly.
10713   # The option is referenced via a variable to avoid confusing sed.
10714   lt_compile=`echo "$ac_compile" | $SED \
10715   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10716   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10717   -e 's:$: $lt_compiler_flag:'`
10718   (eval echo "\"\$as_me:10718: $lt_compile\"" >&5)
10719   (eval "$lt_compile" 2>conftest.err)
10720   ac_status=$?
10721   cat conftest.err >&5
10722   echo "$as_me:10722: \$? = $ac_status" >&5
10723   if (exit $ac_status) && test -s "$ac_outfile"; then
10724     # The compiler can only warn and ignore the option if not recognized
10725     # So say no if there are warnings other than the usual output.
10726     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10727     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10728     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10729       lt_prog_compiler_pic_works=yes
10730     fi
10731   fi
10732   $rm conftest*
10733
10734fi
10735{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10736$as_echo "$lt_prog_compiler_pic_works" >&6; }
10737
10738if test x"$lt_prog_compiler_pic_works" = xyes; then
10739    case $lt_prog_compiler_pic in
10740     "" | " "*) ;;
10741     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10742     esac
10743else
10744    lt_prog_compiler_pic=
10745     lt_prog_compiler_can_build_shared=no
10746fi
10747
10748fi
10749case $host_os in
10750  # For platforms which do not support PIC, -DPIC is meaningless:
10751  *djgpp*)
10752    lt_prog_compiler_pic=
10753    ;;
10754  *)
10755    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10756    ;;
10757esac
10758
10759#
10760# Check to make sure the static flag actually works.
10761#
10762wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10763{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10764$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10765if test "${lt_prog_compiler_static_works+set}" = set; then
10766  $as_echo_n "(cached) " >&6
10767else
10768  lt_prog_compiler_static_works=no
10769   save_LDFLAGS="$LDFLAGS"
10770   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10771   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10772   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10773     # The linker can only warn and ignore the option if not recognized
10774     # So say no if there are warnings
10775     if test -s conftest.err; then
10776       # Append any errors to the config.log.
10777       cat conftest.err 1>&5
10778       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10779       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10780       if diff conftest.exp conftest.er2 >/dev/null; then
10781         lt_prog_compiler_static_works=yes
10782       fi
10783     else
10784       lt_prog_compiler_static_works=yes
10785     fi
10786   fi
10787   $rm conftest*
10788   LDFLAGS="$save_LDFLAGS"
10789
10790fi
10791{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10792$as_echo "$lt_prog_compiler_static_works" >&6; }
10793
10794if test x"$lt_prog_compiler_static_works" = xyes; then
10795    :
10796else
10797    lt_prog_compiler_static=
10798fi
10799
10800
10801{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10802$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10803if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10804  $as_echo_n "(cached) " >&6
10805else
10806  lt_cv_prog_compiler_c_o=no
10807   $rm -r conftest 2>/dev/null
10808   mkdir conftest
10809   cd conftest
10810   mkdir out
10811   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10812
10813   lt_compiler_flag="-o out/conftest2.$ac_objext"
10814   # Insert the option either (1) after the last *FLAGS variable, or
10815   # (2) before a word containing "conftest.", or (3) at the end.
10816   # Note that $ac_compile itself does not contain backslashes and begins
10817   # with a dollar sign (not a hyphen), so the echo should work correctly.
10818   lt_compile=`echo "$ac_compile" | $SED \
10819   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10820   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10821   -e 's:$: $lt_compiler_flag:'`
10822   (eval echo "\"\$as_me:10822: $lt_compile\"" >&5)
10823   (eval "$lt_compile" 2>out/conftest.err)
10824   ac_status=$?
10825   cat out/conftest.err >&5
10826   echo "$as_me:10826: \$? = $ac_status" >&5
10827   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10828   then
10829     # The compiler can only warn and ignore the option if not recognized
10830     # So say no if there are warnings
10831     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10832     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10833     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10834       lt_cv_prog_compiler_c_o=yes
10835     fi
10836   fi
10837   chmod u+w . 2>&5
10838   $rm conftest*
10839   # SGI C++ compiler will create directory out/ii_files/ for
10840   # template instantiation
10841   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10842   $rm out/* && rmdir out
10843   cd ..
10844   rmdir conftest
10845   $rm conftest*
10846
10847fi
10848{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10849$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10850
10851
10852hard_links="nottested"
10853if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10854  # do not overwrite the value of need_locks provided by the user
10855  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10856$as_echo_n "checking if we can lock with hard links... " >&6; }
10857  hard_links=yes
10858  $rm conftest*
10859  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10860  touch conftest.a
10861  ln conftest.a conftest.b 2>&5 || hard_links=no
10862  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10863  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10864$as_echo "$hard_links" >&6; }
10865  if test "$hard_links" = no; then
10866    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10867$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10868    need_locks=warn
10869  fi
10870else
10871  need_locks=no
10872fi
10873
10874{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10875$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10876
10877  runpath_var=
10878  allow_undefined_flag=
10879  enable_shared_with_static_runtimes=no
10880  archive_cmds=
10881  archive_expsym_cmds=
10882  old_archive_From_new_cmds=
10883  old_archive_from_expsyms_cmds=
10884  export_dynamic_flag_spec=
10885  whole_archive_flag_spec=
10886  thread_safe_flag_spec=
10887  hardcode_libdir_flag_spec=
10888  hardcode_libdir_flag_spec_ld=
10889  hardcode_libdir_separator=
10890  hardcode_direct=no
10891  hardcode_minus_L=no
10892  hardcode_shlibpath_var=unsupported
10893  link_all_deplibs=unknown
10894  hardcode_automatic=no
10895  module_cmds=
10896  module_expsym_cmds=
10897  always_export_symbols=no
10898  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10899  # include_expsyms should be a list of space-separated symbols to be *always*
10900  # included in the symbol list
10901  include_expsyms=
10902  # exclude_expsyms can be an extended regexp of symbols to exclude
10903  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10904  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10905  # as well as any symbol that contains `d'.
10906  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10907  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10908  # platforms (ab)use it in PIC code, but their linkers get confused if
10909  # the symbol is explicitly referenced.  Since portable code cannot
10910  # rely on this symbol name, it's probably fine to never include it in
10911  # preloaded symbol tables.
10912  extract_expsyms_cmds=
10913  # Just being paranoid about ensuring that cc_basename is set.
10914  for cc_temp in $compiler""; do
10915  case $cc_temp in
10916    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10917    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10918    \-*) ;;
10919    *) break;;
10920  esac
10921done
10922cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10923
10924  case $host_os in
10925  cygwin* | mingw* | pw32*)
10926    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10927    # When not using gcc, we currently assume that we are using
10928    # Microsoft Visual C++.
10929    if test "$GCC" != yes; then
10930      with_gnu_ld=no
10931    fi
10932    ;;
10933  interix*)
10934    # we just hope/assume this is gcc and not c89 (= MSVC++)
10935    with_gnu_ld=yes
10936    ;;
10937  openbsd*)
10938    with_gnu_ld=no
10939    ;;
10940  esac
10941
10942  ld_shlibs=yes
10943  if test "$with_gnu_ld" = yes; then
10944    # If archive_cmds runs LD, not CC, wlarc should be empty
10945    wlarc='${wl}'
10946
10947    # Set some defaults for GNU ld with shared library support. These
10948    # are reset later if shared libraries are not supported. Putting them
10949    # here allows them to be overridden if necessary.
10950    runpath_var=LD_RUN_PATH
10951    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10952    export_dynamic_flag_spec='${wl}--export-dynamic'
10953    # ancient GNU ld didn't support --whole-archive et. al.
10954    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10955	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10956      else
10957  	whole_archive_flag_spec=
10958    fi
10959    supports_anon_versioning=no
10960    case `$LD -v 2>/dev/null` in
10961      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10962      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10963      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10964      *\ 2.11.*) ;; # other 2.11 versions
10965      *) supports_anon_versioning=yes ;;
10966    esac
10967
10968    # See if GNU ld supports shared libraries.
10969    case $host_os in
10970    aix3* | aix4* | aix5*)
10971      # On AIX/PPC, the GNU linker is very broken
10972      if test "$host_cpu" != ia64; then
10973	ld_shlibs=no
10974	cat <<EOF 1>&2
10975
10976*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10977*** to be unable to reliably create shared libraries on AIX.
10978*** Therefore, libtool is disabling shared libraries support.  If you
10979*** really care for shared libraries, you may want to modify your PATH
10980*** so that a non-GNU linker is found, and then restart.
10981
10982EOF
10983      fi
10984      ;;
10985
10986    amigaos*)
10987      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)'
10988      hardcode_libdir_flag_spec='-L$libdir'
10989      hardcode_minus_L=yes
10990
10991      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10992      # that the semantics of dynamic libraries on AmigaOS, at least up
10993      # to version 4, is to share data among multiple programs linked
10994      # with the same dynamic library.  Since this doesn't match the
10995      # behavior of shared libraries on other platforms, we can't use
10996      # them.
10997      ld_shlibs=no
10998      ;;
10999
11000    beos*)
11001      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11002	allow_undefined_flag=unsupported
11003	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11004	# support --undefined.  This deserves some investigation.  FIXME
11005	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11006      else
11007	ld_shlibs=no
11008      fi
11009      ;;
11010
11011    cygwin* | mingw* | pw32*)
11012      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11013      # as there is no search path for DLLs.
11014      hardcode_libdir_flag_spec='-L$libdir'
11015      allow_undefined_flag=unsupported
11016      always_export_symbols=no
11017      enable_shared_with_static_runtimes=yes
11018      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11019
11020      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11021        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11022	# If the export-symbols file already is a .def file (1st line
11023	# is EXPORTS), use it as is; otherwise, prepend...
11024	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11025	  cp $export_symbols $output_objdir/$soname.def;
11026	else
11027	  echo EXPORTS > $output_objdir/$soname.def;
11028	  cat $export_symbols >> $output_objdir/$soname.def;
11029	fi~
11030	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11031      else
11032	ld_shlibs=no
11033      fi
11034      ;;
11035
11036    interix[3-9]*)
11037      hardcode_direct=no
11038      hardcode_shlibpath_var=no
11039      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11040      export_dynamic_flag_spec='${wl}-E'
11041      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11042      # Instead, shared libraries are loaded at an image base (0x10000000 by
11043      # default) and relocated if they conflict, which is a slow very memory
11044      # consuming and fragmenting process.  To avoid this, we pick a random,
11045      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11046      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11047      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11048      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'
11049      ;;
11050
11051    gnu* | linux* | k*bsd*-gnu)
11052      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11053	tmp_addflag=
11054	case $cc_basename,$host_cpu in
11055	pgcc*)				# Portland Group C compiler
11056	  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'
11057	  tmp_addflag=' $pic_flag'
11058	  ;;
11059	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11060	  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'
11061	  tmp_addflag=' $pic_flag -Mnomain' ;;
11062	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
11063	  tmp_addflag=' -i_dynamic' ;;
11064	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11065	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11066	ifc* | ifort*)			# Intel Fortran compiler
11067	  tmp_addflag=' -nofor_main' ;;
11068	esac
11069	case `$CC -V 2>&1 | sed 5q` in
11070	*Sun\ C*)			# Sun C 5.9
11071	  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'
11072	  tmp_sharedflag='-G' ;;
11073	*Sun\ F*)			# Sun Fortran 8.3
11074	  tmp_sharedflag='-G' ;;
11075	*)
11076	  tmp_sharedflag='-shared' ;;
11077	esac
11078	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079
11080	if test $supports_anon_versioning = yes; then
11081	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11082  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11083  $echo "local: *; };" >> $output_objdir/$libname.ver~
11084	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11085	fi
11086      else
11087	ld_shlibs=no
11088      fi
11089      ;;
11090
11091    netbsd*)
11092      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11093	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11094	wlarc=
11095      else
11096	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11097	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11098      fi
11099      ;;
11100
11101    solaris*)
11102      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11103	ld_shlibs=no
11104	cat <<EOF 1>&2
11105
11106*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11107*** create shared libraries on Solaris systems.  Therefore, libtool
11108*** is disabling shared libraries support.  We urge you to upgrade GNU
11109*** binutils to release 2.9.1 or newer.  Another option is to modify
11110*** your PATH or compiler configuration so that the native linker is
11111*** used, and then restart.
11112
11113EOF
11114      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11115	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11116	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11117      else
11118	ld_shlibs=no
11119      fi
11120      ;;
11121
11122    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11123      case `$LD -v 2>&1` in
11124        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11125	ld_shlibs=no
11126	cat <<_LT_EOF 1>&2
11127
11128*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11129*** reliably create shared libraries on SCO systems.  Therefore, libtool
11130*** is disabling shared libraries support.  We urge you to upgrade GNU
11131*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11132*** your PATH or compiler configuration so that the native linker is
11133*** used, and then restart.
11134
11135_LT_EOF
11136	;;
11137	*)
11138	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11139	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11140	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11141	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11142	  else
11143	    ld_shlibs=no
11144	  fi
11145	;;
11146      esac
11147      ;;
11148
11149    sunos4*)
11150      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11151      wlarc=
11152      hardcode_direct=yes
11153      hardcode_shlibpath_var=no
11154      ;;
11155
11156    *)
11157      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11158	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11159	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11160      else
11161	ld_shlibs=no
11162      fi
11163      ;;
11164    esac
11165
11166    if test "$ld_shlibs" = no; then
11167      runpath_var=
11168      hardcode_libdir_flag_spec=
11169      export_dynamic_flag_spec=
11170      whole_archive_flag_spec=
11171    fi
11172  else
11173    # PORTME fill in a description of your system's linker (not GNU ld)
11174    case $host_os in
11175    aix3*)
11176      allow_undefined_flag=unsupported
11177      always_export_symbols=yes
11178      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'
11179      # Note: this linker hardcodes the directories in LIBPATH if there
11180      # are no directories specified by -L.
11181      hardcode_minus_L=yes
11182      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11183	# Neither direct hardcoding nor static linking is supported with a
11184	# broken collect2.
11185	hardcode_direct=unsupported
11186      fi
11187      ;;
11188
11189    aix4* | aix5*)
11190      if test "$host_cpu" = ia64; then
11191	# On IA64, the linker does run time linking by default, so we don't
11192	# have to do anything special.
11193	aix_use_runtimelinking=no
11194	exp_sym_flag='-Bexport'
11195	no_entry_flag=""
11196      else
11197	# If we're using GNU nm, then we don't want the "-C" option.
11198	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11199	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11200	  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'
11201	else
11202	  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'
11203	fi
11204	aix_use_runtimelinking=no
11205
11206	# Test if we are trying to use run time linking or normal
11207	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11208	# need to do runtime linking.
11209	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11210	  for ld_flag in $LDFLAGS; do
11211  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11212  	    aix_use_runtimelinking=yes
11213  	    break
11214  	  fi
11215	  done
11216	  ;;
11217	esac
11218
11219	exp_sym_flag='-bexport'
11220	no_entry_flag='-bnoentry'
11221      fi
11222
11223      # When large executables or shared objects are built, AIX ld can
11224      # have problems creating the table of contents.  If linking a library
11225      # or program results in "error TOC overflow" add -mminimal-toc to
11226      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11227      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11228
11229      archive_cmds=''
11230      hardcode_direct=yes
11231      hardcode_libdir_separator=':'
11232      link_all_deplibs=yes
11233
11234      if test "$GCC" = yes; then
11235	case $host_os in aix4.[012]|aix4.[012].*)
11236	# We only want to do this on AIX 4.2 and lower, the check
11237	# below for broken collect2 doesn't work under 4.3+
11238	  collect2name=`${CC} -print-prog-name=collect2`
11239	  if test -f "$collect2name" && \
11240  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11241	  then
11242  	  # We have reworked collect2
11243  	  :
11244	  else
11245  	  # We have old collect2
11246  	  hardcode_direct=unsupported
11247  	  # It fails to find uninstalled libraries when the uninstalled
11248  	  # path is not listed in the libpath.  Setting hardcode_minus_L
11249  	  # to unsupported forces relinking
11250  	  hardcode_minus_L=yes
11251  	  hardcode_libdir_flag_spec='-L$libdir'
11252  	  hardcode_libdir_separator=
11253	  fi
11254	  ;;
11255	esac
11256	shared_flag='-shared'
11257	if test "$aix_use_runtimelinking" = yes; then
11258	  shared_flag="$shared_flag "'${wl}-G'
11259	fi
11260      else
11261	# not using gcc
11262	if test "$host_cpu" = ia64; then
11263  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11264  	# chokes on -Wl,-G. The following line is correct:
11265	  shared_flag='-G'
11266	else
11267	  if test "$aix_use_runtimelinking" = yes; then
11268	    shared_flag='${wl}-G'
11269	  else
11270	    shared_flag='${wl}-bM:SRE'
11271	  fi
11272	fi
11273      fi
11274
11275      # It seems that -bexpall does not export symbols beginning with
11276      # underscore (_), so it is better to generate a list of symbols to export.
11277      always_export_symbols=yes
11278      if test "$aix_use_runtimelinking" = yes; then
11279	# Warning - without using the other runtime loading flags (-brtl),
11280	# -berok will link without error, but may produce a broken library.
11281	allow_undefined_flag='-berok'
11282       # Determine the default libpath from the value encoded in an empty executable.
11283       cat >conftest.$ac_ext <<_ACEOF
11284/* confdefs.h.  */
11285_ACEOF
11286cat confdefs.h >>conftest.$ac_ext
11287cat >>conftest.$ac_ext <<_ACEOF
11288/* end confdefs.h.  */
11289
11290int
11291main ()
11292{
11293
11294  ;
11295  return 0;
11296}
11297_ACEOF
11298rm -f conftest.$ac_objext conftest$ac_exeext
11299if { (ac_try="$ac_link"
11300case "(($ac_try" in
11301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302  *) ac_try_echo=$ac_try;;
11303esac
11304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11305$as_echo "$ac_try_echo") >&5
11306  (eval "$ac_link") 2>conftest.er1
11307  ac_status=$?
11308  grep -v '^ *+' conftest.er1 >conftest.err
11309  rm -f conftest.er1
11310  cat conftest.err >&5
11311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312  (exit $ac_status); } && {
11313	 test -z "$ac_c_werror_flag" ||
11314	 test ! -s conftest.err
11315       } && test -s conftest$ac_exeext && {
11316	 test "$cross_compiling" = yes ||
11317	 $as_test_x conftest$ac_exeext
11318       }; then
11319
11320lt_aix_libpath_sed='
11321    /Import File Strings/,/^$/ {
11322	/^0/ {
11323	    s/^0  *\(.*\)$/\1/
11324	    p
11325	}
11326    }'
11327aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11328# Check for a 64-bit object if we didn't find anything.
11329if test -z "$aix_libpath"; then
11330  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11331fi
11332else
11333  $as_echo "$as_me: failed program was:" >&5
11334sed 's/^/| /' conftest.$ac_ext >&5
11335
11336
11337fi
11338
11339rm -rf conftest.dSYM
11340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11341      conftest$ac_exeext conftest.$ac_ext
11342if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11343
11344       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11345	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"
11346       else
11347	if test "$host_cpu" = ia64; then
11348	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11349	  allow_undefined_flag="-z nodefs"
11350	  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"
11351	else
11352	 # Determine the default libpath from the value encoded in an empty executable.
11353	 cat >conftest.$ac_ext <<_ACEOF
11354/* confdefs.h.  */
11355_ACEOF
11356cat confdefs.h >>conftest.$ac_ext
11357cat >>conftest.$ac_ext <<_ACEOF
11358/* end confdefs.h.  */
11359
11360int
11361main ()
11362{
11363
11364  ;
11365  return 0;
11366}
11367_ACEOF
11368rm -f conftest.$ac_objext conftest$ac_exeext
11369if { (ac_try="$ac_link"
11370case "(($ac_try" in
11371  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11372  *) ac_try_echo=$ac_try;;
11373esac
11374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11375$as_echo "$ac_try_echo") >&5
11376  (eval "$ac_link") 2>conftest.er1
11377  ac_status=$?
11378  grep -v '^ *+' conftest.er1 >conftest.err
11379  rm -f conftest.er1
11380  cat conftest.err >&5
11381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382  (exit $ac_status); } && {
11383	 test -z "$ac_c_werror_flag" ||
11384	 test ! -s conftest.err
11385       } && test -s conftest$ac_exeext && {
11386	 test "$cross_compiling" = yes ||
11387	 $as_test_x conftest$ac_exeext
11388       }; then
11389
11390lt_aix_libpath_sed='
11391    /Import File Strings/,/^$/ {
11392	/^0/ {
11393	    s/^0  *\(.*\)$/\1/
11394	    p
11395	}
11396    }'
11397aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11398# Check for a 64-bit object if we didn't find anything.
11399if test -z "$aix_libpath"; then
11400  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11401fi
11402else
11403  $as_echo "$as_me: failed program was:" >&5
11404sed 's/^/| /' conftest.$ac_ext >&5
11405
11406
11407fi
11408
11409rm -rf conftest.dSYM
11410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11411      conftest$ac_exeext conftest.$ac_ext
11412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11413
11414	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11415	  # Warning - without using the other run time loading flags,
11416	  # -berok will link without error, but may produce a broken library.
11417	  no_undefined_flag=' ${wl}-bernotok'
11418	  allow_undefined_flag=' ${wl}-berok'
11419	  # Exported symbols can be pulled into shared objects from archives
11420	  whole_archive_flag_spec='$convenience'
11421	  archive_cmds_need_lc=yes
11422	  # This is similar to how AIX traditionally builds its shared libraries.
11423	  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'
11424	fi
11425      fi
11426      ;;
11427
11428    amigaos*)
11429      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)'
11430      hardcode_libdir_flag_spec='-L$libdir'
11431      hardcode_minus_L=yes
11432      # see comment about different semantics on the GNU ld section
11433      ld_shlibs=no
11434      ;;
11435
11436    bsdi[45]*)
11437      export_dynamic_flag_spec=-rdynamic
11438      ;;
11439
11440    cygwin* | mingw* | pw32*)
11441      # When not using gcc, we currently assume that we are using
11442      # Microsoft Visual C++.
11443      # hardcode_libdir_flag_spec is actually meaningless, as there is
11444      # no search path for DLLs.
11445      hardcode_libdir_flag_spec=' '
11446      allow_undefined_flag=unsupported
11447      # Tell ltmain to make .lib files, not .a files.
11448      libext=lib
11449      # Tell ltmain to make .dll files, not .so files.
11450      shrext_cmds=".dll"
11451      # FIXME: Setting linknames here is a bad hack.
11452      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11453      # The linker will automatically build a .lib file if we build a DLL.
11454      old_archive_From_new_cmds='true'
11455      # FIXME: Should let the user specify the lib program.
11456      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11457      fix_srcfile_path='`cygpath -w "$srcfile"`'
11458      enable_shared_with_static_runtimes=yes
11459      ;;
11460
11461    darwin* | rhapsody*)
11462      case $host_os in
11463        rhapsody* | darwin1.[012])
11464         allow_undefined_flag='${wl}-undefined ${wl}suppress'
11465         ;;
11466       *) # Darwin 1.3 on
11467         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11468           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11469         else
11470           case ${MACOSX_DEPLOYMENT_TARGET} in
11471             10.[012])
11472               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11473               ;;
11474             10.*)
11475               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11476               ;;
11477           esac
11478         fi
11479         ;;
11480      esac
11481      archive_cmds_need_lc=no
11482      hardcode_direct=no
11483      hardcode_automatic=yes
11484      hardcode_shlibpath_var=unsupported
11485      whole_archive_flag_spec=''
11486      link_all_deplibs=yes
11487    if test "$GCC" = yes ; then
11488    	output_verbose_link_cmd='echo'
11489        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11490      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11491      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11492      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}'
11493      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}'
11494    else
11495      case $cc_basename in
11496        xlc*)
11497         output_verbose_link_cmd='echo'
11498         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11499         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11500          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11501         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}'
11502          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}'
11503          ;;
11504       *)
11505         ld_shlibs=no
11506          ;;
11507      esac
11508    fi
11509      ;;
11510
11511    dgux*)
11512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11513      hardcode_libdir_flag_spec='-L$libdir'
11514      hardcode_shlibpath_var=no
11515      ;;
11516
11517    freebsd1*)
11518      ld_shlibs=no
11519      ;;
11520
11521    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11522    # support.  Future versions do this automatically, but an explicit c++rt0.o
11523    # does not break anything, and helps significantly (at the cost of a little
11524    # extra space).
11525    freebsd2.2*)
11526      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11527      hardcode_libdir_flag_spec='-R$libdir'
11528      hardcode_direct=yes
11529      hardcode_shlibpath_var=no
11530      ;;
11531
11532    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11533    freebsd2*)
11534      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11535      hardcode_direct=yes
11536      hardcode_minus_L=yes
11537      hardcode_shlibpath_var=no
11538      ;;
11539
11540    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11541    freebsd* | dragonfly*)
11542      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11543      hardcode_libdir_flag_spec='-R$libdir'
11544      hardcode_direct=yes
11545      hardcode_shlibpath_var=no
11546      ;;
11547
11548    hpux9*)
11549      if test "$GCC" = yes; then
11550	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'
11551      else
11552	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'
11553      fi
11554      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11555      hardcode_libdir_separator=:
11556      hardcode_direct=yes
11557
11558      # hardcode_minus_L: Not really in the search PATH,
11559      # but as the default location of the library.
11560      hardcode_minus_L=yes
11561      export_dynamic_flag_spec='${wl}-E'
11562      ;;
11563
11564    hpux10*)
11565      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11566	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11567      else
11568	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11569      fi
11570      if test "$with_gnu_ld" = no; then
11571	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11572	hardcode_libdir_separator=:
11573
11574	hardcode_direct=yes
11575	export_dynamic_flag_spec='${wl}-E'
11576
11577	# hardcode_minus_L: Not really in the search PATH,
11578	# but as the default location of the library.
11579	hardcode_minus_L=yes
11580      fi
11581      ;;
11582
11583    hpux11*)
11584      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11585	case $host_cpu in
11586	hppa*64*)
11587	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11588	  ;;
11589	ia64*)
11590	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11591	  ;;
11592	*)
11593	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11594	  ;;
11595	esac
11596      else
11597	case $host_cpu in
11598	hppa*64*)
11599	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11600	  ;;
11601	ia64*)
11602	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11603	  ;;
11604	*)
11605	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11606	  ;;
11607	esac
11608      fi
11609      if test "$with_gnu_ld" = no; then
11610	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11611	hardcode_libdir_separator=:
11612
11613	case $host_cpu in
11614	hppa*64*|ia64*)
11615	  hardcode_libdir_flag_spec_ld='+b $libdir'
11616	  hardcode_direct=no
11617	  hardcode_shlibpath_var=no
11618	  ;;
11619	*)
11620	  hardcode_direct=yes
11621	  export_dynamic_flag_spec='${wl}-E'
11622
11623	  # hardcode_minus_L: Not really in the search PATH,
11624	  # but as the default location of the library.
11625	  hardcode_minus_L=yes
11626	  ;;
11627	esac
11628      fi
11629      ;;
11630
11631    irix5* | irix6* | nonstopux*)
11632      if test "$GCC" = yes; then
11633	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'
11634      else
11635	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'
11636	hardcode_libdir_flag_spec_ld='-rpath $libdir'
11637      fi
11638      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11639      hardcode_libdir_separator=:
11640      link_all_deplibs=yes
11641      ;;
11642
11643    netbsd*)
11644      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11645	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11646      else
11647	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11648      fi
11649      hardcode_libdir_flag_spec='-R$libdir'
11650      hardcode_direct=yes
11651      hardcode_shlibpath_var=no
11652      ;;
11653
11654    newsos6)
11655      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11656      hardcode_direct=yes
11657      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11658      hardcode_libdir_separator=:
11659      hardcode_shlibpath_var=no
11660      ;;
11661
11662    openbsd*)
11663      if test -f /usr/libexec/ld.so; then
11664	hardcode_direct=yes
11665	hardcode_shlibpath_var=no
11666	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11667	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11668	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11669	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11670	  export_dynamic_flag_spec='${wl}-E'
11671	else
11672	  case $host_os in
11673	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11674	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11675	     hardcode_libdir_flag_spec='-R$libdir'
11676	     ;;
11677	   *)
11678	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11679	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11680	     ;;
11681	  esac
11682        fi
11683      else
11684	ld_shlibs=no
11685      fi
11686      ;;
11687
11688    os2*)
11689      hardcode_libdir_flag_spec='-L$libdir'
11690      hardcode_minus_L=yes
11691      allow_undefined_flag=unsupported
11692      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'
11693      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11694      ;;
11695
11696    osf3*)
11697      if test "$GCC" = yes; then
11698	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11699	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'
11700      else
11701	allow_undefined_flag=' -expect_unresolved \*'
11702	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'
11703      fi
11704      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11705      hardcode_libdir_separator=:
11706      ;;
11707
11708    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11709      if test "$GCC" = yes; then
11710	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11711	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'
11712	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11713      else
11714	allow_undefined_flag=' -expect_unresolved \*'
11715	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'
11716	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11717	$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'
11718
11719	# Both c and cxx compiler support -rpath directly
11720	hardcode_libdir_flag_spec='-rpath $libdir'
11721      fi
11722      hardcode_libdir_separator=:
11723      ;;
11724
11725    solaris*)
11726      no_undefined_flag=' -z text'
11727      if test "$GCC" = yes; then
11728	wlarc='${wl}'
11729	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11730	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11731	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11732      else
11733	wlarc=''
11734	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11735	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11736  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11737      fi
11738      hardcode_libdir_flag_spec='-R$libdir'
11739      hardcode_shlibpath_var=no
11740      case $host_os in
11741      solaris2.[0-5] | solaris2.[0-5].*) ;;
11742      *)
11743	# The compiler driver will combine and reorder linker options,
11744	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11745	# but is careful enough not to reorder.
11746 	# Supported since Solaris 2.6 (maybe 2.5.1?)
11747	if test "$GCC" = yes; then
11748	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11749	else
11750	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11751	fi
11752	;;
11753      esac
11754      link_all_deplibs=yes
11755      ;;
11756
11757    sunos4*)
11758      if test "x$host_vendor" = xsequent; then
11759	# Use $CC to link under sequent, because it throws in some extra .o
11760	# files that make .init and .fini sections work.
11761	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11762      else
11763	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11764      fi
11765      hardcode_libdir_flag_spec='-L$libdir'
11766      hardcode_direct=yes
11767      hardcode_minus_L=yes
11768      hardcode_shlibpath_var=no
11769      ;;
11770
11771    sysv4)
11772      case $host_vendor in
11773	sni)
11774	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11775	  hardcode_direct=yes # is this really true???
11776	;;
11777	siemens)
11778	  ## LD is ld it makes a PLAMLIB
11779	  ## CC just makes a GrossModule.
11780	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11781	  reload_cmds='$CC -r -o $output$reload_objs'
11782	  hardcode_direct=no
11783        ;;
11784	motorola)
11785	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11786	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11787	;;
11788      esac
11789      runpath_var='LD_RUN_PATH'
11790      hardcode_shlibpath_var=no
11791      ;;
11792
11793    sysv4.3*)
11794      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11795      hardcode_shlibpath_var=no
11796      export_dynamic_flag_spec='-Bexport'
11797      ;;
11798
11799    sysv4*MP*)
11800      if test -d /usr/nec; then
11801	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11802	hardcode_shlibpath_var=no
11803	runpath_var=LD_RUN_PATH
11804	hardcode_runpath_var=yes
11805	ld_shlibs=yes
11806      fi
11807      ;;
11808
11809    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11810      no_undefined_flag='${wl}-z,text'
11811      archive_cmds_need_lc=no
11812      hardcode_shlibpath_var=no
11813      runpath_var='LD_RUN_PATH'
11814
11815      if test "$GCC" = yes; then
11816	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11817	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11818      else
11819	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11820	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11821      fi
11822      ;;
11823
11824    sysv5* | sco3.2v5* | sco5v6*)
11825      # Note: We can NOT use -z defs as we might desire, because we do not
11826      # link with -lc, and that would cause any symbols used from libc to
11827      # always be unresolved, which means just about no library would
11828      # ever link correctly.  If we're not using GNU ld we use -z text
11829      # though, which does catch some bad symbols but isn't as heavy-handed
11830      # as -z defs.
11831      no_undefined_flag='${wl}-z,text'
11832      allow_undefined_flag='${wl}-z,nodefs'
11833      archive_cmds_need_lc=no
11834      hardcode_shlibpath_var=no
11835      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11836      hardcode_libdir_separator=':'
11837      link_all_deplibs=yes
11838      export_dynamic_flag_spec='${wl}-Bexport'
11839      runpath_var='LD_RUN_PATH'
11840
11841      if test "$GCC" = yes; then
11842	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11843	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11844      else
11845	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11846	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11847      fi
11848      ;;
11849
11850    uts4*)
11851      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11852      hardcode_libdir_flag_spec='-L$libdir'
11853      hardcode_shlibpath_var=no
11854      ;;
11855
11856    *)
11857      ld_shlibs=no
11858      ;;
11859    esac
11860  fi
11861
11862{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11863$as_echo "$ld_shlibs" >&6; }
11864test "$ld_shlibs" = no && can_build_shared=no
11865
11866#
11867# Do we need to explicitly link libc?
11868#
11869case "x$archive_cmds_need_lc" in
11870x|xyes)
11871  # Assume -lc should be added
11872  archive_cmds_need_lc=yes
11873
11874  if test "$enable_shared" = yes && test "$GCC" = yes; then
11875    case $archive_cmds in
11876    *'~'*)
11877      # FIXME: we may have to deal with multi-command sequences.
11878      ;;
11879    '$CC '*)
11880      # Test whether the compiler implicitly links with -lc since on some
11881      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11882      # to ld, don't add -lc before -lgcc.
11883      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11884$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11885      $rm conftest*
11886      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11887
11888      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889  (eval $ac_compile) 2>&5
11890  ac_status=$?
11891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892  (exit $ac_status); } 2>conftest.err; then
11893        soname=conftest
11894        lib=conftest
11895        libobjs=conftest.$ac_objext
11896        deplibs=
11897        wl=$lt_prog_compiler_wl
11898	pic_flag=$lt_prog_compiler_pic
11899        compiler_flags=-v
11900        linker_flags=-v
11901        verstring=
11902        output_objdir=.
11903        libname=conftest
11904        lt_save_allow_undefined_flag=$allow_undefined_flag
11905        allow_undefined_flag=
11906        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11907  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11908  ac_status=$?
11909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910  (exit $ac_status); }
11911        then
11912	  archive_cmds_need_lc=no
11913        else
11914	  archive_cmds_need_lc=yes
11915        fi
11916        allow_undefined_flag=$lt_save_allow_undefined_flag
11917      else
11918        cat conftest.err 1>&5
11919      fi
11920      $rm conftest*
11921      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11922$as_echo "$archive_cmds_need_lc" >&6; }
11923      ;;
11924    esac
11925  fi
11926  ;;
11927esac
11928
11929{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11930$as_echo_n "checking dynamic linker characteristics... " >&6; }
11931library_names_spec=
11932libname_spec='lib$name'
11933soname_spec=
11934shrext_cmds=".so"
11935postinstall_cmds=
11936postuninstall_cmds=
11937finish_cmds=
11938finish_eval=
11939shlibpath_var=
11940shlibpath_overrides_runpath=unknown
11941version_type=none
11942dynamic_linker="$host_os ld.so"
11943sys_lib_dlsearch_path_spec="/lib /usr/lib"
11944
11945if test "$GCC" = yes; then
11946  case $host_os in
11947    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11948    *) lt_awk_arg="/^libraries:/" ;;
11949  esac
11950  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11951  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11952    # if the path contains ";" then we assume it to be the separator
11953    # otherwise default to the standard path separator (i.e. ":") - it is
11954    # assumed that no part of a normal pathname contains ";" but that should
11955    # okay in the real world where ";" in dirpaths is itself problematic.
11956    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11957  else
11958    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11959  fi
11960  # Ok, now we have the path, separated by spaces, we can step through it
11961  # and add multilib dir if necessary.
11962  lt_tmp_lt_search_path_spec=
11963  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11964  for lt_sys_path in $lt_search_path_spec; do
11965    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11966      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11967    else
11968      test -d "$lt_sys_path" && \
11969	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11970    fi
11971  done
11972  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11973BEGIN {RS=" "; FS="/|\n";} {
11974  lt_foo="";
11975  lt_count=0;
11976  for (lt_i = NF; lt_i > 0; lt_i--) {
11977    if ($lt_i != "" && $lt_i != ".") {
11978      if ($lt_i == "..") {
11979        lt_count++;
11980      } else {
11981        if (lt_count == 0) {
11982          lt_foo="/" $lt_i lt_foo;
11983        } else {
11984          lt_count--;
11985        }
11986      }
11987    }
11988  }
11989  if (lt_foo != "") { lt_freq[lt_foo]++; }
11990  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11991}'`
11992  sys_lib_search_path_spec=`echo $lt_search_path_spec`
11993else
11994  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11995fi
11996need_lib_prefix=unknown
11997hardcode_into_libs=no
11998
11999# when you set need_version to no, make sure it does not cause -set_version
12000# flags to be left without arguments
12001need_version=unknown
12002
12003case $host_os in
12004aix3*)
12005  version_type=linux
12006  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12007  shlibpath_var=LIBPATH
12008
12009  # AIX 3 has no versioning support, so we append a major version to the name.
12010  soname_spec='${libname}${release}${shared_ext}$major'
12011  ;;
12012
12013aix4* | aix5*)
12014  version_type=linux
12015  need_lib_prefix=no
12016  need_version=no
12017  hardcode_into_libs=yes
12018  if test "$host_cpu" = ia64; then
12019    # AIX 5 supports IA64
12020    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12021    shlibpath_var=LD_LIBRARY_PATH
12022  else
12023    # With GCC up to 2.95.x, collect2 would create an import file
12024    # for dependence libraries.  The import file would start with
12025    # the line `#! .'.  This would cause the generated library to
12026    # depend on `.', always an invalid library.  This was fixed in
12027    # development snapshots of GCC prior to 3.0.
12028    case $host_os in
12029      aix4 | aix4.[01] | aix4.[01].*)
12030      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12031	   echo ' yes '
12032	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12033	:
12034      else
12035	can_build_shared=no
12036      fi
12037      ;;
12038    esac
12039    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12040    # soname into executable. Probably we can add versioning support to
12041    # collect2, so additional links can be useful in future.
12042    if test "$aix_use_runtimelinking" = yes; then
12043      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12044      # instead of lib<name>.a to let people know that these are not
12045      # typical AIX shared libraries.
12046      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047    else
12048      # We preserve .a as extension for shared libraries through AIX4.2
12049      # and later when we are not doing run time linking.
12050      library_names_spec='${libname}${release}.a $libname.a'
12051      soname_spec='${libname}${release}${shared_ext}$major'
12052    fi
12053    shlibpath_var=LIBPATH
12054  fi
12055  ;;
12056
12057amigaos*)
12058  library_names_spec='$libname.ixlibrary $libname.a'
12059  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12060  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'
12061  ;;
12062
12063beos*)
12064  library_names_spec='${libname}${shared_ext}'
12065  dynamic_linker="$host_os ld.so"
12066  shlibpath_var=LIBRARY_PATH
12067  ;;
12068
12069bsdi[45]*)
12070  version_type=linux
12071  need_version=no
12072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073  soname_spec='${libname}${release}${shared_ext}$major'
12074  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12075  shlibpath_var=LD_LIBRARY_PATH
12076  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12077  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12078  # the default ld.so.conf also contains /usr/contrib/lib and
12079  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12080  # libtool to hard-code these into programs
12081  ;;
12082
12083cygwin* | mingw* | pw32*)
12084  version_type=windows
12085  shrext_cmds=".dll"
12086  need_version=no
12087  need_lib_prefix=no
12088
12089  case $GCC,$host_os in
12090  yes,cygwin* | yes,mingw* | yes,pw32*)
12091    library_names_spec='$libname.dll.a'
12092    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12093    postinstall_cmds='base_file=`basename \${file}`~
12094      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12095      dldir=$destdir/`dirname \$dlpath`~
12096      test -d \$dldir || mkdir -p \$dldir~
12097      $install_prog $dir/$dlname \$dldir/$dlname~
12098      chmod a+x \$dldir/$dlname'
12099    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12100      dlpath=$dir/\$dldll~
12101       $rm \$dlpath'
12102    shlibpath_overrides_runpath=yes
12103
12104    case $host_os in
12105    cygwin*)
12106      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12107      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12108      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12109      ;;
12110    mingw*)
12111      # MinGW DLLs use traditional 'lib' prefix
12112      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12113      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12114      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12115        # It is most probably a Windows format PATH printed by
12116        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12117        # path with ; separators, and with drive letters. We can handle the
12118        # drive letters (cygwin fileutils understands them), so leave them,
12119        # especially as we might pass files found there to a mingw objdump,
12120        # which wouldn't understand a cygwinified path. Ahh.
12121        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12122      else
12123        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12124      fi
12125      ;;
12126    pw32*)
12127      # pw32 DLLs use 'pw' prefix rather than 'lib'
12128      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12129      ;;
12130    esac
12131    ;;
12132
12133  *)
12134    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12135    ;;
12136  esac
12137  dynamic_linker='Win32 ld.exe'
12138  # FIXME: first we should search . and the directory the executable is in
12139  shlibpath_var=PATH
12140  ;;
12141
12142darwin* | rhapsody*)
12143  dynamic_linker="$host_os dyld"
12144  version_type=darwin
12145  need_lib_prefix=no
12146  need_version=no
12147  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12148  soname_spec='${libname}${release}${major}$shared_ext'
12149  shlibpath_overrides_runpath=yes
12150  shlibpath_var=DYLD_LIBRARY_PATH
12151  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12152
12153  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12154  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12155  ;;
12156
12157dgux*)
12158  version_type=linux
12159  need_lib_prefix=no
12160  need_version=no
12161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12162  soname_spec='${libname}${release}${shared_ext}$major'
12163  shlibpath_var=LD_LIBRARY_PATH
12164  ;;
12165
12166freebsd1*)
12167  dynamic_linker=no
12168  ;;
12169
12170freebsd* | dragonfly*)
12171  # DragonFly does not have aout.  When/if they implement a new
12172  # versioning mechanism, adjust this.
12173  if test -x /usr/bin/objformat; then
12174    objformat=`/usr/bin/objformat`
12175  else
12176    case $host_os in
12177    freebsd[123]*) objformat=aout ;;
12178    *) objformat=elf ;;
12179    esac
12180  fi
12181  version_type=freebsd-$objformat
12182  case $version_type in
12183    freebsd-elf*)
12184      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12185      need_version=no
12186      need_lib_prefix=no
12187      ;;
12188    freebsd-*)
12189      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12190      need_version=yes
12191      ;;
12192  esac
12193  shlibpath_var=LD_LIBRARY_PATH
12194  case $host_os in
12195  freebsd2*)
12196    shlibpath_overrides_runpath=yes
12197    ;;
12198  freebsd3.[01]* | freebsdelf3.[01]*)
12199    shlibpath_overrides_runpath=yes
12200    hardcode_into_libs=yes
12201    ;;
12202  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12203  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12204    shlibpath_overrides_runpath=no
12205    hardcode_into_libs=yes
12206    ;;
12207  *) # from 4.6 on, and DragonFly
12208    shlibpath_overrides_runpath=yes
12209    hardcode_into_libs=yes
12210    ;;
12211  esac
12212  ;;
12213
12214gnu*)
12215  version_type=linux
12216  need_lib_prefix=no
12217  need_version=no
12218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12219  soname_spec='${libname}${release}${shared_ext}$major'
12220  shlibpath_var=LD_LIBRARY_PATH
12221  hardcode_into_libs=yes
12222  ;;
12223
12224hpux9* | hpux10* | hpux11*)
12225  # Give a soname corresponding to the major version so that dld.sl refuses to
12226  # link against other versions.
12227  version_type=sunos
12228  need_lib_prefix=no
12229  need_version=no
12230  case $host_cpu in
12231  ia64*)
12232    shrext_cmds='.so'
12233    hardcode_into_libs=yes
12234    dynamic_linker="$host_os dld.so"
12235    shlibpath_var=LD_LIBRARY_PATH
12236    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12237    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12238    soname_spec='${libname}${release}${shared_ext}$major'
12239    if test "X$HPUX_IA64_MODE" = X32; then
12240      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12241    else
12242      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12243    fi
12244    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12245    ;;
12246   hppa*64*)
12247     shrext_cmds='.sl'
12248     hardcode_into_libs=yes
12249     dynamic_linker="$host_os dld.sl"
12250     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12251     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12253     soname_spec='${libname}${release}${shared_ext}$major'
12254     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12255     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12256     ;;
12257   *)
12258    shrext_cmds='.sl'
12259    dynamic_linker="$host_os dld.sl"
12260    shlibpath_var=SHLIB_PATH
12261    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12262    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12263    soname_spec='${libname}${release}${shared_ext}$major'
12264    ;;
12265  esac
12266  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12267  postinstall_cmds='chmod 555 $lib'
12268  ;;
12269
12270interix[3-9]*)
12271  version_type=linux
12272  need_lib_prefix=no
12273  need_version=no
12274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12275  soname_spec='${libname}${release}${shared_ext}$major'
12276  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12277  shlibpath_var=LD_LIBRARY_PATH
12278  shlibpath_overrides_runpath=no
12279  hardcode_into_libs=yes
12280  ;;
12281
12282irix5* | irix6* | nonstopux*)
12283  case $host_os in
12284    nonstopux*) version_type=nonstopux ;;
12285    *)
12286	if test "$lt_cv_prog_gnu_ld" = yes; then
12287		version_type=linux
12288	else
12289		version_type=irix
12290	fi ;;
12291  esac
12292  need_lib_prefix=no
12293  need_version=no
12294  soname_spec='${libname}${release}${shared_ext}$major'
12295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12296  case $host_os in
12297  irix5* | nonstopux*)
12298    libsuff= shlibsuff=
12299    ;;
12300  *)
12301    case $LD in # libtool.m4 will add one of these switches to LD
12302    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12303      libsuff= shlibsuff= libmagic=32-bit;;
12304    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12305      libsuff=32 shlibsuff=N32 libmagic=N32;;
12306    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12307      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12308    *) libsuff= shlibsuff= libmagic=never-match;;
12309    esac
12310    ;;
12311  esac
12312  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12313  shlibpath_overrides_runpath=no
12314  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12315  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12316  hardcode_into_libs=yes
12317  ;;
12318
12319# No shared lib support for Linux oldld, aout, or coff.
12320linux*oldld* | linux*aout* | linux*coff*)
12321  dynamic_linker=no
12322  ;;
12323
12324# This must be Linux ELF.
12325linux* | k*bsd*-gnu)
12326  version_type=linux
12327  need_lib_prefix=no
12328  need_version=no
12329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330  soname_spec='${libname}${release}${shared_ext}$major'
12331  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12332  shlibpath_var=LD_LIBRARY_PATH
12333  shlibpath_overrides_runpath=no
12334  # This implies no fast_install, which is unacceptable.
12335  # Some rework will be needed to allow for fast_install
12336  # before this can be enabled.
12337  hardcode_into_libs=yes
12338
12339  # Append ld.so.conf contents to the search path
12340  if test -f /etc/ld.so.conf; then
12341    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' ' '`
12342    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12343  fi
12344
12345  # We used to test for /lib/ld.so.1 and disable shared libraries on
12346  # powerpc, because MkLinux only supported shared libraries with the
12347  # GNU dynamic linker.  Since this was broken with cross compilers,
12348  # most powerpc-linux boxes support dynamic linking these days and
12349  # people can always --disable-shared, the test was removed, and we
12350  # assume the GNU/Linux dynamic linker is in use.
12351  dynamic_linker='GNU/Linux ld.so'
12352  ;;
12353
12354netbsd*)
12355  version_type=sunos
12356  need_lib_prefix=no
12357  need_version=no
12358  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12359    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12360    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12361    dynamic_linker='NetBSD (a.out) ld.so'
12362  else
12363    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12364    soname_spec='${libname}${release}${shared_ext}$major'
12365    dynamic_linker='NetBSD ld.elf_so'
12366  fi
12367  shlibpath_var=LD_LIBRARY_PATH
12368  shlibpath_overrides_runpath=yes
12369  hardcode_into_libs=yes
12370  ;;
12371
12372newsos6)
12373  version_type=linux
12374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12375  shlibpath_var=LD_LIBRARY_PATH
12376  shlibpath_overrides_runpath=yes
12377  ;;
12378
12379nto-qnx*)
12380  version_type=linux
12381  need_lib_prefix=no
12382  need_version=no
12383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384  soname_spec='${libname}${release}${shared_ext}$major'
12385  shlibpath_var=LD_LIBRARY_PATH
12386  shlibpath_overrides_runpath=yes
12387  ;;
12388
12389openbsd*)
12390  version_type=sunos
12391  sys_lib_dlsearch_path_spec="/usr/lib"
12392  need_lib_prefix=no
12393  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12394  case $host_os in
12395    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12396    *)                         need_version=no  ;;
12397  esac
12398  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12399  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12400  shlibpath_var=LD_LIBRARY_PATH
12401  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12402    case $host_os in
12403      openbsd2.[89] | openbsd2.[89].*)
12404	shlibpath_overrides_runpath=no
12405	;;
12406      *)
12407	shlibpath_overrides_runpath=yes
12408	;;
12409      esac
12410  else
12411    shlibpath_overrides_runpath=yes
12412  fi
12413  ;;
12414
12415os2*)
12416  libname_spec='$name'
12417  shrext_cmds=".dll"
12418  need_lib_prefix=no
12419  library_names_spec='$libname${shared_ext} $libname.a'
12420  dynamic_linker='OS/2 ld.exe'
12421  shlibpath_var=LIBPATH
12422  ;;
12423
12424osf3* | osf4* | osf5*)
12425  version_type=osf
12426  need_lib_prefix=no
12427  need_version=no
12428  soname_spec='${libname}${release}${shared_ext}$major'
12429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12430  shlibpath_var=LD_LIBRARY_PATH
12431  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12432  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12433  ;;
12434
12435rdos*)
12436  dynamic_linker=no
12437  ;;
12438
12439solaris*)
12440  version_type=linux
12441  need_lib_prefix=no
12442  need_version=no
12443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12444  soname_spec='${libname}${release}${shared_ext}$major'
12445  shlibpath_var=LD_LIBRARY_PATH
12446  shlibpath_overrides_runpath=yes
12447  hardcode_into_libs=yes
12448  # ldd complains unless libraries are executable
12449  postinstall_cmds='chmod +x $lib'
12450  ;;
12451
12452sunos4*)
12453  version_type=sunos
12454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12455  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12456  shlibpath_var=LD_LIBRARY_PATH
12457  shlibpath_overrides_runpath=yes
12458  if test "$with_gnu_ld" = yes; then
12459    need_lib_prefix=no
12460  fi
12461  need_version=yes
12462  ;;
12463
12464sysv4 | sysv4.3*)
12465  version_type=linux
12466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12467  soname_spec='${libname}${release}${shared_ext}$major'
12468  shlibpath_var=LD_LIBRARY_PATH
12469  case $host_vendor in
12470    sni)
12471      shlibpath_overrides_runpath=no
12472      need_lib_prefix=no
12473      export_dynamic_flag_spec='${wl}-Blargedynsym'
12474      runpath_var=LD_RUN_PATH
12475      ;;
12476    siemens)
12477      need_lib_prefix=no
12478      ;;
12479    motorola)
12480      need_lib_prefix=no
12481      need_version=no
12482      shlibpath_overrides_runpath=no
12483      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12484      ;;
12485  esac
12486  ;;
12487
12488sysv4*MP*)
12489  if test -d /usr/nec ;then
12490    version_type=linux
12491    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12492    soname_spec='$libname${shared_ext}.$major'
12493    shlibpath_var=LD_LIBRARY_PATH
12494  fi
12495  ;;
12496
12497sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12498  version_type=freebsd-elf
12499  need_lib_prefix=no
12500  need_version=no
12501  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12502  soname_spec='${libname}${release}${shared_ext}$major'
12503  shlibpath_var=LD_LIBRARY_PATH
12504  hardcode_into_libs=yes
12505  if test "$with_gnu_ld" = yes; then
12506    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12507    shlibpath_overrides_runpath=no
12508  else
12509    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12510    shlibpath_overrides_runpath=yes
12511    case $host_os in
12512      sco3.2v5*)
12513        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12514	;;
12515    esac
12516  fi
12517  sys_lib_dlsearch_path_spec='/usr/lib'
12518  ;;
12519
12520uts4*)
12521  version_type=linux
12522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12523  soname_spec='${libname}${release}${shared_ext}$major'
12524  shlibpath_var=LD_LIBRARY_PATH
12525  ;;
12526
12527*)
12528  dynamic_linker=no
12529  ;;
12530esac
12531{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12532$as_echo "$dynamic_linker" >&6; }
12533test "$dynamic_linker" = no && can_build_shared=no
12534
12535variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12536if test "$GCC" = yes; then
12537  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12538fi
12539
12540{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12541$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12542hardcode_action=
12543if test -n "$hardcode_libdir_flag_spec" || \
12544   test -n "$runpath_var" || \
12545   test "X$hardcode_automatic" = "Xyes" ; then
12546
12547  # We can hardcode non-existant directories.
12548  if test "$hardcode_direct" != no &&
12549     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12550     # have to relink, otherwise we might link with an installed library
12551     # when we should be linking with a yet-to-be-installed one
12552     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12553     test "$hardcode_minus_L" != no; then
12554    # Linking always hardcodes the temporary library directory.
12555    hardcode_action=relink
12556  else
12557    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12558    hardcode_action=immediate
12559  fi
12560else
12561  # We cannot hardcode anything, or else we can only hardcode existing
12562  # directories.
12563  hardcode_action=unsupported
12564fi
12565{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12566$as_echo "$hardcode_action" >&6; }
12567
12568if test "$hardcode_action" = relink; then
12569  # Fast installation is not supported
12570  enable_fast_install=no
12571elif test "$shlibpath_overrides_runpath" = yes ||
12572     test "$enable_shared" = no; then
12573  # Fast installation is not necessary
12574  enable_fast_install=needless
12575fi
12576
12577striplib=
12578old_striplib=
12579{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12580$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12581if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12582  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12583  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12584  { $as_echo "$as_me:$LINENO: result: yes" >&5
12585$as_echo "yes" >&6; }
12586else
12587# FIXME - insert some real tests, host_os isn't really good enough
12588  case $host_os in
12589   darwin*)
12590       if test -n "$STRIP" ; then
12591         striplib="$STRIP -x"
12592         old_striplib="$STRIP -S"
12593         { $as_echo "$as_me:$LINENO: result: yes" >&5
12594$as_echo "yes" >&6; }
12595       else
12596  { $as_echo "$as_me:$LINENO: result: no" >&5
12597$as_echo "no" >&6; }
12598fi
12599       ;;
12600   *)
12601  { $as_echo "$as_me:$LINENO: result: no" >&5
12602$as_echo "no" >&6; }
12603    ;;
12604  esac
12605fi
12606
12607if test "x$enable_dlopen" != xyes; then
12608  enable_dlopen=unknown
12609  enable_dlopen_self=unknown
12610  enable_dlopen_self_static=unknown
12611else
12612  lt_cv_dlopen=no
12613  lt_cv_dlopen_libs=
12614
12615  case $host_os in
12616  beos*)
12617    lt_cv_dlopen="load_add_on"
12618    lt_cv_dlopen_libs=
12619    lt_cv_dlopen_self=yes
12620    ;;
12621
12622  mingw* | pw32*)
12623    lt_cv_dlopen="LoadLibrary"
12624    lt_cv_dlopen_libs=
12625   ;;
12626
12627  cygwin*)
12628    lt_cv_dlopen="dlopen"
12629    lt_cv_dlopen_libs=
12630   ;;
12631
12632  darwin*)
12633  # if libdl is installed we need to link against it
12634    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12635$as_echo_n "checking for dlopen in -ldl... " >&6; }
12636if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12637  $as_echo_n "(cached) " >&6
12638else
12639  ac_check_lib_save_LIBS=$LIBS
12640LIBS="-ldl  $LIBS"
12641cat >conftest.$ac_ext <<_ACEOF
12642/* confdefs.h.  */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h.  */
12647
12648/* Override any GCC internal prototype to avoid an error.
12649   Use char because int might match the return type of a GCC
12650   builtin and then its argument prototype would still apply.  */
12651#ifdef __cplusplus
12652extern "C"
12653#endif
12654char dlopen ();
12655int
12656main ()
12657{
12658return dlopen ();
12659  ;
12660  return 0;
12661}
12662_ACEOF
12663rm -f conftest.$ac_objext conftest$ac_exeext
12664if { (ac_try="$ac_link"
12665case "(($ac_try" in
12666  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667  *) ac_try_echo=$ac_try;;
12668esac
12669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12670$as_echo "$ac_try_echo") >&5
12671  (eval "$ac_link") 2>conftest.er1
12672  ac_status=$?
12673  grep -v '^ *+' conftest.er1 >conftest.err
12674  rm -f conftest.er1
12675  cat conftest.err >&5
12676  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677  (exit $ac_status); } && {
12678	 test -z "$ac_c_werror_flag" ||
12679	 test ! -s conftest.err
12680       } && test -s conftest$ac_exeext && {
12681	 test "$cross_compiling" = yes ||
12682	 $as_test_x conftest$ac_exeext
12683       }; then
12684  ac_cv_lib_dl_dlopen=yes
12685else
12686  $as_echo "$as_me: failed program was:" >&5
12687sed 's/^/| /' conftest.$ac_ext >&5
12688
12689	ac_cv_lib_dl_dlopen=no
12690fi
12691
12692rm -rf conftest.dSYM
12693rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12694      conftest$ac_exeext conftest.$ac_ext
12695LIBS=$ac_check_lib_save_LIBS
12696fi
12697{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12698$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12699if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
12700  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12701else
12702
12703    lt_cv_dlopen="dyld"
12704    lt_cv_dlopen_libs=
12705    lt_cv_dlopen_self=yes
12706
12707fi
12708
12709   ;;
12710
12711  *)
12712    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12713$as_echo_n "checking for shl_load... " >&6; }
12714if test "${ac_cv_func_shl_load+set}" = set; then
12715  $as_echo_n "(cached) " >&6
12716else
12717  cat >conftest.$ac_ext <<_ACEOF
12718/* confdefs.h.  */
12719_ACEOF
12720cat confdefs.h >>conftest.$ac_ext
12721cat >>conftest.$ac_ext <<_ACEOF
12722/* end confdefs.h.  */
12723/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12724   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12725#define shl_load innocuous_shl_load
12726
12727/* System header to define __stub macros and hopefully few prototypes,
12728    which can conflict with char shl_load (); below.
12729    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12730    <limits.h> exists even on freestanding compilers.  */
12731
12732#ifdef __STDC__
12733# include <limits.h>
12734#else
12735# include <assert.h>
12736#endif
12737
12738#undef shl_load
12739
12740/* Override any GCC internal prototype to avoid an error.
12741   Use char because int might match the return type of a GCC
12742   builtin and then its argument prototype would still apply.  */
12743#ifdef __cplusplus
12744extern "C"
12745#endif
12746char shl_load ();
12747/* The GNU C library defines this for functions which it implements
12748    to always fail with ENOSYS.  Some functions are actually named
12749    something starting with __ and the normal name is an alias.  */
12750#if defined __stub_shl_load || defined __stub___shl_load
12751choke me
12752#endif
12753
12754int
12755main ()
12756{
12757return shl_load ();
12758  ;
12759  return 0;
12760}
12761_ACEOF
12762rm -f conftest.$ac_objext conftest$ac_exeext
12763if { (ac_try="$ac_link"
12764case "(($ac_try" in
12765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12766  *) ac_try_echo=$ac_try;;
12767esac
12768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12769$as_echo "$ac_try_echo") >&5
12770  (eval "$ac_link") 2>conftest.er1
12771  ac_status=$?
12772  grep -v '^ *+' conftest.er1 >conftest.err
12773  rm -f conftest.er1
12774  cat conftest.err >&5
12775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12776  (exit $ac_status); } && {
12777	 test -z "$ac_c_werror_flag" ||
12778	 test ! -s conftest.err
12779       } && test -s conftest$ac_exeext && {
12780	 test "$cross_compiling" = yes ||
12781	 $as_test_x conftest$ac_exeext
12782       }; then
12783  ac_cv_func_shl_load=yes
12784else
12785  $as_echo "$as_me: failed program was:" >&5
12786sed 's/^/| /' conftest.$ac_ext >&5
12787
12788	ac_cv_func_shl_load=no
12789fi
12790
12791rm -rf conftest.dSYM
12792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12793      conftest$ac_exeext conftest.$ac_ext
12794fi
12795{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12796$as_echo "$ac_cv_func_shl_load" >&6; }
12797if test "x$ac_cv_func_shl_load" = x""yes; then
12798  lt_cv_dlopen="shl_load"
12799else
12800  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12801$as_echo_n "checking for shl_load in -ldld... " >&6; }
12802if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12803  $as_echo_n "(cached) " >&6
12804else
12805  ac_check_lib_save_LIBS=$LIBS
12806LIBS="-ldld  $LIBS"
12807cat >conftest.$ac_ext <<_ACEOF
12808/* confdefs.h.  */
12809_ACEOF
12810cat confdefs.h >>conftest.$ac_ext
12811cat >>conftest.$ac_ext <<_ACEOF
12812/* end confdefs.h.  */
12813
12814/* Override any GCC internal prototype to avoid an error.
12815   Use char because int might match the return type of a GCC
12816   builtin and then its argument prototype would still apply.  */
12817#ifdef __cplusplus
12818extern "C"
12819#endif
12820char shl_load ();
12821int
12822main ()
12823{
12824return shl_load ();
12825  ;
12826  return 0;
12827}
12828_ACEOF
12829rm -f conftest.$ac_objext conftest$ac_exeext
12830if { (ac_try="$ac_link"
12831case "(($ac_try" in
12832  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833  *) ac_try_echo=$ac_try;;
12834esac
12835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12836$as_echo "$ac_try_echo") >&5
12837  (eval "$ac_link") 2>conftest.er1
12838  ac_status=$?
12839  grep -v '^ *+' conftest.er1 >conftest.err
12840  rm -f conftest.er1
12841  cat conftest.err >&5
12842  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843  (exit $ac_status); } && {
12844	 test -z "$ac_c_werror_flag" ||
12845	 test ! -s conftest.err
12846       } && test -s conftest$ac_exeext && {
12847	 test "$cross_compiling" = yes ||
12848	 $as_test_x conftest$ac_exeext
12849       }; then
12850  ac_cv_lib_dld_shl_load=yes
12851else
12852  $as_echo "$as_me: failed program was:" >&5
12853sed 's/^/| /' conftest.$ac_ext >&5
12854
12855	ac_cv_lib_dld_shl_load=no
12856fi
12857
12858rm -rf conftest.dSYM
12859rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12860      conftest$ac_exeext conftest.$ac_ext
12861LIBS=$ac_check_lib_save_LIBS
12862fi
12863{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12864$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12865if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
12866  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12867else
12868  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12869$as_echo_n "checking for dlopen... " >&6; }
12870if test "${ac_cv_func_dlopen+set}" = set; then
12871  $as_echo_n "(cached) " >&6
12872else
12873  cat >conftest.$ac_ext <<_ACEOF
12874/* confdefs.h.  */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h.  */
12879/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12880   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12881#define dlopen innocuous_dlopen
12882
12883/* System header to define __stub macros and hopefully few prototypes,
12884    which can conflict with char dlopen (); below.
12885    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12886    <limits.h> exists even on freestanding compilers.  */
12887
12888#ifdef __STDC__
12889# include <limits.h>
12890#else
12891# include <assert.h>
12892#endif
12893
12894#undef dlopen
12895
12896/* Override any GCC internal prototype to avoid an error.
12897   Use char because int might match the return type of a GCC
12898   builtin and then its argument prototype would still apply.  */
12899#ifdef __cplusplus
12900extern "C"
12901#endif
12902char dlopen ();
12903/* The GNU C library defines this for functions which it implements
12904    to always fail with ENOSYS.  Some functions are actually named
12905    something starting with __ and the normal name is an alias.  */
12906#if defined __stub_dlopen || defined __stub___dlopen
12907choke me
12908#endif
12909
12910int
12911main ()
12912{
12913return dlopen ();
12914  ;
12915  return 0;
12916}
12917_ACEOF
12918rm -f conftest.$ac_objext conftest$ac_exeext
12919if { (ac_try="$ac_link"
12920case "(($ac_try" in
12921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922  *) ac_try_echo=$ac_try;;
12923esac
12924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12925$as_echo "$ac_try_echo") >&5
12926  (eval "$ac_link") 2>conftest.er1
12927  ac_status=$?
12928  grep -v '^ *+' conftest.er1 >conftest.err
12929  rm -f conftest.er1
12930  cat conftest.err >&5
12931  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932  (exit $ac_status); } && {
12933	 test -z "$ac_c_werror_flag" ||
12934	 test ! -s conftest.err
12935       } && test -s conftest$ac_exeext && {
12936	 test "$cross_compiling" = yes ||
12937	 $as_test_x conftest$ac_exeext
12938       }; then
12939  ac_cv_func_dlopen=yes
12940else
12941  $as_echo "$as_me: failed program was:" >&5
12942sed 's/^/| /' conftest.$ac_ext >&5
12943
12944	ac_cv_func_dlopen=no
12945fi
12946
12947rm -rf conftest.dSYM
12948rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12949      conftest$ac_exeext conftest.$ac_ext
12950fi
12951{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12952$as_echo "$ac_cv_func_dlopen" >&6; }
12953if test "x$ac_cv_func_dlopen" = x""yes; then
12954  lt_cv_dlopen="dlopen"
12955else
12956  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12957$as_echo_n "checking for dlopen in -ldl... " >&6; }
12958if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12959  $as_echo_n "(cached) " >&6
12960else
12961  ac_check_lib_save_LIBS=$LIBS
12962LIBS="-ldl  $LIBS"
12963cat >conftest.$ac_ext <<_ACEOF
12964/* confdefs.h.  */
12965_ACEOF
12966cat confdefs.h >>conftest.$ac_ext
12967cat >>conftest.$ac_ext <<_ACEOF
12968/* end confdefs.h.  */
12969
12970/* Override any GCC internal prototype to avoid an error.
12971   Use char because int might match the return type of a GCC
12972   builtin and then its argument prototype would still apply.  */
12973#ifdef __cplusplus
12974extern "C"
12975#endif
12976char dlopen ();
12977int
12978main ()
12979{
12980return dlopen ();
12981  ;
12982  return 0;
12983}
12984_ACEOF
12985rm -f conftest.$ac_objext conftest$ac_exeext
12986if { (ac_try="$ac_link"
12987case "(($ac_try" in
12988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989  *) ac_try_echo=$ac_try;;
12990esac
12991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12992$as_echo "$ac_try_echo") >&5
12993  (eval "$ac_link") 2>conftest.er1
12994  ac_status=$?
12995  grep -v '^ *+' conftest.er1 >conftest.err
12996  rm -f conftest.er1
12997  cat conftest.err >&5
12998  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999  (exit $ac_status); } && {
13000	 test -z "$ac_c_werror_flag" ||
13001	 test ! -s conftest.err
13002       } && test -s conftest$ac_exeext && {
13003	 test "$cross_compiling" = yes ||
13004	 $as_test_x conftest$ac_exeext
13005       }; then
13006  ac_cv_lib_dl_dlopen=yes
13007else
13008  $as_echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011	ac_cv_lib_dl_dlopen=no
13012fi
13013
13014rm -rf conftest.dSYM
13015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13016      conftest$ac_exeext conftest.$ac_ext
13017LIBS=$ac_check_lib_save_LIBS
13018fi
13019{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13020$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13021if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
13022  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13023else
13024  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13025$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13026if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13027  $as_echo_n "(cached) " >&6
13028else
13029  ac_check_lib_save_LIBS=$LIBS
13030LIBS="-lsvld  $LIBS"
13031cat >conftest.$ac_ext <<_ACEOF
13032/* confdefs.h.  */
13033_ACEOF
13034cat confdefs.h >>conftest.$ac_ext
13035cat >>conftest.$ac_ext <<_ACEOF
13036/* end confdefs.h.  */
13037
13038/* Override any GCC internal prototype to avoid an error.
13039   Use char because int might match the return type of a GCC
13040   builtin and then its argument prototype would still apply.  */
13041#ifdef __cplusplus
13042extern "C"
13043#endif
13044char dlopen ();
13045int
13046main ()
13047{
13048return dlopen ();
13049  ;
13050  return 0;
13051}
13052_ACEOF
13053rm -f conftest.$ac_objext conftest$ac_exeext
13054if { (ac_try="$ac_link"
13055case "(($ac_try" in
13056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13057  *) ac_try_echo=$ac_try;;
13058esac
13059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13060$as_echo "$ac_try_echo") >&5
13061  (eval "$ac_link") 2>conftest.er1
13062  ac_status=$?
13063  grep -v '^ *+' conftest.er1 >conftest.err
13064  rm -f conftest.er1
13065  cat conftest.err >&5
13066  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067  (exit $ac_status); } && {
13068	 test -z "$ac_c_werror_flag" ||
13069	 test ! -s conftest.err
13070       } && test -s conftest$ac_exeext && {
13071	 test "$cross_compiling" = yes ||
13072	 $as_test_x conftest$ac_exeext
13073       }; then
13074  ac_cv_lib_svld_dlopen=yes
13075else
13076  $as_echo "$as_me: failed program was:" >&5
13077sed 's/^/| /' conftest.$ac_ext >&5
13078
13079	ac_cv_lib_svld_dlopen=no
13080fi
13081
13082rm -rf conftest.dSYM
13083rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13084      conftest$ac_exeext conftest.$ac_ext
13085LIBS=$ac_check_lib_save_LIBS
13086fi
13087{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13088$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13089if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
13090  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13091else
13092  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13093$as_echo_n "checking for dld_link in -ldld... " >&6; }
13094if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13095  $as_echo_n "(cached) " >&6
13096else
13097  ac_check_lib_save_LIBS=$LIBS
13098LIBS="-ldld  $LIBS"
13099cat >conftest.$ac_ext <<_ACEOF
13100/* confdefs.h.  */
13101_ACEOF
13102cat confdefs.h >>conftest.$ac_ext
13103cat >>conftest.$ac_ext <<_ACEOF
13104/* end confdefs.h.  */
13105
13106/* Override any GCC internal prototype to avoid an error.
13107   Use char because int might match the return type of a GCC
13108   builtin and then its argument prototype would still apply.  */
13109#ifdef __cplusplus
13110extern "C"
13111#endif
13112char dld_link ();
13113int
13114main ()
13115{
13116return dld_link ();
13117  ;
13118  return 0;
13119}
13120_ACEOF
13121rm -f conftest.$ac_objext conftest$ac_exeext
13122if { (ac_try="$ac_link"
13123case "(($ac_try" in
13124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13125  *) ac_try_echo=$ac_try;;
13126esac
13127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13128$as_echo "$ac_try_echo") >&5
13129  (eval "$ac_link") 2>conftest.er1
13130  ac_status=$?
13131  grep -v '^ *+' conftest.er1 >conftest.err
13132  rm -f conftest.er1
13133  cat conftest.err >&5
13134  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135  (exit $ac_status); } && {
13136	 test -z "$ac_c_werror_flag" ||
13137	 test ! -s conftest.err
13138       } && test -s conftest$ac_exeext && {
13139	 test "$cross_compiling" = yes ||
13140	 $as_test_x conftest$ac_exeext
13141       }; then
13142  ac_cv_lib_dld_dld_link=yes
13143else
13144  $as_echo "$as_me: failed program was:" >&5
13145sed 's/^/| /' conftest.$ac_ext >&5
13146
13147	ac_cv_lib_dld_dld_link=no
13148fi
13149
13150rm -rf conftest.dSYM
13151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13152      conftest$ac_exeext conftest.$ac_ext
13153LIBS=$ac_check_lib_save_LIBS
13154fi
13155{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13156$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13157if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
13158  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13159fi
13160
13161
13162fi
13163
13164
13165fi
13166
13167
13168fi
13169
13170
13171fi
13172
13173
13174fi
13175
13176    ;;
13177  esac
13178
13179  if test "x$lt_cv_dlopen" != xno; then
13180    enable_dlopen=yes
13181  else
13182    enable_dlopen=no
13183  fi
13184
13185  case $lt_cv_dlopen in
13186  dlopen)
13187    save_CPPFLAGS="$CPPFLAGS"
13188    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13189
13190    save_LDFLAGS="$LDFLAGS"
13191    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13192
13193    save_LIBS="$LIBS"
13194    LIBS="$lt_cv_dlopen_libs $LIBS"
13195
13196    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13197$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13198if test "${lt_cv_dlopen_self+set}" = set; then
13199  $as_echo_n "(cached) " >&6
13200else
13201  	  if test "$cross_compiling" = yes; then :
13202  lt_cv_dlopen_self=cross
13203else
13204  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13205  lt_status=$lt_dlunknown
13206  cat > conftest.$ac_ext <<EOF
13207#line 13207 "configure"
13208#include "confdefs.h"
13209
13210#if HAVE_DLFCN_H
13211#include <dlfcn.h>
13212#endif
13213
13214#include <stdio.h>
13215
13216#ifdef RTLD_GLOBAL
13217#  define LT_DLGLOBAL		RTLD_GLOBAL
13218#else
13219#  ifdef DL_GLOBAL
13220#    define LT_DLGLOBAL		DL_GLOBAL
13221#  else
13222#    define LT_DLGLOBAL		0
13223#  endif
13224#endif
13225
13226/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13227   find out it does not work in some platform. */
13228#ifndef LT_DLLAZY_OR_NOW
13229#  ifdef RTLD_LAZY
13230#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13231#  else
13232#    ifdef DL_LAZY
13233#      define LT_DLLAZY_OR_NOW		DL_LAZY
13234#    else
13235#      ifdef RTLD_NOW
13236#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13237#      else
13238#        ifdef DL_NOW
13239#          define LT_DLLAZY_OR_NOW	DL_NOW
13240#        else
13241#          define LT_DLLAZY_OR_NOW	0
13242#        endif
13243#      endif
13244#    endif
13245#  endif
13246#endif
13247
13248#ifdef __cplusplus
13249extern "C" void exit (int);
13250#endif
13251
13252void fnord() { int i=42;}
13253int main ()
13254{
13255  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13256  int status = $lt_dlunknown;
13257
13258  if (self)
13259    {
13260      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13261      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13262      /* dlclose (self); */
13263    }
13264  else
13265    puts (dlerror ());
13266
13267    exit (status);
13268}
13269EOF
13270  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271  (eval $ac_link) 2>&5
13272  ac_status=$?
13273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13275    (./conftest; exit; ) >&5 2>/dev/null
13276    lt_status=$?
13277    case x$lt_status in
13278      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13279      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13280      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13281    esac
13282  else :
13283    # compilation failed
13284    lt_cv_dlopen_self=no
13285  fi
13286fi
13287rm -fr conftest*
13288
13289
13290fi
13291{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13292$as_echo "$lt_cv_dlopen_self" >&6; }
13293
13294    if test "x$lt_cv_dlopen_self" = xyes; then
13295      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13296      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13297$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13298if test "${lt_cv_dlopen_self_static+set}" = set; then
13299  $as_echo_n "(cached) " >&6
13300else
13301  	  if test "$cross_compiling" = yes; then :
13302  lt_cv_dlopen_self_static=cross
13303else
13304  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13305  lt_status=$lt_dlunknown
13306  cat > conftest.$ac_ext <<EOF
13307#line 13307 "configure"
13308#include "confdefs.h"
13309
13310#if HAVE_DLFCN_H
13311#include <dlfcn.h>
13312#endif
13313
13314#include <stdio.h>
13315
13316#ifdef RTLD_GLOBAL
13317#  define LT_DLGLOBAL		RTLD_GLOBAL
13318#else
13319#  ifdef DL_GLOBAL
13320#    define LT_DLGLOBAL		DL_GLOBAL
13321#  else
13322#    define LT_DLGLOBAL		0
13323#  endif
13324#endif
13325
13326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13327   find out it does not work in some platform. */
13328#ifndef LT_DLLAZY_OR_NOW
13329#  ifdef RTLD_LAZY
13330#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13331#  else
13332#    ifdef DL_LAZY
13333#      define LT_DLLAZY_OR_NOW		DL_LAZY
13334#    else
13335#      ifdef RTLD_NOW
13336#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13337#      else
13338#        ifdef DL_NOW
13339#          define LT_DLLAZY_OR_NOW	DL_NOW
13340#        else
13341#          define LT_DLLAZY_OR_NOW	0
13342#        endif
13343#      endif
13344#    endif
13345#  endif
13346#endif
13347
13348#ifdef __cplusplus
13349extern "C" void exit (int);
13350#endif
13351
13352void fnord() { int i=42;}
13353int main ()
13354{
13355  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13356  int status = $lt_dlunknown;
13357
13358  if (self)
13359    {
13360      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13361      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13362      /* dlclose (self); */
13363    }
13364  else
13365    puts (dlerror ());
13366
13367    exit (status);
13368}
13369EOF
13370  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13371  (eval $ac_link) 2>&5
13372  ac_status=$?
13373  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13375    (./conftest; exit; ) >&5 2>/dev/null
13376    lt_status=$?
13377    case x$lt_status in
13378      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13379      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13380      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13381    esac
13382  else :
13383    # compilation failed
13384    lt_cv_dlopen_self_static=no
13385  fi
13386fi
13387rm -fr conftest*
13388
13389
13390fi
13391{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13392$as_echo "$lt_cv_dlopen_self_static" >&6; }
13393    fi
13394
13395    CPPFLAGS="$save_CPPFLAGS"
13396    LDFLAGS="$save_LDFLAGS"
13397    LIBS="$save_LIBS"
13398    ;;
13399  esac
13400
13401  case $lt_cv_dlopen_self in
13402  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13403  *) enable_dlopen_self=unknown ;;
13404  esac
13405
13406  case $lt_cv_dlopen_self_static in
13407  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13408  *) enable_dlopen_self_static=unknown ;;
13409  esac
13410fi
13411
13412
13413# Report which library types will actually be built
13414{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13415$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13416{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
13417$as_echo "$can_build_shared" >&6; }
13418
13419{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13420$as_echo_n "checking whether to build shared libraries... " >&6; }
13421test "$can_build_shared" = "no" && enable_shared=no
13422
13423# On AIX, shared libraries and static libraries use the same namespace, and
13424# are all built from PIC.
13425case $host_os in
13426aix3*)
13427  test "$enable_shared" = yes && enable_static=no
13428  if test -n "$RANLIB"; then
13429    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13430    postinstall_cmds='$RANLIB $lib'
13431  fi
13432  ;;
13433
13434aix4* | aix5*)
13435  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13436    test "$enable_shared" = yes && enable_static=no
13437  fi
13438    ;;
13439esac
13440{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13441$as_echo "$enable_shared" >&6; }
13442
13443{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13444$as_echo_n "checking whether to build static libraries... " >&6; }
13445# Make sure either enable_shared or enable_static is yes.
13446test "$enable_shared" = yes || enable_static=yes
13447{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13448$as_echo "$enable_static" >&6; }
13449
13450# The else clause should only fire when bootstrapping the
13451# libtool distribution, otherwise you forgot to ship ltmain.sh
13452# with your package, and you will get complaints that there are
13453# no rules to generate ltmain.sh.
13454if test -f "$ltmain"; then
13455  # See if we are running on zsh, and set the options which allow our commands through
13456  # without removal of \ escapes.
13457  if test -n "${ZSH_VERSION+set}" ; then
13458    setopt NO_GLOB_SUBST
13459  fi
13460  # Now quote all the things that may contain metacharacters while being
13461  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13462  # variables and quote the copies for generation of the libtool script.
13463  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13464    SED SHELL STRIP \
13465    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13466    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13467    deplibs_check_method reload_flag reload_cmds need_locks \
13468    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13469    lt_cv_sys_global_symbol_to_c_name_address \
13470    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13471    old_postinstall_cmds old_postuninstall_cmds \
13472    compiler \
13473    CC \
13474    LD \
13475    lt_prog_compiler_wl \
13476    lt_prog_compiler_pic \
13477    lt_prog_compiler_static \
13478    lt_prog_compiler_no_builtin_flag \
13479    export_dynamic_flag_spec \
13480    thread_safe_flag_spec \
13481    whole_archive_flag_spec \
13482    enable_shared_with_static_runtimes \
13483    old_archive_cmds \
13484    old_archive_from_new_cmds \
13485    predep_objects \
13486    postdep_objects \
13487    predeps \
13488    postdeps \
13489    compiler_lib_search_path \
13490    archive_cmds \
13491    archive_expsym_cmds \
13492    postinstall_cmds \
13493    postuninstall_cmds \
13494    old_archive_from_expsyms_cmds \
13495    allow_undefined_flag \
13496    no_undefined_flag \
13497    export_symbols_cmds \
13498    hardcode_libdir_flag_spec \
13499    hardcode_libdir_flag_spec_ld \
13500    hardcode_libdir_separator \
13501    hardcode_automatic \
13502    module_cmds \
13503    module_expsym_cmds \
13504    lt_cv_prog_compiler_c_o \
13505    fix_srcfile_path \
13506    exclude_expsyms \
13507    include_expsyms; do
13508
13509    case $var in
13510    old_archive_cmds | \
13511    old_archive_from_new_cmds | \
13512    archive_cmds | \
13513    archive_expsym_cmds | \
13514    module_cmds | \
13515    module_expsym_cmds | \
13516    old_archive_from_expsyms_cmds | \
13517    export_symbols_cmds | \
13518    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13519    postinstall_cmds | postuninstall_cmds | \
13520    old_postinstall_cmds | old_postuninstall_cmds | \
13521    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13522      # Double-quote double-evaled strings.
13523      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13524      ;;
13525    *)
13526      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13527      ;;
13528    esac
13529  done
13530
13531  case $lt_echo in
13532  *'\$0 --fallback-echo"')
13533    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13534    ;;
13535  esac
13536
13537cfgfile="${ofile}T"
13538  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13539  $rm -f "$cfgfile"
13540  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
13541$as_echo "$as_me: creating $ofile" >&6;}
13542
13543  cat <<__EOF__ >> "$cfgfile"
13544#! $SHELL
13545
13546# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13547# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13548# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13549#
13550# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
13551# Free Software Foundation, Inc.
13552#
13553# This file is part of GNU Libtool:
13554# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13555#
13556# This program is free software; you can redistribute it and/or modify
13557# it under the terms of the GNU General Public License as published by
13558# the Free Software Foundation; either version 2 of the License, or
13559# (at your option) any later version.
13560#
13561# This program is distributed in the hope that it will be useful, but
13562# WITHOUT ANY WARRANTY; without even the implied warranty of
13563# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13564# General Public License for more details.
13565#
13566# You should have received a copy of the GNU General Public License
13567# along with this program; if not, write to the Free Software
13568# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13569#
13570# As a special exception to the GNU General Public License, if you
13571# distribute this file as part of a program that contains a
13572# configuration script generated by Autoconf, you may include it under
13573# the same distribution terms that you use for the rest of that program.
13574
13575# A sed program that does not truncate output.
13576SED=$lt_SED
13577
13578# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13579Xsed="$SED -e 1s/^X//"
13580
13581# The HP-UX ksh and POSIX shell print the target directory to stdout
13582# if CDPATH is set.
13583(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13584
13585# The names of the tagged configurations supported by this script.
13586available_tags=
13587
13588# ### BEGIN LIBTOOL CONFIG
13589
13590# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13591
13592# Shell to use when invoking shell scripts.
13593SHELL=$lt_SHELL
13594
13595# Whether or not to build shared libraries.
13596build_libtool_libs=$enable_shared
13597
13598# Whether or not to build static libraries.
13599build_old_libs=$enable_static
13600
13601# Whether or not to add -lc for building shared libraries.
13602build_libtool_need_lc=$archive_cmds_need_lc
13603
13604# Whether or not to disallow shared libs when runtime libs are static
13605allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13606
13607# Whether or not to optimize for fast installation.
13608fast_install=$enable_fast_install
13609
13610# The host system.
13611host_alias=$host_alias
13612host=$host
13613host_os=$host_os
13614
13615# The build system.
13616build_alias=$build_alias
13617build=$build
13618build_os=$build_os
13619
13620# An echo program that does not interpret backslashes.
13621echo=$lt_echo
13622
13623# The archiver.
13624AR=$lt_AR
13625AR_FLAGS=$lt_AR_FLAGS
13626
13627# A C compiler.
13628LTCC=$lt_LTCC
13629
13630# LTCC compiler flags.
13631LTCFLAGS=$lt_LTCFLAGS
13632
13633# A language-specific compiler.
13634CC=$lt_compiler
13635
13636# Is the compiler the GNU C compiler?
13637with_gcc=$GCC
13638
13639# An ERE matcher.
13640EGREP=$lt_EGREP
13641
13642# The linker used to build libraries.
13643LD=$lt_LD
13644
13645# Whether we need hard or soft links.
13646LN_S=$lt_LN_S
13647
13648# A BSD-compatible nm program.
13649NM=$lt_NM
13650
13651# A symbol stripping program
13652STRIP=$lt_STRIP
13653
13654# Used to examine libraries when file_magic_cmd begins "file"
13655MAGIC_CMD=$MAGIC_CMD
13656
13657# Used on cygwin: DLL creation program.
13658DLLTOOL="$DLLTOOL"
13659
13660# Used on cygwin: object dumper.
13661OBJDUMP="$OBJDUMP"
13662
13663# Used on cygwin: assembler.
13664AS="$AS"
13665
13666# The name of the directory that contains temporary libtool files.
13667objdir=$objdir
13668
13669# How to create reloadable object files.
13670reload_flag=$lt_reload_flag
13671reload_cmds=$lt_reload_cmds
13672
13673# How to pass a linker flag through the compiler.
13674wl=$lt_lt_prog_compiler_wl
13675
13676# Object file suffix (normally "o").
13677objext="$ac_objext"
13678
13679# Old archive suffix (normally "a").
13680libext="$libext"
13681
13682# Shared library suffix (normally ".so").
13683shrext_cmds='$shrext_cmds'
13684
13685# Executable file suffix (normally "").
13686exeext="$exeext"
13687
13688# Additional compiler flags for building library objects.
13689pic_flag=$lt_lt_prog_compiler_pic
13690pic_mode=$pic_mode
13691
13692# What is the maximum length of a command?
13693max_cmd_len=$lt_cv_sys_max_cmd_len
13694
13695# Does compiler simultaneously support -c and -o options?
13696compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13697
13698# Must we lock files when doing compilation?
13699need_locks=$lt_need_locks
13700
13701# Do we need the lib prefix for modules?
13702need_lib_prefix=$need_lib_prefix
13703
13704# Do we need a version for libraries?
13705need_version=$need_version
13706
13707# Whether dlopen is supported.
13708dlopen_support=$enable_dlopen
13709
13710# Whether dlopen of programs is supported.
13711dlopen_self=$enable_dlopen_self
13712
13713# Whether dlopen of statically linked programs is supported.
13714dlopen_self_static=$enable_dlopen_self_static
13715
13716# Compiler flag to prevent dynamic linking.
13717link_static_flag=$lt_lt_prog_compiler_static
13718
13719# Compiler flag to turn off builtin functions.
13720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13721
13722# Compiler flag to allow reflexive dlopens.
13723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13724
13725# Compiler flag to generate shared objects directly from archives.
13726whole_archive_flag_spec=$lt_whole_archive_flag_spec
13727
13728# Compiler flag to generate thread-safe objects.
13729thread_safe_flag_spec=$lt_thread_safe_flag_spec
13730
13731# Library versioning type.
13732version_type=$version_type
13733
13734# Format of library name prefix.
13735libname_spec=$lt_libname_spec
13736
13737# List of archive names.  First name is the real one, the rest are links.
13738# The last name is the one that the linker finds with -lNAME.
13739library_names_spec=$lt_library_names_spec
13740
13741# The coded name of the library, if different from the real name.
13742soname_spec=$lt_soname_spec
13743
13744# Commands used to build and install an old-style archive.
13745RANLIB=$lt_RANLIB
13746old_archive_cmds=$lt_old_archive_cmds
13747old_postinstall_cmds=$lt_old_postinstall_cmds
13748old_postuninstall_cmds=$lt_old_postuninstall_cmds
13749
13750# Create an old-style archive from a shared archive.
13751old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13752
13753# Create a temporary old-style archive to link instead of a shared archive.
13754old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13755
13756# Commands used to build and install a shared archive.
13757archive_cmds=$lt_archive_cmds
13758archive_expsym_cmds=$lt_archive_expsym_cmds
13759postinstall_cmds=$lt_postinstall_cmds
13760postuninstall_cmds=$lt_postuninstall_cmds
13761
13762# Commands used to build a loadable module (assumed same as above if empty)
13763module_cmds=$lt_module_cmds
13764module_expsym_cmds=$lt_module_expsym_cmds
13765
13766# Commands to strip libraries.
13767old_striplib=$lt_old_striplib
13768striplib=$lt_striplib
13769
13770# Dependencies to place before the objects being linked to create a
13771# shared library.
13772predep_objects=$lt_predep_objects
13773
13774# Dependencies to place after the objects being linked to create a
13775# shared library.
13776postdep_objects=$lt_postdep_objects
13777
13778# Dependencies to place before the objects being linked to create a
13779# shared library.
13780predeps=$lt_predeps
13781
13782# Dependencies to place after the objects being linked to create a
13783# shared library.
13784postdeps=$lt_postdeps
13785
13786# The library search path used internally by the compiler when linking
13787# a shared library.
13788compiler_lib_search_path=$lt_compiler_lib_search_path
13789
13790# Method to check whether dependent libraries are shared objects.
13791deplibs_check_method=$lt_deplibs_check_method
13792
13793# Command to use when deplibs_check_method == file_magic.
13794file_magic_cmd=$lt_file_magic_cmd
13795
13796# Flag that allows shared libraries with undefined symbols to be built.
13797allow_undefined_flag=$lt_allow_undefined_flag
13798
13799# Flag that forces no undefined symbols.
13800no_undefined_flag=$lt_no_undefined_flag
13801
13802# Commands used to finish a libtool library installation in a directory.
13803finish_cmds=$lt_finish_cmds
13804
13805# Same as above, but a single script fragment to be evaled but not shown.
13806finish_eval=$lt_finish_eval
13807
13808# Take the output of nm and produce a listing of raw symbols and C names.
13809global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13810
13811# Transform the output of nm in a proper C declaration
13812global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13813
13814# Transform the output of nm in a C name address pair
13815global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13816
13817# This is the shared library runtime path variable.
13818runpath_var=$runpath_var
13819
13820# This is the shared library path variable.
13821shlibpath_var=$shlibpath_var
13822
13823# Is shlibpath searched before the hard-coded library search path?
13824shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13825
13826# How to hardcode a shared library path into an executable.
13827hardcode_action=$hardcode_action
13828
13829# Whether we should hardcode library paths into libraries.
13830hardcode_into_libs=$hardcode_into_libs
13831
13832# Flag to hardcode \$libdir into a binary during linking.
13833# This must work even if \$libdir does not exist.
13834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13835
13836# If ld is used when linking, flag to hardcode \$libdir into
13837# a binary during linking. This must work even if \$libdir does
13838# not exist.
13839hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13840
13841# Whether we need a single -rpath flag with a separated argument.
13842hardcode_libdir_separator=$lt_hardcode_libdir_separator
13843
13844# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13845# resulting binary.
13846hardcode_direct=$hardcode_direct
13847
13848# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13849# resulting binary.
13850hardcode_minus_L=$hardcode_minus_L
13851
13852# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13853# the resulting binary.
13854hardcode_shlibpath_var=$hardcode_shlibpath_var
13855
13856# Set to yes if building a shared library automatically hardcodes DIR into the library
13857# and all subsequent libraries and executables linked against it.
13858hardcode_automatic=$hardcode_automatic
13859
13860# Variables whose values should be saved in libtool wrapper scripts and
13861# restored at relink time.
13862variables_saved_for_relink="$variables_saved_for_relink"
13863
13864# Whether libtool must link a program against all its dependency libraries.
13865link_all_deplibs=$link_all_deplibs
13866
13867# Compile-time system search path for libraries
13868sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13869
13870# Run-time system search path for libraries
13871sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13872
13873# Fix the shell variable \$srcfile for the compiler.
13874fix_srcfile_path=$lt_fix_srcfile_path
13875
13876# Set to yes if exported symbols are required.
13877always_export_symbols=$always_export_symbols
13878
13879# The commands to list exported symbols.
13880export_symbols_cmds=$lt_export_symbols_cmds
13881
13882# The commands to extract the exported symbol list from a shared archive.
13883extract_expsyms_cmds=$lt_extract_expsyms_cmds
13884
13885# Symbols that should not be listed in the preloaded symbols.
13886exclude_expsyms=$lt_exclude_expsyms
13887
13888# Symbols that must always be exported.
13889include_expsyms=$lt_include_expsyms
13890
13891# ### END LIBTOOL CONFIG
13892
13893__EOF__
13894
13895
13896  case $host_os in
13897  aix3*)
13898    cat <<\EOF >> "$cfgfile"
13899
13900# AIX sometimes has problems with the GCC collect2 program.  For some
13901# reason, if we set the COLLECT_NAMES environment variable, the problems
13902# vanish in a puff of smoke.
13903if test "X${COLLECT_NAMES+set}" != Xset; then
13904  COLLECT_NAMES=
13905  export COLLECT_NAMES
13906fi
13907EOF
13908    ;;
13909  esac
13910
13911  # We use sed instead of cat because bash on DJGPP gets confused if
13912  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13913  # text mode, it properly converts lines to CR/LF.  This bash problem
13914  # is reportedly fixed, but why not run on old versions too?
13915  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13916
13917  mv -f "$cfgfile" "$ofile" || \
13918    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13919  chmod +x "$ofile"
13920
13921else
13922  # If there is no Makefile yet, we rely on a make rule to execute
13923  # `config.status --recheck' to rerun these tests and create the
13924  # libtool script then.
13925  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13926  if test -f "$ltmain_in"; then
13927    test -f Makefile && make "$ltmain"
13928  fi
13929fi
13930
13931
13932ac_ext=c
13933ac_cpp='$CPP $CPPFLAGS'
13934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13936ac_compiler_gnu=$ac_cv_c_compiler_gnu
13937
13938CC="$lt_save_CC"
13939
13940
13941# Check whether --with-tags was given.
13942if test "${with_tags+set}" = set; then
13943  withval=$with_tags; tagnames="$withval"
13944fi
13945
13946
13947if test -f "$ltmain" && test -n "$tagnames"; then
13948  if test ! -f "${ofile}"; then
13949    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13950$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13951  fi
13952
13953  if test -z "$LTCC"; then
13954    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13955    if test -z "$LTCC"; then
13956      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13957$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13958    else
13959      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13960$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13961    fi
13962  fi
13963  if test -z "$LTCFLAGS"; then
13964    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
13965  fi
13966
13967  # Extract list of available tagged configurations in $ofile.
13968  # Note that this assumes the entire list is on one line.
13969  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13970
13971  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13972  for tagname in $tagnames; do
13973    IFS="$lt_save_ifs"
13974    # Check whether tagname contains only valid characters
13975    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13976    "") ;;
13977    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13978$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
13979   { (exit 1); exit 1; }; }
13980	;;
13981    esac
13982
13983    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13984    then
13985      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13986$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13987   { (exit 1); exit 1; }; }
13988    fi
13989
13990    # Update the list of available tags.
13991    if test -n "$tagname"; then
13992      echo appending configuration tag \"$tagname\" to $ofile
13993
13994      case $tagname in
13995      CXX)
13996	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13997	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13998	    (test "X$CXX" != "Xg++"))) ; then
13999	  ac_ext=cpp
14000ac_cpp='$CXXCPP $CPPFLAGS'
14001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14004
14005
14006
14007
14008archive_cmds_need_lc_CXX=no
14009allow_undefined_flag_CXX=
14010always_export_symbols_CXX=no
14011archive_expsym_cmds_CXX=
14012export_dynamic_flag_spec_CXX=
14013hardcode_direct_CXX=no
14014hardcode_libdir_flag_spec_CXX=
14015hardcode_libdir_flag_spec_ld_CXX=
14016hardcode_libdir_separator_CXX=
14017hardcode_minus_L_CXX=no
14018hardcode_shlibpath_var_CXX=unsupported
14019hardcode_automatic_CXX=no
14020module_cmds_CXX=
14021module_expsym_cmds_CXX=
14022link_all_deplibs_CXX=unknown
14023old_archive_cmds_CXX=$old_archive_cmds
14024no_undefined_flag_CXX=
14025whole_archive_flag_spec_CXX=
14026enable_shared_with_static_runtimes_CXX=no
14027
14028# Dependencies to place before and after the object being linked:
14029predep_objects_CXX=
14030postdep_objects_CXX=
14031predeps_CXX=
14032postdeps_CXX=
14033compiler_lib_search_path_CXX=
14034
14035# Source file extension for C++ test sources.
14036ac_ext=cpp
14037
14038# Object file extension for compiled C++ test sources.
14039objext=o
14040objext_CXX=$objext
14041
14042# Code to be used in simple compile tests
14043lt_simple_compile_test_code="int some_variable = 0;"
14044
14045# Code to be used in simple link tests
14046lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14047
14048# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14049
14050# If no C compiler was specified, use CC.
14051LTCC=${LTCC-"$CC"}
14052
14053# If no C compiler flags were specified, use CFLAGS.
14054LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14055
14056# Allow CC to be a program name with arguments.
14057compiler=$CC
14058
14059
14060# save warnings/boilerplate of simple test code
14061ac_outfile=conftest.$ac_objext
14062echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14063eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14064_lt_compiler_boilerplate=`cat conftest.err`
14065$rm conftest*
14066
14067ac_outfile=conftest.$ac_objext
14068echo "$lt_simple_link_test_code" >conftest.$ac_ext
14069eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14070_lt_linker_boilerplate=`cat conftest.err`
14071$rm conftest*
14072
14073
14074# Allow CC to be a program name with arguments.
14075lt_save_CC=$CC
14076lt_save_LD=$LD
14077lt_save_GCC=$GCC
14078GCC=$GXX
14079lt_save_with_gnu_ld=$with_gnu_ld
14080lt_save_path_LD=$lt_cv_path_LD
14081if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14082  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14083else
14084  $as_unset lt_cv_prog_gnu_ld
14085fi
14086if test -n "${lt_cv_path_LDCXX+set}"; then
14087  lt_cv_path_LD=$lt_cv_path_LDCXX
14088else
14089  $as_unset lt_cv_path_LD
14090fi
14091test -z "${LDCXX+set}" || LD=$LDCXX
14092CC=${CXX-"c++"}
14093compiler=$CC
14094compiler_CXX=$CC
14095for cc_temp in $compiler""; do
14096  case $cc_temp in
14097    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14098    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14099    \-*) ;;
14100    *) break;;
14101  esac
14102done
14103cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14104
14105
14106# We don't want -fno-exception wen compiling C++ code, so set the
14107# no_builtin_flag separately
14108if test "$GXX" = yes; then
14109  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14110else
14111  lt_prog_compiler_no_builtin_flag_CXX=
14112fi
14113
14114if test "$GXX" = yes; then
14115  # Set up default GNU C++ configuration
14116
14117
14118# Check whether --with-gnu-ld was given.
14119if test "${with_gnu_ld+set}" = set; then
14120  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14121else
14122  with_gnu_ld=no
14123fi
14124
14125ac_prog=ld
14126if test "$GCC" = yes; then
14127  # Check if gcc -print-prog-name=ld gives a path.
14128  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
14129$as_echo_n "checking for ld used by $CC... " >&6; }
14130  case $host in
14131  *-*-mingw*)
14132    # gcc leaves a trailing carriage return which upsets mingw
14133    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14134  *)
14135    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14136  esac
14137  case $ac_prog in
14138    # Accept absolute paths.
14139    [\\/]* | ?:[\\/]*)
14140      re_direlt='/[^/][^/]*/\.\./'
14141      # Canonicalize the pathname of ld
14142      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
14143      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
14144	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
14145      done
14146      test -z "$LD" && LD="$ac_prog"
14147      ;;
14148  "")
14149    # If it fails, then pretend we aren't using GCC.
14150    ac_prog=ld
14151    ;;
14152  *)
14153    # If it is relative, then search for the first ld in PATH.
14154    with_gnu_ld=unknown
14155    ;;
14156  esac
14157elif test "$with_gnu_ld" = yes; then
14158  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
14159$as_echo_n "checking for GNU ld... " >&6; }
14160else
14161  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
14162$as_echo_n "checking for non-GNU ld... " >&6; }
14163fi
14164if test "${lt_cv_path_LD+set}" = set; then
14165  $as_echo_n "(cached) " >&6
14166else
14167  if test -z "$LD"; then
14168  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14169  for ac_dir in $PATH; do
14170    IFS="$lt_save_ifs"
14171    test -z "$ac_dir" && ac_dir=.
14172    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14173      lt_cv_path_LD="$ac_dir/$ac_prog"
14174      # Check to see if the program is GNU ld.  I'd rather use --version,
14175      # but apparently some variants of GNU ld only accept -v.
14176      # Break only if it was the GNU/non-GNU ld that we prefer.
14177      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14178      *GNU* | *'with BFD'*)
14179	test "$with_gnu_ld" != no && break
14180	;;
14181      *)
14182	test "$with_gnu_ld" != yes && break
14183	;;
14184      esac
14185    fi
14186  done
14187  IFS="$lt_save_ifs"
14188else
14189  lt_cv_path_LD="$LD" # Let the user override the test with a path.
14190fi
14191fi
14192
14193LD="$lt_cv_path_LD"
14194if test -n "$LD"; then
14195  { $as_echo "$as_me:$LINENO: result: $LD" >&5
14196$as_echo "$LD" >&6; }
14197else
14198  { $as_echo "$as_me:$LINENO: result: no" >&5
14199$as_echo "no" >&6; }
14200fi
14201test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
14202$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
14203   { (exit 1); exit 1; }; }
14204{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
14205$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14206if test "${lt_cv_prog_gnu_ld+set}" = set; then
14207  $as_echo_n "(cached) " >&6
14208else
14209  # I'd rather use --version here, but apparently some GNU lds only accept -v.
14210case `$LD -v 2>&1 </dev/null` in
14211*GNU* | *'with BFD'*)
14212  lt_cv_prog_gnu_ld=yes
14213  ;;
14214*)
14215  lt_cv_prog_gnu_ld=no
14216  ;;
14217esac
14218fi
14219{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
14220$as_echo "$lt_cv_prog_gnu_ld" >&6; }
14221with_gnu_ld=$lt_cv_prog_gnu_ld
14222
14223
14224
14225  # Check if GNU C++ uses GNU ld as the underlying linker, since the
14226  # archiving commands below assume that GNU ld is being used.
14227  if test "$with_gnu_ld" = yes; then
14228    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14229    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'
14230
14231    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14232    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14233
14234    # If archive_cmds runs LD, not CC, wlarc should be empty
14235    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14236    #     investigate it a little bit more. (MM)
14237    wlarc='${wl}'
14238
14239    # ancient GNU ld didn't support --whole-archive et. al.
14240    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
14241	grep 'no-whole-archive' > /dev/null; then
14242      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14243    else
14244      whole_archive_flag_spec_CXX=
14245    fi
14246  else
14247    with_gnu_ld=no
14248    wlarc=
14249
14250    # A generic and very simple default shared library creation
14251    # command for GNU C++ for the case where it uses the native
14252    # linker, instead of GNU ld.  If possible, this setting should
14253    # overridden to take advantage of the native linker features on
14254    # the platform it is being used on.
14255    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14256  fi
14257
14258  # Commands to make compiler produce verbose output that lists
14259  # what "hidden" libraries, object files and flags are used when
14260  # linking a shared library.
14261  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14262
14263else
14264  GXX=no
14265  with_gnu_ld=no
14266  wlarc=
14267fi
14268
14269# PORTME: fill in a description of your system's C++ link characteristics
14270{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14271$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14272ld_shlibs_CXX=yes
14273case $host_os in
14274  aix3*)
14275    # FIXME: insert proper C++ library support
14276    ld_shlibs_CXX=no
14277    ;;
14278  aix4* | aix5*)
14279    if test "$host_cpu" = ia64; then
14280      # On IA64, the linker does run time linking by default, so we don't
14281      # have to do anything special.
14282      aix_use_runtimelinking=no
14283      exp_sym_flag='-Bexport'
14284      no_entry_flag=""
14285    else
14286      aix_use_runtimelinking=no
14287
14288      # Test if we are trying to use run time linking or normal
14289      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14290      # need to do runtime linking.
14291      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14292	for ld_flag in $LDFLAGS; do
14293	  case $ld_flag in
14294	  *-brtl*)
14295	    aix_use_runtimelinking=yes
14296	    break
14297	    ;;
14298	  esac
14299	done
14300	;;
14301      esac
14302
14303      exp_sym_flag='-bexport'
14304      no_entry_flag='-bnoentry'
14305    fi
14306
14307    # When large executables or shared objects are built, AIX ld can
14308    # have problems creating the table of contents.  If linking a library
14309    # or program results in "error TOC overflow" add -mminimal-toc to
14310    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14311    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14312
14313    archive_cmds_CXX=''
14314    hardcode_direct_CXX=yes
14315    hardcode_libdir_separator_CXX=':'
14316    link_all_deplibs_CXX=yes
14317
14318    if test "$GXX" = yes; then
14319      case $host_os in aix4.[012]|aix4.[012].*)
14320      # We only want to do this on AIX 4.2 and lower, the check
14321      # below for broken collect2 doesn't work under 4.3+
14322	collect2name=`${CC} -print-prog-name=collect2`
14323	if test -f "$collect2name" && \
14324	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14325	then
14326	  # We have reworked collect2
14327	  :
14328	else
14329	  # We have old collect2
14330	  hardcode_direct_CXX=unsupported
14331	  # It fails to find uninstalled libraries when the uninstalled
14332	  # path is not listed in the libpath.  Setting hardcode_minus_L
14333	  # to unsupported forces relinking
14334	  hardcode_minus_L_CXX=yes
14335	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14336	  hardcode_libdir_separator_CXX=
14337	fi
14338	;;
14339      esac
14340      shared_flag='-shared'
14341      if test "$aix_use_runtimelinking" = yes; then
14342	shared_flag="$shared_flag "'${wl}-G'
14343      fi
14344    else
14345      # not using gcc
14346      if test "$host_cpu" = ia64; then
14347	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14348	# chokes on -Wl,-G. The following line is correct:
14349	shared_flag='-G'
14350      else
14351	if test "$aix_use_runtimelinking" = yes; then
14352	  shared_flag='${wl}-G'
14353	else
14354	  shared_flag='${wl}-bM:SRE'
14355	fi
14356      fi
14357    fi
14358
14359    # It seems that -bexpall does not export symbols beginning with
14360    # underscore (_), so it is better to generate a list of symbols to export.
14361    always_export_symbols_CXX=yes
14362    if test "$aix_use_runtimelinking" = yes; then
14363      # Warning - without using the other runtime loading flags (-brtl),
14364      # -berok will link without error, but may produce a broken library.
14365      allow_undefined_flag_CXX='-berok'
14366      # Determine the default libpath from the value encoded in an empty executable.
14367      cat >conftest.$ac_ext <<_ACEOF
14368/* confdefs.h.  */
14369_ACEOF
14370cat confdefs.h >>conftest.$ac_ext
14371cat >>conftest.$ac_ext <<_ACEOF
14372/* end confdefs.h.  */
14373
14374int
14375main ()
14376{
14377
14378  ;
14379  return 0;
14380}
14381_ACEOF
14382rm -f conftest.$ac_objext conftest$ac_exeext
14383if { (ac_try="$ac_link"
14384case "(($ac_try" in
14385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14386  *) ac_try_echo=$ac_try;;
14387esac
14388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14389$as_echo "$ac_try_echo") >&5
14390  (eval "$ac_link") 2>conftest.er1
14391  ac_status=$?
14392  grep -v '^ *+' conftest.er1 >conftest.err
14393  rm -f conftest.er1
14394  cat conftest.err >&5
14395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396  (exit $ac_status); } && {
14397	 test -z "$ac_cxx_werror_flag" ||
14398	 test ! -s conftest.err
14399       } && test -s conftest$ac_exeext && {
14400	 test "$cross_compiling" = yes ||
14401	 $as_test_x conftest$ac_exeext
14402       }; then
14403
14404lt_aix_libpath_sed='
14405    /Import File Strings/,/^$/ {
14406	/^0/ {
14407	    s/^0  *\(.*\)$/\1/
14408	    p
14409	}
14410    }'
14411aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14412# Check for a 64-bit object if we didn't find anything.
14413if test -z "$aix_libpath"; then
14414  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14415fi
14416else
14417  $as_echo "$as_me: failed program was:" >&5
14418sed 's/^/| /' conftest.$ac_ext >&5
14419
14420
14421fi
14422
14423rm -rf conftest.dSYM
14424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14425      conftest$ac_exeext conftest.$ac_ext
14426if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14427
14428      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14429
14430      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"
14431     else
14432      if test "$host_cpu" = ia64; then
14433	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14434	allow_undefined_flag_CXX="-z nodefs"
14435	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"
14436      else
14437	# Determine the default libpath from the value encoded in an empty executable.
14438	cat >conftest.$ac_ext <<_ACEOF
14439/* confdefs.h.  */
14440_ACEOF
14441cat confdefs.h >>conftest.$ac_ext
14442cat >>conftest.$ac_ext <<_ACEOF
14443/* end confdefs.h.  */
14444
14445int
14446main ()
14447{
14448
14449  ;
14450  return 0;
14451}
14452_ACEOF
14453rm -f conftest.$ac_objext conftest$ac_exeext
14454if { (ac_try="$ac_link"
14455case "(($ac_try" in
14456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14457  *) ac_try_echo=$ac_try;;
14458esac
14459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14460$as_echo "$ac_try_echo") >&5
14461  (eval "$ac_link") 2>conftest.er1
14462  ac_status=$?
14463  grep -v '^ *+' conftest.er1 >conftest.err
14464  rm -f conftest.er1
14465  cat conftest.err >&5
14466  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467  (exit $ac_status); } && {
14468	 test -z "$ac_cxx_werror_flag" ||
14469	 test ! -s conftest.err
14470       } && test -s conftest$ac_exeext && {
14471	 test "$cross_compiling" = yes ||
14472	 $as_test_x conftest$ac_exeext
14473       }; then
14474
14475lt_aix_libpath_sed='
14476    /Import File Strings/,/^$/ {
14477	/^0/ {
14478	    s/^0  *\(.*\)$/\1/
14479	    p
14480	}
14481    }'
14482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14483# Check for a 64-bit object if we didn't find anything.
14484if test -z "$aix_libpath"; then
14485  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14486fi
14487else
14488  $as_echo "$as_me: failed program was:" >&5
14489sed 's/^/| /' conftest.$ac_ext >&5
14490
14491
14492fi
14493
14494rm -rf conftest.dSYM
14495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14496      conftest$ac_exeext conftest.$ac_ext
14497if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14498
14499	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14500	# Warning - without using the other run time loading flags,
14501	# -berok will link without error, but may produce a broken library.
14502	no_undefined_flag_CXX=' ${wl}-bernotok'
14503	allow_undefined_flag_CXX=' ${wl}-berok'
14504	# Exported symbols can be pulled into shared objects from archives
14505	whole_archive_flag_spec_CXX='$convenience'
14506	archive_cmds_need_lc_CXX=yes
14507	# This is similar to how AIX traditionally builds its shared libraries.
14508	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'
14509      fi
14510    fi
14511    ;;
14512
14513  beos*)
14514    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14515      allow_undefined_flag_CXX=unsupported
14516      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14517      # support --undefined.  This deserves some investigation.  FIXME
14518      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14519    else
14520      ld_shlibs_CXX=no
14521    fi
14522    ;;
14523
14524  chorus*)
14525    case $cc_basename in
14526      *)
14527	# FIXME: insert proper C++ library support
14528	ld_shlibs_CXX=no
14529	;;
14530    esac
14531    ;;
14532
14533  cygwin* | mingw* | pw32*)
14534    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14535    # as there is no search path for DLLs.
14536    hardcode_libdir_flag_spec_CXX='-L$libdir'
14537    allow_undefined_flag_CXX=unsupported
14538    always_export_symbols_CXX=no
14539    enable_shared_with_static_runtimes_CXX=yes
14540
14541    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14542      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'
14543      # If the export-symbols file already is a .def file (1st line
14544      # is EXPORTS), use it as is; otherwise, prepend...
14545      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14546	cp $export_symbols $output_objdir/$soname.def;
14547      else
14548	echo EXPORTS > $output_objdir/$soname.def;
14549	cat $export_symbols >> $output_objdir/$soname.def;
14550      fi~
14551      $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'
14552    else
14553      ld_shlibs_CXX=no
14554    fi
14555  ;;
14556      darwin* | rhapsody*)
14557        case $host_os in
14558        rhapsody* | darwin1.[012])
14559         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
14560         ;;
14561       *) # Darwin 1.3 on
14562         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14563           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14564         else
14565           case ${MACOSX_DEPLOYMENT_TARGET} in
14566             10.[012])
14567               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14568               ;;
14569             10.*)
14570               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
14571               ;;
14572           esac
14573         fi
14574         ;;
14575        esac
14576      archive_cmds_need_lc_CXX=no
14577      hardcode_direct_CXX=no
14578      hardcode_automatic_CXX=yes
14579      hardcode_shlibpath_var_CXX=unsupported
14580      whole_archive_flag_spec_CXX=''
14581      link_all_deplibs_CXX=yes
14582
14583    if test "$GXX" = yes ; then
14584      lt_int_apple_cc_single_mod=no
14585      output_verbose_link_cmd='echo'
14586      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
14587       lt_int_apple_cc_single_mod=yes
14588      fi
14589      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14590       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14591      else
14592          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'
14593        fi
14594        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14595        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14596          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14597            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}'
14598          else
14599            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}'
14600          fi
14601            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}'
14602      else
14603      case $cc_basename in
14604        xlc*)
14605         output_verbose_link_cmd='echo'
14606          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'
14607          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14608          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14609          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}'
14610          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}'
14611          ;;
14612       *)
14613         ld_shlibs_CXX=no
14614          ;;
14615      esac
14616      fi
14617        ;;
14618
14619  dgux*)
14620    case $cc_basename in
14621      ec++*)
14622	# FIXME: insert proper C++ library support
14623	ld_shlibs_CXX=no
14624	;;
14625      ghcx*)
14626	# Green Hills C++ Compiler
14627	# FIXME: insert proper C++ library support
14628	ld_shlibs_CXX=no
14629	;;
14630      *)
14631	# FIXME: insert proper C++ library support
14632	ld_shlibs_CXX=no
14633	;;
14634    esac
14635    ;;
14636  freebsd[12]*)
14637    # C++ shared libraries reported to be fairly broken before switch to ELF
14638    ld_shlibs_CXX=no
14639    ;;
14640  freebsd-elf*)
14641    archive_cmds_need_lc_CXX=no
14642    ;;
14643  freebsd* | dragonfly*)
14644    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14645    # conventions
14646    ld_shlibs_CXX=yes
14647    ;;
14648  gnu*)
14649    ;;
14650  hpux9*)
14651    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14652    hardcode_libdir_separator_CXX=:
14653    export_dynamic_flag_spec_CXX='${wl}-E'
14654    hardcode_direct_CXX=yes
14655    hardcode_minus_L_CXX=yes # Not in the search PATH,
14656				# but as the default
14657				# location of the library.
14658
14659    case $cc_basename in
14660    CC*)
14661      # FIXME: insert proper C++ library support
14662      ld_shlibs_CXX=no
14663      ;;
14664    aCC*)
14665      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'
14666      # Commands to make compiler produce verbose output that lists
14667      # what "hidden" libraries, object files and flags are used when
14668      # linking a shared library.
14669      #
14670      # There doesn't appear to be a way to prevent this compiler from
14671      # explicitly linking system object files so we need to strip them
14672      # from the output so that they don't get included in the library
14673      # dependencies.
14674      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'
14675      ;;
14676    *)
14677      if test "$GXX" = yes; then
14678        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'
14679      else
14680        # FIXME: insert proper C++ library support
14681        ld_shlibs_CXX=no
14682      fi
14683      ;;
14684    esac
14685    ;;
14686  hpux10*|hpux11*)
14687    if test $with_gnu_ld = no; then
14688      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14689      hardcode_libdir_separator_CXX=:
14690
14691      case $host_cpu in
14692      hppa*64*|ia64*) ;;
14693      *)
14694	export_dynamic_flag_spec_CXX='${wl}-E'
14695        ;;
14696      esac
14697    fi
14698    case $host_cpu in
14699    hppa*64*|ia64*)
14700      hardcode_direct_CXX=no
14701      hardcode_shlibpath_var_CXX=no
14702      ;;
14703    *)
14704      hardcode_direct_CXX=yes
14705      hardcode_minus_L_CXX=yes # Not in the search PATH,
14706					      # but as the default
14707					      # location of the library.
14708      ;;
14709    esac
14710
14711    case $cc_basename in
14712      CC*)
14713	# FIXME: insert proper C++ library support
14714	ld_shlibs_CXX=no
14715	;;
14716      aCC*)
14717	case $host_cpu in
14718	hppa*64*)
14719	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14720	  ;;
14721	ia64*)
14722	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14723	  ;;
14724	*)
14725	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14726	  ;;
14727	esac
14728	# Commands to make compiler produce verbose output that lists
14729	# what "hidden" libraries, object files and flags are used when
14730	# linking a shared library.
14731	#
14732	# There doesn't appear to be a way to prevent this compiler from
14733	# explicitly linking system object files so we need to strip them
14734	# from the output so that they don't get included in the library
14735	# dependencies.
14736	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'
14737	;;
14738      *)
14739	if test "$GXX" = yes; then
14740	  if test $with_gnu_ld = no; then
14741	    case $host_cpu in
14742	    hppa*64*)
14743	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14744	      ;;
14745	    ia64*)
14746	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14747	      ;;
14748	    *)
14749	      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'
14750	      ;;
14751	    esac
14752	  fi
14753	else
14754	  # FIXME: insert proper C++ library support
14755	  ld_shlibs_CXX=no
14756	fi
14757	;;
14758    esac
14759    ;;
14760  interix[3-9]*)
14761    hardcode_direct_CXX=no
14762    hardcode_shlibpath_var_CXX=no
14763    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14764    export_dynamic_flag_spec_CXX='${wl}-E'
14765    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14766    # Instead, shared libraries are loaded at an image base (0x10000000 by
14767    # default) and relocated if they conflict, which is a slow very memory
14768    # consuming and fragmenting process.  To avoid this, we pick a random,
14769    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14770    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14771    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'
14772    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'
14773    ;;
14774  irix5* | irix6*)
14775    case $cc_basename in
14776      CC*)
14777	# SGI C++
14778	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'
14779
14780	# Archives containing C++ object files must be created using
14781	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14782	# necessary to make sure instantiated templates are included
14783	# in the archive.
14784	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14785	;;
14786      *)
14787	if test "$GXX" = yes; then
14788	  if test "$with_gnu_ld" = no; then
14789	    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'
14790	  else
14791	    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'
14792	  fi
14793	fi
14794	link_all_deplibs_CXX=yes
14795	;;
14796    esac
14797    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14798    hardcode_libdir_separator_CXX=:
14799    ;;
14800  linux* | k*bsd*-gnu)
14801    case $cc_basename in
14802      KCC*)
14803	# Kuck and Associates, Inc. (KAI) C++ Compiler
14804
14805	# KCC will only create a shared library if the output file
14806	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14807	# to its proper name (with version) after linking.
14808	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'
14809	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'
14810	# Commands to make compiler produce verbose output that lists
14811	# what "hidden" libraries, object files and flags are used when
14812	# linking a shared library.
14813	#
14814	# There doesn't appear to be a way to prevent this compiler from
14815	# explicitly linking system object files so we need to strip them
14816	# from the output so that they don't get included in the library
14817	# dependencies.
14818	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'
14819
14820	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14821	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14822
14823	# Archives containing C++ object files must be created using
14824	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14825	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14826	;;
14827      icpc*)
14828	# Intel C++
14829	with_gnu_ld=yes
14830	# version 8.0 and above of icpc choke on multiply defined symbols
14831	# if we add $predep_objects and $postdep_objects, however 7.1 and
14832	# earlier do not add the objects themselves.
14833	case `$CC -V 2>&1` in
14834	*"Version 7."*)
14835  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14836  	  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'
14837	  ;;
14838	*)  # Version 8.0 or newer
14839	  tmp_idyn=
14840	  case $host_cpu in
14841	    ia64*) tmp_idyn=' -i_dynamic';;
14842	  esac
14843  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14844	  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'
14845	  ;;
14846	esac
14847	archive_cmds_need_lc_CXX=no
14848	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14849	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14850	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14851	;;
14852      pgCC*)
14853        # Portland Group C++ compiler
14854	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14855  	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'
14856
14857	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14858	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14859	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'
14860        ;;
14861      cxx*)
14862	# Compaq C++
14863	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864	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'
14865
14866	runpath_var=LD_RUN_PATH
14867	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14868	hardcode_libdir_separator_CXX=:
14869
14870	# Commands to make compiler produce verbose output that lists
14871	# what "hidden" libraries, object files and flags are used when
14872	# linking a shared library.
14873	#
14874	# There doesn't appear to be a way to prevent this compiler from
14875	# explicitly linking system object files so we need to strip them
14876	# from the output so that they don't get included in the library
14877	# dependencies.
14878	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'
14879	;;
14880      *)
14881	case `$CC -V 2>&1 | sed 5q` in
14882	*Sun\ C*)
14883	  # Sun C++ 5.9
14884	  no_undefined_flag_CXX=' -zdefs'
14885	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14886	  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'
14887	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14888	  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'
14889
14890	  # Not sure whether something based on
14891	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14892	  # would be better.
14893	  output_verbose_link_cmd='echo'
14894
14895	  # Archives containing C++ object files must be created using
14896	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14897	  # necessary to make sure instantiated templates are included
14898	  # in the archive.
14899	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14900	  ;;
14901	esac
14902	;;
14903    esac
14904    ;;
14905  lynxos*)
14906    # FIXME: insert proper C++ library support
14907    ld_shlibs_CXX=no
14908    ;;
14909  m88k*)
14910    # FIXME: insert proper C++ library support
14911    ld_shlibs_CXX=no
14912    ;;
14913  mvs*)
14914    case $cc_basename in
14915      cxx*)
14916	# FIXME: insert proper C++ library support
14917	ld_shlibs_CXX=no
14918	;;
14919      *)
14920	# FIXME: insert proper C++ library support
14921	ld_shlibs_CXX=no
14922	;;
14923    esac
14924    ;;
14925  netbsd*)
14926    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14927      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14928      wlarc=
14929      hardcode_libdir_flag_spec_CXX='-R$libdir'
14930      hardcode_direct_CXX=yes
14931      hardcode_shlibpath_var_CXX=no
14932    fi
14933    # Workaround some broken pre-1.5 toolchains
14934    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14935    ;;
14936  openbsd2*)
14937    # C++ shared libraries are fairly broken
14938    ld_shlibs_CXX=no
14939    ;;
14940  openbsd*)
14941    if test -f /usr/libexec/ld.so; then
14942      hardcode_direct_CXX=yes
14943      hardcode_shlibpath_var_CXX=no
14944      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14945      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14946      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14947	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14948	export_dynamic_flag_spec_CXX='${wl}-E'
14949	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14950      fi
14951      output_verbose_link_cmd='echo'
14952    else
14953      ld_shlibs_CXX=no
14954    fi
14955    ;;
14956  osf3*)
14957    case $cc_basename in
14958      KCC*)
14959	# Kuck and Associates, Inc. (KAI) C++ Compiler
14960
14961	# KCC will only create a shared library if the output file
14962	# ends with ".so" (or ".sl" for HP-UX), so rename the library
14963	# to its proper name (with version) after linking.
14964	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'
14965
14966	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14967	hardcode_libdir_separator_CXX=:
14968
14969	# Archives containing C++ object files must be created using
14970	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14971	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14972
14973	;;
14974      RCC*)
14975	# Rational C++ 2.4.1
14976	# FIXME: insert proper C++ library support
14977	ld_shlibs_CXX=no
14978	;;
14979      cxx*)
14980	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14981	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'
14982
14983	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14984	hardcode_libdir_separator_CXX=:
14985
14986	# Commands to make compiler produce verbose output that lists
14987	# what "hidden" libraries, object files and flags are used when
14988	# linking a shared library.
14989	#
14990	# There doesn't appear to be a way to prevent this compiler from
14991	# explicitly linking system object files so we need to strip them
14992	# from the output so that they don't get included in the library
14993	# dependencies.
14994	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'
14995	;;
14996      *)
14997	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14998	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14999	  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'
15000
15001	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15002	  hardcode_libdir_separator_CXX=:
15003
15004	  # Commands to make compiler produce verbose output that lists
15005	  # what "hidden" libraries, object files and flags are used when
15006	  # linking a shared library.
15007	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15008
15009	else
15010	  # FIXME: insert proper C++ library support
15011	  ld_shlibs_CXX=no
15012	fi
15013	;;
15014    esac
15015    ;;
15016  osf4* | osf5*)
15017    case $cc_basename in
15018      KCC*)
15019	# Kuck and Associates, Inc. (KAI) C++ Compiler
15020
15021	# KCC will only create a shared library if the output file
15022	# ends with ".so" (or ".sl" for HP-UX), so rename the library
15023	# to its proper name (with version) after linking.
15024	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'
15025
15026	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15027	hardcode_libdir_separator_CXX=:
15028
15029	# Archives containing C++ object files must be created using
15030	# the KAI C++ compiler.
15031	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15032	;;
15033      RCC*)
15034	# Rational C++ 2.4.1
15035	# FIXME: insert proper C++ library support
15036	ld_shlibs_CXX=no
15037	;;
15038      cxx*)
15039	allow_undefined_flag_CXX=' -expect_unresolved \*'
15040	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'
15041	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15042	  echo "-hidden">> $lib.exp~
15043	  $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~
15044	  $rm $lib.exp'
15045
15046	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15047	hardcode_libdir_separator_CXX=:
15048
15049	# Commands to make compiler produce verbose output that lists
15050	# what "hidden" libraries, object files and flags are used when
15051	# linking a shared library.
15052	#
15053	# There doesn't appear to be a way to prevent this compiler from
15054	# explicitly linking system object files so we need to strip them
15055	# from the output so that they don't get included in the library
15056	# dependencies.
15057	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'
15058	;;
15059      *)
15060	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15061	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15062	 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'
15063
15064	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15065	  hardcode_libdir_separator_CXX=:
15066
15067	  # Commands to make compiler produce verbose output that lists
15068	  # what "hidden" libraries, object files and flags are used when
15069	  # linking a shared library.
15070	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15071
15072	else
15073	  # FIXME: insert proper C++ library support
15074	  ld_shlibs_CXX=no
15075	fi
15076	;;
15077    esac
15078    ;;
15079  psos*)
15080    # FIXME: insert proper C++ library support
15081    ld_shlibs_CXX=no
15082    ;;
15083  sunos4*)
15084    case $cc_basename in
15085      CC*)
15086	# Sun C++ 4.x
15087	# FIXME: insert proper C++ library support
15088	ld_shlibs_CXX=no
15089	;;
15090      lcc*)
15091	# Lucid
15092	# FIXME: insert proper C++ library support
15093	ld_shlibs_CXX=no
15094	;;
15095      *)
15096	# FIXME: insert proper C++ library support
15097	ld_shlibs_CXX=no
15098	;;
15099    esac
15100    ;;
15101  solaris*)
15102    case $cc_basename in
15103      CC*)
15104	# Sun C++ 4.2, 5.x and Centerline C++
15105        archive_cmds_need_lc_CXX=yes
15106	no_undefined_flag_CXX=' -zdefs'
15107	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15108	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15109	$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'
15110
15111	hardcode_libdir_flag_spec_CXX='-R$libdir'
15112	hardcode_shlibpath_var_CXX=no
15113	case $host_os in
15114	  solaris2.[0-5] | solaris2.[0-5].*) ;;
15115	  *)
15116	    # The compiler driver will combine and reorder linker options,
15117	    # but understands `-z linker_flag'.
15118	    # Supported since Solaris 2.6 (maybe 2.5.1?)
15119	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15120	    ;;
15121	esac
15122	link_all_deplibs_CXX=yes
15123
15124	output_verbose_link_cmd='echo'
15125
15126	# Archives containing C++ object files must be created using
15127	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
15128	# necessary to make sure instantiated templates are included
15129	# in the archive.
15130	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15131	;;
15132      gcx*)
15133	# Green Hills C++ Compiler
15134	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15135
15136	# The C++ compiler must be used to create the archive.
15137	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15138	;;
15139      *)
15140	# GNU C++ compiler with Solaris linker
15141	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15142	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15143	  if $CC --version | grep -v '^2\.7' > /dev/null; then
15144	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15145	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15146		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15147
15148	    # Commands to make compiler produce verbose output that lists
15149	    # what "hidden" libraries, object files and flags are used when
15150	    # linking a shared library.
15151	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15152	  else
15153	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
15154	    # platform.
15155	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15156	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15157		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15158
15159	    # Commands to make compiler produce verbose output that lists
15160	    # what "hidden" libraries, object files and flags are used when
15161	    # linking a shared library.
15162	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15163	  fi
15164
15165	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15166	  case $host_os in
15167	  solaris2.[0-5] | solaris2.[0-5].*) ;;
15168	  *)
15169	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15170	    ;;
15171	  esac
15172	fi
15173	;;
15174    esac
15175    ;;
15176  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15177    no_undefined_flag_CXX='${wl}-z,text'
15178    archive_cmds_need_lc_CXX=no
15179    hardcode_shlibpath_var_CXX=no
15180    runpath_var='LD_RUN_PATH'
15181
15182    case $cc_basename in
15183      CC*)
15184	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15185	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15186	;;
15187      *)
15188	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15189	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15190	;;
15191    esac
15192    ;;
15193  sysv5* | sco3.2v5* | sco5v6*)
15194    # Note: We can NOT use -z defs as we might desire, because we do not
15195    # link with -lc, and that would cause any symbols used from libc to
15196    # always be unresolved, which means just about no library would
15197    # ever link correctly.  If we're not using GNU ld we use -z text
15198    # though, which does catch some bad symbols but isn't as heavy-handed
15199    # as -z defs.
15200    # For security reasons, it is highly recommended that you always
15201    # use absolute paths for naming shared libraries, and exclude the
15202    # DT_RUNPATH tag from executables and libraries.  But doing so
15203    # requires that you compile everything twice, which is a pain.
15204    # So that behaviour is only enabled if SCOABSPATH is set to a
15205    # non-empty value in the environment.  Most likely only useful for
15206    # creating official distributions of packages.
15207    # This is a hack until libtool officially supports absolute path
15208    # names for shared libraries.
15209    no_undefined_flag_CXX='${wl}-z,text'
15210    allow_undefined_flag_CXX='${wl}-z,nodefs'
15211    archive_cmds_need_lc_CXX=no
15212    hardcode_shlibpath_var_CXX=no
15213    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15214    hardcode_libdir_separator_CXX=':'
15215    link_all_deplibs_CXX=yes
15216    export_dynamic_flag_spec_CXX='${wl}-Bexport'
15217    runpath_var='LD_RUN_PATH'
15218
15219    case $cc_basename in
15220      CC*)
15221	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15222	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15223	;;
15224      *)
15225	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15226	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15227	;;
15228    esac
15229    ;;
15230  tandem*)
15231    case $cc_basename in
15232      NCC*)
15233	# NonStop-UX NCC 3.20
15234	# FIXME: insert proper C++ library support
15235	ld_shlibs_CXX=no
15236	;;
15237      *)
15238	# FIXME: insert proper C++ library support
15239	ld_shlibs_CXX=no
15240	;;
15241    esac
15242    ;;
15243  vxworks*)
15244    # FIXME: insert proper C++ library support
15245    ld_shlibs_CXX=no
15246    ;;
15247  *)
15248    # FIXME: insert proper C++ library support
15249    ld_shlibs_CXX=no
15250    ;;
15251esac
15252{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15253$as_echo "$ld_shlibs_CXX" >&6; }
15254test "$ld_shlibs_CXX" = no && can_build_shared=no
15255
15256GCC_CXX="$GXX"
15257LD_CXX="$LD"
15258
15259## CAVEAT EMPTOR:
15260## There is no encapsulation within the following macros, do not change
15261## the running order or otherwise move them around unless you know exactly
15262## what you are doing...
15263
15264cat > conftest.$ac_ext <<EOF
15265class Foo
15266{
15267public:
15268  Foo (void) { a = 0; }
15269private:
15270  int a;
15271};
15272EOF
15273
15274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15275  (eval $ac_compile) 2>&5
15276  ac_status=$?
15277  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278  (exit $ac_status); }; then
15279  # Parse the compiler output and extract the necessary
15280  # objects, libraries and library flags.
15281
15282  # Sentinel used to keep track of whether or not we are before
15283  # the conftest object file.
15284  pre_test_object_deps_done=no
15285
15286  # The `*' in the case matches for architectures that use `case' in
15287  # $output_verbose_cmd can trigger glob expansion during the loop
15288  # eval without this substitution.
15289  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
15290
15291  for p in `eval $output_verbose_link_cmd`; do
15292    case $p in
15293
15294    -L* | -R* | -l*)
15295       # Some compilers place space between "-{L,R}" and the path.
15296       # Remove the space.
15297       if test $p = "-L" \
15298	  || test $p = "-R"; then
15299	 prev=$p
15300	 continue
15301       else
15302	 prev=
15303       fi
15304
15305       if test "$pre_test_object_deps_done" = no; then
15306	 case $p in
15307	 -L* | -R*)
15308	   # Internal compiler library paths should come after those
15309	   # provided the user.  The postdeps already come after the
15310	   # user supplied libs so there is no need to process them.
15311	   if test -z "$compiler_lib_search_path_CXX"; then
15312	     compiler_lib_search_path_CXX="${prev}${p}"
15313	   else
15314	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15315	   fi
15316	   ;;
15317	 # The "-l" case would never come before the object being
15318	 # linked, so don't bother handling this case.
15319	 esac
15320       else
15321	 if test -z "$postdeps_CXX"; then
15322	   postdeps_CXX="${prev}${p}"
15323	 else
15324	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15325	 fi
15326       fi
15327       ;;
15328
15329    *.$objext)
15330       # This assumes that the test object file only shows up
15331       # once in the compiler output.
15332       if test "$p" = "conftest.$objext"; then
15333	 pre_test_object_deps_done=yes
15334	 continue
15335       fi
15336
15337       if test "$pre_test_object_deps_done" = no; then
15338	 if test -z "$predep_objects_CXX"; then
15339	   predep_objects_CXX="$p"
15340	 else
15341	   predep_objects_CXX="$predep_objects_CXX $p"
15342	 fi
15343       else
15344	 if test -z "$postdep_objects_CXX"; then
15345	   postdep_objects_CXX="$p"
15346	 else
15347	   postdep_objects_CXX="$postdep_objects_CXX $p"
15348	 fi
15349       fi
15350       ;;
15351
15352    *) ;; # Ignore the rest.
15353
15354    esac
15355  done
15356
15357  # Clean up.
15358  rm -f a.out a.exe
15359else
15360  echo "libtool.m4: error: problem compiling CXX test program"
15361fi
15362
15363$rm -f confest.$objext
15364
15365# PORTME: override above test on systems where it is broken
15366case $host_os in
15367interix[3-9]*)
15368  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15369  # hack all around it, let's just trust "g++" to DTRT.
15370  predep_objects_CXX=
15371  postdep_objects_CXX=
15372  postdeps_CXX=
15373  ;;
15374
15375linux*)
15376  case `$CC -V 2>&1 | sed 5q` in
15377  *Sun\ C*)
15378    # Sun C++ 5.9
15379    #
15380    # The more standards-conforming stlport4 library is
15381    # incompatible with the Cstd library. Avoid specifying
15382    # it if it's in CXXFLAGS. Ignore libCrun as
15383    # -library=stlport4 depends on it.
15384    case " $CXX $CXXFLAGS " in
15385    *" -library=stlport4 "*)
15386      solaris_use_stlport4=yes
15387      ;;
15388    esac
15389    if test "$solaris_use_stlport4" != yes; then
15390      postdeps_CXX='-library=Cstd -library=Crun'
15391    fi
15392    ;;
15393  esac
15394  ;;
15395
15396solaris*)
15397  case $cc_basename in
15398  CC*)
15399    # The more standards-conforming stlport4 library is
15400    # incompatible with the Cstd library. Avoid specifying
15401    # it if it's in CXXFLAGS. Ignore libCrun as
15402    # -library=stlport4 depends on it.
15403    case " $CXX $CXXFLAGS " in
15404    *" -library=stlport4 "*)
15405      solaris_use_stlport4=yes
15406      ;;
15407    esac
15408
15409    # Adding this requires a known-good setup of shared libraries for
15410    # Sun compiler versions before 5.6, else PIC objects from an old
15411    # archive will be linked into the output, leading to subtle bugs.
15412    if test "$solaris_use_stlport4" != yes; then
15413      postdeps_CXX='-library=Cstd -library=Crun'
15414    fi
15415    ;;
15416  esac
15417  ;;
15418esac
15419
15420
15421case " $postdeps_CXX " in
15422*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15423esac
15424
15425lt_prog_compiler_wl_CXX=
15426lt_prog_compiler_pic_CXX=
15427lt_prog_compiler_static_CXX=
15428
15429{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15430$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15431
15432  # C++ specific cases for pic, static, wl, etc.
15433  if test "$GXX" = yes; then
15434    lt_prog_compiler_wl_CXX='-Wl,'
15435    lt_prog_compiler_static_CXX='-static'
15436
15437    case $host_os in
15438    aix*)
15439      # All AIX code is PIC.
15440      if test "$host_cpu" = ia64; then
15441	# AIX 5 now supports IA64 processor
15442	lt_prog_compiler_static_CXX='-Bstatic'
15443      fi
15444      ;;
15445    amigaos*)
15446      # FIXME: we need at least 68020 code to build shared libraries, but
15447      # adding the `-m68020' flag to GCC prevents building anything better,
15448      # like `-m68040'.
15449      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15450      ;;
15451    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15452      # PIC is the default for these OSes.
15453      ;;
15454    mingw* | cygwin* | os2* | pw32*)
15455      # This hack is so that the source file can tell whether it is being
15456      # built for inclusion in a dll (and should export symbols for example).
15457      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15458      # (--disable-auto-import) libraries
15459      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15460      ;;
15461    darwin* | rhapsody*)
15462      # PIC is the default on this platform
15463      # Common symbols not allowed in MH_DYLIB files
15464      lt_prog_compiler_pic_CXX='-fno-common'
15465      ;;
15466    *djgpp*)
15467      # DJGPP does not support shared libraries at all
15468      lt_prog_compiler_pic_CXX=
15469      ;;
15470    interix[3-9]*)
15471      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15472      # Instead, we relocate shared libraries at runtime.
15473      ;;
15474    sysv4*MP*)
15475      if test -d /usr/nec; then
15476	lt_prog_compiler_pic_CXX=-Kconform_pic
15477      fi
15478      ;;
15479    hpux*)
15480      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15481      # not for PA HP-UX.
15482      case $host_cpu in
15483      hppa*64*|ia64*)
15484	;;
15485      *)
15486	lt_prog_compiler_pic_CXX='-fPIC'
15487	;;
15488      esac
15489      ;;
15490    *)
15491      lt_prog_compiler_pic_CXX='-fPIC'
15492      ;;
15493    esac
15494  else
15495    case $host_os in
15496      aix4* | aix5*)
15497	# All AIX code is PIC.
15498	if test "$host_cpu" = ia64; then
15499	  # AIX 5 now supports IA64 processor
15500	  lt_prog_compiler_static_CXX='-Bstatic'
15501	else
15502	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15503	fi
15504	;;
15505      chorus*)
15506	case $cc_basename in
15507	cxch68*)
15508	  # Green Hills C++ Compiler
15509	  # _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"
15510	  ;;
15511	esac
15512	;;
15513       darwin*)
15514         # PIC is the default on this platform
15515         # Common symbols not allowed in MH_DYLIB files
15516         case $cc_basename in
15517           xlc*)
15518           lt_prog_compiler_pic_CXX='-qnocommon'
15519           lt_prog_compiler_wl_CXX='-Wl,'
15520           ;;
15521         esac
15522       ;;
15523      dgux*)
15524	case $cc_basename in
15525	  ec++*)
15526	    lt_prog_compiler_pic_CXX='-KPIC'
15527	    ;;
15528	  ghcx*)
15529	    # Green Hills C++ Compiler
15530	    lt_prog_compiler_pic_CXX='-pic'
15531	    ;;
15532	  *)
15533	    ;;
15534	esac
15535	;;
15536      freebsd* | dragonfly*)
15537	# FreeBSD uses GNU C++
15538	;;
15539      hpux9* | hpux10* | hpux11*)
15540	case $cc_basename in
15541	  CC*)
15542	    lt_prog_compiler_wl_CXX='-Wl,'
15543	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15544	    if test "$host_cpu" != ia64; then
15545	      lt_prog_compiler_pic_CXX='+Z'
15546	    fi
15547	    ;;
15548	  aCC*)
15549	    lt_prog_compiler_wl_CXX='-Wl,'
15550	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15551	    case $host_cpu in
15552	    hppa*64*|ia64*)
15553	      # +Z the default
15554	      ;;
15555	    *)
15556	      lt_prog_compiler_pic_CXX='+Z'
15557	      ;;
15558	    esac
15559	    ;;
15560	  *)
15561	    ;;
15562	esac
15563	;;
15564      interix*)
15565	# This is c89, which is MS Visual C++ (no shared libs)
15566	# Anyone wants to do a port?
15567	;;
15568      irix5* | irix6* | nonstopux*)
15569	case $cc_basename in
15570	  CC*)
15571	    lt_prog_compiler_wl_CXX='-Wl,'
15572	    lt_prog_compiler_static_CXX='-non_shared'
15573	    # CC pic flag -KPIC is the default.
15574	    ;;
15575	  *)
15576	    ;;
15577	esac
15578	;;
15579      linux* | k*bsd*-gnu)
15580	case $cc_basename in
15581	  KCC*)
15582	    # KAI C++ Compiler
15583	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15584	    lt_prog_compiler_pic_CXX='-fPIC'
15585	    ;;
15586	  icpc* | ecpc*)
15587	    # Intel C++
15588	    lt_prog_compiler_wl_CXX='-Wl,'
15589	    lt_prog_compiler_pic_CXX='-KPIC'
15590	    lt_prog_compiler_static_CXX='-static'
15591	    ;;
15592	  pgCC*)
15593	    # Portland Group C++ compiler.
15594	    lt_prog_compiler_wl_CXX='-Wl,'
15595	    lt_prog_compiler_pic_CXX='-fpic'
15596	    lt_prog_compiler_static_CXX='-Bstatic'
15597	    ;;
15598	  cxx*)
15599	    # Compaq C++
15600	    # Make sure the PIC flag is empty.  It appears that all Alpha
15601	    # Linux and Compaq Tru64 Unix objects are PIC.
15602	    lt_prog_compiler_pic_CXX=
15603	    lt_prog_compiler_static_CXX='-non_shared'
15604	    ;;
15605	  *)
15606	    case `$CC -V 2>&1 | sed 5q` in
15607	    *Sun\ C*)
15608	      # Sun C++ 5.9
15609	      lt_prog_compiler_pic_CXX='-KPIC'
15610	      lt_prog_compiler_static_CXX='-Bstatic'
15611	      lt_prog_compiler_wl_CXX='-Qoption ld '
15612	      ;;
15613	    esac
15614	    ;;
15615	esac
15616	;;
15617      lynxos*)
15618	;;
15619      m88k*)
15620	;;
15621      mvs*)
15622	case $cc_basename in
15623	  cxx*)
15624	    lt_prog_compiler_pic_CXX='-W c,exportall'
15625	    ;;
15626	  *)
15627	    ;;
15628	esac
15629	;;
15630      netbsd*)
15631	;;
15632      osf3* | osf4* | osf5*)
15633	case $cc_basename in
15634	  KCC*)
15635	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15636	    ;;
15637	  RCC*)
15638	    # Rational C++ 2.4.1
15639	    lt_prog_compiler_pic_CXX='-pic'
15640	    ;;
15641	  cxx*)
15642	    # Digital/Compaq C++
15643	    lt_prog_compiler_wl_CXX='-Wl,'
15644	    # Make sure the PIC flag is empty.  It appears that all Alpha
15645	    # Linux and Compaq Tru64 Unix objects are PIC.
15646	    lt_prog_compiler_pic_CXX=
15647	    lt_prog_compiler_static_CXX='-non_shared'
15648	    ;;
15649	  *)
15650	    ;;
15651	esac
15652	;;
15653      psos*)
15654	;;
15655      solaris*)
15656	case $cc_basename in
15657	  CC*)
15658	    # Sun C++ 4.2, 5.x and Centerline C++
15659	    lt_prog_compiler_pic_CXX='-KPIC'
15660	    lt_prog_compiler_static_CXX='-Bstatic'
15661	    lt_prog_compiler_wl_CXX='-Qoption ld '
15662	    ;;
15663	  gcx*)
15664	    # Green Hills C++ Compiler
15665	    lt_prog_compiler_pic_CXX='-PIC'
15666	    ;;
15667	  *)
15668	    ;;
15669	esac
15670	;;
15671      sunos4*)
15672	case $cc_basename in
15673	  CC*)
15674	    # Sun C++ 4.x
15675	    lt_prog_compiler_pic_CXX='-pic'
15676	    lt_prog_compiler_static_CXX='-Bstatic'
15677	    ;;
15678	  lcc*)
15679	    # Lucid
15680	    lt_prog_compiler_pic_CXX='-pic'
15681	    ;;
15682	  *)
15683	    ;;
15684	esac
15685	;;
15686      tandem*)
15687	case $cc_basename in
15688	  NCC*)
15689	    # NonStop-UX NCC 3.20
15690	    lt_prog_compiler_pic_CXX='-KPIC'
15691	    ;;
15692	  *)
15693	    ;;
15694	esac
15695	;;
15696      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15697	case $cc_basename in
15698	  CC*)
15699	    lt_prog_compiler_wl_CXX='-Wl,'
15700	    lt_prog_compiler_pic_CXX='-KPIC'
15701	    lt_prog_compiler_static_CXX='-Bstatic'
15702	    ;;
15703	esac
15704	;;
15705      vxworks*)
15706	;;
15707      *)
15708	lt_prog_compiler_can_build_shared_CXX=no
15709	;;
15710    esac
15711  fi
15712
15713{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
15714$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15715
15716#
15717# Check to make sure the PIC flag actually works.
15718#
15719if test -n "$lt_prog_compiler_pic_CXX"; then
15720
15721{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15722$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15723if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
15724  $as_echo_n "(cached) " >&6
15725else
15726  lt_prog_compiler_pic_works_CXX=no
15727  ac_outfile=conftest.$ac_objext
15728   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15729   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15730   # Insert the option either (1) after the last *FLAGS variable, or
15731   # (2) before a word containing "conftest.", or (3) at the end.
15732   # Note that $ac_compile itself does not contain backslashes and begins
15733   # with a dollar sign (not a hyphen), so the echo should work correctly.
15734   # The option is referenced via a variable to avoid confusing sed.
15735   lt_compile=`echo "$ac_compile" | $SED \
15736   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15737   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15738   -e 's:$: $lt_compiler_flag:'`
15739   (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
15740   (eval "$lt_compile" 2>conftest.err)
15741   ac_status=$?
15742   cat conftest.err >&5
15743   echo "$as_me:15743: \$? = $ac_status" >&5
15744   if (exit $ac_status) && test -s "$ac_outfile"; then
15745     # The compiler can only warn and ignore the option if not recognized
15746     # So say no if there are warnings other than the usual output.
15747     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15748     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15749     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15750       lt_prog_compiler_pic_works_CXX=yes
15751     fi
15752   fi
15753   $rm conftest*
15754
15755fi
15756{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15757$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
15758
15759if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15760    case $lt_prog_compiler_pic_CXX in
15761     "" | " "*) ;;
15762     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15763     esac
15764else
15765    lt_prog_compiler_pic_CXX=
15766     lt_prog_compiler_can_build_shared_CXX=no
15767fi
15768
15769fi
15770case $host_os in
15771  # For platforms which do not support PIC, -DPIC is meaningless:
15772  *djgpp*)
15773    lt_prog_compiler_pic_CXX=
15774    ;;
15775  *)
15776    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15777    ;;
15778esac
15779
15780#
15781# Check to make sure the static flag actually works.
15782#
15783wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15784{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15785$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15786if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
15787  $as_echo_n "(cached) " >&6
15788else
15789  lt_prog_compiler_static_works_CXX=no
15790   save_LDFLAGS="$LDFLAGS"
15791   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15792   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15793   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15794     # The linker can only warn and ignore the option if not recognized
15795     # So say no if there are warnings
15796     if test -s conftest.err; then
15797       # Append any errors to the config.log.
15798       cat conftest.err 1>&5
15799       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15800       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15801       if diff conftest.exp conftest.er2 >/dev/null; then
15802         lt_prog_compiler_static_works_CXX=yes
15803       fi
15804     else
15805       lt_prog_compiler_static_works_CXX=yes
15806     fi
15807   fi
15808   $rm conftest*
15809   LDFLAGS="$save_LDFLAGS"
15810
15811fi
15812{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
15813$as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
15814
15815if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
15816    :
15817else
15818    lt_prog_compiler_static_CXX=
15819fi
15820
15821
15822{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15823$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15824if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15825  $as_echo_n "(cached) " >&6
15826else
15827  lt_cv_prog_compiler_c_o_CXX=no
15828   $rm -r conftest 2>/dev/null
15829   mkdir conftest
15830   cd conftest
15831   mkdir out
15832   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15833
15834   lt_compiler_flag="-o out/conftest2.$ac_objext"
15835   # Insert the option either (1) after the last *FLAGS variable, or
15836   # (2) before a word containing "conftest.", or (3) at the end.
15837   # Note that $ac_compile itself does not contain backslashes and begins
15838   # with a dollar sign (not a hyphen), so the echo should work correctly.
15839   lt_compile=`echo "$ac_compile" | $SED \
15840   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15841   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15842   -e 's:$: $lt_compiler_flag:'`
15843   (eval echo "\"\$as_me:15843: $lt_compile\"" >&5)
15844   (eval "$lt_compile" 2>out/conftest.err)
15845   ac_status=$?
15846   cat out/conftest.err >&5
15847   echo "$as_me:15847: \$? = $ac_status" >&5
15848   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15849   then
15850     # The compiler can only warn and ignore the option if not recognized
15851     # So say no if there are warnings
15852     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15853     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15854     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15855       lt_cv_prog_compiler_c_o_CXX=yes
15856     fi
15857   fi
15858   chmod u+w . 2>&5
15859   $rm conftest*
15860   # SGI C++ compiler will create directory out/ii_files/ for
15861   # template instantiation
15862   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15863   $rm out/* && rmdir out
15864   cd ..
15865   rmdir conftest
15866   $rm conftest*
15867
15868fi
15869{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15870$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15871
15872
15873hard_links="nottested"
15874if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15875  # do not overwrite the value of need_locks provided by the user
15876  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15877$as_echo_n "checking if we can lock with hard links... " >&6; }
15878  hard_links=yes
15879  $rm conftest*
15880  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15881  touch conftest.a
15882  ln conftest.a conftest.b 2>&5 || hard_links=no
15883  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15884  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15885$as_echo "$hard_links" >&6; }
15886  if test "$hard_links" = no; then
15887    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15888$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15889    need_locks=warn
15890  fi
15891else
15892  need_locks=no
15893fi
15894
15895{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15896$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15897
15898  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15899  case $host_os in
15900  aix4* | aix5*)
15901    # If we're using GNU nm, then we don't want the "-C" option.
15902    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15903    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15904      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'
15905    else
15906      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'
15907    fi
15908    ;;
15909  pw32*)
15910    export_symbols_cmds_CXX="$ltdll_cmds"
15911  ;;
15912  cygwin* | mingw*)
15913    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'
15914  ;;
15915  *)
15916    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15917  ;;
15918  esac
15919
15920{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15921$as_echo "$ld_shlibs_CXX" >&6; }
15922test "$ld_shlibs_CXX" = no && can_build_shared=no
15923
15924#
15925# Do we need to explicitly link libc?
15926#
15927case "x$archive_cmds_need_lc_CXX" in
15928x|xyes)
15929  # Assume -lc should be added
15930  archive_cmds_need_lc_CXX=yes
15931
15932  if test "$enable_shared" = yes && test "$GCC" = yes; then
15933    case $archive_cmds_CXX in
15934    *'~'*)
15935      # FIXME: we may have to deal with multi-command sequences.
15936      ;;
15937    '$CC '*)
15938      # Test whether the compiler implicitly links with -lc since on some
15939      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15940      # to ld, don't add -lc before -lgcc.
15941      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15942$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15943      $rm conftest*
15944      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15945
15946      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15947  (eval $ac_compile) 2>&5
15948  ac_status=$?
15949  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950  (exit $ac_status); } 2>conftest.err; then
15951        soname=conftest
15952        lib=conftest
15953        libobjs=conftest.$ac_objext
15954        deplibs=
15955        wl=$lt_prog_compiler_wl_CXX
15956	pic_flag=$lt_prog_compiler_pic_CXX
15957        compiler_flags=-v
15958        linker_flags=-v
15959        verstring=
15960        output_objdir=.
15961        libname=conftest
15962        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15963        allow_undefined_flag_CXX=
15964        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15965  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15966  ac_status=$?
15967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968  (exit $ac_status); }
15969        then
15970	  archive_cmds_need_lc_CXX=no
15971        else
15972	  archive_cmds_need_lc_CXX=yes
15973        fi
15974        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15975      else
15976        cat conftest.err 1>&5
15977      fi
15978      $rm conftest*
15979      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15980$as_echo "$archive_cmds_need_lc_CXX" >&6; }
15981      ;;
15982    esac
15983  fi
15984  ;;
15985esac
15986
15987{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15988$as_echo_n "checking dynamic linker characteristics... " >&6; }
15989library_names_spec=
15990libname_spec='lib$name'
15991soname_spec=
15992shrext_cmds=".so"
15993postinstall_cmds=
15994postuninstall_cmds=
15995finish_cmds=
15996finish_eval=
15997shlibpath_var=
15998shlibpath_overrides_runpath=unknown
15999version_type=none
16000dynamic_linker="$host_os ld.so"
16001sys_lib_dlsearch_path_spec="/lib /usr/lib"
16002
16003need_lib_prefix=unknown
16004hardcode_into_libs=no
16005
16006# when you set need_version to no, make sure it does not cause -set_version
16007# flags to be left without arguments
16008need_version=unknown
16009
16010case $host_os in
16011aix3*)
16012  version_type=linux
16013  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16014  shlibpath_var=LIBPATH
16015
16016  # AIX 3 has no versioning support, so we append a major version to the name.
16017  soname_spec='${libname}${release}${shared_ext}$major'
16018  ;;
16019
16020aix4* | aix5*)
16021  version_type=linux
16022  need_lib_prefix=no
16023  need_version=no
16024  hardcode_into_libs=yes
16025  if test "$host_cpu" = ia64; then
16026    # AIX 5 supports IA64
16027    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16028    shlibpath_var=LD_LIBRARY_PATH
16029  else
16030    # With GCC up to 2.95.x, collect2 would create an import file
16031    # for dependence libraries.  The import file would start with
16032    # the line `#! .'.  This would cause the generated library to
16033    # depend on `.', always an invalid library.  This was fixed in
16034    # development snapshots of GCC prior to 3.0.
16035    case $host_os in
16036      aix4 | aix4.[01] | aix4.[01].*)
16037      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16038	   echo ' yes '
16039	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16040	:
16041      else
16042	can_build_shared=no
16043      fi
16044      ;;
16045    esac
16046    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16047    # soname into executable. Probably we can add versioning support to
16048    # collect2, so additional links can be useful in future.
16049    if test "$aix_use_runtimelinking" = yes; then
16050      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16051      # instead of lib<name>.a to let people know that these are not
16052      # typical AIX shared libraries.
16053      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054    else
16055      # We preserve .a as extension for shared libraries through AIX4.2
16056      # and later when we are not doing run time linking.
16057      library_names_spec='${libname}${release}.a $libname.a'
16058      soname_spec='${libname}${release}${shared_ext}$major'
16059    fi
16060    shlibpath_var=LIBPATH
16061  fi
16062  ;;
16063
16064amigaos*)
16065  library_names_spec='$libname.ixlibrary $libname.a'
16066  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16067  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'
16068  ;;
16069
16070beos*)
16071  library_names_spec='${libname}${shared_ext}'
16072  dynamic_linker="$host_os ld.so"
16073  shlibpath_var=LIBRARY_PATH
16074  ;;
16075
16076bsdi[45]*)
16077  version_type=linux
16078  need_version=no
16079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080  soname_spec='${libname}${release}${shared_ext}$major'
16081  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16082  shlibpath_var=LD_LIBRARY_PATH
16083  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16084  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16085  # the default ld.so.conf also contains /usr/contrib/lib and
16086  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16087  # libtool to hard-code these into programs
16088  ;;
16089
16090cygwin* | mingw* | pw32*)
16091  version_type=windows
16092  shrext_cmds=".dll"
16093  need_version=no
16094  need_lib_prefix=no
16095
16096  case $GCC,$host_os in
16097  yes,cygwin* | yes,mingw* | yes,pw32*)
16098    library_names_spec='$libname.dll.a'
16099    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16100    postinstall_cmds='base_file=`basename \${file}`~
16101      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16102      dldir=$destdir/`dirname \$dlpath`~
16103      test -d \$dldir || mkdir -p \$dldir~
16104      $install_prog $dir/$dlname \$dldir/$dlname~
16105      chmod a+x \$dldir/$dlname'
16106    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16107      dlpath=$dir/\$dldll~
16108       $rm \$dlpath'
16109    shlibpath_overrides_runpath=yes
16110
16111    case $host_os in
16112    cygwin*)
16113      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16114      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16115      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16116      ;;
16117    mingw*)
16118      # MinGW DLLs use traditional 'lib' prefix
16119      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16120      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16121      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16122        # It is most probably a Windows format PATH printed by
16123        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16124        # path with ; separators, and with drive letters. We can handle the
16125        # drive letters (cygwin fileutils understands them), so leave them,
16126        # especially as we might pass files found there to a mingw objdump,
16127        # which wouldn't understand a cygwinified path. Ahh.
16128        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16129      else
16130        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16131      fi
16132      ;;
16133    pw32*)
16134      # pw32 DLLs use 'pw' prefix rather than 'lib'
16135      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16136      ;;
16137    esac
16138    ;;
16139
16140  *)
16141    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16142    ;;
16143  esac
16144  dynamic_linker='Win32 ld.exe'
16145  # FIXME: first we should search . and the directory the executable is in
16146  shlibpath_var=PATH
16147  ;;
16148
16149darwin* | rhapsody*)
16150  dynamic_linker="$host_os dyld"
16151  version_type=darwin
16152  need_lib_prefix=no
16153  need_version=no
16154  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16155  soname_spec='${libname}${release}${major}$shared_ext'
16156  shlibpath_overrides_runpath=yes
16157  shlibpath_var=DYLD_LIBRARY_PATH
16158  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16159
16160  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16161  ;;
16162
16163dgux*)
16164  version_type=linux
16165  need_lib_prefix=no
16166  need_version=no
16167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16168  soname_spec='${libname}${release}${shared_ext}$major'
16169  shlibpath_var=LD_LIBRARY_PATH
16170  ;;
16171
16172freebsd1*)
16173  dynamic_linker=no
16174  ;;
16175
16176freebsd* | dragonfly*)
16177  # DragonFly does not have aout.  When/if they implement a new
16178  # versioning mechanism, adjust this.
16179  if test -x /usr/bin/objformat; then
16180    objformat=`/usr/bin/objformat`
16181  else
16182    case $host_os in
16183    freebsd[123]*) objformat=aout ;;
16184    *) objformat=elf ;;
16185    esac
16186  fi
16187  version_type=freebsd-$objformat
16188  case $version_type in
16189    freebsd-elf*)
16190      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16191      need_version=no
16192      need_lib_prefix=no
16193      ;;
16194    freebsd-*)
16195      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16196      need_version=yes
16197      ;;
16198  esac
16199  shlibpath_var=LD_LIBRARY_PATH
16200  case $host_os in
16201  freebsd2*)
16202    shlibpath_overrides_runpath=yes
16203    ;;
16204  freebsd3.[01]* | freebsdelf3.[01]*)
16205    shlibpath_overrides_runpath=yes
16206    hardcode_into_libs=yes
16207    ;;
16208  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16209  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16210    shlibpath_overrides_runpath=no
16211    hardcode_into_libs=yes
16212    ;;
16213  *) # from 4.6 on, and DragonFly
16214    shlibpath_overrides_runpath=yes
16215    hardcode_into_libs=yes
16216    ;;
16217  esac
16218  ;;
16219
16220gnu*)
16221  version_type=linux
16222  need_lib_prefix=no
16223  need_version=no
16224  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16225  soname_spec='${libname}${release}${shared_ext}$major'
16226  shlibpath_var=LD_LIBRARY_PATH
16227  hardcode_into_libs=yes
16228  ;;
16229
16230hpux9* | hpux10* | hpux11*)
16231  # Give a soname corresponding to the major version so that dld.sl refuses to
16232  # link against other versions.
16233  version_type=sunos
16234  need_lib_prefix=no
16235  need_version=no
16236  case $host_cpu in
16237  ia64*)
16238    shrext_cmds='.so'
16239    hardcode_into_libs=yes
16240    dynamic_linker="$host_os dld.so"
16241    shlibpath_var=LD_LIBRARY_PATH
16242    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16243    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16244    soname_spec='${libname}${release}${shared_ext}$major'
16245    if test "X$HPUX_IA64_MODE" = X32; then
16246      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16247    else
16248      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16249    fi
16250    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16251    ;;
16252   hppa*64*)
16253     shrext_cmds='.sl'
16254     hardcode_into_libs=yes
16255     dynamic_linker="$host_os dld.sl"
16256     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16257     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16258     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16259     soname_spec='${libname}${release}${shared_ext}$major'
16260     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16261     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16262     ;;
16263   *)
16264    shrext_cmds='.sl'
16265    dynamic_linker="$host_os dld.sl"
16266    shlibpath_var=SHLIB_PATH
16267    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16269    soname_spec='${libname}${release}${shared_ext}$major'
16270    ;;
16271  esac
16272  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16273  postinstall_cmds='chmod 555 $lib'
16274  ;;
16275
16276interix[3-9]*)
16277  version_type=linux
16278  need_lib_prefix=no
16279  need_version=no
16280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16281  soname_spec='${libname}${release}${shared_ext}$major'
16282  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16283  shlibpath_var=LD_LIBRARY_PATH
16284  shlibpath_overrides_runpath=no
16285  hardcode_into_libs=yes
16286  ;;
16287
16288irix5* | irix6* | nonstopux*)
16289  case $host_os in
16290    nonstopux*) version_type=nonstopux ;;
16291    *)
16292	if test "$lt_cv_prog_gnu_ld" = yes; then
16293		version_type=linux
16294	else
16295		version_type=irix
16296	fi ;;
16297  esac
16298  need_lib_prefix=no
16299  need_version=no
16300  soname_spec='${libname}${release}${shared_ext}$major'
16301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16302  case $host_os in
16303  irix5* | nonstopux*)
16304    libsuff= shlibsuff=
16305    ;;
16306  *)
16307    case $LD in # libtool.m4 will add one of these switches to LD
16308    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16309      libsuff= shlibsuff= libmagic=32-bit;;
16310    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16311      libsuff=32 shlibsuff=N32 libmagic=N32;;
16312    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16313      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16314    *) libsuff= shlibsuff= libmagic=never-match;;
16315    esac
16316    ;;
16317  esac
16318  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16319  shlibpath_overrides_runpath=no
16320  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16321  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16322  hardcode_into_libs=yes
16323  ;;
16324
16325# No shared lib support for Linux oldld, aout, or coff.
16326linux*oldld* | linux*aout* | linux*coff*)
16327  dynamic_linker=no
16328  ;;
16329
16330# This must be Linux ELF.
16331linux* | k*bsd*-gnu)
16332  version_type=linux
16333  need_lib_prefix=no
16334  need_version=no
16335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16336  soname_spec='${libname}${release}${shared_ext}$major'
16337  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16338  shlibpath_var=LD_LIBRARY_PATH
16339  shlibpath_overrides_runpath=no
16340  # This implies no fast_install, which is unacceptable.
16341  # Some rework will be needed to allow for fast_install
16342  # before this can be enabled.
16343  hardcode_into_libs=yes
16344
16345  # Append ld.so.conf contents to the search path
16346  if test -f /etc/ld.so.conf; then
16347    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' ' '`
16348    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16349  fi
16350
16351  # We used to test for /lib/ld.so.1 and disable shared libraries on
16352  # powerpc, because MkLinux only supported shared libraries with the
16353  # GNU dynamic linker.  Since this was broken with cross compilers,
16354  # most powerpc-linux boxes support dynamic linking these days and
16355  # people can always --disable-shared, the test was removed, and we
16356  # assume the GNU/Linux dynamic linker is in use.
16357  dynamic_linker='GNU/Linux ld.so'
16358  ;;
16359
16360netbsd*)
16361  version_type=sunos
16362  need_lib_prefix=no
16363  need_version=no
16364  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16365    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16366    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16367    dynamic_linker='NetBSD (a.out) ld.so'
16368  else
16369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16370    soname_spec='${libname}${release}${shared_ext}$major'
16371    dynamic_linker='NetBSD ld.elf_so'
16372  fi
16373  shlibpath_var=LD_LIBRARY_PATH
16374  shlibpath_overrides_runpath=yes
16375  hardcode_into_libs=yes
16376  ;;
16377
16378newsos6)
16379  version_type=linux
16380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16381  shlibpath_var=LD_LIBRARY_PATH
16382  shlibpath_overrides_runpath=yes
16383  ;;
16384
16385nto-qnx*)
16386  version_type=linux
16387  need_lib_prefix=no
16388  need_version=no
16389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16390  soname_spec='${libname}${release}${shared_ext}$major'
16391  shlibpath_var=LD_LIBRARY_PATH
16392  shlibpath_overrides_runpath=yes
16393  ;;
16394
16395openbsd*)
16396  version_type=sunos
16397  sys_lib_dlsearch_path_spec="/usr/lib"
16398  need_lib_prefix=no
16399  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16400  case $host_os in
16401    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16402    *)                         need_version=no  ;;
16403  esac
16404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16405  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16406  shlibpath_var=LD_LIBRARY_PATH
16407  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16408    case $host_os in
16409      openbsd2.[89] | openbsd2.[89].*)
16410	shlibpath_overrides_runpath=no
16411	;;
16412      *)
16413	shlibpath_overrides_runpath=yes
16414	;;
16415      esac
16416  else
16417    shlibpath_overrides_runpath=yes
16418  fi
16419  ;;
16420
16421os2*)
16422  libname_spec='$name'
16423  shrext_cmds=".dll"
16424  need_lib_prefix=no
16425  library_names_spec='$libname${shared_ext} $libname.a'
16426  dynamic_linker='OS/2 ld.exe'
16427  shlibpath_var=LIBPATH
16428  ;;
16429
16430osf3* | osf4* | osf5*)
16431  version_type=osf
16432  need_lib_prefix=no
16433  need_version=no
16434  soname_spec='${libname}${release}${shared_ext}$major'
16435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16436  shlibpath_var=LD_LIBRARY_PATH
16437  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16438  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16439  ;;
16440
16441rdos*)
16442  dynamic_linker=no
16443  ;;
16444
16445solaris*)
16446  version_type=linux
16447  need_lib_prefix=no
16448  need_version=no
16449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16450  soname_spec='${libname}${release}${shared_ext}$major'
16451  shlibpath_var=LD_LIBRARY_PATH
16452  shlibpath_overrides_runpath=yes
16453  hardcode_into_libs=yes
16454  # ldd complains unless libraries are executable
16455  postinstall_cmds='chmod +x $lib'
16456  ;;
16457
16458sunos4*)
16459  version_type=sunos
16460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16461  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16462  shlibpath_var=LD_LIBRARY_PATH
16463  shlibpath_overrides_runpath=yes
16464  if test "$with_gnu_ld" = yes; then
16465    need_lib_prefix=no
16466  fi
16467  need_version=yes
16468  ;;
16469
16470sysv4 | sysv4.3*)
16471  version_type=linux
16472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16473  soname_spec='${libname}${release}${shared_ext}$major'
16474  shlibpath_var=LD_LIBRARY_PATH
16475  case $host_vendor in
16476    sni)
16477      shlibpath_overrides_runpath=no
16478      need_lib_prefix=no
16479      export_dynamic_flag_spec='${wl}-Blargedynsym'
16480      runpath_var=LD_RUN_PATH
16481      ;;
16482    siemens)
16483      need_lib_prefix=no
16484      ;;
16485    motorola)
16486      need_lib_prefix=no
16487      need_version=no
16488      shlibpath_overrides_runpath=no
16489      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16490      ;;
16491  esac
16492  ;;
16493
16494sysv4*MP*)
16495  if test -d /usr/nec ;then
16496    version_type=linux
16497    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16498    soname_spec='$libname${shared_ext}.$major'
16499    shlibpath_var=LD_LIBRARY_PATH
16500  fi
16501  ;;
16502
16503sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16504  version_type=freebsd-elf
16505  need_lib_prefix=no
16506  need_version=no
16507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16508  soname_spec='${libname}${release}${shared_ext}$major'
16509  shlibpath_var=LD_LIBRARY_PATH
16510  hardcode_into_libs=yes
16511  if test "$with_gnu_ld" = yes; then
16512    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16513    shlibpath_overrides_runpath=no
16514  else
16515    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16516    shlibpath_overrides_runpath=yes
16517    case $host_os in
16518      sco3.2v5*)
16519        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16520	;;
16521    esac
16522  fi
16523  sys_lib_dlsearch_path_spec='/usr/lib'
16524  ;;
16525
16526uts4*)
16527  version_type=linux
16528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16529  soname_spec='${libname}${release}${shared_ext}$major'
16530  shlibpath_var=LD_LIBRARY_PATH
16531  ;;
16532
16533*)
16534  dynamic_linker=no
16535  ;;
16536esac
16537{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16538$as_echo "$dynamic_linker" >&6; }
16539test "$dynamic_linker" = no && can_build_shared=no
16540
16541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16542if test "$GCC" = yes; then
16543  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16544fi
16545
16546{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16547$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16548hardcode_action_CXX=
16549if test -n "$hardcode_libdir_flag_spec_CXX" || \
16550   test -n "$runpath_var_CXX" || \
16551   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16552
16553  # We can hardcode non-existant directories.
16554  if test "$hardcode_direct_CXX" != no &&
16555     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16556     # have to relink, otherwise we might link with an installed library
16557     # when we should be linking with a yet-to-be-installed one
16558     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16559     test "$hardcode_minus_L_CXX" != no; then
16560    # Linking always hardcodes the temporary library directory.
16561    hardcode_action_CXX=relink
16562  else
16563    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16564    hardcode_action_CXX=immediate
16565  fi
16566else
16567  # We cannot hardcode anything, or else we can only hardcode existing
16568  # directories.
16569  hardcode_action_CXX=unsupported
16570fi
16571{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
16572$as_echo "$hardcode_action_CXX" >&6; }
16573
16574if test "$hardcode_action_CXX" = relink; then
16575  # Fast installation is not supported
16576  enable_fast_install=no
16577elif test "$shlibpath_overrides_runpath" = yes ||
16578     test "$enable_shared" = no; then
16579  # Fast installation is not necessary
16580  enable_fast_install=needless
16581fi
16582
16583
16584# The else clause should only fire when bootstrapping the
16585# libtool distribution, otherwise you forgot to ship ltmain.sh
16586# with your package, and you will get complaints that there are
16587# no rules to generate ltmain.sh.
16588if test -f "$ltmain"; then
16589  # See if we are running on zsh, and set the options which allow our commands through
16590  # without removal of \ escapes.
16591  if test -n "${ZSH_VERSION+set}" ; then
16592    setopt NO_GLOB_SUBST
16593  fi
16594  # Now quote all the things that may contain metacharacters while being
16595  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16596  # variables and quote the copies for generation of the libtool script.
16597  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16598    SED SHELL STRIP \
16599    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16600    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16601    deplibs_check_method reload_flag reload_cmds need_locks \
16602    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16603    lt_cv_sys_global_symbol_to_c_name_address \
16604    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16605    old_postinstall_cmds old_postuninstall_cmds \
16606    compiler_CXX \
16607    CC_CXX \
16608    LD_CXX \
16609    lt_prog_compiler_wl_CXX \
16610    lt_prog_compiler_pic_CXX \
16611    lt_prog_compiler_static_CXX \
16612    lt_prog_compiler_no_builtin_flag_CXX \
16613    export_dynamic_flag_spec_CXX \
16614    thread_safe_flag_spec_CXX \
16615    whole_archive_flag_spec_CXX \
16616    enable_shared_with_static_runtimes_CXX \
16617    old_archive_cmds_CXX \
16618    old_archive_from_new_cmds_CXX \
16619    predep_objects_CXX \
16620    postdep_objects_CXX \
16621    predeps_CXX \
16622    postdeps_CXX \
16623    compiler_lib_search_path_CXX \
16624    archive_cmds_CXX \
16625    archive_expsym_cmds_CXX \
16626    postinstall_cmds_CXX \
16627    postuninstall_cmds_CXX \
16628    old_archive_from_expsyms_cmds_CXX \
16629    allow_undefined_flag_CXX \
16630    no_undefined_flag_CXX \
16631    export_symbols_cmds_CXX \
16632    hardcode_libdir_flag_spec_CXX \
16633    hardcode_libdir_flag_spec_ld_CXX \
16634    hardcode_libdir_separator_CXX \
16635    hardcode_automatic_CXX \
16636    module_cmds_CXX \
16637    module_expsym_cmds_CXX \
16638    lt_cv_prog_compiler_c_o_CXX \
16639    fix_srcfile_path_CXX \
16640    exclude_expsyms_CXX \
16641    include_expsyms_CXX; do
16642
16643    case $var in
16644    old_archive_cmds_CXX | \
16645    old_archive_from_new_cmds_CXX | \
16646    archive_cmds_CXX | \
16647    archive_expsym_cmds_CXX | \
16648    module_cmds_CXX | \
16649    module_expsym_cmds_CXX | \
16650    old_archive_from_expsyms_cmds_CXX | \
16651    export_symbols_cmds_CXX | \
16652    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16653    postinstall_cmds | postuninstall_cmds | \
16654    old_postinstall_cmds | old_postuninstall_cmds | \
16655    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16656      # Double-quote double-evaled strings.
16657      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16658      ;;
16659    *)
16660      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16661      ;;
16662    esac
16663  done
16664
16665  case $lt_echo in
16666  *'\$0 --fallback-echo"')
16667    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16668    ;;
16669  esac
16670
16671cfgfile="$ofile"
16672
16673  cat <<__EOF__ >> "$cfgfile"
16674# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16675
16676# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16677
16678# Shell to use when invoking shell scripts.
16679SHELL=$lt_SHELL
16680
16681# Whether or not to build shared libraries.
16682build_libtool_libs=$enable_shared
16683
16684# Whether or not to build static libraries.
16685build_old_libs=$enable_static
16686
16687# Whether or not to add -lc for building shared libraries.
16688build_libtool_need_lc=$archive_cmds_need_lc_CXX
16689
16690# Whether or not to disallow shared libs when runtime libs are static
16691allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16692
16693# Whether or not to optimize for fast installation.
16694fast_install=$enable_fast_install
16695
16696# The host system.
16697host_alias=$host_alias
16698host=$host
16699host_os=$host_os
16700
16701# The build system.
16702build_alias=$build_alias
16703build=$build
16704build_os=$build_os
16705
16706# An echo program that does not interpret backslashes.
16707echo=$lt_echo
16708
16709# The archiver.
16710AR=$lt_AR
16711AR_FLAGS=$lt_AR_FLAGS
16712
16713# A C compiler.
16714LTCC=$lt_LTCC
16715
16716# LTCC compiler flags.
16717LTCFLAGS=$lt_LTCFLAGS
16718
16719# A language-specific compiler.
16720CC=$lt_compiler_CXX
16721
16722# Is the compiler the GNU C compiler?
16723with_gcc=$GCC_CXX
16724
16725# An ERE matcher.
16726EGREP=$lt_EGREP
16727
16728# The linker used to build libraries.
16729LD=$lt_LD_CXX
16730
16731# Whether we need hard or soft links.
16732LN_S=$lt_LN_S
16733
16734# A BSD-compatible nm program.
16735NM=$lt_NM
16736
16737# A symbol stripping program
16738STRIP=$lt_STRIP
16739
16740# Used to examine libraries when file_magic_cmd begins "file"
16741MAGIC_CMD=$MAGIC_CMD
16742
16743# Used on cygwin: DLL creation program.
16744DLLTOOL="$DLLTOOL"
16745
16746# Used on cygwin: object dumper.
16747OBJDUMP="$OBJDUMP"
16748
16749# Used on cygwin: assembler.
16750AS="$AS"
16751
16752# The name of the directory that contains temporary libtool files.
16753objdir=$objdir
16754
16755# How to create reloadable object files.
16756reload_flag=$lt_reload_flag
16757reload_cmds=$lt_reload_cmds
16758
16759# How to pass a linker flag through the compiler.
16760wl=$lt_lt_prog_compiler_wl_CXX
16761
16762# Object file suffix (normally "o").
16763objext="$ac_objext"
16764
16765# Old archive suffix (normally "a").
16766libext="$libext"
16767
16768# Shared library suffix (normally ".so").
16769shrext_cmds='$shrext_cmds'
16770
16771# Executable file suffix (normally "").
16772exeext="$exeext"
16773
16774# Additional compiler flags for building library objects.
16775pic_flag=$lt_lt_prog_compiler_pic_CXX
16776pic_mode=$pic_mode
16777
16778# What is the maximum length of a command?
16779max_cmd_len=$lt_cv_sys_max_cmd_len
16780
16781# Does compiler simultaneously support -c and -o options?
16782compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16783
16784# Must we lock files when doing compilation?
16785need_locks=$lt_need_locks
16786
16787# Do we need the lib prefix for modules?
16788need_lib_prefix=$need_lib_prefix
16789
16790# Do we need a version for libraries?
16791need_version=$need_version
16792
16793# Whether dlopen is supported.
16794dlopen_support=$enable_dlopen
16795
16796# Whether dlopen of programs is supported.
16797dlopen_self=$enable_dlopen_self
16798
16799# Whether dlopen of statically linked programs is supported.
16800dlopen_self_static=$enable_dlopen_self_static
16801
16802# Compiler flag to prevent dynamic linking.
16803link_static_flag=$lt_lt_prog_compiler_static_CXX
16804
16805# Compiler flag to turn off builtin functions.
16806no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16807
16808# Compiler flag to allow reflexive dlopens.
16809export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16810
16811# Compiler flag to generate shared objects directly from archives.
16812whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16813
16814# Compiler flag to generate thread-safe objects.
16815thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16816
16817# Library versioning type.
16818version_type=$version_type
16819
16820# Format of library name prefix.
16821libname_spec=$lt_libname_spec
16822
16823# List of archive names.  First name is the real one, the rest are links.
16824# The last name is the one that the linker finds with -lNAME.
16825library_names_spec=$lt_library_names_spec
16826
16827# The coded name of the library, if different from the real name.
16828soname_spec=$lt_soname_spec
16829
16830# Commands used to build and install an old-style archive.
16831RANLIB=$lt_RANLIB
16832old_archive_cmds=$lt_old_archive_cmds_CXX
16833old_postinstall_cmds=$lt_old_postinstall_cmds
16834old_postuninstall_cmds=$lt_old_postuninstall_cmds
16835
16836# Create an old-style archive from a shared archive.
16837old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16838
16839# Create a temporary old-style archive to link instead of a shared archive.
16840old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16841
16842# Commands used to build and install a shared archive.
16843archive_cmds=$lt_archive_cmds_CXX
16844archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16845postinstall_cmds=$lt_postinstall_cmds
16846postuninstall_cmds=$lt_postuninstall_cmds
16847
16848# Commands used to build a loadable module (assumed same as above if empty)
16849module_cmds=$lt_module_cmds_CXX
16850module_expsym_cmds=$lt_module_expsym_cmds_CXX
16851
16852# Commands to strip libraries.
16853old_striplib=$lt_old_striplib
16854striplib=$lt_striplib
16855
16856# Dependencies to place before the objects being linked to create a
16857# shared library.
16858predep_objects=$lt_predep_objects_CXX
16859
16860# Dependencies to place after the objects being linked to create a
16861# shared library.
16862postdep_objects=$lt_postdep_objects_CXX
16863
16864# Dependencies to place before the objects being linked to create a
16865# shared library.
16866predeps=$lt_predeps_CXX
16867
16868# Dependencies to place after the objects being linked to create a
16869# shared library.
16870postdeps=$lt_postdeps_CXX
16871
16872# The library search path used internally by the compiler when linking
16873# a shared library.
16874compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16875
16876# Method to check whether dependent libraries are shared objects.
16877deplibs_check_method=$lt_deplibs_check_method
16878
16879# Command to use when deplibs_check_method == file_magic.
16880file_magic_cmd=$lt_file_magic_cmd
16881
16882# Flag that allows shared libraries with undefined symbols to be built.
16883allow_undefined_flag=$lt_allow_undefined_flag_CXX
16884
16885# Flag that forces no undefined symbols.
16886no_undefined_flag=$lt_no_undefined_flag_CXX
16887
16888# Commands used to finish a libtool library installation in a directory.
16889finish_cmds=$lt_finish_cmds
16890
16891# Same as above, but a single script fragment to be evaled but not shown.
16892finish_eval=$lt_finish_eval
16893
16894# Take the output of nm and produce a listing of raw symbols and C names.
16895global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16896
16897# Transform the output of nm in a proper C declaration
16898global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16899
16900# Transform the output of nm in a C name address pair
16901global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16902
16903# This is the shared library runtime path variable.
16904runpath_var=$runpath_var
16905
16906# This is the shared library path variable.
16907shlibpath_var=$shlibpath_var
16908
16909# Is shlibpath searched before the hard-coded library search path?
16910shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16911
16912# How to hardcode a shared library path into an executable.
16913hardcode_action=$hardcode_action_CXX
16914
16915# Whether we should hardcode library paths into libraries.
16916hardcode_into_libs=$hardcode_into_libs
16917
16918# Flag to hardcode \$libdir into a binary during linking.
16919# This must work even if \$libdir does not exist.
16920hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16921
16922# If ld is used when linking, flag to hardcode \$libdir into
16923# a binary during linking. This must work even if \$libdir does
16924# not exist.
16925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16926
16927# Whether we need a single -rpath flag with a separated argument.
16928hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16929
16930# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16931# resulting binary.
16932hardcode_direct=$hardcode_direct_CXX
16933
16934# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16935# resulting binary.
16936hardcode_minus_L=$hardcode_minus_L_CXX
16937
16938# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16939# the resulting binary.
16940hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16941
16942# Set to yes if building a shared library automatically hardcodes DIR into the library
16943# and all subsequent libraries and executables linked against it.
16944hardcode_automatic=$hardcode_automatic_CXX
16945
16946# Variables whose values should be saved in libtool wrapper scripts and
16947# restored at relink time.
16948variables_saved_for_relink="$variables_saved_for_relink"
16949
16950# Whether libtool must link a program against all its dependency libraries.
16951link_all_deplibs=$link_all_deplibs_CXX
16952
16953# Compile-time system search path for libraries
16954sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16955
16956# Run-time system search path for libraries
16957sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16958
16959# Fix the shell variable \$srcfile for the compiler.
16960fix_srcfile_path=$lt_fix_srcfile_path
16961
16962# Set to yes if exported symbols are required.
16963always_export_symbols=$always_export_symbols_CXX
16964
16965# The commands to list exported symbols.
16966export_symbols_cmds=$lt_export_symbols_cmds_CXX
16967
16968# The commands to extract the exported symbol list from a shared archive.
16969extract_expsyms_cmds=$lt_extract_expsyms_cmds
16970
16971# Symbols that should not be listed in the preloaded symbols.
16972exclude_expsyms=$lt_exclude_expsyms_CXX
16973
16974# Symbols that must always be exported.
16975include_expsyms=$lt_include_expsyms_CXX
16976
16977# ### END LIBTOOL TAG CONFIG: $tagname
16978
16979__EOF__
16980
16981
16982else
16983  # If there is no Makefile yet, we rely on a make rule to execute
16984  # `config.status --recheck' to rerun these tests and create the
16985  # libtool script then.
16986  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16987  if test -f "$ltmain_in"; then
16988    test -f Makefile && make "$ltmain"
16989  fi
16990fi
16991
16992
16993ac_ext=c
16994ac_cpp='$CPP $CPPFLAGS'
16995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16997ac_compiler_gnu=$ac_cv_c_compiler_gnu
16998
16999CC=$lt_save_CC
17000LDCXX=$LD
17001LD=$lt_save_LD
17002GCC=$lt_save_GCC
17003with_gnu_ldcxx=$with_gnu_ld
17004with_gnu_ld=$lt_save_with_gnu_ld
17005lt_cv_path_LDCXX=$lt_cv_path_LD
17006lt_cv_path_LD=$lt_save_path_LD
17007lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17008lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17009
17010	else
17011	  tagname=""
17012	fi
17013	;;
17014
17015      F77)
17016	if test -n "$F77" && test "X$F77" != "Xno"; then
17017
17018ac_ext=f
17019ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17020ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17022
17023
17024archive_cmds_need_lc_F77=no
17025allow_undefined_flag_F77=
17026always_export_symbols_F77=no
17027archive_expsym_cmds_F77=
17028export_dynamic_flag_spec_F77=
17029hardcode_direct_F77=no
17030hardcode_libdir_flag_spec_F77=
17031hardcode_libdir_flag_spec_ld_F77=
17032hardcode_libdir_separator_F77=
17033hardcode_minus_L_F77=no
17034hardcode_automatic_F77=no
17035module_cmds_F77=
17036module_expsym_cmds_F77=
17037link_all_deplibs_F77=unknown
17038old_archive_cmds_F77=$old_archive_cmds
17039no_undefined_flag_F77=
17040whole_archive_flag_spec_F77=
17041enable_shared_with_static_runtimes_F77=no
17042
17043# Source file extension for f77 test sources.
17044ac_ext=f
17045
17046# Object file extension for compiled f77 test sources.
17047objext=o
17048objext_F77=$objext
17049
17050# Code to be used in simple compile tests
17051lt_simple_compile_test_code="\
17052      subroutine t
17053      return
17054      end
17055"
17056
17057# Code to be used in simple link tests
17058lt_simple_link_test_code="\
17059      program t
17060      end
17061"
17062
17063# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17064
17065# If no C compiler was specified, use CC.
17066LTCC=${LTCC-"$CC"}
17067
17068# If no C compiler flags were specified, use CFLAGS.
17069LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17070
17071# Allow CC to be a program name with arguments.
17072compiler=$CC
17073
17074
17075# save warnings/boilerplate of simple test code
17076ac_outfile=conftest.$ac_objext
17077echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17078eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17079_lt_compiler_boilerplate=`cat conftest.err`
17080$rm conftest*
17081
17082ac_outfile=conftest.$ac_objext
17083echo "$lt_simple_link_test_code" >conftest.$ac_ext
17084eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17085_lt_linker_boilerplate=`cat conftest.err`
17086$rm conftest*
17087
17088
17089# Allow CC to be a program name with arguments.
17090lt_save_CC="$CC"
17091CC=${F77-"f77"}
17092compiler=$CC
17093compiler_F77=$CC
17094for cc_temp in $compiler""; do
17095  case $cc_temp in
17096    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17097    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17098    \-*) ;;
17099    *) break;;
17100  esac
17101done
17102cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17103
17104
17105{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17106$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17107{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
17108$as_echo "$can_build_shared" >&6; }
17109
17110{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17111$as_echo_n "checking whether to build shared libraries... " >&6; }
17112test "$can_build_shared" = "no" && enable_shared=no
17113
17114# On AIX, shared libraries and static libraries use the same namespace, and
17115# are all built from PIC.
17116case $host_os in
17117aix3*)
17118  test "$enable_shared" = yes && enable_static=no
17119  if test -n "$RANLIB"; then
17120    archive_cmds="$archive_cmds~\$RANLIB \$lib"
17121    postinstall_cmds='$RANLIB $lib'
17122  fi
17123  ;;
17124aix4* | aix5*)
17125  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17126    test "$enable_shared" = yes && enable_static=no
17127  fi
17128  ;;
17129esac
17130{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
17131$as_echo "$enable_shared" >&6; }
17132
17133{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17134$as_echo_n "checking whether to build static libraries... " >&6; }
17135# Make sure either enable_shared or enable_static is yes.
17136test "$enable_shared" = yes || enable_static=yes
17137{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
17138$as_echo "$enable_static" >&6; }
17139
17140GCC_F77="$G77"
17141LD_F77="$LD"
17142
17143lt_prog_compiler_wl_F77=
17144lt_prog_compiler_pic_F77=
17145lt_prog_compiler_static_F77=
17146
17147{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17148$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17149
17150  if test "$GCC" = yes; then
17151    lt_prog_compiler_wl_F77='-Wl,'
17152    lt_prog_compiler_static_F77='-static'
17153
17154    case $host_os in
17155      aix*)
17156      # All AIX code is PIC.
17157      if test "$host_cpu" = ia64; then
17158	# AIX 5 now supports IA64 processor
17159	lt_prog_compiler_static_F77='-Bstatic'
17160      fi
17161      ;;
17162
17163    amigaos*)
17164      # FIXME: we need at least 68020 code to build shared libraries, but
17165      # adding the `-m68020' flag to GCC prevents building anything better,
17166      # like `-m68040'.
17167      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17168      ;;
17169
17170    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17171      # PIC is the default for these OSes.
17172      ;;
17173
17174    mingw* | cygwin* | pw32* | os2*)
17175      # This hack is so that the source file can tell whether it is being
17176      # built for inclusion in a dll (and should export symbols for example).
17177      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17178      # (--disable-auto-import) libraries
17179      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17180      ;;
17181
17182    darwin* | rhapsody*)
17183      # PIC is the default on this platform
17184      # Common symbols not allowed in MH_DYLIB files
17185      lt_prog_compiler_pic_F77='-fno-common'
17186      ;;
17187
17188    interix[3-9]*)
17189      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17190      # Instead, we relocate shared libraries at runtime.
17191      ;;
17192
17193    msdosdjgpp*)
17194      # Just because we use GCC doesn't mean we suddenly get shared libraries
17195      # on systems that don't support them.
17196      lt_prog_compiler_can_build_shared_F77=no
17197      enable_shared=no
17198      ;;
17199
17200    sysv4*MP*)
17201      if test -d /usr/nec; then
17202	lt_prog_compiler_pic_F77=-Kconform_pic
17203      fi
17204      ;;
17205
17206    hpux*)
17207      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17208      # not for PA HP-UX.
17209      case $host_cpu in
17210      hppa*64*|ia64*)
17211	# +Z the default
17212	;;
17213      *)
17214	lt_prog_compiler_pic_F77='-fPIC'
17215	;;
17216      esac
17217      ;;
17218
17219    *)
17220      lt_prog_compiler_pic_F77='-fPIC'
17221      ;;
17222    esac
17223  else
17224    # PORTME Check for flag to pass linker flags through the system compiler.
17225    case $host_os in
17226    aix*)
17227      lt_prog_compiler_wl_F77='-Wl,'
17228      if test "$host_cpu" = ia64; then
17229	# AIX 5 now supports IA64 processor
17230	lt_prog_compiler_static_F77='-Bstatic'
17231      else
17232	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17233      fi
17234      ;;
17235      darwin*)
17236        # PIC is the default on this platform
17237        # Common symbols not allowed in MH_DYLIB files
17238       case $cc_basename in
17239         xlc*)
17240         lt_prog_compiler_pic_F77='-qnocommon'
17241         lt_prog_compiler_wl_F77='-Wl,'
17242         ;;
17243       esac
17244       ;;
17245
17246    mingw* | cygwin* | pw32* | os2*)
17247      # This hack is so that the source file can tell whether it is being
17248      # built for inclusion in a dll (and should export symbols for example).
17249      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17250      ;;
17251
17252    hpux9* | hpux10* | hpux11*)
17253      lt_prog_compiler_wl_F77='-Wl,'
17254      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17255      # not for PA HP-UX.
17256      case $host_cpu in
17257      hppa*64*|ia64*)
17258	# +Z the default
17259	;;
17260      *)
17261	lt_prog_compiler_pic_F77='+Z'
17262	;;
17263      esac
17264      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17265      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17266      ;;
17267
17268    irix5* | irix6* | nonstopux*)
17269      lt_prog_compiler_wl_F77='-Wl,'
17270      # PIC (with -KPIC) is the default.
17271      lt_prog_compiler_static_F77='-non_shared'
17272      ;;
17273
17274    newsos6)
17275      lt_prog_compiler_pic_F77='-KPIC'
17276      lt_prog_compiler_static_F77='-Bstatic'
17277      ;;
17278
17279    linux* | k*bsd*-gnu)
17280      case $cc_basename in
17281      icc* | ecc*)
17282	lt_prog_compiler_wl_F77='-Wl,'
17283	lt_prog_compiler_pic_F77='-KPIC'
17284	lt_prog_compiler_static_F77='-static'
17285        ;;
17286      pgcc* | pgf77* | pgf90* | pgf95*)
17287        # Portland Group compilers (*not* the Pentium gcc compiler,
17288	# which looks to be a dead project)
17289	lt_prog_compiler_wl_F77='-Wl,'
17290	lt_prog_compiler_pic_F77='-fpic'
17291	lt_prog_compiler_static_F77='-Bstatic'
17292        ;;
17293      ccc*)
17294        lt_prog_compiler_wl_F77='-Wl,'
17295        # All Alpha code is PIC.
17296        lt_prog_compiler_static_F77='-non_shared'
17297        ;;
17298      como)
17299        lt_prog_compiler_wl_F77='-lopt='
17300        ;;
17301      *)
17302        case `$CC -V 2>&1 | sed 5q` in
17303	*Sun\ C*)
17304	  # Sun C 5.9
17305	  lt_prog_compiler_pic_F77='-KPIC'
17306	  lt_prog_compiler_static_F77='-Bstatic'
17307	  lt_prog_compiler_wl_F77='-Wl,'
17308	  ;;
17309	*Sun\ F*)
17310	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
17311	  lt_prog_compiler_pic_F77='-KPIC'
17312	  lt_prog_compiler_static_F77='-Bstatic'
17313	  lt_prog_compiler_wl_F77=''
17314	  ;;
17315	esac
17316	;;
17317      esac
17318      ;;
17319
17320    osf3* | osf4* | osf5*)
17321      lt_prog_compiler_wl_F77='-Wl,'
17322      # All OSF/1 code is PIC.
17323      lt_prog_compiler_static_F77='-non_shared'
17324      ;;
17325
17326    rdos*)
17327      lt_prog_compiler_static_F77='-non_shared'
17328      ;;
17329
17330    solaris*)
17331      lt_prog_compiler_pic_F77='-KPIC'
17332      lt_prog_compiler_static_F77='-Bstatic'
17333      case $cc_basename in
17334      f77* | f90* | f95*)
17335	lt_prog_compiler_wl_F77='-Qoption ld ';;
17336      *)
17337	lt_prog_compiler_wl_F77='-Wl,';;
17338      esac
17339      ;;
17340
17341    sunos4*)
17342      lt_prog_compiler_wl_F77='-Qoption ld '
17343      lt_prog_compiler_pic_F77='-PIC'
17344      lt_prog_compiler_static_F77='-Bstatic'
17345      ;;
17346
17347    sysv4 | sysv4.2uw2* | sysv4.3*)
17348      lt_prog_compiler_wl_F77='-Wl,'
17349      lt_prog_compiler_pic_F77='-KPIC'
17350      lt_prog_compiler_static_F77='-Bstatic'
17351      ;;
17352
17353    sysv4*MP*)
17354      if test -d /usr/nec ;then
17355	lt_prog_compiler_pic_F77='-Kconform_pic'
17356	lt_prog_compiler_static_F77='-Bstatic'
17357      fi
17358      ;;
17359
17360    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17361      lt_prog_compiler_wl_F77='-Wl,'
17362      lt_prog_compiler_pic_F77='-KPIC'
17363      lt_prog_compiler_static_F77='-Bstatic'
17364      ;;
17365
17366    unicos*)
17367      lt_prog_compiler_wl_F77='-Wl,'
17368      lt_prog_compiler_can_build_shared_F77=no
17369      ;;
17370
17371    uts4*)
17372      lt_prog_compiler_pic_F77='-pic'
17373      lt_prog_compiler_static_F77='-Bstatic'
17374      ;;
17375
17376    *)
17377      lt_prog_compiler_can_build_shared_F77=no
17378      ;;
17379    esac
17380  fi
17381
17382{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17383$as_echo "$lt_prog_compiler_pic_F77" >&6; }
17384
17385#
17386# Check to make sure the PIC flag actually works.
17387#
17388if test -n "$lt_prog_compiler_pic_F77"; then
17389
17390{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17391$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
17392if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17393  $as_echo_n "(cached) " >&6
17394else
17395  lt_prog_compiler_pic_works_F77=no
17396  ac_outfile=conftest.$ac_objext
17397   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17398   lt_compiler_flag="$lt_prog_compiler_pic_F77"
17399   # Insert the option either (1) after the last *FLAGS variable, or
17400   # (2) before a word containing "conftest.", or (3) at the end.
17401   # Note that $ac_compile itself does not contain backslashes and begins
17402   # with a dollar sign (not a hyphen), so the echo should work correctly.
17403   # The option is referenced via a variable to avoid confusing sed.
17404   lt_compile=`echo "$ac_compile" | $SED \
17405   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17406   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17407   -e 's:$: $lt_compiler_flag:'`
17408   (eval echo "\"\$as_me:17408: $lt_compile\"" >&5)
17409   (eval "$lt_compile" 2>conftest.err)
17410   ac_status=$?
17411   cat conftest.err >&5
17412   echo "$as_me:17412: \$? = $ac_status" >&5
17413   if (exit $ac_status) && test -s "$ac_outfile"; then
17414     # The compiler can only warn and ignore the option if not recognized
17415     # So say no if there are warnings other than the usual output.
17416     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17417     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17418     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17419       lt_prog_compiler_pic_works_F77=yes
17420     fi
17421   fi
17422   $rm conftest*
17423
17424fi
17425{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17426$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
17427
17428if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17429    case $lt_prog_compiler_pic_F77 in
17430     "" | " "*) ;;
17431     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17432     esac
17433else
17434    lt_prog_compiler_pic_F77=
17435     lt_prog_compiler_can_build_shared_F77=no
17436fi
17437
17438fi
17439case $host_os in
17440  # For platforms which do not support PIC, -DPIC is meaningless:
17441  *djgpp*)
17442    lt_prog_compiler_pic_F77=
17443    ;;
17444  *)
17445    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17446    ;;
17447esac
17448
17449#
17450# Check to make sure the static flag actually works.
17451#
17452wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17453{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17454$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17455if test "${lt_prog_compiler_static_works_F77+set}" = set; then
17456  $as_echo_n "(cached) " >&6
17457else
17458  lt_prog_compiler_static_works_F77=no
17459   save_LDFLAGS="$LDFLAGS"
17460   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17461   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17462   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17463     # The linker can only warn and ignore the option if not recognized
17464     # So say no if there are warnings
17465     if test -s conftest.err; then
17466       # Append any errors to the config.log.
17467       cat conftest.err 1>&5
17468       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17469       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17470       if diff conftest.exp conftest.er2 >/dev/null; then
17471         lt_prog_compiler_static_works_F77=yes
17472       fi
17473     else
17474       lt_prog_compiler_static_works_F77=yes
17475     fi
17476   fi
17477   $rm conftest*
17478   LDFLAGS="$save_LDFLAGS"
17479
17480fi
17481{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
17482$as_echo "$lt_prog_compiler_static_works_F77" >&6; }
17483
17484if test x"$lt_prog_compiler_static_works_F77" = xyes; then
17485    :
17486else
17487    lt_prog_compiler_static_F77=
17488fi
17489
17490
17491{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17492$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17493if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17494  $as_echo_n "(cached) " >&6
17495else
17496  lt_cv_prog_compiler_c_o_F77=no
17497   $rm -r conftest 2>/dev/null
17498   mkdir conftest
17499   cd conftest
17500   mkdir out
17501   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17502
17503   lt_compiler_flag="-o out/conftest2.$ac_objext"
17504   # Insert the option either (1) after the last *FLAGS variable, or
17505   # (2) before a word containing "conftest.", or (3) at the end.
17506   # Note that $ac_compile itself does not contain backslashes and begins
17507   # with a dollar sign (not a hyphen), so the echo should work correctly.
17508   lt_compile=`echo "$ac_compile" | $SED \
17509   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17510   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17511   -e 's:$: $lt_compiler_flag:'`
17512   (eval echo "\"\$as_me:17512: $lt_compile\"" >&5)
17513   (eval "$lt_compile" 2>out/conftest.err)
17514   ac_status=$?
17515   cat out/conftest.err >&5
17516   echo "$as_me:17516: \$? = $ac_status" >&5
17517   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17518   then
17519     # The compiler can only warn and ignore the option if not recognized
17520     # So say no if there are warnings
17521     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17522     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17523     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17524       lt_cv_prog_compiler_c_o_F77=yes
17525     fi
17526   fi
17527   chmod u+w . 2>&5
17528   $rm conftest*
17529   # SGI C++ compiler will create directory out/ii_files/ for
17530   # template instantiation
17531   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17532   $rm out/* && rmdir out
17533   cd ..
17534   rmdir conftest
17535   $rm conftest*
17536
17537fi
17538{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17539$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17540
17541
17542hard_links="nottested"
17543if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17544  # do not overwrite the value of need_locks provided by the user
17545  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17546$as_echo_n "checking if we can lock with hard links... " >&6; }
17547  hard_links=yes
17548  $rm conftest*
17549  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17550  touch conftest.a
17551  ln conftest.a conftest.b 2>&5 || hard_links=no
17552  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17553  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17554$as_echo "$hard_links" >&6; }
17555  if test "$hard_links" = no; then
17556    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17557$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17558    need_locks=warn
17559  fi
17560else
17561  need_locks=no
17562fi
17563
17564{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17565$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17566
17567  runpath_var=
17568  allow_undefined_flag_F77=
17569  enable_shared_with_static_runtimes_F77=no
17570  archive_cmds_F77=
17571  archive_expsym_cmds_F77=
17572  old_archive_From_new_cmds_F77=
17573  old_archive_from_expsyms_cmds_F77=
17574  export_dynamic_flag_spec_F77=
17575  whole_archive_flag_spec_F77=
17576  thread_safe_flag_spec_F77=
17577  hardcode_libdir_flag_spec_F77=
17578  hardcode_libdir_flag_spec_ld_F77=
17579  hardcode_libdir_separator_F77=
17580  hardcode_direct_F77=no
17581  hardcode_minus_L_F77=no
17582  hardcode_shlibpath_var_F77=unsupported
17583  link_all_deplibs_F77=unknown
17584  hardcode_automatic_F77=no
17585  module_cmds_F77=
17586  module_expsym_cmds_F77=
17587  always_export_symbols_F77=no
17588  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17589  # include_expsyms should be a list of space-separated symbols to be *always*
17590  # included in the symbol list
17591  include_expsyms_F77=
17592  # exclude_expsyms can be an extended regexp of symbols to exclude
17593  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17594  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17595  # as well as any symbol that contains `d'.
17596  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17597  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17598  # platforms (ab)use it in PIC code, but their linkers get confused if
17599  # the symbol is explicitly referenced.  Since portable code cannot
17600  # rely on this symbol name, it's probably fine to never include it in
17601  # preloaded symbol tables.
17602  extract_expsyms_cmds=
17603  # Just being paranoid about ensuring that cc_basename is set.
17604  for cc_temp in $compiler""; do
17605  case $cc_temp in
17606    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17607    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17608    \-*) ;;
17609    *) break;;
17610  esac
17611done
17612cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17613
17614  case $host_os in
17615  cygwin* | mingw* | pw32*)
17616    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17617    # When not using gcc, we currently assume that we are using
17618    # Microsoft Visual C++.
17619    if test "$GCC" != yes; then
17620      with_gnu_ld=no
17621    fi
17622    ;;
17623  interix*)
17624    # we just hope/assume this is gcc and not c89 (= MSVC++)
17625    with_gnu_ld=yes
17626    ;;
17627  openbsd*)
17628    with_gnu_ld=no
17629    ;;
17630  esac
17631
17632  ld_shlibs_F77=yes
17633  if test "$with_gnu_ld" = yes; then
17634    # If archive_cmds runs LD, not CC, wlarc should be empty
17635    wlarc='${wl}'
17636
17637    # Set some defaults for GNU ld with shared library support. These
17638    # are reset later if shared libraries are not supported. Putting them
17639    # here allows them to be overridden if necessary.
17640    runpath_var=LD_RUN_PATH
17641    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17642    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17643    # ancient GNU ld didn't support --whole-archive et. al.
17644    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17645	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17646      else
17647  	whole_archive_flag_spec_F77=
17648    fi
17649    supports_anon_versioning=no
17650    case `$LD -v 2>/dev/null` in
17651      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17652      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17653      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17654      *\ 2.11.*) ;; # other 2.11 versions
17655      *) supports_anon_versioning=yes ;;
17656    esac
17657
17658    # See if GNU ld supports shared libraries.
17659    case $host_os in
17660    aix3* | aix4* | aix5*)
17661      # On AIX/PPC, the GNU linker is very broken
17662      if test "$host_cpu" != ia64; then
17663	ld_shlibs_F77=no
17664	cat <<EOF 1>&2
17665
17666*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17667*** to be unable to reliably create shared libraries on AIX.
17668*** Therefore, libtool is disabling shared libraries support.  If you
17669*** really care for shared libraries, you may want to modify your PATH
17670*** so that a non-GNU linker is found, and then restart.
17671
17672EOF
17673      fi
17674      ;;
17675
17676    amigaos*)
17677      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)'
17678      hardcode_libdir_flag_spec_F77='-L$libdir'
17679      hardcode_minus_L_F77=yes
17680
17681      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17682      # that the semantics of dynamic libraries on AmigaOS, at least up
17683      # to version 4, is to share data among multiple programs linked
17684      # with the same dynamic library.  Since this doesn't match the
17685      # behavior of shared libraries on other platforms, we can't use
17686      # them.
17687      ld_shlibs_F77=no
17688      ;;
17689
17690    beos*)
17691      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17692	allow_undefined_flag_F77=unsupported
17693	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17694	# support --undefined.  This deserves some investigation.  FIXME
17695	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17696      else
17697	ld_shlibs_F77=no
17698      fi
17699      ;;
17700
17701    cygwin* | mingw* | pw32*)
17702      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17703      # as there is no search path for DLLs.
17704      hardcode_libdir_flag_spec_F77='-L$libdir'
17705      allow_undefined_flag_F77=unsupported
17706      always_export_symbols_F77=no
17707      enable_shared_with_static_runtimes_F77=yes
17708      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17709
17710      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17711        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17712	# If the export-symbols file already is a .def file (1st line
17713	# is EXPORTS), use it as is; otherwise, prepend...
17714	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17715	  cp $export_symbols $output_objdir/$soname.def;
17716	else
17717	  echo EXPORTS > $output_objdir/$soname.def;
17718	  cat $export_symbols >> $output_objdir/$soname.def;
17719	fi~
17720	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17721      else
17722	ld_shlibs_F77=no
17723      fi
17724      ;;
17725
17726    interix[3-9]*)
17727      hardcode_direct_F77=no
17728      hardcode_shlibpath_var_F77=no
17729      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17730      export_dynamic_flag_spec_F77='${wl}-E'
17731      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17732      # Instead, shared libraries are loaded at an image base (0x10000000 by
17733      # default) and relocated if they conflict, which is a slow very memory
17734      # consuming and fragmenting process.  To avoid this, we pick a random,
17735      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17736      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17737      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'
17738      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'
17739      ;;
17740
17741    gnu* | linux* | k*bsd*-gnu)
17742      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17743	tmp_addflag=
17744	case $cc_basename,$host_cpu in
17745	pgcc*)				# Portland Group C compiler
17746	  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'
17747	  tmp_addflag=' $pic_flag'
17748	  ;;
17749	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17750	  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'
17751	  tmp_addflag=' $pic_flag -Mnomain' ;;
17752	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17753	  tmp_addflag=' -i_dynamic' ;;
17754	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17755	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17756	ifc* | ifort*)			# Intel Fortran compiler
17757	  tmp_addflag=' -nofor_main' ;;
17758	esac
17759	case `$CC -V 2>&1 | sed 5q` in
17760	*Sun\ C*)			# Sun C 5.9
17761	  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'
17762	  tmp_sharedflag='-G' ;;
17763	*Sun\ F*)			# Sun Fortran 8.3
17764	  tmp_sharedflag='-G' ;;
17765	*)
17766	  tmp_sharedflag='-shared' ;;
17767	esac
17768	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17769
17770	if test $supports_anon_versioning = yes; then
17771	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
17772  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17773  $echo "local: *; };" >> $output_objdir/$libname.ver~
17774	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17775	fi
17776      else
17777	ld_shlibs_F77=no
17778      fi
17779      ;;
17780
17781    netbsd*)
17782      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17783	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17784	wlarc=
17785      else
17786	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17787	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17788      fi
17789      ;;
17790
17791    solaris*)
17792      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17793	ld_shlibs_F77=no
17794	cat <<EOF 1>&2
17795
17796*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17797*** create shared libraries on Solaris systems.  Therefore, libtool
17798*** is disabling shared libraries support.  We urge you to upgrade GNU
17799*** binutils to release 2.9.1 or newer.  Another option is to modify
17800*** your PATH or compiler configuration so that the native linker is
17801*** used, and then restart.
17802
17803EOF
17804      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17805	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17806	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17807      else
17808	ld_shlibs_F77=no
17809      fi
17810      ;;
17811
17812    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17813      case `$LD -v 2>&1` in
17814        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17815	ld_shlibs_F77=no
17816	cat <<_LT_EOF 1>&2
17817
17818*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17819*** reliably create shared libraries on SCO systems.  Therefore, libtool
17820*** is disabling shared libraries support.  We urge you to upgrade GNU
17821*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17822*** your PATH or compiler configuration so that the native linker is
17823*** used, and then restart.
17824
17825_LT_EOF
17826	;;
17827	*)
17828	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17829	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17830	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17831	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17832	  else
17833	    ld_shlibs_F77=no
17834	  fi
17835	;;
17836      esac
17837      ;;
17838
17839    sunos4*)
17840      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17841      wlarc=
17842      hardcode_direct_F77=yes
17843      hardcode_shlibpath_var_F77=no
17844      ;;
17845
17846    *)
17847      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17848	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17849	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17850      else
17851	ld_shlibs_F77=no
17852      fi
17853      ;;
17854    esac
17855
17856    if test "$ld_shlibs_F77" = no; then
17857      runpath_var=
17858      hardcode_libdir_flag_spec_F77=
17859      export_dynamic_flag_spec_F77=
17860      whole_archive_flag_spec_F77=
17861    fi
17862  else
17863    # PORTME fill in a description of your system's linker (not GNU ld)
17864    case $host_os in
17865    aix3*)
17866      allow_undefined_flag_F77=unsupported
17867      always_export_symbols_F77=yes
17868      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'
17869      # Note: this linker hardcodes the directories in LIBPATH if there
17870      # are no directories specified by -L.
17871      hardcode_minus_L_F77=yes
17872      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17873	# Neither direct hardcoding nor static linking is supported with a
17874	# broken collect2.
17875	hardcode_direct_F77=unsupported
17876      fi
17877      ;;
17878
17879    aix4* | aix5*)
17880      if test "$host_cpu" = ia64; then
17881	# On IA64, the linker does run time linking by default, so we don't
17882	# have to do anything special.
17883	aix_use_runtimelinking=no
17884	exp_sym_flag='-Bexport'
17885	no_entry_flag=""
17886      else
17887	# If we're using GNU nm, then we don't want the "-C" option.
17888	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17889	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17890	  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'
17891	else
17892	  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'
17893	fi
17894	aix_use_runtimelinking=no
17895
17896	# Test if we are trying to use run time linking or normal
17897	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17898	# need to do runtime linking.
17899	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17900	  for ld_flag in $LDFLAGS; do
17901  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17902  	    aix_use_runtimelinking=yes
17903  	    break
17904  	  fi
17905	  done
17906	  ;;
17907	esac
17908
17909	exp_sym_flag='-bexport'
17910	no_entry_flag='-bnoentry'
17911      fi
17912
17913      # When large executables or shared objects are built, AIX ld can
17914      # have problems creating the table of contents.  If linking a library
17915      # or program results in "error TOC overflow" add -mminimal-toc to
17916      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17917      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17918
17919      archive_cmds_F77=''
17920      hardcode_direct_F77=yes
17921      hardcode_libdir_separator_F77=':'
17922      link_all_deplibs_F77=yes
17923
17924      if test "$GCC" = yes; then
17925	case $host_os in aix4.[012]|aix4.[012].*)
17926	# We only want to do this on AIX 4.2 and lower, the check
17927	# below for broken collect2 doesn't work under 4.3+
17928	  collect2name=`${CC} -print-prog-name=collect2`
17929	  if test -f "$collect2name" && \
17930  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17931	  then
17932  	  # We have reworked collect2
17933  	  :
17934	  else
17935  	  # We have old collect2
17936  	  hardcode_direct_F77=unsupported
17937  	  # It fails to find uninstalled libraries when the uninstalled
17938  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17939  	  # to unsupported forces relinking
17940  	  hardcode_minus_L_F77=yes
17941  	  hardcode_libdir_flag_spec_F77='-L$libdir'
17942  	  hardcode_libdir_separator_F77=
17943	  fi
17944	  ;;
17945	esac
17946	shared_flag='-shared'
17947	if test "$aix_use_runtimelinking" = yes; then
17948	  shared_flag="$shared_flag "'${wl}-G'
17949	fi
17950      else
17951	# not using gcc
17952	if test "$host_cpu" = ia64; then
17953  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17954  	# chokes on -Wl,-G. The following line is correct:
17955	  shared_flag='-G'
17956	else
17957	  if test "$aix_use_runtimelinking" = yes; then
17958	    shared_flag='${wl}-G'
17959	  else
17960	    shared_flag='${wl}-bM:SRE'
17961	  fi
17962	fi
17963      fi
17964
17965      # It seems that -bexpall does not export symbols beginning with
17966      # underscore (_), so it is better to generate a list of symbols to export.
17967      always_export_symbols_F77=yes
17968      if test "$aix_use_runtimelinking" = yes; then
17969	# Warning - without using the other runtime loading flags (-brtl),
17970	# -berok will link without error, but may produce a broken library.
17971	allow_undefined_flag_F77='-berok'
17972       # Determine the default libpath from the value encoded in an empty executable.
17973       cat >conftest.$ac_ext <<_ACEOF
17974      program main
17975
17976      end
17977_ACEOF
17978rm -f conftest.$ac_objext conftest$ac_exeext
17979if { (ac_try="$ac_link"
17980case "(($ac_try" in
17981  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982  *) ac_try_echo=$ac_try;;
17983esac
17984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17985$as_echo "$ac_try_echo") >&5
17986  (eval "$ac_link") 2>conftest.er1
17987  ac_status=$?
17988  grep -v '^ *+' conftest.er1 >conftest.err
17989  rm -f conftest.er1
17990  cat conftest.err >&5
17991  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992  (exit $ac_status); } && {
17993	 test -z "$ac_f77_werror_flag" ||
17994	 test ! -s conftest.err
17995       } && test -s conftest$ac_exeext && {
17996	 test "$cross_compiling" = yes ||
17997	 $as_test_x conftest$ac_exeext
17998       }; then
17999
18000lt_aix_libpath_sed='
18001    /Import File Strings/,/^$/ {
18002	/^0/ {
18003	    s/^0  *\(.*\)$/\1/
18004	    p
18005	}
18006    }'
18007aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18008# Check for a 64-bit object if we didn't find anything.
18009if test -z "$aix_libpath"; then
18010  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18011fi
18012else
18013  $as_echo "$as_me: failed program was:" >&5
18014sed 's/^/| /' conftest.$ac_ext >&5
18015
18016
18017fi
18018
18019rm -rf conftest.dSYM
18020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18021      conftest$ac_exeext conftest.$ac_ext
18022if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18023
18024       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18025	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"
18026       else
18027	if test "$host_cpu" = ia64; then
18028	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18029	  allow_undefined_flag_F77="-z nodefs"
18030	  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"
18031	else
18032	 # Determine the default libpath from the value encoded in an empty executable.
18033	 cat >conftest.$ac_ext <<_ACEOF
18034      program main
18035
18036      end
18037_ACEOF
18038rm -f conftest.$ac_objext conftest$ac_exeext
18039if { (ac_try="$ac_link"
18040case "(($ac_try" in
18041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042  *) ac_try_echo=$ac_try;;
18043esac
18044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18045$as_echo "$ac_try_echo") >&5
18046  (eval "$ac_link") 2>conftest.er1
18047  ac_status=$?
18048  grep -v '^ *+' conftest.er1 >conftest.err
18049  rm -f conftest.er1
18050  cat conftest.err >&5
18051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052  (exit $ac_status); } && {
18053	 test -z "$ac_f77_werror_flag" ||
18054	 test ! -s conftest.err
18055       } && test -s conftest$ac_exeext && {
18056	 test "$cross_compiling" = yes ||
18057	 $as_test_x conftest$ac_exeext
18058       }; then
18059
18060lt_aix_libpath_sed='
18061    /Import File Strings/,/^$/ {
18062	/^0/ {
18063	    s/^0  *\(.*\)$/\1/
18064	    p
18065	}
18066    }'
18067aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18068# Check for a 64-bit object if we didn't find anything.
18069if test -z "$aix_libpath"; then
18070  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18071fi
18072else
18073  $as_echo "$as_me: failed program was:" >&5
18074sed 's/^/| /' conftest.$ac_ext >&5
18075
18076
18077fi
18078
18079rm -rf conftest.dSYM
18080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18081      conftest$ac_exeext conftest.$ac_ext
18082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18083
18084	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18085	  # Warning - without using the other run time loading flags,
18086	  # -berok will link without error, but may produce a broken library.
18087	  no_undefined_flag_F77=' ${wl}-bernotok'
18088	  allow_undefined_flag_F77=' ${wl}-berok'
18089	  # Exported symbols can be pulled into shared objects from archives
18090	  whole_archive_flag_spec_F77='$convenience'
18091	  archive_cmds_need_lc_F77=yes
18092	  # This is similar to how AIX traditionally builds its shared libraries.
18093	  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'
18094	fi
18095      fi
18096      ;;
18097
18098    amigaos*)
18099      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)'
18100      hardcode_libdir_flag_spec_F77='-L$libdir'
18101      hardcode_minus_L_F77=yes
18102      # see comment about different semantics on the GNU ld section
18103      ld_shlibs_F77=no
18104      ;;
18105
18106    bsdi[45]*)
18107      export_dynamic_flag_spec_F77=-rdynamic
18108      ;;
18109
18110    cygwin* | mingw* | pw32*)
18111      # When not using gcc, we currently assume that we are using
18112      # Microsoft Visual C++.
18113      # hardcode_libdir_flag_spec is actually meaningless, as there is
18114      # no search path for DLLs.
18115      hardcode_libdir_flag_spec_F77=' '
18116      allow_undefined_flag_F77=unsupported
18117      # Tell ltmain to make .lib files, not .a files.
18118      libext=lib
18119      # Tell ltmain to make .dll files, not .so files.
18120      shrext_cmds=".dll"
18121      # FIXME: Setting linknames here is a bad hack.
18122      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18123      # The linker will automatically build a .lib file if we build a DLL.
18124      old_archive_From_new_cmds_F77='true'
18125      # FIXME: Should let the user specify the lib program.
18126      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18127      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18128      enable_shared_with_static_runtimes_F77=yes
18129      ;;
18130
18131    darwin* | rhapsody*)
18132      case $host_os in
18133        rhapsody* | darwin1.[012])
18134         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
18135         ;;
18136       *) # Darwin 1.3 on
18137         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18138           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18139         else
18140           case ${MACOSX_DEPLOYMENT_TARGET} in
18141             10.[012])
18142               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18143               ;;
18144             10.*)
18145               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
18146               ;;
18147           esac
18148         fi
18149         ;;
18150      esac
18151      archive_cmds_need_lc_F77=no
18152      hardcode_direct_F77=no
18153      hardcode_automatic_F77=yes
18154      hardcode_shlibpath_var_F77=unsupported
18155      whole_archive_flag_spec_F77=''
18156      link_all_deplibs_F77=yes
18157    if test "$GCC" = yes ; then
18158    	output_verbose_link_cmd='echo'
18159        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18160      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18161      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18162      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}'
18163      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}'
18164    else
18165      case $cc_basename in
18166        xlc*)
18167         output_verbose_link_cmd='echo'
18168         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
18169         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18170          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18171         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}'
18172          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}'
18173          ;;
18174       *)
18175         ld_shlibs_F77=no
18176          ;;
18177      esac
18178    fi
18179      ;;
18180
18181    dgux*)
18182      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18183      hardcode_libdir_flag_spec_F77='-L$libdir'
18184      hardcode_shlibpath_var_F77=no
18185      ;;
18186
18187    freebsd1*)
18188      ld_shlibs_F77=no
18189      ;;
18190
18191    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18192    # support.  Future versions do this automatically, but an explicit c++rt0.o
18193    # does not break anything, and helps significantly (at the cost of a little
18194    # extra space).
18195    freebsd2.2*)
18196      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18197      hardcode_libdir_flag_spec_F77='-R$libdir'
18198      hardcode_direct_F77=yes
18199      hardcode_shlibpath_var_F77=no
18200      ;;
18201
18202    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18203    freebsd2*)
18204      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18205      hardcode_direct_F77=yes
18206      hardcode_minus_L_F77=yes
18207      hardcode_shlibpath_var_F77=no
18208      ;;
18209
18210    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18211    freebsd* | dragonfly*)
18212      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18213      hardcode_libdir_flag_spec_F77='-R$libdir'
18214      hardcode_direct_F77=yes
18215      hardcode_shlibpath_var_F77=no
18216      ;;
18217
18218    hpux9*)
18219      if test "$GCC" = yes; then
18220	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'
18221      else
18222	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'
18223      fi
18224      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18225      hardcode_libdir_separator_F77=:
18226      hardcode_direct_F77=yes
18227
18228      # hardcode_minus_L: Not really in the search PATH,
18229      # but as the default location of the library.
18230      hardcode_minus_L_F77=yes
18231      export_dynamic_flag_spec_F77='${wl}-E'
18232      ;;
18233
18234    hpux10*)
18235      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18236	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18237      else
18238	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18239      fi
18240      if test "$with_gnu_ld" = no; then
18241	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18242	hardcode_libdir_separator_F77=:
18243
18244	hardcode_direct_F77=yes
18245	export_dynamic_flag_spec_F77='${wl}-E'
18246
18247	# hardcode_minus_L: Not really in the search PATH,
18248	# but as the default location of the library.
18249	hardcode_minus_L_F77=yes
18250      fi
18251      ;;
18252
18253    hpux11*)
18254      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18255	case $host_cpu in
18256	hppa*64*)
18257	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18258	  ;;
18259	ia64*)
18260	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18261	  ;;
18262	*)
18263	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18264	  ;;
18265	esac
18266      else
18267	case $host_cpu in
18268	hppa*64*)
18269	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18270	  ;;
18271	ia64*)
18272	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18273	  ;;
18274	*)
18275	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18276	  ;;
18277	esac
18278      fi
18279      if test "$with_gnu_ld" = no; then
18280	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18281	hardcode_libdir_separator_F77=:
18282
18283	case $host_cpu in
18284	hppa*64*|ia64*)
18285	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18286	  hardcode_direct_F77=no
18287	  hardcode_shlibpath_var_F77=no
18288	  ;;
18289	*)
18290	  hardcode_direct_F77=yes
18291	  export_dynamic_flag_spec_F77='${wl}-E'
18292
18293	  # hardcode_minus_L: Not really in the search PATH,
18294	  # but as the default location of the library.
18295	  hardcode_minus_L_F77=yes
18296	  ;;
18297	esac
18298      fi
18299      ;;
18300
18301    irix5* | irix6* | nonstopux*)
18302      if test "$GCC" = yes; then
18303	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'
18304      else
18305	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'
18306	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18307      fi
18308      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18309      hardcode_libdir_separator_F77=:
18310      link_all_deplibs_F77=yes
18311      ;;
18312
18313    netbsd*)
18314      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18315	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18316      else
18317	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18318      fi
18319      hardcode_libdir_flag_spec_F77='-R$libdir'
18320      hardcode_direct_F77=yes
18321      hardcode_shlibpath_var_F77=no
18322      ;;
18323
18324    newsos6)
18325      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18326      hardcode_direct_F77=yes
18327      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18328      hardcode_libdir_separator_F77=:
18329      hardcode_shlibpath_var_F77=no
18330      ;;
18331
18332    openbsd*)
18333      if test -f /usr/libexec/ld.so; then
18334	hardcode_direct_F77=yes
18335	hardcode_shlibpath_var_F77=no
18336	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18337	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18338	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18339	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18340	  export_dynamic_flag_spec_F77='${wl}-E'
18341	else
18342	  case $host_os in
18343	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18344	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18345	     hardcode_libdir_flag_spec_F77='-R$libdir'
18346	     ;;
18347	   *)
18348	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18349	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18350	     ;;
18351	  esac
18352        fi
18353      else
18354	ld_shlibs_F77=no
18355      fi
18356      ;;
18357
18358    os2*)
18359      hardcode_libdir_flag_spec_F77='-L$libdir'
18360      hardcode_minus_L_F77=yes
18361      allow_undefined_flag_F77=unsupported
18362      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'
18363      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18364      ;;
18365
18366    osf3*)
18367      if test "$GCC" = yes; then
18368	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18369	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'
18370      else
18371	allow_undefined_flag_F77=' -expect_unresolved \*'
18372	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'
18373      fi
18374      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18375      hardcode_libdir_separator_F77=:
18376      ;;
18377
18378    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18379      if test "$GCC" = yes; then
18380	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18381	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'
18382	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18383      else
18384	allow_undefined_flag_F77=' -expect_unresolved \*'
18385	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'
18386	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~
18387	$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'
18388
18389	# Both c and cxx compiler support -rpath directly
18390	hardcode_libdir_flag_spec_F77='-rpath $libdir'
18391      fi
18392      hardcode_libdir_separator_F77=:
18393      ;;
18394
18395    solaris*)
18396      no_undefined_flag_F77=' -z text'
18397      if test "$GCC" = yes; then
18398	wlarc='${wl}'
18399	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18400	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18401	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18402      else
18403	wlarc=''
18404	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18405	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18406  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18407      fi
18408      hardcode_libdir_flag_spec_F77='-R$libdir'
18409      hardcode_shlibpath_var_F77=no
18410      case $host_os in
18411      solaris2.[0-5] | solaris2.[0-5].*) ;;
18412      *)
18413	# The compiler driver will combine and reorder linker options,
18414	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18415	# but is careful enough not to reorder.
18416 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18417	if test "$GCC" = yes; then
18418	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18419	else
18420	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18421	fi
18422	;;
18423      esac
18424      link_all_deplibs_F77=yes
18425      ;;
18426
18427    sunos4*)
18428      if test "x$host_vendor" = xsequent; then
18429	# Use $CC to link under sequent, because it throws in some extra .o
18430	# files that make .init and .fini sections work.
18431	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18432      else
18433	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18434      fi
18435      hardcode_libdir_flag_spec_F77='-L$libdir'
18436      hardcode_direct_F77=yes
18437      hardcode_minus_L_F77=yes
18438      hardcode_shlibpath_var_F77=no
18439      ;;
18440
18441    sysv4)
18442      case $host_vendor in
18443	sni)
18444	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18445	  hardcode_direct_F77=yes # is this really true???
18446	;;
18447	siemens)
18448	  ## LD is ld it makes a PLAMLIB
18449	  ## CC just makes a GrossModule.
18450	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18451	  reload_cmds_F77='$CC -r -o $output$reload_objs'
18452	  hardcode_direct_F77=no
18453        ;;
18454	motorola)
18455	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18456	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18457	;;
18458      esac
18459      runpath_var='LD_RUN_PATH'
18460      hardcode_shlibpath_var_F77=no
18461      ;;
18462
18463    sysv4.3*)
18464      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18465      hardcode_shlibpath_var_F77=no
18466      export_dynamic_flag_spec_F77='-Bexport'
18467      ;;
18468
18469    sysv4*MP*)
18470      if test -d /usr/nec; then
18471	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18472	hardcode_shlibpath_var_F77=no
18473	runpath_var=LD_RUN_PATH
18474	hardcode_runpath_var=yes
18475	ld_shlibs_F77=yes
18476      fi
18477      ;;
18478
18479    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18480      no_undefined_flag_F77='${wl}-z,text'
18481      archive_cmds_need_lc_F77=no
18482      hardcode_shlibpath_var_F77=no
18483      runpath_var='LD_RUN_PATH'
18484
18485      if test "$GCC" = yes; then
18486	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18487	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18488      else
18489	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18490	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18491      fi
18492      ;;
18493
18494    sysv5* | sco3.2v5* | sco5v6*)
18495      # Note: We can NOT use -z defs as we might desire, because we do not
18496      # link with -lc, and that would cause any symbols used from libc to
18497      # always be unresolved, which means just about no library would
18498      # ever link correctly.  If we're not using GNU ld we use -z text
18499      # though, which does catch some bad symbols but isn't as heavy-handed
18500      # as -z defs.
18501      no_undefined_flag_F77='${wl}-z,text'
18502      allow_undefined_flag_F77='${wl}-z,nodefs'
18503      archive_cmds_need_lc_F77=no
18504      hardcode_shlibpath_var_F77=no
18505      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18506      hardcode_libdir_separator_F77=':'
18507      link_all_deplibs_F77=yes
18508      export_dynamic_flag_spec_F77='${wl}-Bexport'
18509      runpath_var='LD_RUN_PATH'
18510
18511      if test "$GCC" = yes; then
18512	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18513	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18514      else
18515	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18516	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18517      fi
18518      ;;
18519
18520    uts4*)
18521      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18522      hardcode_libdir_flag_spec_F77='-L$libdir'
18523      hardcode_shlibpath_var_F77=no
18524      ;;
18525
18526    *)
18527      ld_shlibs_F77=no
18528      ;;
18529    esac
18530  fi
18531
18532{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18533$as_echo "$ld_shlibs_F77" >&6; }
18534test "$ld_shlibs_F77" = no && can_build_shared=no
18535
18536#
18537# Do we need to explicitly link libc?
18538#
18539case "x$archive_cmds_need_lc_F77" in
18540x|xyes)
18541  # Assume -lc should be added
18542  archive_cmds_need_lc_F77=yes
18543
18544  if test "$enable_shared" = yes && test "$GCC" = yes; then
18545    case $archive_cmds_F77 in
18546    *'~'*)
18547      # FIXME: we may have to deal with multi-command sequences.
18548      ;;
18549    '$CC '*)
18550      # Test whether the compiler implicitly links with -lc since on some
18551      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18552      # to ld, don't add -lc before -lgcc.
18553      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18554$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18555      $rm conftest*
18556      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18557
18558      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18559  (eval $ac_compile) 2>&5
18560  ac_status=$?
18561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562  (exit $ac_status); } 2>conftest.err; then
18563        soname=conftest
18564        lib=conftest
18565        libobjs=conftest.$ac_objext
18566        deplibs=
18567        wl=$lt_prog_compiler_wl_F77
18568	pic_flag=$lt_prog_compiler_pic_F77
18569        compiler_flags=-v
18570        linker_flags=-v
18571        verstring=
18572        output_objdir=.
18573        libname=conftest
18574        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18575        allow_undefined_flag_F77=
18576        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18577  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18578  ac_status=$?
18579  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580  (exit $ac_status); }
18581        then
18582	  archive_cmds_need_lc_F77=no
18583        else
18584	  archive_cmds_need_lc_F77=yes
18585        fi
18586        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18587      else
18588        cat conftest.err 1>&5
18589      fi
18590      $rm conftest*
18591      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18592$as_echo "$archive_cmds_need_lc_F77" >&6; }
18593      ;;
18594    esac
18595  fi
18596  ;;
18597esac
18598
18599{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18600$as_echo_n "checking dynamic linker characteristics... " >&6; }
18601library_names_spec=
18602libname_spec='lib$name'
18603soname_spec=
18604shrext_cmds=".so"
18605postinstall_cmds=
18606postuninstall_cmds=
18607finish_cmds=
18608finish_eval=
18609shlibpath_var=
18610shlibpath_overrides_runpath=unknown
18611version_type=none
18612dynamic_linker="$host_os ld.so"
18613sys_lib_dlsearch_path_spec="/lib /usr/lib"
18614
18615need_lib_prefix=unknown
18616hardcode_into_libs=no
18617
18618# when you set need_version to no, make sure it does not cause -set_version
18619# flags to be left without arguments
18620need_version=unknown
18621
18622case $host_os in
18623aix3*)
18624  version_type=linux
18625  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18626  shlibpath_var=LIBPATH
18627
18628  # AIX 3 has no versioning support, so we append a major version to the name.
18629  soname_spec='${libname}${release}${shared_ext}$major'
18630  ;;
18631
18632aix4* | aix5*)
18633  version_type=linux
18634  need_lib_prefix=no
18635  need_version=no
18636  hardcode_into_libs=yes
18637  if test "$host_cpu" = ia64; then
18638    # AIX 5 supports IA64
18639    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18640    shlibpath_var=LD_LIBRARY_PATH
18641  else
18642    # With GCC up to 2.95.x, collect2 would create an import file
18643    # for dependence libraries.  The import file would start with
18644    # the line `#! .'.  This would cause the generated library to
18645    # depend on `.', always an invalid library.  This was fixed in
18646    # development snapshots of GCC prior to 3.0.
18647    case $host_os in
18648      aix4 | aix4.[01] | aix4.[01].*)
18649      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18650	   echo ' yes '
18651	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18652	:
18653      else
18654	can_build_shared=no
18655      fi
18656      ;;
18657    esac
18658    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18659    # soname into executable. Probably we can add versioning support to
18660    # collect2, so additional links can be useful in future.
18661    if test "$aix_use_runtimelinking" = yes; then
18662      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18663      # instead of lib<name>.a to let people know that these are not
18664      # typical AIX shared libraries.
18665      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18666    else
18667      # We preserve .a as extension for shared libraries through AIX4.2
18668      # and later when we are not doing run time linking.
18669      library_names_spec='${libname}${release}.a $libname.a'
18670      soname_spec='${libname}${release}${shared_ext}$major'
18671    fi
18672    shlibpath_var=LIBPATH
18673  fi
18674  ;;
18675
18676amigaos*)
18677  library_names_spec='$libname.ixlibrary $libname.a'
18678  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18679  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'
18680  ;;
18681
18682beos*)
18683  library_names_spec='${libname}${shared_ext}'
18684  dynamic_linker="$host_os ld.so"
18685  shlibpath_var=LIBRARY_PATH
18686  ;;
18687
18688bsdi[45]*)
18689  version_type=linux
18690  need_version=no
18691  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18692  soname_spec='${libname}${release}${shared_ext}$major'
18693  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18694  shlibpath_var=LD_LIBRARY_PATH
18695  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18696  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18697  # the default ld.so.conf also contains /usr/contrib/lib and
18698  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18699  # libtool to hard-code these into programs
18700  ;;
18701
18702cygwin* | mingw* | pw32*)
18703  version_type=windows
18704  shrext_cmds=".dll"
18705  need_version=no
18706  need_lib_prefix=no
18707
18708  case $GCC,$host_os in
18709  yes,cygwin* | yes,mingw* | yes,pw32*)
18710    library_names_spec='$libname.dll.a'
18711    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18712    postinstall_cmds='base_file=`basename \${file}`~
18713      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18714      dldir=$destdir/`dirname \$dlpath`~
18715      test -d \$dldir || mkdir -p \$dldir~
18716      $install_prog $dir/$dlname \$dldir/$dlname~
18717      chmod a+x \$dldir/$dlname'
18718    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18719      dlpath=$dir/\$dldll~
18720       $rm \$dlpath'
18721    shlibpath_overrides_runpath=yes
18722
18723    case $host_os in
18724    cygwin*)
18725      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18726      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18727      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18728      ;;
18729    mingw*)
18730      # MinGW DLLs use traditional 'lib' prefix
18731      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18732      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18733      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18734        # It is most probably a Windows format PATH printed by
18735        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18736        # path with ; separators, and with drive letters. We can handle the
18737        # drive letters (cygwin fileutils understands them), so leave them,
18738        # especially as we might pass files found there to a mingw objdump,
18739        # which wouldn't understand a cygwinified path. Ahh.
18740        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18741      else
18742        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18743      fi
18744      ;;
18745    pw32*)
18746      # pw32 DLLs use 'pw' prefix rather than 'lib'
18747      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18748      ;;
18749    esac
18750    ;;
18751
18752  *)
18753    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18754    ;;
18755  esac
18756  dynamic_linker='Win32 ld.exe'
18757  # FIXME: first we should search . and the directory the executable is in
18758  shlibpath_var=PATH
18759  ;;
18760
18761darwin* | rhapsody*)
18762  dynamic_linker="$host_os dyld"
18763  version_type=darwin
18764  need_lib_prefix=no
18765  need_version=no
18766  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18767  soname_spec='${libname}${release}${major}$shared_ext'
18768  shlibpath_overrides_runpath=yes
18769  shlibpath_var=DYLD_LIBRARY_PATH
18770  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18771
18772  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18773  ;;
18774
18775dgux*)
18776  version_type=linux
18777  need_lib_prefix=no
18778  need_version=no
18779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18780  soname_spec='${libname}${release}${shared_ext}$major'
18781  shlibpath_var=LD_LIBRARY_PATH
18782  ;;
18783
18784freebsd1*)
18785  dynamic_linker=no
18786  ;;
18787
18788freebsd* | dragonfly*)
18789  # DragonFly does not have aout.  When/if they implement a new
18790  # versioning mechanism, adjust this.
18791  if test -x /usr/bin/objformat; then
18792    objformat=`/usr/bin/objformat`
18793  else
18794    case $host_os in
18795    freebsd[123]*) objformat=aout ;;
18796    *) objformat=elf ;;
18797    esac
18798  fi
18799  version_type=freebsd-$objformat
18800  case $version_type in
18801    freebsd-elf*)
18802      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18803      need_version=no
18804      need_lib_prefix=no
18805      ;;
18806    freebsd-*)
18807      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18808      need_version=yes
18809      ;;
18810  esac
18811  shlibpath_var=LD_LIBRARY_PATH
18812  case $host_os in
18813  freebsd2*)
18814    shlibpath_overrides_runpath=yes
18815    ;;
18816  freebsd3.[01]* | freebsdelf3.[01]*)
18817    shlibpath_overrides_runpath=yes
18818    hardcode_into_libs=yes
18819    ;;
18820  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18821  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18822    shlibpath_overrides_runpath=no
18823    hardcode_into_libs=yes
18824    ;;
18825  *) # from 4.6 on, and DragonFly
18826    shlibpath_overrides_runpath=yes
18827    hardcode_into_libs=yes
18828    ;;
18829  esac
18830  ;;
18831
18832gnu*)
18833  version_type=linux
18834  need_lib_prefix=no
18835  need_version=no
18836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18837  soname_spec='${libname}${release}${shared_ext}$major'
18838  shlibpath_var=LD_LIBRARY_PATH
18839  hardcode_into_libs=yes
18840  ;;
18841
18842hpux9* | hpux10* | hpux11*)
18843  # Give a soname corresponding to the major version so that dld.sl refuses to
18844  # link against other versions.
18845  version_type=sunos
18846  need_lib_prefix=no
18847  need_version=no
18848  case $host_cpu in
18849  ia64*)
18850    shrext_cmds='.so'
18851    hardcode_into_libs=yes
18852    dynamic_linker="$host_os dld.so"
18853    shlibpath_var=LD_LIBRARY_PATH
18854    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18855    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18856    soname_spec='${libname}${release}${shared_ext}$major'
18857    if test "X$HPUX_IA64_MODE" = X32; then
18858      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18859    else
18860      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18861    fi
18862    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18863    ;;
18864   hppa*64*)
18865     shrext_cmds='.sl'
18866     hardcode_into_libs=yes
18867     dynamic_linker="$host_os dld.sl"
18868     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18871     soname_spec='${libname}${release}${shared_ext}$major'
18872     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18873     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18874     ;;
18875   *)
18876    shrext_cmds='.sl'
18877    dynamic_linker="$host_os dld.sl"
18878    shlibpath_var=SHLIB_PATH
18879    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18881    soname_spec='${libname}${release}${shared_ext}$major'
18882    ;;
18883  esac
18884  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18885  postinstall_cmds='chmod 555 $lib'
18886  ;;
18887
18888interix[3-9]*)
18889  version_type=linux
18890  need_lib_prefix=no
18891  need_version=no
18892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18893  soname_spec='${libname}${release}${shared_ext}$major'
18894  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18895  shlibpath_var=LD_LIBRARY_PATH
18896  shlibpath_overrides_runpath=no
18897  hardcode_into_libs=yes
18898  ;;
18899
18900irix5* | irix6* | nonstopux*)
18901  case $host_os in
18902    nonstopux*) version_type=nonstopux ;;
18903    *)
18904	if test "$lt_cv_prog_gnu_ld" = yes; then
18905		version_type=linux
18906	else
18907		version_type=irix
18908	fi ;;
18909  esac
18910  need_lib_prefix=no
18911  need_version=no
18912  soname_spec='${libname}${release}${shared_ext}$major'
18913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18914  case $host_os in
18915  irix5* | nonstopux*)
18916    libsuff= shlibsuff=
18917    ;;
18918  *)
18919    case $LD in # libtool.m4 will add one of these switches to LD
18920    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18921      libsuff= shlibsuff= libmagic=32-bit;;
18922    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18923      libsuff=32 shlibsuff=N32 libmagic=N32;;
18924    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18925      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18926    *) libsuff= shlibsuff= libmagic=never-match;;
18927    esac
18928    ;;
18929  esac
18930  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18931  shlibpath_overrides_runpath=no
18932  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18933  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18934  hardcode_into_libs=yes
18935  ;;
18936
18937# No shared lib support for Linux oldld, aout, or coff.
18938linux*oldld* | linux*aout* | linux*coff*)
18939  dynamic_linker=no
18940  ;;
18941
18942# This must be Linux ELF.
18943linux* | k*bsd*-gnu)
18944  version_type=linux
18945  need_lib_prefix=no
18946  need_version=no
18947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18948  soname_spec='${libname}${release}${shared_ext}$major'
18949  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18950  shlibpath_var=LD_LIBRARY_PATH
18951  shlibpath_overrides_runpath=no
18952  # This implies no fast_install, which is unacceptable.
18953  # Some rework will be needed to allow for fast_install
18954  # before this can be enabled.
18955  hardcode_into_libs=yes
18956
18957  # Append ld.so.conf contents to the search path
18958  if test -f /etc/ld.so.conf; then
18959    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' ' '`
18960    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18961  fi
18962
18963  # We used to test for /lib/ld.so.1 and disable shared libraries on
18964  # powerpc, because MkLinux only supported shared libraries with the
18965  # GNU dynamic linker.  Since this was broken with cross compilers,
18966  # most powerpc-linux boxes support dynamic linking these days and
18967  # people can always --disable-shared, the test was removed, and we
18968  # assume the GNU/Linux dynamic linker is in use.
18969  dynamic_linker='GNU/Linux ld.so'
18970  ;;
18971
18972netbsd*)
18973  version_type=sunos
18974  need_lib_prefix=no
18975  need_version=no
18976  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18978    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18979    dynamic_linker='NetBSD (a.out) ld.so'
18980  else
18981    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18982    soname_spec='${libname}${release}${shared_ext}$major'
18983    dynamic_linker='NetBSD ld.elf_so'
18984  fi
18985  shlibpath_var=LD_LIBRARY_PATH
18986  shlibpath_overrides_runpath=yes
18987  hardcode_into_libs=yes
18988  ;;
18989
18990newsos6)
18991  version_type=linux
18992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18993  shlibpath_var=LD_LIBRARY_PATH
18994  shlibpath_overrides_runpath=yes
18995  ;;
18996
18997nto-qnx*)
18998  version_type=linux
18999  need_lib_prefix=no
19000  need_version=no
19001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19002  soname_spec='${libname}${release}${shared_ext}$major'
19003  shlibpath_var=LD_LIBRARY_PATH
19004  shlibpath_overrides_runpath=yes
19005  ;;
19006
19007openbsd*)
19008  version_type=sunos
19009  sys_lib_dlsearch_path_spec="/usr/lib"
19010  need_lib_prefix=no
19011  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19012  case $host_os in
19013    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19014    *)                         need_version=no  ;;
19015  esac
19016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19017  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19018  shlibpath_var=LD_LIBRARY_PATH
19019  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19020    case $host_os in
19021      openbsd2.[89] | openbsd2.[89].*)
19022	shlibpath_overrides_runpath=no
19023	;;
19024      *)
19025	shlibpath_overrides_runpath=yes
19026	;;
19027      esac
19028  else
19029    shlibpath_overrides_runpath=yes
19030  fi
19031  ;;
19032
19033os2*)
19034  libname_spec='$name'
19035  shrext_cmds=".dll"
19036  need_lib_prefix=no
19037  library_names_spec='$libname${shared_ext} $libname.a'
19038  dynamic_linker='OS/2 ld.exe'
19039  shlibpath_var=LIBPATH
19040  ;;
19041
19042osf3* | osf4* | osf5*)
19043  version_type=osf
19044  need_lib_prefix=no
19045  need_version=no
19046  soname_spec='${libname}${release}${shared_ext}$major'
19047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048  shlibpath_var=LD_LIBRARY_PATH
19049  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19050  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19051  ;;
19052
19053rdos*)
19054  dynamic_linker=no
19055  ;;
19056
19057solaris*)
19058  version_type=linux
19059  need_lib_prefix=no
19060  need_version=no
19061  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19062  soname_spec='${libname}${release}${shared_ext}$major'
19063  shlibpath_var=LD_LIBRARY_PATH
19064  shlibpath_overrides_runpath=yes
19065  hardcode_into_libs=yes
19066  # ldd complains unless libraries are executable
19067  postinstall_cmds='chmod +x $lib'
19068  ;;
19069
19070sunos4*)
19071  version_type=sunos
19072  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19073  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19074  shlibpath_var=LD_LIBRARY_PATH
19075  shlibpath_overrides_runpath=yes
19076  if test "$with_gnu_ld" = yes; then
19077    need_lib_prefix=no
19078  fi
19079  need_version=yes
19080  ;;
19081
19082sysv4 | sysv4.3*)
19083  version_type=linux
19084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19085  soname_spec='${libname}${release}${shared_ext}$major'
19086  shlibpath_var=LD_LIBRARY_PATH
19087  case $host_vendor in
19088    sni)
19089      shlibpath_overrides_runpath=no
19090      need_lib_prefix=no
19091      export_dynamic_flag_spec='${wl}-Blargedynsym'
19092      runpath_var=LD_RUN_PATH
19093      ;;
19094    siemens)
19095      need_lib_prefix=no
19096      ;;
19097    motorola)
19098      need_lib_prefix=no
19099      need_version=no
19100      shlibpath_overrides_runpath=no
19101      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19102      ;;
19103  esac
19104  ;;
19105
19106sysv4*MP*)
19107  if test -d /usr/nec ;then
19108    version_type=linux
19109    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19110    soname_spec='$libname${shared_ext}.$major'
19111    shlibpath_var=LD_LIBRARY_PATH
19112  fi
19113  ;;
19114
19115sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19116  version_type=freebsd-elf
19117  need_lib_prefix=no
19118  need_version=no
19119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19120  soname_spec='${libname}${release}${shared_ext}$major'
19121  shlibpath_var=LD_LIBRARY_PATH
19122  hardcode_into_libs=yes
19123  if test "$with_gnu_ld" = yes; then
19124    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19125    shlibpath_overrides_runpath=no
19126  else
19127    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19128    shlibpath_overrides_runpath=yes
19129    case $host_os in
19130      sco3.2v5*)
19131        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19132	;;
19133    esac
19134  fi
19135  sys_lib_dlsearch_path_spec='/usr/lib'
19136  ;;
19137
19138uts4*)
19139  version_type=linux
19140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19141  soname_spec='${libname}${release}${shared_ext}$major'
19142  shlibpath_var=LD_LIBRARY_PATH
19143  ;;
19144
19145*)
19146  dynamic_linker=no
19147  ;;
19148esac
19149{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19150$as_echo "$dynamic_linker" >&6; }
19151test "$dynamic_linker" = no && can_build_shared=no
19152
19153variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19154if test "$GCC" = yes; then
19155  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19156fi
19157
19158{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19159$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19160hardcode_action_F77=
19161if test -n "$hardcode_libdir_flag_spec_F77" || \
19162   test -n "$runpath_var_F77" || \
19163   test "X$hardcode_automatic_F77" = "Xyes" ; then
19164
19165  # We can hardcode non-existant directories.
19166  if test "$hardcode_direct_F77" != no &&
19167     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19168     # have to relink, otherwise we might link with an installed library
19169     # when we should be linking with a yet-to-be-installed one
19170     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19171     test "$hardcode_minus_L_F77" != no; then
19172    # Linking always hardcodes the temporary library directory.
19173    hardcode_action_F77=relink
19174  else
19175    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19176    hardcode_action_F77=immediate
19177  fi
19178else
19179  # We cannot hardcode anything, or else we can only hardcode existing
19180  # directories.
19181  hardcode_action_F77=unsupported
19182fi
19183{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
19184$as_echo "$hardcode_action_F77" >&6; }
19185
19186if test "$hardcode_action_F77" = relink; then
19187  # Fast installation is not supported
19188  enable_fast_install=no
19189elif test "$shlibpath_overrides_runpath" = yes ||
19190     test "$enable_shared" = no; then
19191  # Fast installation is not necessary
19192  enable_fast_install=needless
19193fi
19194
19195
19196# The else clause should only fire when bootstrapping the
19197# libtool distribution, otherwise you forgot to ship ltmain.sh
19198# with your package, and you will get complaints that there are
19199# no rules to generate ltmain.sh.
19200if test -f "$ltmain"; then
19201  # See if we are running on zsh, and set the options which allow our commands through
19202  # without removal of \ escapes.
19203  if test -n "${ZSH_VERSION+set}" ; then
19204    setopt NO_GLOB_SUBST
19205  fi
19206  # Now quote all the things that may contain metacharacters while being
19207  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19208  # variables and quote the copies for generation of the libtool script.
19209  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19210    SED SHELL STRIP \
19211    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19212    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19213    deplibs_check_method reload_flag reload_cmds need_locks \
19214    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19215    lt_cv_sys_global_symbol_to_c_name_address \
19216    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19217    old_postinstall_cmds old_postuninstall_cmds \
19218    compiler_F77 \
19219    CC_F77 \
19220    LD_F77 \
19221    lt_prog_compiler_wl_F77 \
19222    lt_prog_compiler_pic_F77 \
19223    lt_prog_compiler_static_F77 \
19224    lt_prog_compiler_no_builtin_flag_F77 \
19225    export_dynamic_flag_spec_F77 \
19226    thread_safe_flag_spec_F77 \
19227    whole_archive_flag_spec_F77 \
19228    enable_shared_with_static_runtimes_F77 \
19229    old_archive_cmds_F77 \
19230    old_archive_from_new_cmds_F77 \
19231    predep_objects_F77 \
19232    postdep_objects_F77 \
19233    predeps_F77 \
19234    postdeps_F77 \
19235    compiler_lib_search_path_F77 \
19236    archive_cmds_F77 \
19237    archive_expsym_cmds_F77 \
19238    postinstall_cmds_F77 \
19239    postuninstall_cmds_F77 \
19240    old_archive_from_expsyms_cmds_F77 \
19241    allow_undefined_flag_F77 \
19242    no_undefined_flag_F77 \
19243    export_symbols_cmds_F77 \
19244    hardcode_libdir_flag_spec_F77 \
19245    hardcode_libdir_flag_spec_ld_F77 \
19246    hardcode_libdir_separator_F77 \
19247    hardcode_automatic_F77 \
19248    module_cmds_F77 \
19249    module_expsym_cmds_F77 \
19250    lt_cv_prog_compiler_c_o_F77 \
19251    fix_srcfile_path_F77 \
19252    exclude_expsyms_F77 \
19253    include_expsyms_F77; do
19254
19255    case $var in
19256    old_archive_cmds_F77 | \
19257    old_archive_from_new_cmds_F77 | \
19258    archive_cmds_F77 | \
19259    archive_expsym_cmds_F77 | \
19260    module_cmds_F77 | \
19261    module_expsym_cmds_F77 | \
19262    old_archive_from_expsyms_cmds_F77 | \
19263    export_symbols_cmds_F77 | \
19264    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19265    postinstall_cmds | postuninstall_cmds | \
19266    old_postinstall_cmds | old_postuninstall_cmds | \
19267    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19268      # Double-quote double-evaled strings.
19269      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19270      ;;
19271    *)
19272      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19273      ;;
19274    esac
19275  done
19276
19277  case $lt_echo in
19278  *'\$0 --fallback-echo"')
19279    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19280    ;;
19281  esac
19282
19283cfgfile="$ofile"
19284
19285  cat <<__EOF__ >> "$cfgfile"
19286# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19287
19288# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19289
19290# Shell to use when invoking shell scripts.
19291SHELL=$lt_SHELL
19292
19293# Whether or not to build shared libraries.
19294build_libtool_libs=$enable_shared
19295
19296# Whether or not to build static libraries.
19297build_old_libs=$enable_static
19298
19299# Whether or not to add -lc for building shared libraries.
19300build_libtool_need_lc=$archive_cmds_need_lc_F77
19301
19302# Whether or not to disallow shared libs when runtime libs are static
19303allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19304
19305# Whether or not to optimize for fast installation.
19306fast_install=$enable_fast_install
19307
19308# The host system.
19309host_alias=$host_alias
19310host=$host
19311host_os=$host_os
19312
19313# The build system.
19314build_alias=$build_alias
19315build=$build
19316build_os=$build_os
19317
19318# An echo program that does not interpret backslashes.
19319echo=$lt_echo
19320
19321# The archiver.
19322AR=$lt_AR
19323AR_FLAGS=$lt_AR_FLAGS
19324
19325# A C compiler.
19326LTCC=$lt_LTCC
19327
19328# LTCC compiler flags.
19329LTCFLAGS=$lt_LTCFLAGS
19330
19331# A language-specific compiler.
19332CC=$lt_compiler_F77
19333
19334# Is the compiler the GNU C compiler?
19335with_gcc=$GCC_F77
19336
19337# An ERE matcher.
19338EGREP=$lt_EGREP
19339
19340# The linker used to build libraries.
19341LD=$lt_LD_F77
19342
19343# Whether we need hard or soft links.
19344LN_S=$lt_LN_S
19345
19346# A BSD-compatible nm program.
19347NM=$lt_NM
19348
19349# A symbol stripping program
19350STRIP=$lt_STRIP
19351
19352# Used to examine libraries when file_magic_cmd begins "file"
19353MAGIC_CMD=$MAGIC_CMD
19354
19355# Used on cygwin: DLL creation program.
19356DLLTOOL="$DLLTOOL"
19357
19358# Used on cygwin: object dumper.
19359OBJDUMP="$OBJDUMP"
19360
19361# Used on cygwin: assembler.
19362AS="$AS"
19363
19364# The name of the directory that contains temporary libtool files.
19365objdir=$objdir
19366
19367# How to create reloadable object files.
19368reload_flag=$lt_reload_flag
19369reload_cmds=$lt_reload_cmds
19370
19371# How to pass a linker flag through the compiler.
19372wl=$lt_lt_prog_compiler_wl_F77
19373
19374# Object file suffix (normally "o").
19375objext="$ac_objext"
19376
19377# Old archive suffix (normally "a").
19378libext="$libext"
19379
19380# Shared library suffix (normally ".so").
19381shrext_cmds='$shrext_cmds'
19382
19383# Executable file suffix (normally "").
19384exeext="$exeext"
19385
19386# Additional compiler flags for building library objects.
19387pic_flag=$lt_lt_prog_compiler_pic_F77
19388pic_mode=$pic_mode
19389
19390# What is the maximum length of a command?
19391max_cmd_len=$lt_cv_sys_max_cmd_len
19392
19393# Does compiler simultaneously support -c and -o options?
19394compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19395
19396# Must we lock files when doing compilation?
19397need_locks=$lt_need_locks
19398
19399# Do we need the lib prefix for modules?
19400need_lib_prefix=$need_lib_prefix
19401
19402# Do we need a version for libraries?
19403need_version=$need_version
19404
19405# Whether dlopen is supported.
19406dlopen_support=$enable_dlopen
19407
19408# Whether dlopen of programs is supported.
19409dlopen_self=$enable_dlopen_self
19410
19411# Whether dlopen of statically linked programs is supported.
19412dlopen_self_static=$enable_dlopen_self_static
19413
19414# Compiler flag to prevent dynamic linking.
19415link_static_flag=$lt_lt_prog_compiler_static_F77
19416
19417# Compiler flag to turn off builtin functions.
19418no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19419
19420# Compiler flag to allow reflexive dlopens.
19421export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19422
19423# Compiler flag to generate shared objects directly from archives.
19424whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19425
19426# Compiler flag to generate thread-safe objects.
19427thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19428
19429# Library versioning type.
19430version_type=$version_type
19431
19432# Format of library name prefix.
19433libname_spec=$lt_libname_spec
19434
19435# List of archive names.  First name is the real one, the rest are links.
19436# The last name is the one that the linker finds with -lNAME.
19437library_names_spec=$lt_library_names_spec
19438
19439# The coded name of the library, if different from the real name.
19440soname_spec=$lt_soname_spec
19441
19442# Commands used to build and install an old-style archive.
19443RANLIB=$lt_RANLIB
19444old_archive_cmds=$lt_old_archive_cmds_F77
19445old_postinstall_cmds=$lt_old_postinstall_cmds
19446old_postuninstall_cmds=$lt_old_postuninstall_cmds
19447
19448# Create an old-style archive from a shared archive.
19449old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19450
19451# Create a temporary old-style archive to link instead of a shared archive.
19452old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19453
19454# Commands used to build and install a shared archive.
19455archive_cmds=$lt_archive_cmds_F77
19456archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19457postinstall_cmds=$lt_postinstall_cmds
19458postuninstall_cmds=$lt_postuninstall_cmds
19459
19460# Commands used to build a loadable module (assumed same as above if empty)
19461module_cmds=$lt_module_cmds_F77
19462module_expsym_cmds=$lt_module_expsym_cmds_F77
19463
19464# Commands to strip libraries.
19465old_striplib=$lt_old_striplib
19466striplib=$lt_striplib
19467
19468# Dependencies to place before the objects being linked to create a
19469# shared library.
19470predep_objects=$lt_predep_objects_F77
19471
19472# Dependencies to place after the objects being linked to create a
19473# shared library.
19474postdep_objects=$lt_postdep_objects_F77
19475
19476# Dependencies to place before the objects being linked to create a
19477# shared library.
19478predeps=$lt_predeps_F77
19479
19480# Dependencies to place after the objects being linked to create a
19481# shared library.
19482postdeps=$lt_postdeps_F77
19483
19484# The library search path used internally by the compiler when linking
19485# a shared library.
19486compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19487
19488# Method to check whether dependent libraries are shared objects.
19489deplibs_check_method=$lt_deplibs_check_method
19490
19491# Command to use when deplibs_check_method == file_magic.
19492file_magic_cmd=$lt_file_magic_cmd
19493
19494# Flag that allows shared libraries with undefined symbols to be built.
19495allow_undefined_flag=$lt_allow_undefined_flag_F77
19496
19497# Flag that forces no undefined symbols.
19498no_undefined_flag=$lt_no_undefined_flag_F77
19499
19500# Commands used to finish a libtool library installation in a directory.
19501finish_cmds=$lt_finish_cmds
19502
19503# Same as above, but a single script fragment to be evaled but not shown.
19504finish_eval=$lt_finish_eval
19505
19506# Take the output of nm and produce a listing of raw symbols and C names.
19507global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19508
19509# Transform the output of nm in a proper C declaration
19510global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19511
19512# Transform the output of nm in a C name address pair
19513global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19514
19515# This is the shared library runtime path variable.
19516runpath_var=$runpath_var
19517
19518# This is the shared library path variable.
19519shlibpath_var=$shlibpath_var
19520
19521# Is shlibpath searched before the hard-coded library search path?
19522shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19523
19524# How to hardcode a shared library path into an executable.
19525hardcode_action=$hardcode_action_F77
19526
19527# Whether we should hardcode library paths into libraries.
19528hardcode_into_libs=$hardcode_into_libs
19529
19530# Flag to hardcode \$libdir into a binary during linking.
19531# This must work even if \$libdir does not exist.
19532hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19533
19534# If ld is used when linking, flag to hardcode \$libdir into
19535# a binary during linking. This must work even if \$libdir does
19536# not exist.
19537hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19538
19539# Whether we need a single -rpath flag with a separated argument.
19540hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19541
19542# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19543# resulting binary.
19544hardcode_direct=$hardcode_direct_F77
19545
19546# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19547# resulting binary.
19548hardcode_minus_L=$hardcode_minus_L_F77
19549
19550# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19551# the resulting binary.
19552hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19553
19554# Set to yes if building a shared library automatically hardcodes DIR into the library
19555# and all subsequent libraries and executables linked against it.
19556hardcode_automatic=$hardcode_automatic_F77
19557
19558# Variables whose values should be saved in libtool wrapper scripts and
19559# restored at relink time.
19560variables_saved_for_relink="$variables_saved_for_relink"
19561
19562# Whether libtool must link a program against all its dependency libraries.
19563link_all_deplibs=$link_all_deplibs_F77
19564
19565# Compile-time system search path for libraries
19566sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19567
19568# Run-time system search path for libraries
19569sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19570
19571# Fix the shell variable \$srcfile for the compiler.
19572fix_srcfile_path=$lt_fix_srcfile_path
19573
19574# Set to yes if exported symbols are required.
19575always_export_symbols=$always_export_symbols_F77
19576
19577# The commands to list exported symbols.
19578export_symbols_cmds=$lt_export_symbols_cmds_F77
19579
19580# The commands to extract the exported symbol list from a shared archive.
19581extract_expsyms_cmds=$lt_extract_expsyms_cmds
19582
19583# Symbols that should not be listed in the preloaded symbols.
19584exclude_expsyms=$lt_exclude_expsyms_F77
19585
19586# Symbols that must always be exported.
19587include_expsyms=$lt_include_expsyms_F77
19588
19589# ### END LIBTOOL TAG CONFIG: $tagname
19590
19591__EOF__
19592
19593
19594else
19595  # If there is no Makefile yet, we rely on a make rule to execute
19596  # `config.status --recheck' to rerun these tests and create the
19597  # libtool script then.
19598  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19599  if test -f "$ltmain_in"; then
19600    test -f Makefile && make "$ltmain"
19601  fi
19602fi
19603
19604
19605ac_ext=c
19606ac_cpp='$CPP $CPPFLAGS'
19607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19609ac_compiler_gnu=$ac_cv_c_compiler_gnu
19610
19611CC="$lt_save_CC"
19612
19613	else
19614	  tagname=""
19615	fi
19616	;;
19617
19618      GCJ)
19619	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19620
19621
19622# Source file extension for Java test sources.
19623ac_ext=java
19624
19625# Object file extension for compiled Java test sources.
19626objext=o
19627objext_GCJ=$objext
19628
19629# Code to be used in simple compile tests
19630lt_simple_compile_test_code="class foo {}"
19631
19632# Code to be used in simple link tests
19633lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
19634
19635# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19636
19637# If no C compiler was specified, use CC.
19638LTCC=${LTCC-"$CC"}
19639
19640# If no C compiler flags were specified, use CFLAGS.
19641LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19642
19643# Allow CC to be a program name with arguments.
19644compiler=$CC
19645
19646
19647# save warnings/boilerplate of simple test code
19648ac_outfile=conftest.$ac_objext
19649echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19650eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19651_lt_compiler_boilerplate=`cat conftest.err`
19652$rm conftest*
19653
19654ac_outfile=conftest.$ac_objext
19655echo "$lt_simple_link_test_code" >conftest.$ac_ext
19656eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19657_lt_linker_boilerplate=`cat conftest.err`
19658$rm conftest*
19659
19660
19661# Allow CC to be a program name with arguments.
19662lt_save_CC="$CC"
19663CC=${GCJ-"gcj"}
19664compiler=$CC
19665compiler_GCJ=$CC
19666for cc_temp in $compiler""; do
19667  case $cc_temp in
19668    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19669    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19670    \-*) ;;
19671    *) break;;
19672  esac
19673done
19674cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19675
19676
19677# GCJ did not exist at the time GCC didn't implicitly link libc in.
19678archive_cmds_need_lc_GCJ=no
19679
19680old_archive_cmds_GCJ=$old_archive_cmds
19681
19682## CAVEAT EMPTOR:
19683## There is no encapsulation within the following macros, do not change
19684## the running order or otherwise move them around unless you know exactly
19685## what you are doing...
19686
19687lt_prog_compiler_no_builtin_flag_GCJ=
19688
19689if test "$GCC" = yes; then
19690  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19691
19692
19693{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19694$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19695if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19696  $as_echo_n "(cached) " >&6
19697else
19698  lt_cv_prog_compiler_rtti_exceptions=no
19699  ac_outfile=conftest.$ac_objext
19700   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19701   lt_compiler_flag="-fno-rtti -fno-exceptions"
19702   # Insert the option either (1) after the last *FLAGS variable, or
19703   # (2) before a word containing "conftest.", or (3) at the end.
19704   # Note that $ac_compile itself does not contain backslashes and begins
19705   # with a dollar sign (not a hyphen), so the echo should work correctly.
19706   # The option is referenced via a variable to avoid confusing sed.
19707   lt_compile=`echo "$ac_compile" | $SED \
19708   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19709   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19710   -e 's:$: $lt_compiler_flag:'`
19711   (eval echo "\"\$as_me:19711: $lt_compile\"" >&5)
19712   (eval "$lt_compile" 2>conftest.err)
19713   ac_status=$?
19714   cat conftest.err >&5
19715   echo "$as_me:19715: \$? = $ac_status" >&5
19716   if (exit $ac_status) && test -s "$ac_outfile"; then
19717     # The compiler can only warn and ignore the option if not recognized
19718     # So say no if there are warnings other than the usual output.
19719     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19720     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19721     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19722       lt_cv_prog_compiler_rtti_exceptions=yes
19723     fi
19724   fi
19725   $rm conftest*
19726
19727fi
19728{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19729$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19730
19731if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19732    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19733else
19734    :
19735fi
19736
19737fi
19738
19739lt_prog_compiler_wl_GCJ=
19740lt_prog_compiler_pic_GCJ=
19741lt_prog_compiler_static_GCJ=
19742
19743{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19744$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19745
19746  if test "$GCC" = yes; then
19747    lt_prog_compiler_wl_GCJ='-Wl,'
19748    lt_prog_compiler_static_GCJ='-static'
19749
19750    case $host_os in
19751      aix*)
19752      # All AIX code is PIC.
19753      if test "$host_cpu" = ia64; then
19754	# AIX 5 now supports IA64 processor
19755	lt_prog_compiler_static_GCJ='-Bstatic'
19756      fi
19757      ;;
19758
19759    amigaos*)
19760      # FIXME: we need at least 68020 code to build shared libraries, but
19761      # adding the `-m68020' flag to GCC prevents building anything better,
19762      # like `-m68040'.
19763      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19764      ;;
19765
19766    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19767      # PIC is the default for these OSes.
19768      ;;
19769
19770    mingw* | cygwin* | pw32* | os2*)
19771      # This hack is so that the source file can tell whether it is being
19772      # built for inclusion in a dll (and should export symbols for example).
19773      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19774      # (--disable-auto-import) libraries
19775      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19776      ;;
19777
19778    darwin* | rhapsody*)
19779      # PIC is the default on this platform
19780      # Common symbols not allowed in MH_DYLIB files
19781      lt_prog_compiler_pic_GCJ='-fno-common'
19782      ;;
19783
19784    interix[3-9]*)
19785      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19786      # Instead, we relocate shared libraries at runtime.
19787      ;;
19788
19789    msdosdjgpp*)
19790      # Just because we use GCC doesn't mean we suddenly get shared libraries
19791      # on systems that don't support them.
19792      lt_prog_compiler_can_build_shared_GCJ=no
19793      enable_shared=no
19794      ;;
19795
19796    sysv4*MP*)
19797      if test -d /usr/nec; then
19798	lt_prog_compiler_pic_GCJ=-Kconform_pic
19799      fi
19800      ;;
19801
19802    hpux*)
19803      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19804      # not for PA HP-UX.
19805      case $host_cpu in
19806      hppa*64*|ia64*)
19807	# +Z the default
19808	;;
19809      *)
19810	lt_prog_compiler_pic_GCJ='-fPIC'
19811	;;
19812      esac
19813      ;;
19814
19815    *)
19816      lt_prog_compiler_pic_GCJ='-fPIC'
19817      ;;
19818    esac
19819  else
19820    # PORTME Check for flag to pass linker flags through the system compiler.
19821    case $host_os in
19822    aix*)
19823      lt_prog_compiler_wl_GCJ='-Wl,'
19824      if test "$host_cpu" = ia64; then
19825	# AIX 5 now supports IA64 processor
19826	lt_prog_compiler_static_GCJ='-Bstatic'
19827      else
19828	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19829      fi
19830      ;;
19831      darwin*)
19832        # PIC is the default on this platform
19833        # Common symbols not allowed in MH_DYLIB files
19834       case $cc_basename in
19835         xlc*)
19836         lt_prog_compiler_pic_GCJ='-qnocommon'
19837         lt_prog_compiler_wl_GCJ='-Wl,'
19838         ;;
19839       esac
19840       ;;
19841
19842    mingw* | cygwin* | pw32* | os2*)
19843      # This hack is so that the source file can tell whether it is being
19844      # built for inclusion in a dll (and should export symbols for example).
19845      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19846      ;;
19847
19848    hpux9* | hpux10* | hpux11*)
19849      lt_prog_compiler_wl_GCJ='-Wl,'
19850      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19851      # not for PA HP-UX.
19852      case $host_cpu in
19853      hppa*64*|ia64*)
19854	# +Z the default
19855	;;
19856      *)
19857	lt_prog_compiler_pic_GCJ='+Z'
19858	;;
19859      esac
19860      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19861      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19862      ;;
19863
19864    irix5* | irix6* | nonstopux*)
19865      lt_prog_compiler_wl_GCJ='-Wl,'
19866      # PIC (with -KPIC) is the default.
19867      lt_prog_compiler_static_GCJ='-non_shared'
19868      ;;
19869
19870    newsos6)
19871      lt_prog_compiler_pic_GCJ='-KPIC'
19872      lt_prog_compiler_static_GCJ='-Bstatic'
19873      ;;
19874
19875    linux* | k*bsd*-gnu)
19876      case $cc_basename in
19877      icc* | ecc*)
19878	lt_prog_compiler_wl_GCJ='-Wl,'
19879	lt_prog_compiler_pic_GCJ='-KPIC'
19880	lt_prog_compiler_static_GCJ='-static'
19881        ;;
19882      pgcc* | pgf77* | pgf90* | pgf95*)
19883        # Portland Group compilers (*not* the Pentium gcc compiler,
19884	# which looks to be a dead project)
19885	lt_prog_compiler_wl_GCJ='-Wl,'
19886	lt_prog_compiler_pic_GCJ='-fpic'
19887	lt_prog_compiler_static_GCJ='-Bstatic'
19888        ;;
19889      ccc*)
19890        lt_prog_compiler_wl_GCJ='-Wl,'
19891        # All Alpha code is PIC.
19892        lt_prog_compiler_static_GCJ='-non_shared'
19893        ;;
19894      como)
19895        lt_prog_compiler_wl_GCJ='-lopt='
19896        ;;
19897      *)
19898        case `$CC -V 2>&1 | sed 5q` in
19899	*Sun\ C*)
19900	  # Sun C 5.9
19901	  lt_prog_compiler_pic_GCJ='-KPIC'
19902	  lt_prog_compiler_static_GCJ='-Bstatic'
19903	  lt_prog_compiler_wl_GCJ='-Wl,'
19904	  ;;
19905	*Sun\ F*)
19906	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
19907	  lt_prog_compiler_pic_GCJ='-KPIC'
19908	  lt_prog_compiler_static_GCJ='-Bstatic'
19909	  lt_prog_compiler_wl_GCJ=''
19910	  ;;
19911	esac
19912	;;
19913      esac
19914      ;;
19915
19916    osf3* | osf4* | osf5*)
19917      lt_prog_compiler_wl_GCJ='-Wl,'
19918      # All OSF/1 code is PIC.
19919      lt_prog_compiler_static_GCJ='-non_shared'
19920      ;;
19921
19922    rdos*)
19923      lt_prog_compiler_static_GCJ='-non_shared'
19924      ;;
19925
19926    solaris*)
19927      lt_prog_compiler_pic_GCJ='-KPIC'
19928      lt_prog_compiler_static_GCJ='-Bstatic'
19929      case $cc_basename in
19930      f77* | f90* | f95*)
19931	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
19932      *)
19933	lt_prog_compiler_wl_GCJ='-Wl,';;
19934      esac
19935      ;;
19936
19937    sunos4*)
19938      lt_prog_compiler_wl_GCJ='-Qoption ld '
19939      lt_prog_compiler_pic_GCJ='-PIC'
19940      lt_prog_compiler_static_GCJ='-Bstatic'
19941      ;;
19942
19943    sysv4 | sysv4.2uw2* | sysv4.3*)
19944      lt_prog_compiler_wl_GCJ='-Wl,'
19945      lt_prog_compiler_pic_GCJ='-KPIC'
19946      lt_prog_compiler_static_GCJ='-Bstatic'
19947      ;;
19948
19949    sysv4*MP*)
19950      if test -d /usr/nec ;then
19951	lt_prog_compiler_pic_GCJ='-Kconform_pic'
19952	lt_prog_compiler_static_GCJ='-Bstatic'
19953      fi
19954      ;;
19955
19956    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19957      lt_prog_compiler_wl_GCJ='-Wl,'
19958      lt_prog_compiler_pic_GCJ='-KPIC'
19959      lt_prog_compiler_static_GCJ='-Bstatic'
19960      ;;
19961
19962    unicos*)
19963      lt_prog_compiler_wl_GCJ='-Wl,'
19964      lt_prog_compiler_can_build_shared_GCJ=no
19965      ;;
19966
19967    uts4*)
19968      lt_prog_compiler_pic_GCJ='-pic'
19969      lt_prog_compiler_static_GCJ='-Bstatic'
19970      ;;
19971
19972    *)
19973      lt_prog_compiler_can_build_shared_GCJ=no
19974      ;;
19975    esac
19976  fi
19977
19978{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19979$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19980
19981#
19982# Check to make sure the PIC flag actually works.
19983#
19984if test -n "$lt_prog_compiler_pic_GCJ"; then
19985
19986{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19987$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19988if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19989  $as_echo_n "(cached) " >&6
19990else
19991  lt_prog_compiler_pic_works_GCJ=no
19992  ac_outfile=conftest.$ac_objext
19993   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19994   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19995   # Insert the option either (1) after the last *FLAGS variable, or
19996   # (2) before a word containing "conftest.", or (3) at the end.
19997   # Note that $ac_compile itself does not contain backslashes and begins
19998   # with a dollar sign (not a hyphen), so the echo should work correctly.
19999   # The option is referenced via a variable to avoid confusing sed.
20000   lt_compile=`echo "$ac_compile" | $SED \
20001   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20002   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20003   -e 's:$: $lt_compiler_flag:'`
20004   (eval echo "\"\$as_me:20004: $lt_compile\"" >&5)
20005   (eval "$lt_compile" 2>conftest.err)
20006   ac_status=$?
20007   cat conftest.err >&5
20008   echo "$as_me:20008: \$? = $ac_status" >&5
20009   if (exit $ac_status) && test -s "$ac_outfile"; then
20010     # The compiler can only warn and ignore the option if not recognized
20011     # So say no if there are warnings other than the usual output.
20012     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20013     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20014     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20015       lt_prog_compiler_pic_works_GCJ=yes
20016     fi
20017   fi
20018   $rm conftest*
20019
20020fi
20021{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
20022$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
20023
20024if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
20025    case $lt_prog_compiler_pic_GCJ in
20026     "" | " "*) ;;
20027     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
20028     esac
20029else
20030    lt_prog_compiler_pic_GCJ=
20031     lt_prog_compiler_can_build_shared_GCJ=no
20032fi
20033
20034fi
20035case $host_os in
20036  # For platforms which do not support PIC, -DPIC is meaningless:
20037  *djgpp*)
20038    lt_prog_compiler_pic_GCJ=
20039    ;;
20040  *)
20041    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
20042    ;;
20043esac
20044
20045#
20046# Check to make sure the static flag actually works.
20047#
20048wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
20049{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20050$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20051if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
20052  $as_echo_n "(cached) " >&6
20053else
20054  lt_prog_compiler_static_works_GCJ=no
20055   save_LDFLAGS="$LDFLAGS"
20056   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20057   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20058   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20059     # The linker can only warn and ignore the option if not recognized
20060     # So say no if there are warnings
20061     if test -s conftest.err; then
20062       # Append any errors to the config.log.
20063       cat conftest.err 1>&5
20064       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20065       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20066       if diff conftest.exp conftest.er2 >/dev/null; then
20067         lt_prog_compiler_static_works_GCJ=yes
20068       fi
20069     else
20070       lt_prog_compiler_static_works_GCJ=yes
20071     fi
20072   fi
20073   $rm conftest*
20074   LDFLAGS="$save_LDFLAGS"
20075
20076fi
20077{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
20078$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
20079
20080if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
20081    :
20082else
20083    lt_prog_compiler_static_GCJ=
20084fi
20085
20086
20087{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20088$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20089if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
20090  $as_echo_n "(cached) " >&6
20091else
20092  lt_cv_prog_compiler_c_o_GCJ=no
20093   $rm -r conftest 2>/dev/null
20094   mkdir conftest
20095   cd conftest
20096   mkdir out
20097   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20098
20099   lt_compiler_flag="-o out/conftest2.$ac_objext"
20100   # Insert the option either (1) after the last *FLAGS variable, or
20101   # (2) before a word containing "conftest.", or (3) at the end.
20102   # Note that $ac_compile itself does not contain backslashes and begins
20103   # with a dollar sign (not a hyphen), so the echo should work correctly.
20104   lt_compile=`echo "$ac_compile" | $SED \
20105   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20106   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20107   -e 's:$: $lt_compiler_flag:'`
20108   (eval echo "\"\$as_me:20108: $lt_compile\"" >&5)
20109   (eval "$lt_compile" 2>out/conftest.err)
20110   ac_status=$?
20111   cat out/conftest.err >&5
20112   echo "$as_me:20112: \$? = $ac_status" >&5
20113   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20114   then
20115     # The compiler can only warn and ignore the option if not recognized
20116     # So say no if there are warnings
20117     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20118     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20119     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20120       lt_cv_prog_compiler_c_o_GCJ=yes
20121     fi
20122   fi
20123   chmod u+w . 2>&5
20124   $rm conftest*
20125   # SGI C++ compiler will create directory out/ii_files/ for
20126   # template instantiation
20127   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20128   $rm out/* && rmdir out
20129   cd ..
20130   rmdir conftest
20131   $rm conftest*
20132
20133fi
20134{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
20135$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
20136
20137
20138hard_links="nottested"
20139if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
20140  # do not overwrite the value of need_locks provided by the user
20141  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20142$as_echo_n "checking if we can lock with hard links... " >&6; }
20143  hard_links=yes
20144  $rm conftest*
20145  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20146  touch conftest.a
20147  ln conftest.a conftest.b 2>&5 || hard_links=no
20148  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20149  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
20150$as_echo "$hard_links" >&6; }
20151  if test "$hard_links" = no; then
20152    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20153$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20154    need_locks=warn
20155  fi
20156else
20157  need_locks=no
20158fi
20159
20160{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20161$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20162
20163  runpath_var=
20164  allow_undefined_flag_GCJ=
20165  enable_shared_with_static_runtimes_GCJ=no
20166  archive_cmds_GCJ=
20167  archive_expsym_cmds_GCJ=
20168  old_archive_From_new_cmds_GCJ=
20169  old_archive_from_expsyms_cmds_GCJ=
20170  export_dynamic_flag_spec_GCJ=
20171  whole_archive_flag_spec_GCJ=
20172  thread_safe_flag_spec_GCJ=
20173  hardcode_libdir_flag_spec_GCJ=
20174  hardcode_libdir_flag_spec_ld_GCJ=
20175  hardcode_libdir_separator_GCJ=
20176  hardcode_direct_GCJ=no
20177  hardcode_minus_L_GCJ=no
20178  hardcode_shlibpath_var_GCJ=unsupported
20179  link_all_deplibs_GCJ=unknown
20180  hardcode_automatic_GCJ=no
20181  module_cmds_GCJ=
20182  module_expsym_cmds_GCJ=
20183  always_export_symbols_GCJ=no
20184  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20185  # include_expsyms should be a list of space-separated symbols to be *always*
20186  # included in the symbol list
20187  include_expsyms_GCJ=
20188  # exclude_expsyms can be an extended regexp of symbols to exclude
20189  # it will be wrapped by ` (' and `)$', so one must not match beginning or
20190  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20191  # as well as any symbol that contains `d'.
20192  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
20193  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20194  # platforms (ab)use it in PIC code, but their linkers get confused if
20195  # the symbol is explicitly referenced.  Since portable code cannot
20196  # rely on this symbol name, it's probably fine to never include it in
20197  # preloaded symbol tables.
20198  extract_expsyms_cmds=
20199  # Just being paranoid about ensuring that cc_basename is set.
20200  for cc_temp in $compiler""; do
20201  case $cc_temp in
20202    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20203    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20204    \-*) ;;
20205    *) break;;
20206  esac
20207done
20208cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
20209
20210  case $host_os in
20211  cygwin* | mingw* | pw32*)
20212    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20213    # When not using gcc, we currently assume that we are using
20214    # Microsoft Visual C++.
20215    if test "$GCC" != yes; then
20216      with_gnu_ld=no
20217    fi
20218    ;;
20219  interix*)
20220    # we just hope/assume this is gcc and not c89 (= MSVC++)
20221    with_gnu_ld=yes
20222    ;;
20223  openbsd*)
20224    with_gnu_ld=no
20225    ;;
20226  esac
20227
20228  ld_shlibs_GCJ=yes
20229  if test "$with_gnu_ld" = yes; then
20230    # If archive_cmds runs LD, not CC, wlarc should be empty
20231    wlarc='${wl}'
20232
20233    # Set some defaults for GNU ld with shared library support. These
20234    # are reset later if shared libraries are not supported. Putting them
20235    # here allows them to be overridden if necessary.
20236    runpath_var=LD_RUN_PATH
20237    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
20238    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
20239    # ancient GNU ld didn't support --whole-archive et. al.
20240    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
20241	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20242      else
20243  	whole_archive_flag_spec_GCJ=
20244    fi
20245    supports_anon_versioning=no
20246    case `$LD -v 2>/dev/null` in
20247      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20248      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20249      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20250      *\ 2.11.*) ;; # other 2.11 versions
20251      *) supports_anon_versioning=yes ;;
20252    esac
20253
20254    # See if GNU ld supports shared libraries.
20255    case $host_os in
20256    aix3* | aix4* | aix5*)
20257      # On AIX/PPC, the GNU linker is very broken
20258      if test "$host_cpu" != ia64; then
20259	ld_shlibs_GCJ=no
20260	cat <<EOF 1>&2
20261
20262*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20263*** to be unable to reliably create shared libraries on AIX.
20264*** Therefore, libtool is disabling shared libraries support.  If you
20265*** really care for shared libraries, you may want to modify your PATH
20266*** so that a non-GNU linker is found, and then restart.
20267
20268EOF
20269      fi
20270      ;;
20271
20272    amigaos*)
20273      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)'
20274      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20275      hardcode_minus_L_GCJ=yes
20276
20277      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
20278      # that the semantics of dynamic libraries on AmigaOS, at least up
20279      # to version 4, is to share data among multiple programs linked
20280      # with the same dynamic library.  Since this doesn't match the
20281      # behavior of shared libraries on other platforms, we can't use
20282      # them.
20283      ld_shlibs_GCJ=no
20284      ;;
20285
20286    beos*)
20287      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20288	allow_undefined_flag_GCJ=unsupported
20289	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20290	# support --undefined.  This deserves some investigation.  FIXME
20291	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20292      else
20293	ld_shlibs_GCJ=no
20294      fi
20295      ;;
20296
20297    cygwin* | mingw* | pw32*)
20298      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
20299      # as there is no search path for DLLs.
20300      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20301      allow_undefined_flag_GCJ=unsupported
20302      always_export_symbols_GCJ=no
20303      enable_shared_with_static_runtimes_GCJ=yes
20304      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20305
20306      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
20307        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20308	# If the export-symbols file already is a .def file (1st line
20309	# is EXPORTS), use it as is; otherwise, prepend...
20310	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20311	  cp $export_symbols $output_objdir/$soname.def;
20312	else
20313	  echo EXPORTS > $output_objdir/$soname.def;
20314	  cat $export_symbols >> $output_objdir/$soname.def;
20315	fi~
20316	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20317      else
20318	ld_shlibs_GCJ=no
20319      fi
20320      ;;
20321
20322    interix[3-9]*)
20323      hardcode_direct_GCJ=no
20324      hardcode_shlibpath_var_GCJ=no
20325      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20326      export_dynamic_flag_spec_GCJ='${wl}-E'
20327      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20328      # Instead, shared libraries are loaded at an image base (0x10000000 by
20329      # default) and relocated if they conflict, which is a slow very memory
20330      # consuming and fragmenting process.  To avoid this, we pick a random,
20331      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20332      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20333      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'
20334      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'
20335      ;;
20336
20337    gnu* | linux* | k*bsd*-gnu)
20338      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20339	tmp_addflag=
20340	case $cc_basename,$host_cpu in
20341	pgcc*)				# Portland Group C compiler
20342	  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'
20343	  tmp_addflag=' $pic_flag'
20344	  ;;
20345	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
20346	  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'
20347	  tmp_addflag=' $pic_flag -Mnomain' ;;
20348	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
20349	  tmp_addflag=' -i_dynamic' ;;
20350	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
20351	  tmp_addflag=' -i_dynamic -nofor_main' ;;
20352	ifc* | ifort*)			# Intel Fortran compiler
20353	  tmp_addflag=' -nofor_main' ;;
20354	esac
20355	case `$CC -V 2>&1 | sed 5q` in
20356	*Sun\ C*)			# Sun C 5.9
20357	  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'
20358	  tmp_sharedflag='-G' ;;
20359	*Sun\ F*)			# Sun Fortran 8.3
20360	  tmp_sharedflag='-G' ;;
20361	*)
20362	  tmp_sharedflag='-shared' ;;
20363	esac
20364	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20365
20366	if test $supports_anon_versioning = yes; then
20367	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
20368  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20369  $echo "local: *; };" >> $output_objdir/$libname.ver~
20370	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20371	fi
20372      else
20373	ld_shlibs_GCJ=no
20374      fi
20375      ;;
20376
20377    netbsd*)
20378      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20379	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20380	wlarc=
20381      else
20382	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20383	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20384      fi
20385      ;;
20386
20387    solaris*)
20388      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
20389	ld_shlibs_GCJ=no
20390	cat <<EOF 1>&2
20391
20392*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20393*** create shared libraries on Solaris systems.  Therefore, libtool
20394*** is disabling shared libraries support.  We urge you to upgrade GNU
20395*** binutils to release 2.9.1 or newer.  Another option is to modify
20396*** your PATH or compiler configuration so that the native linker is
20397*** used, and then restart.
20398
20399EOF
20400      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20401	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20402	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20403      else
20404	ld_shlibs_GCJ=no
20405      fi
20406      ;;
20407
20408    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20409      case `$LD -v 2>&1` in
20410        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20411	ld_shlibs_GCJ=no
20412	cat <<_LT_EOF 1>&2
20413
20414*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20415*** reliably create shared libraries on SCO systems.  Therefore, libtool
20416*** is disabling shared libraries support.  We urge you to upgrade GNU
20417*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20418*** your PATH or compiler configuration so that the native linker is
20419*** used, and then restart.
20420
20421_LT_EOF
20422	;;
20423	*)
20424	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20425	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
20426	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
20427	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
20428	  else
20429	    ld_shlibs_GCJ=no
20430	  fi
20431	;;
20432      esac
20433      ;;
20434
20435    sunos4*)
20436      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20437      wlarc=
20438      hardcode_direct_GCJ=yes
20439      hardcode_shlibpath_var_GCJ=no
20440      ;;
20441
20442    *)
20443      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
20444	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20445	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20446      else
20447	ld_shlibs_GCJ=no
20448      fi
20449      ;;
20450    esac
20451
20452    if test "$ld_shlibs_GCJ" = no; then
20453      runpath_var=
20454      hardcode_libdir_flag_spec_GCJ=
20455      export_dynamic_flag_spec_GCJ=
20456      whole_archive_flag_spec_GCJ=
20457    fi
20458  else
20459    # PORTME fill in a description of your system's linker (not GNU ld)
20460    case $host_os in
20461    aix3*)
20462      allow_undefined_flag_GCJ=unsupported
20463      always_export_symbols_GCJ=yes
20464      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'
20465      # Note: this linker hardcodes the directories in LIBPATH if there
20466      # are no directories specified by -L.
20467      hardcode_minus_L_GCJ=yes
20468      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20469	# Neither direct hardcoding nor static linking is supported with a
20470	# broken collect2.
20471	hardcode_direct_GCJ=unsupported
20472      fi
20473      ;;
20474
20475    aix4* | aix5*)
20476      if test "$host_cpu" = ia64; then
20477	# On IA64, the linker does run time linking by default, so we don't
20478	# have to do anything special.
20479	aix_use_runtimelinking=no
20480	exp_sym_flag='-Bexport'
20481	no_entry_flag=""
20482      else
20483	# If we're using GNU nm, then we don't want the "-C" option.
20484	# -C means demangle to AIX nm, but means don't demangle with GNU nm
20485	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20486	  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'
20487	else
20488	  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'
20489	fi
20490	aix_use_runtimelinking=no
20491
20492	# Test if we are trying to use run time linking or normal
20493	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
20494	# need to do runtime linking.
20495	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
20496	  for ld_flag in $LDFLAGS; do
20497  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20498  	    aix_use_runtimelinking=yes
20499  	    break
20500  	  fi
20501	  done
20502	  ;;
20503	esac
20504
20505	exp_sym_flag='-bexport'
20506	no_entry_flag='-bnoentry'
20507      fi
20508
20509      # When large executables or shared objects are built, AIX ld can
20510      # have problems creating the table of contents.  If linking a library
20511      # or program results in "error TOC overflow" add -mminimal-toc to
20512      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20513      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20514
20515      archive_cmds_GCJ=''
20516      hardcode_direct_GCJ=yes
20517      hardcode_libdir_separator_GCJ=':'
20518      link_all_deplibs_GCJ=yes
20519
20520      if test "$GCC" = yes; then
20521	case $host_os in aix4.[012]|aix4.[012].*)
20522	# We only want to do this on AIX 4.2 and lower, the check
20523	# below for broken collect2 doesn't work under 4.3+
20524	  collect2name=`${CC} -print-prog-name=collect2`
20525	  if test -f "$collect2name" && \
20526  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
20527	  then
20528  	  # We have reworked collect2
20529  	  :
20530	  else
20531  	  # We have old collect2
20532  	  hardcode_direct_GCJ=unsupported
20533  	  # It fails to find uninstalled libraries when the uninstalled
20534  	  # path is not listed in the libpath.  Setting hardcode_minus_L
20535  	  # to unsupported forces relinking
20536  	  hardcode_minus_L_GCJ=yes
20537  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
20538  	  hardcode_libdir_separator_GCJ=
20539	  fi
20540	  ;;
20541	esac
20542	shared_flag='-shared'
20543	if test "$aix_use_runtimelinking" = yes; then
20544	  shared_flag="$shared_flag "'${wl}-G'
20545	fi
20546      else
20547	# not using gcc
20548	if test "$host_cpu" = ia64; then
20549  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20550  	# chokes on -Wl,-G. The following line is correct:
20551	  shared_flag='-G'
20552	else
20553	  if test "$aix_use_runtimelinking" = yes; then
20554	    shared_flag='${wl}-G'
20555	  else
20556	    shared_flag='${wl}-bM:SRE'
20557	  fi
20558	fi
20559      fi
20560
20561      # It seems that -bexpall does not export symbols beginning with
20562      # underscore (_), so it is better to generate a list of symbols to export.
20563      always_export_symbols_GCJ=yes
20564      if test "$aix_use_runtimelinking" = yes; then
20565	# Warning - without using the other runtime loading flags (-brtl),
20566	# -berok will link without error, but may produce a broken library.
20567	allow_undefined_flag_GCJ='-berok'
20568       # Determine the default libpath from the value encoded in an empty executable.
20569       cat >conftest.$ac_ext <<_ACEOF
20570/* confdefs.h.  */
20571_ACEOF
20572cat confdefs.h >>conftest.$ac_ext
20573cat >>conftest.$ac_ext <<_ACEOF
20574/* end confdefs.h.  */
20575
20576int
20577main ()
20578{
20579
20580  ;
20581  return 0;
20582}
20583_ACEOF
20584rm -f conftest.$ac_objext conftest$ac_exeext
20585if { (ac_try="$ac_link"
20586case "(($ac_try" in
20587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588  *) ac_try_echo=$ac_try;;
20589esac
20590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20591$as_echo "$ac_try_echo") >&5
20592  (eval "$ac_link") 2>conftest.er1
20593  ac_status=$?
20594  grep -v '^ *+' conftest.er1 >conftest.err
20595  rm -f conftest.er1
20596  cat conftest.err >&5
20597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598  (exit $ac_status); } && {
20599	 test -z "$ac_c_werror_flag" ||
20600	 test ! -s conftest.err
20601       } && test -s conftest$ac_exeext && {
20602	 test "$cross_compiling" = yes ||
20603	 $as_test_x conftest$ac_exeext
20604       }; then
20605
20606lt_aix_libpath_sed='
20607    /Import File Strings/,/^$/ {
20608	/^0/ {
20609	    s/^0  *\(.*\)$/\1/
20610	    p
20611	}
20612    }'
20613aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20614# Check for a 64-bit object if we didn't find anything.
20615if test -z "$aix_libpath"; then
20616  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20617fi
20618else
20619  $as_echo "$as_me: failed program was:" >&5
20620sed 's/^/| /' conftest.$ac_ext >&5
20621
20622
20623fi
20624
20625rm -rf conftest.dSYM
20626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627      conftest$ac_exeext conftest.$ac_ext
20628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20629
20630       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20631	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"
20632       else
20633	if test "$host_cpu" = ia64; then
20634	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20635	  allow_undefined_flag_GCJ="-z nodefs"
20636	  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"
20637	else
20638	 # Determine the default libpath from the value encoded in an empty executable.
20639	 cat >conftest.$ac_ext <<_ACEOF
20640/* confdefs.h.  */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h.  */
20645
20646int
20647main ()
20648{
20649
20650  ;
20651  return 0;
20652}
20653_ACEOF
20654rm -f conftest.$ac_objext conftest$ac_exeext
20655if { (ac_try="$ac_link"
20656case "(($ac_try" in
20657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658  *) ac_try_echo=$ac_try;;
20659esac
20660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20661$as_echo "$ac_try_echo") >&5
20662  (eval "$ac_link") 2>conftest.er1
20663  ac_status=$?
20664  grep -v '^ *+' conftest.er1 >conftest.err
20665  rm -f conftest.er1
20666  cat conftest.err >&5
20667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668  (exit $ac_status); } && {
20669	 test -z "$ac_c_werror_flag" ||
20670	 test ! -s conftest.err
20671       } && test -s conftest$ac_exeext && {
20672	 test "$cross_compiling" = yes ||
20673	 $as_test_x conftest$ac_exeext
20674       }; then
20675
20676lt_aix_libpath_sed='
20677    /Import File Strings/,/^$/ {
20678	/^0/ {
20679	    s/^0  *\(.*\)$/\1/
20680	    p
20681	}
20682    }'
20683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20684# Check for a 64-bit object if we didn't find anything.
20685if test -z "$aix_libpath"; then
20686  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20687fi
20688else
20689  $as_echo "$as_me: failed program was:" >&5
20690sed 's/^/| /' conftest.$ac_ext >&5
20691
20692
20693fi
20694
20695rm -rf conftest.dSYM
20696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20697      conftest$ac_exeext conftest.$ac_ext
20698if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20699
20700	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20701	  # Warning - without using the other run time loading flags,
20702	  # -berok will link without error, but may produce a broken library.
20703	  no_undefined_flag_GCJ=' ${wl}-bernotok'
20704	  allow_undefined_flag_GCJ=' ${wl}-berok'
20705	  # Exported symbols can be pulled into shared objects from archives
20706	  whole_archive_flag_spec_GCJ='$convenience'
20707	  archive_cmds_need_lc_GCJ=yes
20708	  # This is similar to how AIX traditionally builds its shared libraries.
20709	  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'
20710	fi
20711      fi
20712      ;;
20713
20714    amigaos*)
20715      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)'
20716      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20717      hardcode_minus_L_GCJ=yes
20718      # see comment about different semantics on the GNU ld section
20719      ld_shlibs_GCJ=no
20720      ;;
20721
20722    bsdi[45]*)
20723      export_dynamic_flag_spec_GCJ=-rdynamic
20724      ;;
20725
20726    cygwin* | mingw* | pw32*)
20727      # When not using gcc, we currently assume that we are using
20728      # Microsoft Visual C++.
20729      # hardcode_libdir_flag_spec is actually meaningless, as there is
20730      # no search path for DLLs.
20731      hardcode_libdir_flag_spec_GCJ=' '
20732      allow_undefined_flag_GCJ=unsupported
20733      # Tell ltmain to make .lib files, not .a files.
20734      libext=lib
20735      # Tell ltmain to make .dll files, not .so files.
20736      shrext_cmds=".dll"
20737      # FIXME: Setting linknames here is a bad hack.
20738      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20739      # The linker will automatically build a .lib file if we build a DLL.
20740      old_archive_From_new_cmds_GCJ='true'
20741      # FIXME: Should let the user specify the lib program.
20742      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
20743      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
20744      enable_shared_with_static_runtimes_GCJ=yes
20745      ;;
20746
20747    darwin* | rhapsody*)
20748      case $host_os in
20749        rhapsody* | darwin1.[012])
20750         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
20751         ;;
20752       *) # Darwin 1.3 on
20753         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20754           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20755         else
20756           case ${MACOSX_DEPLOYMENT_TARGET} in
20757             10.[012])
20758               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
20759               ;;
20760             10.*)
20761               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
20762               ;;
20763           esac
20764         fi
20765         ;;
20766      esac
20767      archive_cmds_need_lc_GCJ=no
20768      hardcode_direct_GCJ=no
20769      hardcode_automatic_GCJ=yes
20770      hardcode_shlibpath_var_GCJ=unsupported
20771      whole_archive_flag_spec_GCJ=''
20772      link_all_deplibs_GCJ=yes
20773    if test "$GCC" = yes ; then
20774    	output_verbose_link_cmd='echo'
20775        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
20776      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20777      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20778      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}'
20779      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}'
20780    else
20781      case $cc_basename in
20782        xlc*)
20783         output_verbose_link_cmd='echo'
20784         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
20785         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
20786          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
20787         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}'
20788          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}'
20789          ;;
20790       *)
20791         ld_shlibs_GCJ=no
20792          ;;
20793      esac
20794    fi
20795      ;;
20796
20797    dgux*)
20798      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20799      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20800      hardcode_shlibpath_var_GCJ=no
20801      ;;
20802
20803    freebsd1*)
20804      ld_shlibs_GCJ=no
20805      ;;
20806
20807    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20808    # support.  Future versions do this automatically, but an explicit c++rt0.o
20809    # does not break anything, and helps significantly (at the cost of a little
20810    # extra space).
20811    freebsd2.2*)
20812      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20813      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20814      hardcode_direct_GCJ=yes
20815      hardcode_shlibpath_var_GCJ=no
20816      ;;
20817
20818    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20819    freebsd2*)
20820      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20821      hardcode_direct_GCJ=yes
20822      hardcode_minus_L_GCJ=yes
20823      hardcode_shlibpath_var_GCJ=no
20824      ;;
20825
20826    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20827    freebsd* | dragonfly*)
20828      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20829      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20830      hardcode_direct_GCJ=yes
20831      hardcode_shlibpath_var_GCJ=no
20832      ;;
20833
20834    hpux9*)
20835      if test "$GCC" = yes; then
20836	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'
20837      else
20838	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'
20839      fi
20840      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20841      hardcode_libdir_separator_GCJ=:
20842      hardcode_direct_GCJ=yes
20843
20844      # hardcode_minus_L: Not really in the search PATH,
20845      # but as the default location of the library.
20846      hardcode_minus_L_GCJ=yes
20847      export_dynamic_flag_spec_GCJ='${wl}-E'
20848      ;;
20849
20850    hpux10*)
20851      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20852	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20853      else
20854	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20855      fi
20856      if test "$with_gnu_ld" = no; then
20857	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20858	hardcode_libdir_separator_GCJ=:
20859
20860	hardcode_direct_GCJ=yes
20861	export_dynamic_flag_spec_GCJ='${wl}-E'
20862
20863	# hardcode_minus_L: Not really in the search PATH,
20864	# but as the default location of the library.
20865	hardcode_minus_L_GCJ=yes
20866      fi
20867      ;;
20868
20869    hpux11*)
20870      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20871	case $host_cpu in
20872	hppa*64*)
20873	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20874	  ;;
20875	ia64*)
20876	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20877	  ;;
20878	*)
20879	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20880	  ;;
20881	esac
20882      else
20883	case $host_cpu in
20884	hppa*64*)
20885	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20886	  ;;
20887	ia64*)
20888	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20889	  ;;
20890	*)
20891	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20892	  ;;
20893	esac
20894      fi
20895      if test "$with_gnu_ld" = no; then
20896	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20897	hardcode_libdir_separator_GCJ=:
20898
20899	case $host_cpu in
20900	hppa*64*|ia64*)
20901	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20902	  hardcode_direct_GCJ=no
20903	  hardcode_shlibpath_var_GCJ=no
20904	  ;;
20905	*)
20906	  hardcode_direct_GCJ=yes
20907	  export_dynamic_flag_spec_GCJ='${wl}-E'
20908
20909	  # hardcode_minus_L: Not really in the search PATH,
20910	  # but as the default location of the library.
20911	  hardcode_minus_L_GCJ=yes
20912	  ;;
20913	esac
20914      fi
20915      ;;
20916
20917    irix5* | irix6* | nonstopux*)
20918      if test "$GCC" = yes; then
20919	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'
20920      else
20921	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'
20922	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20923      fi
20924      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20925      hardcode_libdir_separator_GCJ=:
20926      link_all_deplibs_GCJ=yes
20927      ;;
20928
20929    netbsd*)
20930      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20931	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20932      else
20933	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20934      fi
20935      hardcode_libdir_flag_spec_GCJ='-R$libdir'
20936      hardcode_direct_GCJ=yes
20937      hardcode_shlibpath_var_GCJ=no
20938      ;;
20939
20940    newsos6)
20941      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20942      hardcode_direct_GCJ=yes
20943      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20944      hardcode_libdir_separator_GCJ=:
20945      hardcode_shlibpath_var_GCJ=no
20946      ;;
20947
20948    openbsd*)
20949      if test -f /usr/libexec/ld.so; then
20950	hardcode_direct_GCJ=yes
20951	hardcode_shlibpath_var_GCJ=no
20952	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20953	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20954	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20955	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20956	  export_dynamic_flag_spec_GCJ='${wl}-E'
20957	else
20958	  case $host_os in
20959	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20960	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20961	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
20962	     ;;
20963	   *)
20964	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20965	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20966	     ;;
20967	  esac
20968        fi
20969      else
20970	ld_shlibs_GCJ=no
20971      fi
20972      ;;
20973
20974    os2*)
20975      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20976      hardcode_minus_L_GCJ=yes
20977      allow_undefined_flag_GCJ=unsupported
20978      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'
20979      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20980      ;;
20981
20982    osf3*)
20983      if test "$GCC" = yes; then
20984	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20985	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'
20986      else
20987	allow_undefined_flag_GCJ=' -expect_unresolved \*'
20988	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'
20989      fi
20990      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20991      hardcode_libdir_separator_GCJ=:
20992      ;;
20993
20994    osf4* | osf5*)	# as osf3* with the addition of -msym flag
20995      if test "$GCC" = yes; then
20996	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20997	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'
20998	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20999      else
21000	allow_undefined_flag_GCJ=' -expect_unresolved \*'
21001	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'
21002	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~
21003	$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'
21004
21005	# Both c and cxx compiler support -rpath directly
21006	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21007      fi
21008      hardcode_libdir_separator_GCJ=:
21009      ;;
21010
21011    solaris*)
21012      no_undefined_flag_GCJ=' -z text'
21013      if test "$GCC" = yes; then
21014	wlarc='${wl}'
21015	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21016	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21017	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
21018      else
21019	wlarc=''
21020	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21021	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21022  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
21023      fi
21024      hardcode_libdir_flag_spec_GCJ='-R$libdir'
21025      hardcode_shlibpath_var_GCJ=no
21026      case $host_os in
21027      solaris2.[0-5] | solaris2.[0-5].*) ;;
21028      *)
21029	# The compiler driver will combine and reorder linker options,
21030	# but understands `-z linker_flag'.  GCC discards it without `$wl',
21031	# but is careful enough not to reorder.
21032 	# Supported since Solaris 2.6 (maybe 2.5.1?)
21033	if test "$GCC" = yes; then
21034	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21035	else
21036	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
21037	fi
21038	;;
21039      esac
21040      link_all_deplibs_GCJ=yes
21041      ;;
21042
21043    sunos4*)
21044      if test "x$host_vendor" = xsequent; then
21045	# Use $CC to link under sequent, because it throws in some extra .o
21046	# files that make .init and .fini sections work.
21047	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21048      else
21049	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21050      fi
21051      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21052      hardcode_direct_GCJ=yes
21053      hardcode_minus_L_GCJ=yes
21054      hardcode_shlibpath_var_GCJ=no
21055      ;;
21056
21057    sysv4)
21058      case $host_vendor in
21059	sni)
21060	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21061	  hardcode_direct_GCJ=yes # is this really true???
21062	;;
21063	siemens)
21064	  ## LD is ld it makes a PLAMLIB
21065	  ## CC just makes a GrossModule.
21066	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21067	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
21068	  hardcode_direct_GCJ=no
21069        ;;
21070	motorola)
21071	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21072	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
21073	;;
21074      esac
21075      runpath_var='LD_RUN_PATH'
21076      hardcode_shlibpath_var_GCJ=no
21077      ;;
21078
21079    sysv4.3*)
21080      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21081      hardcode_shlibpath_var_GCJ=no
21082      export_dynamic_flag_spec_GCJ='-Bexport'
21083      ;;
21084
21085    sysv4*MP*)
21086      if test -d /usr/nec; then
21087	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21088	hardcode_shlibpath_var_GCJ=no
21089	runpath_var=LD_RUN_PATH
21090	hardcode_runpath_var=yes
21091	ld_shlibs_GCJ=yes
21092      fi
21093      ;;
21094
21095    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21096      no_undefined_flag_GCJ='${wl}-z,text'
21097      archive_cmds_need_lc_GCJ=no
21098      hardcode_shlibpath_var_GCJ=no
21099      runpath_var='LD_RUN_PATH'
21100
21101      if test "$GCC" = yes; then
21102	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21103	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21104      else
21105	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21106	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21107      fi
21108      ;;
21109
21110    sysv5* | sco3.2v5* | sco5v6*)
21111      # Note: We can NOT use -z defs as we might desire, because we do not
21112      # link with -lc, and that would cause any symbols used from libc to
21113      # always be unresolved, which means just about no library would
21114      # ever link correctly.  If we're not using GNU ld we use -z text
21115      # though, which does catch some bad symbols but isn't as heavy-handed
21116      # as -z defs.
21117      no_undefined_flag_GCJ='${wl}-z,text'
21118      allow_undefined_flag_GCJ='${wl}-z,nodefs'
21119      archive_cmds_need_lc_GCJ=no
21120      hardcode_shlibpath_var_GCJ=no
21121      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
21122      hardcode_libdir_separator_GCJ=':'
21123      link_all_deplibs_GCJ=yes
21124      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21125      runpath_var='LD_RUN_PATH'
21126
21127      if test "$GCC" = yes; then
21128	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21129	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21130      else
21131	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21132	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
21133      fi
21134      ;;
21135
21136    uts4*)
21137      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21138      hardcode_libdir_flag_spec_GCJ='-L$libdir'
21139      hardcode_shlibpath_var_GCJ=no
21140      ;;
21141
21142    *)
21143      ld_shlibs_GCJ=no
21144      ;;
21145    esac
21146  fi
21147
21148{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
21149$as_echo "$ld_shlibs_GCJ" >&6; }
21150test "$ld_shlibs_GCJ" = no && can_build_shared=no
21151
21152#
21153# Do we need to explicitly link libc?
21154#
21155case "x$archive_cmds_need_lc_GCJ" in
21156x|xyes)
21157  # Assume -lc should be added
21158  archive_cmds_need_lc_GCJ=yes
21159
21160  if test "$enable_shared" = yes && test "$GCC" = yes; then
21161    case $archive_cmds_GCJ in
21162    *'~'*)
21163      # FIXME: we may have to deal with multi-command sequences.
21164      ;;
21165    '$CC '*)
21166      # Test whether the compiler implicitly links with -lc since on some
21167      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21168      # to ld, don't add -lc before -lgcc.
21169      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
21170$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21171      $rm conftest*
21172      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21173
21174      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175  (eval $ac_compile) 2>&5
21176  ac_status=$?
21177  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178  (exit $ac_status); } 2>conftest.err; then
21179        soname=conftest
21180        lib=conftest
21181        libobjs=conftest.$ac_objext
21182        deplibs=
21183        wl=$lt_prog_compiler_wl_GCJ
21184	pic_flag=$lt_prog_compiler_pic_GCJ
21185        compiler_flags=-v
21186        linker_flags=-v
21187        verstring=
21188        output_objdir=.
21189        libname=conftest
21190        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
21191        allow_undefined_flag_GCJ=
21192        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
21193  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
21194  ac_status=$?
21195  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196  (exit $ac_status); }
21197        then
21198	  archive_cmds_need_lc_GCJ=no
21199        else
21200	  archive_cmds_need_lc_GCJ=yes
21201        fi
21202        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
21203      else
21204        cat conftest.err 1>&5
21205      fi
21206      $rm conftest*
21207      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
21208$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
21209      ;;
21210    esac
21211  fi
21212  ;;
21213esac
21214
21215{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
21216$as_echo_n "checking dynamic linker characteristics... " >&6; }
21217library_names_spec=
21218libname_spec='lib$name'
21219soname_spec=
21220shrext_cmds=".so"
21221postinstall_cmds=
21222postuninstall_cmds=
21223finish_cmds=
21224finish_eval=
21225shlibpath_var=
21226shlibpath_overrides_runpath=unknown
21227version_type=none
21228dynamic_linker="$host_os ld.so"
21229sys_lib_dlsearch_path_spec="/lib /usr/lib"
21230
21231need_lib_prefix=unknown
21232hardcode_into_libs=no
21233
21234# when you set need_version to no, make sure it does not cause -set_version
21235# flags to be left without arguments
21236need_version=unknown
21237
21238case $host_os in
21239aix3*)
21240  version_type=linux
21241  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21242  shlibpath_var=LIBPATH
21243
21244  # AIX 3 has no versioning support, so we append a major version to the name.
21245  soname_spec='${libname}${release}${shared_ext}$major'
21246  ;;
21247
21248aix4* | aix5*)
21249  version_type=linux
21250  need_lib_prefix=no
21251  need_version=no
21252  hardcode_into_libs=yes
21253  if test "$host_cpu" = ia64; then
21254    # AIX 5 supports IA64
21255    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21256    shlibpath_var=LD_LIBRARY_PATH
21257  else
21258    # With GCC up to 2.95.x, collect2 would create an import file
21259    # for dependence libraries.  The import file would start with
21260    # the line `#! .'.  This would cause the generated library to
21261    # depend on `.', always an invalid library.  This was fixed in
21262    # development snapshots of GCC prior to 3.0.
21263    case $host_os in
21264      aix4 | aix4.[01] | aix4.[01].*)
21265      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21266	   echo ' yes '
21267	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
21268	:
21269      else
21270	can_build_shared=no
21271      fi
21272      ;;
21273    esac
21274    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21275    # soname into executable. Probably we can add versioning support to
21276    # collect2, so additional links can be useful in future.
21277    if test "$aix_use_runtimelinking" = yes; then
21278      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21279      # instead of lib<name>.a to let people know that these are not
21280      # typical AIX shared libraries.
21281      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21282    else
21283      # We preserve .a as extension for shared libraries through AIX4.2
21284      # and later when we are not doing run time linking.
21285      library_names_spec='${libname}${release}.a $libname.a'
21286      soname_spec='${libname}${release}${shared_ext}$major'
21287    fi
21288    shlibpath_var=LIBPATH
21289  fi
21290  ;;
21291
21292amigaos*)
21293  library_names_spec='$libname.ixlibrary $libname.a'
21294  # Create ${libname}_ixlibrary.a entries in /sys/libs.
21295  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'
21296  ;;
21297
21298beos*)
21299  library_names_spec='${libname}${shared_ext}'
21300  dynamic_linker="$host_os ld.so"
21301  shlibpath_var=LIBRARY_PATH
21302  ;;
21303
21304bsdi[45]*)
21305  version_type=linux
21306  need_version=no
21307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21308  soname_spec='${libname}${release}${shared_ext}$major'
21309  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21310  shlibpath_var=LD_LIBRARY_PATH
21311  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21312  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21313  # the default ld.so.conf also contains /usr/contrib/lib and
21314  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21315  # libtool to hard-code these into programs
21316  ;;
21317
21318cygwin* | mingw* | pw32*)
21319  version_type=windows
21320  shrext_cmds=".dll"
21321  need_version=no
21322  need_lib_prefix=no
21323
21324  case $GCC,$host_os in
21325  yes,cygwin* | yes,mingw* | yes,pw32*)
21326    library_names_spec='$libname.dll.a'
21327    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21328    postinstall_cmds='base_file=`basename \${file}`~
21329      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
21330      dldir=$destdir/`dirname \$dlpath`~
21331      test -d \$dldir || mkdir -p \$dldir~
21332      $install_prog $dir/$dlname \$dldir/$dlname~
21333      chmod a+x \$dldir/$dlname'
21334    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21335      dlpath=$dir/\$dldll~
21336       $rm \$dlpath'
21337    shlibpath_overrides_runpath=yes
21338
21339    case $host_os in
21340    cygwin*)
21341      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21342      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21343      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21344      ;;
21345    mingw*)
21346      # MinGW DLLs use traditional 'lib' prefix
21347      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21348      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21349      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
21350        # It is most probably a Windows format PATH printed by
21351        # mingw gcc, but we are running on Cygwin. Gcc prints its search
21352        # path with ; separators, and with drive letters. We can handle the
21353        # drive letters (cygwin fileutils understands them), so leave them,
21354        # especially as we might pass files found there to a mingw objdump,
21355        # which wouldn't understand a cygwinified path. Ahh.
21356        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21357      else
21358        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21359      fi
21360      ;;
21361    pw32*)
21362      # pw32 DLLs use 'pw' prefix rather than 'lib'
21363      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21364      ;;
21365    esac
21366    ;;
21367
21368  *)
21369    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21370    ;;
21371  esac
21372  dynamic_linker='Win32 ld.exe'
21373  # FIXME: first we should search . and the directory the executable is in
21374  shlibpath_var=PATH
21375  ;;
21376
21377darwin* | rhapsody*)
21378  dynamic_linker="$host_os dyld"
21379  version_type=darwin
21380  need_lib_prefix=no
21381  need_version=no
21382  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21383  soname_spec='${libname}${release}${major}$shared_ext'
21384  shlibpath_overrides_runpath=yes
21385  shlibpath_var=DYLD_LIBRARY_PATH
21386  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21387
21388  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21389  ;;
21390
21391dgux*)
21392  version_type=linux
21393  need_lib_prefix=no
21394  need_version=no
21395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21396  soname_spec='${libname}${release}${shared_ext}$major'
21397  shlibpath_var=LD_LIBRARY_PATH
21398  ;;
21399
21400freebsd1*)
21401  dynamic_linker=no
21402  ;;
21403
21404freebsd* | dragonfly*)
21405  # DragonFly does not have aout.  When/if they implement a new
21406  # versioning mechanism, adjust this.
21407  if test -x /usr/bin/objformat; then
21408    objformat=`/usr/bin/objformat`
21409  else
21410    case $host_os in
21411    freebsd[123]*) objformat=aout ;;
21412    *) objformat=elf ;;
21413    esac
21414  fi
21415  version_type=freebsd-$objformat
21416  case $version_type in
21417    freebsd-elf*)
21418      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21419      need_version=no
21420      need_lib_prefix=no
21421      ;;
21422    freebsd-*)
21423      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21424      need_version=yes
21425      ;;
21426  esac
21427  shlibpath_var=LD_LIBRARY_PATH
21428  case $host_os in
21429  freebsd2*)
21430    shlibpath_overrides_runpath=yes
21431    ;;
21432  freebsd3.[01]* | freebsdelf3.[01]*)
21433    shlibpath_overrides_runpath=yes
21434    hardcode_into_libs=yes
21435    ;;
21436  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21437  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21438    shlibpath_overrides_runpath=no
21439    hardcode_into_libs=yes
21440    ;;
21441  *) # from 4.6 on, and DragonFly
21442    shlibpath_overrides_runpath=yes
21443    hardcode_into_libs=yes
21444    ;;
21445  esac
21446  ;;
21447
21448gnu*)
21449  version_type=linux
21450  need_lib_prefix=no
21451  need_version=no
21452  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21453  soname_spec='${libname}${release}${shared_ext}$major'
21454  shlibpath_var=LD_LIBRARY_PATH
21455  hardcode_into_libs=yes
21456  ;;
21457
21458hpux9* | hpux10* | hpux11*)
21459  # Give a soname corresponding to the major version so that dld.sl refuses to
21460  # link against other versions.
21461  version_type=sunos
21462  need_lib_prefix=no
21463  need_version=no
21464  case $host_cpu in
21465  ia64*)
21466    shrext_cmds='.so'
21467    hardcode_into_libs=yes
21468    dynamic_linker="$host_os dld.so"
21469    shlibpath_var=LD_LIBRARY_PATH
21470    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21471    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21472    soname_spec='${libname}${release}${shared_ext}$major'
21473    if test "X$HPUX_IA64_MODE" = X32; then
21474      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21475    else
21476      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21477    fi
21478    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21479    ;;
21480   hppa*64*)
21481     shrext_cmds='.sl'
21482     hardcode_into_libs=yes
21483     dynamic_linker="$host_os dld.sl"
21484     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21485     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21487     soname_spec='${libname}${release}${shared_ext}$major'
21488     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21489     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21490     ;;
21491   *)
21492    shrext_cmds='.sl'
21493    dynamic_linker="$host_os dld.sl"
21494    shlibpath_var=SHLIB_PATH
21495    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21497    soname_spec='${libname}${release}${shared_ext}$major'
21498    ;;
21499  esac
21500  # HP-UX runs *really* slowly unless shared libraries are mode 555.
21501  postinstall_cmds='chmod 555 $lib'
21502  ;;
21503
21504interix[3-9]*)
21505  version_type=linux
21506  need_lib_prefix=no
21507  need_version=no
21508  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21509  soname_spec='${libname}${release}${shared_ext}$major'
21510  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21511  shlibpath_var=LD_LIBRARY_PATH
21512  shlibpath_overrides_runpath=no
21513  hardcode_into_libs=yes
21514  ;;
21515
21516irix5* | irix6* | nonstopux*)
21517  case $host_os in
21518    nonstopux*) version_type=nonstopux ;;
21519    *)
21520	if test "$lt_cv_prog_gnu_ld" = yes; then
21521		version_type=linux
21522	else
21523		version_type=irix
21524	fi ;;
21525  esac
21526  need_lib_prefix=no
21527  need_version=no
21528  soname_spec='${libname}${release}${shared_ext}$major'
21529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21530  case $host_os in
21531  irix5* | nonstopux*)
21532    libsuff= shlibsuff=
21533    ;;
21534  *)
21535    case $LD in # libtool.m4 will add one of these switches to LD
21536    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21537      libsuff= shlibsuff= libmagic=32-bit;;
21538    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21539      libsuff=32 shlibsuff=N32 libmagic=N32;;
21540    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21541      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21542    *) libsuff= shlibsuff= libmagic=never-match;;
21543    esac
21544    ;;
21545  esac
21546  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21547  shlibpath_overrides_runpath=no
21548  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21549  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21550  hardcode_into_libs=yes
21551  ;;
21552
21553# No shared lib support for Linux oldld, aout, or coff.
21554linux*oldld* | linux*aout* | linux*coff*)
21555  dynamic_linker=no
21556  ;;
21557
21558# This must be Linux ELF.
21559linux* | k*bsd*-gnu)
21560  version_type=linux
21561  need_lib_prefix=no
21562  need_version=no
21563  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21564  soname_spec='${libname}${release}${shared_ext}$major'
21565  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21566  shlibpath_var=LD_LIBRARY_PATH
21567  shlibpath_overrides_runpath=no
21568  # This implies no fast_install, which is unacceptable.
21569  # Some rework will be needed to allow for fast_install
21570  # before this can be enabled.
21571  hardcode_into_libs=yes
21572
21573  # Append ld.so.conf contents to the search path
21574  if test -f /etc/ld.so.conf; then
21575    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' ' '`
21576    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21577  fi
21578
21579  # We used to test for /lib/ld.so.1 and disable shared libraries on
21580  # powerpc, because MkLinux only supported shared libraries with the
21581  # GNU dynamic linker.  Since this was broken with cross compilers,
21582  # most powerpc-linux boxes support dynamic linking these days and
21583  # people can always --disable-shared, the test was removed, and we
21584  # assume the GNU/Linux dynamic linker is in use.
21585  dynamic_linker='GNU/Linux ld.so'
21586  ;;
21587
21588netbsd*)
21589  version_type=sunos
21590  need_lib_prefix=no
21591  need_version=no
21592  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21593    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21594    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21595    dynamic_linker='NetBSD (a.out) ld.so'
21596  else
21597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21598    soname_spec='${libname}${release}${shared_ext}$major'
21599    dynamic_linker='NetBSD ld.elf_so'
21600  fi
21601  shlibpath_var=LD_LIBRARY_PATH
21602  shlibpath_overrides_runpath=yes
21603  hardcode_into_libs=yes
21604  ;;
21605
21606newsos6)
21607  version_type=linux
21608  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21609  shlibpath_var=LD_LIBRARY_PATH
21610  shlibpath_overrides_runpath=yes
21611  ;;
21612
21613nto-qnx*)
21614  version_type=linux
21615  need_lib_prefix=no
21616  need_version=no
21617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21618  soname_spec='${libname}${release}${shared_ext}$major'
21619  shlibpath_var=LD_LIBRARY_PATH
21620  shlibpath_overrides_runpath=yes
21621  ;;
21622
21623openbsd*)
21624  version_type=sunos
21625  sys_lib_dlsearch_path_spec="/usr/lib"
21626  need_lib_prefix=no
21627  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21628  case $host_os in
21629    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
21630    *)                         need_version=no  ;;
21631  esac
21632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21633  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21634  shlibpath_var=LD_LIBRARY_PATH
21635  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21636    case $host_os in
21637      openbsd2.[89] | openbsd2.[89].*)
21638	shlibpath_overrides_runpath=no
21639	;;
21640      *)
21641	shlibpath_overrides_runpath=yes
21642	;;
21643      esac
21644  else
21645    shlibpath_overrides_runpath=yes
21646  fi
21647  ;;
21648
21649os2*)
21650  libname_spec='$name'
21651  shrext_cmds=".dll"
21652  need_lib_prefix=no
21653  library_names_spec='$libname${shared_ext} $libname.a'
21654  dynamic_linker='OS/2 ld.exe'
21655  shlibpath_var=LIBPATH
21656  ;;
21657
21658osf3* | osf4* | osf5*)
21659  version_type=osf
21660  need_lib_prefix=no
21661  need_version=no
21662  soname_spec='${libname}${release}${shared_ext}$major'
21663  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21664  shlibpath_var=LD_LIBRARY_PATH
21665  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21666  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21667  ;;
21668
21669rdos*)
21670  dynamic_linker=no
21671  ;;
21672
21673solaris*)
21674  version_type=linux
21675  need_lib_prefix=no
21676  need_version=no
21677  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21678  soname_spec='${libname}${release}${shared_ext}$major'
21679  shlibpath_var=LD_LIBRARY_PATH
21680  shlibpath_overrides_runpath=yes
21681  hardcode_into_libs=yes
21682  # ldd complains unless libraries are executable
21683  postinstall_cmds='chmod +x $lib'
21684  ;;
21685
21686sunos4*)
21687  version_type=sunos
21688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21689  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21690  shlibpath_var=LD_LIBRARY_PATH
21691  shlibpath_overrides_runpath=yes
21692  if test "$with_gnu_ld" = yes; then
21693    need_lib_prefix=no
21694  fi
21695  need_version=yes
21696  ;;
21697
21698sysv4 | sysv4.3*)
21699  version_type=linux
21700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21701  soname_spec='${libname}${release}${shared_ext}$major'
21702  shlibpath_var=LD_LIBRARY_PATH
21703  case $host_vendor in
21704    sni)
21705      shlibpath_overrides_runpath=no
21706      need_lib_prefix=no
21707      export_dynamic_flag_spec='${wl}-Blargedynsym'
21708      runpath_var=LD_RUN_PATH
21709      ;;
21710    siemens)
21711      need_lib_prefix=no
21712      ;;
21713    motorola)
21714      need_lib_prefix=no
21715      need_version=no
21716      shlibpath_overrides_runpath=no
21717      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21718      ;;
21719  esac
21720  ;;
21721
21722sysv4*MP*)
21723  if test -d /usr/nec ;then
21724    version_type=linux
21725    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21726    soname_spec='$libname${shared_ext}.$major'
21727    shlibpath_var=LD_LIBRARY_PATH
21728  fi
21729  ;;
21730
21731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21732  version_type=freebsd-elf
21733  need_lib_prefix=no
21734  need_version=no
21735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21736  soname_spec='${libname}${release}${shared_ext}$major'
21737  shlibpath_var=LD_LIBRARY_PATH
21738  hardcode_into_libs=yes
21739  if test "$with_gnu_ld" = yes; then
21740    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21741    shlibpath_overrides_runpath=no
21742  else
21743    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21744    shlibpath_overrides_runpath=yes
21745    case $host_os in
21746      sco3.2v5*)
21747        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21748	;;
21749    esac
21750  fi
21751  sys_lib_dlsearch_path_spec='/usr/lib'
21752  ;;
21753
21754uts4*)
21755  version_type=linux
21756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21757  soname_spec='${libname}${release}${shared_ext}$major'
21758  shlibpath_var=LD_LIBRARY_PATH
21759  ;;
21760
21761*)
21762  dynamic_linker=no
21763  ;;
21764esac
21765{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21766$as_echo "$dynamic_linker" >&6; }
21767test "$dynamic_linker" = no && can_build_shared=no
21768
21769variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21770if test "$GCC" = yes; then
21771  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21772fi
21773
21774{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21775$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21776hardcode_action_GCJ=
21777if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21778   test -n "$runpath_var_GCJ" || \
21779   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
21780
21781  # We can hardcode non-existant directories.
21782  if test "$hardcode_direct_GCJ" != no &&
21783     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21784     # have to relink, otherwise we might link with an installed library
21785     # when we should be linking with a yet-to-be-installed one
21786     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21787     test "$hardcode_minus_L_GCJ" != no; then
21788    # Linking always hardcodes the temporary library directory.
21789    hardcode_action_GCJ=relink
21790  else
21791    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21792    hardcode_action_GCJ=immediate
21793  fi
21794else
21795  # We cannot hardcode anything, or else we can only hardcode existing
21796  # directories.
21797  hardcode_action_GCJ=unsupported
21798fi
21799{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21800$as_echo "$hardcode_action_GCJ" >&6; }
21801
21802if test "$hardcode_action_GCJ" = relink; then
21803  # Fast installation is not supported
21804  enable_fast_install=no
21805elif test "$shlibpath_overrides_runpath" = yes ||
21806     test "$enable_shared" = no; then
21807  # Fast installation is not necessary
21808  enable_fast_install=needless
21809fi
21810
21811
21812# The else clause should only fire when bootstrapping the
21813# libtool distribution, otherwise you forgot to ship ltmain.sh
21814# with your package, and you will get complaints that there are
21815# no rules to generate ltmain.sh.
21816if test -f "$ltmain"; then
21817  # See if we are running on zsh, and set the options which allow our commands through
21818  # without removal of \ escapes.
21819  if test -n "${ZSH_VERSION+set}" ; then
21820    setopt NO_GLOB_SUBST
21821  fi
21822  # Now quote all the things that may contain metacharacters while being
21823  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21824  # variables and quote the copies for generation of the libtool script.
21825  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21826    SED SHELL STRIP \
21827    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21828    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21829    deplibs_check_method reload_flag reload_cmds need_locks \
21830    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21831    lt_cv_sys_global_symbol_to_c_name_address \
21832    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21833    old_postinstall_cmds old_postuninstall_cmds \
21834    compiler_GCJ \
21835    CC_GCJ \
21836    LD_GCJ \
21837    lt_prog_compiler_wl_GCJ \
21838    lt_prog_compiler_pic_GCJ \
21839    lt_prog_compiler_static_GCJ \
21840    lt_prog_compiler_no_builtin_flag_GCJ \
21841    export_dynamic_flag_spec_GCJ \
21842    thread_safe_flag_spec_GCJ \
21843    whole_archive_flag_spec_GCJ \
21844    enable_shared_with_static_runtimes_GCJ \
21845    old_archive_cmds_GCJ \
21846    old_archive_from_new_cmds_GCJ \
21847    predep_objects_GCJ \
21848    postdep_objects_GCJ \
21849    predeps_GCJ \
21850    postdeps_GCJ \
21851    compiler_lib_search_path_GCJ \
21852    archive_cmds_GCJ \
21853    archive_expsym_cmds_GCJ \
21854    postinstall_cmds_GCJ \
21855    postuninstall_cmds_GCJ \
21856    old_archive_from_expsyms_cmds_GCJ \
21857    allow_undefined_flag_GCJ \
21858    no_undefined_flag_GCJ \
21859    export_symbols_cmds_GCJ \
21860    hardcode_libdir_flag_spec_GCJ \
21861    hardcode_libdir_flag_spec_ld_GCJ \
21862    hardcode_libdir_separator_GCJ \
21863    hardcode_automatic_GCJ \
21864    module_cmds_GCJ \
21865    module_expsym_cmds_GCJ \
21866    lt_cv_prog_compiler_c_o_GCJ \
21867    fix_srcfile_path_GCJ \
21868    exclude_expsyms_GCJ \
21869    include_expsyms_GCJ; do
21870
21871    case $var in
21872    old_archive_cmds_GCJ | \
21873    old_archive_from_new_cmds_GCJ | \
21874    archive_cmds_GCJ | \
21875    archive_expsym_cmds_GCJ | \
21876    module_cmds_GCJ | \
21877    module_expsym_cmds_GCJ | \
21878    old_archive_from_expsyms_cmds_GCJ | \
21879    export_symbols_cmds_GCJ | \
21880    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21881    postinstall_cmds | postuninstall_cmds | \
21882    old_postinstall_cmds | old_postuninstall_cmds | \
21883    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21884      # Double-quote double-evaled strings.
21885      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21886      ;;
21887    *)
21888      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21889      ;;
21890    esac
21891  done
21892
21893  case $lt_echo in
21894  *'\$0 --fallback-echo"')
21895    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21896    ;;
21897  esac
21898
21899cfgfile="$ofile"
21900
21901  cat <<__EOF__ >> "$cfgfile"
21902# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21903
21904# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21905
21906# Shell to use when invoking shell scripts.
21907SHELL=$lt_SHELL
21908
21909# Whether or not to build shared libraries.
21910build_libtool_libs=$enable_shared
21911
21912# Whether or not to build static libraries.
21913build_old_libs=$enable_static
21914
21915# Whether or not to add -lc for building shared libraries.
21916build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21917
21918# Whether or not to disallow shared libs when runtime libs are static
21919allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21920
21921# Whether or not to optimize for fast installation.
21922fast_install=$enable_fast_install
21923
21924# The host system.
21925host_alias=$host_alias
21926host=$host
21927host_os=$host_os
21928
21929# The build system.
21930build_alias=$build_alias
21931build=$build
21932build_os=$build_os
21933
21934# An echo program that does not interpret backslashes.
21935echo=$lt_echo
21936
21937# The archiver.
21938AR=$lt_AR
21939AR_FLAGS=$lt_AR_FLAGS
21940
21941# A C compiler.
21942LTCC=$lt_LTCC
21943
21944# LTCC compiler flags.
21945LTCFLAGS=$lt_LTCFLAGS
21946
21947# A language-specific compiler.
21948CC=$lt_compiler_GCJ
21949
21950# Is the compiler the GNU C compiler?
21951with_gcc=$GCC_GCJ
21952
21953# An ERE matcher.
21954EGREP=$lt_EGREP
21955
21956# The linker used to build libraries.
21957LD=$lt_LD_GCJ
21958
21959# Whether we need hard or soft links.
21960LN_S=$lt_LN_S
21961
21962# A BSD-compatible nm program.
21963NM=$lt_NM
21964
21965# A symbol stripping program
21966STRIP=$lt_STRIP
21967
21968# Used to examine libraries when file_magic_cmd begins "file"
21969MAGIC_CMD=$MAGIC_CMD
21970
21971# Used on cygwin: DLL creation program.
21972DLLTOOL="$DLLTOOL"
21973
21974# Used on cygwin: object dumper.
21975OBJDUMP="$OBJDUMP"
21976
21977# Used on cygwin: assembler.
21978AS="$AS"
21979
21980# The name of the directory that contains temporary libtool files.
21981objdir=$objdir
21982
21983# How to create reloadable object files.
21984reload_flag=$lt_reload_flag
21985reload_cmds=$lt_reload_cmds
21986
21987# How to pass a linker flag through the compiler.
21988wl=$lt_lt_prog_compiler_wl_GCJ
21989
21990# Object file suffix (normally "o").
21991objext="$ac_objext"
21992
21993# Old archive suffix (normally "a").
21994libext="$libext"
21995
21996# Shared library suffix (normally ".so").
21997shrext_cmds='$shrext_cmds'
21998
21999# Executable file suffix (normally "").
22000exeext="$exeext"
22001
22002# Additional compiler flags for building library objects.
22003pic_flag=$lt_lt_prog_compiler_pic_GCJ
22004pic_mode=$pic_mode
22005
22006# What is the maximum length of a command?
22007max_cmd_len=$lt_cv_sys_max_cmd_len
22008
22009# Does compiler simultaneously support -c and -o options?
22010compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22011
22012# Must we lock files when doing compilation?
22013need_locks=$lt_need_locks
22014
22015# Do we need the lib prefix for modules?
22016need_lib_prefix=$need_lib_prefix
22017
22018# Do we need a version for libraries?
22019need_version=$need_version
22020
22021# Whether dlopen is supported.
22022dlopen_support=$enable_dlopen
22023
22024# Whether dlopen of programs is supported.
22025dlopen_self=$enable_dlopen_self
22026
22027# Whether dlopen of statically linked programs is supported.
22028dlopen_self_static=$enable_dlopen_self_static
22029
22030# Compiler flag to prevent dynamic linking.
22031link_static_flag=$lt_lt_prog_compiler_static_GCJ
22032
22033# Compiler flag to turn off builtin functions.
22034no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22035
22036# Compiler flag to allow reflexive dlopens.
22037export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22038
22039# Compiler flag to generate shared objects directly from archives.
22040whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22041
22042# Compiler flag to generate thread-safe objects.
22043thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22044
22045# Library versioning type.
22046version_type=$version_type
22047
22048# Format of library name prefix.
22049libname_spec=$lt_libname_spec
22050
22051# List of archive names.  First name is the real one, the rest are links.
22052# The last name is the one that the linker finds with -lNAME.
22053library_names_spec=$lt_library_names_spec
22054
22055# The coded name of the library, if different from the real name.
22056soname_spec=$lt_soname_spec
22057
22058# Commands used to build and install an old-style archive.
22059RANLIB=$lt_RANLIB
22060old_archive_cmds=$lt_old_archive_cmds_GCJ
22061old_postinstall_cmds=$lt_old_postinstall_cmds
22062old_postuninstall_cmds=$lt_old_postuninstall_cmds
22063
22064# Create an old-style archive from a shared archive.
22065old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22066
22067# Create a temporary old-style archive to link instead of a shared archive.
22068old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22069
22070# Commands used to build and install a shared archive.
22071archive_cmds=$lt_archive_cmds_GCJ
22072archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22073postinstall_cmds=$lt_postinstall_cmds
22074postuninstall_cmds=$lt_postuninstall_cmds
22075
22076# Commands used to build a loadable module (assumed same as above if empty)
22077module_cmds=$lt_module_cmds_GCJ
22078module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22079
22080# Commands to strip libraries.
22081old_striplib=$lt_old_striplib
22082striplib=$lt_striplib
22083
22084# Dependencies to place before the objects being linked to create a
22085# shared library.
22086predep_objects=$lt_predep_objects_GCJ
22087
22088# Dependencies to place after the objects being linked to create a
22089# shared library.
22090postdep_objects=$lt_postdep_objects_GCJ
22091
22092# Dependencies to place before the objects being linked to create a
22093# shared library.
22094predeps=$lt_predeps_GCJ
22095
22096# Dependencies to place after the objects being linked to create a
22097# shared library.
22098postdeps=$lt_postdeps_GCJ
22099
22100# The library search path used internally by the compiler when linking
22101# a shared library.
22102compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22103
22104# Method to check whether dependent libraries are shared objects.
22105deplibs_check_method=$lt_deplibs_check_method
22106
22107# Command to use when deplibs_check_method == file_magic.
22108file_magic_cmd=$lt_file_magic_cmd
22109
22110# Flag that allows shared libraries with undefined symbols to be built.
22111allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22112
22113# Flag that forces no undefined symbols.
22114no_undefined_flag=$lt_no_undefined_flag_GCJ
22115
22116# Commands used to finish a libtool library installation in a directory.
22117finish_cmds=$lt_finish_cmds
22118
22119# Same as above, but a single script fragment to be evaled but not shown.
22120finish_eval=$lt_finish_eval
22121
22122# Take the output of nm and produce a listing of raw symbols and C names.
22123global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22124
22125# Transform the output of nm in a proper C declaration
22126global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22127
22128# Transform the output of nm in a C name address pair
22129global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22130
22131# This is the shared library runtime path variable.
22132runpath_var=$runpath_var
22133
22134# This is the shared library path variable.
22135shlibpath_var=$shlibpath_var
22136
22137# Is shlibpath searched before the hard-coded library search path?
22138shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22139
22140# How to hardcode a shared library path into an executable.
22141hardcode_action=$hardcode_action_GCJ
22142
22143# Whether we should hardcode library paths into libraries.
22144hardcode_into_libs=$hardcode_into_libs
22145
22146# Flag to hardcode \$libdir into a binary during linking.
22147# This must work even if \$libdir does not exist.
22148hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22149
22150# If ld is used when linking, flag to hardcode \$libdir into
22151# a binary during linking. This must work even if \$libdir does
22152# not exist.
22153hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22154
22155# Whether we need a single -rpath flag with a separated argument.
22156hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22157
22158# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22159# resulting binary.
22160hardcode_direct=$hardcode_direct_GCJ
22161
22162# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22163# resulting binary.
22164hardcode_minus_L=$hardcode_minus_L_GCJ
22165
22166# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22167# the resulting binary.
22168hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22169
22170# Set to yes if building a shared library automatically hardcodes DIR into the library
22171# and all subsequent libraries and executables linked against it.
22172hardcode_automatic=$hardcode_automatic_GCJ
22173
22174# Variables whose values should be saved in libtool wrapper scripts and
22175# restored at relink time.
22176variables_saved_for_relink="$variables_saved_for_relink"
22177
22178# Whether libtool must link a program against all its dependency libraries.
22179link_all_deplibs=$link_all_deplibs_GCJ
22180
22181# Compile-time system search path for libraries
22182sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22183
22184# Run-time system search path for libraries
22185sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22186
22187# Fix the shell variable \$srcfile for the compiler.
22188fix_srcfile_path=$lt_fix_srcfile_path
22189
22190# Set to yes if exported symbols are required.
22191always_export_symbols=$always_export_symbols_GCJ
22192
22193# The commands to list exported symbols.
22194export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22195
22196# The commands to extract the exported symbol list from a shared archive.
22197extract_expsyms_cmds=$lt_extract_expsyms_cmds
22198
22199# Symbols that should not be listed in the preloaded symbols.
22200exclude_expsyms=$lt_exclude_expsyms_GCJ
22201
22202# Symbols that must always be exported.
22203include_expsyms=$lt_include_expsyms_GCJ
22204
22205# ### END LIBTOOL TAG CONFIG: $tagname
22206
22207__EOF__
22208
22209
22210else
22211  # If there is no Makefile yet, we rely on a make rule to execute
22212  # `config.status --recheck' to rerun these tests and create the
22213  # libtool script then.
22214  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22215  if test -f "$ltmain_in"; then
22216    test -f Makefile && make "$ltmain"
22217  fi
22218fi
22219
22220
22221ac_ext=c
22222ac_cpp='$CPP $CPPFLAGS'
22223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22225ac_compiler_gnu=$ac_cv_c_compiler_gnu
22226
22227CC="$lt_save_CC"
22228
22229	else
22230	  tagname=""
22231	fi
22232	;;
22233
22234      RC)
22235
22236
22237# Source file extension for RC test sources.
22238ac_ext=rc
22239
22240# Object file extension for compiled RC test sources.
22241objext=o
22242objext_RC=$objext
22243
22244# Code to be used in simple compile tests
22245lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
22246
22247# Code to be used in simple link tests
22248lt_simple_link_test_code="$lt_simple_compile_test_code"
22249
22250# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22251
22252# If no C compiler was specified, use CC.
22253LTCC=${LTCC-"$CC"}
22254
22255# If no C compiler flags were specified, use CFLAGS.
22256LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
22257
22258# Allow CC to be a program name with arguments.
22259compiler=$CC
22260
22261
22262# save warnings/boilerplate of simple test code
22263ac_outfile=conftest.$ac_objext
22264echo "$lt_simple_compile_test_code" >conftest.$ac_ext
22265eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22266_lt_compiler_boilerplate=`cat conftest.err`
22267$rm conftest*
22268
22269ac_outfile=conftest.$ac_objext
22270echo "$lt_simple_link_test_code" >conftest.$ac_ext
22271eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
22272_lt_linker_boilerplate=`cat conftest.err`
22273$rm conftest*
22274
22275
22276# Allow CC to be a program name with arguments.
22277lt_save_CC="$CC"
22278CC=${RC-"windres"}
22279compiler=$CC
22280compiler_RC=$CC
22281for cc_temp in $compiler""; do
22282  case $cc_temp in
22283    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22284    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22285    \-*) ;;
22286    *) break;;
22287  esac
22288done
22289cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
22290
22291lt_cv_prog_compiler_c_o_RC=yes
22292
22293# The else clause should only fire when bootstrapping the
22294# libtool distribution, otherwise you forgot to ship ltmain.sh
22295# with your package, and you will get complaints that there are
22296# no rules to generate ltmain.sh.
22297if test -f "$ltmain"; then
22298  # See if we are running on zsh, and set the options which allow our commands through
22299  # without removal of \ escapes.
22300  if test -n "${ZSH_VERSION+set}" ; then
22301    setopt NO_GLOB_SUBST
22302  fi
22303  # Now quote all the things that may contain metacharacters while being
22304  # careful not to overquote the AC_SUBSTed values.  We take copies of the
22305  # variables and quote the copies for generation of the libtool script.
22306  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
22307    SED SHELL STRIP \
22308    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22309    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22310    deplibs_check_method reload_flag reload_cmds need_locks \
22311    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22312    lt_cv_sys_global_symbol_to_c_name_address \
22313    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22314    old_postinstall_cmds old_postuninstall_cmds \
22315    compiler_RC \
22316    CC_RC \
22317    LD_RC \
22318    lt_prog_compiler_wl_RC \
22319    lt_prog_compiler_pic_RC \
22320    lt_prog_compiler_static_RC \
22321    lt_prog_compiler_no_builtin_flag_RC \
22322    export_dynamic_flag_spec_RC \
22323    thread_safe_flag_spec_RC \
22324    whole_archive_flag_spec_RC \
22325    enable_shared_with_static_runtimes_RC \
22326    old_archive_cmds_RC \
22327    old_archive_from_new_cmds_RC \
22328    predep_objects_RC \
22329    postdep_objects_RC \
22330    predeps_RC \
22331    postdeps_RC \
22332    compiler_lib_search_path_RC \
22333    archive_cmds_RC \
22334    archive_expsym_cmds_RC \
22335    postinstall_cmds_RC \
22336    postuninstall_cmds_RC \
22337    old_archive_from_expsyms_cmds_RC \
22338    allow_undefined_flag_RC \
22339    no_undefined_flag_RC \
22340    export_symbols_cmds_RC \
22341    hardcode_libdir_flag_spec_RC \
22342    hardcode_libdir_flag_spec_ld_RC \
22343    hardcode_libdir_separator_RC \
22344    hardcode_automatic_RC \
22345    module_cmds_RC \
22346    module_expsym_cmds_RC \
22347    lt_cv_prog_compiler_c_o_RC \
22348    fix_srcfile_path_RC \
22349    exclude_expsyms_RC \
22350    include_expsyms_RC; do
22351
22352    case $var in
22353    old_archive_cmds_RC | \
22354    old_archive_from_new_cmds_RC | \
22355    archive_cmds_RC | \
22356    archive_expsym_cmds_RC | \
22357    module_cmds_RC | \
22358    module_expsym_cmds_RC | \
22359    old_archive_from_expsyms_cmds_RC | \
22360    export_symbols_cmds_RC | \
22361    extract_expsyms_cmds | reload_cmds | finish_cmds | \
22362    postinstall_cmds | postuninstall_cmds | \
22363    old_postinstall_cmds | old_postuninstall_cmds | \
22364    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22365      # Double-quote double-evaled strings.
22366      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22367      ;;
22368    *)
22369      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22370      ;;
22371    esac
22372  done
22373
22374  case $lt_echo in
22375  *'\$0 --fallback-echo"')
22376    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22377    ;;
22378  esac
22379
22380cfgfile="$ofile"
22381
22382  cat <<__EOF__ >> "$cfgfile"
22383# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22384
22385# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22386
22387# Shell to use when invoking shell scripts.
22388SHELL=$lt_SHELL
22389
22390# Whether or not to build shared libraries.
22391build_libtool_libs=$enable_shared
22392
22393# Whether or not to build static libraries.
22394build_old_libs=$enable_static
22395
22396# Whether or not to add -lc for building shared libraries.
22397build_libtool_need_lc=$archive_cmds_need_lc_RC
22398
22399# Whether or not to disallow shared libs when runtime libs are static
22400allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22401
22402# Whether or not to optimize for fast installation.
22403fast_install=$enable_fast_install
22404
22405# The host system.
22406host_alias=$host_alias
22407host=$host
22408host_os=$host_os
22409
22410# The build system.
22411build_alias=$build_alias
22412build=$build
22413build_os=$build_os
22414
22415# An echo program that does not interpret backslashes.
22416echo=$lt_echo
22417
22418# The archiver.
22419AR=$lt_AR
22420AR_FLAGS=$lt_AR_FLAGS
22421
22422# A C compiler.
22423LTCC=$lt_LTCC
22424
22425# LTCC compiler flags.
22426LTCFLAGS=$lt_LTCFLAGS
22427
22428# A language-specific compiler.
22429CC=$lt_compiler_RC
22430
22431# Is the compiler the GNU C compiler?
22432with_gcc=$GCC_RC
22433
22434# An ERE matcher.
22435EGREP=$lt_EGREP
22436
22437# The linker used to build libraries.
22438LD=$lt_LD_RC
22439
22440# Whether we need hard or soft links.
22441LN_S=$lt_LN_S
22442
22443# A BSD-compatible nm program.
22444NM=$lt_NM
22445
22446# A symbol stripping program
22447STRIP=$lt_STRIP
22448
22449# Used to examine libraries when file_magic_cmd begins "file"
22450MAGIC_CMD=$MAGIC_CMD
22451
22452# Used on cygwin: DLL creation program.
22453DLLTOOL="$DLLTOOL"
22454
22455# Used on cygwin: object dumper.
22456OBJDUMP="$OBJDUMP"
22457
22458# Used on cygwin: assembler.
22459AS="$AS"
22460
22461# The name of the directory that contains temporary libtool files.
22462objdir=$objdir
22463
22464# How to create reloadable object files.
22465reload_flag=$lt_reload_flag
22466reload_cmds=$lt_reload_cmds
22467
22468# How to pass a linker flag through the compiler.
22469wl=$lt_lt_prog_compiler_wl_RC
22470
22471# Object file suffix (normally "o").
22472objext="$ac_objext"
22473
22474# Old archive suffix (normally "a").
22475libext="$libext"
22476
22477# Shared library suffix (normally ".so").
22478shrext_cmds='$shrext_cmds'
22479
22480# Executable file suffix (normally "").
22481exeext="$exeext"
22482
22483# Additional compiler flags for building library objects.
22484pic_flag=$lt_lt_prog_compiler_pic_RC
22485pic_mode=$pic_mode
22486
22487# What is the maximum length of a command?
22488max_cmd_len=$lt_cv_sys_max_cmd_len
22489
22490# Does compiler simultaneously support -c and -o options?
22491compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22492
22493# Must we lock files when doing compilation?
22494need_locks=$lt_need_locks
22495
22496# Do we need the lib prefix for modules?
22497need_lib_prefix=$need_lib_prefix
22498
22499# Do we need a version for libraries?
22500need_version=$need_version
22501
22502# Whether dlopen is supported.
22503dlopen_support=$enable_dlopen
22504
22505# Whether dlopen of programs is supported.
22506dlopen_self=$enable_dlopen_self
22507
22508# Whether dlopen of statically linked programs is supported.
22509dlopen_self_static=$enable_dlopen_self_static
22510
22511# Compiler flag to prevent dynamic linking.
22512link_static_flag=$lt_lt_prog_compiler_static_RC
22513
22514# Compiler flag to turn off builtin functions.
22515no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22516
22517# Compiler flag to allow reflexive dlopens.
22518export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22519
22520# Compiler flag to generate shared objects directly from archives.
22521whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22522
22523# Compiler flag to generate thread-safe objects.
22524thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22525
22526# Library versioning type.
22527version_type=$version_type
22528
22529# Format of library name prefix.
22530libname_spec=$lt_libname_spec
22531
22532# List of archive names.  First name is the real one, the rest are links.
22533# The last name is the one that the linker finds with -lNAME.
22534library_names_spec=$lt_library_names_spec
22535
22536# The coded name of the library, if different from the real name.
22537soname_spec=$lt_soname_spec
22538
22539# Commands used to build and install an old-style archive.
22540RANLIB=$lt_RANLIB
22541old_archive_cmds=$lt_old_archive_cmds_RC
22542old_postinstall_cmds=$lt_old_postinstall_cmds
22543old_postuninstall_cmds=$lt_old_postuninstall_cmds
22544
22545# Create an old-style archive from a shared archive.
22546old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22547
22548# Create a temporary old-style archive to link instead of a shared archive.
22549old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22550
22551# Commands used to build and install a shared archive.
22552archive_cmds=$lt_archive_cmds_RC
22553archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22554postinstall_cmds=$lt_postinstall_cmds
22555postuninstall_cmds=$lt_postuninstall_cmds
22556
22557# Commands used to build a loadable module (assumed same as above if empty)
22558module_cmds=$lt_module_cmds_RC
22559module_expsym_cmds=$lt_module_expsym_cmds_RC
22560
22561# Commands to strip libraries.
22562old_striplib=$lt_old_striplib
22563striplib=$lt_striplib
22564
22565# Dependencies to place before the objects being linked to create a
22566# shared library.
22567predep_objects=$lt_predep_objects_RC
22568
22569# Dependencies to place after the objects being linked to create a
22570# shared library.
22571postdep_objects=$lt_postdep_objects_RC
22572
22573# Dependencies to place before the objects being linked to create a
22574# shared library.
22575predeps=$lt_predeps_RC
22576
22577# Dependencies to place after the objects being linked to create a
22578# shared library.
22579postdeps=$lt_postdeps_RC
22580
22581# The library search path used internally by the compiler when linking
22582# a shared library.
22583compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22584
22585# Method to check whether dependent libraries are shared objects.
22586deplibs_check_method=$lt_deplibs_check_method
22587
22588# Command to use when deplibs_check_method == file_magic.
22589file_magic_cmd=$lt_file_magic_cmd
22590
22591# Flag that allows shared libraries with undefined symbols to be built.
22592allow_undefined_flag=$lt_allow_undefined_flag_RC
22593
22594# Flag that forces no undefined symbols.
22595no_undefined_flag=$lt_no_undefined_flag_RC
22596
22597# Commands used to finish a libtool library installation in a directory.
22598finish_cmds=$lt_finish_cmds
22599
22600# Same as above, but a single script fragment to be evaled but not shown.
22601finish_eval=$lt_finish_eval
22602
22603# Take the output of nm and produce a listing of raw symbols and C names.
22604global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22605
22606# Transform the output of nm in a proper C declaration
22607global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22608
22609# Transform the output of nm in a C name address pair
22610global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22611
22612# This is the shared library runtime path variable.
22613runpath_var=$runpath_var
22614
22615# This is the shared library path variable.
22616shlibpath_var=$shlibpath_var
22617
22618# Is shlibpath searched before the hard-coded library search path?
22619shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22620
22621# How to hardcode a shared library path into an executable.
22622hardcode_action=$hardcode_action_RC
22623
22624# Whether we should hardcode library paths into libraries.
22625hardcode_into_libs=$hardcode_into_libs
22626
22627# Flag to hardcode \$libdir into a binary during linking.
22628# This must work even if \$libdir does not exist.
22629hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22630
22631# If ld is used when linking, flag to hardcode \$libdir into
22632# a binary during linking. This must work even if \$libdir does
22633# not exist.
22634hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22635
22636# Whether we need a single -rpath flag with a separated argument.
22637hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22638
22639# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22640# resulting binary.
22641hardcode_direct=$hardcode_direct_RC
22642
22643# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22644# resulting binary.
22645hardcode_minus_L=$hardcode_minus_L_RC
22646
22647# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22648# the resulting binary.
22649hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22650
22651# Set to yes if building a shared library automatically hardcodes DIR into the library
22652# and all subsequent libraries and executables linked against it.
22653hardcode_automatic=$hardcode_automatic_RC
22654
22655# Variables whose values should be saved in libtool wrapper scripts and
22656# restored at relink time.
22657variables_saved_for_relink="$variables_saved_for_relink"
22658
22659# Whether libtool must link a program against all its dependency libraries.
22660link_all_deplibs=$link_all_deplibs_RC
22661
22662# Compile-time system search path for libraries
22663sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22664
22665# Run-time system search path for libraries
22666sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22667
22668# Fix the shell variable \$srcfile for the compiler.
22669fix_srcfile_path=$lt_fix_srcfile_path
22670
22671# Set to yes if exported symbols are required.
22672always_export_symbols=$always_export_symbols_RC
22673
22674# The commands to list exported symbols.
22675export_symbols_cmds=$lt_export_symbols_cmds_RC
22676
22677# The commands to extract the exported symbol list from a shared archive.
22678extract_expsyms_cmds=$lt_extract_expsyms_cmds
22679
22680# Symbols that should not be listed in the preloaded symbols.
22681exclude_expsyms=$lt_exclude_expsyms_RC
22682
22683# Symbols that must always be exported.
22684include_expsyms=$lt_include_expsyms_RC
22685
22686# ### END LIBTOOL TAG CONFIG: $tagname
22687
22688__EOF__
22689
22690
22691else
22692  # If there is no Makefile yet, we rely on a make rule to execute
22693  # `config.status --recheck' to rerun these tests and create the
22694  # libtool script then.
22695  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22696  if test -f "$ltmain_in"; then
22697    test -f Makefile && make "$ltmain"
22698  fi
22699fi
22700
22701
22702ac_ext=c
22703ac_cpp='$CPP $CPPFLAGS'
22704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706ac_compiler_gnu=$ac_cv_c_compiler_gnu
22707
22708CC="$lt_save_CC"
22709
22710	;;
22711
22712      *)
22713	{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22714$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22715   { (exit 1); exit 1; }; }
22716	;;
22717      esac
22718
22719      # Append the new tag name to the list of available tags.
22720      if test -n "$tagname" ; then
22721      available_tags="$available_tags $tagname"
22722    fi
22723    fi
22724  done
22725  IFS="$lt_save_ifs"
22726
22727  # Now substitute the updated list of available tags.
22728  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22729    mv "${ofile}T" "$ofile"
22730    chmod +x "$ofile"
22731  else
22732    rm -f "${ofile}T"
22733    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22734$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22735   { (exit 1); exit 1; }; }
22736  fi
22737fi
22738
22739
22740
22741# This can be used to rebuild libtool when needed
22742LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22743
22744# Always use our own libtool.
22745LIBTOOL='$(SHELL) $(top_builddir)/libtool'
22746
22747# Prevent multiple expansion
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767
22768case "$host_os" in
22769  # On Cygwin, without -no-undefined, a warning is emitted and only a static
22770  # library is built.
22771  beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;;
22772  *) LTNOUNDEF='' ;;
22773esac
22774
22775
22776case "$host_os" in
22777  mingw* | cygwin*) is_woe32=yes ;;
22778  *) is_woe32=no ;;
22779esac
22780 if test $is_woe32 = yes; then
22781  WOE32_TRUE=
22782  WOE32_FALSE='#'
22783else
22784  WOE32_TRUE='#'
22785  WOE32_FALSE=
22786fi
22787
22788
22789
22790
22791  { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
22792$as_echo_n "checking whether NLS is requested... " >&6; }
22793    # Check whether --enable-nls was given.
22794if test "${enable_nls+set}" = set; then
22795  enableval=$enable_nls; USE_NLS=$enableval
22796else
22797  USE_NLS=yes
22798fi
22799
22800  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
22801$as_echo "$USE_NLS" >&6; }
22802
22803
22804
22805
22806      GETTEXT_MACRO_VERSION=0.17
22807
22808
22809
22810
22811# Prepare PATH_SEPARATOR.
22812# The user is always right.
22813if test "${PATH_SEPARATOR+set}" != set; then
22814  echo "#! /bin/sh" >conf$$.sh
22815  echo  "exit 0"   >>conf$$.sh
22816  chmod +x conf$$.sh
22817  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22818    PATH_SEPARATOR=';'
22819  else
22820    PATH_SEPARATOR=:
22821  fi
22822  rm -f conf$$.sh
22823fi
22824
22825# Find out how to test for executable files. Don't use a zero-byte file,
22826# as systems may use methods other than mode bits to determine executability.
22827cat >conf$$.file <<_ASEOF
22828#! /bin/sh
22829exit 0
22830_ASEOF
22831chmod +x conf$$.file
22832if test -x conf$$.file >/dev/null 2>&1; then
22833  ac_executable_p="test -x"
22834else
22835  ac_executable_p="test -f"
22836fi
22837rm -f conf$$.file
22838
22839# Extract the first word of "msgfmt", so it can be a program name with args.
22840set dummy msgfmt; ac_word=$2
22841{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22842$as_echo_n "checking for $ac_word... " >&6; }
22843if test "${ac_cv_path_MSGFMT+set}" = set; then
22844  $as_echo_n "(cached) " >&6
22845else
22846  case "$MSGFMT" in
22847  [\\/]* | ?:[\\/]*)
22848    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22849    ;;
22850  *)
22851    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22852    for ac_dir in $PATH; do
22853      IFS="$ac_save_IFS"
22854      test -z "$ac_dir" && ac_dir=.
22855      for ac_exec_ext in '' $ac_executable_extensions; do
22856        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22857          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22858          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
22859     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
22860            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
22861            break 2
22862          fi
22863        fi
22864      done
22865    done
22866    IFS="$ac_save_IFS"
22867  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
22868    ;;
22869esac
22870fi
22871MSGFMT="$ac_cv_path_MSGFMT"
22872if test "$MSGFMT" != ":"; then
22873  { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
22874$as_echo "$MSGFMT" >&6; }
22875else
22876  { $as_echo "$as_me:$LINENO: result: no" >&5
22877$as_echo "no" >&6; }
22878fi
22879
22880  # Extract the first word of "gmsgfmt", so it can be a program name with args.
22881set dummy gmsgfmt; ac_word=$2
22882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22883$as_echo_n "checking for $ac_word... " >&6; }
22884if test "${ac_cv_path_GMSGFMT+set}" = set; then
22885  $as_echo_n "(cached) " >&6
22886else
22887  case $GMSGFMT in
22888  [\\/]* | ?:[\\/]*)
22889  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22890  ;;
22891  *)
22892  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22893for as_dir in $PATH
22894do
22895  IFS=$as_save_IFS
22896  test -z "$as_dir" && as_dir=.
22897  for ac_exec_ext in '' $ac_executable_extensions; do
22898  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22899    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22900    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22901    break 2
22902  fi
22903done
22904done
22905IFS=$as_save_IFS
22906
22907  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22908  ;;
22909esac
22910fi
22911GMSGFMT=$ac_cv_path_GMSGFMT
22912if test -n "$GMSGFMT"; then
22913  { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22914$as_echo "$GMSGFMT" >&6; }
22915else
22916  { $as_echo "$as_me:$LINENO: result: no" >&5
22917$as_echo "no" >&6; }
22918fi
22919
22920
22921
22922    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
22923    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
22924    *) MSGFMT_015=$MSGFMT ;;
22925  esac
22926
22927  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
22928    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
22929    *) GMSGFMT_015=$GMSGFMT ;;
22930  esac
22931
22932
22933
22934# Prepare PATH_SEPARATOR.
22935# The user is always right.
22936if test "${PATH_SEPARATOR+set}" != set; then
22937  echo "#! /bin/sh" >conf$$.sh
22938  echo  "exit 0"   >>conf$$.sh
22939  chmod +x conf$$.sh
22940  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22941    PATH_SEPARATOR=';'
22942  else
22943    PATH_SEPARATOR=:
22944  fi
22945  rm -f conf$$.sh
22946fi
22947
22948# Find out how to test for executable files. Don't use a zero-byte file,
22949# as systems may use methods other than mode bits to determine executability.
22950cat >conf$$.file <<_ASEOF
22951#! /bin/sh
22952exit 0
22953_ASEOF
22954chmod +x conf$$.file
22955if test -x conf$$.file >/dev/null 2>&1; then
22956  ac_executable_p="test -x"
22957else
22958  ac_executable_p="test -f"
22959fi
22960rm -f conf$$.file
22961
22962# Extract the first word of "xgettext", so it can be a program name with args.
22963set dummy xgettext; ac_word=$2
22964{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22965$as_echo_n "checking for $ac_word... " >&6; }
22966if test "${ac_cv_path_XGETTEXT+set}" = set; then
22967  $as_echo_n "(cached) " >&6
22968else
22969  case "$XGETTEXT" in
22970  [\\/]* | ?:[\\/]*)
22971    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22972    ;;
22973  *)
22974    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
22975    for ac_dir in $PATH; do
22976      IFS="$ac_save_IFS"
22977      test -z "$ac_dir" && ac_dir=.
22978      for ac_exec_ext in '' $ac_executable_extensions; do
22979        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
22980          echo "$as_me: trying $ac_dir/$ac_word..." >&5
22981          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
22982     (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
22983            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
22984            break 2
22985          fi
22986        fi
22987      done
22988    done
22989    IFS="$ac_save_IFS"
22990  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22991    ;;
22992esac
22993fi
22994XGETTEXT="$ac_cv_path_XGETTEXT"
22995if test "$XGETTEXT" != ":"; then
22996  { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22997$as_echo "$XGETTEXT" >&6; }
22998else
22999  { $as_echo "$as_me:$LINENO: result: no" >&5
23000$as_echo "no" >&6; }
23001fi
23002
23003    rm -f messages.po
23004
23005    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
23006    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
23007    *) XGETTEXT_015=$XGETTEXT ;;
23008  esac
23009
23010
23011
23012# Prepare PATH_SEPARATOR.
23013# The user is always right.
23014if test "${PATH_SEPARATOR+set}" != set; then
23015  echo "#! /bin/sh" >conf$$.sh
23016  echo  "exit 0"   >>conf$$.sh
23017  chmod +x conf$$.sh
23018  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23019    PATH_SEPARATOR=';'
23020  else
23021    PATH_SEPARATOR=:
23022  fi
23023  rm -f conf$$.sh
23024fi
23025
23026# Find out how to test for executable files. Don't use a zero-byte file,
23027# as systems may use methods other than mode bits to determine executability.
23028cat >conf$$.file <<_ASEOF
23029#! /bin/sh
23030exit 0
23031_ASEOF
23032chmod +x conf$$.file
23033if test -x conf$$.file >/dev/null 2>&1; then
23034  ac_executable_p="test -x"
23035else
23036  ac_executable_p="test -f"
23037fi
23038rm -f conf$$.file
23039
23040# Extract the first word of "msgmerge", so it can be a program name with args.
23041set dummy msgmerge; ac_word=$2
23042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23043$as_echo_n "checking for $ac_word... " >&6; }
23044if test "${ac_cv_path_MSGMERGE+set}" = set; then
23045  $as_echo_n "(cached) " >&6
23046else
23047  case "$MSGMERGE" in
23048  [\\/]* | ?:[\\/]*)
23049    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
23050    ;;
23051  *)
23052    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
23053    for ac_dir in $PATH; do
23054      IFS="$ac_save_IFS"
23055      test -z "$ac_dir" && ac_dir=.
23056      for ac_exec_ext in '' $ac_executable_extensions; do
23057        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
23058          echo "$as_me: trying $ac_dir/$ac_word..." >&5
23059          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
23060            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
23061            break 2
23062          fi
23063        fi
23064      done
23065    done
23066    IFS="$ac_save_IFS"
23067  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
23068    ;;
23069esac
23070fi
23071MSGMERGE="$ac_cv_path_MSGMERGE"
23072if test "$MSGMERGE" != ":"; then
23073  { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
23074$as_echo "$MSGMERGE" >&6; }
23075else
23076  { $as_echo "$as_me:$LINENO: result: no" >&5
23077$as_echo "no" >&6; }
23078fi
23079
23080
23081        test -n "$localedir" || localedir='${datadir}/locale'
23082
23083
23084    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
23085
23086
23087  ac_config_commands="$ac_config_commands po-directories"
23088
23089
23090
23091    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
23092$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
23093if test "${ac_cv_gnu_library_2+set}" = set; then
23094  $as_echo_n "(cached) " >&6
23095else
23096  cat >conftest.$ac_ext <<_ACEOF
23097/* confdefs.h.  */
23098_ACEOF
23099cat confdefs.h >>conftest.$ac_ext
23100cat >>conftest.$ac_ext <<_ACEOF
23101/* end confdefs.h.  */
23102
23103#include <features.h>
23104#ifdef __GNU_LIBRARY__
23105 #if (__GLIBC__ >= 2)
23106  Lucky GNU user
23107 #endif
23108#endif
23109
23110_ACEOF
23111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23112  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
23113  ac_cv_gnu_library_2=yes
23114else
23115  ac_cv_gnu_library_2=no
23116fi
23117rm -f conftest*
23118
23119
23120
23121fi
23122{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
23123$as_echo "$ac_cv_gnu_library_2" >&6; }
23124
23125    GLIBC2="$ac_cv_gnu_library_2"
23126
23127
23128
23129
23130  CFLAG_VISIBILITY=
23131  HAVE_VISIBILITY=0
23132  if test -n "$GCC"; then
23133    { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
23134$as_echo_n "checking for simple visibility declarations... " >&6; }
23135    if test "${gl_cv_cc_visibility+set}" = set; then
23136  $as_echo_n "(cached) " >&6
23137else
23138
23139      gl_save_CFLAGS="$CFLAGS"
23140      CFLAGS="$CFLAGS -fvisibility=hidden"
23141      cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h.  */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h.  */
23147extern __attribute__((__visibility__("hidden"))) int hiddenvar;
23148         extern __attribute__((__visibility__("default"))) int exportedvar;
23149         extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
23150         extern __attribute__((__visibility__("default"))) int exportedfunc (void);
23151int
23152main ()
23153{
23154
23155  ;
23156  return 0;
23157}
23158_ACEOF
23159rm -f conftest.$ac_objext
23160if { (ac_try="$ac_compile"
23161case "(($ac_try" in
23162  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163  *) ac_try_echo=$ac_try;;
23164esac
23165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23166$as_echo "$ac_try_echo") >&5
23167  (eval "$ac_compile") 2>conftest.er1
23168  ac_status=$?
23169  grep -v '^ *+' conftest.er1 >conftest.err
23170  rm -f conftest.er1
23171  cat conftest.err >&5
23172  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173  (exit $ac_status); } && {
23174	 test -z "$ac_c_werror_flag" ||
23175	 test ! -s conftest.err
23176       } && test -s conftest.$ac_objext; then
23177  gl_cv_cc_visibility=yes
23178else
23179  $as_echo "$as_me: failed program was:" >&5
23180sed 's/^/| /' conftest.$ac_ext >&5
23181
23182	gl_cv_cc_visibility=no
23183fi
23184
23185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186      CFLAGS="$gl_save_CFLAGS"
23187fi
23188
23189    { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
23190$as_echo "$gl_cv_cc_visibility" >&6; }
23191    if test $gl_cv_cc_visibility = yes; then
23192      CFLAG_VISIBILITY="-fvisibility=hidden"
23193      HAVE_VISIBILITY=1
23194    fi
23195  fi
23196
23197
23198
23199cat >>confdefs.h <<_ACEOF
23200#define HAVE_VISIBILITY $HAVE_VISIBILITY
23201_ACEOF
23202
23203
23204{ $as_echo "$as_me:$LINENO: checking for inline" >&5
23205$as_echo_n "checking for inline... " >&6; }
23206if test "${ac_cv_c_inline+set}" = set; then
23207  $as_echo_n "(cached) " >&6
23208else
23209  ac_cv_c_inline=no
23210for ac_kw in inline __inline__ __inline; do
23211  cat >conftest.$ac_ext <<_ACEOF
23212/* confdefs.h.  */
23213_ACEOF
23214cat confdefs.h >>conftest.$ac_ext
23215cat >>conftest.$ac_ext <<_ACEOF
23216/* end confdefs.h.  */
23217#ifndef __cplusplus
23218typedef int foo_t;
23219static $ac_kw foo_t static_foo () {return 0; }
23220$ac_kw foo_t foo () {return 0; }
23221#endif
23222
23223_ACEOF
23224rm -f conftest.$ac_objext
23225if { (ac_try="$ac_compile"
23226case "(($ac_try" in
23227  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23228  *) ac_try_echo=$ac_try;;
23229esac
23230eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23231$as_echo "$ac_try_echo") >&5
23232  (eval "$ac_compile") 2>conftest.er1
23233  ac_status=$?
23234  grep -v '^ *+' conftest.er1 >conftest.err
23235  rm -f conftest.er1
23236  cat conftest.err >&5
23237  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238  (exit $ac_status); } && {
23239	 test -z "$ac_c_werror_flag" ||
23240	 test ! -s conftest.err
23241       } && test -s conftest.$ac_objext; then
23242  ac_cv_c_inline=$ac_kw
23243else
23244  $as_echo "$as_me: failed program was:" >&5
23245sed 's/^/| /' conftest.$ac_ext >&5
23246
23247
23248fi
23249
23250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23251  test "$ac_cv_c_inline" != no && break
23252done
23253
23254fi
23255{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23256$as_echo "$ac_cv_c_inline" >&6; }
23257
23258
23259case $ac_cv_c_inline in
23260  inline | yes) ;;
23261  *)
23262    case $ac_cv_c_inline in
23263      no) ac_val=;;
23264      *) ac_val=$ac_cv_c_inline;;
23265    esac
23266    cat >>confdefs.h <<_ACEOF
23267#ifndef __cplusplus
23268#define inline $ac_val
23269#endif
23270_ACEOF
23271    ;;
23272esac
23273
23274{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
23275$as_echo_n "checking for size_t... " >&6; }
23276if test "${ac_cv_type_size_t+set}" = set; then
23277  $as_echo_n "(cached) " >&6
23278else
23279  ac_cv_type_size_t=no
23280cat >conftest.$ac_ext <<_ACEOF
23281/* confdefs.h.  */
23282_ACEOF
23283cat confdefs.h >>conftest.$ac_ext
23284cat >>conftest.$ac_ext <<_ACEOF
23285/* end confdefs.h.  */
23286$ac_includes_default
23287int
23288main ()
23289{
23290if (sizeof (size_t))
23291       return 0;
23292  ;
23293  return 0;
23294}
23295_ACEOF
23296rm -f conftest.$ac_objext
23297if { (ac_try="$ac_compile"
23298case "(($ac_try" in
23299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300  *) ac_try_echo=$ac_try;;
23301esac
23302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23303$as_echo "$ac_try_echo") >&5
23304  (eval "$ac_compile") 2>conftest.er1
23305  ac_status=$?
23306  grep -v '^ *+' conftest.er1 >conftest.err
23307  rm -f conftest.er1
23308  cat conftest.err >&5
23309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310  (exit $ac_status); } && {
23311	 test -z "$ac_c_werror_flag" ||
23312	 test ! -s conftest.err
23313       } && test -s conftest.$ac_objext; then
23314  cat >conftest.$ac_ext <<_ACEOF
23315/* confdefs.h.  */
23316_ACEOF
23317cat confdefs.h >>conftest.$ac_ext
23318cat >>conftest.$ac_ext <<_ACEOF
23319/* end confdefs.h.  */
23320$ac_includes_default
23321int
23322main ()
23323{
23324if (sizeof ((size_t)))
23325	  return 0;
23326  ;
23327  return 0;
23328}
23329_ACEOF
23330rm -f conftest.$ac_objext
23331if { (ac_try="$ac_compile"
23332case "(($ac_try" in
23333  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334  *) ac_try_echo=$ac_try;;
23335esac
23336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23337$as_echo "$ac_try_echo") >&5
23338  (eval "$ac_compile") 2>conftest.er1
23339  ac_status=$?
23340  grep -v '^ *+' conftest.er1 >conftest.err
23341  rm -f conftest.er1
23342  cat conftest.err >&5
23343  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344  (exit $ac_status); } && {
23345	 test -z "$ac_c_werror_flag" ||
23346	 test ! -s conftest.err
23347       } && test -s conftest.$ac_objext; then
23348  :
23349else
23350  $as_echo "$as_me: failed program was:" >&5
23351sed 's/^/| /' conftest.$ac_ext >&5
23352
23353	ac_cv_type_size_t=yes
23354fi
23355
23356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23357else
23358  $as_echo "$as_me: failed program was:" >&5
23359sed 's/^/| /' conftest.$ac_ext >&5
23360
23361
23362fi
23363
23364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365fi
23366{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23367$as_echo "$ac_cv_type_size_t" >&6; }
23368if test "x$ac_cv_type_size_t" = x""yes; then
23369  :
23370else
23371
23372cat >>confdefs.h <<_ACEOF
23373#define size_t unsigned int
23374_ACEOF
23375
23376fi
23377
23378
23379  { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
23380$as_echo_n "checking for stdint.h... " >&6; }
23381if test "${gl_cv_header_stdint_h+set}" = set; then
23382  $as_echo_n "(cached) " >&6
23383else
23384  cat >conftest.$ac_ext <<_ACEOF
23385/* confdefs.h.  */
23386_ACEOF
23387cat confdefs.h >>conftest.$ac_ext
23388cat >>conftest.$ac_ext <<_ACEOF
23389/* end confdefs.h.  */
23390#include <sys/types.h>
23391#include <stdint.h>
23392int
23393main ()
23394{
23395uintmax_t i = (uintmax_t) -1; return !i;
23396  ;
23397  return 0;
23398}
23399_ACEOF
23400rm -f conftest.$ac_objext
23401if { (ac_try="$ac_compile"
23402case "(($ac_try" in
23403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23404  *) ac_try_echo=$ac_try;;
23405esac
23406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23407$as_echo "$ac_try_echo") >&5
23408  (eval "$ac_compile") 2>conftest.er1
23409  ac_status=$?
23410  grep -v '^ *+' conftest.er1 >conftest.err
23411  rm -f conftest.er1
23412  cat conftest.err >&5
23413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414  (exit $ac_status); } && {
23415	 test -z "$ac_c_werror_flag" ||
23416	 test ! -s conftest.err
23417       } && test -s conftest.$ac_objext; then
23418  gl_cv_header_stdint_h=yes
23419else
23420  $as_echo "$as_me: failed program was:" >&5
23421sed 's/^/| /' conftest.$ac_ext >&5
23422
23423	gl_cv_header_stdint_h=no
23424fi
23425
23426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427fi
23428{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
23429$as_echo "$gl_cv_header_stdint_h" >&6; }
23430  if test $gl_cv_header_stdint_h = yes; then
23431
23432cat >>confdefs.h <<_ACEOF
23433#define HAVE_STDINT_H_WITH_UINTMAX 1
23434_ACEOF
23435
23436  fi
23437
23438# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23439# for constant arguments.  Useless!
23440{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
23441$as_echo_n "checking for working alloca.h... " >&6; }
23442if test "${ac_cv_working_alloca_h+set}" = set; then
23443  $as_echo_n "(cached) " >&6
23444else
23445  cat >conftest.$ac_ext <<_ACEOF
23446/* confdefs.h.  */
23447_ACEOF
23448cat confdefs.h >>conftest.$ac_ext
23449cat >>conftest.$ac_ext <<_ACEOF
23450/* end confdefs.h.  */
23451#include <alloca.h>
23452int
23453main ()
23454{
23455char *p = (char *) alloca (2 * sizeof (int));
23456			  if (p) return 0;
23457  ;
23458  return 0;
23459}
23460_ACEOF
23461rm -f conftest.$ac_objext conftest$ac_exeext
23462if { (ac_try="$ac_link"
23463case "(($ac_try" in
23464  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465  *) ac_try_echo=$ac_try;;
23466esac
23467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23468$as_echo "$ac_try_echo") >&5
23469  (eval "$ac_link") 2>conftest.er1
23470  ac_status=$?
23471  grep -v '^ *+' conftest.er1 >conftest.err
23472  rm -f conftest.er1
23473  cat conftest.err >&5
23474  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475  (exit $ac_status); } && {
23476	 test -z "$ac_c_werror_flag" ||
23477	 test ! -s conftest.err
23478       } && test -s conftest$ac_exeext && {
23479	 test "$cross_compiling" = yes ||
23480	 $as_test_x conftest$ac_exeext
23481       }; then
23482  ac_cv_working_alloca_h=yes
23483else
23484  $as_echo "$as_me: failed program was:" >&5
23485sed 's/^/| /' conftest.$ac_ext >&5
23486
23487	ac_cv_working_alloca_h=no
23488fi
23489
23490rm -rf conftest.dSYM
23491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23492      conftest$ac_exeext conftest.$ac_ext
23493fi
23494{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23495$as_echo "$ac_cv_working_alloca_h" >&6; }
23496if test $ac_cv_working_alloca_h = yes; then
23497
23498cat >>confdefs.h <<\_ACEOF
23499#define HAVE_ALLOCA_H 1
23500_ACEOF
23501
23502fi
23503
23504{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
23505$as_echo_n "checking for alloca... " >&6; }
23506if test "${ac_cv_func_alloca_works+set}" = set; then
23507  $as_echo_n "(cached) " >&6
23508else
23509  cat >conftest.$ac_ext <<_ACEOF
23510/* confdefs.h.  */
23511_ACEOF
23512cat confdefs.h >>conftest.$ac_ext
23513cat >>conftest.$ac_ext <<_ACEOF
23514/* end confdefs.h.  */
23515#ifdef __GNUC__
23516# define alloca __builtin_alloca
23517#else
23518# ifdef _MSC_VER
23519#  include <malloc.h>
23520#  define alloca _alloca
23521# else
23522#  ifdef HAVE_ALLOCA_H
23523#   include <alloca.h>
23524#  else
23525#   ifdef _AIX
23526 #pragma alloca
23527#   else
23528#    ifndef alloca /* predefined by HP cc +Olibcalls */
23529char *alloca ();
23530#    endif
23531#   endif
23532#  endif
23533# endif
23534#endif
23535
23536int
23537main ()
23538{
23539char *p = (char *) alloca (1);
23540				    if (p) return 0;
23541  ;
23542  return 0;
23543}
23544_ACEOF
23545rm -f conftest.$ac_objext conftest$ac_exeext
23546if { (ac_try="$ac_link"
23547case "(($ac_try" in
23548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23549  *) ac_try_echo=$ac_try;;
23550esac
23551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23552$as_echo "$ac_try_echo") >&5
23553  (eval "$ac_link") 2>conftest.er1
23554  ac_status=$?
23555  grep -v '^ *+' conftest.er1 >conftest.err
23556  rm -f conftest.er1
23557  cat conftest.err >&5
23558  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559  (exit $ac_status); } && {
23560	 test -z "$ac_c_werror_flag" ||
23561	 test ! -s conftest.err
23562       } && test -s conftest$ac_exeext && {
23563	 test "$cross_compiling" = yes ||
23564	 $as_test_x conftest$ac_exeext
23565       }; then
23566  ac_cv_func_alloca_works=yes
23567else
23568  $as_echo "$as_me: failed program was:" >&5
23569sed 's/^/| /' conftest.$ac_ext >&5
23570
23571	ac_cv_func_alloca_works=no
23572fi
23573
23574rm -rf conftest.dSYM
23575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23576      conftest$ac_exeext conftest.$ac_ext
23577fi
23578{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23579$as_echo "$ac_cv_func_alloca_works" >&6; }
23580
23581if test $ac_cv_func_alloca_works = yes; then
23582
23583cat >>confdefs.h <<\_ACEOF
23584#define HAVE_ALLOCA 1
23585_ACEOF
23586
23587else
23588  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23589# that cause trouble.  Some versions do not even contain alloca or
23590# contain a buggy version.  If you still want to use their alloca,
23591# use ar to extract alloca.o from them instead of compiling alloca.c.
23592
23593ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
23594
23595cat >>confdefs.h <<\_ACEOF
23596#define C_ALLOCA 1
23597_ACEOF
23598
23599
23600{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23601$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
23602if test "${ac_cv_os_cray+set}" = set; then
23603  $as_echo_n "(cached) " >&6
23604else
23605  cat >conftest.$ac_ext <<_ACEOF
23606/* confdefs.h.  */
23607_ACEOF
23608cat confdefs.h >>conftest.$ac_ext
23609cat >>conftest.$ac_ext <<_ACEOF
23610/* end confdefs.h.  */
23611#if defined CRAY && ! defined CRAY2
23612webecray
23613#else
23614wenotbecray
23615#endif
23616
23617_ACEOF
23618if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23619  $EGREP "webecray" >/dev/null 2>&1; then
23620  ac_cv_os_cray=yes
23621else
23622  ac_cv_os_cray=no
23623fi
23624rm -f conftest*
23625
23626fi
23627{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23628$as_echo "$ac_cv_os_cray" >&6; }
23629if test $ac_cv_os_cray = yes; then
23630  for ac_func in _getb67 GETB67 getb67; do
23631    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23632{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23633$as_echo_n "checking for $ac_func... " >&6; }
23634if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23635  $as_echo_n "(cached) " >&6
23636else
23637  cat >conftest.$ac_ext <<_ACEOF
23638/* confdefs.h.  */
23639_ACEOF
23640cat confdefs.h >>conftest.$ac_ext
23641cat >>conftest.$ac_ext <<_ACEOF
23642/* end confdefs.h.  */
23643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23644   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23645#define $ac_func innocuous_$ac_func
23646
23647/* System header to define __stub macros and hopefully few prototypes,
23648    which can conflict with char $ac_func (); below.
23649    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23650    <limits.h> exists even on freestanding compilers.  */
23651
23652#ifdef __STDC__
23653# include <limits.h>
23654#else
23655# include <assert.h>
23656#endif
23657
23658#undef $ac_func
23659
23660/* Override any GCC internal prototype to avoid an error.
23661   Use char because int might match the return type of a GCC
23662   builtin and then its argument prototype would still apply.  */
23663#ifdef __cplusplus
23664extern "C"
23665#endif
23666char $ac_func ();
23667/* The GNU C library defines this for functions which it implements
23668    to always fail with ENOSYS.  Some functions are actually named
23669    something starting with __ and the normal name is an alias.  */
23670#if defined __stub_$ac_func || defined __stub___$ac_func
23671choke me
23672#endif
23673
23674int
23675main ()
23676{
23677return $ac_func ();
23678  ;
23679  return 0;
23680}
23681_ACEOF
23682rm -f conftest.$ac_objext conftest$ac_exeext
23683if { (ac_try="$ac_link"
23684case "(($ac_try" in
23685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686  *) ac_try_echo=$ac_try;;
23687esac
23688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23689$as_echo "$ac_try_echo") >&5
23690  (eval "$ac_link") 2>conftest.er1
23691  ac_status=$?
23692  grep -v '^ *+' conftest.er1 >conftest.err
23693  rm -f conftest.er1
23694  cat conftest.err >&5
23695  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696  (exit $ac_status); } && {
23697	 test -z "$ac_c_werror_flag" ||
23698	 test ! -s conftest.err
23699       } && test -s conftest$ac_exeext && {
23700	 test "$cross_compiling" = yes ||
23701	 $as_test_x conftest$ac_exeext
23702       }; then
23703  eval "$as_ac_var=yes"
23704else
23705  $as_echo "$as_me: failed program was:" >&5
23706sed 's/^/| /' conftest.$ac_ext >&5
23707
23708	eval "$as_ac_var=no"
23709fi
23710
23711rm -rf conftest.dSYM
23712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23713      conftest$ac_exeext conftest.$ac_ext
23714fi
23715ac_res=`eval 'as_val=${'$as_ac_var'}
23716		 $as_echo "$as_val"'`
23717	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23718$as_echo "$ac_res" >&6; }
23719as_val=`eval 'as_val=${'$as_ac_var'}
23720		 $as_echo "$as_val"'`
23721   if test "x$as_val" = x""yes; then
23722
23723cat >>confdefs.h <<_ACEOF
23724#define CRAY_STACKSEG_END $ac_func
23725_ACEOF
23726
23727    break
23728fi
23729
23730  done
23731fi
23732
23733{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23734$as_echo_n "checking stack direction for C alloca... " >&6; }
23735if test "${ac_cv_c_stack_direction+set}" = set; then
23736  $as_echo_n "(cached) " >&6
23737else
23738  if test "$cross_compiling" = yes; then
23739  ac_cv_c_stack_direction=0
23740else
23741  cat >conftest.$ac_ext <<_ACEOF
23742/* confdefs.h.  */
23743_ACEOF
23744cat confdefs.h >>conftest.$ac_ext
23745cat >>conftest.$ac_ext <<_ACEOF
23746/* end confdefs.h.  */
23747$ac_includes_default
23748int
23749find_stack_direction ()
23750{
23751  static char *addr = 0;
23752  auto char dummy;
23753  if (addr == 0)
23754    {
23755      addr = &dummy;
23756      return find_stack_direction ();
23757    }
23758  else
23759    return (&dummy > addr) ? 1 : -1;
23760}
23761
23762int
23763main ()
23764{
23765  return find_stack_direction () < 0;
23766}
23767_ACEOF
23768rm -f conftest$ac_exeext
23769if { (ac_try="$ac_link"
23770case "(($ac_try" in
23771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23772  *) ac_try_echo=$ac_try;;
23773esac
23774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23775$as_echo "$ac_try_echo") >&5
23776  (eval "$ac_link") 2>&5
23777  ac_status=$?
23778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23779  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23780  { (case "(($ac_try" in
23781  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782  *) ac_try_echo=$ac_try;;
23783esac
23784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23785$as_echo "$ac_try_echo") >&5
23786  (eval "$ac_try") 2>&5
23787  ac_status=$?
23788  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789  (exit $ac_status); }; }; then
23790  ac_cv_c_stack_direction=1
23791else
23792  $as_echo "$as_me: program exited with status $ac_status" >&5
23793$as_echo "$as_me: failed program was:" >&5
23794sed 's/^/| /' conftest.$ac_ext >&5
23795
23796( exit $ac_status )
23797ac_cv_c_stack_direction=-1
23798fi
23799rm -rf conftest.dSYM
23800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23801fi
23802
23803
23804fi
23805{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23806$as_echo "$ac_cv_c_stack_direction" >&6; }
23807
23808cat >>confdefs.h <<_ACEOF
23809#define STACK_DIRECTION $ac_cv_c_stack_direction
23810_ACEOF
23811
23812
23813fi
23814
23815
23816
23817for ac_header in stdlib.h unistd.h
23818do
23819as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23821  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23822$as_echo_n "checking for $ac_header... " >&6; }
23823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23824  $as_echo_n "(cached) " >&6
23825fi
23826ac_res=`eval 'as_val=${'$as_ac_Header'}
23827		 $as_echo "$as_val"'`
23828	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23829$as_echo "$ac_res" >&6; }
23830else
23831  # Is the header compilable?
23832{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23833$as_echo_n "checking $ac_header usability... " >&6; }
23834cat >conftest.$ac_ext <<_ACEOF
23835/* confdefs.h.  */
23836_ACEOF
23837cat confdefs.h >>conftest.$ac_ext
23838cat >>conftest.$ac_ext <<_ACEOF
23839/* end confdefs.h.  */
23840$ac_includes_default
23841#include <$ac_header>
23842_ACEOF
23843rm -f conftest.$ac_objext
23844if { (ac_try="$ac_compile"
23845case "(($ac_try" in
23846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847  *) ac_try_echo=$ac_try;;
23848esac
23849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23850$as_echo "$ac_try_echo") >&5
23851  (eval "$ac_compile") 2>conftest.er1
23852  ac_status=$?
23853  grep -v '^ *+' conftest.er1 >conftest.err
23854  rm -f conftest.er1
23855  cat conftest.err >&5
23856  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857  (exit $ac_status); } && {
23858	 test -z "$ac_c_werror_flag" ||
23859	 test ! -s conftest.err
23860       } && test -s conftest.$ac_objext; then
23861  ac_header_compiler=yes
23862else
23863  $as_echo "$as_me: failed program was:" >&5
23864sed 's/^/| /' conftest.$ac_ext >&5
23865
23866	ac_header_compiler=no
23867fi
23868
23869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23870{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23871$as_echo "$ac_header_compiler" >&6; }
23872
23873# Is the header present?
23874{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23875$as_echo_n "checking $ac_header presence... " >&6; }
23876cat >conftest.$ac_ext <<_ACEOF
23877/* confdefs.h.  */
23878_ACEOF
23879cat confdefs.h >>conftest.$ac_ext
23880cat >>conftest.$ac_ext <<_ACEOF
23881/* end confdefs.h.  */
23882#include <$ac_header>
23883_ACEOF
23884if { (ac_try="$ac_cpp conftest.$ac_ext"
23885case "(($ac_try" in
23886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887  *) ac_try_echo=$ac_try;;
23888esac
23889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23890$as_echo "$ac_try_echo") >&5
23891  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23892  ac_status=$?
23893  grep -v '^ *+' conftest.er1 >conftest.err
23894  rm -f conftest.er1
23895  cat conftest.err >&5
23896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897  (exit $ac_status); } >/dev/null && {
23898	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23899	 test ! -s conftest.err
23900       }; then
23901  ac_header_preproc=yes
23902else
23903  $as_echo "$as_me: failed program was:" >&5
23904sed 's/^/| /' conftest.$ac_ext >&5
23905
23906  ac_header_preproc=no
23907fi
23908
23909rm -f conftest.err conftest.$ac_ext
23910{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23911$as_echo "$ac_header_preproc" >&6; }
23912
23913# So?  What about this header?
23914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23915  yes:no: )
23916    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23917$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23918    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23919$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23920    ac_header_preproc=yes
23921    ;;
23922  no:yes:* )
23923    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23924$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23925    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23926$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23927    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23928$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23929    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23930$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23931    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23932$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23933    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23934$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23935
23936    ;;
23937esac
23938{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23939$as_echo_n "checking for $ac_header... " >&6; }
23940if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23941  $as_echo_n "(cached) " >&6
23942else
23943  eval "$as_ac_Header=\$ac_header_preproc"
23944fi
23945ac_res=`eval 'as_val=${'$as_ac_Header'}
23946		 $as_echo "$as_val"'`
23947	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23948$as_echo "$ac_res" >&6; }
23949
23950fi
23951as_val=`eval 'as_val=${'$as_ac_Header'}
23952		 $as_echo "$as_val"'`
23953   if test "x$as_val" = x""yes; then
23954  cat >>confdefs.h <<_ACEOF
23955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23956_ACEOF
23957
23958fi
23959
23960done
23961
23962
23963for ac_func in getpagesize
23964do
23965as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23966{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23967$as_echo_n "checking for $ac_func... " >&6; }
23968if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23969  $as_echo_n "(cached) " >&6
23970else
23971  cat >conftest.$ac_ext <<_ACEOF
23972/* confdefs.h.  */
23973_ACEOF
23974cat confdefs.h >>conftest.$ac_ext
23975cat >>conftest.$ac_ext <<_ACEOF
23976/* end confdefs.h.  */
23977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23978   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23979#define $ac_func innocuous_$ac_func
23980
23981/* System header to define __stub macros and hopefully few prototypes,
23982    which can conflict with char $ac_func (); below.
23983    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23984    <limits.h> exists even on freestanding compilers.  */
23985
23986#ifdef __STDC__
23987# include <limits.h>
23988#else
23989# include <assert.h>
23990#endif
23991
23992#undef $ac_func
23993
23994/* Override any GCC internal prototype to avoid an error.
23995   Use char because int might match the return type of a GCC
23996   builtin and then its argument prototype would still apply.  */
23997#ifdef __cplusplus
23998extern "C"
23999#endif
24000char $ac_func ();
24001/* The GNU C library defines this for functions which it implements
24002    to always fail with ENOSYS.  Some functions are actually named
24003    something starting with __ and the normal name is an alias.  */
24004#if defined __stub_$ac_func || defined __stub___$ac_func
24005choke me
24006#endif
24007
24008int
24009main ()
24010{
24011return $ac_func ();
24012  ;
24013  return 0;
24014}
24015_ACEOF
24016rm -f conftest.$ac_objext conftest$ac_exeext
24017if { (ac_try="$ac_link"
24018case "(($ac_try" in
24019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020  *) ac_try_echo=$ac_try;;
24021esac
24022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24023$as_echo "$ac_try_echo") >&5
24024  (eval "$ac_link") 2>conftest.er1
24025  ac_status=$?
24026  grep -v '^ *+' conftest.er1 >conftest.err
24027  rm -f conftest.er1
24028  cat conftest.err >&5
24029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030  (exit $ac_status); } && {
24031	 test -z "$ac_c_werror_flag" ||
24032	 test ! -s conftest.err
24033       } && test -s conftest$ac_exeext && {
24034	 test "$cross_compiling" = yes ||
24035	 $as_test_x conftest$ac_exeext
24036       }; then
24037  eval "$as_ac_var=yes"
24038else
24039  $as_echo "$as_me: failed program was:" >&5
24040sed 's/^/| /' conftest.$ac_ext >&5
24041
24042	eval "$as_ac_var=no"
24043fi
24044
24045rm -rf conftest.dSYM
24046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24047      conftest$ac_exeext conftest.$ac_ext
24048fi
24049ac_res=`eval 'as_val=${'$as_ac_var'}
24050		 $as_echo "$as_val"'`
24051	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24052$as_echo "$ac_res" >&6; }
24053as_val=`eval 'as_val=${'$as_ac_var'}
24054		 $as_echo "$as_val"'`
24055   if test "x$as_val" = x""yes; then
24056  cat >>confdefs.h <<_ACEOF
24057#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24058_ACEOF
24059
24060fi
24061done
24062
24063{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
24064$as_echo_n "checking for working mmap... " >&6; }
24065if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
24066  $as_echo_n "(cached) " >&6
24067else
24068  if test "$cross_compiling" = yes; then
24069  ac_cv_func_mmap_fixed_mapped=no
24070else
24071  cat >conftest.$ac_ext <<_ACEOF
24072/* confdefs.h.  */
24073_ACEOF
24074cat confdefs.h >>conftest.$ac_ext
24075cat >>conftest.$ac_ext <<_ACEOF
24076/* end confdefs.h.  */
24077$ac_includes_default
24078/* malloc might have been renamed as rpl_malloc. */
24079#undef malloc
24080
24081/* Thanks to Mike Haertel and Jim Avera for this test.
24082   Here is a matrix of mmap possibilities:
24083	mmap private not fixed
24084	mmap private fixed at somewhere currently unmapped
24085	mmap private fixed at somewhere already mapped
24086	mmap shared not fixed
24087	mmap shared fixed at somewhere currently unmapped
24088	mmap shared fixed at somewhere already mapped
24089   For private mappings, we should verify that changes cannot be read()
24090   back from the file, nor mmap's back from the file at a different
24091   address.  (There have been systems where private was not correctly
24092   implemented like the infamous i386 svr4.0, and systems where the
24093   VM page cache was not coherent with the file system buffer cache
24094   like early versions of FreeBSD and possibly contemporary NetBSD.)
24095   For shared mappings, we should conversely verify that changes get
24096   propagated back to all the places they're supposed to be.
24097
24098   Grep wants private fixed already mapped.
24099   The main things grep needs to know about mmap are:
24100   * does it exist and is it safe to write into the mmap'd area
24101   * how to use it (BSD variants)  */
24102
24103#include <fcntl.h>
24104#include <sys/mman.h>
24105
24106#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24107char *malloc ();
24108#endif
24109
24110/* This mess was copied from the GNU getpagesize.h.  */
24111#ifndef HAVE_GETPAGESIZE
24112/* Assume that all systems that can run configure have sys/param.h.  */
24113# ifndef HAVE_SYS_PARAM_H
24114#  define HAVE_SYS_PARAM_H 1
24115# endif
24116
24117# ifdef _SC_PAGESIZE
24118#  define getpagesize() sysconf(_SC_PAGESIZE)
24119# else /* no _SC_PAGESIZE */
24120#  ifdef HAVE_SYS_PARAM_H
24121#   include <sys/param.h>
24122#   ifdef EXEC_PAGESIZE
24123#    define getpagesize() EXEC_PAGESIZE
24124#   else /* no EXEC_PAGESIZE */
24125#    ifdef NBPG
24126#     define getpagesize() NBPG * CLSIZE
24127#     ifndef CLSIZE
24128#      define CLSIZE 1
24129#     endif /* no CLSIZE */
24130#    else /* no NBPG */
24131#     ifdef NBPC
24132#      define getpagesize() NBPC
24133#     else /* no NBPC */
24134#      ifdef PAGESIZE
24135#       define getpagesize() PAGESIZE
24136#      endif /* PAGESIZE */
24137#     endif /* no NBPC */
24138#    endif /* no NBPG */
24139#   endif /* no EXEC_PAGESIZE */
24140#  else /* no HAVE_SYS_PARAM_H */
24141#   define getpagesize() 8192	/* punt totally */
24142#  endif /* no HAVE_SYS_PARAM_H */
24143# endif /* no _SC_PAGESIZE */
24144
24145#endif /* no HAVE_GETPAGESIZE */
24146
24147int
24148main ()
24149{
24150  char *data, *data2, *data3;
24151  int i, pagesize;
24152  int fd;
24153
24154  pagesize = getpagesize ();
24155
24156  /* First, make a file with some known garbage in it. */
24157  data = (char *) malloc (pagesize);
24158  if (!data)
24159    return 1;
24160  for (i = 0; i < pagesize; ++i)
24161    *(data + i) = rand ();
24162  umask (0);
24163  fd = creat ("conftest.mmap", 0600);
24164  if (fd < 0)
24165    return 1;
24166  if (write (fd, data, pagesize) != pagesize)
24167    return 1;
24168  close (fd);
24169
24170  /* Next, try to mmap the file at a fixed address which already has
24171     something else allocated at it.  If we can, also make sure that
24172     we see the same garbage.  */
24173  fd = open ("conftest.mmap", O_RDWR);
24174  if (fd < 0)
24175    return 1;
24176  data2 = (char *) malloc (2 * pagesize);
24177  if (!data2)
24178    return 1;
24179  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
24180  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24181		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
24182    return 1;
24183  for (i = 0; i < pagesize; ++i)
24184    if (*(data + i) != *(data2 + i))
24185      return 1;
24186
24187  /* Finally, make sure that changes to the mapped area do not
24188     percolate back to the file as seen by read().  (This is a bug on
24189     some variants of i386 svr4.0.)  */
24190  for (i = 0; i < pagesize; ++i)
24191    *(data2 + i) = *(data2 + i) + 1;
24192  data3 = (char *) malloc (pagesize);
24193  if (!data3)
24194    return 1;
24195  if (read (fd, data3, pagesize) != pagesize)
24196    return 1;
24197  for (i = 0; i < pagesize; ++i)
24198    if (*(data + i) != *(data3 + i))
24199      return 1;
24200  close (fd);
24201  return 0;
24202}
24203_ACEOF
24204rm -f conftest$ac_exeext
24205if { (ac_try="$ac_link"
24206case "(($ac_try" in
24207  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24208  *) ac_try_echo=$ac_try;;
24209esac
24210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24211$as_echo "$ac_try_echo") >&5
24212  (eval "$ac_link") 2>&5
24213  ac_status=$?
24214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24216  { (case "(($ac_try" in
24217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24218  *) ac_try_echo=$ac_try;;
24219esac
24220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24221$as_echo "$ac_try_echo") >&5
24222  (eval "$ac_try") 2>&5
24223  ac_status=$?
24224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225  (exit $ac_status); }; }; then
24226  ac_cv_func_mmap_fixed_mapped=yes
24227else
24228  $as_echo "$as_me: program exited with status $ac_status" >&5
24229$as_echo "$as_me: failed program was:" >&5
24230sed 's/^/| /' conftest.$ac_ext >&5
24231
24232( exit $ac_status )
24233ac_cv_func_mmap_fixed_mapped=no
24234fi
24235rm -rf conftest.dSYM
24236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24237fi
24238
24239
24240fi
24241{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
24242$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24243if test $ac_cv_func_mmap_fixed_mapped = yes; then
24244
24245cat >>confdefs.h <<\_ACEOF
24246#define HAVE_MMAP 1
24247_ACEOF
24248
24249fi
24250rm -f conftest.mmap
24251
24252
24253
24254  { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
24255$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
24256if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
24257  $as_echo_n "(cached) " >&6
24258else
24259
24260      gt_cv_int_divbyzero_sigfpe=
24261      case "$host_os" in
24262        macos* | darwin[6-9]* | darwin[1-9][0-9]*)
24263          # On MacOS X 10.2 or newer, just assume the same as when cross-
24264          # compiling. If we were to perform the real test, 1 Crash Report
24265          # dialog window would pop up.
24266          case "$host_cpu" in
24267            i[34567]86 | x86_64)
24268              gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
24269          esac
24270          ;;
24271      esac
24272      if test -z "$gt_cv_int_divbyzero_sigfpe"; then
24273        if test "$cross_compiling" = yes; then
24274
24275            # Guess based on the CPU.
24276            case "$host_cpu" in
24277              alpha* | i[34567]86 | x86_64 | m68k | s390*)
24278                gt_cv_int_divbyzero_sigfpe="guessing yes";;
24279              *)
24280                gt_cv_int_divbyzero_sigfpe="guessing no";;
24281            esac
24282
24283else
24284  cat >conftest.$ac_ext <<_ACEOF
24285/* confdefs.h.  */
24286_ACEOF
24287cat confdefs.h >>conftest.$ac_ext
24288cat >>conftest.$ac_ext <<_ACEOF
24289/* end confdefs.h.  */
24290
24291#include <stdlib.h>
24292#include <signal.h>
24293
24294static void
24295sigfpe_handler (int sig)
24296{
24297  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
24298  exit (sig != SIGFPE);
24299}
24300
24301int x = 1;
24302int y = 0;
24303int z;
24304int nan;
24305
24306int main ()
24307{
24308  signal (SIGFPE, sigfpe_handler);
24309/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
24310#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
24311  signal (SIGTRAP, sigfpe_handler);
24312#endif
24313/* Linux/SPARC yields signal SIGILL.  */
24314#if defined (__sparc__) && defined (__linux__)
24315  signal (SIGILL, sigfpe_handler);
24316#endif
24317
24318  z = x / y;
24319  nan = y / y;
24320  exit (1);
24321}
24322
24323_ACEOF
24324rm -f conftest$ac_exeext
24325if { (ac_try="$ac_link"
24326case "(($ac_try" in
24327  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328  *) ac_try_echo=$ac_try;;
24329esac
24330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24331$as_echo "$ac_try_echo") >&5
24332  (eval "$ac_link") 2>&5
24333  ac_status=$?
24334  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24336  { (case "(($ac_try" in
24337  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24338  *) ac_try_echo=$ac_try;;
24339esac
24340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24341$as_echo "$ac_try_echo") >&5
24342  (eval "$ac_try") 2>&5
24343  ac_status=$?
24344  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345  (exit $ac_status); }; }; then
24346  gt_cv_int_divbyzero_sigfpe=yes
24347else
24348  $as_echo "$as_me: program exited with status $ac_status" >&5
24349$as_echo "$as_me: failed program was:" >&5
24350sed 's/^/| /' conftest.$ac_ext >&5
24351
24352( exit $ac_status )
24353gt_cv_int_divbyzero_sigfpe=no
24354fi
24355rm -rf conftest.dSYM
24356rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24357fi
24358
24359
24360      fi
24361
24362fi
24363{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
24364$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
24365  case "$gt_cv_int_divbyzero_sigfpe" in
24366    *yes) value=1;;
24367    *) value=0;;
24368  esac
24369
24370cat >>confdefs.h <<_ACEOF
24371#define INTDIV0_RAISES_SIGFPE $value
24372_ACEOF
24373
24374
24375
24376  { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
24377$as_echo_n "checking for inttypes.h... " >&6; }
24378if test "${gl_cv_header_inttypes_h+set}" = set; then
24379  $as_echo_n "(cached) " >&6
24380else
24381  cat >conftest.$ac_ext <<_ACEOF
24382/* confdefs.h.  */
24383_ACEOF
24384cat confdefs.h >>conftest.$ac_ext
24385cat >>conftest.$ac_ext <<_ACEOF
24386/* end confdefs.h.  */
24387#include <sys/types.h>
24388#include <inttypes.h>
24389int
24390main ()
24391{
24392uintmax_t i = (uintmax_t) -1; return !i;
24393  ;
24394  return 0;
24395}
24396_ACEOF
24397rm -f conftest.$ac_objext
24398if { (ac_try="$ac_compile"
24399case "(($ac_try" in
24400  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401  *) ac_try_echo=$ac_try;;
24402esac
24403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24404$as_echo "$ac_try_echo") >&5
24405  (eval "$ac_compile") 2>conftest.er1
24406  ac_status=$?
24407  grep -v '^ *+' conftest.er1 >conftest.err
24408  rm -f conftest.er1
24409  cat conftest.err >&5
24410  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411  (exit $ac_status); } && {
24412	 test -z "$ac_c_werror_flag" ||
24413	 test ! -s conftest.err
24414       } && test -s conftest.$ac_objext; then
24415  gl_cv_header_inttypes_h=yes
24416else
24417  $as_echo "$as_me: failed program was:" >&5
24418sed 's/^/| /' conftest.$ac_ext >&5
24419
24420	gl_cv_header_inttypes_h=no
24421fi
24422
24423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24424fi
24425{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
24426$as_echo "$gl_cv_header_inttypes_h" >&6; }
24427  if test $gl_cv_header_inttypes_h = yes; then
24428
24429cat >>confdefs.h <<_ACEOF
24430#define HAVE_INTTYPES_H_WITH_UINTMAX 1
24431_ACEOF
24432
24433  fi
24434
24435
24436  { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
24437$as_echo_n "checking for unsigned long long int... " >&6; }
24438if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
24439  $as_echo_n "(cached) " >&6
24440else
24441  cat >conftest.$ac_ext <<_ACEOF
24442
24443  /* confdefs.h.  */
24444_ACEOF
24445cat confdefs.h >>conftest.$ac_ext
24446cat >>conftest.$ac_ext <<_ACEOF
24447/* end confdefs.h.  */
24448/* Test preprocessor.  */
24449      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24450        error in preprocessor;
24451      #endif
24452      #if ! (18446744073709551615ULL <= -1ull)
24453        error in preprocessor;
24454      #endif
24455      /* Test literals.  */
24456      long long int ll = 9223372036854775807ll;
24457      long long int nll = -9223372036854775807LL;
24458      unsigned long long int ull = 18446744073709551615ULL;
24459      /* Test constant expressions.   */
24460      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24461		     ? 1 : -1)];
24462      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
24463		     ? 1 : -1)];
24464      int i = 63;
24465int
24466main ()
24467{
24468/* Test availability of runtime routines for shift and division.  */
24469      long long int llmax = 9223372036854775807ll;
24470      unsigned long long int ullmax = 18446744073709551615ull;
24471      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
24472	      | (llmax / ll) | (llmax % ll)
24473	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24474	      | (ullmax / ull) | (ullmax % ull));
24475  ;
24476  return 0;
24477}
24478
24479_ACEOF
24480rm -f conftest.$ac_objext conftest$ac_exeext
24481if { (ac_try="$ac_link"
24482case "(($ac_try" in
24483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484  *) ac_try_echo=$ac_try;;
24485esac
24486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24487$as_echo "$ac_try_echo") >&5
24488  (eval "$ac_link") 2>conftest.er1
24489  ac_status=$?
24490  grep -v '^ *+' conftest.er1 >conftest.err
24491  rm -f conftest.er1
24492  cat conftest.err >&5
24493  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494  (exit $ac_status); } && {
24495	 test -z "$ac_c_werror_flag" ||
24496	 test ! -s conftest.err
24497       } && test -s conftest$ac_exeext && {
24498	 test "$cross_compiling" = yes ||
24499	 $as_test_x conftest$ac_exeext
24500       }; then
24501  ac_cv_type_unsigned_long_long_int=yes
24502else
24503  $as_echo "$as_me: failed program was:" >&5
24504sed 's/^/| /' conftest.$ac_ext >&5
24505
24506	ac_cv_type_unsigned_long_long_int=no
24507fi
24508
24509rm -rf conftest.dSYM
24510rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24511      conftest$ac_exeext conftest.$ac_ext
24512fi
24513{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
24514$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24515  if test $ac_cv_type_unsigned_long_long_int = yes; then
24516
24517cat >>confdefs.h <<\_ACEOF
24518#define HAVE_UNSIGNED_LONG_LONG_INT 1
24519_ACEOF
24520
24521  fi
24522
24523
24524
24525
24526  if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
24527
24528    test $ac_cv_type_unsigned_long_long_int = yes \
24529      && ac_type='unsigned long long' \
24530      || ac_type='unsigned long'
24531
24532cat >>confdefs.h <<_ACEOF
24533#define uintmax_t $ac_type
24534_ACEOF
24535
24536  else
24537
24538cat >>confdefs.h <<\_ACEOF
24539#define HAVE_UINTMAX_T 1
24540_ACEOF
24541
24542  fi
24543
24544
24545
24546for ac_header in inttypes.h
24547do
24548as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24549if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24550  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24551$as_echo_n "checking for $ac_header... " >&6; }
24552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24553  $as_echo_n "(cached) " >&6
24554fi
24555ac_res=`eval 'as_val=${'$as_ac_Header'}
24556		 $as_echo "$as_val"'`
24557	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24558$as_echo "$ac_res" >&6; }
24559else
24560  # Is the header compilable?
24561{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24562$as_echo_n "checking $ac_header usability... " >&6; }
24563cat >conftest.$ac_ext <<_ACEOF
24564/* confdefs.h.  */
24565_ACEOF
24566cat confdefs.h >>conftest.$ac_ext
24567cat >>conftest.$ac_ext <<_ACEOF
24568/* end confdefs.h.  */
24569$ac_includes_default
24570#include <$ac_header>
24571_ACEOF
24572rm -f conftest.$ac_objext
24573if { (ac_try="$ac_compile"
24574case "(($ac_try" in
24575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24576  *) ac_try_echo=$ac_try;;
24577esac
24578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24579$as_echo "$ac_try_echo") >&5
24580  (eval "$ac_compile") 2>conftest.er1
24581  ac_status=$?
24582  grep -v '^ *+' conftest.er1 >conftest.err
24583  rm -f conftest.er1
24584  cat conftest.err >&5
24585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586  (exit $ac_status); } && {
24587	 test -z "$ac_c_werror_flag" ||
24588	 test ! -s conftest.err
24589       } && test -s conftest.$ac_objext; then
24590  ac_header_compiler=yes
24591else
24592  $as_echo "$as_me: failed program was:" >&5
24593sed 's/^/| /' conftest.$ac_ext >&5
24594
24595	ac_header_compiler=no
24596fi
24597
24598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24599{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24600$as_echo "$ac_header_compiler" >&6; }
24601
24602# Is the header present?
24603{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24604$as_echo_n "checking $ac_header presence... " >&6; }
24605cat >conftest.$ac_ext <<_ACEOF
24606/* confdefs.h.  */
24607_ACEOF
24608cat confdefs.h >>conftest.$ac_ext
24609cat >>conftest.$ac_ext <<_ACEOF
24610/* end confdefs.h.  */
24611#include <$ac_header>
24612_ACEOF
24613if { (ac_try="$ac_cpp conftest.$ac_ext"
24614case "(($ac_try" in
24615  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24616  *) ac_try_echo=$ac_try;;
24617esac
24618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24619$as_echo "$ac_try_echo") >&5
24620  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24621  ac_status=$?
24622  grep -v '^ *+' conftest.er1 >conftest.err
24623  rm -f conftest.er1
24624  cat conftest.err >&5
24625  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626  (exit $ac_status); } >/dev/null && {
24627	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24628	 test ! -s conftest.err
24629       }; then
24630  ac_header_preproc=yes
24631else
24632  $as_echo "$as_me: failed program was:" >&5
24633sed 's/^/| /' conftest.$ac_ext >&5
24634
24635  ac_header_preproc=no
24636fi
24637
24638rm -f conftest.err conftest.$ac_ext
24639{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24640$as_echo "$ac_header_preproc" >&6; }
24641
24642# So?  What about this header?
24643case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24644  yes:no: )
24645    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24646$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24647    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24648$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24649    ac_header_preproc=yes
24650    ;;
24651  no:yes:* )
24652    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24653$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24654    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24655$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24656    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24657$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24658    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24659$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24660    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24661$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24662    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24663$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24664
24665    ;;
24666esac
24667{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24668$as_echo_n "checking for $ac_header... " >&6; }
24669if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24670  $as_echo_n "(cached) " >&6
24671else
24672  eval "$as_ac_Header=\$ac_header_preproc"
24673fi
24674ac_res=`eval 'as_val=${'$as_ac_Header'}
24675		 $as_echo "$as_val"'`
24676	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24677$as_echo "$ac_res" >&6; }
24678
24679fi
24680as_val=`eval 'as_val=${'$as_ac_Header'}
24681		 $as_echo "$as_val"'`
24682   if test "x$as_val" = x""yes; then
24683  cat >>confdefs.h <<_ACEOF
24684#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24685_ACEOF
24686
24687fi
24688
24689done
24690
24691  if test $ac_cv_header_inttypes_h = yes; then
24692    { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
24693$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
24694if test "${gt_cv_inttypes_pri_broken+set}" = set; then
24695  $as_echo_n "(cached) " >&6
24696else
24697
24698        cat >conftest.$ac_ext <<_ACEOF
24699/* confdefs.h.  */
24700_ACEOF
24701cat confdefs.h >>conftest.$ac_ext
24702cat >>conftest.$ac_ext <<_ACEOF
24703/* end confdefs.h.  */
24704#include <inttypes.h>
24705#ifdef PRId32
24706char *p = PRId32;
24707#endif
24708
24709int
24710main ()
24711{
24712
24713  ;
24714  return 0;
24715}
24716_ACEOF
24717rm -f conftest.$ac_objext
24718if { (ac_try="$ac_compile"
24719case "(($ac_try" in
24720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24721  *) ac_try_echo=$ac_try;;
24722esac
24723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24724$as_echo "$ac_try_echo") >&5
24725  (eval "$ac_compile") 2>conftest.er1
24726  ac_status=$?
24727  grep -v '^ *+' conftest.er1 >conftest.err
24728  rm -f conftest.er1
24729  cat conftest.err >&5
24730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24731  (exit $ac_status); } && {
24732	 test -z "$ac_c_werror_flag" ||
24733	 test ! -s conftest.err
24734       } && test -s conftest.$ac_objext; then
24735  gt_cv_inttypes_pri_broken=no
24736else
24737  $as_echo "$as_me: failed program was:" >&5
24738sed 's/^/| /' conftest.$ac_ext >&5
24739
24740	gt_cv_inttypes_pri_broken=yes
24741fi
24742
24743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24744
24745fi
24746{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
24747$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
24748  fi
24749  if test "$gt_cv_inttypes_pri_broken" = yes; then
24750
24751cat >>confdefs.h <<_ACEOF
24752#define PRI_MACROS_BROKEN 1
24753_ACEOF
24754
24755    PRI_MACROS_BROKEN=1
24756  else
24757    PRI_MACROS_BROKEN=0
24758  fi
24759
24760
24761
24762      if test "X$prefix" = "XNONE"; then
24763    acl_final_prefix="$ac_default_prefix"
24764  else
24765    acl_final_prefix="$prefix"
24766  fi
24767  if test "X$exec_prefix" = "XNONE"; then
24768    acl_final_exec_prefix='${prefix}'
24769  else
24770    acl_final_exec_prefix="$exec_prefix"
24771  fi
24772  acl_save_prefix="$prefix"
24773  prefix="$acl_final_prefix"
24774  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
24775  prefix="$acl_save_prefix"
24776
24777
24778# Check whether --with-gnu-ld was given.
24779if test "${with_gnu_ld+set}" = set; then
24780  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
24781else
24782  with_gnu_ld=no
24783fi
24784
24785# Prepare PATH_SEPARATOR.
24786# The user is always right.
24787if test "${PATH_SEPARATOR+set}" != set; then
24788  echo "#! /bin/sh" >conf$$.sh
24789  echo  "exit 0"   >>conf$$.sh
24790  chmod +x conf$$.sh
24791  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24792    PATH_SEPARATOR=';'
24793  else
24794    PATH_SEPARATOR=:
24795  fi
24796  rm -f conf$$.sh
24797fi
24798ac_prog=ld
24799if test "$GCC" = yes; then
24800  # Check if gcc -print-prog-name=ld gives a path.
24801  { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
24802$as_echo_n "checking for ld used by GCC... " >&6; }
24803  case $host in
24804  *-*-mingw*)
24805    # gcc leaves a trailing carriage return which upsets mingw
24806    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
24807  *)
24808    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
24809  esac
24810  case $ac_prog in
24811    # Accept absolute paths.
24812    [\\/]* | [A-Za-z]:[\\/]*)
24813      re_direlt='/[^/][^/]*/\.\./'
24814      # Canonicalize the path of ld
24815      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
24816      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
24817	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
24818      done
24819      test -z "$LD" && LD="$ac_prog"
24820      ;;
24821  "")
24822    # If it fails, then pretend we aren't using GCC.
24823    ac_prog=ld
24824    ;;
24825  *)
24826    # If it is relative, then search for the first ld in PATH.
24827    with_gnu_ld=unknown
24828    ;;
24829  esac
24830elif test "$with_gnu_ld" = yes; then
24831  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
24832$as_echo_n "checking for GNU ld... " >&6; }
24833else
24834  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
24835$as_echo_n "checking for non-GNU ld... " >&6; }
24836fi
24837if test "${acl_cv_path_LD+set}" = set; then
24838  $as_echo_n "(cached) " >&6
24839else
24840  if test -z "$LD"; then
24841  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
24842  for ac_dir in $PATH; do
24843    test -z "$ac_dir" && ac_dir=.
24844    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
24845      acl_cv_path_LD="$ac_dir/$ac_prog"
24846      # Check to see if the program is GNU ld.  I'd rather use --version,
24847      # but apparently some GNU ld's only accept -v.
24848      # Break only if it was the GNU/non-GNU ld that we prefer.
24849      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
24850      *GNU* | *'with BFD'*)
24851	test "$with_gnu_ld" != no && break ;;
24852      *)
24853	test "$with_gnu_ld" != yes && break ;;
24854      esac
24855    fi
24856  done
24857  IFS="$ac_save_ifs"
24858else
24859  acl_cv_path_LD="$LD" # Let the user override the test with a path.
24860fi
24861fi
24862
24863LD="$acl_cv_path_LD"
24864if test -n "$LD"; then
24865  { $as_echo "$as_me:$LINENO: result: $LD" >&5
24866$as_echo "$LD" >&6; }
24867else
24868  { $as_echo "$as_me:$LINENO: result: no" >&5
24869$as_echo "no" >&6; }
24870fi
24871test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
24872$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
24873   { (exit 1); exit 1; }; }
24874{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
24875$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
24876if test "${acl_cv_prog_gnu_ld+set}" = set; then
24877  $as_echo_n "(cached) " >&6
24878else
24879  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
24880case `$LD -v 2>&1 </dev/null` in
24881*GNU* | *'with BFD'*)
24882  acl_cv_prog_gnu_ld=yes ;;
24883*)
24884  acl_cv_prog_gnu_ld=no ;;
24885esac
24886fi
24887{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
24888$as_echo "$acl_cv_prog_gnu_ld" >&6; }
24889with_gnu_ld=$acl_cv_prog_gnu_ld
24890
24891
24892
24893
24894                                                { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
24895$as_echo_n "checking for shared library run path origin... " >&6; }
24896if test "${acl_cv_rpath+set}" = set; then
24897  $as_echo_n "(cached) " >&6
24898else
24899
24900    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
24901    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
24902    . ./conftest.sh
24903    rm -f ./conftest.sh
24904    acl_cv_rpath=done
24905
24906fi
24907{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
24908$as_echo "$acl_cv_rpath" >&6; }
24909  wl="$acl_cv_wl"
24910  acl_libext="$acl_cv_libext"
24911  acl_shlibext="$acl_cv_shlibext"
24912  acl_libname_spec="$acl_cv_libname_spec"
24913  acl_library_names_spec="$acl_cv_library_names_spec"
24914  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
24915  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
24916  acl_hardcode_direct="$acl_cv_hardcode_direct"
24917  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
24918    # Check whether --enable-rpath was given.
24919if test "${enable_rpath+set}" = set; then
24920  enableval=$enable_rpath; :
24921else
24922  enable_rpath=yes
24923fi
24924
24925
24926
24927                  acl_libdirstem=lib
24928  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
24929  if test -n "$searchpath"; then
24930    acl_save_IFS="${IFS= 	}"; IFS=":"
24931    for searchdir in $searchpath; do
24932      if test -d "$searchdir"; then
24933        case "$searchdir" in
24934          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
24935          *) searchdir=`cd "$searchdir" && pwd`
24936             case "$searchdir" in
24937               */lib64 ) acl_libdirstem=lib64 ;;
24938             esac ;;
24939        esac
24940      fi
24941    done
24942    IFS="$acl_save_IFS"
24943  fi
24944
24945
24946
24947  gl_threads_api=none
24948  LIBTHREAD=
24949  LTLIBTHREAD=
24950  LIBMULTITHREAD=
24951  LTLIBMULTITHREAD=
24952  if test "$gl_use_threads" != no; then
24953        { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
24954$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
24955    gl_have_weak=no
24956    cat >conftest.$ac_ext <<_ACEOF
24957/* confdefs.h.  */
24958_ACEOF
24959cat confdefs.h >>conftest.$ac_ext
24960cat >>conftest.$ac_ext <<_ACEOF
24961/* end confdefs.h.  */
24962extern void xyzzy ();
24963#pragma weak xyzzy
24964int
24965main ()
24966{
24967xyzzy();
24968  ;
24969  return 0;
24970}
24971_ACEOF
24972rm -f conftest.$ac_objext conftest$ac_exeext
24973if { (ac_try="$ac_link"
24974case "(($ac_try" in
24975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976  *) ac_try_echo=$ac_try;;
24977esac
24978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24979$as_echo "$ac_try_echo") >&5
24980  (eval "$ac_link") 2>conftest.er1
24981  ac_status=$?
24982  grep -v '^ *+' conftest.er1 >conftest.err
24983  rm -f conftest.er1
24984  cat conftest.err >&5
24985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986  (exit $ac_status); } && {
24987	 test -z "$ac_c_werror_flag" ||
24988	 test ! -s conftest.err
24989       } && test -s conftest$ac_exeext && {
24990	 test "$cross_compiling" = yes ||
24991	 $as_test_x conftest$ac_exeext
24992       }; then
24993  gl_have_weak=yes
24994else
24995  $as_echo "$as_me: failed program was:" >&5
24996sed 's/^/| /' conftest.$ac_ext >&5
24997
24998
24999fi
25000
25001rm -rf conftest.dSYM
25002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25003      conftest$ac_exeext conftest.$ac_ext
25004    { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
25005$as_echo "$gl_have_weak" >&6; }
25006    if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
25007      # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
25008      # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
25009      if test "${ac_cv_header_pthread_h+set}" = set; then
25010  { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
25011$as_echo_n "checking for pthread.h... " >&6; }
25012if test "${ac_cv_header_pthread_h+set}" = set; then
25013  $as_echo_n "(cached) " >&6
25014fi
25015{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
25016$as_echo "$ac_cv_header_pthread_h" >&6; }
25017else
25018  # Is the header compilable?
25019{ $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
25020$as_echo_n "checking pthread.h usability... " >&6; }
25021cat >conftest.$ac_ext <<_ACEOF
25022/* confdefs.h.  */
25023_ACEOF
25024cat confdefs.h >>conftest.$ac_ext
25025cat >>conftest.$ac_ext <<_ACEOF
25026/* end confdefs.h.  */
25027$ac_includes_default
25028#include <pthread.h>
25029_ACEOF
25030rm -f conftest.$ac_objext
25031if { (ac_try="$ac_compile"
25032case "(($ac_try" in
25033  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034  *) ac_try_echo=$ac_try;;
25035esac
25036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25037$as_echo "$ac_try_echo") >&5
25038  (eval "$ac_compile") 2>conftest.er1
25039  ac_status=$?
25040  grep -v '^ *+' conftest.er1 >conftest.err
25041  rm -f conftest.er1
25042  cat conftest.err >&5
25043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044  (exit $ac_status); } && {
25045	 test -z "$ac_c_werror_flag" ||
25046	 test ! -s conftest.err
25047       } && test -s conftest.$ac_objext; then
25048  ac_header_compiler=yes
25049else
25050  $as_echo "$as_me: failed program was:" >&5
25051sed 's/^/| /' conftest.$ac_ext >&5
25052
25053	ac_header_compiler=no
25054fi
25055
25056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25057{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25058$as_echo "$ac_header_compiler" >&6; }
25059
25060# Is the header present?
25061{ $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
25062$as_echo_n "checking pthread.h presence... " >&6; }
25063cat >conftest.$ac_ext <<_ACEOF
25064/* confdefs.h.  */
25065_ACEOF
25066cat confdefs.h >>conftest.$ac_ext
25067cat >>conftest.$ac_ext <<_ACEOF
25068/* end confdefs.h.  */
25069#include <pthread.h>
25070_ACEOF
25071if { (ac_try="$ac_cpp conftest.$ac_ext"
25072case "(($ac_try" in
25073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25074  *) ac_try_echo=$ac_try;;
25075esac
25076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25077$as_echo "$ac_try_echo") >&5
25078  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25079  ac_status=$?
25080  grep -v '^ *+' conftest.er1 >conftest.err
25081  rm -f conftest.er1
25082  cat conftest.err >&5
25083  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084  (exit $ac_status); } >/dev/null && {
25085	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25086	 test ! -s conftest.err
25087       }; then
25088  ac_header_preproc=yes
25089else
25090  $as_echo "$as_me: failed program was:" >&5
25091sed 's/^/| /' conftest.$ac_ext >&5
25092
25093  ac_header_preproc=no
25094fi
25095
25096rm -f conftest.err conftest.$ac_ext
25097{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25098$as_echo "$ac_header_preproc" >&6; }
25099
25100# So?  What about this header?
25101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25102  yes:no: )
25103    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
25104$as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25105    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
25106$as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
25107    ac_header_preproc=yes
25108    ;;
25109  no:yes:* )
25110    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
25111$as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
25112    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
25113$as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
25114    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
25115$as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
25116    { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
25117$as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25118    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
25119$as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
25120    { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
25121$as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
25122
25123    ;;
25124esac
25125{ $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
25126$as_echo_n "checking for pthread.h... " >&6; }
25127if test "${ac_cv_header_pthread_h+set}" = set; then
25128  $as_echo_n "(cached) " >&6
25129else
25130  ac_cv_header_pthread_h=$ac_header_preproc
25131fi
25132{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
25133$as_echo "$ac_cv_header_pthread_h" >&6; }
25134
25135fi
25136if test "x$ac_cv_header_pthread_h" = x""yes; then
25137  gl_have_pthread_h=yes
25138else
25139  gl_have_pthread_h=no
25140fi
25141
25142
25143      if test "$gl_have_pthread_h" = yes; then
25144        # Other possible tests:
25145        #   -lpthreads (FSU threads, PCthreads)
25146        #   -lgthreads
25147        gl_have_pthread=
25148        # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
25149        # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
25150        # the second one only in libpthread, and lock.c needs it.
25151        cat >conftest.$ac_ext <<_ACEOF
25152/* confdefs.h.  */
25153_ACEOF
25154cat confdefs.h >>conftest.$ac_ext
25155cat >>conftest.$ac_ext <<_ACEOF
25156/* end confdefs.h.  */
25157#include <pthread.h>
25158int
25159main ()
25160{
25161pthread_mutex_lock((pthread_mutex_t*)0);
25162           pthread_mutexattr_init((pthread_mutexattr_t*)0);
25163  ;
25164  return 0;
25165}
25166_ACEOF
25167rm -f conftest.$ac_objext conftest$ac_exeext
25168if { (ac_try="$ac_link"
25169case "(($ac_try" in
25170  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25171  *) ac_try_echo=$ac_try;;
25172esac
25173eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25174$as_echo "$ac_try_echo") >&5
25175  (eval "$ac_link") 2>conftest.er1
25176  ac_status=$?
25177  grep -v '^ *+' conftest.er1 >conftest.err
25178  rm -f conftest.er1
25179  cat conftest.err >&5
25180  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181  (exit $ac_status); } && {
25182	 test -z "$ac_c_werror_flag" ||
25183	 test ! -s conftest.err
25184       } && test -s conftest$ac_exeext && {
25185	 test "$cross_compiling" = yes ||
25186	 $as_test_x conftest$ac_exeext
25187       }; then
25188  gl_have_pthread=yes
25189else
25190  $as_echo "$as_me: failed program was:" >&5
25191sed 's/^/| /' conftest.$ac_ext >&5
25192
25193
25194fi
25195
25196rm -rf conftest.dSYM
25197rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25198      conftest$ac_exeext conftest.$ac_ext
25199        # Test for libpthread by looking for pthread_kill. (Not pthread_self,
25200        # since it is defined as a macro on OSF/1.)
25201        if test -n "$gl_have_pthread"; then
25202          # The program links fine without libpthread. But it may actually
25203          # need to link with libpthread in order to create multiple threads.
25204          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
25205$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
25206if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
25207  $as_echo_n "(cached) " >&6
25208else
25209  ac_check_lib_save_LIBS=$LIBS
25210LIBS="-lpthread  $LIBS"
25211cat >conftest.$ac_ext <<_ACEOF
25212/* confdefs.h.  */
25213_ACEOF
25214cat confdefs.h >>conftest.$ac_ext
25215cat >>conftest.$ac_ext <<_ACEOF
25216/* end confdefs.h.  */
25217
25218/* Override any GCC internal prototype to avoid an error.
25219   Use char because int might match the return type of a GCC
25220   builtin and then its argument prototype would still apply.  */
25221#ifdef __cplusplus
25222extern "C"
25223#endif
25224char pthread_kill ();
25225int
25226main ()
25227{
25228return pthread_kill ();
25229  ;
25230  return 0;
25231}
25232_ACEOF
25233rm -f conftest.$ac_objext conftest$ac_exeext
25234if { (ac_try="$ac_link"
25235case "(($ac_try" in
25236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25237  *) ac_try_echo=$ac_try;;
25238esac
25239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25240$as_echo "$ac_try_echo") >&5
25241  (eval "$ac_link") 2>conftest.er1
25242  ac_status=$?
25243  grep -v '^ *+' conftest.er1 >conftest.err
25244  rm -f conftest.er1
25245  cat conftest.err >&5
25246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247  (exit $ac_status); } && {
25248	 test -z "$ac_c_werror_flag" ||
25249	 test ! -s conftest.err
25250       } && test -s conftest$ac_exeext && {
25251	 test "$cross_compiling" = yes ||
25252	 $as_test_x conftest$ac_exeext
25253       }; then
25254  ac_cv_lib_pthread_pthread_kill=yes
25255else
25256  $as_echo "$as_me: failed program was:" >&5
25257sed 's/^/| /' conftest.$ac_ext >&5
25258
25259	ac_cv_lib_pthread_pthread_kill=no
25260fi
25261
25262rm -rf conftest.dSYM
25263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25264      conftest$ac_exeext conftest.$ac_ext
25265LIBS=$ac_check_lib_save_LIBS
25266fi
25267{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
25268$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
25269if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
25270  LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
25271             # On Solaris and HP-UX, most pthread functions exist also in libc.
25272             # Therefore pthread_in_use() needs to actually try to create a
25273             # thread: pthread_create from libc will fail, whereas
25274             # pthread_create will actually create a thread.
25275             case "$host_os" in
25276               solaris* | hpux*)
25277
25278cat >>confdefs.h <<\_ACEOF
25279#define PTHREAD_IN_USE_DETECTION_HARD 1
25280_ACEOF
25281
25282             esac
25283
25284fi
25285
25286        else
25287          # Some library is needed. Try libpthread and libc_r.
25288          { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
25289$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
25290if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
25291  $as_echo_n "(cached) " >&6
25292else
25293  ac_check_lib_save_LIBS=$LIBS
25294LIBS="-lpthread  $LIBS"
25295cat >conftest.$ac_ext <<_ACEOF
25296/* confdefs.h.  */
25297_ACEOF
25298cat confdefs.h >>conftest.$ac_ext
25299cat >>conftest.$ac_ext <<_ACEOF
25300/* end confdefs.h.  */
25301
25302/* Override any GCC internal prototype to avoid an error.
25303   Use char because int might match the return type of a GCC
25304   builtin and then its argument prototype would still apply.  */
25305#ifdef __cplusplus
25306extern "C"
25307#endif
25308char pthread_kill ();
25309int
25310main ()
25311{
25312return pthread_kill ();
25313  ;
25314  return 0;
25315}
25316_ACEOF
25317rm -f conftest.$ac_objext conftest$ac_exeext
25318if { (ac_try="$ac_link"
25319case "(($ac_try" in
25320  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25321  *) ac_try_echo=$ac_try;;
25322esac
25323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25324$as_echo "$ac_try_echo") >&5
25325  (eval "$ac_link") 2>conftest.er1
25326  ac_status=$?
25327  grep -v '^ *+' conftest.er1 >conftest.err
25328  rm -f conftest.er1
25329  cat conftest.err >&5
25330  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331  (exit $ac_status); } && {
25332	 test -z "$ac_c_werror_flag" ||
25333	 test ! -s conftest.err
25334       } && test -s conftest$ac_exeext && {
25335	 test "$cross_compiling" = yes ||
25336	 $as_test_x conftest$ac_exeext
25337       }; then
25338  ac_cv_lib_pthread_pthread_kill=yes
25339else
25340  $as_echo "$as_me: failed program was:" >&5
25341sed 's/^/| /' conftest.$ac_ext >&5
25342
25343	ac_cv_lib_pthread_pthread_kill=no
25344fi
25345
25346rm -rf conftest.dSYM
25347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25348      conftest$ac_exeext conftest.$ac_ext
25349LIBS=$ac_check_lib_save_LIBS
25350fi
25351{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
25352$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
25353if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
25354  gl_have_pthread=yes
25355             LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
25356             LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
25357fi
25358
25359          if test -z "$gl_have_pthread"; then
25360            # For FreeBSD 4.
25361            { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
25362$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
25363if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
25364  $as_echo_n "(cached) " >&6
25365else
25366  ac_check_lib_save_LIBS=$LIBS
25367LIBS="-lc_r  $LIBS"
25368cat >conftest.$ac_ext <<_ACEOF
25369/* confdefs.h.  */
25370_ACEOF
25371cat confdefs.h >>conftest.$ac_ext
25372cat >>conftest.$ac_ext <<_ACEOF
25373/* end confdefs.h.  */
25374
25375/* Override any GCC internal prototype to avoid an error.
25376   Use char because int might match the return type of a GCC
25377   builtin and then its argument prototype would still apply.  */
25378#ifdef __cplusplus
25379extern "C"
25380#endif
25381char pthread_kill ();
25382int
25383main ()
25384{
25385return pthread_kill ();
25386  ;
25387  return 0;
25388}
25389_ACEOF
25390rm -f conftest.$ac_objext conftest$ac_exeext
25391if { (ac_try="$ac_link"
25392case "(($ac_try" in
25393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394  *) ac_try_echo=$ac_try;;
25395esac
25396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25397$as_echo "$ac_try_echo") >&5
25398  (eval "$ac_link") 2>conftest.er1
25399  ac_status=$?
25400  grep -v '^ *+' conftest.er1 >conftest.err
25401  rm -f conftest.er1
25402  cat conftest.err >&5
25403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404  (exit $ac_status); } && {
25405	 test -z "$ac_c_werror_flag" ||
25406	 test ! -s conftest.err
25407       } && test -s conftest$ac_exeext && {
25408	 test "$cross_compiling" = yes ||
25409	 $as_test_x conftest$ac_exeext
25410       }; then
25411  ac_cv_lib_c_r_pthread_kill=yes
25412else
25413  $as_echo "$as_me: failed program was:" >&5
25414sed 's/^/| /' conftest.$ac_ext >&5
25415
25416	ac_cv_lib_c_r_pthread_kill=no
25417fi
25418
25419rm -rf conftest.dSYM
25420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25421      conftest$ac_exeext conftest.$ac_ext
25422LIBS=$ac_check_lib_save_LIBS
25423fi
25424{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
25425$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
25426if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
25427  gl_have_pthread=yes
25428               LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
25429               LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
25430fi
25431
25432          fi
25433        fi
25434        if test -n "$gl_have_pthread"; then
25435          gl_threads_api=posix
25436
25437cat >>confdefs.h <<\_ACEOF
25438#define USE_POSIX_THREADS 1
25439_ACEOF
25440
25441          if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
25442            if test $gl_have_weak = yes; then
25443
25444cat >>confdefs.h <<\_ACEOF
25445#define USE_POSIX_THREADS_WEAK 1
25446_ACEOF
25447
25448              LIBTHREAD=
25449              LTLIBTHREAD=
25450            fi
25451          fi
25452          # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
25453          # pthread_rwlock_* functions.
25454          { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
25455$as_echo_n "checking for pthread_rwlock_t... " >&6; }
25456if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
25457  $as_echo_n "(cached) " >&6
25458else
25459  ac_cv_type_pthread_rwlock_t=no
25460cat >conftest.$ac_ext <<_ACEOF
25461/* confdefs.h.  */
25462_ACEOF
25463cat confdefs.h >>conftest.$ac_ext
25464cat >>conftest.$ac_ext <<_ACEOF
25465/* end confdefs.h.  */
25466#include <pthread.h>
25467
25468int
25469main ()
25470{
25471if (sizeof (pthread_rwlock_t))
25472       return 0;
25473  ;
25474  return 0;
25475}
25476_ACEOF
25477rm -f conftest.$ac_objext
25478if { (ac_try="$ac_compile"
25479case "(($ac_try" in
25480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481  *) ac_try_echo=$ac_try;;
25482esac
25483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25484$as_echo "$ac_try_echo") >&5
25485  (eval "$ac_compile") 2>conftest.er1
25486  ac_status=$?
25487  grep -v '^ *+' conftest.er1 >conftest.err
25488  rm -f conftest.er1
25489  cat conftest.err >&5
25490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25491  (exit $ac_status); } && {
25492	 test -z "$ac_c_werror_flag" ||
25493	 test ! -s conftest.err
25494       } && test -s conftest.$ac_objext; then
25495  cat >conftest.$ac_ext <<_ACEOF
25496/* confdefs.h.  */
25497_ACEOF
25498cat confdefs.h >>conftest.$ac_ext
25499cat >>conftest.$ac_ext <<_ACEOF
25500/* end confdefs.h.  */
25501#include <pthread.h>
25502
25503int
25504main ()
25505{
25506if (sizeof ((pthread_rwlock_t)))
25507	  return 0;
25508  ;
25509  return 0;
25510}
25511_ACEOF
25512rm -f conftest.$ac_objext
25513if { (ac_try="$ac_compile"
25514case "(($ac_try" in
25515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516  *) ac_try_echo=$ac_try;;
25517esac
25518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25519$as_echo "$ac_try_echo") >&5
25520  (eval "$ac_compile") 2>conftest.er1
25521  ac_status=$?
25522  grep -v '^ *+' conftest.er1 >conftest.err
25523  rm -f conftest.er1
25524  cat conftest.err >&5
25525  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526  (exit $ac_status); } && {
25527	 test -z "$ac_c_werror_flag" ||
25528	 test ! -s conftest.err
25529       } && test -s conftest.$ac_objext; then
25530  :
25531else
25532  $as_echo "$as_me: failed program was:" >&5
25533sed 's/^/| /' conftest.$ac_ext >&5
25534
25535	ac_cv_type_pthread_rwlock_t=yes
25536fi
25537
25538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25539else
25540  $as_echo "$as_me: failed program was:" >&5
25541sed 's/^/| /' conftest.$ac_ext >&5
25542
25543
25544fi
25545
25546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25547fi
25548{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
25549$as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
25550if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
25551
25552cat >>confdefs.h <<\_ACEOF
25553#define HAVE_PTHREAD_RWLOCK 1
25554_ACEOF
25555
25556fi
25557
25558          # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
25559          cat >conftest.$ac_ext <<_ACEOF
25560/* confdefs.h.  */
25561_ACEOF
25562cat confdefs.h >>conftest.$ac_ext
25563cat >>conftest.$ac_ext <<_ACEOF
25564/* end confdefs.h.  */
25565#include <pthread.h>
25566int
25567main ()
25568{
25569#if __FreeBSD__ == 4
25570error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
25571#else
25572int x = (int)PTHREAD_MUTEX_RECURSIVE;
25573return !x;
25574#endif
25575  ;
25576  return 0;
25577}
25578_ACEOF
25579rm -f conftest.$ac_objext
25580if { (ac_try="$ac_compile"
25581case "(($ac_try" in
25582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583  *) ac_try_echo=$ac_try;;
25584esac
25585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25586$as_echo "$ac_try_echo") >&5
25587  (eval "$ac_compile") 2>conftest.er1
25588  ac_status=$?
25589  grep -v '^ *+' conftest.er1 >conftest.err
25590  rm -f conftest.er1
25591  cat conftest.err >&5
25592  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593  (exit $ac_status); } && {
25594	 test -z "$ac_c_werror_flag" ||
25595	 test ! -s conftest.err
25596       } && test -s conftest.$ac_objext; then
25597
25598cat >>confdefs.h <<\_ACEOF
25599#define HAVE_PTHREAD_MUTEX_RECURSIVE 1
25600_ACEOF
25601
25602else
25603  $as_echo "$as_me: failed program was:" >&5
25604sed 's/^/| /' conftest.$ac_ext >&5
25605
25606
25607fi
25608
25609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610        fi
25611      fi
25612    fi
25613    if test -z "$gl_have_pthread"; then
25614      if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
25615        gl_have_solaristhread=
25616        gl_save_LIBS="$LIBS"
25617        LIBS="$LIBS -lthread"
25618        cat >conftest.$ac_ext <<_ACEOF
25619/* confdefs.h.  */
25620_ACEOF
25621cat confdefs.h >>conftest.$ac_ext
25622cat >>conftest.$ac_ext <<_ACEOF
25623/* end confdefs.h.  */
25624#include <thread.h>
25625#include <synch.h>
25626int
25627main ()
25628{
25629thr_self();
25630  ;
25631  return 0;
25632}
25633_ACEOF
25634rm -f conftest.$ac_objext conftest$ac_exeext
25635if { (ac_try="$ac_link"
25636case "(($ac_try" in
25637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638  *) ac_try_echo=$ac_try;;
25639esac
25640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25641$as_echo "$ac_try_echo") >&5
25642  (eval "$ac_link") 2>conftest.er1
25643  ac_status=$?
25644  grep -v '^ *+' conftest.er1 >conftest.err
25645  rm -f conftest.er1
25646  cat conftest.err >&5
25647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648  (exit $ac_status); } && {
25649	 test -z "$ac_c_werror_flag" ||
25650	 test ! -s conftest.err
25651       } && test -s conftest$ac_exeext && {
25652	 test "$cross_compiling" = yes ||
25653	 $as_test_x conftest$ac_exeext
25654       }; then
25655  gl_have_solaristhread=yes
25656else
25657  $as_echo "$as_me: failed program was:" >&5
25658sed 's/^/| /' conftest.$ac_ext >&5
25659
25660
25661fi
25662
25663rm -rf conftest.dSYM
25664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25665      conftest$ac_exeext conftest.$ac_ext
25666        LIBS="$gl_save_LIBS"
25667        if test -n "$gl_have_solaristhread"; then
25668          gl_threads_api=solaris
25669          LIBTHREAD=-lthread
25670          LTLIBTHREAD=-lthread
25671          LIBMULTITHREAD="$LIBTHREAD"
25672          LTLIBMULTITHREAD="$LTLIBTHREAD"
25673
25674cat >>confdefs.h <<\_ACEOF
25675#define USE_SOLARIS_THREADS 1
25676_ACEOF
25677
25678          if test $gl_have_weak = yes; then
25679
25680cat >>confdefs.h <<\_ACEOF
25681#define USE_SOLARIS_THREADS_WEAK 1
25682_ACEOF
25683
25684            LIBTHREAD=
25685            LTLIBTHREAD=
25686          fi
25687        fi
25688      fi
25689    fi
25690    if test "$gl_use_threads" = pth; then
25691      gl_save_CPPFLAGS="$CPPFLAGS"
25692
25693
25694
25695
25696
25697  { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
25698$as_echo_n "checking how to link with libpth... " >&6; }
25699if test "${ac_cv_libpth_libs+set}" = set; then
25700  $as_echo_n "(cached) " >&6
25701else
25702
25703
25704
25705
25706
25707    use_additional=yes
25708
25709  acl_save_prefix="$prefix"
25710  prefix="$acl_final_prefix"
25711  acl_save_exec_prefix="$exec_prefix"
25712  exec_prefix="$acl_final_exec_prefix"
25713
25714    eval additional_includedir=\"$includedir\"
25715    eval additional_libdir=\"$libdir\"
25716
25717  exec_prefix="$acl_save_exec_prefix"
25718  prefix="$acl_save_prefix"
25719
25720
25721# Check whether --with-libpth-prefix was given.
25722if test "${with_libpth_prefix+set}" = set; then
25723  withval=$with_libpth_prefix;
25724    if test "X$withval" = "Xno"; then
25725      use_additional=no
25726    else
25727      if test "X$withval" = "X"; then
25728
25729  acl_save_prefix="$prefix"
25730  prefix="$acl_final_prefix"
25731  acl_save_exec_prefix="$exec_prefix"
25732  exec_prefix="$acl_final_exec_prefix"
25733
25734          eval additional_includedir=\"$includedir\"
25735          eval additional_libdir=\"$libdir\"
25736
25737  exec_prefix="$acl_save_exec_prefix"
25738  prefix="$acl_save_prefix"
25739
25740      else
25741        additional_includedir="$withval/include"
25742        additional_libdir="$withval/$acl_libdirstem"
25743      fi
25744    fi
25745
25746fi
25747
25748      LIBPTH=
25749  LTLIBPTH=
25750  INCPTH=
25751  LIBPTH_PREFIX=
25752  rpathdirs=
25753  ltrpathdirs=
25754  names_already_handled=
25755  names_next_round='pth '
25756  while test -n "$names_next_round"; do
25757    names_this_round="$names_next_round"
25758    names_next_round=
25759    for name in $names_this_round; do
25760      already_handled=
25761      for n in $names_already_handled; do
25762        if test "$n" = "$name"; then
25763          already_handled=yes
25764          break
25765        fi
25766      done
25767      if test -z "$already_handled"; then
25768        names_already_handled="$names_already_handled $name"
25769                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
25770        eval value=\"\$HAVE_LIB$uppername\"
25771        if test -n "$value"; then
25772          if test "$value" = yes; then
25773            eval value=\"\$LIB$uppername\"
25774            test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
25775            eval value=\"\$LTLIB$uppername\"
25776            test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
25777          else
25778                                    :
25779          fi
25780        else
25781                              found_dir=
25782          found_la=
25783          found_so=
25784          found_a=
25785          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
25786          if test -n "$acl_shlibext"; then
25787            shrext=".$acl_shlibext"             # typically: shrext=.so
25788          else
25789            shrext=
25790          fi
25791          if test $use_additional = yes; then
25792            dir="$additional_libdir"
25793                                    if test -n "$acl_shlibext"; then
25794              if test -f "$dir/$libname$shrext"; then
25795                found_dir="$dir"
25796                found_so="$dir/$libname$shrext"
25797              else
25798                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25799                  ver=`(cd "$dir" && \
25800                        for f in "$libname$shrext".*; do echo "$f"; done \
25801                        | sed -e "s,^$libname$shrext\\\\.,," \
25802                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25803                        | sed 1q ) 2>/dev/null`
25804                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25805                    found_dir="$dir"
25806                    found_so="$dir/$libname$shrext.$ver"
25807                  fi
25808                else
25809                  eval library_names=\"$acl_library_names_spec\"
25810                  for f in $library_names; do
25811                    if test -f "$dir/$f"; then
25812                      found_dir="$dir"
25813                      found_so="$dir/$f"
25814                      break
25815                    fi
25816                  done
25817                fi
25818              fi
25819            fi
25820                        if test "X$found_dir" = "X"; then
25821              if test -f "$dir/$libname.$acl_libext"; then
25822                found_dir="$dir"
25823                found_a="$dir/$libname.$acl_libext"
25824              fi
25825            fi
25826            if test "X$found_dir" != "X"; then
25827              if test -f "$dir/$libname.la"; then
25828                found_la="$dir/$libname.la"
25829              fi
25830            fi
25831          fi
25832          if test "X$found_dir" = "X"; then
25833            for x in $LDFLAGS $LTLIBPTH; do
25834
25835  acl_save_prefix="$prefix"
25836  prefix="$acl_final_prefix"
25837  acl_save_exec_prefix="$exec_prefix"
25838  exec_prefix="$acl_final_exec_prefix"
25839  eval x=\"$x\"
25840  exec_prefix="$acl_save_exec_prefix"
25841  prefix="$acl_save_prefix"
25842
25843              case "$x" in
25844                -L*)
25845                  dir=`echo "X$x" | sed -e 's/^X-L//'`
25846                                    if test -n "$acl_shlibext"; then
25847                    if test -f "$dir/$libname$shrext"; then
25848                      found_dir="$dir"
25849                      found_so="$dir/$libname$shrext"
25850                    else
25851                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
25852                        ver=`(cd "$dir" && \
25853                              for f in "$libname$shrext".*; do echo "$f"; done \
25854                              | sed -e "s,^$libname$shrext\\\\.,," \
25855                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
25856                              | sed 1q ) 2>/dev/null`
25857                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
25858                          found_dir="$dir"
25859                          found_so="$dir/$libname$shrext.$ver"
25860                        fi
25861                      else
25862                        eval library_names=\"$acl_library_names_spec\"
25863                        for f in $library_names; do
25864                          if test -f "$dir/$f"; then
25865                            found_dir="$dir"
25866                            found_so="$dir/$f"
25867                            break
25868                          fi
25869                        done
25870                      fi
25871                    fi
25872                  fi
25873                                    if test "X$found_dir" = "X"; then
25874                    if test -f "$dir/$libname.$acl_libext"; then
25875                      found_dir="$dir"
25876                      found_a="$dir/$libname.$acl_libext"
25877                    fi
25878                  fi
25879                  if test "X$found_dir" != "X"; then
25880                    if test -f "$dir/$libname.la"; then
25881                      found_la="$dir/$libname.la"
25882                    fi
25883                  fi
25884                  ;;
25885              esac
25886              if test "X$found_dir" != "X"; then
25887                break
25888              fi
25889            done
25890          fi
25891          if test "X$found_dir" != "X"; then
25892                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
25893            if test "X$found_so" != "X"; then
25894                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
25895                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25896              else
25897                                                                                haveit=
25898                for x in $ltrpathdirs; do
25899                  if test "X$x" = "X$found_dir"; then
25900                    haveit=yes
25901                    break
25902                  fi
25903                done
25904                if test -z "$haveit"; then
25905                  ltrpathdirs="$ltrpathdirs $found_dir"
25906                fi
25907                                if test "$acl_hardcode_direct" = yes; then
25908                                                      LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25909                else
25910                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
25911                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25912                                                            haveit=
25913                    for x in $rpathdirs; do
25914                      if test "X$x" = "X$found_dir"; then
25915                        haveit=yes
25916                        break
25917                      fi
25918                    done
25919                    if test -z "$haveit"; then
25920                      rpathdirs="$rpathdirs $found_dir"
25921                    fi
25922                  else
25923                                                                                haveit=
25924                    for x in $LDFLAGS $LIBPTH; do
25925
25926  acl_save_prefix="$prefix"
25927  prefix="$acl_final_prefix"
25928  acl_save_exec_prefix="$exec_prefix"
25929  exec_prefix="$acl_final_exec_prefix"
25930  eval x=\"$x\"
25931  exec_prefix="$acl_save_exec_prefix"
25932  prefix="$acl_save_prefix"
25933
25934                      if test "X$x" = "X-L$found_dir"; then
25935                        haveit=yes
25936                        break
25937                      fi
25938                    done
25939                    if test -z "$haveit"; then
25940                      LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
25941                    fi
25942                    if test "$acl_hardcode_minus_L" != no; then
25943                                                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
25944                    else
25945                                                                                                                                                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
25946                    fi
25947                  fi
25948                fi
25949              fi
25950            else
25951              if test "X$found_a" != "X"; then
25952                                LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
25953              else
25954                                                LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
25955              fi
25956            fi
25957                        additional_includedir=
25958            case "$found_dir" in
25959              */$acl_libdirstem | */$acl_libdirstem/)
25960                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
25961                LIBPTH_PREFIX="$basedir"
25962                additional_includedir="$basedir/include"
25963                ;;
25964            esac
25965            if test "X$additional_includedir" != "X"; then
25966                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
25967                haveit=
25968                if test "X$additional_includedir" = "X/usr/local/include"; then
25969                  if test -n "$GCC"; then
25970                    case $host_os in
25971                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
25972                    esac
25973                  fi
25974                fi
25975                if test -z "$haveit"; then
25976                  for x in $CPPFLAGS $INCPTH; do
25977
25978  acl_save_prefix="$prefix"
25979  prefix="$acl_final_prefix"
25980  acl_save_exec_prefix="$exec_prefix"
25981  exec_prefix="$acl_final_exec_prefix"
25982  eval x=\"$x\"
25983  exec_prefix="$acl_save_exec_prefix"
25984  prefix="$acl_save_prefix"
25985
25986                    if test "X$x" = "X-I$additional_includedir"; then
25987                      haveit=yes
25988                      break
25989                    fi
25990                  done
25991                  if test -z "$haveit"; then
25992                    if test -d "$additional_includedir"; then
25993                                            INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
25994                    fi
25995                  fi
25996                fi
25997              fi
25998            fi
25999                        if test -n "$found_la"; then
26000                                                        save_libdir="$libdir"
26001              case "$found_la" in
26002                */* | *\\*) . "$found_la" ;;
26003                *) . "./$found_la" ;;
26004              esac
26005              libdir="$save_libdir"
26006                            for dep in $dependency_libs; do
26007                case "$dep" in
26008                  -L*)
26009                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26010                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
26011                      haveit=
26012                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
26013                        if test -n "$GCC"; then
26014                          case $host_os in
26015                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26016                          esac
26017                        fi
26018                      fi
26019                      if test -z "$haveit"; then
26020                        haveit=
26021                        for x in $LDFLAGS $LIBPTH; do
26022
26023  acl_save_prefix="$prefix"
26024  prefix="$acl_final_prefix"
26025  acl_save_exec_prefix="$exec_prefix"
26026  exec_prefix="$acl_final_exec_prefix"
26027  eval x=\"$x\"
26028  exec_prefix="$acl_save_exec_prefix"
26029  prefix="$acl_save_prefix"
26030
26031                          if test "X$x" = "X-L$additional_libdir"; then
26032                            haveit=yes
26033                            break
26034                          fi
26035                        done
26036                        if test -z "$haveit"; then
26037                          if test -d "$additional_libdir"; then
26038                                                        LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
26039                          fi
26040                        fi
26041                        haveit=
26042                        for x in $LDFLAGS $LTLIBPTH; do
26043
26044  acl_save_prefix="$prefix"
26045  prefix="$acl_final_prefix"
26046  acl_save_exec_prefix="$exec_prefix"
26047  exec_prefix="$acl_final_exec_prefix"
26048  eval x=\"$x\"
26049  exec_prefix="$acl_save_exec_prefix"
26050  prefix="$acl_save_prefix"
26051
26052                          if test "X$x" = "X-L$additional_libdir"; then
26053                            haveit=yes
26054                            break
26055                          fi
26056                        done
26057                        if test -z "$haveit"; then
26058                          if test -d "$additional_libdir"; then
26059                                                        LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
26060                          fi
26061                        fi
26062                      fi
26063                    fi
26064                    ;;
26065                  -R*)
26066                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
26067                    if test "$enable_rpath" != no; then
26068                                                                  haveit=
26069                      for x in $rpathdirs; do
26070                        if test "X$x" = "X$dir"; then
26071                          haveit=yes
26072                          break
26073                        fi
26074                      done
26075                      if test -z "$haveit"; then
26076                        rpathdirs="$rpathdirs $dir"
26077                      fi
26078                                                                  haveit=
26079                      for x in $ltrpathdirs; do
26080                        if test "X$x" = "X$dir"; then
26081                          haveit=yes
26082                          break
26083                        fi
26084                      done
26085                      if test -z "$haveit"; then
26086                        ltrpathdirs="$ltrpathdirs $dir"
26087                      fi
26088                    fi
26089                    ;;
26090                  -l*)
26091                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26092                    ;;
26093                  *.la)
26094                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26095                    ;;
26096                  *)
26097                                        LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
26098                    LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
26099                    ;;
26100                esac
26101              done
26102            fi
26103          else
26104                                                            LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
26105            LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
26106          fi
26107        fi
26108      fi
26109    done
26110  done
26111  if test "X$rpathdirs" != "X"; then
26112    if test -n "$acl_hardcode_libdir_separator"; then
26113                        alldirs=
26114      for found_dir in $rpathdirs; do
26115        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
26116      done
26117            acl_save_libdir="$libdir"
26118      libdir="$alldirs"
26119      eval flag=\"$acl_hardcode_libdir_flag_spec\"
26120      libdir="$acl_save_libdir"
26121      LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
26122    else
26123            for found_dir in $rpathdirs; do
26124        acl_save_libdir="$libdir"
26125        libdir="$found_dir"
26126        eval flag=\"$acl_hardcode_libdir_flag_spec\"
26127        libdir="$acl_save_libdir"
26128        LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
26129      done
26130    fi
26131  fi
26132  if test "X$ltrpathdirs" != "X"; then
26133            for found_dir in $ltrpathdirs; do
26134      LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
26135    done
26136  fi
26137
26138    ac_cv_libpth_libs="$LIBPTH"
26139    ac_cv_libpth_ltlibs="$LTLIBPTH"
26140    ac_cv_libpth_cppflags="$INCPTH"
26141    ac_cv_libpth_prefix="$LIBPTH_PREFIX"
26142
26143fi
26144{ $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
26145$as_echo "$ac_cv_libpth_libs" >&6; }
26146  LIBPTH="$ac_cv_libpth_libs"
26147  LTLIBPTH="$ac_cv_libpth_ltlibs"
26148  INCPTH="$ac_cv_libpth_cppflags"
26149  LIBPTH_PREFIX="$ac_cv_libpth_prefix"
26150
26151  for element in $INCPTH; do
26152    haveit=
26153    for x in $CPPFLAGS; do
26154
26155  acl_save_prefix="$prefix"
26156  prefix="$acl_final_prefix"
26157  acl_save_exec_prefix="$exec_prefix"
26158  exec_prefix="$acl_final_exec_prefix"
26159  eval x=\"$x\"
26160  exec_prefix="$acl_save_exec_prefix"
26161  prefix="$acl_save_prefix"
26162
26163      if test "X$x" = "X$element"; then
26164        haveit=yes
26165        break
26166      fi
26167    done
26168    if test -z "$haveit"; then
26169      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
26170    fi
26171  done
26172
26173
26174
26175
26176      HAVE_LIBPTH=yes
26177
26178
26179
26180      gl_have_pth=
26181      gl_save_LIBS="$LIBS"
26182      LIBS="$LIBS -lpth"
26183      cat >conftest.$ac_ext <<_ACEOF
26184/* confdefs.h.  */
26185_ACEOF
26186cat confdefs.h >>conftest.$ac_ext
26187cat >>conftest.$ac_ext <<_ACEOF
26188/* end confdefs.h.  */
26189#include <pth.h>
26190int
26191main ()
26192{
26193pth_self();
26194  ;
26195  return 0;
26196}
26197_ACEOF
26198rm -f conftest.$ac_objext conftest$ac_exeext
26199if { (ac_try="$ac_link"
26200case "(($ac_try" in
26201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26202  *) ac_try_echo=$ac_try;;
26203esac
26204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26205$as_echo "$ac_try_echo") >&5
26206  (eval "$ac_link") 2>conftest.er1
26207  ac_status=$?
26208  grep -v '^ *+' conftest.er1 >conftest.err
26209  rm -f conftest.er1
26210  cat conftest.err >&5
26211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212  (exit $ac_status); } && {
26213	 test -z "$ac_c_werror_flag" ||
26214	 test ! -s conftest.err
26215       } && test -s conftest$ac_exeext && {
26216	 test "$cross_compiling" = yes ||
26217	 $as_test_x conftest$ac_exeext
26218       }; then
26219  gl_have_pth=yes
26220else
26221  $as_echo "$as_me: failed program was:" >&5
26222sed 's/^/| /' conftest.$ac_ext >&5
26223
26224
26225fi
26226
26227rm -rf conftest.dSYM
26228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26229      conftest$ac_exeext conftest.$ac_ext
26230      LIBS="$gl_save_LIBS"
26231      if test -n "$gl_have_pth"; then
26232        gl_threads_api=pth
26233        LIBTHREAD="$LIBPTH"
26234        LTLIBTHREAD="$LTLIBPTH"
26235        LIBMULTITHREAD="$LIBTHREAD"
26236        LTLIBMULTITHREAD="$LTLIBTHREAD"
26237
26238cat >>confdefs.h <<\_ACEOF
26239#define USE_PTH_THREADS 1
26240_ACEOF
26241
26242        if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
26243          if test $gl_have_weak = yes; then
26244
26245cat >>confdefs.h <<\_ACEOF
26246#define USE_PTH_THREADS_WEAK 1
26247_ACEOF
26248
26249            LIBTHREAD=
26250            LTLIBTHREAD=
26251          fi
26252        fi
26253      else
26254        CPPFLAGS="$gl_save_CPPFLAGS"
26255      fi
26256    fi
26257    if test -z "$gl_have_pthread"; then
26258      if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
26259        if { case "$host_os" in
26260               mingw*) true;;
26261               *) false;;
26262             esac
26263           }; then
26264          gl_threads_api=win32
26265
26266cat >>confdefs.h <<\_ACEOF
26267#define USE_WIN32_THREADS 1
26268_ACEOF
26269
26270        fi
26271      fi
26272    fi
26273  fi
26274  { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
26275$as_echo_n "checking for multithread API to use... " >&6; }
26276  { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
26277$as_echo "$gl_threads_api" >&6; }
26278
26279
26280
26281
26282
26283
26284
26285
26286
26287
26288
26289
26290
26291
26292
26293
26294
26295
26296
26297
26298    use_additional=yes
26299
26300  acl_save_prefix="$prefix"
26301  prefix="$acl_final_prefix"
26302  acl_save_exec_prefix="$exec_prefix"
26303  exec_prefix="$acl_final_exec_prefix"
26304
26305    eval additional_includedir=\"$includedir\"
26306    eval additional_libdir=\"$libdir\"
26307
26308  exec_prefix="$acl_save_exec_prefix"
26309  prefix="$acl_save_prefix"
26310
26311
26312# Check whether --with-libiconv-prefix was given.
26313if test "${with_libiconv_prefix+set}" = set; then
26314  withval=$with_libiconv_prefix;
26315    if test "X$withval" = "Xno"; then
26316      use_additional=no
26317    else
26318      if test "X$withval" = "X"; then
26319
26320  acl_save_prefix="$prefix"
26321  prefix="$acl_final_prefix"
26322  acl_save_exec_prefix="$exec_prefix"
26323  exec_prefix="$acl_final_exec_prefix"
26324
26325          eval additional_includedir=\"$includedir\"
26326          eval additional_libdir=\"$libdir\"
26327
26328  exec_prefix="$acl_save_exec_prefix"
26329  prefix="$acl_save_prefix"
26330
26331      else
26332        additional_includedir="$withval/include"
26333        additional_libdir="$withval/$acl_libdirstem"
26334      fi
26335    fi
26336
26337fi
26338
26339      LIBICONV=
26340  LTLIBICONV=
26341  INCICONV=
26342  LIBICONV_PREFIX=
26343  rpathdirs=
26344  ltrpathdirs=
26345  names_already_handled=
26346  names_next_round='iconv '
26347  while test -n "$names_next_round"; do
26348    names_this_round="$names_next_round"
26349    names_next_round=
26350    for name in $names_this_round; do
26351      already_handled=
26352      for n in $names_already_handled; do
26353        if test "$n" = "$name"; then
26354          already_handled=yes
26355          break
26356        fi
26357      done
26358      if test -z "$already_handled"; then
26359        names_already_handled="$names_already_handled $name"
26360                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
26361        eval value=\"\$HAVE_LIB$uppername\"
26362        if test -n "$value"; then
26363          if test "$value" = yes; then
26364            eval value=\"\$LIB$uppername\"
26365            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
26366            eval value=\"\$LTLIB$uppername\"
26367            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
26368          else
26369                                    :
26370          fi
26371        else
26372                              found_dir=
26373          found_la=
26374          found_so=
26375          found_a=
26376          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
26377          if test -n "$acl_shlibext"; then
26378            shrext=".$acl_shlibext"             # typically: shrext=.so
26379          else
26380            shrext=
26381          fi
26382          if test $use_additional = yes; then
26383            dir="$additional_libdir"
26384                                    if test -n "$acl_shlibext"; then
26385              if test -f "$dir/$libname$shrext"; then
26386                found_dir="$dir"
26387                found_so="$dir/$libname$shrext"
26388              else
26389                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26390                  ver=`(cd "$dir" && \
26391                        for f in "$libname$shrext".*; do echo "$f"; done \
26392                        | sed -e "s,^$libname$shrext\\\\.,," \
26393                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26394                        | sed 1q ) 2>/dev/null`
26395                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26396                    found_dir="$dir"
26397                    found_so="$dir/$libname$shrext.$ver"
26398                  fi
26399                else
26400                  eval library_names=\"$acl_library_names_spec\"
26401                  for f in $library_names; do
26402                    if test -f "$dir/$f"; then
26403                      found_dir="$dir"
26404                      found_so="$dir/$f"
26405                      break
26406                    fi
26407                  done
26408                fi
26409              fi
26410            fi
26411                        if test "X$found_dir" = "X"; then
26412              if test -f "$dir/$libname.$acl_libext"; then
26413                found_dir="$dir"
26414                found_a="$dir/$libname.$acl_libext"
26415              fi
26416            fi
26417            if test "X$found_dir" != "X"; then
26418              if test -f "$dir/$libname.la"; then
26419                found_la="$dir/$libname.la"
26420              fi
26421            fi
26422          fi
26423          if test "X$found_dir" = "X"; then
26424            for x in $LDFLAGS $LTLIBICONV; do
26425
26426  acl_save_prefix="$prefix"
26427  prefix="$acl_final_prefix"
26428  acl_save_exec_prefix="$exec_prefix"
26429  exec_prefix="$acl_final_exec_prefix"
26430  eval x=\"$x\"
26431  exec_prefix="$acl_save_exec_prefix"
26432  prefix="$acl_save_prefix"
26433
26434              case "$x" in
26435                -L*)
26436                  dir=`echo "X$x" | sed -e 's/^X-L//'`
26437                                    if test -n "$acl_shlibext"; then
26438                    if test -f "$dir/$libname$shrext"; then
26439                      found_dir="$dir"
26440                      found_so="$dir/$libname$shrext"
26441                    else
26442                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
26443                        ver=`(cd "$dir" && \
26444                              for f in "$libname$shrext".*; do echo "$f"; done \
26445                              | sed -e "s,^$libname$shrext\\\\.,," \
26446                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
26447                              | sed 1q ) 2>/dev/null`
26448                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
26449                          found_dir="$dir"
26450                          found_so="$dir/$libname$shrext.$ver"
26451                        fi
26452                      else
26453                        eval library_names=\"$acl_library_names_spec\"
26454                        for f in $library_names; do
26455                          if test -f "$dir/$f"; then
26456                            found_dir="$dir"
26457                            found_so="$dir/$f"
26458                            break
26459                          fi
26460                        done
26461                      fi
26462                    fi
26463                  fi
26464                                    if test "X$found_dir" = "X"; then
26465                    if test -f "$dir/$libname.$acl_libext"; then
26466                      found_dir="$dir"
26467                      found_a="$dir/$libname.$acl_libext"
26468                    fi
26469                  fi
26470                  if test "X$found_dir" != "X"; then
26471                    if test -f "$dir/$libname.la"; then
26472                      found_la="$dir/$libname.la"
26473                    fi
26474                  fi
26475                  ;;
26476              esac
26477              if test "X$found_dir" != "X"; then
26478                break
26479              fi
26480            done
26481          fi
26482          if test "X$found_dir" != "X"; then
26483                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
26484            if test "X$found_so" != "X"; then
26485                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
26486                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26487              else
26488                                                                                haveit=
26489                for x in $ltrpathdirs; do
26490                  if test "X$x" = "X$found_dir"; then
26491                    haveit=yes
26492                    break
26493                  fi
26494                done
26495                if test -z "$haveit"; then
26496                  ltrpathdirs="$ltrpathdirs $found_dir"
26497                fi
26498                                if test "$acl_hardcode_direct" = yes; then
26499                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26500                else
26501                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
26502                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26503                                                            haveit=
26504                    for x in $rpathdirs; do
26505                      if test "X$x" = "X$found_dir"; then
26506                        haveit=yes
26507                        break
26508                      fi
26509                    done
26510                    if test -z "$haveit"; then
26511                      rpathdirs="$rpathdirs $found_dir"
26512                    fi
26513                  else
26514                                                                                haveit=
26515                    for x in $LDFLAGS $LIBICONV; do
26516
26517  acl_save_prefix="$prefix"
26518  prefix="$acl_final_prefix"
26519  acl_save_exec_prefix="$exec_prefix"
26520  exec_prefix="$acl_final_exec_prefix"
26521  eval x=\"$x\"
26522  exec_prefix="$acl_save_exec_prefix"
26523  prefix="$acl_save_prefix"
26524
26525                      if test "X$x" = "X-L$found_dir"; then
26526                        haveit=yes
26527                        break
26528                      fi
26529                    done
26530                    if test -z "$haveit"; then
26531                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
26532                    fi
26533                    if test "$acl_hardcode_minus_L" != no; then
26534                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
26535                    else
26536                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26537                    fi
26538                  fi
26539                fi
26540              fi
26541            else
26542              if test "X$found_a" != "X"; then
26543                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
26544              else
26545                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
26546              fi
26547            fi
26548                        additional_includedir=
26549            case "$found_dir" in
26550              */$acl_libdirstem | */$acl_libdirstem/)
26551                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
26552                LIBICONV_PREFIX="$basedir"
26553                additional_includedir="$basedir/include"
26554                ;;
26555            esac
26556            if test "X$additional_includedir" != "X"; then
26557                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
26558                haveit=
26559                if test "X$additional_includedir" = "X/usr/local/include"; then
26560                  if test -n "$GCC"; then
26561                    case $host_os in
26562                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26563                    esac
26564                  fi
26565                fi
26566                if test -z "$haveit"; then
26567                  for x in $CPPFLAGS $INCICONV; do
26568
26569  acl_save_prefix="$prefix"
26570  prefix="$acl_final_prefix"
26571  acl_save_exec_prefix="$exec_prefix"
26572  exec_prefix="$acl_final_exec_prefix"
26573  eval x=\"$x\"
26574  exec_prefix="$acl_save_exec_prefix"
26575  prefix="$acl_save_prefix"
26576
26577                    if test "X$x" = "X-I$additional_includedir"; then
26578                      haveit=yes
26579                      break
26580                    fi
26581                  done
26582                  if test -z "$haveit"; then
26583                    if test -d "$additional_includedir"; then
26584                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
26585                    fi
26586                  fi
26587                fi
26588              fi
26589            fi
26590                        if test -n "$found_la"; then
26591                                                        save_libdir="$libdir"
26592              case "$found_la" in
26593                */* | *\\*) . "$found_la" ;;
26594                *) . "./$found_la" ;;
26595              esac
26596              libdir="$save_libdir"
26597                            for dep in $dependency_libs; do
26598                case "$dep" in
26599                  -L*)
26600                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
26601                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
26602                      haveit=
26603                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
26604                        if test -n "$GCC"; then
26605                          case $host_os in
26606                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
26607                          esac
26608                        fi
26609                      fi
26610                      if test -z "$haveit"; then
26611                        haveit=
26612                        for x in $LDFLAGS $LIBICONV; do
26613
26614  acl_save_prefix="$prefix"
26615  prefix="$acl_final_prefix"
26616  acl_save_exec_prefix="$exec_prefix"
26617  exec_prefix="$acl_final_exec_prefix"
26618  eval x=\"$x\"
26619  exec_prefix="$acl_save_exec_prefix"
26620  prefix="$acl_save_prefix"
26621
26622                          if test "X$x" = "X-L$additional_libdir"; then
26623                            haveit=yes
26624                            break
26625                          fi
26626                        done
26627                        if test -z "$haveit"; then
26628                          if test -d "$additional_libdir"; then
26629                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
26630                          fi
26631                        fi
26632                        haveit=
26633                        for x in $LDFLAGS $LTLIBICONV; do
26634
26635  acl_save_prefix="$prefix"
26636  prefix="$acl_final_prefix"
26637  acl_save_exec_prefix="$exec_prefix"
26638  exec_prefix="$acl_final_exec_prefix"
26639  eval x=\"$x\"
26640  exec_prefix="$acl_save_exec_prefix"
26641  prefix="$acl_save_prefix"
26642
26643                          if test "X$x" = "X-L$additional_libdir"; then
26644                            haveit=yes
26645                            break
26646                          fi
26647                        done
26648                        if test -z "$haveit"; then
26649                          if test -d "$additional_libdir"; then
26650                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
26651                          fi
26652                        fi
26653                      fi
26654                    fi
26655                    ;;
26656                  -R*)
26657                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
26658                    if test "$enable_rpath" != no; then
26659                                                                  haveit=
26660                      for x in $rpathdirs; do
26661                        if test "X$x" = "X$dir"; then
26662                          haveit=yes
26663                          break
26664                        fi
26665                      done
26666                      if test -z "$haveit"; then
26667                        rpathdirs="$rpathdirs $dir"
26668                      fi
26669                                                                  haveit=
26670                      for x in $ltrpathdirs; do
26671                        if test "X$x" = "X$dir"; then
26672                          haveit=yes
26673                          break
26674                        fi
26675                      done
26676                      if test -z "$haveit"; then
26677                        ltrpathdirs="$ltrpathdirs $dir"
26678                      fi
26679                    fi
26680                    ;;
26681                  -l*)
26682                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
26683                    ;;
26684                  *.la)
26685                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
26686                    ;;
26687                  *)
26688                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
26689                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
26690                    ;;
26691                esac
26692              done
26693            fi
26694          else
26695                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
26696            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
26697          fi
26698        fi
26699      fi
26700    done
26701  done
26702  if test "X$rpathdirs" != "X"; then
26703    if test -n "$acl_hardcode_libdir_separator"; then
26704                        alldirs=
26705      for found_dir in $rpathdirs; do
26706        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
26707      done
26708            acl_save_libdir="$libdir"
26709      libdir="$alldirs"
26710      eval flag=\"$acl_hardcode_libdir_flag_spec\"
26711      libdir="$acl_save_libdir"
26712      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26713    else
26714            for found_dir in $rpathdirs; do
26715        acl_save_libdir="$libdir"
26716        libdir="$found_dir"
26717        eval flag=\"$acl_hardcode_libdir_flag_spec\"
26718        libdir="$acl_save_libdir"
26719        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
26720      done
26721    fi
26722  fi
26723  if test "X$ltrpathdirs" != "X"; then
26724            for found_dir in $ltrpathdirs; do
26725      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
26726    done
26727  fi
26728
26729
26730
26731
26732
26733  cat >conftest.$ac_ext <<_ACEOF
26734/* confdefs.h.  */
26735_ACEOF
26736cat confdefs.h >>conftest.$ac_ext
26737cat >>conftest.$ac_ext <<_ACEOF
26738/* end confdefs.h.  */
26739int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
26740int
26741main ()
26742{
26743
26744  ;
26745  return 0;
26746}
26747_ACEOF
26748rm -f conftest.$ac_objext conftest$ac_exeext
26749if { (ac_try="$ac_link"
26750case "(($ac_try" in
26751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752  *) ac_try_echo=$ac_try;;
26753esac
26754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26755$as_echo "$ac_try_echo") >&5
26756  (eval "$ac_link") 2>conftest.er1
26757  ac_status=$?
26758  grep -v '^ *+' conftest.er1 >conftest.err
26759  rm -f conftest.er1
26760  cat conftest.err >&5
26761  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762  (exit $ac_status); } && {
26763	 test -z "$ac_c_werror_flag" ||
26764	 test ! -s conftest.err
26765       } && test -s conftest$ac_exeext && {
26766	 test "$cross_compiling" = yes ||
26767	 $as_test_x conftest$ac_exeext
26768       }; then
26769
26770cat >>confdefs.h <<\_ACEOF
26771#define HAVE_BUILTIN_EXPECT 1
26772_ACEOF
26773
26774else
26775  $as_echo "$as_me: failed program was:" >&5
26776sed 's/^/| /' conftest.$ac_ext >&5
26777
26778
26779fi
26780
26781rm -rf conftest.dSYM
26782rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26783      conftest$ac_exeext conftest.$ac_ext
26784
26785
26786
26787
26788
26789
26790for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
26791do
26792as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26793if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26794  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26795$as_echo_n "checking for $ac_header... " >&6; }
26796if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26797  $as_echo_n "(cached) " >&6
26798fi
26799ac_res=`eval 'as_val=${'$as_ac_Header'}
26800		 $as_echo "$as_val"'`
26801	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26802$as_echo "$ac_res" >&6; }
26803else
26804  # Is the header compilable?
26805{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
26806$as_echo_n "checking $ac_header usability... " >&6; }
26807cat >conftest.$ac_ext <<_ACEOF
26808/* confdefs.h.  */
26809_ACEOF
26810cat confdefs.h >>conftest.$ac_ext
26811cat >>conftest.$ac_ext <<_ACEOF
26812/* end confdefs.h.  */
26813$ac_includes_default
26814#include <$ac_header>
26815_ACEOF
26816rm -f conftest.$ac_objext
26817if { (ac_try="$ac_compile"
26818case "(($ac_try" in
26819  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820  *) ac_try_echo=$ac_try;;
26821esac
26822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26823$as_echo "$ac_try_echo") >&5
26824  (eval "$ac_compile") 2>conftest.er1
26825  ac_status=$?
26826  grep -v '^ *+' conftest.er1 >conftest.err
26827  rm -f conftest.er1
26828  cat conftest.err >&5
26829  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830  (exit $ac_status); } && {
26831	 test -z "$ac_c_werror_flag" ||
26832	 test ! -s conftest.err
26833       } && test -s conftest.$ac_objext; then
26834  ac_header_compiler=yes
26835else
26836  $as_echo "$as_me: failed program was:" >&5
26837sed 's/^/| /' conftest.$ac_ext >&5
26838
26839	ac_header_compiler=no
26840fi
26841
26842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26844$as_echo "$ac_header_compiler" >&6; }
26845
26846# Is the header present?
26847{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
26848$as_echo_n "checking $ac_header presence... " >&6; }
26849cat >conftest.$ac_ext <<_ACEOF
26850/* confdefs.h.  */
26851_ACEOF
26852cat confdefs.h >>conftest.$ac_ext
26853cat >>conftest.$ac_ext <<_ACEOF
26854/* end confdefs.h.  */
26855#include <$ac_header>
26856_ACEOF
26857if { (ac_try="$ac_cpp conftest.$ac_ext"
26858case "(($ac_try" in
26859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860  *) ac_try_echo=$ac_try;;
26861esac
26862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26863$as_echo "$ac_try_echo") >&5
26864  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26865  ac_status=$?
26866  grep -v '^ *+' conftest.er1 >conftest.err
26867  rm -f conftest.er1
26868  cat conftest.err >&5
26869  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870  (exit $ac_status); } >/dev/null && {
26871	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26872	 test ! -s conftest.err
26873       }; then
26874  ac_header_preproc=yes
26875else
26876  $as_echo "$as_me: failed program was:" >&5
26877sed 's/^/| /' conftest.$ac_ext >&5
26878
26879  ac_header_preproc=no
26880fi
26881
26882rm -f conftest.err conftest.$ac_ext
26883{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26884$as_echo "$ac_header_preproc" >&6; }
26885
26886# So?  What about this header?
26887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26888  yes:no: )
26889    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26890$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26891    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26892$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26893    ac_header_preproc=yes
26894    ;;
26895  no:yes:* )
26896    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26897$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26898    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26899$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26900    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26901$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26902    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26903$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26904    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26905$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26906    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26907$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26908
26909    ;;
26910esac
26911{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
26912$as_echo_n "checking for $ac_header... " >&6; }
26913if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26914  $as_echo_n "(cached) " >&6
26915else
26916  eval "$as_ac_Header=\$ac_header_preproc"
26917fi
26918ac_res=`eval 'as_val=${'$as_ac_Header'}
26919		 $as_echo "$as_val"'`
26920	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26921$as_echo "$ac_res" >&6; }
26922
26923fi
26924as_val=`eval 'as_val=${'$as_ac_Header'}
26925		 $as_echo "$as_val"'`
26926   if test "x$as_val" = x""yes; then
26927  cat >>confdefs.h <<_ACEOF
26928#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26929_ACEOF
26930
26931fi
26932
26933done
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946
26947
26948
26949
26950
26951for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
26952    stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
26953    argz_next __fsetlocking
26954do
26955as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26956{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26957$as_echo_n "checking for $ac_func... " >&6; }
26958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26959  $as_echo_n "(cached) " >&6
26960else
26961  cat >conftest.$ac_ext <<_ACEOF
26962/* confdefs.h.  */
26963_ACEOF
26964cat confdefs.h >>conftest.$ac_ext
26965cat >>conftest.$ac_ext <<_ACEOF
26966/* end confdefs.h.  */
26967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26968   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26969#define $ac_func innocuous_$ac_func
26970
26971/* System header to define __stub macros and hopefully few prototypes,
26972    which can conflict with char $ac_func (); below.
26973    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26974    <limits.h> exists even on freestanding compilers.  */
26975
26976#ifdef __STDC__
26977# include <limits.h>
26978#else
26979# include <assert.h>
26980#endif
26981
26982#undef $ac_func
26983
26984/* Override any GCC internal prototype to avoid an error.
26985   Use char because int might match the return type of a GCC
26986   builtin and then its argument prototype would still apply.  */
26987#ifdef __cplusplus
26988extern "C"
26989#endif
26990char $ac_func ();
26991/* The GNU C library defines this for functions which it implements
26992    to always fail with ENOSYS.  Some functions are actually named
26993    something starting with __ and the normal name is an alias.  */
26994#if defined __stub_$ac_func || defined __stub___$ac_func
26995choke me
26996#endif
26997
26998int
26999main ()
27000{
27001return $ac_func ();
27002  ;
27003  return 0;
27004}
27005_ACEOF
27006rm -f conftest.$ac_objext conftest$ac_exeext
27007if { (ac_try="$ac_link"
27008case "(($ac_try" in
27009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27010  *) ac_try_echo=$ac_try;;
27011esac
27012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27013$as_echo "$ac_try_echo") >&5
27014  (eval "$ac_link") 2>conftest.er1
27015  ac_status=$?
27016  grep -v '^ *+' conftest.er1 >conftest.err
27017  rm -f conftest.er1
27018  cat conftest.err >&5
27019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020  (exit $ac_status); } && {
27021	 test -z "$ac_c_werror_flag" ||
27022	 test ! -s conftest.err
27023       } && test -s conftest$ac_exeext && {
27024	 test "$cross_compiling" = yes ||
27025	 $as_test_x conftest$ac_exeext
27026       }; then
27027  eval "$as_ac_var=yes"
27028else
27029  $as_echo "$as_me: failed program was:" >&5
27030sed 's/^/| /' conftest.$ac_ext >&5
27031
27032	eval "$as_ac_var=no"
27033fi
27034
27035rm -rf conftest.dSYM
27036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27037      conftest$ac_exeext conftest.$ac_ext
27038fi
27039ac_res=`eval 'as_val=${'$as_ac_var'}
27040		 $as_echo "$as_val"'`
27041	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27042$as_echo "$ac_res" >&6; }
27043as_val=`eval 'as_val=${'$as_ac_var'}
27044		 $as_echo "$as_val"'`
27045   if test "x$as_val" = x""yes; then
27046  cat >>confdefs.h <<_ACEOF
27047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27048_ACEOF
27049
27050fi
27051done
27052
27053
27054
27055  { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
27056$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
27057if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
27058  $as_echo_n "(cached) " >&6
27059else
27060  cat >conftest.$ac_ext <<_ACEOF
27061/* confdefs.h.  */
27062_ACEOF
27063cat confdefs.h >>conftest.$ac_ext
27064cat >>conftest.$ac_ext <<_ACEOF
27065/* end confdefs.h.  */
27066#include <stdio.h>
27067int
27068main ()
27069{
27070
27071#ifndef feof_unlocked
27072  char *p = (char *) feof_unlocked;
27073#endif
27074
27075  ;
27076  return 0;
27077}
27078_ACEOF
27079rm -f conftest.$ac_objext
27080if { (ac_try="$ac_compile"
27081case "(($ac_try" in
27082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083  *) ac_try_echo=$ac_try;;
27084esac
27085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27086$as_echo "$ac_try_echo") >&5
27087  (eval "$ac_compile") 2>conftest.er1
27088  ac_status=$?
27089  grep -v '^ *+' conftest.er1 >conftest.err
27090  rm -f conftest.er1
27091  cat conftest.err >&5
27092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093  (exit $ac_status); } && {
27094	 test -z "$ac_c_werror_flag" ||
27095	 test ! -s conftest.err
27096       } && test -s conftest.$ac_objext; then
27097  ac_cv_have_decl_feof_unlocked=yes
27098else
27099  $as_echo "$as_me: failed program was:" >&5
27100sed 's/^/| /' conftest.$ac_ext >&5
27101
27102	ac_cv_have_decl_feof_unlocked=no
27103fi
27104
27105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27106fi
27107{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
27108$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
27109  if test $ac_cv_have_decl_feof_unlocked = yes; then
27110    gt_value=1
27111  else
27112    gt_value=0
27113  fi
27114
27115cat >>confdefs.h <<_ACEOF
27116#define HAVE_DECL_FEOF_UNLOCKED $gt_value
27117_ACEOF
27118
27119
27120
27121  { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
27122$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
27123if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
27124  $as_echo_n "(cached) " >&6
27125else
27126  cat >conftest.$ac_ext <<_ACEOF
27127/* confdefs.h.  */
27128_ACEOF
27129cat confdefs.h >>conftest.$ac_ext
27130cat >>conftest.$ac_ext <<_ACEOF
27131/* end confdefs.h.  */
27132#include <stdio.h>
27133int
27134main ()
27135{
27136
27137#ifndef fgets_unlocked
27138  char *p = (char *) fgets_unlocked;
27139#endif
27140
27141  ;
27142  return 0;
27143}
27144_ACEOF
27145rm -f conftest.$ac_objext
27146if { (ac_try="$ac_compile"
27147case "(($ac_try" in
27148  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149  *) ac_try_echo=$ac_try;;
27150esac
27151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27152$as_echo "$ac_try_echo") >&5
27153  (eval "$ac_compile") 2>conftest.er1
27154  ac_status=$?
27155  grep -v '^ *+' conftest.er1 >conftest.err
27156  rm -f conftest.er1
27157  cat conftest.err >&5
27158  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159  (exit $ac_status); } && {
27160	 test -z "$ac_c_werror_flag" ||
27161	 test ! -s conftest.err
27162       } && test -s conftest.$ac_objext; then
27163  ac_cv_have_decl_fgets_unlocked=yes
27164else
27165  $as_echo "$as_me: failed program was:" >&5
27166sed 's/^/| /' conftest.$ac_ext >&5
27167
27168	ac_cv_have_decl_fgets_unlocked=no
27169fi
27170
27171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27172fi
27173{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
27174$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
27175  if test $ac_cv_have_decl_fgets_unlocked = yes; then
27176    gt_value=1
27177  else
27178    gt_value=0
27179  fi
27180
27181cat >>confdefs.h <<_ACEOF
27182#define HAVE_DECL_FGETS_UNLOCKED $gt_value
27183_ACEOF
27184
27185
27186
27187
27188
27189
27190
27191
27192          am_save_CPPFLAGS="$CPPFLAGS"
27193
27194  for element in $INCICONV; do
27195    haveit=
27196    for x in $CPPFLAGS; do
27197
27198  acl_save_prefix="$prefix"
27199  prefix="$acl_final_prefix"
27200  acl_save_exec_prefix="$exec_prefix"
27201  exec_prefix="$acl_final_exec_prefix"
27202  eval x=\"$x\"
27203  exec_prefix="$acl_save_exec_prefix"
27204  prefix="$acl_save_prefix"
27205
27206      if test "X$x" = "X$element"; then
27207        haveit=yes
27208        break
27209      fi
27210    done
27211    if test -z "$haveit"; then
27212      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
27213    fi
27214  done
27215
27216
27217  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
27218$as_echo_n "checking for iconv... " >&6; }
27219if test "${am_cv_func_iconv+set}" = set; then
27220  $as_echo_n "(cached) " >&6
27221else
27222
27223    am_cv_func_iconv="no, consider installing GNU libiconv"
27224    am_cv_lib_iconv=no
27225    cat >conftest.$ac_ext <<_ACEOF
27226/* confdefs.h.  */
27227_ACEOF
27228cat confdefs.h >>conftest.$ac_ext
27229cat >>conftest.$ac_ext <<_ACEOF
27230/* end confdefs.h.  */
27231#include <stdlib.h>
27232#include <iconv.h>
27233int
27234main ()
27235{
27236iconv_t cd = iconv_open("","");
27237       iconv(cd,NULL,NULL,NULL,NULL);
27238       iconv_close(cd);
27239  ;
27240  return 0;
27241}
27242_ACEOF
27243rm -f conftest.$ac_objext conftest$ac_exeext
27244if { (ac_try="$ac_link"
27245case "(($ac_try" in
27246  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27247  *) ac_try_echo=$ac_try;;
27248esac
27249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27250$as_echo "$ac_try_echo") >&5
27251  (eval "$ac_link") 2>conftest.er1
27252  ac_status=$?
27253  grep -v '^ *+' conftest.er1 >conftest.err
27254  rm -f conftest.er1
27255  cat conftest.err >&5
27256  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257  (exit $ac_status); } && {
27258	 test -z "$ac_c_werror_flag" ||
27259	 test ! -s conftest.err
27260       } && test -s conftest$ac_exeext && {
27261	 test "$cross_compiling" = yes ||
27262	 $as_test_x conftest$ac_exeext
27263       }; then
27264  am_cv_func_iconv=yes
27265else
27266  $as_echo "$as_me: failed program was:" >&5
27267sed 's/^/| /' conftest.$ac_ext >&5
27268
27269
27270fi
27271
27272rm -rf conftest.dSYM
27273rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27274      conftest$ac_exeext conftest.$ac_ext
27275    if test "$am_cv_func_iconv" != yes; then
27276      am_save_LIBS="$LIBS"
27277      LIBS="$LIBS $LIBICONV"
27278      cat >conftest.$ac_ext <<_ACEOF
27279/* confdefs.h.  */
27280_ACEOF
27281cat confdefs.h >>conftest.$ac_ext
27282cat >>conftest.$ac_ext <<_ACEOF
27283/* end confdefs.h.  */
27284#include <stdlib.h>
27285#include <iconv.h>
27286int
27287main ()
27288{
27289iconv_t cd = iconv_open("","");
27290         iconv(cd,NULL,NULL,NULL,NULL);
27291         iconv_close(cd);
27292  ;
27293  return 0;
27294}
27295_ACEOF
27296rm -f conftest.$ac_objext conftest$ac_exeext
27297if { (ac_try="$ac_link"
27298case "(($ac_try" in
27299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27300  *) ac_try_echo=$ac_try;;
27301esac
27302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27303$as_echo "$ac_try_echo") >&5
27304  (eval "$ac_link") 2>conftest.er1
27305  ac_status=$?
27306  grep -v '^ *+' conftest.er1 >conftest.err
27307  rm -f conftest.er1
27308  cat conftest.err >&5
27309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310  (exit $ac_status); } && {
27311	 test -z "$ac_c_werror_flag" ||
27312	 test ! -s conftest.err
27313       } && test -s conftest$ac_exeext && {
27314	 test "$cross_compiling" = yes ||
27315	 $as_test_x conftest$ac_exeext
27316       }; then
27317  am_cv_lib_iconv=yes
27318        am_cv_func_iconv=yes
27319else
27320  $as_echo "$as_me: failed program was:" >&5
27321sed 's/^/| /' conftest.$ac_ext >&5
27322
27323
27324fi
27325
27326rm -rf conftest.dSYM
27327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27328      conftest$ac_exeext conftest.$ac_ext
27329      LIBS="$am_save_LIBS"
27330    fi
27331
27332fi
27333{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27334$as_echo "$am_cv_func_iconv" >&6; }
27335  if test "$am_cv_func_iconv" = yes; then
27336    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
27337$as_echo_n "checking for working iconv... " >&6; }
27338if test "${am_cv_func_iconv_works+set}" = set; then
27339  $as_echo_n "(cached) " >&6
27340else
27341
27342            am_save_LIBS="$LIBS"
27343      if test $am_cv_lib_iconv = yes; then
27344        LIBS="$LIBS $LIBICONV"
27345      fi
27346      if test "$cross_compiling" = yes; then
27347  case "$host_os" in
27348           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
27349           *)            am_cv_func_iconv_works="guessing yes" ;;
27350         esac
27351else
27352  cat >conftest.$ac_ext <<_ACEOF
27353/* confdefs.h.  */
27354_ACEOF
27355cat confdefs.h >>conftest.$ac_ext
27356cat >>conftest.$ac_ext <<_ACEOF
27357/* end confdefs.h.  */
27358
27359#include <iconv.h>
27360#include <string.h>
27361int main ()
27362{
27363  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
27364     returns.  */
27365  {
27366    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
27367    if (cd_utf8_to_88591 != (iconv_t)(-1))
27368      {
27369        static const char input[] = "\342\202\254"; /* EURO SIGN */
27370        char buf[10];
27371        const char *inptr = input;
27372        size_t inbytesleft = strlen (input);
27373        char *outptr = buf;
27374        size_t outbytesleft = sizeof (buf);
27375        size_t res = iconv (cd_utf8_to_88591,
27376                            (char **) &inptr, &inbytesleft,
27377                            &outptr, &outbytesleft);
27378        if (res == 0)
27379          return 1;
27380      }
27381  }
27382#if 0 /* This bug could be worked around by the caller.  */
27383  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
27384  {
27385    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
27386    if (cd_88591_to_utf8 != (iconv_t)(-1))
27387      {
27388        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
27389        char buf[50];
27390        const char *inptr = input;
27391        size_t inbytesleft = strlen (input);
27392        char *outptr = buf;
27393        size_t outbytesleft = sizeof (buf);
27394        size_t res = iconv (cd_88591_to_utf8,
27395                            (char **) &inptr, &inbytesleft,
27396                            &outptr, &outbytesleft);
27397        if ((int)res > 0)
27398          return 1;
27399      }
27400  }
27401#endif
27402  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
27403     provided.  */
27404  if (/* Try standardized names.  */
27405      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
27406      /* Try IRIX, OSF/1 names.  */
27407      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
27408      /* Try AIX names.  */
27409      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
27410      /* Try HP-UX names.  */
27411      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
27412    return 1;
27413  return 0;
27414}
27415_ACEOF
27416rm -f conftest$ac_exeext
27417if { (ac_try="$ac_link"
27418case "(($ac_try" in
27419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27420  *) ac_try_echo=$ac_try;;
27421esac
27422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27423$as_echo "$ac_try_echo") >&5
27424  (eval "$ac_link") 2>&5
27425  ac_status=$?
27426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27428  { (case "(($ac_try" in
27429  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27430  *) ac_try_echo=$ac_try;;
27431esac
27432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27433$as_echo "$ac_try_echo") >&5
27434  (eval "$ac_try") 2>&5
27435  ac_status=$?
27436  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437  (exit $ac_status); }; }; then
27438  am_cv_func_iconv_works=yes
27439else
27440  $as_echo "$as_me: program exited with status $ac_status" >&5
27441$as_echo "$as_me: failed program was:" >&5
27442sed 's/^/| /' conftest.$ac_ext >&5
27443
27444( exit $ac_status )
27445am_cv_func_iconv_works=no
27446fi
27447rm -rf conftest.dSYM
27448rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27449fi
27450
27451
27452      LIBS="$am_save_LIBS"
27453
27454fi
27455{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
27456$as_echo "$am_cv_func_iconv_works" >&6; }
27457    case "$am_cv_func_iconv_works" in
27458      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
27459      *)   am_func_iconv=yes ;;
27460    esac
27461  else
27462    am_func_iconv=no am_cv_lib_iconv=no
27463  fi
27464  if test "$am_func_iconv" = yes; then
27465
27466cat >>confdefs.h <<\_ACEOF
27467#define HAVE_ICONV 1
27468_ACEOF
27469
27470  fi
27471  if test "$am_cv_lib_iconv" = yes; then
27472    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
27473$as_echo_n "checking how to link with libiconv... " >&6; }
27474    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
27475$as_echo "$LIBICONV" >&6; }
27476  else
27477            CPPFLAGS="$am_save_CPPFLAGS"
27478    LIBICONV=
27479    LTLIBICONV=
27480  fi
27481
27482
27483
27484  if test "$am_cv_func_iconv" = yes; then
27485    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
27486$as_echo_n "checking for iconv declaration... " >&6; }
27487    if test "${am_cv_proto_iconv+set}" = set; then
27488  $as_echo_n "(cached) " >&6
27489else
27490
27491      cat >conftest.$ac_ext <<_ACEOF
27492/* confdefs.h.  */
27493_ACEOF
27494cat confdefs.h >>conftest.$ac_ext
27495cat >>conftest.$ac_ext <<_ACEOF
27496/* end confdefs.h.  */
27497
27498#include <stdlib.h>
27499#include <iconv.h>
27500extern
27501#ifdef __cplusplus
27502"C"
27503#endif
27504#if defined(__STDC__) || defined(__cplusplus)
27505size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27506#else
27507size_t iconv();
27508#endif
27509
27510int
27511main ()
27512{
27513
27514  ;
27515  return 0;
27516}
27517_ACEOF
27518rm -f conftest.$ac_objext
27519if { (ac_try="$ac_compile"
27520case "(($ac_try" in
27521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27522  *) ac_try_echo=$ac_try;;
27523esac
27524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27525$as_echo "$ac_try_echo") >&5
27526  (eval "$ac_compile") 2>conftest.er1
27527  ac_status=$?
27528  grep -v '^ *+' conftest.er1 >conftest.err
27529  rm -f conftest.er1
27530  cat conftest.err >&5
27531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532  (exit $ac_status); } && {
27533	 test -z "$ac_c_werror_flag" ||
27534	 test ! -s conftest.err
27535       } && test -s conftest.$ac_objext; then
27536  am_cv_proto_iconv_arg1=""
27537else
27538  $as_echo "$as_me: failed program was:" >&5
27539sed 's/^/| /' conftest.$ac_ext >&5
27540
27541	am_cv_proto_iconv_arg1="const"
27542fi
27543
27544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27545      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);"
27546fi
27547
27548    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
27549    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
27550         }$am_cv_proto_iconv" >&5
27551$as_echo "${ac_t:-
27552         }$am_cv_proto_iconv" >&6; }
27553
27554cat >>confdefs.h <<_ACEOF
27555#define ICONV_CONST $am_cv_proto_iconv_arg1
27556_ACEOF
27557
27558  fi
27559
27560
27561      { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
27562$as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
27563if test "${gt_cv_nl_locale_name+set}" = set; then
27564  $as_echo_n "(cached) " >&6
27565else
27566  cat >conftest.$ac_ext <<_ACEOF
27567/* confdefs.h.  */
27568_ACEOF
27569cat confdefs.h >>conftest.$ac_ext
27570cat >>conftest.$ac_ext <<_ACEOF
27571/* end confdefs.h.  */
27572#include <langinfo.h>
27573#include <locale.h>
27574int
27575main ()
27576{
27577char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
27578       return !cs;
27579
27580  ;
27581  return 0;
27582}
27583_ACEOF
27584rm -f conftest.$ac_objext conftest$ac_exeext
27585if { (ac_try="$ac_link"
27586case "(($ac_try" in
27587  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588  *) ac_try_echo=$ac_try;;
27589esac
27590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27591$as_echo "$ac_try_echo") >&5
27592  (eval "$ac_link") 2>conftest.er1
27593  ac_status=$?
27594  grep -v '^ *+' conftest.er1 >conftest.err
27595  rm -f conftest.er1
27596  cat conftest.err >&5
27597  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598  (exit $ac_status); } && {
27599	 test -z "$ac_c_werror_flag" ||
27600	 test ! -s conftest.err
27601       } && test -s conftest$ac_exeext && {
27602	 test "$cross_compiling" = yes ||
27603	 $as_test_x conftest$ac_exeext
27604       }; then
27605  gt_cv_nl_locale_name=yes
27606else
27607  $as_echo "$as_me: failed program was:" >&5
27608sed 's/^/| /' conftest.$ac_ext >&5
27609
27610	gt_cv_nl_locale_name=no
27611fi
27612
27613rm -rf conftest.dSYM
27614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27615      conftest$ac_exeext conftest.$ac_ext
27616
27617fi
27618{ $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
27619$as_echo "$gt_cv_nl_locale_name" >&6; }
27620  if test $gt_cv_nl_locale_name = yes; then
27621
27622cat >>confdefs.h <<\_ACEOF
27623#define HAVE_NL_LOCALE_NAME 1
27624_ACEOF
27625
27626  fi
27627
27628                      for ac_prog in bison
27629do
27630  # Extract the first word of "$ac_prog", so it can be a program name with args.
27631set dummy $ac_prog; ac_word=$2
27632{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27633$as_echo_n "checking for $ac_word... " >&6; }
27634if test "${ac_cv_prog_INTLBISON+set}" = set; then
27635  $as_echo_n "(cached) " >&6
27636else
27637  if test -n "$INTLBISON"; then
27638  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
27639else
27640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27641for as_dir in $PATH
27642do
27643  IFS=$as_save_IFS
27644  test -z "$as_dir" && as_dir=.
27645  for ac_exec_ext in '' $ac_executable_extensions; do
27646  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27647    ac_cv_prog_INTLBISON="$ac_prog"
27648    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27649    break 2
27650  fi
27651done
27652done
27653IFS=$as_save_IFS
27654
27655fi
27656fi
27657INTLBISON=$ac_cv_prog_INTLBISON
27658if test -n "$INTLBISON"; then
27659  { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
27660$as_echo "$INTLBISON" >&6; }
27661else
27662  { $as_echo "$as_me:$LINENO: result: no" >&5
27663$as_echo "no" >&6; }
27664fi
27665
27666
27667  test -n "$INTLBISON" && break
27668done
27669
27670  if test -z "$INTLBISON"; then
27671    ac_verc_fail=yes
27672  else
27673        { $as_echo "$as_me:$LINENO: checking version of bison" >&5
27674$as_echo_n "checking version of bison... " >&6; }
27675    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
27676    case $ac_prog_version in
27677      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
27678      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
27679         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
27680      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
27681    esac
27682    { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
27683$as_echo "$ac_prog_version" >&6; }
27684  fi
27685  if test $ac_verc_fail = yes; then
27686    INTLBISON=:
27687  fi
27688
27689
27690  { $as_echo "$as_me:$LINENO: checking for long long int" >&5
27691$as_echo_n "checking for long long int... " >&6; }
27692if test "${ac_cv_type_long_long_int+set}" = set; then
27693  $as_echo_n "(cached) " >&6
27694else
27695  cat >conftest.$ac_ext <<_ACEOF
27696
27697  /* confdefs.h.  */
27698_ACEOF
27699cat confdefs.h >>conftest.$ac_ext
27700cat >>conftest.$ac_ext <<_ACEOF
27701/* end confdefs.h.  */
27702/* Test preprocessor.  */
27703      #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
27704        error in preprocessor;
27705      #endif
27706      #if ! (18446744073709551615ULL <= -1ull)
27707        error in preprocessor;
27708      #endif
27709      /* Test literals.  */
27710      long long int ll = 9223372036854775807ll;
27711      long long int nll = -9223372036854775807LL;
27712      unsigned long long int ull = 18446744073709551615ULL;
27713      /* Test constant expressions.   */
27714      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
27715		     ? 1 : -1)];
27716      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
27717		     ? 1 : -1)];
27718      int i = 63;
27719int
27720main ()
27721{
27722/* Test availability of runtime routines for shift and division.  */
27723      long long int llmax = 9223372036854775807ll;
27724      unsigned long long int ullmax = 18446744073709551615ull;
27725      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
27726	      | (llmax / ll) | (llmax % ll)
27727	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
27728	      | (ullmax / ull) | (ullmax % ull));
27729  ;
27730  return 0;
27731}
27732
27733_ACEOF
27734rm -f conftest.$ac_objext conftest$ac_exeext
27735if { (ac_try="$ac_link"
27736case "(($ac_try" in
27737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27738  *) ac_try_echo=$ac_try;;
27739esac
27740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27741$as_echo "$ac_try_echo") >&5
27742  (eval "$ac_link") 2>conftest.er1
27743  ac_status=$?
27744  grep -v '^ *+' conftest.er1 >conftest.err
27745  rm -f conftest.er1
27746  cat conftest.err >&5
27747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748  (exit $ac_status); } && {
27749	 test -z "$ac_c_werror_flag" ||
27750	 test ! -s conftest.err
27751       } && test -s conftest$ac_exeext && {
27752	 test "$cross_compiling" = yes ||
27753	 $as_test_x conftest$ac_exeext
27754       }; then
27755  			if test "$cross_compiling" = yes; then
27756  ac_cv_type_long_long_int=yes
27757else
27758  cat >conftest.$ac_ext <<_ACEOF
27759/* confdefs.h.  */
27760_ACEOF
27761cat confdefs.h >>conftest.$ac_ext
27762cat >>conftest.$ac_ext <<_ACEOF
27763/* end confdefs.h.  */
27764#include <limits.h>
27765	       #ifndef LLONG_MAX
27766	       # define HALF \
27767			(1LL << (sizeof (long long int) * CHAR_BIT - 2))
27768	       # define LLONG_MAX (HALF - 1 + HALF)
27769	       #endif
27770int
27771main ()
27772{
27773long long int n = 1;
27774	       int i;
27775	       for (i = 0; ; i++)
27776		 {
27777		   long long int m = n << i;
27778		   if (m >> i != n)
27779		     return 1;
27780		   if (LLONG_MAX / 2 < m)
27781		     break;
27782		 }
27783	       return 0;
27784  ;
27785  return 0;
27786}
27787_ACEOF
27788rm -f conftest$ac_exeext
27789if { (ac_try="$ac_link"
27790case "(($ac_try" in
27791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792  *) ac_try_echo=$ac_try;;
27793esac
27794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27795$as_echo "$ac_try_echo") >&5
27796  (eval "$ac_link") 2>&5
27797  ac_status=$?
27798  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27799  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27800  { (case "(($ac_try" in
27801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27802  *) ac_try_echo=$ac_try;;
27803esac
27804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27805$as_echo "$ac_try_echo") >&5
27806  (eval "$ac_try") 2>&5
27807  ac_status=$?
27808  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809  (exit $ac_status); }; }; then
27810  ac_cv_type_long_long_int=yes
27811else
27812  $as_echo "$as_me: program exited with status $ac_status" >&5
27813$as_echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
27816( exit $ac_status )
27817ac_cv_type_long_long_int=no
27818fi
27819rm -rf conftest.dSYM
27820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27821fi
27822
27823
27824else
27825  $as_echo "$as_me: failed program was:" >&5
27826sed 's/^/| /' conftest.$ac_ext >&5
27827
27828	ac_cv_type_long_long_int=no
27829fi
27830
27831rm -rf conftest.dSYM
27832rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27833      conftest$ac_exeext conftest.$ac_ext
27834fi
27835{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27836$as_echo "$ac_cv_type_long_long_int" >&6; }
27837  if test $ac_cv_type_long_long_int = yes; then
27838
27839cat >>confdefs.h <<\_ACEOF
27840#define HAVE_LONG_LONG_INT 1
27841_ACEOF
27842
27843  fi
27844
27845
27846  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
27847$as_echo_n "checking for wchar_t... " >&6; }
27848if test "${gt_cv_c_wchar_t+set}" = set; then
27849  $as_echo_n "(cached) " >&6
27850else
27851  cat >conftest.$ac_ext <<_ACEOF
27852/* confdefs.h.  */
27853_ACEOF
27854cat confdefs.h >>conftest.$ac_ext
27855cat >>conftest.$ac_ext <<_ACEOF
27856/* end confdefs.h.  */
27857#include <stddef.h>
27858       wchar_t foo = (wchar_t)'\0';
27859int
27860main ()
27861{
27862
27863  ;
27864  return 0;
27865}
27866_ACEOF
27867rm -f conftest.$ac_objext
27868if { (ac_try="$ac_compile"
27869case "(($ac_try" in
27870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27871  *) ac_try_echo=$ac_try;;
27872esac
27873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27874$as_echo "$ac_try_echo") >&5
27875  (eval "$ac_compile") 2>conftest.er1
27876  ac_status=$?
27877  grep -v '^ *+' conftest.er1 >conftest.err
27878  rm -f conftest.er1
27879  cat conftest.err >&5
27880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27881  (exit $ac_status); } && {
27882	 test -z "$ac_c_werror_flag" ||
27883	 test ! -s conftest.err
27884       } && test -s conftest.$ac_objext; then
27885  gt_cv_c_wchar_t=yes
27886else
27887  $as_echo "$as_me: failed program was:" >&5
27888sed 's/^/| /' conftest.$ac_ext >&5
27889
27890	gt_cv_c_wchar_t=no
27891fi
27892
27893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27894fi
27895{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
27896$as_echo "$gt_cv_c_wchar_t" >&6; }
27897  if test $gt_cv_c_wchar_t = yes; then
27898
27899cat >>confdefs.h <<\_ACEOF
27900#define HAVE_WCHAR_T 1
27901_ACEOF
27902
27903  fi
27904
27905
27906  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
27907$as_echo_n "checking for wint_t... " >&6; }
27908if test "${gt_cv_c_wint_t+set}" = set; then
27909  $as_echo_n "(cached) " >&6
27910else
27911  cat >conftest.$ac_ext <<_ACEOF
27912/* confdefs.h.  */
27913_ACEOF
27914cat confdefs.h >>conftest.$ac_ext
27915cat >>conftest.$ac_ext <<_ACEOF
27916/* end confdefs.h.  */
27917
27918/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
27919   <wchar.h>.
27920   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
27921   before <wchar.h>.  */
27922#include <stddef.h>
27923#include <stdio.h>
27924#include <time.h>
27925#include <wchar.h>
27926       wint_t foo = (wchar_t)'\0';
27927int
27928main ()
27929{
27930
27931  ;
27932  return 0;
27933}
27934_ACEOF
27935rm -f conftest.$ac_objext
27936if { (ac_try="$ac_compile"
27937case "(($ac_try" in
27938  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27939  *) ac_try_echo=$ac_try;;
27940esac
27941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27942$as_echo "$ac_try_echo") >&5
27943  (eval "$ac_compile") 2>conftest.er1
27944  ac_status=$?
27945  grep -v '^ *+' conftest.er1 >conftest.err
27946  rm -f conftest.er1
27947  cat conftest.err >&5
27948  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27949  (exit $ac_status); } && {
27950	 test -z "$ac_c_werror_flag" ||
27951	 test ! -s conftest.err
27952       } && test -s conftest.$ac_objext; then
27953  gt_cv_c_wint_t=yes
27954else
27955  $as_echo "$as_me: failed program was:" >&5
27956sed 's/^/| /' conftest.$ac_ext >&5
27957
27958	gt_cv_c_wint_t=no
27959fi
27960
27961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27962fi
27963{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
27964$as_echo "$gt_cv_c_wint_t" >&6; }
27965  if test $gt_cv_c_wint_t = yes; then
27966
27967cat >>confdefs.h <<\_ACEOF
27968#define HAVE_WINT_T 1
27969_ACEOF
27970
27971  fi
27972
27973
27974
27975
27976  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
27977$as_echo_n "checking for intmax_t... " >&6; }
27978if test "${gt_cv_c_intmax_t+set}" = set; then
27979  $as_echo_n "(cached) " >&6
27980else
27981  cat >conftest.$ac_ext <<_ACEOF
27982/* confdefs.h.  */
27983_ACEOF
27984cat confdefs.h >>conftest.$ac_ext
27985cat >>conftest.$ac_ext <<_ACEOF
27986/* end confdefs.h.  */
27987
27988#include <stddef.h>
27989#include <stdlib.h>
27990#if HAVE_STDINT_H_WITH_UINTMAX
27991#include <stdint.h>
27992#endif
27993#if HAVE_INTTYPES_H_WITH_UINTMAX
27994#include <inttypes.h>
27995#endif
27996
27997int
27998main ()
27999{
28000intmax_t x = -1;
28001        return !x;
28002  ;
28003  return 0;
28004}
28005_ACEOF
28006rm -f conftest.$ac_objext
28007if { (ac_try="$ac_compile"
28008case "(($ac_try" in
28009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28010  *) ac_try_echo=$ac_try;;
28011esac
28012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28013$as_echo "$ac_try_echo") >&5
28014  (eval "$ac_compile") 2>conftest.er1
28015  ac_status=$?
28016  grep -v '^ *+' conftest.er1 >conftest.err
28017  rm -f conftest.er1
28018  cat conftest.err >&5
28019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020  (exit $ac_status); } && {
28021	 test -z "$ac_c_werror_flag" ||
28022	 test ! -s conftest.err
28023       } && test -s conftest.$ac_objext; then
28024  gt_cv_c_intmax_t=yes
28025else
28026  $as_echo "$as_me: failed program was:" >&5
28027sed 's/^/| /' conftest.$ac_ext >&5
28028
28029	gt_cv_c_intmax_t=no
28030fi
28031
28032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28033fi
28034{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
28035$as_echo "$gt_cv_c_intmax_t" >&6; }
28036  if test $gt_cv_c_intmax_t = yes; then
28037
28038cat >>confdefs.h <<\_ACEOF
28039#define HAVE_INTMAX_T 1
28040_ACEOF
28041
28042  fi
28043
28044
28045
28046  { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
28047$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
28048if test "${gt_cv_func_printf_posix+set}" = set; then
28049  $as_echo_n "(cached) " >&6
28050else
28051
28052      if test "$cross_compiling" = yes; then
28053
28054        cat >conftest.$ac_ext <<_ACEOF
28055/* confdefs.h.  */
28056_ACEOF
28057cat confdefs.h >>conftest.$ac_ext
28058cat >>conftest.$ac_ext <<_ACEOF
28059/* end confdefs.h.  */
28060
28061#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
28062  notposix
28063#endif
28064
28065_ACEOF
28066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28067  $EGREP "notposix" >/dev/null 2>&1; then
28068  gt_cv_func_printf_posix="guessing no"
28069else
28070  gt_cv_func_printf_posix="guessing yes"
28071fi
28072rm -f conftest*
28073
28074
28075else
28076  cat >conftest.$ac_ext <<_ACEOF
28077/* confdefs.h.  */
28078_ACEOF
28079cat confdefs.h >>conftest.$ac_ext
28080cat >>conftest.$ac_ext <<_ACEOF
28081/* end confdefs.h.  */
28082
28083#include <stdio.h>
28084#include <string.h>
28085/* The string "%2$d %1$d", with dollar characters protected from the shell's
28086   dollar expansion (possibly an autoconf bug).  */
28087static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
28088static char buf[100];
28089int main ()
28090{
28091  sprintf (buf, format, 33, 55);
28092  return (strcmp (buf, "55 33") != 0);
28093}
28094_ACEOF
28095rm -f conftest$ac_exeext
28096if { (ac_try="$ac_link"
28097case "(($ac_try" in
28098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099  *) ac_try_echo=$ac_try;;
28100esac
28101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28102$as_echo "$ac_try_echo") >&5
28103  (eval "$ac_link") 2>&5
28104  ac_status=$?
28105  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28107  { (case "(($ac_try" in
28108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28109  *) ac_try_echo=$ac_try;;
28110esac
28111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28112$as_echo "$ac_try_echo") >&5
28113  (eval "$ac_try") 2>&5
28114  ac_status=$?
28115  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28116  (exit $ac_status); }; }; then
28117  gt_cv_func_printf_posix=yes
28118else
28119  $as_echo "$as_me: program exited with status $ac_status" >&5
28120$as_echo "$as_me: failed program was:" >&5
28121sed 's/^/| /' conftest.$ac_ext >&5
28122
28123( exit $ac_status )
28124gt_cv_func_printf_posix=no
28125fi
28126rm -rf conftest.dSYM
28127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28128fi
28129
28130
28131
28132fi
28133{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
28134$as_echo "$gt_cv_func_printf_posix" >&6; }
28135  case $gt_cv_func_printf_posix in
28136    *yes)
28137
28138cat >>confdefs.h <<\_ACEOF
28139#define HAVE_POSIX_PRINTF 1
28140_ACEOF
28141
28142      ;;
28143  esac
28144
28145
28146    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
28147$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
28148if test "${ac_cv_gnu_library_2_1+set}" = set; then
28149  $as_echo_n "(cached) " >&6
28150else
28151  cat >conftest.$ac_ext <<_ACEOF
28152/* confdefs.h.  */
28153_ACEOF
28154cat confdefs.h >>conftest.$ac_ext
28155cat >>conftest.$ac_ext <<_ACEOF
28156/* end confdefs.h.  */
28157
28158#include <features.h>
28159#ifdef __GNU_LIBRARY__
28160 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
28161  Lucky GNU user
28162 #endif
28163#endif
28164
28165_ACEOF
28166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28167  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
28168  ac_cv_gnu_library_2_1=yes
28169else
28170  ac_cv_gnu_library_2_1=no
28171fi
28172rm -f conftest*
28173
28174
28175
28176fi
28177{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
28178$as_echo "$ac_cv_gnu_library_2_1" >&6; }
28179
28180    GLIBC21="$ac_cv_gnu_library_2_1"
28181
28182
28183
28184
28185for ac_header in stdint.h
28186do
28187as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28189  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28190$as_echo_n "checking for $ac_header... " >&6; }
28191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28192  $as_echo_n "(cached) " >&6
28193fi
28194ac_res=`eval 'as_val=${'$as_ac_Header'}
28195		 $as_echo "$as_val"'`
28196	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28197$as_echo "$ac_res" >&6; }
28198else
28199  # Is the header compilable?
28200{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28201$as_echo_n "checking $ac_header usability... " >&6; }
28202cat >conftest.$ac_ext <<_ACEOF
28203/* confdefs.h.  */
28204_ACEOF
28205cat confdefs.h >>conftest.$ac_ext
28206cat >>conftest.$ac_ext <<_ACEOF
28207/* end confdefs.h.  */
28208$ac_includes_default
28209#include <$ac_header>
28210_ACEOF
28211rm -f conftest.$ac_objext
28212if { (ac_try="$ac_compile"
28213case "(($ac_try" in
28214  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215  *) ac_try_echo=$ac_try;;
28216esac
28217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28218$as_echo "$ac_try_echo") >&5
28219  (eval "$ac_compile") 2>conftest.er1
28220  ac_status=$?
28221  grep -v '^ *+' conftest.er1 >conftest.err
28222  rm -f conftest.er1
28223  cat conftest.err >&5
28224  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225  (exit $ac_status); } && {
28226	 test -z "$ac_c_werror_flag" ||
28227	 test ! -s conftest.err
28228       } && test -s conftest.$ac_objext; then
28229  ac_header_compiler=yes
28230else
28231  $as_echo "$as_me: failed program was:" >&5
28232sed 's/^/| /' conftest.$ac_ext >&5
28233
28234	ac_header_compiler=no
28235fi
28236
28237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28238{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28239$as_echo "$ac_header_compiler" >&6; }
28240
28241# Is the header present?
28242{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28243$as_echo_n "checking $ac_header presence... " >&6; }
28244cat >conftest.$ac_ext <<_ACEOF
28245/* confdefs.h.  */
28246_ACEOF
28247cat confdefs.h >>conftest.$ac_ext
28248cat >>conftest.$ac_ext <<_ACEOF
28249/* end confdefs.h.  */
28250#include <$ac_header>
28251_ACEOF
28252if { (ac_try="$ac_cpp conftest.$ac_ext"
28253case "(($ac_try" in
28254  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28255  *) ac_try_echo=$ac_try;;
28256esac
28257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28258$as_echo "$ac_try_echo") >&5
28259  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28260  ac_status=$?
28261  grep -v '^ *+' conftest.er1 >conftest.err
28262  rm -f conftest.er1
28263  cat conftest.err >&5
28264  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265  (exit $ac_status); } >/dev/null && {
28266	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28267	 test ! -s conftest.err
28268       }; then
28269  ac_header_preproc=yes
28270else
28271  $as_echo "$as_me: failed program was:" >&5
28272sed 's/^/| /' conftest.$ac_ext >&5
28273
28274  ac_header_preproc=no
28275fi
28276
28277rm -f conftest.err conftest.$ac_ext
28278{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28279$as_echo "$ac_header_preproc" >&6; }
28280
28281# So?  What about this header?
28282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28283  yes:no: )
28284    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28285$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28286    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28287$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28288    ac_header_preproc=yes
28289    ;;
28290  no:yes:* )
28291    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28292$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28293    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28294$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28295    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28296$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28297    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28298$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28299    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28300$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28301    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28302$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28303
28304    ;;
28305esac
28306{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28307$as_echo_n "checking for $ac_header... " >&6; }
28308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28309  $as_echo_n "(cached) " >&6
28310else
28311  eval "$as_ac_Header=\$ac_header_preproc"
28312fi
28313ac_res=`eval 'as_val=${'$as_ac_Header'}
28314		 $as_echo "$as_val"'`
28315	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28316$as_echo "$ac_res" >&6; }
28317
28318fi
28319as_val=`eval 'as_val=${'$as_ac_Header'}
28320		 $as_echo "$as_val"'`
28321   if test "x$as_val" = x""yes; then
28322  cat >>confdefs.h <<_ACEOF
28323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28324_ACEOF
28325
28326fi
28327
28328done
28329
28330    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
28331$as_echo_n "checking for SIZE_MAX... " >&6; }
28332  if test "${gl_cv_size_max+set}" = set; then
28333  $as_echo_n "(cached) " >&6
28334else
28335
28336    gl_cv_size_max=
28337    cat >conftest.$ac_ext <<_ACEOF
28338/* confdefs.h.  */
28339_ACEOF
28340cat confdefs.h >>conftest.$ac_ext
28341cat >>conftest.$ac_ext <<_ACEOF
28342/* end confdefs.h.  */
28343
28344#include <limits.h>
28345#if HAVE_STDINT_H
28346#include <stdint.h>
28347#endif
28348#ifdef SIZE_MAX
28349Found it
28350#endif
28351
28352_ACEOF
28353if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28354  $EGREP "Found it" >/dev/null 2>&1; then
28355  gl_cv_size_max=yes
28356fi
28357rm -f conftest*
28358
28359    if test -z "$gl_cv_size_max"; then
28360                        if test "$cross_compiling" = yes; then
28361  # Depending upon the size, compute the lo and hi bounds.
28362cat >conftest.$ac_ext <<_ACEOF
28363/* confdefs.h.  */
28364_ACEOF
28365cat confdefs.h >>conftest.$ac_ext
28366cat >>conftest.$ac_ext <<_ACEOF
28367/* end confdefs.h.  */
28368#include <stddef.h>
28369#include <limits.h>
28370int
28371main ()
28372{
28373static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
28374test_array [0] = 0
28375
28376  ;
28377  return 0;
28378}
28379_ACEOF
28380rm -f conftest.$ac_objext
28381if { (ac_try="$ac_compile"
28382case "(($ac_try" in
28383  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28384  *) ac_try_echo=$ac_try;;
28385esac
28386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28387$as_echo "$ac_try_echo") >&5
28388  (eval "$ac_compile") 2>conftest.er1
28389  ac_status=$?
28390  grep -v '^ *+' conftest.er1 >conftest.err
28391  rm -f conftest.er1
28392  cat conftest.err >&5
28393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394  (exit $ac_status); } && {
28395	 test -z "$ac_c_werror_flag" ||
28396	 test ! -s conftest.err
28397       } && test -s conftest.$ac_objext; then
28398  ac_lo=0 ac_mid=0
28399  while :; do
28400    cat >conftest.$ac_ext <<_ACEOF
28401/* confdefs.h.  */
28402_ACEOF
28403cat confdefs.h >>conftest.$ac_ext
28404cat >>conftest.$ac_ext <<_ACEOF
28405/* end confdefs.h.  */
28406#include <stddef.h>
28407#include <limits.h>
28408int
28409main ()
28410{
28411static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
28412test_array [0] = 0
28413
28414  ;
28415  return 0;
28416}
28417_ACEOF
28418rm -f conftest.$ac_objext
28419if { (ac_try="$ac_compile"
28420case "(($ac_try" in
28421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422  *) ac_try_echo=$ac_try;;
28423esac
28424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28425$as_echo "$ac_try_echo") >&5
28426  (eval "$ac_compile") 2>conftest.er1
28427  ac_status=$?
28428  grep -v '^ *+' conftest.er1 >conftest.err
28429  rm -f conftest.er1
28430  cat conftest.err >&5
28431  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432  (exit $ac_status); } && {
28433	 test -z "$ac_c_werror_flag" ||
28434	 test ! -s conftest.err
28435       } && test -s conftest.$ac_objext; then
28436  ac_hi=$ac_mid; break
28437else
28438  $as_echo "$as_me: failed program was:" >&5
28439sed 's/^/| /' conftest.$ac_ext >&5
28440
28441	ac_lo=`expr $ac_mid + 1`
28442			if test $ac_lo -le $ac_mid; then
28443			  ac_lo= ac_hi=
28444			  break
28445			fi
28446			ac_mid=`expr 2 '*' $ac_mid + 1`
28447fi
28448
28449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28450  done
28451else
28452  $as_echo "$as_me: failed program was:" >&5
28453sed 's/^/| /' conftest.$ac_ext >&5
28454
28455	cat >conftest.$ac_ext <<_ACEOF
28456/* confdefs.h.  */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h.  */
28461#include <stddef.h>
28462#include <limits.h>
28463int
28464main ()
28465{
28466static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
28467test_array [0] = 0
28468
28469  ;
28470  return 0;
28471}
28472_ACEOF
28473rm -f conftest.$ac_objext
28474if { (ac_try="$ac_compile"
28475case "(($ac_try" in
28476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477  *) ac_try_echo=$ac_try;;
28478esac
28479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28480$as_echo "$ac_try_echo") >&5
28481  (eval "$ac_compile") 2>conftest.er1
28482  ac_status=$?
28483  grep -v '^ *+' conftest.er1 >conftest.err
28484  rm -f conftest.er1
28485  cat conftest.err >&5
28486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28487  (exit $ac_status); } && {
28488	 test -z "$ac_c_werror_flag" ||
28489	 test ! -s conftest.err
28490       } && test -s conftest.$ac_objext; then
28491  ac_hi=-1 ac_mid=-1
28492  while :; do
28493    cat >conftest.$ac_ext <<_ACEOF
28494/* confdefs.h.  */
28495_ACEOF
28496cat confdefs.h >>conftest.$ac_ext
28497cat >>conftest.$ac_ext <<_ACEOF
28498/* end confdefs.h.  */
28499#include <stddef.h>
28500#include <limits.h>
28501int
28502main ()
28503{
28504static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
28505test_array [0] = 0
28506
28507  ;
28508  return 0;
28509}
28510_ACEOF
28511rm -f conftest.$ac_objext
28512if { (ac_try="$ac_compile"
28513case "(($ac_try" in
28514  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515  *) ac_try_echo=$ac_try;;
28516esac
28517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28518$as_echo "$ac_try_echo") >&5
28519  (eval "$ac_compile") 2>conftest.er1
28520  ac_status=$?
28521  grep -v '^ *+' conftest.er1 >conftest.err
28522  rm -f conftest.er1
28523  cat conftest.err >&5
28524  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525  (exit $ac_status); } && {
28526	 test -z "$ac_c_werror_flag" ||
28527	 test ! -s conftest.err
28528       } && test -s conftest.$ac_objext; then
28529  ac_lo=$ac_mid; break
28530else
28531  $as_echo "$as_me: failed program was:" >&5
28532sed 's/^/| /' conftest.$ac_ext >&5
28533
28534	ac_hi=`expr '(' $ac_mid ')' - 1`
28535			if test $ac_mid -le $ac_hi; then
28536			  ac_lo= ac_hi=
28537			  break
28538			fi
28539			ac_mid=`expr 2 '*' $ac_mid`
28540fi
28541
28542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28543  done
28544else
28545  $as_echo "$as_me: failed program was:" >&5
28546sed 's/^/| /' conftest.$ac_ext >&5
28547
28548	ac_lo= ac_hi=
28549fi
28550
28551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28552fi
28553
28554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28555# Binary search between lo and hi bounds.
28556while test "x$ac_lo" != "x$ac_hi"; do
28557  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28558  cat >conftest.$ac_ext <<_ACEOF
28559/* confdefs.h.  */
28560_ACEOF
28561cat confdefs.h >>conftest.$ac_ext
28562cat >>conftest.$ac_ext <<_ACEOF
28563/* end confdefs.h.  */
28564#include <stddef.h>
28565#include <limits.h>
28566int
28567main ()
28568{
28569static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
28570test_array [0] = 0
28571
28572  ;
28573  return 0;
28574}
28575_ACEOF
28576rm -f conftest.$ac_objext
28577if { (ac_try="$ac_compile"
28578case "(($ac_try" in
28579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28580  *) ac_try_echo=$ac_try;;
28581esac
28582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28583$as_echo "$ac_try_echo") >&5
28584  (eval "$ac_compile") 2>conftest.er1
28585  ac_status=$?
28586  grep -v '^ *+' conftest.er1 >conftest.err
28587  rm -f conftest.er1
28588  cat conftest.err >&5
28589  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590  (exit $ac_status); } && {
28591	 test -z "$ac_c_werror_flag" ||
28592	 test ! -s conftest.err
28593       } && test -s conftest.$ac_objext; then
28594  ac_hi=$ac_mid
28595else
28596  $as_echo "$as_me: failed program was:" >&5
28597sed 's/^/| /' conftest.$ac_ext >&5
28598
28599	ac_lo=`expr '(' $ac_mid ')' + 1`
28600fi
28601
28602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28603done
28604case $ac_lo in
28605?*) size_t_bits_minus_1=$ac_lo;;
28606'') size_t_bits_minus_1= ;;
28607esac
28608else
28609  cat >conftest.$ac_ext <<_ACEOF
28610/* confdefs.h.  */
28611_ACEOF
28612cat confdefs.h >>conftest.$ac_ext
28613cat >>conftest.$ac_ext <<_ACEOF
28614/* end confdefs.h.  */
28615#include <stddef.h>
28616#include <limits.h>
28617static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
28618static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
28619#include <stdio.h>
28620#include <stdlib.h>
28621int
28622main ()
28623{
28624
28625  FILE *f = fopen ("conftest.val", "w");
28626  if (! f)
28627    return 1;
28628  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
28629    {
28630      long int i = longval ();
28631      if (i != (sizeof (size_t) * CHAR_BIT - 1))
28632	return 1;
28633      fprintf (f, "%ld", i);
28634    }
28635  else
28636    {
28637      unsigned long int i = ulongval ();
28638      if (i != (sizeof (size_t) * CHAR_BIT - 1))
28639	return 1;
28640      fprintf (f, "%lu", i);
28641    }
28642  /* Do not output a trailing newline, as this causes \r\n confusion
28643     on some platforms.  */
28644  return ferror (f) || fclose (f) != 0;
28645
28646  ;
28647  return 0;
28648}
28649_ACEOF
28650rm -f conftest$ac_exeext
28651if { (ac_try="$ac_link"
28652case "(($ac_try" in
28653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654  *) ac_try_echo=$ac_try;;
28655esac
28656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28657$as_echo "$ac_try_echo") >&5
28658  (eval "$ac_link") 2>&5
28659  ac_status=$?
28660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28662  { (case "(($ac_try" in
28663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664  *) ac_try_echo=$ac_try;;
28665esac
28666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28667$as_echo "$ac_try_echo") >&5
28668  (eval "$ac_try") 2>&5
28669  ac_status=$?
28670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671  (exit $ac_status); }; }; then
28672  size_t_bits_minus_1=`cat conftest.val`
28673else
28674  $as_echo "$as_me: program exited with status $ac_status" >&5
28675$as_echo "$as_me: failed program was:" >&5
28676sed 's/^/| /' conftest.$ac_ext >&5
28677
28678( exit $ac_status )
28679size_t_bits_minus_1=
28680fi
28681rm -rf conftest.dSYM
28682rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28683fi
28684rm -f conftest.val
28685      if test "$cross_compiling" = yes; then
28686  # Depending upon the size, compute the lo and hi bounds.
28687cat >conftest.$ac_ext <<_ACEOF
28688/* confdefs.h.  */
28689_ACEOF
28690cat confdefs.h >>conftest.$ac_ext
28691cat >>conftest.$ac_ext <<_ACEOF
28692/* end confdefs.h.  */
28693#include <stddef.h>
28694int
28695main ()
28696{
28697static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
28698test_array [0] = 0
28699
28700  ;
28701  return 0;
28702}
28703_ACEOF
28704rm -f conftest.$ac_objext
28705if { (ac_try="$ac_compile"
28706case "(($ac_try" in
28707  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708  *) ac_try_echo=$ac_try;;
28709esac
28710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28711$as_echo "$ac_try_echo") >&5
28712  (eval "$ac_compile") 2>conftest.er1
28713  ac_status=$?
28714  grep -v '^ *+' conftest.er1 >conftest.err
28715  rm -f conftest.er1
28716  cat conftest.err >&5
28717  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718  (exit $ac_status); } && {
28719	 test -z "$ac_c_werror_flag" ||
28720	 test ! -s conftest.err
28721       } && test -s conftest.$ac_objext; then
28722  ac_lo=0 ac_mid=0
28723  while :; do
28724    cat >conftest.$ac_ext <<_ACEOF
28725/* confdefs.h.  */
28726_ACEOF
28727cat confdefs.h >>conftest.$ac_ext
28728cat >>conftest.$ac_ext <<_ACEOF
28729/* end confdefs.h.  */
28730#include <stddef.h>
28731int
28732main ()
28733{
28734static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
28735test_array [0] = 0
28736
28737  ;
28738  return 0;
28739}
28740_ACEOF
28741rm -f conftest.$ac_objext
28742if { (ac_try="$ac_compile"
28743case "(($ac_try" in
28744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28745  *) ac_try_echo=$ac_try;;
28746esac
28747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28748$as_echo "$ac_try_echo") >&5
28749  (eval "$ac_compile") 2>conftest.er1
28750  ac_status=$?
28751  grep -v '^ *+' conftest.er1 >conftest.err
28752  rm -f conftest.er1
28753  cat conftest.err >&5
28754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755  (exit $ac_status); } && {
28756	 test -z "$ac_c_werror_flag" ||
28757	 test ! -s conftest.err
28758       } && test -s conftest.$ac_objext; then
28759  ac_hi=$ac_mid; break
28760else
28761  $as_echo "$as_me: failed program was:" >&5
28762sed 's/^/| /' conftest.$ac_ext >&5
28763
28764	ac_lo=`expr $ac_mid + 1`
28765			if test $ac_lo -le $ac_mid; then
28766			  ac_lo= ac_hi=
28767			  break
28768			fi
28769			ac_mid=`expr 2 '*' $ac_mid + 1`
28770fi
28771
28772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28773  done
28774else
28775  $as_echo "$as_me: failed program was:" >&5
28776sed 's/^/| /' conftest.$ac_ext >&5
28777
28778	cat >conftest.$ac_ext <<_ACEOF
28779/* confdefs.h.  */
28780_ACEOF
28781cat confdefs.h >>conftest.$ac_ext
28782cat >>conftest.$ac_ext <<_ACEOF
28783/* end confdefs.h.  */
28784#include <stddef.h>
28785int
28786main ()
28787{
28788static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
28789test_array [0] = 0
28790
28791  ;
28792  return 0;
28793}
28794_ACEOF
28795rm -f conftest.$ac_objext
28796if { (ac_try="$ac_compile"
28797case "(($ac_try" in
28798  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28799  *) ac_try_echo=$ac_try;;
28800esac
28801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28802$as_echo "$ac_try_echo") >&5
28803  (eval "$ac_compile") 2>conftest.er1
28804  ac_status=$?
28805  grep -v '^ *+' conftest.er1 >conftest.err
28806  rm -f conftest.er1
28807  cat conftest.err >&5
28808  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809  (exit $ac_status); } && {
28810	 test -z "$ac_c_werror_flag" ||
28811	 test ! -s conftest.err
28812       } && test -s conftest.$ac_objext; then
28813  ac_hi=-1 ac_mid=-1
28814  while :; do
28815    cat >conftest.$ac_ext <<_ACEOF
28816/* confdefs.h.  */
28817_ACEOF
28818cat confdefs.h >>conftest.$ac_ext
28819cat >>conftest.$ac_ext <<_ACEOF
28820/* end confdefs.h.  */
28821#include <stddef.h>
28822int
28823main ()
28824{
28825static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
28826test_array [0] = 0
28827
28828  ;
28829  return 0;
28830}
28831_ACEOF
28832rm -f conftest.$ac_objext
28833if { (ac_try="$ac_compile"
28834case "(($ac_try" in
28835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28836  *) ac_try_echo=$ac_try;;
28837esac
28838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28839$as_echo "$ac_try_echo") >&5
28840  (eval "$ac_compile") 2>conftest.er1
28841  ac_status=$?
28842  grep -v '^ *+' conftest.er1 >conftest.err
28843  rm -f conftest.er1
28844  cat conftest.err >&5
28845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28846  (exit $ac_status); } && {
28847	 test -z "$ac_c_werror_flag" ||
28848	 test ! -s conftest.err
28849       } && test -s conftest.$ac_objext; then
28850  ac_lo=$ac_mid; break
28851else
28852  $as_echo "$as_me: failed program was:" >&5
28853sed 's/^/| /' conftest.$ac_ext >&5
28854
28855	ac_hi=`expr '(' $ac_mid ')' - 1`
28856			if test $ac_mid -le $ac_hi; then
28857			  ac_lo= ac_hi=
28858			  break
28859			fi
28860			ac_mid=`expr 2 '*' $ac_mid`
28861fi
28862
28863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28864  done
28865else
28866  $as_echo "$as_me: failed program was:" >&5
28867sed 's/^/| /' conftest.$ac_ext >&5
28868
28869	ac_lo= ac_hi=
28870fi
28871
28872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28873fi
28874
28875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28876# Binary search between lo and hi bounds.
28877while test "x$ac_lo" != "x$ac_hi"; do
28878  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28879  cat >conftest.$ac_ext <<_ACEOF
28880/* confdefs.h.  */
28881_ACEOF
28882cat confdefs.h >>conftest.$ac_ext
28883cat >>conftest.$ac_ext <<_ACEOF
28884/* end confdefs.h.  */
28885#include <stddef.h>
28886int
28887main ()
28888{
28889static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
28890test_array [0] = 0
28891
28892  ;
28893  return 0;
28894}
28895_ACEOF
28896rm -f conftest.$ac_objext
28897if { (ac_try="$ac_compile"
28898case "(($ac_try" in
28899  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28900  *) ac_try_echo=$ac_try;;
28901esac
28902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28903$as_echo "$ac_try_echo") >&5
28904  (eval "$ac_compile") 2>conftest.er1
28905  ac_status=$?
28906  grep -v '^ *+' conftest.er1 >conftest.err
28907  rm -f conftest.er1
28908  cat conftest.err >&5
28909  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910  (exit $ac_status); } && {
28911	 test -z "$ac_c_werror_flag" ||
28912	 test ! -s conftest.err
28913       } && test -s conftest.$ac_objext; then
28914  ac_hi=$ac_mid
28915else
28916  $as_echo "$as_me: failed program was:" >&5
28917sed 's/^/| /' conftest.$ac_ext >&5
28918
28919	ac_lo=`expr '(' $ac_mid ')' + 1`
28920fi
28921
28922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28923done
28924case $ac_lo in
28925?*) fits_in_uint=$ac_lo;;
28926'') fits_in_uint= ;;
28927esac
28928else
28929  cat >conftest.$ac_ext <<_ACEOF
28930/* confdefs.h.  */
28931_ACEOF
28932cat confdefs.h >>conftest.$ac_ext
28933cat >>conftest.$ac_ext <<_ACEOF
28934/* end confdefs.h.  */
28935#include <stddef.h>
28936static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
28937static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
28938#include <stdio.h>
28939#include <stdlib.h>
28940int
28941main ()
28942{
28943
28944  FILE *f = fopen ("conftest.val", "w");
28945  if (! f)
28946    return 1;
28947  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
28948    {
28949      long int i = longval ();
28950      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
28951	return 1;
28952      fprintf (f, "%ld", i);
28953    }
28954  else
28955    {
28956      unsigned long int i = ulongval ();
28957      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
28958	return 1;
28959      fprintf (f, "%lu", i);
28960    }
28961  /* Do not output a trailing newline, as this causes \r\n confusion
28962     on some platforms.  */
28963  return ferror (f) || fclose (f) != 0;
28964
28965  ;
28966  return 0;
28967}
28968_ACEOF
28969rm -f conftest$ac_exeext
28970if { (ac_try="$ac_link"
28971case "(($ac_try" in
28972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28973  *) ac_try_echo=$ac_try;;
28974esac
28975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28976$as_echo "$ac_try_echo") >&5
28977  (eval "$ac_link") 2>&5
28978  ac_status=$?
28979  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28981  { (case "(($ac_try" in
28982  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983  *) ac_try_echo=$ac_try;;
28984esac
28985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28986$as_echo "$ac_try_echo") >&5
28987  (eval "$ac_try") 2>&5
28988  ac_status=$?
28989  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990  (exit $ac_status); }; }; then
28991  fits_in_uint=`cat conftest.val`
28992else
28993  $as_echo "$as_me: program exited with status $ac_status" >&5
28994$as_echo "$as_me: failed program was:" >&5
28995sed 's/^/| /' conftest.$ac_ext >&5
28996
28997( exit $ac_status )
28998fits_in_uint=
28999fi
29000rm -rf conftest.dSYM
29001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29002fi
29003rm -f conftest.val
29004      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
29005        if test $fits_in_uint = 1; then
29006                              cat >conftest.$ac_ext <<_ACEOF
29007/* confdefs.h.  */
29008_ACEOF
29009cat confdefs.h >>conftest.$ac_ext
29010cat >>conftest.$ac_ext <<_ACEOF
29011/* end confdefs.h.  */
29012#include <stddef.h>
29013            extern size_t foo;
29014            extern unsigned long foo;
29015
29016int
29017main ()
29018{
29019
29020  ;
29021  return 0;
29022}
29023_ACEOF
29024rm -f conftest.$ac_objext
29025if { (ac_try="$ac_compile"
29026case "(($ac_try" in
29027  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028  *) ac_try_echo=$ac_try;;
29029esac
29030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29031$as_echo "$ac_try_echo") >&5
29032  (eval "$ac_compile") 2>conftest.er1
29033  ac_status=$?
29034  grep -v '^ *+' conftest.er1 >conftest.err
29035  rm -f conftest.er1
29036  cat conftest.err >&5
29037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038  (exit $ac_status); } && {
29039	 test -z "$ac_c_werror_flag" ||
29040	 test ! -s conftest.err
29041       } && test -s conftest.$ac_objext; then
29042  fits_in_uint=0
29043else
29044  $as_echo "$as_me: failed program was:" >&5
29045sed 's/^/| /' conftest.$ac_ext >&5
29046
29047
29048fi
29049
29050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29051        fi
29052                                if test $fits_in_uint = 1; then
29053          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
29054        else
29055          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
29056        fi
29057      else
29058                gl_cv_size_max='((size_t)~(size_t)0)'
29059      fi
29060    fi
29061
29062fi
29063
29064  { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
29065$as_echo "$gl_cv_size_max" >&6; }
29066  if test "$gl_cv_size_max" != yes; then
29067
29068cat >>confdefs.h <<_ACEOF
29069#define SIZE_MAX $gl_cv_size_max
29070_ACEOF
29071
29072  fi
29073
29074
29075
29076
29077
29078for ac_header in stdint.h
29079do
29080as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29081if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29082  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29083$as_echo_n "checking for $ac_header... " >&6; }
29084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29085  $as_echo_n "(cached) " >&6
29086fi
29087ac_res=`eval 'as_val=${'$as_ac_Header'}
29088		 $as_echo "$as_val"'`
29089	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29090$as_echo "$ac_res" >&6; }
29091else
29092  # Is the header compilable?
29093{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29094$as_echo_n "checking $ac_header usability... " >&6; }
29095cat >conftest.$ac_ext <<_ACEOF
29096/* confdefs.h.  */
29097_ACEOF
29098cat confdefs.h >>conftest.$ac_ext
29099cat >>conftest.$ac_ext <<_ACEOF
29100/* end confdefs.h.  */
29101$ac_includes_default
29102#include <$ac_header>
29103_ACEOF
29104rm -f conftest.$ac_objext
29105if { (ac_try="$ac_compile"
29106case "(($ac_try" in
29107  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29108  *) ac_try_echo=$ac_try;;
29109esac
29110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29111$as_echo "$ac_try_echo") >&5
29112  (eval "$ac_compile") 2>conftest.er1
29113  ac_status=$?
29114  grep -v '^ *+' conftest.er1 >conftest.err
29115  rm -f conftest.er1
29116  cat conftest.err >&5
29117  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118  (exit $ac_status); } && {
29119	 test -z "$ac_c_werror_flag" ||
29120	 test ! -s conftest.err
29121       } && test -s conftest.$ac_objext; then
29122  ac_header_compiler=yes
29123else
29124  $as_echo "$as_me: failed program was:" >&5
29125sed 's/^/| /' conftest.$ac_ext >&5
29126
29127	ac_header_compiler=no
29128fi
29129
29130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29131{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29132$as_echo "$ac_header_compiler" >&6; }
29133
29134# Is the header present?
29135{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29136$as_echo_n "checking $ac_header presence... " >&6; }
29137cat >conftest.$ac_ext <<_ACEOF
29138/* confdefs.h.  */
29139_ACEOF
29140cat confdefs.h >>conftest.$ac_ext
29141cat >>conftest.$ac_ext <<_ACEOF
29142/* end confdefs.h.  */
29143#include <$ac_header>
29144_ACEOF
29145if { (ac_try="$ac_cpp conftest.$ac_ext"
29146case "(($ac_try" in
29147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29148  *) ac_try_echo=$ac_try;;
29149esac
29150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29151$as_echo "$ac_try_echo") >&5
29152  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29153  ac_status=$?
29154  grep -v '^ *+' conftest.er1 >conftest.err
29155  rm -f conftest.er1
29156  cat conftest.err >&5
29157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158  (exit $ac_status); } >/dev/null && {
29159	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29160	 test ! -s conftest.err
29161       }; then
29162  ac_header_preproc=yes
29163else
29164  $as_echo "$as_me: failed program was:" >&5
29165sed 's/^/| /' conftest.$ac_ext >&5
29166
29167  ac_header_preproc=no
29168fi
29169
29170rm -f conftest.err conftest.$ac_ext
29171{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29172$as_echo "$ac_header_preproc" >&6; }
29173
29174# So?  What about this header?
29175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29176  yes:no: )
29177    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29178$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29179    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29180$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29181    ac_header_preproc=yes
29182    ;;
29183  no:yes:* )
29184    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29185$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29186    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29187$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29188    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29189$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29190    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29191$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29192    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29193$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29194    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29195$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29196
29197    ;;
29198esac
29199{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29200$as_echo_n "checking for $ac_header... " >&6; }
29201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29202  $as_echo_n "(cached) " >&6
29203else
29204  eval "$as_ac_Header=\$ac_header_preproc"
29205fi
29206ac_res=`eval 'as_val=${'$as_ac_Header'}
29207		 $as_echo "$as_val"'`
29208	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29209$as_echo "$ac_res" >&6; }
29210
29211fi
29212as_val=`eval 'as_val=${'$as_ac_Header'}
29213		 $as_echo "$as_val"'`
29214   if test "x$as_val" = x""yes; then
29215  cat >>confdefs.h <<_ACEOF
29216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29217_ACEOF
29218
29219fi
29220
29221done
29222
29223
29224
29225    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
29226$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
29227if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
29228  $as_echo_n "(cached) " >&6
29229else
29230  gt_save_LIBS="$LIBS"
29231     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
29232     cat >conftest.$ac_ext <<_ACEOF
29233/* confdefs.h.  */
29234_ACEOF
29235cat confdefs.h >>conftest.$ac_ext
29236cat >>conftest.$ac_ext <<_ACEOF
29237/* end confdefs.h.  */
29238#include <CoreFoundation/CFPreferences.h>
29239int
29240main ()
29241{
29242CFPreferencesCopyAppValue(NULL, NULL)
29243  ;
29244  return 0;
29245}
29246_ACEOF
29247rm -f conftest.$ac_objext conftest$ac_exeext
29248if { (ac_try="$ac_link"
29249case "(($ac_try" in
29250  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251  *) ac_try_echo=$ac_try;;
29252esac
29253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29254$as_echo "$ac_try_echo") >&5
29255  (eval "$ac_link") 2>conftest.er1
29256  ac_status=$?
29257  grep -v '^ *+' conftest.er1 >conftest.err
29258  rm -f conftest.er1
29259  cat conftest.err >&5
29260  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261  (exit $ac_status); } && {
29262	 test -z "$ac_c_werror_flag" ||
29263	 test ! -s conftest.err
29264       } && test -s conftest$ac_exeext && {
29265	 test "$cross_compiling" = yes ||
29266	 $as_test_x conftest$ac_exeext
29267       }; then
29268  gt_cv_func_CFPreferencesCopyAppValue=yes
29269else
29270  $as_echo "$as_me: failed program was:" >&5
29271sed 's/^/| /' conftest.$ac_ext >&5
29272
29273	gt_cv_func_CFPreferencesCopyAppValue=no
29274fi
29275
29276rm -rf conftest.dSYM
29277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29278      conftest$ac_exeext conftest.$ac_ext
29279     LIBS="$gt_save_LIBS"
29280fi
29281{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
29282$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
29283  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
29284
29285cat >>confdefs.h <<\_ACEOF
29286#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
29287_ACEOF
29288
29289  fi
29290    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
29291$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
29292if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
29293  $as_echo_n "(cached) " >&6
29294else
29295  gt_save_LIBS="$LIBS"
29296     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
29297     cat >conftest.$ac_ext <<_ACEOF
29298/* confdefs.h.  */
29299_ACEOF
29300cat confdefs.h >>conftest.$ac_ext
29301cat >>conftest.$ac_ext <<_ACEOF
29302/* end confdefs.h.  */
29303#include <CoreFoundation/CFLocale.h>
29304int
29305main ()
29306{
29307CFLocaleCopyCurrent();
29308  ;
29309  return 0;
29310}
29311_ACEOF
29312rm -f conftest.$ac_objext conftest$ac_exeext
29313if { (ac_try="$ac_link"
29314case "(($ac_try" in
29315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29316  *) ac_try_echo=$ac_try;;
29317esac
29318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29319$as_echo "$ac_try_echo") >&5
29320  (eval "$ac_link") 2>conftest.er1
29321  ac_status=$?
29322  grep -v '^ *+' conftest.er1 >conftest.err
29323  rm -f conftest.er1
29324  cat conftest.err >&5
29325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326  (exit $ac_status); } && {
29327	 test -z "$ac_c_werror_flag" ||
29328	 test ! -s conftest.err
29329       } && test -s conftest$ac_exeext && {
29330	 test "$cross_compiling" = yes ||
29331	 $as_test_x conftest$ac_exeext
29332       }; then
29333  gt_cv_func_CFLocaleCopyCurrent=yes
29334else
29335  $as_echo "$as_me: failed program was:" >&5
29336sed 's/^/| /' conftest.$ac_ext >&5
29337
29338	gt_cv_func_CFLocaleCopyCurrent=no
29339fi
29340
29341rm -rf conftest.dSYM
29342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29343      conftest$ac_exeext conftest.$ac_ext
29344     LIBS="$gt_save_LIBS"
29345fi
29346{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
29347$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
29348  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
29349
29350cat >>confdefs.h <<\_ACEOF
29351#define HAVE_CFLOCALECOPYCURRENT 1
29352_ACEOF
29353
29354  fi
29355  INTL_MACOSX_LIBS=
29356  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
29357    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
29358  fi
29359
29360
29361
29362
29363
29364
29365
29366  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
29367$as_echo_n "checking for ptrdiff_t... " >&6; }
29368if test "${ac_cv_type_ptrdiff_t+set}" = set; then
29369  $as_echo_n "(cached) " >&6
29370else
29371  ac_cv_type_ptrdiff_t=no
29372cat >conftest.$ac_ext <<_ACEOF
29373/* confdefs.h.  */
29374_ACEOF
29375cat confdefs.h >>conftest.$ac_ext
29376cat >>conftest.$ac_ext <<_ACEOF
29377/* end confdefs.h.  */
29378$ac_includes_default
29379int
29380main ()
29381{
29382if (sizeof (ptrdiff_t))
29383       return 0;
29384  ;
29385  return 0;
29386}
29387_ACEOF
29388rm -f conftest.$ac_objext
29389if { (ac_try="$ac_compile"
29390case "(($ac_try" in
29391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392  *) ac_try_echo=$ac_try;;
29393esac
29394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29395$as_echo "$ac_try_echo") >&5
29396  (eval "$ac_compile") 2>conftest.er1
29397  ac_status=$?
29398  grep -v '^ *+' conftest.er1 >conftest.err
29399  rm -f conftest.er1
29400  cat conftest.err >&5
29401  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29402  (exit $ac_status); } && {
29403	 test -z "$ac_c_werror_flag" ||
29404	 test ! -s conftest.err
29405       } && test -s conftest.$ac_objext; then
29406  cat >conftest.$ac_ext <<_ACEOF
29407/* confdefs.h.  */
29408_ACEOF
29409cat confdefs.h >>conftest.$ac_ext
29410cat >>conftest.$ac_ext <<_ACEOF
29411/* end confdefs.h.  */
29412$ac_includes_default
29413int
29414main ()
29415{
29416if (sizeof ((ptrdiff_t)))
29417	  return 0;
29418  ;
29419  return 0;
29420}
29421_ACEOF
29422rm -f conftest.$ac_objext
29423if { (ac_try="$ac_compile"
29424case "(($ac_try" in
29425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29426  *) ac_try_echo=$ac_try;;
29427esac
29428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29429$as_echo "$ac_try_echo") >&5
29430  (eval "$ac_compile") 2>conftest.er1
29431  ac_status=$?
29432  grep -v '^ *+' conftest.er1 >conftest.err
29433  rm -f conftest.er1
29434  cat conftest.err >&5
29435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29436  (exit $ac_status); } && {
29437	 test -z "$ac_c_werror_flag" ||
29438	 test ! -s conftest.err
29439       } && test -s conftest.$ac_objext; then
29440  :
29441else
29442  $as_echo "$as_me: failed program was:" >&5
29443sed 's/^/| /' conftest.$ac_ext >&5
29444
29445	ac_cv_type_ptrdiff_t=yes
29446fi
29447
29448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29449else
29450  $as_echo "$as_me: failed program was:" >&5
29451sed 's/^/| /' conftest.$ac_ext >&5
29452
29453
29454fi
29455
29456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29457fi
29458{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
29459$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
29460if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
29461  :
29462else
29463
29464cat >>confdefs.h <<\_ACEOF
29465#define ptrdiff_t long
29466_ACEOF
29467
29468
29469fi
29470
29471
29472
29473
29474for ac_header in stddef.h stdlib.h string.h
29475do
29476as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29477if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29478  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29479$as_echo_n "checking for $ac_header... " >&6; }
29480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29481  $as_echo_n "(cached) " >&6
29482fi
29483ac_res=`eval 'as_val=${'$as_ac_Header'}
29484		 $as_echo "$as_val"'`
29485	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29486$as_echo "$ac_res" >&6; }
29487else
29488  # Is the header compilable?
29489{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29490$as_echo_n "checking $ac_header usability... " >&6; }
29491cat >conftest.$ac_ext <<_ACEOF
29492/* confdefs.h.  */
29493_ACEOF
29494cat confdefs.h >>conftest.$ac_ext
29495cat >>conftest.$ac_ext <<_ACEOF
29496/* end confdefs.h.  */
29497$ac_includes_default
29498#include <$ac_header>
29499_ACEOF
29500rm -f conftest.$ac_objext
29501if { (ac_try="$ac_compile"
29502case "(($ac_try" in
29503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504  *) ac_try_echo=$ac_try;;
29505esac
29506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29507$as_echo "$ac_try_echo") >&5
29508  (eval "$ac_compile") 2>conftest.er1
29509  ac_status=$?
29510  grep -v '^ *+' conftest.er1 >conftest.err
29511  rm -f conftest.er1
29512  cat conftest.err >&5
29513  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514  (exit $ac_status); } && {
29515	 test -z "$ac_c_werror_flag" ||
29516	 test ! -s conftest.err
29517       } && test -s conftest.$ac_objext; then
29518  ac_header_compiler=yes
29519else
29520  $as_echo "$as_me: failed program was:" >&5
29521sed 's/^/| /' conftest.$ac_ext >&5
29522
29523	ac_header_compiler=no
29524fi
29525
29526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29527{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29528$as_echo "$ac_header_compiler" >&6; }
29529
29530# Is the header present?
29531{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29532$as_echo_n "checking $ac_header presence... " >&6; }
29533cat >conftest.$ac_ext <<_ACEOF
29534/* confdefs.h.  */
29535_ACEOF
29536cat confdefs.h >>conftest.$ac_ext
29537cat >>conftest.$ac_ext <<_ACEOF
29538/* end confdefs.h.  */
29539#include <$ac_header>
29540_ACEOF
29541if { (ac_try="$ac_cpp conftest.$ac_ext"
29542case "(($ac_try" in
29543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544  *) ac_try_echo=$ac_try;;
29545esac
29546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29547$as_echo "$ac_try_echo") >&5
29548  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29549  ac_status=$?
29550  grep -v '^ *+' conftest.er1 >conftest.err
29551  rm -f conftest.er1
29552  cat conftest.err >&5
29553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554  (exit $ac_status); } >/dev/null && {
29555	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29556	 test ! -s conftest.err
29557       }; then
29558  ac_header_preproc=yes
29559else
29560  $as_echo "$as_me: failed program was:" >&5
29561sed 's/^/| /' conftest.$ac_ext >&5
29562
29563  ac_header_preproc=no
29564fi
29565
29566rm -f conftest.err conftest.$ac_ext
29567{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29568$as_echo "$ac_header_preproc" >&6; }
29569
29570# So?  What about this header?
29571case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29572  yes:no: )
29573    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29574$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29575    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29576$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29577    ac_header_preproc=yes
29578    ;;
29579  no:yes:* )
29580    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29581$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29582    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29583$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29584    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29585$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29586    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29587$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29588    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29589$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29590    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29591$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29592
29593    ;;
29594esac
29595{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29596$as_echo_n "checking for $ac_header... " >&6; }
29597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29598  $as_echo_n "(cached) " >&6
29599else
29600  eval "$as_ac_Header=\$ac_header_preproc"
29601fi
29602ac_res=`eval 'as_val=${'$as_ac_Header'}
29603		 $as_echo "$as_val"'`
29604	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29605$as_echo "$ac_res" >&6; }
29606
29607fi
29608as_val=`eval 'as_val=${'$as_ac_Header'}
29609		 $as_echo "$as_val"'`
29610   if test "x$as_val" = x""yes; then
29611  cat >>confdefs.h <<_ACEOF
29612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29613_ACEOF
29614
29615fi
29616
29617done
29618
29619
29620
29621
29622
29623
29624
29625
29626for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
29627do
29628as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29629{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29630$as_echo_n "checking for $ac_func... " >&6; }
29631if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29632  $as_echo_n "(cached) " >&6
29633else
29634  cat >conftest.$ac_ext <<_ACEOF
29635/* confdefs.h.  */
29636_ACEOF
29637cat confdefs.h >>conftest.$ac_ext
29638cat >>conftest.$ac_ext <<_ACEOF
29639/* end confdefs.h.  */
29640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29641   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29642#define $ac_func innocuous_$ac_func
29643
29644/* System header to define __stub macros and hopefully few prototypes,
29645    which can conflict with char $ac_func (); below.
29646    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29647    <limits.h> exists even on freestanding compilers.  */
29648
29649#ifdef __STDC__
29650# include <limits.h>
29651#else
29652# include <assert.h>
29653#endif
29654
29655#undef $ac_func
29656
29657/* Override any GCC internal prototype to avoid an error.
29658   Use char because int might match the return type of a GCC
29659   builtin and then its argument prototype would still apply.  */
29660#ifdef __cplusplus
29661extern "C"
29662#endif
29663char $ac_func ();
29664/* The GNU C library defines this for functions which it implements
29665    to always fail with ENOSYS.  Some functions are actually named
29666    something starting with __ and the normal name is an alias.  */
29667#if defined __stub_$ac_func || defined __stub___$ac_func
29668choke me
29669#endif
29670
29671int
29672main ()
29673{
29674return $ac_func ();
29675  ;
29676  return 0;
29677}
29678_ACEOF
29679rm -f conftest.$ac_objext conftest$ac_exeext
29680if { (ac_try="$ac_link"
29681case "(($ac_try" in
29682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683  *) ac_try_echo=$ac_try;;
29684esac
29685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29686$as_echo "$ac_try_echo") >&5
29687  (eval "$ac_link") 2>conftest.er1
29688  ac_status=$?
29689  grep -v '^ *+' conftest.er1 >conftest.err
29690  rm -f conftest.er1
29691  cat conftest.err >&5
29692  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693  (exit $ac_status); } && {
29694	 test -z "$ac_c_werror_flag" ||
29695	 test ! -s conftest.err
29696       } && test -s conftest$ac_exeext && {
29697	 test "$cross_compiling" = yes ||
29698	 $as_test_x conftest$ac_exeext
29699       }; then
29700  eval "$as_ac_var=yes"
29701else
29702  $as_echo "$as_me: failed program was:" >&5
29703sed 's/^/| /' conftest.$ac_ext >&5
29704
29705	eval "$as_ac_var=no"
29706fi
29707
29708rm -rf conftest.dSYM
29709rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29710      conftest$ac_exeext conftest.$ac_ext
29711fi
29712ac_res=`eval 'as_val=${'$as_ac_var'}
29713		 $as_echo "$as_val"'`
29714	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29715$as_echo "$ac_res" >&6; }
29716as_val=`eval 'as_val=${'$as_ac_var'}
29717		 $as_echo "$as_val"'`
29718   if test "x$as_val" = x""yes; then
29719  cat >>confdefs.h <<_ACEOF
29720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29721_ACEOF
29722
29723fi
29724done
29725
29726
29727
29728  { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
29729$as_echo_n "checking whether _snprintf is declared... " >&6; }
29730if test "${ac_cv_have_decl__snprintf+set}" = set; then
29731  $as_echo_n "(cached) " >&6
29732else
29733  cat >conftest.$ac_ext <<_ACEOF
29734/* confdefs.h.  */
29735_ACEOF
29736cat confdefs.h >>conftest.$ac_ext
29737cat >>conftest.$ac_ext <<_ACEOF
29738/* end confdefs.h.  */
29739#include <stdio.h>
29740int
29741main ()
29742{
29743
29744#ifndef _snprintf
29745  char *p = (char *) _snprintf;
29746#endif
29747
29748  ;
29749  return 0;
29750}
29751_ACEOF
29752rm -f conftest.$ac_objext
29753if { (ac_try="$ac_compile"
29754case "(($ac_try" in
29755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756  *) ac_try_echo=$ac_try;;
29757esac
29758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29759$as_echo "$ac_try_echo") >&5
29760  (eval "$ac_compile") 2>conftest.er1
29761  ac_status=$?
29762  grep -v '^ *+' conftest.er1 >conftest.err
29763  rm -f conftest.er1
29764  cat conftest.err >&5
29765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766  (exit $ac_status); } && {
29767	 test -z "$ac_c_werror_flag" ||
29768	 test ! -s conftest.err
29769       } && test -s conftest.$ac_objext; then
29770  ac_cv_have_decl__snprintf=yes
29771else
29772  $as_echo "$as_me: failed program was:" >&5
29773sed 's/^/| /' conftest.$ac_ext >&5
29774
29775	ac_cv_have_decl__snprintf=no
29776fi
29777
29778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29779fi
29780{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
29781$as_echo "$ac_cv_have_decl__snprintf" >&6; }
29782  if test $ac_cv_have_decl__snprintf = yes; then
29783    gt_value=1
29784  else
29785    gt_value=0
29786  fi
29787
29788cat >>confdefs.h <<_ACEOF
29789#define HAVE_DECL__SNPRINTF $gt_value
29790_ACEOF
29791
29792
29793
29794  { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
29795$as_echo_n "checking whether _snwprintf is declared... " >&6; }
29796if test "${ac_cv_have_decl__snwprintf+set}" = set; then
29797  $as_echo_n "(cached) " >&6
29798else
29799  cat >conftest.$ac_ext <<_ACEOF
29800/* confdefs.h.  */
29801_ACEOF
29802cat confdefs.h >>conftest.$ac_ext
29803cat >>conftest.$ac_ext <<_ACEOF
29804/* end confdefs.h.  */
29805#include <stdio.h>
29806int
29807main ()
29808{
29809
29810#ifndef _snwprintf
29811  char *p = (char *) _snwprintf;
29812#endif
29813
29814  ;
29815  return 0;
29816}
29817_ACEOF
29818rm -f conftest.$ac_objext
29819if { (ac_try="$ac_compile"
29820case "(($ac_try" in
29821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29822  *) ac_try_echo=$ac_try;;
29823esac
29824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29825$as_echo "$ac_try_echo") >&5
29826  (eval "$ac_compile") 2>conftest.er1
29827  ac_status=$?
29828  grep -v '^ *+' conftest.er1 >conftest.err
29829  rm -f conftest.er1
29830  cat conftest.err >&5
29831  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832  (exit $ac_status); } && {
29833	 test -z "$ac_c_werror_flag" ||
29834	 test ! -s conftest.err
29835       } && test -s conftest.$ac_objext; then
29836  ac_cv_have_decl__snwprintf=yes
29837else
29838  $as_echo "$as_me: failed program was:" >&5
29839sed 's/^/| /' conftest.$ac_ext >&5
29840
29841	ac_cv_have_decl__snwprintf=no
29842fi
29843
29844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29845fi
29846{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
29847$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
29848  if test $ac_cv_have_decl__snwprintf = yes; then
29849    gt_value=1
29850  else
29851    gt_value=0
29852  fi
29853
29854cat >>confdefs.h <<_ACEOF
29855#define HAVE_DECL__SNWPRINTF $gt_value
29856_ACEOF
29857
29858
29859
29860
29861  { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
29862$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
29863if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
29864  $as_echo_n "(cached) " >&6
29865else
29866  cat >conftest.$ac_ext <<_ACEOF
29867/* confdefs.h.  */
29868_ACEOF
29869cat confdefs.h >>conftest.$ac_ext
29870cat >>conftest.$ac_ext <<_ACEOF
29871/* end confdefs.h.  */
29872#include <stdio.h>
29873int
29874main ()
29875{
29876
29877#ifndef getc_unlocked
29878  char *p = (char *) getc_unlocked;
29879#endif
29880
29881  ;
29882  return 0;
29883}
29884_ACEOF
29885rm -f conftest.$ac_objext
29886if { (ac_try="$ac_compile"
29887case "(($ac_try" in
29888  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29889  *) ac_try_echo=$ac_try;;
29890esac
29891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29892$as_echo "$ac_try_echo") >&5
29893  (eval "$ac_compile") 2>conftest.er1
29894  ac_status=$?
29895  grep -v '^ *+' conftest.er1 >conftest.err
29896  rm -f conftest.er1
29897  cat conftest.err >&5
29898  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899  (exit $ac_status); } && {
29900	 test -z "$ac_c_werror_flag" ||
29901	 test ! -s conftest.err
29902       } && test -s conftest.$ac_objext; then
29903  ac_cv_have_decl_getc_unlocked=yes
29904else
29905  $as_echo "$as_me: failed program was:" >&5
29906sed 's/^/| /' conftest.$ac_ext >&5
29907
29908	ac_cv_have_decl_getc_unlocked=no
29909fi
29910
29911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29912fi
29913{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29914$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
29915  if test $ac_cv_have_decl_getc_unlocked = yes; then
29916    gt_value=1
29917  else
29918    gt_value=0
29919  fi
29920
29921cat >>confdefs.h <<_ACEOF
29922#define HAVE_DECL_GETC_UNLOCKED $gt_value
29923_ACEOF
29924
29925
29926
29927  case $gt_cv_func_printf_posix in
29928    *yes) HAVE_POSIX_PRINTF=1 ;;
29929    *) HAVE_POSIX_PRINTF=0 ;;
29930  esac
29931
29932  if test "$ac_cv_func_asprintf" = yes; then
29933    HAVE_ASPRINTF=1
29934  else
29935    HAVE_ASPRINTF=0
29936  fi
29937
29938  if test "$ac_cv_func_snprintf" = yes; then
29939    HAVE_SNPRINTF=1
29940  else
29941    HAVE_SNPRINTF=0
29942  fi
29943
29944  if test "$ac_cv_func_wprintf" = yes; then
29945    HAVE_WPRINTF=1
29946  else
29947    HAVE_WPRINTF=0
29948  fi
29949
29950
29951
29952  { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
29953$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
29954if test "${am_cv_langinfo_codeset+set}" = set; then
29955  $as_echo_n "(cached) " >&6
29956else
29957  cat >conftest.$ac_ext <<_ACEOF
29958/* confdefs.h.  */
29959_ACEOF
29960cat confdefs.h >>conftest.$ac_ext
29961cat >>conftest.$ac_ext <<_ACEOF
29962/* end confdefs.h.  */
29963#include <langinfo.h>
29964int
29965main ()
29966{
29967char* cs = nl_langinfo(CODESET); return !cs;
29968  ;
29969  return 0;
29970}
29971_ACEOF
29972rm -f conftest.$ac_objext conftest$ac_exeext
29973if { (ac_try="$ac_link"
29974case "(($ac_try" in
29975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29976  *) ac_try_echo=$ac_try;;
29977esac
29978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29979$as_echo "$ac_try_echo") >&5
29980  (eval "$ac_link") 2>conftest.er1
29981  ac_status=$?
29982  grep -v '^ *+' conftest.er1 >conftest.err
29983  rm -f conftest.er1
29984  cat conftest.err >&5
29985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986  (exit $ac_status); } && {
29987	 test -z "$ac_c_werror_flag" ||
29988	 test ! -s conftest.err
29989       } && test -s conftest$ac_exeext && {
29990	 test "$cross_compiling" = yes ||
29991	 $as_test_x conftest$ac_exeext
29992       }; then
29993  am_cv_langinfo_codeset=yes
29994else
29995  $as_echo "$as_me: failed program was:" >&5
29996sed 's/^/| /' conftest.$ac_ext >&5
29997
29998	am_cv_langinfo_codeset=no
29999fi
30000
30001rm -rf conftest.dSYM
30002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30003      conftest$ac_exeext conftest.$ac_ext
30004
30005fi
30006{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
30007$as_echo "$am_cv_langinfo_codeset" >&6; }
30008  if test $am_cv_langinfo_codeset = yes; then
30009
30010cat >>confdefs.h <<\_ACEOF
30011#define HAVE_LANGINFO_CODESET 1
30012_ACEOF
30013
30014  fi
30015
30016
30017  { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
30018$as_echo_n "checking for LC_MESSAGES... " >&6; }
30019if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
30020  $as_echo_n "(cached) " >&6
30021else
30022  cat >conftest.$ac_ext <<_ACEOF
30023/* confdefs.h.  */
30024_ACEOF
30025cat confdefs.h >>conftest.$ac_ext
30026cat >>conftest.$ac_ext <<_ACEOF
30027/* end confdefs.h.  */
30028#include <locale.h>
30029int
30030main ()
30031{
30032return LC_MESSAGES
30033  ;
30034  return 0;
30035}
30036_ACEOF
30037rm -f conftest.$ac_objext conftest$ac_exeext
30038if { (ac_try="$ac_link"
30039case "(($ac_try" in
30040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041  *) ac_try_echo=$ac_try;;
30042esac
30043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30044$as_echo "$ac_try_echo") >&5
30045  (eval "$ac_link") 2>conftest.er1
30046  ac_status=$?
30047  grep -v '^ *+' conftest.er1 >conftest.err
30048  rm -f conftest.er1
30049  cat conftest.err >&5
30050  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051  (exit $ac_status); } && {
30052	 test -z "$ac_c_werror_flag" ||
30053	 test ! -s conftest.err
30054       } && test -s conftest$ac_exeext && {
30055	 test "$cross_compiling" = yes ||
30056	 $as_test_x conftest$ac_exeext
30057       }; then
30058  gt_cv_val_LC_MESSAGES=yes
30059else
30060  $as_echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
30063	gt_cv_val_LC_MESSAGES=no
30064fi
30065
30066rm -rf conftest.dSYM
30067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30068      conftest$ac_exeext conftest.$ac_ext
30069fi
30070{ $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
30071$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
30072  if test $gt_cv_val_LC_MESSAGES = yes; then
30073
30074cat >>confdefs.h <<\_ACEOF
30075#define HAVE_LC_MESSAGES 1
30076_ACEOF
30077
30078  fi
30079
30080
30081                if test "$enable_shared" = yes; then
30082    case "$host_os" in
30083      mingw* | cygwin*) is_woe32dll=yes ;;
30084      *) is_woe32dll=no ;;
30085    esac
30086  else
30087    is_woe32dll=no
30088  fi
30089  WOE32DLL=$is_woe32dll
30090
30091
30092      case "$host_os" in
30093    mingw* | cygwin*) is_woe32=yes ;;
30094    *) is_woe32=no ;;
30095  esac
30096  WOE32=$is_woe32
30097
30098  if test $WOE32 = yes; then
30099        if test -n "$ac_tool_prefix"; then
30100  # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
30101set dummy ${ac_tool_prefix}windres; ac_word=$2
30102{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30103$as_echo_n "checking for $ac_word... " >&6; }
30104if test "${ac_cv_prog_WINDRES+set}" = set; then
30105  $as_echo_n "(cached) " >&6
30106else
30107  if test -n "$WINDRES"; then
30108  ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
30109else
30110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30111for as_dir in $PATH
30112do
30113  IFS=$as_save_IFS
30114  test -z "$as_dir" && as_dir=.
30115  for ac_exec_ext in '' $ac_executable_extensions; do
30116  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30117    ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
30118    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30119    break 2
30120  fi
30121done
30122done
30123IFS=$as_save_IFS
30124
30125fi
30126fi
30127WINDRES=$ac_cv_prog_WINDRES
30128if test -n "$WINDRES"; then
30129  { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
30130$as_echo "$WINDRES" >&6; }
30131else
30132  { $as_echo "$as_me:$LINENO: result: no" >&5
30133$as_echo "no" >&6; }
30134fi
30135
30136
30137fi
30138if test -z "$ac_cv_prog_WINDRES"; then
30139  ac_ct_WINDRES=$WINDRES
30140  # Extract the first word of "windres", so it can be a program name with args.
30141set dummy windres; ac_word=$2
30142{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30143$as_echo_n "checking for $ac_word... " >&6; }
30144if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
30145  $as_echo_n "(cached) " >&6
30146else
30147  if test -n "$ac_ct_WINDRES"; then
30148  ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
30149else
30150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30151for as_dir in $PATH
30152do
30153  IFS=$as_save_IFS
30154  test -z "$as_dir" && as_dir=.
30155  for ac_exec_ext in '' $ac_executable_extensions; do
30156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30157    ac_cv_prog_ac_ct_WINDRES="windres"
30158    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30159    break 2
30160  fi
30161done
30162done
30163IFS=$as_save_IFS
30164
30165fi
30166fi
30167ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
30168if test -n "$ac_ct_WINDRES"; then
30169  { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
30170$as_echo "$ac_ct_WINDRES" >&6; }
30171else
30172  { $as_echo "$as_me:$LINENO: result: no" >&5
30173$as_echo "no" >&6; }
30174fi
30175
30176  if test "x$ac_ct_WINDRES" = x; then
30177    WINDRES=""
30178  else
30179    case $cross_compiling:$ac_tool_warned in
30180yes:)
30181{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
30182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30183ac_tool_warned=yes ;;
30184esac
30185    WINDRES=$ac_ct_WINDRES
30186  fi
30187else
30188  WINDRES="$ac_cv_prog_WINDRES"
30189fi
30190
30191  fi
30192
30193              case "$host_os" in
30194    hpux*) LTLIBC="" ;;
30195    *)     LTLIBC="-lc" ;;
30196  esac
30197
30198
30199
30200
30201
30202
30203
30204
30205
30206
30207
30208
30209
30210
30211
30212
30213
30214
30215
30216
30217
30218
30219
30220
30221
30222
30223
30224    { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
30225$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
30226if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
30227  $as_echo_n "(cached) " >&6
30228else
30229  gt_save_LIBS="$LIBS"
30230     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
30231     cat >conftest.$ac_ext <<_ACEOF
30232/* confdefs.h.  */
30233_ACEOF
30234cat confdefs.h >>conftest.$ac_ext
30235cat >>conftest.$ac_ext <<_ACEOF
30236/* end confdefs.h.  */
30237#include <CoreFoundation/CFPreferences.h>
30238int
30239main ()
30240{
30241CFPreferencesCopyAppValue(NULL, NULL)
30242  ;
30243  return 0;
30244}
30245_ACEOF
30246rm -f conftest.$ac_objext conftest$ac_exeext
30247if { (ac_try="$ac_link"
30248case "(($ac_try" in
30249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250  *) ac_try_echo=$ac_try;;
30251esac
30252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30253$as_echo "$ac_try_echo") >&5
30254  (eval "$ac_link") 2>conftest.er1
30255  ac_status=$?
30256  grep -v '^ *+' conftest.er1 >conftest.err
30257  rm -f conftest.er1
30258  cat conftest.err >&5
30259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260  (exit $ac_status); } && {
30261	 test -z "$ac_c_werror_flag" ||
30262	 test ! -s conftest.err
30263       } && test -s conftest$ac_exeext && {
30264	 test "$cross_compiling" = yes ||
30265	 $as_test_x conftest$ac_exeext
30266       }; then
30267  gt_cv_func_CFPreferencesCopyAppValue=yes
30268else
30269  $as_echo "$as_me: failed program was:" >&5
30270sed 's/^/| /' conftest.$ac_ext >&5
30271
30272	gt_cv_func_CFPreferencesCopyAppValue=no
30273fi
30274
30275rm -rf conftest.dSYM
30276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30277      conftest$ac_exeext conftest.$ac_ext
30278     LIBS="$gt_save_LIBS"
30279fi
30280{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
30281$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
30282  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
30283
30284cat >>confdefs.h <<\_ACEOF
30285#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
30286_ACEOF
30287
30288  fi
30289    { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
30290$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
30291if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
30292  $as_echo_n "(cached) " >&6
30293else
30294  gt_save_LIBS="$LIBS"
30295     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
30296     cat >conftest.$ac_ext <<_ACEOF
30297/* confdefs.h.  */
30298_ACEOF
30299cat confdefs.h >>conftest.$ac_ext
30300cat >>conftest.$ac_ext <<_ACEOF
30301/* end confdefs.h.  */
30302#include <CoreFoundation/CFLocale.h>
30303int
30304main ()
30305{
30306CFLocaleCopyCurrent();
30307  ;
30308  return 0;
30309}
30310_ACEOF
30311rm -f conftest.$ac_objext conftest$ac_exeext
30312if { (ac_try="$ac_link"
30313case "(($ac_try" in
30314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30315  *) ac_try_echo=$ac_try;;
30316esac
30317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30318$as_echo "$ac_try_echo") >&5
30319  (eval "$ac_link") 2>conftest.er1
30320  ac_status=$?
30321  grep -v '^ *+' conftest.er1 >conftest.err
30322  rm -f conftest.er1
30323  cat conftest.err >&5
30324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30325  (exit $ac_status); } && {
30326	 test -z "$ac_c_werror_flag" ||
30327	 test ! -s conftest.err
30328       } && test -s conftest$ac_exeext && {
30329	 test "$cross_compiling" = yes ||
30330	 $as_test_x conftest$ac_exeext
30331       }; then
30332  gt_cv_func_CFLocaleCopyCurrent=yes
30333else
30334  $as_echo "$as_me: failed program was:" >&5
30335sed 's/^/| /' conftest.$ac_ext >&5
30336
30337	gt_cv_func_CFLocaleCopyCurrent=no
30338fi
30339
30340rm -rf conftest.dSYM
30341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30342      conftest$ac_exeext conftest.$ac_ext
30343     LIBS="$gt_save_LIBS"
30344fi
30345{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
30346$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
30347  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
30348
30349cat >>confdefs.h <<\_ACEOF
30350#define HAVE_CFLOCALECOPYCURRENT 1
30351_ACEOF
30352
30353  fi
30354  INTL_MACOSX_LIBS=
30355  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
30356    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
30357  fi
30358
30359
30360
30361
30362
30363
30364    BUILD_INCLUDED_LIBINTL=no
30365    USE_INCLUDED_LIBINTL=no
30366
30367  LIBINTL=
30368  LTLIBINTL=
30369  POSUB=
30370
30371    case " $gt_needs " in
30372    *" need-formatstring-macros "*) gt_api_version=3 ;;
30373    *" need-ngettext "*) gt_api_version=2 ;;
30374    *) gt_api_version=1 ;;
30375  esac
30376  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
30377  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
30378
30379    if test "$USE_NLS" = "yes"; then
30380    gt_use_preinstalled_gnugettext=no
30381
30382      { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
30383$as_echo_n "checking whether included gettext is requested... " >&6; }
30384
30385# Check whether --with-included-gettext was given.
30386if test "${with_included_gettext+set}" = set; then
30387  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
30388else
30389  nls_cv_force_use_gnu_gettext=no
30390fi
30391
30392      { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
30393$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
30394
30395      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
30396      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
30397
30398
30399        if test $gt_api_version -ge 3; then
30400          gt_revision_test_code='
30401#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
30402#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
30403#endif
30404typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
30405'
30406        else
30407          gt_revision_test_code=
30408        fi
30409        if test $gt_api_version -ge 2; then
30410          gt_expression_test_code=' + * ngettext ("", "", 0)'
30411        else
30412          gt_expression_test_code=
30413        fi
30414
30415        { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
30416$as_echo_n "checking for GNU gettext in libc... " >&6; }
30417if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
30418  $as_echo_n "(cached) " >&6
30419else
30420  cat >conftest.$ac_ext <<_ACEOF
30421/* confdefs.h.  */
30422_ACEOF
30423cat confdefs.h >>conftest.$ac_ext
30424cat >>conftest.$ac_ext <<_ACEOF
30425/* end confdefs.h.  */
30426#include <libintl.h>
30427$gt_revision_test_code
30428extern int _nl_msg_cat_cntr;
30429extern int *_nl_domain_bindings;
30430int
30431main ()
30432{
30433bindtextdomain ("", "");
30434return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
30435  ;
30436  return 0;
30437}
30438_ACEOF
30439rm -f conftest.$ac_objext conftest$ac_exeext
30440if { (ac_try="$ac_link"
30441case "(($ac_try" in
30442  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30443  *) ac_try_echo=$ac_try;;
30444esac
30445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30446$as_echo "$ac_try_echo") >&5
30447  (eval "$ac_link") 2>conftest.er1
30448  ac_status=$?
30449  grep -v '^ *+' conftest.er1 >conftest.err
30450  rm -f conftest.er1
30451  cat conftest.err >&5
30452  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453  (exit $ac_status); } && {
30454	 test -z "$ac_c_werror_flag" ||
30455	 test ! -s conftest.err
30456       } && test -s conftest$ac_exeext && {
30457	 test "$cross_compiling" = yes ||
30458	 $as_test_x conftest$ac_exeext
30459       }; then
30460  eval "$gt_func_gnugettext_libc=yes"
30461else
30462  $as_echo "$as_me: failed program was:" >&5
30463sed 's/^/| /' conftest.$ac_ext >&5
30464
30465	eval "$gt_func_gnugettext_libc=no"
30466fi
30467
30468rm -rf conftest.dSYM
30469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30470      conftest$ac_exeext conftest.$ac_ext
30471fi
30472ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
30473		 $as_echo "$as_val"'`
30474	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30475$as_echo "$ac_res" >&6; }
30476
30477        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
30478
30479
30480
30481
30482
30483    use_additional=yes
30484
30485  acl_save_prefix="$prefix"
30486  prefix="$acl_final_prefix"
30487  acl_save_exec_prefix="$exec_prefix"
30488  exec_prefix="$acl_final_exec_prefix"
30489
30490    eval additional_includedir=\"$includedir\"
30491    eval additional_libdir=\"$libdir\"
30492
30493  exec_prefix="$acl_save_exec_prefix"
30494  prefix="$acl_save_prefix"
30495
30496
30497# Check whether --with-libintl-prefix was given.
30498if test "${with_libintl_prefix+set}" = set; then
30499  withval=$with_libintl_prefix;
30500    if test "X$withval" = "Xno"; then
30501      use_additional=no
30502    else
30503      if test "X$withval" = "X"; then
30504
30505  acl_save_prefix="$prefix"
30506  prefix="$acl_final_prefix"
30507  acl_save_exec_prefix="$exec_prefix"
30508  exec_prefix="$acl_final_exec_prefix"
30509
30510          eval additional_includedir=\"$includedir\"
30511          eval additional_libdir=\"$libdir\"
30512
30513  exec_prefix="$acl_save_exec_prefix"
30514  prefix="$acl_save_prefix"
30515
30516      else
30517        additional_includedir="$withval/include"
30518        additional_libdir="$withval/$acl_libdirstem"
30519      fi
30520    fi
30521
30522fi
30523
30524      LIBINTL=
30525  LTLIBINTL=
30526  INCINTL=
30527  LIBINTL_PREFIX=
30528  rpathdirs=
30529  ltrpathdirs=
30530  names_already_handled=
30531  names_next_round='intl '
30532  while test -n "$names_next_round"; do
30533    names_this_round="$names_next_round"
30534    names_next_round=
30535    for name in $names_this_round; do
30536      already_handled=
30537      for n in $names_already_handled; do
30538        if test "$n" = "$name"; then
30539          already_handled=yes
30540          break
30541        fi
30542      done
30543      if test -z "$already_handled"; then
30544        names_already_handled="$names_already_handled $name"
30545                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
30546        eval value=\"\$HAVE_LIB$uppername\"
30547        if test -n "$value"; then
30548          if test "$value" = yes; then
30549            eval value=\"\$LIB$uppername\"
30550            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
30551            eval value=\"\$LTLIB$uppername\"
30552            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
30553          else
30554                                    :
30555          fi
30556        else
30557                              found_dir=
30558          found_la=
30559          found_so=
30560          found_a=
30561          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
30562          if test -n "$acl_shlibext"; then
30563            shrext=".$acl_shlibext"             # typically: shrext=.so
30564          else
30565            shrext=
30566          fi
30567          if test $use_additional = yes; then
30568            dir="$additional_libdir"
30569                                    if test -n "$acl_shlibext"; then
30570              if test -f "$dir/$libname$shrext"; then
30571                found_dir="$dir"
30572                found_so="$dir/$libname$shrext"
30573              else
30574                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
30575                  ver=`(cd "$dir" && \
30576                        for f in "$libname$shrext".*; do echo "$f"; done \
30577                        | sed -e "s,^$libname$shrext\\\\.,," \
30578                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
30579                        | sed 1q ) 2>/dev/null`
30580                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
30581                    found_dir="$dir"
30582                    found_so="$dir/$libname$shrext.$ver"
30583                  fi
30584                else
30585                  eval library_names=\"$acl_library_names_spec\"
30586                  for f in $library_names; do
30587                    if test -f "$dir/$f"; then
30588                      found_dir="$dir"
30589                      found_so="$dir/$f"
30590                      break
30591                    fi
30592                  done
30593                fi
30594              fi
30595            fi
30596                        if test "X$found_dir" = "X"; then
30597              if test -f "$dir/$libname.$acl_libext"; then
30598                found_dir="$dir"
30599                found_a="$dir/$libname.$acl_libext"
30600              fi
30601            fi
30602            if test "X$found_dir" != "X"; then
30603              if test -f "$dir/$libname.la"; then
30604                found_la="$dir/$libname.la"
30605              fi
30606            fi
30607          fi
30608          if test "X$found_dir" = "X"; then
30609            for x in $LDFLAGS $LTLIBINTL; do
30610
30611  acl_save_prefix="$prefix"
30612  prefix="$acl_final_prefix"
30613  acl_save_exec_prefix="$exec_prefix"
30614  exec_prefix="$acl_final_exec_prefix"
30615  eval x=\"$x\"
30616  exec_prefix="$acl_save_exec_prefix"
30617  prefix="$acl_save_prefix"
30618
30619              case "$x" in
30620                -L*)
30621                  dir=`echo "X$x" | sed -e 's/^X-L//'`
30622                                    if test -n "$acl_shlibext"; then
30623                    if test -f "$dir/$libname$shrext"; then
30624                      found_dir="$dir"
30625                      found_so="$dir/$libname$shrext"
30626                    else
30627                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
30628                        ver=`(cd "$dir" && \
30629                              for f in "$libname$shrext".*; do echo "$f"; done \
30630                              | sed -e "s,^$libname$shrext\\\\.,," \
30631                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
30632                              | sed 1q ) 2>/dev/null`
30633                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
30634                          found_dir="$dir"
30635                          found_so="$dir/$libname$shrext.$ver"
30636                        fi
30637                      else
30638                        eval library_names=\"$acl_library_names_spec\"
30639                        for f in $library_names; do
30640                          if test -f "$dir/$f"; then
30641                            found_dir="$dir"
30642                            found_so="$dir/$f"
30643                            break
30644                          fi
30645                        done
30646                      fi
30647                    fi
30648                  fi
30649                                    if test "X$found_dir" = "X"; then
30650                    if test -f "$dir/$libname.$acl_libext"; then
30651                      found_dir="$dir"
30652                      found_a="$dir/$libname.$acl_libext"
30653                    fi
30654                  fi
30655                  if test "X$found_dir" != "X"; then
30656                    if test -f "$dir/$libname.la"; then
30657                      found_la="$dir/$libname.la"
30658                    fi
30659                  fi
30660                  ;;
30661              esac
30662              if test "X$found_dir" != "X"; then
30663                break
30664              fi
30665            done
30666          fi
30667          if test "X$found_dir" != "X"; then
30668                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
30669            if test "X$found_so" != "X"; then
30670                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
30671                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30672              else
30673                                                                                haveit=
30674                for x in $ltrpathdirs; do
30675                  if test "X$x" = "X$found_dir"; then
30676                    haveit=yes
30677                    break
30678                  fi
30679                done
30680                if test -z "$haveit"; then
30681                  ltrpathdirs="$ltrpathdirs $found_dir"
30682                fi
30683                                if test "$acl_hardcode_direct" = yes; then
30684                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30685                else
30686                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
30687                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30688                                                            haveit=
30689                    for x in $rpathdirs; do
30690                      if test "X$x" = "X$found_dir"; then
30691                        haveit=yes
30692                        break
30693                      fi
30694                    done
30695                    if test -z "$haveit"; then
30696                      rpathdirs="$rpathdirs $found_dir"
30697                    fi
30698                  else
30699                                                                                haveit=
30700                    for x in $LDFLAGS $LIBINTL; do
30701
30702  acl_save_prefix="$prefix"
30703  prefix="$acl_final_prefix"
30704  acl_save_exec_prefix="$exec_prefix"
30705  exec_prefix="$acl_final_exec_prefix"
30706  eval x=\"$x\"
30707  exec_prefix="$acl_save_exec_prefix"
30708  prefix="$acl_save_prefix"
30709
30710                      if test "X$x" = "X-L$found_dir"; then
30711                        haveit=yes
30712                        break
30713                      fi
30714                    done
30715                    if test -z "$haveit"; then
30716                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
30717                    fi
30718                    if test "$acl_hardcode_minus_L" != no; then
30719                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
30720                    else
30721                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30722                    fi
30723                  fi
30724                fi
30725              fi
30726            else
30727              if test "X$found_a" != "X"; then
30728                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
30729              else
30730                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
30731              fi
30732            fi
30733                        additional_includedir=
30734            case "$found_dir" in
30735              */$acl_libdirstem | */$acl_libdirstem/)
30736                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
30737                LIBINTL_PREFIX="$basedir"
30738                additional_includedir="$basedir/include"
30739                ;;
30740            esac
30741            if test "X$additional_includedir" != "X"; then
30742                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
30743                haveit=
30744                if test "X$additional_includedir" = "X/usr/local/include"; then
30745                  if test -n "$GCC"; then
30746                    case $host_os in
30747                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
30748                    esac
30749                  fi
30750                fi
30751                if test -z "$haveit"; then
30752                  for x in $CPPFLAGS $INCINTL; do
30753
30754  acl_save_prefix="$prefix"
30755  prefix="$acl_final_prefix"
30756  acl_save_exec_prefix="$exec_prefix"
30757  exec_prefix="$acl_final_exec_prefix"
30758  eval x=\"$x\"
30759  exec_prefix="$acl_save_exec_prefix"
30760  prefix="$acl_save_prefix"
30761
30762                    if test "X$x" = "X-I$additional_includedir"; then
30763                      haveit=yes
30764                      break
30765                    fi
30766                  done
30767                  if test -z "$haveit"; then
30768                    if test -d "$additional_includedir"; then
30769                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
30770                    fi
30771                  fi
30772                fi
30773              fi
30774            fi
30775                        if test -n "$found_la"; then
30776                                                        save_libdir="$libdir"
30777              case "$found_la" in
30778                */* | *\\*) . "$found_la" ;;
30779                *) . "./$found_la" ;;
30780              esac
30781              libdir="$save_libdir"
30782                            for dep in $dependency_libs; do
30783                case "$dep" in
30784                  -L*)
30785                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
30786                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
30787                      haveit=
30788                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
30789                        if test -n "$GCC"; then
30790                          case $host_os in
30791                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
30792                          esac
30793                        fi
30794                      fi
30795                      if test -z "$haveit"; then
30796                        haveit=
30797                        for x in $LDFLAGS $LIBINTL; do
30798
30799  acl_save_prefix="$prefix"
30800  prefix="$acl_final_prefix"
30801  acl_save_exec_prefix="$exec_prefix"
30802  exec_prefix="$acl_final_exec_prefix"
30803  eval x=\"$x\"
30804  exec_prefix="$acl_save_exec_prefix"
30805  prefix="$acl_save_prefix"
30806
30807                          if test "X$x" = "X-L$additional_libdir"; then
30808                            haveit=yes
30809                            break
30810                          fi
30811                        done
30812                        if test -z "$haveit"; then
30813                          if test -d "$additional_libdir"; then
30814                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
30815                          fi
30816                        fi
30817                        haveit=
30818                        for x in $LDFLAGS $LTLIBINTL; do
30819
30820  acl_save_prefix="$prefix"
30821  prefix="$acl_final_prefix"
30822  acl_save_exec_prefix="$exec_prefix"
30823  exec_prefix="$acl_final_exec_prefix"
30824  eval x=\"$x\"
30825  exec_prefix="$acl_save_exec_prefix"
30826  prefix="$acl_save_prefix"
30827
30828                          if test "X$x" = "X-L$additional_libdir"; then
30829                            haveit=yes
30830                            break
30831                          fi
30832                        done
30833                        if test -z "$haveit"; then
30834                          if test -d "$additional_libdir"; then
30835                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
30836                          fi
30837                        fi
30838                      fi
30839                    fi
30840                    ;;
30841                  -R*)
30842                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
30843                    if test "$enable_rpath" != no; then
30844                                                                  haveit=
30845                      for x in $rpathdirs; do
30846                        if test "X$x" = "X$dir"; then
30847                          haveit=yes
30848                          break
30849                        fi
30850                      done
30851                      if test -z "$haveit"; then
30852                        rpathdirs="$rpathdirs $dir"
30853                      fi
30854                                                                  haveit=
30855                      for x in $ltrpathdirs; do
30856                        if test "X$x" = "X$dir"; then
30857                          haveit=yes
30858                          break
30859                        fi
30860                      done
30861                      if test -z "$haveit"; then
30862                        ltrpathdirs="$ltrpathdirs $dir"
30863                      fi
30864                    fi
30865                    ;;
30866                  -l*)
30867                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
30868                    ;;
30869                  *.la)
30870                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
30871                    ;;
30872                  *)
30873                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
30874                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
30875                    ;;
30876                esac
30877              done
30878            fi
30879          else
30880                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
30881            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
30882          fi
30883        fi
30884      fi
30885    done
30886  done
30887  if test "X$rpathdirs" != "X"; then
30888    if test -n "$acl_hardcode_libdir_separator"; then
30889                        alldirs=
30890      for found_dir in $rpathdirs; do
30891        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
30892      done
30893            acl_save_libdir="$libdir"
30894      libdir="$alldirs"
30895      eval flag=\"$acl_hardcode_libdir_flag_spec\"
30896      libdir="$acl_save_libdir"
30897      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
30898    else
30899            for found_dir in $rpathdirs; do
30900        acl_save_libdir="$libdir"
30901        libdir="$found_dir"
30902        eval flag=\"$acl_hardcode_libdir_flag_spec\"
30903        libdir="$acl_save_libdir"
30904        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
30905      done
30906    fi
30907  fi
30908  if test "X$ltrpathdirs" != "X"; then
30909            for found_dir in $ltrpathdirs; do
30910      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
30911    done
30912  fi
30913
30914          { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
30915$as_echo_n "checking for GNU gettext in libintl... " >&6; }
30916if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
30917  $as_echo_n "(cached) " >&6
30918else
30919  gt_save_CPPFLAGS="$CPPFLAGS"
30920            CPPFLAGS="$CPPFLAGS $INCINTL"
30921            gt_save_LIBS="$LIBS"
30922            LIBS="$LIBS $LIBINTL"
30923                        cat >conftest.$ac_ext <<_ACEOF
30924/* confdefs.h.  */
30925_ACEOF
30926cat confdefs.h >>conftest.$ac_ext
30927cat >>conftest.$ac_ext <<_ACEOF
30928/* end confdefs.h.  */
30929#include <libintl.h>
30930$gt_revision_test_code
30931extern int _nl_msg_cat_cntr;
30932extern
30933#ifdef __cplusplus
30934"C"
30935#endif
30936const char *_nl_expand_alias (const char *);
30937int
30938main ()
30939{
30940bindtextdomain ("", "");
30941return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
30942  ;
30943  return 0;
30944}
30945_ACEOF
30946rm -f conftest.$ac_objext conftest$ac_exeext
30947if { (ac_try="$ac_link"
30948case "(($ac_try" in
30949  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30950  *) ac_try_echo=$ac_try;;
30951esac
30952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30953$as_echo "$ac_try_echo") >&5
30954  (eval "$ac_link") 2>conftest.er1
30955  ac_status=$?
30956  grep -v '^ *+' conftest.er1 >conftest.err
30957  rm -f conftest.er1
30958  cat conftest.err >&5
30959  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960  (exit $ac_status); } && {
30961	 test -z "$ac_c_werror_flag" ||
30962	 test ! -s conftest.err
30963       } && test -s conftest$ac_exeext && {
30964	 test "$cross_compiling" = yes ||
30965	 $as_test_x conftest$ac_exeext
30966       }; then
30967  eval "$gt_func_gnugettext_libintl=yes"
30968else
30969  $as_echo "$as_me: failed program was:" >&5
30970sed 's/^/| /' conftest.$ac_ext >&5
30971
30972	eval "$gt_func_gnugettext_libintl=no"
30973fi
30974
30975rm -rf conftest.dSYM
30976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30977      conftest$ac_exeext conftest.$ac_ext
30978                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
30979              LIBS="$LIBS $LIBICONV"
30980              cat >conftest.$ac_ext <<_ACEOF
30981/* confdefs.h.  */
30982_ACEOF
30983cat confdefs.h >>conftest.$ac_ext
30984cat >>conftest.$ac_ext <<_ACEOF
30985/* end confdefs.h.  */
30986#include <libintl.h>
30987$gt_revision_test_code
30988extern int _nl_msg_cat_cntr;
30989extern
30990#ifdef __cplusplus
30991"C"
30992#endif
30993const char *_nl_expand_alias (const char *);
30994int
30995main ()
30996{
30997bindtextdomain ("", "");
30998return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
30999  ;
31000  return 0;
31001}
31002_ACEOF
31003rm -f conftest.$ac_objext conftest$ac_exeext
31004if { (ac_try="$ac_link"
31005case "(($ac_try" in
31006  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007  *) ac_try_echo=$ac_try;;
31008esac
31009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31010$as_echo "$ac_try_echo") >&5
31011  (eval "$ac_link") 2>conftest.er1
31012  ac_status=$?
31013  grep -v '^ *+' conftest.er1 >conftest.err
31014  rm -f conftest.er1
31015  cat conftest.err >&5
31016  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31017  (exit $ac_status); } && {
31018	 test -z "$ac_c_werror_flag" ||
31019	 test ! -s conftest.err
31020       } && test -s conftest$ac_exeext && {
31021	 test "$cross_compiling" = yes ||
31022	 $as_test_x conftest$ac_exeext
31023       }; then
31024  LIBINTL="$LIBINTL $LIBICONV"
31025                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
31026                eval "$gt_func_gnugettext_libintl=yes"
31027
31028else
31029  $as_echo "$as_me: failed program was:" >&5
31030sed 's/^/| /' conftest.$ac_ext >&5
31031
31032
31033fi
31034
31035rm -rf conftest.dSYM
31036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31037      conftest$ac_exeext conftest.$ac_ext
31038            fi
31039            CPPFLAGS="$gt_save_CPPFLAGS"
31040            LIBS="$gt_save_LIBS"
31041fi
31042ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
31043		 $as_echo "$as_val"'`
31044	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31045$as_echo "$ac_res" >&6; }
31046        fi
31047
31048                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
31049           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
31050                && test "$PACKAGE" != gettext-runtime \
31051                && test "$PACKAGE" != gettext-tools; }; then
31052          gt_use_preinstalled_gnugettext=yes
31053        else
31054                    LIBINTL=
31055          LTLIBINTL=
31056          INCINTL=
31057        fi
31058
31059
31060        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
31061                              nls_cv_use_gnu_gettext=yes
31062        fi
31063      fi
31064
31065      if test "$nls_cv_use_gnu_gettext" = "yes"; then
31066                BUILD_INCLUDED_LIBINTL=yes
31067        USE_INCLUDED_LIBINTL=yes
31068        LIBINTL="\${top_builddir}/intl/libintl.la $LIBICONV $LIBTHREAD"
31069        LTLIBINTL="\${top_builddir}/intl/libintl.la $LTLIBICONV $LTLIBTHREAD"
31070        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
31071      fi
31072
31073      CATOBJEXT=
31074      if test "$gt_use_preinstalled_gnugettext" = "yes" \
31075         || test "$nls_cv_use_gnu_gettext" = "yes"; then
31076                CATOBJEXT=.gmo
31077      fi
31078
31079
31080    if test -n "$INTL_MACOSX_LIBS"; then
31081      if test "$gt_use_preinstalled_gnugettext" = "yes" \
31082         || test "$nls_cv_use_gnu_gettext" = "yes"; then
31083                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
31084        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
31085      fi
31086    fi
31087
31088    if test "$gt_use_preinstalled_gnugettext" = "yes" \
31089       || test "$nls_cv_use_gnu_gettext" = "yes"; then
31090
31091cat >>confdefs.h <<\_ACEOF
31092#define ENABLE_NLS 1
31093_ACEOF
31094
31095    else
31096      USE_NLS=no
31097    fi
31098  fi
31099
31100  { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
31101$as_echo_n "checking whether to use NLS... " >&6; }
31102  { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
31103$as_echo "$USE_NLS" >&6; }
31104  if test "$USE_NLS" = "yes"; then
31105    { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
31106$as_echo_n "checking where the gettext function comes from... " >&6; }
31107    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
31108      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
31109        gt_source="external libintl"
31110      else
31111        gt_source="libc"
31112      fi
31113    else
31114      gt_source="included intl directory"
31115    fi
31116    { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
31117$as_echo "$gt_source" >&6; }
31118  fi
31119
31120  if test "$USE_NLS" = "yes"; then
31121
31122    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
31123      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
31124        { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
31125$as_echo_n "checking how to link with libintl... " >&6; }
31126        { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
31127$as_echo "$LIBINTL" >&6; }
31128
31129  for element in $INCINTL; do
31130    haveit=
31131    for x in $CPPFLAGS; do
31132
31133  acl_save_prefix="$prefix"
31134  prefix="$acl_final_prefix"
31135  acl_save_exec_prefix="$exec_prefix"
31136  exec_prefix="$acl_final_exec_prefix"
31137  eval x=\"$x\"
31138  exec_prefix="$acl_save_exec_prefix"
31139  prefix="$acl_save_prefix"
31140
31141      if test "X$x" = "X$element"; then
31142        haveit=yes
31143        break
31144      fi
31145    done
31146    if test -z "$haveit"; then
31147      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
31148    fi
31149  done
31150
31151      fi
31152
31153
31154cat >>confdefs.h <<\_ACEOF
31155#define HAVE_GETTEXT 1
31156_ACEOF
31157
31158
31159cat >>confdefs.h <<\_ACEOF
31160#define HAVE_DCGETTEXT 1
31161_ACEOF
31162
31163    fi
31164
31165        POSUB=po
31166  fi
31167
31168
31169            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
31170      BUILD_INCLUDED_LIBINTL=yes
31171    fi
31172
31173
31174
31175
31176
31177        nls_cv_header_intl=
31178    nls_cv_header_libgt=
31179
31180        DATADIRNAME=share
31181
31182
31183        INSTOBJEXT=.mo
31184
31185
31186        GENCAT=gencat
31187
31188
31189        INTLOBJS=
31190    if test "$USE_INCLUDED_LIBINTL" = yes; then
31191      INTLOBJS="\$(GETTOBJS)"
31192    fi
31193
31194
31195        INTL_LIBTOOL_SUFFIX_PREFIX=l
31196
31197
31198
31199    INTLLIBS="$LIBINTL"
31200
31201
31202
31203
31204
31205
31206
31207
31208  if test -z "$USE_NLS"; then
31209    echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
31210    exit 1
31211  fi
31212  BISON_LOCALEDIR=
31213  BISON_USE_NLS=no
31214  if test "$USE_NLS" = yes; then
31215                        if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
31216      BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
31217    fi
31218
31219    if test -n "$BISON_LOCALEDIR"; then
31220                              USER_LINGUAS="${LINGUAS-%UNSET%}"
31221      if test -n "$USER_LINGUAS"; then
31222        BISON_USE_NLS=yes
31223      fi
31224    fi
31225  fi
31226  if test $BISON_USE_NLS = yes; then
31227
31228cat >>confdefs.h <<\_ACEOF
31229#define YYENABLE_NLS 1
31230_ACEOF
31231
31232  fi
31233
31234
31235MSGMERGE_LIBM=?
31236cat >conftest.$ac_ext <<_ACEOF
31237/* confdefs.h.  */
31238_ACEOF
31239cat confdefs.h >>conftest.$ac_ext
31240cat >>conftest.$ac_ext <<_ACEOF
31241/* end confdefs.h.  */
31242
31243   #ifndef __NO_MATH_INLINES
31244   # define __NO_MATH_INLINES 1 /* for glibc */
31245   #endif
31246   #include <math.h>
31247   double x;
31248int
31249main ()
31250{
31251x = ceil(x); x = sqrt(x);
31252  ;
31253  return 0;
31254}
31255_ACEOF
31256rm -f conftest.$ac_objext conftest$ac_exeext
31257if { (ac_try="$ac_link"
31258case "(($ac_try" in
31259  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31260  *) ac_try_echo=$ac_try;;
31261esac
31262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31263$as_echo "$ac_try_echo") >&5
31264  (eval "$ac_link") 2>conftest.er1
31265  ac_status=$?
31266  grep -v '^ *+' conftest.er1 >conftest.err
31267  rm -f conftest.er1
31268  cat conftest.err >&5
31269  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270  (exit $ac_status); } && {
31271	 test -z "$ac_c_werror_flag" ||
31272	 test ! -s conftest.err
31273       } && test -s conftest$ac_exeext && {
31274	 test "$cross_compiling" = yes ||
31275	 $as_test_x conftest$ac_exeext
31276       }; then
31277  MSGMERGE_LIBM=
31278else
31279  $as_echo "$as_me: failed program was:" >&5
31280sed 's/^/| /' conftest.$ac_ext >&5
31281
31282
31283fi
31284
31285rm -rf conftest.dSYM
31286rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31287      conftest$ac_exeext conftest.$ac_ext
31288if test "$MSGMERGE_LIBM" = "?"; then
31289  save_LIBS="$LIBS"
31290  LIBS="$LIBS -lm"
31291  cat >conftest.$ac_ext <<_ACEOF
31292/* confdefs.h.  */
31293_ACEOF
31294cat confdefs.h >>conftest.$ac_ext
31295cat >>conftest.$ac_ext <<_ACEOF
31296/* end confdefs.h.  */
31297
31298     #ifndef __NO_MATH_INLINES
31299     # define __NO_MATH_INLINES 1 /* for glibc */
31300     #endif
31301     #include <math.h>
31302     double x;
31303int
31304main ()
31305{
31306x = ceil(x); x = sqrt(x);
31307  ;
31308  return 0;
31309}
31310_ACEOF
31311rm -f conftest.$ac_objext conftest$ac_exeext
31312if { (ac_try="$ac_link"
31313case "(($ac_try" in
31314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31315  *) ac_try_echo=$ac_try;;
31316esac
31317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31318$as_echo "$ac_try_echo") >&5
31319  (eval "$ac_link") 2>conftest.er1
31320  ac_status=$?
31321  grep -v '^ *+' conftest.er1 >conftest.err
31322  rm -f conftest.er1
31323  cat conftest.err >&5
31324  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31325  (exit $ac_status); } && {
31326	 test -z "$ac_c_werror_flag" ||
31327	 test ! -s conftest.err
31328       } && test -s conftest$ac_exeext && {
31329	 test "$cross_compiling" = yes ||
31330	 $as_test_x conftest$ac_exeext
31331       }; then
31332  MSGMERGE_LIBM="-lm"
31333else
31334  $as_echo "$as_me: failed program was:" >&5
31335sed 's/^/| /' conftest.$ac_ext >&5
31336
31337
31338fi
31339
31340rm -rf conftest.dSYM
31341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31342      conftest$ac_exeext conftest.$ac_ext
31343  LIBS="$save_LIBS"
31344fi
31345if test "$MSGMERGE_LIBM" = "?"; then
31346  MSGMERGE_LIBM=
31347fi
31348
31349
31350
31351
31352
31353
31354
31355for ac_header in $gl_header_list
31356do
31357as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31359  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31360$as_echo_n "checking for $ac_header... " >&6; }
31361if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31362  $as_echo_n "(cached) " >&6
31363fi
31364ac_res=`eval 'as_val=${'$as_ac_Header'}
31365		 $as_echo "$as_val"'`
31366	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31367$as_echo "$ac_res" >&6; }
31368else
31369  # Is the header compilable?
31370{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31371$as_echo_n "checking $ac_header usability... " >&6; }
31372cat >conftest.$ac_ext <<_ACEOF
31373/* confdefs.h.  */
31374_ACEOF
31375cat confdefs.h >>conftest.$ac_ext
31376cat >>conftest.$ac_ext <<_ACEOF
31377/* end confdefs.h.  */
31378$ac_includes_default
31379#include <$ac_header>
31380_ACEOF
31381rm -f conftest.$ac_objext
31382if { (ac_try="$ac_compile"
31383case "(($ac_try" in
31384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31385  *) ac_try_echo=$ac_try;;
31386esac
31387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31388$as_echo "$ac_try_echo") >&5
31389  (eval "$ac_compile") 2>conftest.er1
31390  ac_status=$?
31391  grep -v '^ *+' conftest.er1 >conftest.err
31392  rm -f conftest.er1
31393  cat conftest.err >&5
31394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395  (exit $ac_status); } && {
31396	 test -z "$ac_c_werror_flag" ||
31397	 test ! -s conftest.err
31398       } && test -s conftest.$ac_objext; then
31399  ac_header_compiler=yes
31400else
31401  $as_echo "$as_me: failed program was:" >&5
31402sed 's/^/| /' conftest.$ac_ext >&5
31403
31404	ac_header_compiler=no
31405fi
31406
31407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31408{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31409$as_echo "$ac_header_compiler" >&6; }
31410
31411# Is the header present?
31412{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31413$as_echo_n "checking $ac_header presence... " >&6; }
31414cat >conftest.$ac_ext <<_ACEOF
31415/* confdefs.h.  */
31416_ACEOF
31417cat confdefs.h >>conftest.$ac_ext
31418cat >>conftest.$ac_ext <<_ACEOF
31419/* end confdefs.h.  */
31420#include <$ac_header>
31421_ACEOF
31422if { (ac_try="$ac_cpp conftest.$ac_ext"
31423case "(($ac_try" in
31424  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425  *) ac_try_echo=$ac_try;;
31426esac
31427eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31428$as_echo "$ac_try_echo") >&5
31429  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31430  ac_status=$?
31431  grep -v '^ *+' conftest.er1 >conftest.err
31432  rm -f conftest.er1
31433  cat conftest.err >&5
31434  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435  (exit $ac_status); } >/dev/null && {
31436	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31437	 test ! -s conftest.err
31438       }; then
31439  ac_header_preproc=yes
31440else
31441  $as_echo "$as_me: failed program was:" >&5
31442sed 's/^/| /' conftest.$ac_ext >&5
31443
31444  ac_header_preproc=no
31445fi
31446
31447rm -f conftest.err conftest.$ac_ext
31448{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31449$as_echo "$ac_header_preproc" >&6; }
31450
31451# So?  What about this header?
31452case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31453  yes:no: )
31454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31455$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31456    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31457$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31458    ac_header_preproc=yes
31459    ;;
31460  no:yes:* )
31461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31462$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31463    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31464$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31465    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31466$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31467    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31468$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31469    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31470$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31471    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31472$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31473
31474    ;;
31475esac
31476{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31477$as_echo_n "checking for $ac_header... " >&6; }
31478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31479  $as_echo_n "(cached) " >&6
31480else
31481  eval "$as_ac_Header=\$ac_header_preproc"
31482fi
31483ac_res=`eval 'as_val=${'$as_ac_Header'}
31484		 $as_echo "$as_val"'`
31485	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31486$as_echo "$ac_res" >&6; }
31487
31488fi
31489as_val=`eval 'as_val=${'$as_ac_Header'}
31490		 $as_echo "$as_val"'`
31491   if test "x$as_val" = x""yes; then
31492  cat >>confdefs.h <<_ACEOF
31493#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31494_ACEOF
31495
31496fi
31497
31498done
31499
31500
31501
31502
31503
31504
31505
31506
31507
31508
31509
31510
31511
31512      { $as_echo "$as_me:$LINENO: checking whether canonicalize_file_name is declared" >&5
31513$as_echo_n "checking whether canonicalize_file_name is declared... " >&6; }
31514if test "${ac_cv_have_decl_canonicalize_file_name+set}" = set; then
31515  $as_echo_n "(cached) " >&6
31516else
31517  cat >conftest.$ac_ext <<_ACEOF
31518/* confdefs.h.  */
31519_ACEOF
31520cat confdefs.h >>conftest.$ac_ext
31521cat >>conftest.$ac_ext <<_ACEOF
31522/* end confdefs.h.  */
31523$ac_includes_default
31524int
31525main ()
31526{
31527#ifndef canonicalize_file_name
31528  (void) canonicalize_file_name;
31529#endif
31530
31531  ;
31532  return 0;
31533}
31534_ACEOF
31535rm -f conftest.$ac_objext
31536if { (ac_try="$ac_compile"
31537case "(($ac_try" in
31538  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539  *) ac_try_echo=$ac_try;;
31540esac
31541eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31542$as_echo "$ac_try_echo") >&5
31543  (eval "$ac_compile") 2>conftest.er1
31544  ac_status=$?
31545  grep -v '^ *+' conftest.er1 >conftest.err
31546  rm -f conftest.er1
31547  cat conftest.err >&5
31548  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549  (exit $ac_status); } && {
31550	 test -z "$ac_c_werror_flag" ||
31551	 test ! -s conftest.err
31552       } && test -s conftest.$ac_objext; then
31553  ac_cv_have_decl_canonicalize_file_name=yes
31554else
31555  $as_echo "$as_me: failed program was:" >&5
31556sed 's/^/| /' conftest.$ac_ext >&5
31557
31558	ac_cv_have_decl_canonicalize_file_name=no
31559fi
31560
31561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31562fi
31563{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_canonicalize_file_name" >&5
31564$as_echo "$ac_cv_have_decl_canonicalize_file_name" >&6; }
31565if test "x$ac_cv_have_decl_canonicalize_file_name" = x""yes; then
31566
31567cat >>confdefs.h <<_ACEOF
31568#define HAVE_DECL_CANONICALIZE_FILE_NAME 1
31569_ACEOF
31570
31571
31572else
31573  cat >>confdefs.h <<_ACEOF
31574#define HAVE_DECL_CANONICALIZE_FILE_NAME 0
31575_ACEOF
31576
31577
31578fi
31579
31580
31581
31582
31583
31584
31585
31586
31587for ac_func in $gl_func_list
31588do
31589as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31590{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31591$as_echo_n "checking for $ac_func... " >&6; }
31592if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31593  $as_echo_n "(cached) " >&6
31594else
31595  cat >conftest.$ac_ext <<_ACEOF
31596/* confdefs.h.  */
31597_ACEOF
31598cat confdefs.h >>conftest.$ac_ext
31599cat >>conftest.$ac_ext <<_ACEOF
31600/* end confdefs.h.  */
31601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31602   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31603#define $ac_func innocuous_$ac_func
31604
31605/* System header to define __stub macros and hopefully few prototypes,
31606    which can conflict with char $ac_func (); below.
31607    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31608    <limits.h> exists even on freestanding compilers.  */
31609
31610#ifdef __STDC__
31611# include <limits.h>
31612#else
31613# include <assert.h>
31614#endif
31615
31616#undef $ac_func
31617
31618/* Override any GCC internal prototype to avoid an error.
31619   Use char because int might match the return type of a GCC
31620   builtin and then its argument prototype would still apply.  */
31621#ifdef __cplusplus
31622extern "C"
31623#endif
31624char $ac_func ();
31625/* The GNU C library defines this for functions which it implements
31626    to always fail with ENOSYS.  Some functions are actually named
31627    something starting with __ and the normal name is an alias.  */
31628#if defined __stub_$ac_func || defined __stub___$ac_func
31629choke me
31630#endif
31631
31632int
31633main ()
31634{
31635return $ac_func ();
31636  ;
31637  return 0;
31638}
31639_ACEOF
31640rm -f conftest.$ac_objext conftest$ac_exeext
31641if { (ac_try="$ac_link"
31642case "(($ac_try" in
31643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31644  *) ac_try_echo=$ac_try;;
31645esac
31646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31647$as_echo "$ac_try_echo") >&5
31648  (eval "$ac_link") 2>conftest.er1
31649  ac_status=$?
31650  grep -v '^ *+' conftest.er1 >conftest.err
31651  rm -f conftest.er1
31652  cat conftest.err >&5
31653  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654  (exit $ac_status); } && {
31655	 test -z "$ac_c_werror_flag" ||
31656	 test ! -s conftest.err
31657       } && test -s conftest$ac_exeext && {
31658	 test "$cross_compiling" = yes ||
31659	 $as_test_x conftest$ac_exeext
31660       }; then
31661  eval "$as_ac_var=yes"
31662else
31663  $as_echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
31666	eval "$as_ac_var=no"
31667fi
31668
31669rm -rf conftest.dSYM
31670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31671      conftest$ac_exeext conftest.$ac_ext
31672fi
31673ac_res=`eval 'as_val=${'$as_ac_var'}
31674		 $as_echo "$as_val"'`
31675	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31676$as_echo "$ac_res" >&6; }
31677as_val=`eval 'as_val=${'$as_ac_var'}
31678		 $as_echo "$as_val"'`
31679   if test "x$as_val" = x""yes; then
31680  cat >>confdefs.h <<_ACEOF
31681#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31682_ACEOF
31683
31684fi
31685done
31686
31687
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721
31722{ $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
31723$as_echo_n "checking whether strerror_r is declared... " >&6; }
31724if test "${ac_cv_have_decl_strerror_r+set}" = set; then
31725  $as_echo_n "(cached) " >&6
31726else
31727  cat >conftest.$ac_ext <<_ACEOF
31728/* confdefs.h.  */
31729_ACEOF
31730cat confdefs.h >>conftest.$ac_ext
31731cat >>conftest.$ac_ext <<_ACEOF
31732/* end confdefs.h.  */
31733$ac_includes_default
31734int
31735main ()
31736{
31737#ifndef strerror_r
31738  (void) strerror_r;
31739#endif
31740
31741  ;
31742  return 0;
31743}
31744_ACEOF
31745rm -f conftest.$ac_objext
31746if { (ac_try="$ac_compile"
31747case "(($ac_try" in
31748  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749  *) ac_try_echo=$ac_try;;
31750esac
31751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31752$as_echo "$ac_try_echo") >&5
31753  (eval "$ac_compile") 2>conftest.er1
31754  ac_status=$?
31755  grep -v '^ *+' conftest.er1 >conftest.err
31756  rm -f conftest.er1
31757  cat conftest.err >&5
31758  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759  (exit $ac_status); } && {
31760	 test -z "$ac_c_werror_flag" ||
31761	 test ! -s conftest.err
31762       } && test -s conftest.$ac_objext; then
31763  ac_cv_have_decl_strerror_r=yes
31764else
31765  $as_echo "$as_me: failed program was:" >&5
31766sed 's/^/| /' conftest.$ac_ext >&5
31767
31768	ac_cv_have_decl_strerror_r=no
31769fi
31770
31771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31772fi
31773{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
31774$as_echo "$ac_cv_have_decl_strerror_r" >&6; }
31775if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
31776
31777cat >>confdefs.h <<_ACEOF
31778#define HAVE_DECL_STRERROR_R 1
31779_ACEOF
31780
31781
31782else
31783  cat >>confdefs.h <<_ACEOF
31784#define HAVE_DECL_STRERROR_R 0
31785_ACEOF
31786
31787
31788fi
31789
31790
31791
31792for ac_func in strerror_r
31793do
31794as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31795{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31796$as_echo_n "checking for $ac_func... " >&6; }
31797if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31798  $as_echo_n "(cached) " >&6
31799else
31800  cat >conftest.$ac_ext <<_ACEOF
31801/* confdefs.h.  */
31802_ACEOF
31803cat confdefs.h >>conftest.$ac_ext
31804cat >>conftest.$ac_ext <<_ACEOF
31805/* end confdefs.h.  */
31806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31807   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31808#define $ac_func innocuous_$ac_func
31809
31810/* System header to define __stub macros and hopefully few prototypes,
31811    which can conflict with char $ac_func (); below.
31812    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31813    <limits.h> exists even on freestanding compilers.  */
31814
31815#ifdef __STDC__
31816# include <limits.h>
31817#else
31818# include <assert.h>
31819#endif
31820
31821#undef $ac_func
31822
31823/* Override any GCC internal prototype to avoid an error.
31824   Use char because int might match the return type of a GCC
31825   builtin and then its argument prototype would still apply.  */
31826#ifdef __cplusplus
31827extern "C"
31828#endif
31829char $ac_func ();
31830/* The GNU C library defines this for functions which it implements
31831    to always fail with ENOSYS.  Some functions are actually named
31832    something starting with __ and the normal name is an alias.  */
31833#if defined __stub_$ac_func || defined __stub___$ac_func
31834choke me
31835#endif
31836
31837int
31838main ()
31839{
31840return $ac_func ();
31841  ;
31842  return 0;
31843}
31844_ACEOF
31845rm -f conftest.$ac_objext conftest$ac_exeext
31846if { (ac_try="$ac_link"
31847case "(($ac_try" in
31848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31849  *) ac_try_echo=$ac_try;;
31850esac
31851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31852$as_echo "$ac_try_echo") >&5
31853  (eval "$ac_link") 2>conftest.er1
31854  ac_status=$?
31855  grep -v '^ *+' conftest.er1 >conftest.err
31856  rm -f conftest.er1
31857  cat conftest.err >&5
31858  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31859  (exit $ac_status); } && {
31860	 test -z "$ac_c_werror_flag" ||
31861	 test ! -s conftest.err
31862       } && test -s conftest$ac_exeext && {
31863	 test "$cross_compiling" = yes ||
31864	 $as_test_x conftest$ac_exeext
31865       }; then
31866  eval "$as_ac_var=yes"
31867else
31868  $as_echo "$as_me: failed program was:" >&5
31869sed 's/^/| /' conftest.$ac_ext >&5
31870
31871	eval "$as_ac_var=no"
31872fi
31873
31874rm -rf conftest.dSYM
31875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31876      conftest$ac_exeext conftest.$ac_ext
31877fi
31878ac_res=`eval 'as_val=${'$as_ac_var'}
31879		 $as_echo "$as_val"'`
31880	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31881$as_echo "$ac_res" >&6; }
31882as_val=`eval 'as_val=${'$as_ac_var'}
31883		 $as_echo "$as_val"'`
31884   if test "x$as_val" = x""yes; then
31885  cat >>confdefs.h <<_ACEOF
31886#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31887_ACEOF
31888
31889fi
31890done
31891
31892{ $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
31893$as_echo_n "checking whether strerror_r returns char *... " >&6; }
31894if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
31895  $as_echo_n "(cached) " >&6
31896else
31897
31898    ac_cv_func_strerror_r_char_p=no
31899    if test $ac_cv_have_decl_strerror_r = yes; then
31900      cat >conftest.$ac_ext <<_ACEOF
31901/* confdefs.h.  */
31902_ACEOF
31903cat confdefs.h >>conftest.$ac_ext
31904cat >>conftest.$ac_ext <<_ACEOF
31905/* end confdefs.h.  */
31906$ac_includes_default
31907int
31908main ()
31909{
31910
31911	  char buf[100];
31912	  char x = *strerror_r (0, buf, sizeof buf);
31913	  char *p = strerror_r (0, buf, sizeof buf);
31914	  return !p || x;
31915
31916  ;
31917  return 0;
31918}
31919_ACEOF
31920rm -f conftest.$ac_objext
31921if { (ac_try="$ac_compile"
31922case "(($ac_try" in
31923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31924  *) ac_try_echo=$ac_try;;
31925esac
31926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31927$as_echo "$ac_try_echo") >&5
31928  (eval "$ac_compile") 2>conftest.er1
31929  ac_status=$?
31930  grep -v '^ *+' conftest.er1 >conftest.err
31931  rm -f conftest.er1
31932  cat conftest.err >&5
31933  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31934  (exit $ac_status); } && {
31935	 test -z "$ac_c_werror_flag" ||
31936	 test ! -s conftest.err
31937       } && test -s conftest.$ac_objext; then
31938  ac_cv_func_strerror_r_char_p=yes
31939else
31940  $as_echo "$as_me: failed program was:" >&5
31941sed 's/^/| /' conftest.$ac_ext >&5
31942
31943
31944fi
31945
31946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31947    else
31948      # strerror_r is not declared.  Choose between
31949      # systems that have relatively inaccessible declarations for the
31950      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
31951      # former has a strerror_r that returns char*, while the latter
31952      # has a strerror_r that returns `int'.
31953      # This test should segfault on the DEC system.
31954      if test "$cross_compiling" = yes; then
31955  :
31956else
31957  cat >conftest.$ac_ext <<_ACEOF
31958/* confdefs.h.  */
31959_ACEOF
31960cat confdefs.h >>conftest.$ac_ext
31961cat >>conftest.$ac_ext <<_ACEOF
31962/* end confdefs.h.  */
31963$ac_includes_default
31964	extern char *strerror_r ();
31965int
31966main ()
31967{
31968char buf[100];
31969	  char x = *strerror_r (0, buf, sizeof buf);
31970	  return ! isalpha (x);
31971  ;
31972  return 0;
31973}
31974_ACEOF
31975rm -f conftest$ac_exeext
31976if { (ac_try="$ac_link"
31977case "(($ac_try" in
31978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31979  *) ac_try_echo=$ac_try;;
31980esac
31981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31982$as_echo "$ac_try_echo") >&5
31983  (eval "$ac_link") 2>&5
31984  ac_status=$?
31985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31987  { (case "(($ac_try" in
31988  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989  *) ac_try_echo=$ac_try;;
31990esac
31991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31992$as_echo "$ac_try_echo") >&5
31993  (eval "$ac_try") 2>&5
31994  ac_status=$?
31995  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996  (exit $ac_status); }; }; then
31997  ac_cv_func_strerror_r_char_p=yes
31998else
31999  $as_echo "$as_me: program exited with status $ac_status" >&5
32000$as_echo "$as_me: failed program was:" >&5
32001sed 's/^/| /' conftest.$ac_ext >&5
32002
32003fi
32004rm -rf conftest.dSYM
32005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32006fi
32007
32008
32009    fi
32010
32011fi
32012{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
32013$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
32014if test $ac_cv_func_strerror_r_char_p = yes; then
32015
32016cat >>confdefs.h <<\_ACEOF
32017#define STRERROR_R_CHAR_P 1
32018_ACEOF
32019
32020fi
32021
32022
32023  XGETTEXT_EXTRA_OPTIONS=
32024
32025{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
32026$as_echo_n "checking for mode_t... " >&6; }
32027if test "${ac_cv_type_mode_t+set}" = set; then
32028  $as_echo_n "(cached) " >&6
32029else
32030  ac_cv_type_mode_t=no
32031cat >conftest.$ac_ext <<_ACEOF
32032/* confdefs.h.  */
32033_ACEOF
32034cat confdefs.h >>conftest.$ac_ext
32035cat >>conftest.$ac_ext <<_ACEOF
32036/* end confdefs.h.  */
32037$ac_includes_default
32038int
32039main ()
32040{
32041if (sizeof (mode_t))
32042       return 0;
32043  ;
32044  return 0;
32045}
32046_ACEOF
32047rm -f conftest.$ac_objext
32048if { (ac_try="$ac_compile"
32049case "(($ac_try" in
32050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32051  *) ac_try_echo=$ac_try;;
32052esac
32053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32054$as_echo "$ac_try_echo") >&5
32055  (eval "$ac_compile") 2>conftest.er1
32056  ac_status=$?
32057  grep -v '^ *+' conftest.er1 >conftest.err
32058  rm -f conftest.er1
32059  cat conftest.err >&5
32060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061  (exit $ac_status); } && {
32062	 test -z "$ac_c_werror_flag" ||
32063	 test ! -s conftest.err
32064       } && test -s conftest.$ac_objext; then
32065  cat >conftest.$ac_ext <<_ACEOF
32066/* confdefs.h.  */
32067_ACEOF
32068cat confdefs.h >>conftest.$ac_ext
32069cat >>conftest.$ac_ext <<_ACEOF
32070/* end confdefs.h.  */
32071$ac_includes_default
32072int
32073main ()
32074{
32075if (sizeof ((mode_t)))
32076	  return 0;
32077  ;
32078  return 0;
32079}
32080_ACEOF
32081rm -f conftest.$ac_objext
32082if { (ac_try="$ac_compile"
32083case "(($ac_try" in
32084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085  *) ac_try_echo=$ac_try;;
32086esac
32087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32088$as_echo "$ac_try_echo") >&5
32089  (eval "$ac_compile") 2>conftest.er1
32090  ac_status=$?
32091  grep -v '^ *+' conftest.er1 >conftest.err
32092  rm -f conftest.er1
32093  cat conftest.err >&5
32094  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32095  (exit $ac_status); } && {
32096	 test -z "$ac_c_werror_flag" ||
32097	 test ! -s conftest.err
32098       } && test -s conftest.$ac_objext; then
32099  :
32100else
32101  $as_echo "$as_me: failed program was:" >&5
32102sed 's/^/| /' conftest.$ac_ext >&5
32103
32104	ac_cv_type_mode_t=yes
32105fi
32106
32107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32108else
32109  $as_echo "$as_me: failed program was:" >&5
32110sed 's/^/| /' conftest.$ac_ext >&5
32111
32112
32113fi
32114
32115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32116fi
32117{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32118$as_echo "$ac_cv_type_mode_t" >&6; }
32119if test "x$ac_cv_type_mode_t" = x""yes; then
32120  :
32121else
32122
32123cat >>confdefs.h <<_ACEOF
32124#define mode_t int
32125_ACEOF
32126
32127fi
32128
32129{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
32130$as_echo_n "checking for pid_t... " >&6; }
32131if test "${ac_cv_type_pid_t+set}" = set; then
32132  $as_echo_n "(cached) " >&6
32133else
32134  ac_cv_type_pid_t=no
32135cat >conftest.$ac_ext <<_ACEOF
32136/* confdefs.h.  */
32137_ACEOF
32138cat confdefs.h >>conftest.$ac_ext
32139cat >>conftest.$ac_ext <<_ACEOF
32140/* end confdefs.h.  */
32141$ac_includes_default
32142int
32143main ()
32144{
32145if (sizeof (pid_t))
32146       return 0;
32147  ;
32148  return 0;
32149}
32150_ACEOF
32151rm -f conftest.$ac_objext
32152if { (ac_try="$ac_compile"
32153case "(($ac_try" in
32154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155  *) ac_try_echo=$ac_try;;
32156esac
32157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32158$as_echo "$ac_try_echo") >&5
32159  (eval "$ac_compile") 2>conftest.er1
32160  ac_status=$?
32161  grep -v '^ *+' conftest.er1 >conftest.err
32162  rm -f conftest.er1
32163  cat conftest.err >&5
32164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165  (exit $ac_status); } && {
32166	 test -z "$ac_c_werror_flag" ||
32167	 test ! -s conftest.err
32168       } && test -s conftest.$ac_objext; then
32169  cat >conftest.$ac_ext <<_ACEOF
32170/* confdefs.h.  */
32171_ACEOF
32172cat confdefs.h >>conftest.$ac_ext
32173cat >>conftest.$ac_ext <<_ACEOF
32174/* end confdefs.h.  */
32175$ac_includes_default
32176int
32177main ()
32178{
32179if (sizeof ((pid_t)))
32180	  return 0;
32181  ;
32182  return 0;
32183}
32184_ACEOF
32185rm -f conftest.$ac_objext
32186if { (ac_try="$ac_compile"
32187case "(($ac_try" in
32188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32189  *) ac_try_echo=$ac_try;;
32190esac
32191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32192$as_echo "$ac_try_echo") >&5
32193  (eval "$ac_compile") 2>conftest.er1
32194  ac_status=$?
32195  grep -v '^ *+' conftest.er1 >conftest.err
32196  rm -f conftest.er1
32197  cat conftest.err >&5
32198  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32199  (exit $ac_status); } && {
32200	 test -z "$ac_c_werror_flag" ||
32201	 test ! -s conftest.err
32202       } && test -s conftest.$ac_objext; then
32203  :
32204else
32205  $as_echo "$as_me: failed program was:" >&5
32206sed 's/^/| /' conftest.$ac_ext >&5
32207
32208	ac_cv_type_pid_t=yes
32209fi
32210
32211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32212else
32213  $as_echo "$as_me: failed program was:" >&5
32214sed 's/^/| /' conftest.$ac_ext >&5
32215
32216
32217fi
32218
32219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32220fi
32221{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32222$as_echo "$ac_cv_type_pid_t" >&6; }
32223if test "x$ac_cv_type_pid_t" = x""yes; then
32224  :
32225else
32226
32227cat >>confdefs.h <<_ACEOF
32228#define pid_t int
32229_ACEOF
32230
32231fi
32232
32233
32234for ac_header in vfork.h
32235do
32236as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32237if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32238  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32239$as_echo_n "checking for $ac_header... " >&6; }
32240if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32241  $as_echo_n "(cached) " >&6
32242fi
32243ac_res=`eval 'as_val=${'$as_ac_Header'}
32244		 $as_echo "$as_val"'`
32245	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32246$as_echo "$ac_res" >&6; }
32247else
32248  # Is the header compilable?
32249{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
32250$as_echo_n "checking $ac_header usability... " >&6; }
32251cat >conftest.$ac_ext <<_ACEOF
32252/* confdefs.h.  */
32253_ACEOF
32254cat confdefs.h >>conftest.$ac_ext
32255cat >>conftest.$ac_ext <<_ACEOF
32256/* end confdefs.h.  */
32257$ac_includes_default
32258#include <$ac_header>
32259_ACEOF
32260rm -f conftest.$ac_objext
32261if { (ac_try="$ac_compile"
32262case "(($ac_try" in
32263  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32264  *) ac_try_echo=$ac_try;;
32265esac
32266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32267$as_echo "$ac_try_echo") >&5
32268  (eval "$ac_compile") 2>conftest.er1
32269  ac_status=$?
32270  grep -v '^ *+' conftest.er1 >conftest.err
32271  rm -f conftest.er1
32272  cat conftest.err >&5
32273  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274  (exit $ac_status); } && {
32275	 test -z "$ac_c_werror_flag" ||
32276	 test ! -s conftest.err
32277       } && test -s conftest.$ac_objext; then
32278  ac_header_compiler=yes
32279else
32280  $as_echo "$as_me: failed program was:" >&5
32281sed 's/^/| /' conftest.$ac_ext >&5
32282
32283	ac_header_compiler=no
32284fi
32285
32286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32287{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32288$as_echo "$ac_header_compiler" >&6; }
32289
32290# Is the header present?
32291{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
32292$as_echo_n "checking $ac_header presence... " >&6; }
32293cat >conftest.$ac_ext <<_ACEOF
32294/* confdefs.h.  */
32295_ACEOF
32296cat confdefs.h >>conftest.$ac_ext
32297cat >>conftest.$ac_ext <<_ACEOF
32298/* end confdefs.h.  */
32299#include <$ac_header>
32300_ACEOF
32301if { (ac_try="$ac_cpp conftest.$ac_ext"
32302case "(($ac_try" in
32303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32304  *) ac_try_echo=$ac_try;;
32305esac
32306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32307$as_echo "$ac_try_echo") >&5
32308  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32309  ac_status=$?
32310  grep -v '^ *+' conftest.er1 >conftest.err
32311  rm -f conftest.er1
32312  cat conftest.err >&5
32313  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314  (exit $ac_status); } >/dev/null && {
32315	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32316	 test ! -s conftest.err
32317       }; then
32318  ac_header_preproc=yes
32319else
32320  $as_echo "$as_me: failed program was:" >&5
32321sed 's/^/| /' conftest.$ac_ext >&5
32322
32323  ac_header_preproc=no
32324fi
32325
32326rm -f conftest.err conftest.$ac_ext
32327{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32328$as_echo "$ac_header_preproc" >&6; }
32329
32330# So?  What about this header?
32331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32332  yes:no: )
32333    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32334$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32335    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32336$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32337    ac_header_preproc=yes
32338    ;;
32339  no:yes:* )
32340    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32341$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32342    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32343$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32344    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32345$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32346    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32347$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32348    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32349$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32350    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32351$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32352
32353    ;;
32354esac
32355{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
32356$as_echo_n "checking for $ac_header... " >&6; }
32357if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32358  $as_echo_n "(cached) " >&6
32359else
32360  eval "$as_ac_Header=\$ac_header_preproc"
32361fi
32362ac_res=`eval 'as_val=${'$as_ac_Header'}
32363		 $as_echo "$as_val"'`
32364	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32365$as_echo "$ac_res" >&6; }
32366
32367fi
32368as_val=`eval 'as_val=${'$as_ac_Header'}
32369		 $as_echo "$as_val"'`
32370   if test "x$as_val" = x""yes; then
32371  cat >>confdefs.h <<_ACEOF
32372#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32373_ACEOF
32374
32375fi
32376
32377done
32378
32379
32380
32381for ac_func in fork vfork
32382do
32383as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32384{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32385$as_echo_n "checking for $ac_func... " >&6; }
32386if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32387  $as_echo_n "(cached) " >&6
32388else
32389  cat >conftest.$ac_ext <<_ACEOF
32390/* confdefs.h.  */
32391_ACEOF
32392cat confdefs.h >>conftest.$ac_ext
32393cat >>conftest.$ac_ext <<_ACEOF
32394/* end confdefs.h.  */
32395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32396   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32397#define $ac_func innocuous_$ac_func
32398
32399/* System header to define __stub macros and hopefully few prototypes,
32400    which can conflict with char $ac_func (); below.
32401    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32402    <limits.h> exists even on freestanding compilers.  */
32403
32404#ifdef __STDC__
32405# include <limits.h>
32406#else
32407# include <assert.h>
32408#endif
32409
32410#undef $ac_func
32411
32412/* Override any GCC internal prototype to avoid an error.
32413   Use char because int might match the return type of a GCC
32414   builtin and then its argument prototype would still apply.  */
32415#ifdef __cplusplus
32416extern "C"
32417#endif
32418char $ac_func ();
32419/* The GNU C library defines this for functions which it implements
32420    to always fail with ENOSYS.  Some functions are actually named
32421    something starting with __ and the normal name is an alias.  */
32422#if defined __stub_$ac_func || defined __stub___$ac_func
32423choke me
32424#endif
32425
32426int
32427main ()
32428{
32429return $ac_func ();
32430  ;
32431  return 0;
32432}
32433_ACEOF
32434rm -f conftest.$ac_objext conftest$ac_exeext
32435if { (ac_try="$ac_link"
32436case "(($ac_try" in
32437  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32438  *) ac_try_echo=$ac_try;;
32439esac
32440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32441$as_echo "$ac_try_echo") >&5
32442  (eval "$ac_link") 2>conftest.er1
32443  ac_status=$?
32444  grep -v '^ *+' conftest.er1 >conftest.err
32445  rm -f conftest.er1
32446  cat conftest.err >&5
32447  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448  (exit $ac_status); } && {
32449	 test -z "$ac_c_werror_flag" ||
32450	 test ! -s conftest.err
32451       } && test -s conftest$ac_exeext && {
32452	 test "$cross_compiling" = yes ||
32453	 $as_test_x conftest$ac_exeext
32454       }; then
32455  eval "$as_ac_var=yes"
32456else
32457  $as_echo "$as_me: failed program was:" >&5
32458sed 's/^/| /' conftest.$ac_ext >&5
32459
32460	eval "$as_ac_var=no"
32461fi
32462
32463rm -rf conftest.dSYM
32464rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32465      conftest$ac_exeext conftest.$ac_ext
32466fi
32467ac_res=`eval 'as_val=${'$as_ac_var'}
32468		 $as_echo "$as_val"'`
32469	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32470$as_echo "$ac_res" >&6; }
32471as_val=`eval 'as_val=${'$as_ac_var'}
32472		 $as_echo "$as_val"'`
32473   if test "x$as_val" = x""yes; then
32474  cat >>confdefs.h <<_ACEOF
32475#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32476_ACEOF
32477
32478fi
32479done
32480
32481if test "x$ac_cv_func_fork" = xyes; then
32482  { $as_echo "$as_me:$LINENO: checking for working fork" >&5
32483$as_echo_n "checking for working fork... " >&6; }
32484if test "${ac_cv_func_fork_works+set}" = set; then
32485  $as_echo_n "(cached) " >&6
32486else
32487  if test "$cross_compiling" = yes; then
32488  ac_cv_func_fork_works=cross
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
32501	  /* By Ruediger Kuhlmann. */
32502	  return fork () < 0;
32503
32504  ;
32505  return 0;
32506}
32507_ACEOF
32508rm -f conftest$ac_exeext
32509if { (ac_try="$ac_link"
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_link") 2>&5
32517  ac_status=$?
32518  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32520  { (case "(($ac_try" in
32521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522  *) ac_try_echo=$ac_try;;
32523esac
32524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32525$as_echo "$ac_try_echo") >&5
32526  (eval "$ac_try") 2>&5
32527  ac_status=$?
32528  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32529  (exit $ac_status); }; }; then
32530  ac_cv_func_fork_works=yes
32531else
32532  $as_echo "$as_me: program exited with status $ac_status" >&5
32533$as_echo "$as_me: failed program was:" >&5
32534sed 's/^/| /' conftest.$ac_ext >&5
32535
32536( exit $ac_status )
32537ac_cv_func_fork_works=no
32538fi
32539rm -rf conftest.dSYM
32540rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32541fi
32542
32543
32544fi
32545{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
32546$as_echo "$ac_cv_func_fork_works" >&6; }
32547
32548else
32549  ac_cv_func_fork_works=$ac_cv_func_fork
32550fi
32551if test "x$ac_cv_func_fork_works" = xcross; then
32552  case $host in
32553    *-*-amigaos* | *-*-msdosdjgpp*)
32554      # Override, as these systems have only a dummy fork() stub
32555      ac_cv_func_fork_works=no
32556      ;;
32557    *)
32558      ac_cv_func_fork_works=yes
32559      ;;
32560  esac
32561  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
32562$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
32563fi
32564ac_cv_func_vfork_works=$ac_cv_func_vfork
32565if test "x$ac_cv_func_vfork" = xyes; then
32566  { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
32567$as_echo_n "checking for working vfork... " >&6; }
32568if test "${ac_cv_func_vfork_works+set}" = set; then
32569  $as_echo_n "(cached) " >&6
32570else
32571  if test "$cross_compiling" = yes; then
32572  ac_cv_func_vfork_works=cross
32573else
32574  cat >conftest.$ac_ext <<_ACEOF
32575/* confdefs.h.  */
32576_ACEOF
32577cat confdefs.h >>conftest.$ac_ext
32578cat >>conftest.$ac_ext <<_ACEOF
32579/* end confdefs.h.  */
32580/* Thanks to Paul Eggert for this test.  */
32581$ac_includes_default
32582#include <sys/wait.h>
32583#ifdef HAVE_VFORK_H
32584# include <vfork.h>
32585#endif
32586/* On some sparc systems, changes by the child to local and incoming
32587   argument registers are propagated back to the parent.  The compiler
32588   is told about this with #include <vfork.h>, but some compilers
32589   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
32590   static variable whose address is put into a register that is
32591   clobbered by the vfork.  */
32592static void
32593#ifdef __cplusplus
32594sparc_address_test (int arg)
32595# else
32596sparc_address_test (arg) int arg;
32597#endif
32598{
32599  static pid_t child;
32600  if (!child) {
32601    child = vfork ();
32602    if (child < 0) {
32603      perror ("vfork");
32604      _exit(2);
32605    }
32606    if (!child) {
32607      arg = getpid();
32608      write(-1, "", 0);
32609      _exit (arg);
32610    }
32611  }
32612}
32613
32614int
32615main ()
32616{
32617  pid_t parent = getpid ();
32618  pid_t child;
32619
32620  sparc_address_test (0);
32621
32622  child = vfork ();
32623
32624  if (child == 0) {
32625    /* Here is another test for sparc vfork register problems.  This
32626       test uses lots of local variables, at least as many local
32627       variables as main has allocated so far including compiler
32628       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
32629       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
32630       reuse the register of parent for one of the local variables,
32631       since it will think that parent can't possibly be used any more
32632       in this routine.  Assigning to the local variable will thus
32633       munge parent in the parent process.  */
32634    pid_t
32635      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
32636      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
32637    /* Convince the compiler that p..p7 are live; otherwise, it might
32638       use the same hardware register for all 8 local variables.  */
32639    if (p != p1 || p != p2 || p != p3 || p != p4
32640	|| p != p5 || p != p6 || p != p7)
32641      _exit(1);
32642
32643    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
32644       from child file descriptors.  If the child closes a descriptor
32645       before it execs or exits, this munges the parent's descriptor
32646       as well.  Test for this by closing stdout in the child.  */
32647    _exit(close(fileno(stdout)) != 0);
32648  } else {
32649    int status;
32650    struct stat st;
32651
32652    while (wait(&status) != child)
32653      ;
32654    return (
32655	 /* Was there some problem with vforking?  */
32656	 child < 0
32657
32658	 /* Did the child fail?  (This shouldn't happen.)  */
32659	 || status
32660
32661	 /* Did the vfork/compiler bug occur?  */
32662	 || parent != getpid()
32663
32664	 /* Did the file descriptor bug occur?  */
32665	 || fstat(fileno(stdout), &st) != 0
32666	 );
32667  }
32668}
32669_ACEOF
32670rm -f conftest$ac_exeext
32671if { (ac_try="$ac_link"
32672case "(($ac_try" in
32673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674  *) ac_try_echo=$ac_try;;
32675esac
32676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32677$as_echo "$ac_try_echo") >&5
32678  (eval "$ac_link") 2>&5
32679  ac_status=$?
32680  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32682  { (case "(($ac_try" in
32683  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684  *) ac_try_echo=$ac_try;;
32685esac
32686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32687$as_echo "$ac_try_echo") >&5
32688  (eval "$ac_try") 2>&5
32689  ac_status=$?
32690  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691  (exit $ac_status); }; }; then
32692  ac_cv_func_vfork_works=yes
32693else
32694  $as_echo "$as_me: program exited with status $ac_status" >&5
32695$as_echo "$as_me: failed program was:" >&5
32696sed 's/^/| /' conftest.$ac_ext >&5
32697
32698( exit $ac_status )
32699ac_cv_func_vfork_works=no
32700fi
32701rm -rf conftest.dSYM
32702rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32703fi
32704
32705
32706fi
32707{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
32708$as_echo "$ac_cv_func_vfork_works" >&6; }
32709
32710fi;
32711if test "x$ac_cv_func_fork_works" = xcross; then
32712  ac_cv_func_vfork_works=$ac_cv_func_vfork
32713  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
32714$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
32715fi
32716
32717if test "x$ac_cv_func_vfork_works" = xyes; then
32718
32719cat >>confdefs.h <<\_ACEOF
32720#define HAVE_WORKING_VFORK 1
32721_ACEOF
32722
32723else
32724
32725cat >>confdefs.h <<\_ACEOF
32726#define vfork fork
32727_ACEOF
32728
32729fi
32730if test "x$ac_cv_func_fork_works" = xyes; then
32731
32732cat >>confdefs.h <<\_ACEOF
32733#define HAVE_WORKING_FORK 1
32734_ACEOF
32735
32736fi
32737
32738
32739  { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32740$as_echo_n "checking for sig_atomic_t... " >&6; }
32741if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32742  $as_echo_n "(cached) " >&6
32743else
32744  ac_cv_type_sig_atomic_t=no
32745cat >conftest.$ac_ext <<_ACEOF
32746/* confdefs.h.  */
32747_ACEOF
32748cat confdefs.h >>conftest.$ac_ext
32749cat >>conftest.$ac_ext <<_ACEOF
32750/* end confdefs.h.  */
32751#include <signal.h>
32752
32753int
32754main ()
32755{
32756if (sizeof (sig_atomic_t))
32757       return 0;
32758  ;
32759  return 0;
32760}
32761_ACEOF
32762rm -f conftest.$ac_objext
32763if { (ac_try="$ac_compile"
32764case "(($ac_try" in
32765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32766  *) ac_try_echo=$ac_try;;
32767esac
32768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32769$as_echo "$ac_try_echo") >&5
32770  (eval "$ac_compile") 2>conftest.er1
32771  ac_status=$?
32772  grep -v '^ *+' conftest.er1 >conftest.err
32773  rm -f conftest.er1
32774  cat conftest.err >&5
32775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776  (exit $ac_status); } && {
32777	 test -z "$ac_c_werror_flag" ||
32778	 test ! -s conftest.err
32779       } && test -s conftest.$ac_objext; then
32780  cat >conftest.$ac_ext <<_ACEOF
32781/* confdefs.h.  */
32782_ACEOF
32783cat confdefs.h >>conftest.$ac_ext
32784cat >>conftest.$ac_ext <<_ACEOF
32785/* end confdefs.h.  */
32786#include <signal.h>
32787
32788int
32789main ()
32790{
32791if (sizeof ((sig_atomic_t)))
32792	  return 0;
32793  ;
32794  return 0;
32795}
32796_ACEOF
32797rm -f conftest.$ac_objext
32798if { (ac_try="$ac_compile"
32799case "(($ac_try" in
32800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32801  *) ac_try_echo=$ac_try;;
32802esac
32803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32804$as_echo "$ac_try_echo") >&5
32805  (eval "$ac_compile") 2>conftest.er1
32806  ac_status=$?
32807  grep -v '^ *+' conftest.er1 >conftest.err
32808  rm -f conftest.er1
32809  cat conftest.err >&5
32810  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32811  (exit $ac_status); } && {
32812	 test -z "$ac_c_werror_flag" ||
32813	 test ! -s conftest.err
32814       } && test -s conftest.$ac_objext; then
32815  :
32816else
32817  $as_echo "$as_me: failed program was:" >&5
32818sed 's/^/| /' conftest.$ac_ext >&5
32819
32820	ac_cv_type_sig_atomic_t=yes
32821fi
32822
32823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32824else
32825  $as_echo "$as_me: failed program was:" >&5
32826sed 's/^/| /' conftest.$ac_ext >&5
32827
32828
32829fi
32830
32831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32832fi
32833{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32834$as_echo "$ac_cv_type_sig_atomic_t" >&6; }
32835if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
32836
32837cat >>confdefs.h <<_ACEOF
32838#define HAVE_SIG_ATOMIC_T 1
32839_ACEOF
32840
32841
32842else
32843
32844cat >>confdefs.h <<\_ACEOF
32845#define sig_atomic_t int
32846_ACEOF
32847
32848fi
32849
32850
32851
32852
32853
32854
32855
32856
32857
32858  GNULIB_OPEN=0;
32859    REPLACE_OPEN=0;
32860
32861
32862
32863  { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
32864$as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
32865if test "${gl_cv_have_include_next+set}" = set; then
32866  $as_echo_n "(cached) " >&6
32867else
32868  rm -rf conftestd1 conftestd2
32869     mkdir conftestd1 conftestd2
32870     cat <<EOF > conftestd1/conftest.h
32871#define DEFINED_IN_CONFTESTD1
32872#include_next <conftest.h>
32873#ifdef DEFINED_IN_CONFTESTD2
32874int foo;
32875#else
32876#error "include_next doesn't work"
32877#endif
32878EOF
32879     cat <<EOF > conftestd2/conftest.h
32880#ifndef DEFINED_IN_CONFTESTD1
32881#error "include_next test doesn't work"
32882#endif
32883#define DEFINED_IN_CONFTESTD2
32884EOF
32885     save_CPPFLAGS="$CPPFLAGS"
32886     CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
32887     cat >conftest.$ac_ext <<_ACEOF
32888#include <conftest.h>
32889_ACEOF
32890rm -f conftest.$ac_objext
32891if { (ac_try="$ac_compile"
32892case "(($ac_try" in
32893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32894  *) ac_try_echo=$ac_try;;
32895esac
32896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32897$as_echo "$ac_try_echo") >&5
32898  (eval "$ac_compile") 2>conftest.er1
32899  ac_status=$?
32900  grep -v '^ *+' conftest.er1 >conftest.err
32901  rm -f conftest.er1
32902  cat conftest.err >&5
32903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32904  (exit $ac_status); } && {
32905	 test -z "$ac_c_werror_flag" ||
32906	 test ! -s conftest.err
32907       } && test -s conftest.$ac_objext; then
32908  gl_cv_have_include_next=yes
32909else
32910  $as_echo "$as_me: failed program was:" >&5
32911sed 's/^/| /' conftest.$ac_ext >&5
32912
32913	gl_cv_have_include_next=no
32914fi
32915
32916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32917     CPPFLAGS="$save_CPPFLAGS"
32918     rm -rf conftestd1 conftestd2
32919
32920fi
32921{ $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
32922$as_echo "$gl_cv_have_include_next" >&6; }
32923  if test $gl_cv_have_include_next = yes; then
32924
32925
32926cat >>confdefs.h <<\_ACEOF
32927#define HAVE_INCLUDE_NEXT 1
32928_ACEOF
32929
32930
32931    INCLUDE_NEXT=include_next
32932  else
32933    INCLUDE_NEXT=include
32934  fi
32935
32936
32937
32938
32939
32940
32941
32942
32943
32944  { $as_echo "$as_me:$LINENO: checking for eaccess" >&5
32945$as_echo_n "checking for eaccess... " >&6; }
32946if test "${ac_cv_func_eaccess+set}" = set; then
32947  $as_echo_n "(cached) " >&6
32948else
32949  cat >conftest.$ac_ext <<_ACEOF
32950/* confdefs.h.  */
32951_ACEOF
32952cat confdefs.h >>conftest.$ac_ext
32953cat >>conftest.$ac_ext <<_ACEOF
32954/* end confdefs.h.  */
32955/* Define eaccess to an innocuous variant, in case <limits.h> declares eaccess.
32956   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32957#define eaccess innocuous_eaccess
32958
32959/* System header to define __stub macros and hopefully few prototypes,
32960    which can conflict with char eaccess (); below.
32961    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32962    <limits.h> exists even on freestanding compilers.  */
32963
32964#ifdef __STDC__
32965# include <limits.h>
32966#else
32967# include <assert.h>
32968#endif
32969
32970#undef eaccess
32971
32972/* Override any GCC internal prototype to avoid an error.
32973   Use char because int might match the return type of a GCC
32974   builtin and then its argument prototype would still apply.  */
32975#ifdef __cplusplus
32976extern "C"
32977#endif
32978char eaccess ();
32979/* The GNU C library defines this for functions which it implements
32980    to always fail with ENOSYS.  Some functions are actually named
32981    something starting with __ and the normal name is an alias.  */
32982#if defined __stub_eaccess || defined __stub___eaccess
32983choke me
32984#endif
32985
32986int
32987main ()
32988{
32989return eaccess ();
32990  ;
32991  return 0;
32992}
32993_ACEOF
32994rm -f conftest.$ac_objext conftest$ac_exeext
32995if { (ac_try="$ac_link"
32996case "(($ac_try" in
32997  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32998  *) ac_try_echo=$ac_try;;
32999esac
33000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33001$as_echo "$ac_try_echo") >&5
33002  (eval "$ac_link") 2>conftest.er1
33003  ac_status=$?
33004  grep -v '^ *+' conftest.er1 >conftest.err
33005  rm -f conftest.er1
33006  cat conftest.err >&5
33007  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33008  (exit $ac_status); } && {
33009	 test -z "$ac_c_werror_flag" ||
33010	 test ! -s conftest.err
33011       } && test -s conftest$ac_exeext && {
33012	 test "$cross_compiling" = yes ||
33013	 $as_test_x conftest$ac_exeext
33014       }; then
33015  ac_cv_func_eaccess=yes
33016else
33017  $as_echo "$as_me: failed program was:" >&5
33018sed 's/^/| /' conftest.$ac_ext >&5
33019
33020	ac_cv_func_eaccess=no
33021fi
33022
33023rm -rf conftest.dSYM
33024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33025      conftest$ac_exeext conftest.$ac_ext
33026fi
33027{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_eaccess" >&5
33028$as_echo "$ac_cv_func_eaccess" >&6; }
33029if test "x$ac_cv_func_eaccess" = x""yes; then
33030  :
33031else
33032
33033cat >>confdefs.h <<\_ACEOF
33034#define eaccess access
33035_ACEOF
33036
33037fi
33038
33039
33040
33041
33042
33043
33044
33045
33046{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
33047$as_echo_n "checking for mbstate_t... " >&6; }
33048if test "${ac_cv_type_mbstate_t+set}" = set; then
33049  $as_echo_n "(cached) " >&6
33050else
33051  cat >conftest.$ac_ext <<_ACEOF
33052/* confdefs.h.  */
33053_ACEOF
33054cat confdefs.h >>conftest.$ac_ext
33055cat >>conftest.$ac_ext <<_ACEOF
33056/* end confdefs.h.  */
33057$ac_includes_default
33058#	    include <wchar.h>
33059int
33060main ()
33061{
33062mbstate_t x; return sizeof x;
33063  ;
33064  return 0;
33065}
33066_ACEOF
33067rm -f conftest.$ac_objext
33068if { (ac_try="$ac_compile"
33069case "(($ac_try" in
33070  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33071  *) ac_try_echo=$ac_try;;
33072esac
33073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33074$as_echo "$ac_try_echo") >&5
33075  (eval "$ac_compile") 2>conftest.er1
33076  ac_status=$?
33077  grep -v '^ *+' conftest.er1 >conftest.err
33078  rm -f conftest.er1
33079  cat conftest.err >&5
33080  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081  (exit $ac_status); } && {
33082	 test -z "$ac_c_werror_flag" ||
33083	 test ! -s conftest.err
33084       } && test -s conftest.$ac_objext; then
33085  ac_cv_type_mbstate_t=yes
33086else
33087  $as_echo "$as_me: failed program was:" >&5
33088sed 's/^/| /' conftest.$ac_ext >&5
33089
33090	ac_cv_type_mbstate_t=no
33091fi
33092
33093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33094fi
33095{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33096$as_echo "$ac_cv_type_mbstate_t" >&6; }
33097   if test $ac_cv_type_mbstate_t = yes; then
33098
33099cat >>confdefs.h <<\_ACEOF
33100#define HAVE_MBSTATE_T 1
33101_ACEOF
33102
33103   else
33104
33105cat >>confdefs.h <<\_ACEOF
33106#define mbstate_t int
33107_ACEOF
33108
33109   fi
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
33132
33133
33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165  GNULIB_FPRINTF_POSIX=0;
33166  GNULIB_PRINTF_POSIX=0;
33167  GNULIB_SNPRINTF=0;
33168  GNULIB_SPRINTF_POSIX=0;
33169  GNULIB_VFPRINTF_POSIX=0;
33170  GNULIB_VPRINTF_POSIX=0;
33171  GNULIB_VSNPRINTF=0;
33172  GNULIB_VSPRINTF_POSIX=0;
33173  GNULIB_VASPRINTF=0;
33174  GNULIB_FOPEN=0;
33175  GNULIB_FREOPEN=0;
33176  GNULIB_FSEEK=0;
33177  GNULIB_FSEEKO=0;
33178  GNULIB_FTELL=0;
33179  GNULIB_FTELLO=0;
33180  GNULIB_FFLUSH=0;
33181  GNULIB_GETDELIM=0;
33182  GNULIB_GETLINE=0;
33183    REPLACE_FPRINTF=0;
33184  REPLACE_VFPRINTF=0;
33185  REPLACE_PRINTF=0;
33186  REPLACE_VPRINTF=0;
33187  REPLACE_SNPRINTF=0;
33188  HAVE_DECL_SNPRINTF=1;
33189  REPLACE_VSNPRINTF=0;
33190  HAVE_DECL_VSNPRINTF=1;
33191  REPLACE_SPRINTF=0;
33192  REPLACE_VSPRINTF=0;
33193  HAVE_VASPRINTF=1;
33194  REPLACE_VASPRINTF=0;
33195  REPLACE_FOPEN=0;
33196  REPLACE_FREOPEN=0;
33197  HAVE_FSEEKO=1;
33198  REPLACE_FSEEKO=0;
33199  REPLACE_FSEEK=0;
33200  HAVE_FTELLO=1;
33201  REPLACE_FTELLO=0;
33202  REPLACE_FTELL=0;
33203  REPLACE_FFLUSH=0;
33204  HAVE_DECL_GETDELIM=1;
33205  HAVE_DECL_GETLINE=1;
33206  REPLACE_GETLINE=0;
33207
33208
33209      { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
33210$as_echo_n "checking whether getdelim is declared... " >&6; }
33211if test "${ac_cv_have_decl_getdelim+set}" = set; then
33212  $as_echo_n "(cached) " >&6
33213else
33214  cat >conftest.$ac_ext <<_ACEOF
33215/* confdefs.h.  */
33216_ACEOF
33217cat confdefs.h >>conftest.$ac_ext
33218cat >>conftest.$ac_ext <<_ACEOF
33219/* end confdefs.h.  */
33220$ac_includes_default
33221int
33222main ()
33223{
33224#ifndef getdelim
33225  (void) getdelim;
33226#endif
33227
33228  ;
33229  return 0;
33230}
33231_ACEOF
33232rm -f conftest.$ac_objext
33233if { (ac_try="$ac_compile"
33234case "(($ac_try" in
33235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236  *) ac_try_echo=$ac_try;;
33237esac
33238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33239$as_echo "$ac_try_echo") >&5
33240  (eval "$ac_compile") 2>conftest.er1
33241  ac_status=$?
33242  grep -v '^ *+' conftest.er1 >conftest.err
33243  rm -f conftest.er1
33244  cat conftest.err >&5
33245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246  (exit $ac_status); } && {
33247	 test -z "$ac_c_werror_flag" ||
33248	 test ! -s conftest.err
33249       } && test -s conftest.$ac_objext; then
33250  ac_cv_have_decl_getdelim=yes
33251else
33252  $as_echo "$as_me: failed program was:" >&5
33253sed 's/^/| /' conftest.$ac_ext >&5
33254
33255	ac_cv_have_decl_getdelim=no
33256fi
33257
33258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33259fi
33260{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
33261$as_echo "$ac_cv_have_decl_getdelim" >&6; }
33262if test "x$ac_cv_have_decl_getdelim" = x""yes; then
33263
33264cat >>confdefs.h <<_ACEOF
33265#define HAVE_DECL_GETDELIM 1
33266_ACEOF
33267
33268
33269else
33270  cat >>confdefs.h <<_ACEOF
33271#define HAVE_DECL_GETDELIM 0
33272_ACEOF
33273
33274
33275fi
33276
33277
33278
33279
33280      { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
33281$as_echo_n "checking whether getline is declared... " >&6; }
33282if test "${ac_cv_have_decl_getline+set}" = set; then
33283  $as_echo_n "(cached) " >&6
33284else
33285  cat >conftest.$ac_ext <<_ACEOF
33286/* confdefs.h.  */
33287_ACEOF
33288cat confdefs.h >>conftest.$ac_ext
33289cat >>conftest.$ac_ext <<_ACEOF
33290/* end confdefs.h.  */
33291$ac_includes_default
33292int
33293main ()
33294{
33295#ifndef getline
33296  (void) getline;
33297#endif
33298
33299  ;
33300  return 0;
33301}
33302_ACEOF
33303rm -f conftest.$ac_objext
33304if { (ac_try="$ac_compile"
33305case "(($ac_try" in
33306  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33307  *) ac_try_echo=$ac_try;;
33308esac
33309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33310$as_echo "$ac_try_echo") >&5
33311  (eval "$ac_compile") 2>conftest.er1
33312  ac_status=$?
33313  grep -v '^ *+' conftest.er1 >conftest.err
33314  rm -f conftest.er1
33315  cat conftest.err >&5
33316  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33317  (exit $ac_status); } && {
33318	 test -z "$ac_c_werror_flag" ||
33319	 test ! -s conftest.err
33320       } && test -s conftest.$ac_objext; then
33321  ac_cv_have_decl_getline=yes
33322else
33323  $as_echo "$as_me: failed program was:" >&5
33324sed 's/^/| /' conftest.$ac_ext >&5
33325
33326	ac_cv_have_decl_getline=no
33327fi
33328
33329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33330fi
33331{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
33332$as_echo "$ac_cv_have_decl_getline" >&6; }
33333if test "x$ac_cv_have_decl_getline" = x""yes; then
33334
33335cat >>confdefs.h <<_ACEOF
33336#define HAVE_DECL_GETLINE 1
33337_ACEOF
33338
33339
33340else
33341  cat >>confdefs.h <<_ACEOF
33342#define HAVE_DECL_GETLINE 0
33343_ACEOF
33344
33345
33346fi
33347
33348
33349
33350
33351  if test -z "$GETOPT_H"; then
33352
33353for ac_header in getopt.h
33354do
33355as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33357  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33358$as_echo_n "checking for $ac_header... " >&6; }
33359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33360  $as_echo_n "(cached) " >&6
33361fi
33362ac_res=`eval 'as_val=${'$as_ac_Header'}
33363		 $as_echo "$as_val"'`
33364	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33365$as_echo "$ac_res" >&6; }
33366else
33367  # Is the header compilable?
33368{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33369$as_echo_n "checking $ac_header usability... " >&6; }
33370cat >conftest.$ac_ext <<_ACEOF
33371/* confdefs.h.  */
33372_ACEOF
33373cat confdefs.h >>conftest.$ac_ext
33374cat >>conftest.$ac_ext <<_ACEOF
33375/* end confdefs.h.  */
33376$ac_includes_default
33377#include <$ac_header>
33378_ACEOF
33379rm -f conftest.$ac_objext
33380if { (ac_try="$ac_compile"
33381case "(($ac_try" in
33382  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33383  *) ac_try_echo=$ac_try;;
33384esac
33385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33386$as_echo "$ac_try_echo") >&5
33387  (eval "$ac_compile") 2>conftest.er1
33388  ac_status=$?
33389  grep -v '^ *+' conftest.er1 >conftest.err
33390  rm -f conftest.er1
33391  cat conftest.err >&5
33392  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393  (exit $ac_status); } && {
33394	 test -z "$ac_c_werror_flag" ||
33395	 test ! -s conftest.err
33396       } && test -s conftest.$ac_objext; then
33397  ac_header_compiler=yes
33398else
33399  $as_echo "$as_me: failed program was:" >&5
33400sed 's/^/| /' conftest.$ac_ext >&5
33401
33402	ac_header_compiler=no
33403fi
33404
33405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33406{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33407$as_echo "$ac_header_compiler" >&6; }
33408
33409# Is the header present?
33410{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
33411$as_echo_n "checking $ac_header presence... " >&6; }
33412cat >conftest.$ac_ext <<_ACEOF
33413/* confdefs.h.  */
33414_ACEOF
33415cat confdefs.h >>conftest.$ac_ext
33416cat >>conftest.$ac_ext <<_ACEOF
33417/* end confdefs.h.  */
33418#include <$ac_header>
33419_ACEOF
33420if { (ac_try="$ac_cpp conftest.$ac_ext"
33421case "(($ac_try" in
33422  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33423  *) ac_try_echo=$ac_try;;
33424esac
33425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33426$as_echo "$ac_try_echo") >&5
33427  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33428  ac_status=$?
33429  grep -v '^ *+' conftest.er1 >conftest.err
33430  rm -f conftest.er1
33431  cat conftest.err >&5
33432  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433  (exit $ac_status); } >/dev/null && {
33434	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33435	 test ! -s conftest.err
33436       }; then
33437  ac_header_preproc=yes
33438else
33439  $as_echo "$as_me: failed program was:" >&5
33440sed 's/^/| /' conftest.$ac_ext >&5
33441
33442  ac_header_preproc=no
33443fi
33444
33445rm -f conftest.err conftest.$ac_ext
33446{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33447$as_echo "$ac_header_preproc" >&6; }
33448
33449# So?  What about this header?
33450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33451  yes:no: )
33452    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33453$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33455$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33456    ac_header_preproc=yes
33457    ;;
33458  no:yes:* )
33459    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33460$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33462$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33463    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33464$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33465    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33466$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33467    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33468$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33469    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33470$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33471
33472    ;;
33473esac
33474{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33475$as_echo_n "checking for $ac_header... " >&6; }
33476if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33477  $as_echo_n "(cached) " >&6
33478else
33479  eval "$as_ac_Header=\$ac_header_preproc"
33480fi
33481ac_res=`eval 'as_val=${'$as_ac_Header'}
33482		 $as_echo "$as_val"'`
33483	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33484$as_echo "$ac_res" >&6; }
33485
33486fi
33487as_val=`eval 'as_val=${'$as_ac_Header'}
33488		 $as_echo "$as_val"'`
33489   if test "x$as_val" = x""yes; then
33490  cat >>confdefs.h <<_ACEOF
33491#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33492_ACEOF
33493
33494else
33495  GETOPT_H=getopt.h
33496fi
33497
33498done
33499
33500  fi
33501
33502  if test -z "$GETOPT_H"; then
33503
33504for ac_func in getopt_long_only
33505do
33506as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33507{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33508$as_echo_n "checking for $ac_func... " >&6; }
33509if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33510  $as_echo_n "(cached) " >&6
33511else
33512  cat >conftest.$ac_ext <<_ACEOF
33513/* confdefs.h.  */
33514_ACEOF
33515cat confdefs.h >>conftest.$ac_ext
33516cat >>conftest.$ac_ext <<_ACEOF
33517/* end confdefs.h.  */
33518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33519   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33520#define $ac_func innocuous_$ac_func
33521
33522/* System header to define __stub macros and hopefully few prototypes,
33523    which can conflict with char $ac_func (); below.
33524    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33525    <limits.h> exists even on freestanding compilers.  */
33526
33527#ifdef __STDC__
33528# include <limits.h>
33529#else
33530# include <assert.h>
33531#endif
33532
33533#undef $ac_func
33534
33535/* Override any GCC internal prototype to avoid an error.
33536   Use char because int might match the return type of a GCC
33537   builtin and then its argument prototype would still apply.  */
33538#ifdef __cplusplus
33539extern "C"
33540#endif
33541char $ac_func ();
33542/* The GNU C library defines this for functions which it implements
33543    to always fail with ENOSYS.  Some functions are actually named
33544    something starting with __ and the normal name is an alias.  */
33545#if defined __stub_$ac_func || defined __stub___$ac_func
33546choke me
33547#endif
33548
33549int
33550main ()
33551{
33552return $ac_func ();
33553  ;
33554  return 0;
33555}
33556_ACEOF
33557rm -f conftest.$ac_objext conftest$ac_exeext
33558if { (ac_try="$ac_link"
33559case "(($ac_try" in
33560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33561  *) ac_try_echo=$ac_try;;
33562esac
33563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33564$as_echo "$ac_try_echo") >&5
33565  (eval "$ac_link") 2>conftest.er1
33566  ac_status=$?
33567  grep -v '^ *+' conftest.er1 >conftest.err
33568  rm -f conftest.er1
33569  cat conftest.err >&5
33570  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571  (exit $ac_status); } && {
33572	 test -z "$ac_c_werror_flag" ||
33573	 test ! -s conftest.err
33574       } && test -s conftest$ac_exeext && {
33575	 test "$cross_compiling" = yes ||
33576	 $as_test_x conftest$ac_exeext
33577       }; then
33578  eval "$as_ac_var=yes"
33579else
33580  $as_echo "$as_me: failed program was:" >&5
33581sed 's/^/| /' conftest.$ac_ext >&5
33582
33583	eval "$as_ac_var=no"
33584fi
33585
33586rm -rf conftest.dSYM
33587rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33588      conftest$ac_exeext conftest.$ac_ext
33589fi
33590ac_res=`eval 'as_val=${'$as_ac_var'}
33591		 $as_echo "$as_val"'`
33592	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33593$as_echo "$ac_res" >&6; }
33594as_val=`eval 'as_val=${'$as_ac_var'}
33595		 $as_echo "$as_val"'`
33596   if test "x$as_val" = x""yes; then
33597  cat >>confdefs.h <<_ACEOF
33598#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33599_ACEOF
33600
33601else
33602  GETOPT_H=getopt.h
33603fi
33604done
33605
33606  fi
33607
33608      if test -z "$GETOPT_H"; then
33609    { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
33610$as_echo_n "checking whether optreset is declared... " >&6; }
33611if test "${ac_cv_have_decl_optreset+set}" = set; then
33612  $as_echo_n "(cached) " >&6
33613else
33614  cat >conftest.$ac_ext <<_ACEOF
33615/* confdefs.h.  */
33616_ACEOF
33617cat confdefs.h >>conftest.$ac_ext
33618cat >>conftest.$ac_ext <<_ACEOF
33619/* end confdefs.h.  */
33620#include <getopt.h>
33621
33622int
33623main ()
33624{
33625#ifndef optreset
33626  (void) optreset;
33627#endif
33628
33629  ;
33630  return 0;
33631}
33632_ACEOF
33633rm -f conftest.$ac_objext
33634if { (ac_try="$ac_compile"
33635case "(($ac_try" in
33636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637  *) ac_try_echo=$ac_try;;
33638esac
33639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33640$as_echo "$ac_try_echo") >&5
33641  (eval "$ac_compile") 2>conftest.er1
33642  ac_status=$?
33643  grep -v '^ *+' conftest.er1 >conftest.err
33644  rm -f conftest.er1
33645  cat conftest.err >&5
33646  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33647  (exit $ac_status); } && {
33648	 test -z "$ac_c_werror_flag" ||
33649	 test ! -s conftest.err
33650       } && test -s conftest.$ac_objext; then
33651  ac_cv_have_decl_optreset=yes
33652else
33653  $as_echo "$as_me: failed program was:" >&5
33654sed 's/^/| /' conftest.$ac_ext >&5
33655
33656	ac_cv_have_decl_optreset=no
33657fi
33658
33659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33660fi
33661{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
33662$as_echo "$ac_cv_have_decl_optreset" >&6; }
33663if test "x$ac_cv_have_decl_optreset" = x""yes; then
33664  GETOPT_H=getopt.h
33665fi
33666
33667  fi
33668
33669      if test -z "$GETOPT_H"; then
33670    { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
33671$as_echo_n "checking for working GNU getopt function... " >&6; }
33672if test "${gl_cv_func_gnu_getopt+set}" = set; then
33673  $as_echo_n "(cached) " >&6
33674else
33675  if test "$cross_compiling" = yes; then
33676  	 	 	 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
33677$as_echo_n "checking whether getopt_clip is declared... " >&6; }
33678if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
33679  $as_echo_n "(cached) " >&6
33680else
33681  cat >conftest.$ac_ext <<_ACEOF
33682/* confdefs.h.  */
33683_ACEOF
33684cat confdefs.h >>conftest.$ac_ext
33685cat >>conftest.$ac_ext <<_ACEOF
33686/* end confdefs.h.  */
33687#include <getopt.h>
33688
33689int
33690main ()
33691{
33692#ifndef getopt_clip
33693  (void) getopt_clip;
33694#endif
33695
33696  ;
33697  return 0;
33698}
33699_ACEOF
33700rm -f conftest.$ac_objext
33701if { (ac_try="$ac_compile"
33702case "(($ac_try" in
33703  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33704  *) ac_try_echo=$ac_try;;
33705esac
33706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33707$as_echo "$ac_try_echo") >&5
33708  (eval "$ac_compile") 2>conftest.er1
33709  ac_status=$?
33710  grep -v '^ *+' conftest.er1 >conftest.err
33711  rm -f conftest.er1
33712  cat conftest.err >&5
33713  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33714  (exit $ac_status); } && {
33715	 test -z "$ac_c_werror_flag" ||
33716	 test ! -s conftest.err
33717       } && test -s conftest.$ac_objext; then
33718  ac_cv_have_decl_getopt_clip=yes
33719else
33720  $as_echo "$as_me: failed program was:" >&5
33721sed 's/^/| /' conftest.$ac_ext >&5
33722
33723	ac_cv_have_decl_getopt_clip=no
33724fi
33725
33726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33727fi
33728{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
33729$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
33730if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
33731  gl_cv_func_gnu_getopt=no
33732else
33733  gl_cv_func_gnu_getopt=yes
33734fi
33735
33736else
33737  cat >conftest.$ac_ext <<_ACEOF
33738/* confdefs.h.  */
33739_ACEOF
33740cat confdefs.h >>conftest.$ac_ext
33741cat >>conftest.$ac_ext <<_ACEOF
33742/* end confdefs.h.  */
33743#include <getopt.h>
33744int
33745main ()
33746{
33747
33748	     char *myargv[3];
33749	     myargv[0] = "conftest";
33750	     myargv[1] = "-+";
33751	     myargv[2] = 0;
33752	     return getopt (2, myargv, "+a") != '?';
33753
33754  ;
33755  return 0;
33756}
33757_ACEOF
33758rm -f conftest$ac_exeext
33759if { (ac_try="$ac_link"
33760case "(($ac_try" in
33761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762  *) ac_try_echo=$ac_try;;
33763esac
33764eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33765$as_echo "$ac_try_echo") >&5
33766  (eval "$ac_link") 2>&5
33767  ac_status=$?
33768  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33770  { (case "(($ac_try" in
33771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33772  *) ac_try_echo=$ac_try;;
33773esac
33774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33775$as_echo "$ac_try_echo") >&5
33776  (eval "$ac_try") 2>&5
33777  ac_status=$?
33778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779  (exit $ac_status); }; }; then
33780  gl_cv_func_gnu_getopt=yes
33781else
33782  $as_echo "$as_me: program exited with status $ac_status" >&5
33783$as_echo "$as_me: failed program was:" >&5
33784sed 's/^/| /' conftest.$ac_ext >&5
33785
33786( exit $ac_status )
33787gl_cv_func_gnu_getopt=no
33788fi
33789rm -rf conftest.dSYM
33790rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33791fi
33792
33793
33794fi
33795{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
33796$as_echo "$gl_cv_func_gnu_getopt" >&6; }
33797    if test "$gl_cv_func_gnu_getopt" = "no"; then
33798      GETOPT_H=getopt.h
33799    fi
33800  fi
33801
33802
33803      { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
33804$as_echo_n "checking whether getenv is declared... " >&6; }
33805if test "${ac_cv_have_decl_getenv+set}" = set; then
33806  $as_echo_n "(cached) " >&6
33807else
33808  cat >conftest.$ac_ext <<_ACEOF
33809/* confdefs.h.  */
33810_ACEOF
33811cat confdefs.h >>conftest.$ac_ext
33812cat >>conftest.$ac_ext <<_ACEOF
33813/* end confdefs.h.  */
33814$ac_includes_default
33815int
33816main ()
33817{
33818#ifndef getenv
33819  (void) getenv;
33820#endif
33821
33822  ;
33823  return 0;
33824}
33825_ACEOF
33826rm -f conftest.$ac_objext
33827if { (ac_try="$ac_compile"
33828case "(($ac_try" in
33829  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33830  *) ac_try_echo=$ac_try;;
33831esac
33832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33833$as_echo "$ac_try_echo") >&5
33834  (eval "$ac_compile") 2>conftest.er1
33835  ac_status=$?
33836  grep -v '^ *+' conftest.er1 >conftest.err
33837  rm -f conftest.er1
33838  cat conftest.err >&5
33839  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840  (exit $ac_status); } && {
33841	 test -z "$ac_c_werror_flag" ||
33842	 test ! -s conftest.err
33843       } && test -s conftest.$ac_objext; then
33844  ac_cv_have_decl_getenv=yes
33845else
33846  $as_echo "$as_me: failed program was:" >&5
33847sed 's/^/| /' conftest.$ac_ext >&5
33848
33849	ac_cv_have_decl_getenv=no
33850fi
33851
33852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33853fi
33854{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
33855$as_echo "$ac_cv_have_decl_getenv" >&6; }
33856if test "x$ac_cv_have_decl_getenv" = x""yes; then
33857
33858cat >>confdefs.h <<_ACEOF
33859#define HAVE_DECL_GETENV 1
33860_ACEOF
33861
33862
33863else
33864  cat >>confdefs.h <<_ACEOF
33865#define HAVE_DECL_GETENV 0
33866_ACEOF
33867
33868
33869fi
33870
33871
33872
33873{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
33874$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
33875if test "${ac_cv_c_restrict+set}" = set; then
33876  $as_echo_n "(cached) " >&6
33877else
33878  ac_cv_c_restrict=no
33879   # The order here caters to the fact that C++ does not require restrict.
33880   for ac_kw in __restrict __restrict__ _Restrict restrict; do
33881     cat >conftest.$ac_ext <<_ACEOF
33882/* confdefs.h.  */
33883_ACEOF
33884cat confdefs.h >>conftest.$ac_ext
33885cat >>conftest.$ac_ext <<_ACEOF
33886/* end confdefs.h.  */
33887typedef int * int_ptr;
33888	int foo (int_ptr $ac_kw ip) {
33889	return ip[0];
33890       }
33891int
33892main ()
33893{
33894int s[1];
33895	int * $ac_kw t = s;
33896	t[0] = 0;
33897	return foo(t)
33898  ;
33899  return 0;
33900}
33901_ACEOF
33902rm -f conftest.$ac_objext
33903if { (ac_try="$ac_compile"
33904case "(($ac_try" in
33905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906  *) ac_try_echo=$ac_try;;
33907esac
33908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33909$as_echo "$ac_try_echo") >&5
33910  (eval "$ac_compile") 2>conftest.er1
33911  ac_status=$?
33912  grep -v '^ *+' conftest.er1 >conftest.err
33913  rm -f conftest.er1
33914  cat conftest.err >&5
33915  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916  (exit $ac_status); } && {
33917	 test -z "$ac_c_werror_flag" ||
33918	 test ! -s conftest.err
33919       } && test -s conftest.$ac_objext; then
33920  ac_cv_c_restrict=$ac_kw
33921else
33922  $as_echo "$as_me: failed program was:" >&5
33923sed 's/^/| /' conftest.$ac_ext >&5
33924
33925
33926fi
33927
33928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33929     test "$ac_cv_c_restrict" != no && break
33930   done
33931
33932fi
33933{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
33934$as_echo "$ac_cv_c_restrict" >&6; }
33935
33936
33937 case $ac_cv_c_restrict in
33938   restrict) ;;
33939   no) cat >>confdefs.h <<\_ACEOF
33940#define restrict /**/
33941_ACEOF
33942 ;;
33943   *)  cat >>confdefs.h <<_ACEOF
33944#define restrict $ac_cv_c_restrict
33945_ACEOF
33946 ;;
33947 esac
33948
33949
33950
33951
33952
33953
33954
33955
33956
33957
33958
33959
33960  :
33961
33962
33963
33964
33965
33966
33967
33968     if test $gl_cv_have_include_next = yes; then
33969       gl_cv_next_sys_time_h='<'sys/time.h'>'
33970     else
33971       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
33972$as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
33973if test "${gl_cv_next_sys_time_h+set}" = set; then
33974  $as_echo_n "(cached) " >&6
33975else
33976
33977	  if test $ac_cv_header_sys_time_h = yes; then
33978	    cat >conftest.$ac_ext <<_ACEOF
33979/* confdefs.h.  */
33980_ACEOF
33981cat confdefs.h >>conftest.$ac_ext
33982cat >>conftest.$ac_ext <<_ACEOF
33983/* end confdefs.h.  */
33984#include <sys/time.h>
33985
33986_ACEOF
33987	    	    	    	    gl_cv_next_sys_time_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33988	       sed -n '\#/sys/time.h#{
33989		 s#.*"\(.*/sys/time.h\)".*#\1#
33990		 s#^/[^/]#//&#
33991		 p
33992		 q
33993	       }'`'"'
33994	  else
33995	    gl_cv_next_sys_time_h='<'sys/time.h'>'
33996	  fi
33997
33998fi
33999{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
34000$as_echo "$gl_cv_next_sys_time_h" >&6; }
34001     fi
34002     NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
34003
34004
34005
34006
34007  if test $ac_cv_header_sys_time_h = yes; then
34008    HAVE_SYS_TIME_H=1
34009  else
34010    HAVE_SYS_TIME_H=0
34011  fi
34012
34013
34014  { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
34015$as_echo_n "checking for struct timeval... " >&6; }
34016if test "${gl_cv_sys_struct_timeval+set}" = set; then
34017  $as_echo_n "(cached) " >&6
34018else
34019  cat >conftest.$ac_ext <<_ACEOF
34020/* confdefs.h.  */
34021_ACEOF
34022cat confdefs.h >>conftest.$ac_ext
34023cat >>conftest.$ac_ext <<_ACEOF
34024/* end confdefs.h.  */
34025#if HAVE_SYS_TIME_H
34026	     #include <sys/time.h>
34027	    #endif
34028	    #include <time.h>
34029
34030int
34031main ()
34032{
34033static struct timeval x; x.tv_sec = x.tv_usec;
34034  ;
34035  return 0;
34036}
34037_ACEOF
34038rm -f conftest.$ac_objext
34039if { (ac_try="$ac_compile"
34040case "(($ac_try" in
34041  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34042  *) ac_try_echo=$ac_try;;
34043esac
34044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34045$as_echo "$ac_try_echo") >&5
34046  (eval "$ac_compile") 2>conftest.er1
34047  ac_status=$?
34048  grep -v '^ *+' conftest.er1 >conftest.err
34049  rm -f conftest.er1
34050  cat conftest.err >&5
34051  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34052  (exit $ac_status); } && {
34053	 test -z "$ac_c_werror_flag" ||
34054	 test ! -s conftest.err
34055       } && test -s conftest.$ac_objext; then
34056  gl_cv_sys_struct_timeval=yes
34057else
34058  $as_echo "$as_me: failed program was:" >&5
34059sed 's/^/| /' conftest.$ac_ext >&5
34060
34061	gl_cv_sys_struct_timeval=no
34062fi
34063
34064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34065fi
34066{ $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
34067$as_echo "$gl_cv_sys_struct_timeval" >&6; }
34068  if test $gl_cv_sys_struct_timeval = yes; then
34069    HAVE_STRUCT_TIMEVAL=1
34070  else
34071    HAVE_STRUCT_TIMEVAL=0
34072  fi
34073
34074
34075    REPLACE_GETTIMEOFDAY=0
34076
34077  if test $HAVE_SYS_TIME_H = 0 || test $HAVE_STRUCT_TIMEVAL = 0; then
34078    SYS_TIME_H=sys/time.h
34079  else
34080    SYS_TIME_H=
34081  fi
34082
34083
34084
34085
34086
34087
34088
34089
34090
34091
34092
34093
34094    REPLACE_ICONV=0;
34095  REPLACE_ICONV_OPEN=0;
34096  REPLACE_ICONV_UTF=0;
34097
34098
34099
34100
34101
34102
34103
34104
34105  { $as_echo "$as_me:$LINENO: checking whether included glib is requested" >&5
34106$as_echo_n "checking whether included glib is requested... " >&6; }
34107
34108# Check whether --with-included-glib was given.
34109if test "${with_included_glib+set}" = set; then
34110  withval=$with_included_glib; gl_cv_libglib_force_included=$withval
34111else
34112  gl_cv_libglib_force_included=no
34113fi
34114
34115  { $as_echo "$as_me:$LINENO: result: $gl_cv_libglib_force_included" >&5
34116$as_echo "$gl_cv_libglib_force_included" >&6; }
34117
34118  gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
34119  LIBGLIB=
34120  LTLIBGLIB=
34121  INCGLIB=
34122  if test "$gl_cv_libglib_use_included" != yes; then
34123            if test "${gl_cv_libglib+set}" = set; then
34124  $as_echo_n "(cached) " >&6
34125else
34126
34127      gl_cv_libglib=no
34128      gl_cv_LIBGLIB=
34129      gl_cv_LTLIBGLIB=
34130      gl_cv_INCGLIB=
34131      gl_save_LIBS="$LIBS"
34132
34133
34134
34135
34136    use_additional=yes
34137
34138  acl_save_prefix="$prefix"
34139  prefix="$acl_final_prefix"
34140  acl_save_exec_prefix="$exec_prefix"
34141  exec_prefix="$acl_final_exec_prefix"
34142
34143    eval additional_includedir=\"$includedir\"
34144    eval additional_libdir=\"$libdir\"
34145
34146  exec_prefix="$acl_save_exec_prefix"
34147  prefix="$acl_save_prefix"
34148
34149
34150# Check whether --with-libglib-2.0-prefix was given.
34151if test "${with_libglib_2_0_prefix+set}" = set; then
34152  withval=$with_libglib_2_0_prefix;
34153    if test "X$withval" = "Xno"; then
34154      use_additional=no
34155    else
34156      if test "X$withval" = "X"; then
34157
34158  acl_save_prefix="$prefix"
34159  prefix="$acl_final_prefix"
34160  acl_save_exec_prefix="$exec_prefix"
34161  exec_prefix="$acl_final_exec_prefix"
34162
34163          eval additional_includedir=\"$includedir\"
34164          eval additional_libdir=\"$libdir\"
34165
34166  exec_prefix="$acl_save_exec_prefix"
34167  prefix="$acl_save_prefix"
34168
34169      else
34170        additional_includedir="$withval/include"
34171        additional_libdir="$withval/$acl_libdirstem"
34172      fi
34173    fi
34174
34175fi
34176
34177      LIBGLIB_2_0=
34178  LTLIBGLIB_2_0=
34179  INCGLIB_2_0=
34180  LIBGLIB_2_0_PREFIX=
34181  rpathdirs=
34182  ltrpathdirs=
34183  names_already_handled=
34184  names_next_round='glib-2.0 '
34185  while test -n "$names_next_round"; do
34186    names_this_round="$names_next_round"
34187    names_next_round=
34188    for name in $names_this_round; do
34189      already_handled=
34190      for n in $names_already_handled; do
34191        if test "$n" = "$name"; then
34192          already_handled=yes
34193          break
34194        fi
34195      done
34196      if test -z "$already_handled"; then
34197        names_already_handled="$names_already_handled $name"
34198                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
34199        eval value=\"\$HAVE_LIB$uppername\"
34200        if test -n "$value"; then
34201          if test "$value" = yes; then
34202            eval value=\"\$LIB$uppername\"
34203            test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
34204            eval value=\"\$LTLIB$uppername\"
34205            test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
34206          else
34207                                    :
34208          fi
34209        else
34210                              found_dir=
34211          found_la=
34212          found_so=
34213          found_a=
34214          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
34215          if test -n "$acl_shlibext"; then
34216            shrext=".$acl_shlibext"             # typically: shrext=.so
34217          else
34218            shrext=
34219          fi
34220          if test $use_additional = yes; then
34221            dir="$additional_libdir"
34222                                    if test -n "$acl_shlibext"; then
34223              if test -f "$dir/$libname$shrext"; then
34224                found_dir="$dir"
34225                found_so="$dir/$libname$shrext"
34226              else
34227                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34228                  ver=`(cd "$dir" && \
34229                        for f in "$libname$shrext".*; do echo "$f"; done \
34230                        | sed -e "s,^$libname$shrext\\\\.,," \
34231                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34232                        | sed 1q ) 2>/dev/null`
34233                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34234                    found_dir="$dir"
34235                    found_so="$dir/$libname$shrext.$ver"
34236                  fi
34237                else
34238                  eval library_names=\"$acl_library_names_spec\"
34239                  for f in $library_names; do
34240                    if test -f "$dir/$f"; then
34241                      found_dir="$dir"
34242                      found_so="$dir/$f"
34243                      break
34244                    fi
34245                  done
34246                fi
34247              fi
34248            fi
34249                        if test "X$found_dir" = "X"; then
34250              if test -f "$dir/$libname.$acl_libext"; then
34251                found_dir="$dir"
34252                found_a="$dir/$libname.$acl_libext"
34253              fi
34254            fi
34255            if test "X$found_dir" != "X"; then
34256              if test -f "$dir/$libname.la"; then
34257                found_la="$dir/$libname.la"
34258              fi
34259            fi
34260          fi
34261          if test "X$found_dir" = "X"; then
34262            for x in $LDFLAGS $LTLIBGLIB_2_0; do
34263
34264  acl_save_prefix="$prefix"
34265  prefix="$acl_final_prefix"
34266  acl_save_exec_prefix="$exec_prefix"
34267  exec_prefix="$acl_final_exec_prefix"
34268  eval x=\"$x\"
34269  exec_prefix="$acl_save_exec_prefix"
34270  prefix="$acl_save_prefix"
34271
34272              case "$x" in
34273                -L*)
34274                  dir=`echo "X$x" | sed -e 's/^X-L//'`
34275                                    if test -n "$acl_shlibext"; then
34276                    if test -f "$dir/$libname$shrext"; then
34277                      found_dir="$dir"
34278                      found_so="$dir/$libname$shrext"
34279                    else
34280                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
34281                        ver=`(cd "$dir" && \
34282                              for f in "$libname$shrext".*; do echo "$f"; done \
34283                              | sed -e "s,^$libname$shrext\\\\.,," \
34284                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
34285                              | sed 1q ) 2>/dev/null`
34286                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
34287                          found_dir="$dir"
34288                          found_so="$dir/$libname$shrext.$ver"
34289                        fi
34290                      else
34291                        eval library_names=\"$acl_library_names_spec\"
34292                        for f in $library_names; do
34293                          if test -f "$dir/$f"; then
34294                            found_dir="$dir"
34295                            found_so="$dir/$f"
34296                            break
34297                          fi
34298                        done
34299                      fi
34300                    fi
34301                  fi
34302                                    if test "X$found_dir" = "X"; then
34303                    if test -f "$dir/$libname.$acl_libext"; then
34304                      found_dir="$dir"
34305                      found_a="$dir/$libname.$acl_libext"
34306                    fi
34307                  fi
34308                  if test "X$found_dir" != "X"; then
34309                    if test -f "$dir/$libname.la"; then
34310                      found_la="$dir/$libname.la"
34311                    fi
34312                  fi
34313                  ;;
34314              esac
34315              if test "X$found_dir" != "X"; then
34316                break
34317              fi
34318            done
34319          fi
34320          if test "X$found_dir" != "X"; then
34321                        LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
34322            if test "X$found_so" != "X"; then
34323                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
34324                                LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34325              else
34326                                                                                haveit=
34327                for x in $ltrpathdirs; do
34328                  if test "X$x" = "X$found_dir"; then
34329                    haveit=yes
34330                    break
34331                  fi
34332                done
34333                if test -z "$haveit"; then
34334                  ltrpathdirs="$ltrpathdirs $found_dir"
34335                fi
34336                                if test "$acl_hardcode_direct" = yes; then
34337                                                      LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34338                else
34339                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
34340                                                            LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34341                                                            haveit=
34342                    for x in $rpathdirs; do
34343                      if test "X$x" = "X$found_dir"; then
34344                        haveit=yes
34345                        break
34346                      fi
34347                    done
34348                    if test -z "$haveit"; then
34349                      rpathdirs="$rpathdirs $found_dir"
34350                    fi
34351                  else
34352                                                                                haveit=
34353                    for x in $LDFLAGS $LIBGLIB_2_0; do
34354
34355  acl_save_prefix="$prefix"
34356  prefix="$acl_final_prefix"
34357  acl_save_exec_prefix="$exec_prefix"
34358  exec_prefix="$acl_final_exec_prefix"
34359  eval x=\"$x\"
34360  exec_prefix="$acl_save_exec_prefix"
34361  prefix="$acl_save_prefix"
34362
34363                      if test "X$x" = "X-L$found_dir"; then
34364                        haveit=yes
34365                        break
34366                      fi
34367                    done
34368                    if test -z "$haveit"; then
34369                      LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
34370                    fi
34371                    if test "$acl_hardcode_minus_L" != no; then
34372                                                                                        LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
34373                    else
34374                                                                                                                                                                                LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
34375                    fi
34376                  fi
34377                fi
34378              fi
34379            else
34380              if test "X$found_a" != "X"; then
34381                                LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
34382              else
34383                                                LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
34384              fi
34385            fi
34386                        additional_includedir=
34387            case "$found_dir" in
34388              */$acl_libdirstem | */$acl_libdirstem/)
34389                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
34390                LIBGLIB_2_0_PREFIX="$basedir"
34391                additional_includedir="$basedir/include"
34392                ;;
34393            esac
34394            if test "X$additional_includedir" != "X"; then
34395                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
34396                haveit=
34397                if test "X$additional_includedir" = "X/usr/local/include"; then
34398                  if test -n "$GCC"; then
34399                    case $host_os in
34400                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34401                    esac
34402                  fi
34403                fi
34404                if test -z "$haveit"; then
34405                  for x in $CPPFLAGS $INCGLIB_2_0; do
34406
34407  acl_save_prefix="$prefix"
34408  prefix="$acl_final_prefix"
34409  acl_save_exec_prefix="$exec_prefix"
34410  exec_prefix="$acl_final_exec_prefix"
34411  eval x=\"$x\"
34412  exec_prefix="$acl_save_exec_prefix"
34413  prefix="$acl_save_prefix"
34414
34415                    if test "X$x" = "X-I$additional_includedir"; then
34416                      haveit=yes
34417                      break
34418                    fi
34419                  done
34420                  if test -z "$haveit"; then
34421                    if test -d "$additional_includedir"; then
34422                                            INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
34423                    fi
34424                  fi
34425                fi
34426              fi
34427            fi
34428                        if test -n "$found_la"; then
34429                                                        save_libdir="$libdir"
34430              case "$found_la" in
34431                */* | *\\*) . "$found_la" ;;
34432                *) . "./$found_la" ;;
34433              esac
34434              libdir="$save_libdir"
34435                            for dep in $dependency_libs; do
34436                case "$dep" in
34437                  -L*)
34438                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
34439                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
34440                      haveit=
34441                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
34442                        if test -n "$GCC"; then
34443                          case $host_os in
34444                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
34445                          esac
34446                        fi
34447                      fi
34448                      if test -z "$haveit"; then
34449                        haveit=
34450                        for x in $LDFLAGS $LIBGLIB_2_0; do
34451
34452  acl_save_prefix="$prefix"
34453  prefix="$acl_final_prefix"
34454  acl_save_exec_prefix="$exec_prefix"
34455  exec_prefix="$acl_final_exec_prefix"
34456  eval x=\"$x\"
34457  exec_prefix="$acl_save_exec_prefix"
34458  prefix="$acl_save_prefix"
34459
34460                          if test "X$x" = "X-L$additional_libdir"; then
34461                            haveit=yes
34462                            break
34463                          fi
34464                        done
34465                        if test -z "$haveit"; then
34466                          if test -d "$additional_libdir"; then
34467                                                        LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
34468                          fi
34469                        fi
34470                        haveit=
34471                        for x in $LDFLAGS $LTLIBGLIB_2_0; do
34472
34473  acl_save_prefix="$prefix"
34474  prefix="$acl_final_prefix"
34475  acl_save_exec_prefix="$exec_prefix"
34476  exec_prefix="$acl_final_exec_prefix"
34477  eval x=\"$x\"
34478  exec_prefix="$acl_save_exec_prefix"
34479  prefix="$acl_save_prefix"
34480
34481                          if test "X$x" = "X-L$additional_libdir"; then
34482                            haveit=yes
34483                            break
34484                          fi
34485                        done
34486                        if test -z "$haveit"; then
34487                          if test -d "$additional_libdir"; then
34488                                                        LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
34489                          fi
34490                        fi
34491                      fi
34492                    fi
34493                    ;;
34494                  -R*)
34495                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
34496                    if test "$enable_rpath" != no; then
34497                                                                  haveit=
34498                      for x in $rpathdirs; do
34499                        if test "X$x" = "X$dir"; then
34500                          haveit=yes
34501                          break
34502                        fi
34503                      done
34504                      if test -z "$haveit"; then
34505                        rpathdirs="$rpathdirs $dir"
34506                      fi
34507                                                                  haveit=
34508                      for x in $ltrpathdirs; do
34509                        if test "X$x" = "X$dir"; then
34510                          haveit=yes
34511                          break
34512                        fi
34513                      done
34514                      if test -z "$haveit"; then
34515                        ltrpathdirs="$ltrpathdirs $dir"
34516                      fi
34517                    fi
34518                    ;;
34519                  -l*)
34520                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
34521                    ;;
34522                  *.la)
34523                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
34524                    ;;
34525                  *)
34526                                        LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
34527                    LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
34528                    ;;
34529                esac
34530              done
34531            fi
34532          else
34533                                                            LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
34534            LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
34535          fi
34536        fi
34537      fi
34538    done
34539  done
34540  if test "X$rpathdirs" != "X"; then
34541    if test -n "$acl_hardcode_libdir_separator"; then
34542                        alldirs=
34543      for found_dir in $rpathdirs; do
34544        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
34545      done
34546            acl_save_libdir="$libdir"
34547      libdir="$alldirs"
34548      eval flag=\"$acl_hardcode_libdir_flag_spec\"
34549      libdir="$acl_save_libdir"
34550      LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
34551    else
34552            for found_dir in $rpathdirs; do
34553        acl_save_libdir="$libdir"
34554        libdir="$found_dir"
34555        eval flag=\"$acl_hardcode_libdir_flag_spec\"
34556        libdir="$acl_save_libdir"
34557        LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
34558      done
34559    fi
34560  fi
34561  if test "X$ltrpathdirs" != "X"; then
34562            for found_dir in $ltrpathdirs; do
34563      LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
34564    done
34565  fi
34566
34567      LIBS="$gl_save_LIBS $LIBGLIB_2_0"
34568      cat >conftest.$ac_ext <<_ACEOF
34569/* confdefs.h.  */
34570_ACEOF
34571cat confdefs.h >>conftest.$ac_ext
34572cat >>conftest.$ac_ext <<_ACEOF
34573/* end confdefs.h.  */
34574#include <glib.h>
34575int
34576main ()
34577{
34578g_string_new ("foo");
34579  ;
34580  return 0;
34581}
34582_ACEOF
34583rm -f conftest.$ac_objext conftest$ac_exeext
34584if { (ac_try="$ac_link"
34585case "(($ac_try" in
34586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34587  *) ac_try_echo=$ac_try;;
34588esac
34589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34590$as_echo "$ac_try_echo") >&5
34591  (eval "$ac_link") 2>conftest.er1
34592  ac_status=$?
34593  grep -v '^ *+' conftest.er1 >conftest.err
34594  rm -f conftest.er1
34595  cat conftest.err >&5
34596  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597  (exit $ac_status); } && {
34598	 test -z "$ac_c_werror_flag" ||
34599	 test ! -s conftest.err
34600       } && test -s conftest$ac_exeext && {
34601	 test "$cross_compiling" = yes ||
34602	 $as_test_x conftest$ac_exeext
34603       }; then
34604  gl_cv_libglib=yes
34605         gl_cv_LIBGLIB="$LIBGLIB_2_0"
34606         gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34607
34608else
34609  $as_echo "$as_me: failed program was:" >&5
34610sed 's/^/| /' conftest.$ac_ext >&5
34611
34612
34613fi
34614
34615rm -rf conftest.dSYM
34616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34617      conftest$ac_exeext conftest.$ac_ext
34618      if test "$gl_cv_libglib" != yes; then
34619        gl_save_CPPFLAGS="$CPPFLAGS"
34620        CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
34621        cat >conftest.$ac_ext <<_ACEOF
34622/* confdefs.h.  */
34623_ACEOF
34624cat confdefs.h >>conftest.$ac_ext
34625cat >>conftest.$ac_ext <<_ACEOF
34626/* end confdefs.h.  */
34627#include <glib.h>
34628int
34629main ()
34630{
34631g_string_new ("foo");
34632  ;
34633  return 0;
34634}
34635_ACEOF
34636rm -f conftest.$ac_objext conftest$ac_exeext
34637if { (ac_try="$ac_link"
34638case "(($ac_try" in
34639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34640  *) ac_try_echo=$ac_try;;
34641esac
34642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34643$as_echo "$ac_try_echo") >&5
34644  (eval "$ac_link") 2>conftest.er1
34645  ac_status=$?
34646  grep -v '^ *+' conftest.er1 >conftest.err
34647  rm -f conftest.er1
34648  cat conftest.err >&5
34649  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34650  (exit $ac_status); } && {
34651	 test -z "$ac_c_werror_flag" ||
34652	 test ! -s conftest.err
34653       } && test -s conftest$ac_exeext && {
34654	 test "$cross_compiling" = yes ||
34655	 $as_test_x conftest$ac_exeext
34656       }; then
34657  gl_cv_libglib=yes
34658           gl_cv_LIBGLIB="$LIBGLIB_2_0"
34659           gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34660           gl_cv_INCGLIB="$INCGLIB_2_0"
34661
34662else
34663  $as_echo "$as_me: failed program was:" >&5
34664sed 's/^/| /' conftest.$ac_ext >&5
34665
34666
34667fi
34668
34669rm -rf conftest.dSYM
34670rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34671      conftest$ac_exeext conftest.$ac_ext
34672        if test "$gl_cv_libglib" != yes; then
34673                              if test -n "$LIBGLIB_2_0_PREFIX"; then
34674            CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
34675            cat >conftest.$ac_ext <<_ACEOF
34676/* confdefs.h.  */
34677_ACEOF
34678cat confdefs.h >>conftest.$ac_ext
34679cat >>conftest.$ac_ext <<_ACEOF
34680/* end confdefs.h.  */
34681#include <glib.h>
34682int
34683main ()
34684{
34685g_string_new ("foo");
34686  ;
34687  return 0;
34688}
34689_ACEOF
34690rm -f conftest.$ac_objext conftest$ac_exeext
34691if { (ac_try="$ac_link"
34692case "(($ac_try" in
34693  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34694  *) ac_try_echo=$ac_try;;
34695esac
34696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34697$as_echo "$ac_try_echo") >&5
34698  (eval "$ac_link") 2>conftest.er1
34699  ac_status=$?
34700  grep -v '^ *+' conftest.er1 >conftest.err
34701  rm -f conftest.er1
34702  cat conftest.err >&5
34703  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34704  (exit $ac_status); } && {
34705	 test -z "$ac_c_werror_flag" ||
34706	 test ! -s conftest.err
34707       } && test -s conftest$ac_exeext && {
34708	 test "$cross_compiling" = yes ||
34709	 $as_test_x conftest$ac_exeext
34710       }; then
34711  gl_cv_libglib=yes
34712               gl_cv_LIBGLIB="$LIBGLIB_2_0"
34713               gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
34714               gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
34715
34716else
34717  $as_echo "$as_me: failed program was:" >&5
34718sed 's/^/| /' conftest.$ac_ext >&5
34719
34720
34721fi
34722
34723rm -rf conftest.dSYM
34724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34725      conftest$ac_exeext conftest.$ac_ext
34726          fi
34727        fi
34728        CPPFLAGS="$gl_save_CPPFLAGS"
34729      fi
34730      LIBS="$gl_save_LIBS"
34731
34732fi
34733
34734    { $as_echo "$as_me:$LINENO: checking for glib" >&5
34735$as_echo_n "checking for glib... " >&6; }
34736    { $as_echo "$as_me:$LINENO: result: $gl_cv_libglib" >&5
34737$as_echo "$gl_cv_libglib" >&6; }
34738    if test $gl_cv_libglib = yes; then
34739      LIBGLIB="$gl_cv_LIBGLIB"
34740      LTLIBGLIB="$gl_cv_LTLIBGLIB"
34741      INCGLIB="$gl_cv_INCGLIB"
34742    else
34743      gl_cv_libglib_use_included=yes
34744    fi
34745  fi
34746
34747
34748
34749  { $as_echo "$as_me:$LINENO: checking whether to use the included glib" >&5
34750$as_echo_n "checking whether to use the included glib... " >&6; }
34751  { $as_echo "$as_me:$LINENO: result: $gl_cv_libglib_use_included" >&5
34752$as_echo "$gl_cv_libglib_use_included" >&6; }
34753
34754  if test "$gl_cv_libglib_use_included" = yes; then
34755    LIBGLIB_H=
34756    LIBGLIB_H="$LIBGLIB_H glib.h"
34757    LIBGLIB_H="$LIBGLIB_H glibconfig.h"
34758    LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
34759    LIBGLIB_H="$LIBGLIB_H glib/glist.h"
34760    LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
34761    LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
34762    LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
34763    LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
34764
34765
34766for ac_header in unistd.h
34767do
34768as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34770  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34771$as_echo_n "checking for $ac_header... " >&6; }
34772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34773  $as_echo_n "(cached) " >&6
34774fi
34775ac_res=`eval 'as_val=${'$as_ac_Header'}
34776		 $as_echo "$as_val"'`
34777	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34778$as_echo "$ac_res" >&6; }
34779else
34780  # Is the header compilable?
34781{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
34782$as_echo_n "checking $ac_header usability... " >&6; }
34783cat >conftest.$ac_ext <<_ACEOF
34784/* confdefs.h.  */
34785_ACEOF
34786cat confdefs.h >>conftest.$ac_ext
34787cat >>conftest.$ac_ext <<_ACEOF
34788/* end confdefs.h.  */
34789$ac_includes_default
34790#include <$ac_header>
34791_ACEOF
34792rm -f conftest.$ac_objext
34793if { (ac_try="$ac_compile"
34794case "(($ac_try" in
34795  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34796  *) ac_try_echo=$ac_try;;
34797esac
34798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34799$as_echo "$ac_try_echo") >&5
34800  (eval "$ac_compile") 2>conftest.er1
34801  ac_status=$?
34802  grep -v '^ *+' conftest.er1 >conftest.err
34803  rm -f conftest.er1
34804  cat conftest.err >&5
34805  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806  (exit $ac_status); } && {
34807	 test -z "$ac_c_werror_flag" ||
34808	 test ! -s conftest.err
34809       } && test -s conftest.$ac_objext; then
34810  ac_header_compiler=yes
34811else
34812  $as_echo "$as_me: failed program was:" >&5
34813sed 's/^/| /' conftest.$ac_ext >&5
34814
34815	ac_header_compiler=no
34816fi
34817
34818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34819{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34820$as_echo "$ac_header_compiler" >&6; }
34821
34822# Is the header present?
34823{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34824$as_echo_n "checking $ac_header presence... " >&6; }
34825cat >conftest.$ac_ext <<_ACEOF
34826/* confdefs.h.  */
34827_ACEOF
34828cat confdefs.h >>conftest.$ac_ext
34829cat >>conftest.$ac_ext <<_ACEOF
34830/* end confdefs.h.  */
34831#include <$ac_header>
34832_ACEOF
34833if { (ac_try="$ac_cpp conftest.$ac_ext"
34834case "(($ac_try" in
34835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34836  *) ac_try_echo=$ac_try;;
34837esac
34838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34839$as_echo "$ac_try_echo") >&5
34840  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34841  ac_status=$?
34842  grep -v '^ *+' conftest.er1 >conftest.err
34843  rm -f conftest.er1
34844  cat conftest.err >&5
34845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34846  (exit $ac_status); } >/dev/null && {
34847	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34848	 test ! -s conftest.err
34849       }; then
34850  ac_header_preproc=yes
34851else
34852  $as_echo "$as_me: failed program was:" >&5
34853sed 's/^/| /' conftest.$ac_ext >&5
34854
34855  ac_header_preproc=no
34856fi
34857
34858rm -f conftest.err conftest.$ac_ext
34859{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34860$as_echo "$ac_header_preproc" >&6; }
34861
34862# So?  What about this header?
34863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34864  yes:no: )
34865    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34866$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34867    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34868$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34869    ac_header_preproc=yes
34870    ;;
34871  no:yes:* )
34872    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34873$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34874    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34875$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34876    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34877$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34878    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34879$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34880    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34881$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34882    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34883$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34884
34885    ;;
34886esac
34887{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34888$as_echo_n "checking for $ac_header... " >&6; }
34889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34890  $as_echo_n "(cached) " >&6
34891else
34892  eval "$as_ac_Header=\$ac_header_preproc"
34893fi
34894ac_res=`eval 'as_val=${'$as_ac_Header'}
34895		 $as_echo "$as_val"'`
34896	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34897$as_echo "$ac_res" >&6; }
34898
34899fi
34900as_val=`eval 'as_val=${'$as_ac_Header'}
34901		 $as_echo "$as_val"'`
34902   if test "x$as_val" = x""yes; then
34903  cat >>confdefs.h <<_ACEOF
34904#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34905_ACEOF
34906
34907fi
34908
34909done
34910
34911      else
34912    LIBGLIB_H=
34913  fi
34914
34915
34916   if test "$gl_cv_libglib_use_included" = yes; then
34917  INCLUDED_LIBGLIB_TRUE=
34918  INCLUDED_LIBGLIB_FALSE='#'
34919else
34920  INCLUDED_LIBGLIB_TRUE='#'
34921  INCLUDED_LIBGLIB_FALSE=
34922fi
34923
34924
34925
34926
34927
34928
34929
34930
34931
34932
34933
34934
34935
34936
34937
34938      { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
34939$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
34940if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
34941  $as_echo_n "(cached) " >&6
34942else
34943  cat >conftest.$ac_ext <<_ACEOF
34944/* confdefs.h.  */
34945_ACEOF
34946cat confdefs.h >>conftest.$ac_ext
34947cat >>conftest.$ac_ext <<_ACEOF
34948/* end confdefs.h.  */
34949$ac_includes_default
34950int
34951main ()
34952{
34953#ifndef getc_unlocked
34954  (void) getc_unlocked;
34955#endif
34956
34957  ;
34958  return 0;
34959}
34960_ACEOF
34961rm -f conftest.$ac_objext
34962if { (ac_try="$ac_compile"
34963case "(($ac_try" in
34964  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34965  *) ac_try_echo=$ac_try;;
34966esac
34967eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34968$as_echo "$ac_try_echo") >&5
34969  (eval "$ac_compile") 2>conftest.er1
34970  ac_status=$?
34971  grep -v '^ *+' conftest.er1 >conftest.err
34972  rm -f conftest.er1
34973  cat conftest.err >&5
34974  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34975  (exit $ac_status); } && {
34976	 test -z "$ac_c_werror_flag" ||
34977	 test ! -s conftest.err
34978       } && test -s conftest.$ac_objext; then
34979  ac_cv_have_decl_getc_unlocked=yes
34980else
34981  $as_echo "$as_me: failed program was:" >&5
34982sed 's/^/| /' conftest.$ac_ext >&5
34983
34984	ac_cv_have_decl_getc_unlocked=no
34985fi
34986
34987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34988fi
34989{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
34990$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
34991if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
34992
34993cat >>confdefs.h <<_ACEOF
34994#define HAVE_DECL_GETC_UNLOCKED 1
34995_ACEOF
34996
34997
34998else
34999  cat >>confdefs.h <<_ACEOF
35000#define HAVE_DECL_GETC_UNLOCKED 0
35001_ACEOF
35002
35003
35004fi
35005
35006
35007
35008
35009
35010
35011
35012
35013
35014
35015  { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
35016$as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
35017if test "${gl_cv_func_malloc_posix+set}" = set; then
35018  $as_echo_n "(cached) " >&6
35019else
35020
35021                        cat >conftest.$ac_ext <<_ACEOF
35022/* confdefs.h.  */
35023_ACEOF
35024cat confdefs.h >>conftest.$ac_ext
35025cat >>conftest.$ac_ext <<_ACEOF
35026/* end confdefs.h.  */
35027
35028int
35029main ()
35030{
35031#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
35032         choke me
35033         #endif
35034
35035  ;
35036  return 0;
35037}
35038_ACEOF
35039rm -f conftest.$ac_objext
35040if { (ac_try="$ac_compile"
35041case "(($ac_try" in
35042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35043  *) ac_try_echo=$ac_try;;
35044esac
35045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35046$as_echo "$ac_try_echo") >&5
35047  (eval "$ac_compile") 2>conftest.er1
35048  ac_status=$?
35049  grep -v '^ *+' conftest.er1 >conftest.err
35050  rm -f conftest.er1
35051  cat conftest.err >&5
35052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053  (exit $ac_status); } && {
35054	 test -z "$ac_c_werror_flag" ||
35055	 test ! -s conftest.err
35056       } && test -s conftest.$ac_objext; then
35057  gl_cv_func_malloc_posix=yes
35058else
35059  $as_echo "$as_me: failed program was:" >&5
35060sed 's/^/| /' conftest.$ac_ext >&5
35061
35062	gl_cv_func_malloc_posix=no
35063fi
35064
35065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35066
35067fi
35068{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
35069$as_echo "$gl_cv_func_malloc_posix" >&6; }
35070
35071
35072  GNULIB_MALLOC_POSIX=0;
35073  GNULIB_REALLOC_POSIX=0;
35074  GNULIB_CALLOC_POSIX=0;
35075  GNULIB_GETSUBOPT=0;
35076  GNULIB_MKDTEMP=0;
35077  GNULIB_MKSTEMP=0;
35078  GNULIB_PUTENV=0;
35079    HAVE_CALLOC_POSIX=1;
35080  HAVE_GETSUBOPT=1;
35081  HAVE_MALLOC_POSIX=1;
35082  HAVE_MKDTEMP=1;
35083  HAVE_REALLOC_POSIX=1;
35084  REPLACE_MKSTEMP=0;
35085  REPLACE_PUTENV=0;
35086
35087
35088
35089for ac_header in stdlib.h
35090do
35091as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35093  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35094$as_echo_n "checking for $ac_header... " >&6; }
35095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35096  $as_echo_n "(cached) " >&6
35097fi
35098ac_res=`eval 'as_val=${'$as_ac_Header'}
35099		 $as_echo "$as_val"'`
35100	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35101$as_echo "$ac_res" >&6; }
35102else
35103  # Is the header compilable?
35104{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35105$as_echo_n "checking $ac_header usability... " >&6; }
35106cat >conftest.$ac_ext <<_ACEOF
35107/* confdefs.h.  */
35108_ACEOF
35109cat confdefs.h >>conftest.$ac_ext
35110cat >>conftest.$ac_ext <<_ACEOF
35111/* end confdefs.h.  */
35112$ac_includes_default
35113#include <$ac_header>
35114_ACEOF
35115rm -f conftest.$ac_objext
35116if { (ac_try="$ac_compile"
35117case "(($ac_try" in
35118  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35119  *) ac_try_echo=$ac_try;;
35120esac
35121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35122$as_echo "$ac_try_echo") >&5
35123  (eval "$ac_compile") 2>conftest.er1
35124  ac_status=$?
35125  grep -v '^ *+' conftest.er1 >conftest.err
35126  rm -f conftest.er1
35127  cat conftest.err >&5
35128  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35129  (exit $ac_status); } && {
35130	 test -z "$ac_c_werror_flag" ||
35131	 test ! -s conftest.err
35132       } && test -s conftest.$ac_objext; then
35133  ac_header_compiler=yes
35134else
35135  $as_echo "$as_me: failed program was:" >&5
35136sed 's/^/| /' conftest.$ac_ext >&5
35137
35138	ac_header_compiler=no
35139fi
35140
35141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35142{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35143$as_echo "$ac_header_compiler" >&6; }
35144
35145# Is the header present?
35146{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35147$as_echo_n "checking $ac_header presence... " >&6; }
35148cat >conftest.$ac_ext <<_ACEOF
35149/* confdefs.h.  */
35150_ACEOF
35151cat confdefs.h >>conftest.$ac_ext
35152cat >>conftest.$ac_ext <<_ACEOF
35153/* end confdefs.h.  */
35154#include <$ac_header>
35155_ACEOF
35156if { (ac_try="$ac_cpp conftest.$ac_ext"
35157case "(($ac_try" in
35158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35159  *) ac_try_echo=$ac_try;;
35160esac
35161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35162$as_echo "$ac_try_echo") >&5
35163  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35164  ac_status=$?
35165  grep -v '^ *+' conftest.er1 >conftest.err
35166  rm -f conftest.er1
35167  cat conftest.err >&5
35168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35169  (exit $ac_status); } >/dev/null && {
35170	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35171	 test ! -s conftest.err
35172       }; then
35173  ac_header_preproc=yes
35174else
35175  $as_echo "$as_me: failed program was:" >&5
35176sed 's/^/| /' conftest.$ac_ext >&5
35177
35178  ac_header_preproc=no
35179fi
35180
35181rm -f conftest.err conftest.$ac_ext
35182{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35183$as_echo "$ac_header_preproc" >&6; }
35184
35185# So?  What about this header?
35186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35187  yes:no: )
35188    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35189$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35190    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35191$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35192    ac_header_preproc=yes
35193    ;;
35194  no:yes:* )
35195    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35196$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35197    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35198$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35199    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35200$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35201    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35202$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35203    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35204$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35205    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35206$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35207
35208    ;;
35209esac
35210{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35211$as_echo_n "checking for $ac_header... " >&6; }
35212if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35213  $as_echo_n "(cached) " >&6
35214else
35215  eval "$as_ac_Header=\$ac_header_preproc"
35216fi
35217ac_res=`eval 'as_val=${'$as_ac_Header'}
35218		 $as_echo "$as_val"'`
35219	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35220$as_echo "$ac_res" >&6; }
35221
35222fi
35223as_val=`eval 'as_val=${'$as_ac_Header'}
35224		 $as_echo "$as_val"'`
35225   if test "x$as_val" = x""yes; then
35226  cat >>confdefs.h <<_ACEOF
35227#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35228_ACEOF
35229
35230fi
35231
35232done
35233
35234{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
35235$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
35236if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
35237  $as_echo_n "(cached) " >&6
35238else
35239  if test "$cross_compiling" = yes; then
35240  ac_cv_func_malloc_0_nonnull=no
35241else
35242  cat >conftest.$ac_ext <<_ACEOF
35243/* confdefs.h.  */
35244_ACEOF
35245cat confdefs.h >>conftest.$ac_ext
35246cat >>conftest.$ac_ext <<_ACEOF
35247/* end confdefs.h.  */
35248#if defined STDC_HEADERS || defined HAVE_STDLIB_H
35249# include <stdlib.h>
35250#else
35251char *malloc ();
35252#endif
35253
35254int
35255main ()
35256{
35257return ! malloc (0);
35258  ;
35259  return 0;
35260}
35261_ACEOF
35262rm -f conftest$ac_exeext
35263if { (ac_try="$ac_link"
35264case "(($ac_try" in
35265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266  *) ac_try_echo=$ac_try;;
35267esac
35268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35269$as_echo "$ac_try_echo") >&5
35270  (eval "$ac_link") 2>&5
35271  ac_status=$?
35272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35274  { (case "(($ac_try" in
35275  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35276  *) ac_try_echo=$ac_try;;
35277esac
35278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35279$as_echo "$ac_try_echo") >&5
35280  (eval "$ac_try") 2>&5
35281  ac_status=$?
35282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283  (exit $ac_status); }; }; then
35284  ac_cv_func_malloc_0_nonnull=yes
35285else
35286  $as_echo "$as_me: program exited with status $ac_status" >&5
35287$as_echo "$as_me: failed program was:" >&5
35288sed 's/^/| /' conftest.$ac_ext >&5
35289
35290( exit $ac_status )
35291ac_cv_func_malloc_0_nonnull=no
35292fi
35293rm -rf conftest.dSYM
35294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35295fi
35296
35297
35298fi
35299{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
35300$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
35301if test $ac_cv_func_malloc_0_nonnull = yes; then
35302  gl_cv_func_malloc_0_nonnull=1
35303else
35304  gl_cv_func_malloc_0_nonnull=0
35305fi
35306
35307
35308
35309cat >>confdefs.h <<_ACEOF
35310#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
35311_ACEOF
35312
35313
35314
35315    { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
35316$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
35317if test "${gl_cv_func_mbrtowc+set}" = set; then
35318  $as_echo_n "(cached) " >&6
35319else
35320  cat >conftest.$ac_ext <<_ACEOF
35321/* confdefs.h.  */
35322_ACEOF
35323cat confdefs.h >>conftest.$ac_ext
35324cat >>conftest.$ac_ext <<_ACEOF
35325/* end confdefs.h.  */
35326#include <wchar.h>
35327int
35328main ()
35329{
35330wchar_t wc;
35331              char const s[] = "";
35332              size_t n = 1;
35333              mbstate_t state;
35334              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
35335  ;
35336  return 0;
35337}
35338_ACEOF
35339rm -f conftest.$ac_objext conftest$ac_exeext
35340if { (ac_try="$ac_link"
35341case "(($ac_try" in
35342  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35343  *) ac_try_echo=$ac_try;;
35344esac
35345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35346$as_echo "$ac_try_echo") >&5
35347  (eval "$ac_link") 2>conftest.er1
35348  ac_status=$?
35349  grep -v '^ *+' conftest.er1 >conftest.err
35350  rm -f conftest.er1
35351  cat conftest.err >&5
35352  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353  (exit $ac_status); } && {
35354	 test -z "$ac_c_werror_flag" ||
35355	 test ! -s conftest.err
35356       } && test -s conftest$ac_exeext && {
35357	 test "$cross_compiling" = yes ||
35358	 $as_test_x conftest$ac_exeext
35359       }; then
35360  gl_cv_func_mbrtowc=yes
35361else
35362  $as_echo "$as_me: failed program was:" >&5
35363sed 's/^/| /' conftest.$ac_ext >&5
35364
35365	gl_cv_func_mbrtowc=no
35366fi
35367
35368rm -rf conftest.dSYM
35369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35370      conftest$ac_exeext conftest.$ac_ext
35371fi
35372{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
35373$as_echo "$gl_cv_func_mbrtowc" >&6; }
35374  if test $gl_cv_func_mbrtowc = yes; then
35375
35376cat >>confdefs.h <<\_ACEOF
35377#define HAVE_MBRTOWC 1
35378_ACEOF
35379
35380  fi
35381
35382
35383  GNULIB_MEMMEM=0;
35384  GNULIB_MEMPCPY=0;
35385  GNULIB_MEMRCHR=0;
35386  GNULIB_STPCPY=0;
35387  GNULIB_STPNCPY=0;
35388  GNULIB_STRCHRNUL=0;
35389  GNULIB_STRDUP=0;
35390  GNULIB_STRNDUP=0;
35391  GNULIB_STRNLEN=0;
35392  GNULIB_STRPBRK=0;
35393  GNULIB_STRSEP=0;
35394  GNULIB_STRCASESTR=0;
35395  GNULIB_STRTOK_R=0;
35396  GNULIB_MBSLEN=0;
35397  GNULIB_MBSNLEN=0;
35398  GNULIB_MBSCHR=0;
35399  GNULIB_MBSRCHR=0;
35400  GNULIB_MBSSTR=0;
35401  GNULIB_MBSCASECMP=0;
35402  GNULIB_MBSNCASECMP=0;
35403  GNULIB_MBSPCASECMP=0;
35404  GNULIB_MBSCASESTR=0;
35405  GNULIB_MBSCSPN=0;
35406  GNULIB_MBSPBRK=0;
35407  GNULIB_MBSSPN=0;
35408  GNULIB_MBSSEP=0;
35409  GNULIB_MBSTOK_R=0;
35410  GNULIB_STRERROR=0;
35411    HAVE_DECL_MEMMEM=1;
35412  HAVE_MEMPCPY=1;
35413  HAVE_DECL_MEMRCHR=1;
35414  HAVE_STPCPY=1;
35415  HAVE_STPNCPY=1;
35416  HAVE_STRCASECMP=1;
35417  HAVE_DECL_STRNCASECMP=1;
35418  HAVE_STRCHRNUL=1;
35419  HAVE_DECL_STRDUP=1;
35420  HAVE_STRNDUP=1;
35421  HAVE_DECL_STRNDUP=1;
35422  HAVE_DECL_STRNLEN=1;
35423  HAVE_STRPBRK=1;
35424  HAVE_STRSEP=1;
35425  HAVE_STRCASESTR=1;
35426  HAVE_DECL_STRTOK_R=1;
35427  HAVE_DECL_STRERROR=1;
35428  REPLACE_STRERROR=0;
35429
35430
35431
35432
35433
35434
35435
35436
35437
35438
35439
35440
35441
35442
35443
35444
35445
35446
35447
35448
35449
35450
35451
35452  { $as_echo "$as_me:$LINENO: checking whether <limits.h> defines MIN and MAX" >&5
35453$as_echo_n "checking whether <limits.h> defines MIN and MAX... " >&6; }
35454if test "${gl_cv_minmax_in_limits_h+set}" = set; then
35455  $as_echo_n "(cached) " >&6
35456else
35457  cat >conftest.$ac_ext <<_ACEOF
35458/* confdefs.h.  */
35459_ACEOF
35460cat confdefs.h >>conftest.$ac_ext
35461cat >>conftest.$ac_ext <<_ACEOF
35462/* end confdefs.h.  */
35463#include <limits.h>
35464int x = MIN (42, 17);
35465int
35466main ()
35467{
35468
35469  ;
35470  return 0;
35471}
35472_ACEOF
35473rm -f conftest.$ac_objext
35474if { (ac_try="$ac_compile"
35475case "(($ac_try" in
35476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35477  *) ac_try_echo=$ac_try;;
35478esac
35479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35480$as_echo "$ac_try_echo") >&5
35481  (eval "$ac_compile") 2>conftest.er1
35482  ac_status=$?
35483  grep -v '^ *+' conftest.er1 >conftest.err
35484  rm -f conftest.er1
35485  cat conftest.err >&5
35486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487  (exit $ac_status); } && {
35488	 test -z "$ac_c_werror_flag" ||
35489	 test ! -s conftest.err
35490       } && test -s conftest.$ac_objext; then
35491  gl_cv_minmax_in_limits_h=yes
35492else
35493  $as_echo "$as_me: failed program was:" >&5
35494sed 's/^/| /' conftest.$ac_ext >&5
35495
35496	gl_cv_minmax_in_limits_h=no
35497fi
35498
35499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35500fi
35501{ $as_echo "$as_me:$LINENO: result: $gl_cv_minmax_in_limits_h" >&5
35502$as_echo "$gl_cv_minmax_in_limits_h" >&6; }
35503  if test $gl_cv_minmax_in_limits_h = yes; then
35504
35505cat >>confdefs.h <<\_ACEOF
35506#define HAVE_MINMAX_IN_LIMITS_H 1
35507_ACEOF
35508
35509  fi
35510
35511
35512
35513
35514
35515
35516  { $as_echo "$as_me:$LINENO: checking whether <sys/param.h> defines MIN and MAX" >&5
35517$as_echo_n "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
35518if test "${gl_cv_minmax_in_sys_param_h+set}" = set; then
35519  $as_echo_n "(cached) " >&6
35520else
35521  cat >conftest.$ac_ext <<_ACEOF
35522/* confdefs.h.  */
35523_ACEOF
35524cat confdefs.h >>conftest.$ac_ext
35525cat >>conftest.$ac_ext <<_ACEOF
35526/* end confdefs.h.  */
35527#include <sys/param.h>
35528int x = MIN (42, 17);
35529int
35530main ()
35531{
35532
35533  ;
35534  return 0;
35535}
35536_ACEOF
35537rm -f conftest.$ac_objext
35538if { (ac_try="$ac_compile"
35539case "(($ac_try" in
35540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35541  *) ac_try_echo=$ac_try;;
35542esac
35543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35544$as_echo "$ac_try_echo") >&5
35545  (eval "$ac_compile") 2>conftest.er1
35546  ac_status=$?
35547  grep -v '^ *+' conftest.er1 >conftest.err
35548  rm -f conftest.er1
35549  cat conftest.err >&5
35550  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551  (exit $ac_status); } && {
35552	 test -z "$ac_c_werror_flag" ||
35553	 test ! -s conftest.err
35554       } && test -s conftest.$ac_objext; then
35555  gl_cv_minmax_in_sys_param_h=yes
35556else
35557  $as_echo "$as_me: failed program was:" >&5
35558sed 's/^/| /' conftest.$ac_ext >&5
35559
35560	gl_cv_minmax_in_sys_param_h=no
35561fi
35562
35563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35564fi
35565{ $as_echo "$as_me:$LINENO: result: $gl_cv_minmax_in_sys_param_h" >&5
35566$as_echo "$gl_cv_minmax_in_sys_param_h" >&6; }
35567  if test $gl_cv_minmax_in_sys_param_h = yes; then
35568
35569cat >>confdefs.h <<\_ACEOF
35570#define HAVE_MINMAX_IN_SYS_PARAM_H 1
35571_ACEOF
35572
35573  fi
35574
35575
35576
35577
35578
35579  GNULIB_CHOWN=0;
35580  GNULIB_DUP2=0;
35581  GNULIB_FCHDIR=0;
35582  GNULIB_FTRUNCATE=0;
35583  GNULIB_GETCWD=0;
35584  GNULIB_GETLOGIN_R=0;
35585  GNULIB_LCHOWN=0;
35586  GNULIB_LSEEK=0;
35587  GNULIB_READLINK=0;
35588  GNULIB_SLEEP=0;
35589    HAVE_DUP2=1;
35590  HAVE_FTRUNCATE=1;
35591  HAVE_READLINK=1;
35592  HAVE_SLEEP=1;
35593  HAVE_DECL_GETLOGIN_R=1;
35594  REPLACE_CHOWN=0;
35595  REPLACE_FCHDIR=0;
35596  REPLACE_GETCWD=0;
35597  REPLACE_LCHOWN=0;
35598  REPLACE_LSEEK=0;
35599
35600
35601                              { $as_echo "$as_me:$LINENO: checking for shared library path variable" >&5
35602$as_echo_n "checking for shared library path variable... " >&6; }
35603if test "${acl_cv_libpath+set}" = set; then
35604  $as_echo_n "(cached) " >&6
35605else
35606
35607    LD="$LD" \
35608    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.libpath" "$host" > conftest.sh
35609    . ./conftest.sh
35610    rm -f ./conftest.sh
35611    acl_cv_libpath=${acl_cv_shlibpath_var:-none}
35612
35613fi
35614{ $as_echo "$as_me:$LINENO: result: $acl_cv_libpath" >&5
35615$as_echo "$acl_cv_libpath" >&6; }
35616  shlibpath_var="$acl_cv_shlibpath_var"
35617
35618
35619  { $as_echo "$as_me:$LINENO: checking whether to activate relocatable installation" >&5
35620$as_echo_n "checking whether to activate relocatable installation... " >&6; }
35621  # Check whether --enable-relocatable was given.
35622if test "${enable_relocatable+set}" = set; then
35623  enableval=$enable_relocatable; if test "$enableval" != no; then
35624       RELOCATABLE=yes
35625     else
35626       RELOCATABLE=no
35627     fi
35628
35629else
35630  RELOCATABLE=no
35631fi
35632
35633
35634  { $as_echo "$as_me:$LINENO: result: $RELOCATABLE" >&5
35635$as_echo "$RELOCATABLE" >&6; }
35636
35637
35638
35639    if test "X$prefix" = "XNONE"; then
35640    reloc_final_prefix="$ac_default_prefix"
35641  else
35642    reloc_final_prefix="$prefix"
35643  fi
35644
35645cat >>confdefs.h <<_ACEOF
35646#define INSTALLPREFIX "${reloc_final_prefix}"
35647_ACEOF
35648
35649  if test $RELOCATABLE = yes; then
35650
35651cat >>confdefs.h <<\_ACEOF
35652#define ENABLE_RELOCATABLE 1
35653_ACEOF
35654
35655  fi
35656
35657
35658
35659
35660
35661
35662  is_noop=no
35663  use_elf_origin_trick=no
35664  if test $RELOCATABLE = yes; then
35665    # --enable-relocatable implies --disable-rpath
35666    enable_rpath=no
35667
35668for ac_header in mach-o/dyld.h
35669do
35670as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35672  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35673$as_echo_n "checking for $ac_header... " >&6; }
35674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35675  $as_echo_n "(cached) " >&6
35676fi
35677ac_res=`eval 'as_val=${'$as_ac_Header'}
35678		 $as_echo "$as_val"'`
35679	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35680$as_echo "$ac_res" >&6; }
35681else
35682  # Is the header compilable?
35683{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35684$as_echo_n "checking $ac_header usability... " >&6; }
35685cat >conftest.$ac_ext <<_ACEOF
35686/* confdefs.h.  */
35687_ACEOF
35688cat confdefs.h >>conftest.$ac_ext
35689cat >>conftest.$ac_ext <<_ACEOF
35690/* end confdefs.h.  */
35691$ac_includes_default
35692#include <$ac_header>
35693_ACEOF
35694rm -f conftest.$ac_objext
35695if { (ac_try="$ac_compile"
35696case "(($ac_try" in
35697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35698  *) ac_try_echo=$ac_try;;
35699esac
35700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35701$as_echo "$ac_try_echo") >&5
35702  (eval "$ac_compile") 2>conftest.er1
35703  ac_status=$?
35704  grep -v '^ *+' conftest.er1 >conftest.err
35705  rm -f conftest.er1
35706  cat conftest.err >&5
35707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35708  (exit $ac_status); } && {
35709	 test -z "$ac_c_werror_flag" ||
35710	 test ! -s conftest.err
35711       } && test -s conftest.$ac_objext; then
35712  ac_header_compiler=yes
35713else
35714  $as_echo "$as_me: failed program was:" >&5
35715sed 's/^/| /' conftest.$ac_ext >&5
35716
35717	ac_header_compiler=no
35718fi
35719
35720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35721{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35722$as_echo "$ac_header_compiler" >&6; }
35723
35724# Is the header present?
35725{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35726$as_echo_n "checking $ac_header presence... " >&6; }
35727cat >conftest.$ac_ext <<_ACEOF
35728/* confdefs.h.  */
35729_ACEOF
35730cat confdefs.h >>conftest.$ac_ext
35731cat >>conftest.$ac_ext <<_ACEOF
35732/* end confdefs.h.  */
35733#include <$ac_header>
35734_ACEOF
35735if { (ac_try="$ac_cpp conftest.$ac_ext"
35736case "(($ac_try" in
35737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35738  *) ac_try_echo=$ac_try;;
35739esac
35740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35741$as_echo "$ac_try_echo") >&5
35742  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35743  ac_status=$?
35744  grep -v '^ *+' conftest.er1 >conftest.err
35745  rm -f conftest.er1
35746  cat conftest.err >&5
35747  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35748  (exit $ac_status); } >/dev/null && {
35749	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35750	 test ! -s conftest.err
35751       }; then
35752  ac_header_preproc=yes
35753else
35754  $as_echo "$as_me: failed program was:" >&5
35755sed 's/^/| /' conftest.$ac_ext >&5
35756
35757  ac_header_preproc=no
35758fi
35759
35760rm -f conftest.err conftest.$ac_ext
35761{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35762$as_echo "$ac_header_preproc" >&6; }
35763
35764# So?  What about this header?
35765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35766  yes:no: )
35767    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35768$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35769    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35770$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35771    ac_header_preproc=yes
35772    ;;
35773  no:yes:* )
35774    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35775$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35776    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35777$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35778    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35779$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35780    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35781$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35782    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35783$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35784    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35785$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35786
35787    ;;
35788esac
35789{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35790$as_echo_n "checking for $ac_header... " >&6; }
35791if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35792  $as_echo_n "(cached) " >&6
35793else
35794  eval "$as_ac_Header=\$ac_header_preproc"
35795fi
35796ac_res=`eval 'as_val=${'$as_ac_Header'}
35797		 $as_echo "$as_val"'`
35798	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35799$as_echo "$ac_res" >&6; }
35800
35801fi
35802as_val=`eval 'as_val=${'$as_ac_Header'}
35803		 $as_echo "$as_val"'`
35804   if test "x$as_val" = x""yes; then
35805  cat >>confdefs.h <<_ACEOF
35806#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35807_ACEOF
35808
35809fi
35810
35811done
35812
35813
35814for ac_func in _NSGetExecutablePath
35815do
35816as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35817{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35818$as_echo_n "checking for $ac_func... " >&6; }
35819if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35820  $as_echo_n "(cached) " >&6
35821else
35822  cat >conftest.$ac_ext <<_ACEOF
35823/* confdefs.h.  */
35824_ACEOF
35825cat confdefs.h >>conftest.$ac_ext
35826cat >>conftest.$ac_ext <<_ACEOF
35827/* end confdefs.h.  */
35828/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35829   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35830#define $ac_func innocuous_$ac_func
35831
35832/* System header to define __stub macros and hopefully few prototypes,
35833    which can conflict with char $ac_func (); below.
35834    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35835    <limits.h> exists even on freestanding compilers.  */
35836
35837#ifdef __STDC__
35838# include <limits.h>
35839#else
35840# include <assert.h>
35841#endif
35842
35843#undef $ac_func
35844
35845/* Override any GCC internal prototype to avoid an error.
35846   Use char because int might match the return type of a GCC
35847   builtin and then its argument prototype would still apply.  */
35848#ifdef __cplusplus
35849extern "C"
35850#endif
35851char $ac_func ();
35852/* The GNU C library defines this for functions which it implements
35853    to always fail with ENOSYS.  Some functions are actually named
35854    something starting with __ and the normal name is an alias.  */
35855#if defined __stub_$ac_func || defined __stub___$ac_func
35856choke me
35857#endif
35858
35859int
35860main ()
35861{
35862return $ac_func ();
35863  ;
35864  return 0;
35865}
35866_ACEOF
35867rm -f conftest.$ac_objext conftest$ac_exeext
35868if { (ac_try="$ac_link"
35869case "(($ac_try" in
35870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871  *) ac_try_echo=$ac_try;;
35872esac
35873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35874$as_echo "$ac_try_echo") >&5
35875  (eval "$ac_link") 2>conftest.er1
35876  ac_status=$?
35877  grep -v '^ *+' conftest.er1 >conftest.err
35878  rm -f conftest.er1
35879  cat conftest.err >&5
35880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35881  (exit $ac_status); } && {
35882	 test -z "$ac_c_werror_flag" ||
35883	 test ! -s conftest.err
35884       } && test -s conftest$ac_exeext && {
35885	 test "$cross_compiling" = yes ||
35886	 $as_test_x conftest$ac_exeext
35887       }; then
35888  eval "$as_ac_var=yes"
35889else
35890  $as_echo "$as_me: failed program was:" >&5
35891sed 's/^/| /' conftest.$ac_ext >&5
35892
35893	eval "$as_ac_var=no"
35894fi
35895
35896rm -rf conftest.dSYM
35897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35898      conftest$ac_exeext conftest.$ac_ext
35899fi
35900ac_res=`eval 'as_val=${'$as_ac_var'}
35901		 $as_echo "$as_val"'`
35902	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35903$as_echo "$ac_res" >&6; }
35904as_val=`eval 'as_val=${'$as_ac_var'}
35905		 $as_echo "$as_val"'`
35906   if test "x$as_val" = x""yes; then
35907  cat >>confdefs.h <<_ACEOF
35908#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35909_ACEOF
35910
35911fi
35912done
35913
35914    case "$host_os" in
35915      mingw*) is_noop=yes ;;
35916      linux*) use_elf_origin_trick=yes ;;
35917    esac
35918    if test $is_noop = yes; then
35919      RELOCATABLE_LDFLAGS=:
35920
35921    else
35922      if test $use_elf_origin_trick = yes; then
35923                case "$ac_aux_dir" in
35924          /*) reloc_ldflags="$ac_aux_dir/reloc-ldflags" ;;
35925          *) reloc_ldflags="\$(top_builddir)/$ac_aux_dir/reloc-ldflags" ;;
35926        esac
35927        RELOCATABLE_LDFLAGS="\"$reloc_ldflags\" \"\$(host)\" \"\$(RELOCATABLE_LIBRARY_PATH)\""
35928
35929      else
35930                                        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\""
35931
35932        case "$ac_aux_dir" in
35933          /*) INSTALL_PROGRAM="$ac_aux_dir/install-reloc" ;;
35934          *) INSTALL_PROGRAM="\$(top_builddir)/$ac_aux_dir/install-reloc" ;;
35935        esac
35936      fi
35937    fi
35938  fi
35939   if test $is_noop = yes || test $use_elf_origin_trick = yes; then
35940  RELOCATABLE_VIA_LD_TRUE=
35941  RELOCATABLE_VIA_LD_FALSE='#'
35942else
35943  RELOCATABLE_VIA_LD_TRUE='#'
35944  RELOCATABLE_VIA_LD_FALSE=
35945fi
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959
35960  { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
35961$as_echo_n "checking for ssize_t... " >&6; }
35962if test "${gt_cv_ssize_t+set}" = set; then
35963  $as_echo_n "(cached) " >&6
35964else
35965  cat >conftest.$ac_ext <<_ACEOF
35966/* confdefs.h.  */
35967_ACEOF
35968cat confdefs.h >>conftest.$ac_ext
35969cat >>conftest.$ac_ext <<_ACEOF
35970/* end confdefs.h.  */
35971#include <sys/types.h>
35972int
35973main ()
35974{
35975int x = sizeof (ssize_t *) + sizeof (ssize_t);
35976        return !x;
35977  ;
35978  return 0;
35979}
35980_ACEOF
35981rm -f conftest.$ac_objext
35982if { (ac_try="$ac_compile"
35983case "(($ac_try" in
35984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35985  *) ac_try_echo=$ac_try;;
35986esac
35987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35988$as_echo "$ac_try_echo") >&5
35989  (eval "$ac_compile") 2>conftest.er1
35990  ac_status=$?
35991  grep -v '^ *+' conftest.er1 >conftest.err
35992  rm -f conftest.er1
35993  cat conftest.err >&5
35994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35995  (exit $ac_status); } && {
35996	 test -z "$ac_c_werror_flag" ||
35997	 test ! -s conftest.err
35998       } && test -s conftest.$ac_objext; then
35999  gt_cv_ssize_t=yes
36000else
36001  $as_echo "$as_me: failed program was:" >&5
36002sed 's/^/| /' conftest.$ac_ext >&5
36003
36004	gt_cv_ssize_t=no
36005fi
36006
36007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36008fi
36009{ $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
36010$as_echo "$gt_cv_ssize_t" >&6; }
36011  if test $gt_cv_ssize_t = no; then
36012
36013cat >>confdefs.h <<\_ACEOF
36014#define ssize_t int
36015_ACEOF
36016
36017  fi
36018
36019
36020  GNULIB_SIGPROCMASK=0;
36021    HAVE_POSIX_SIGNALBLOCKING=1;
36022  HAVE_SIGSET_T=1;
36023
36024
36025
36026
36027
36028
36029
36030
36031      { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
36032$as_echo_n "checking whether snprintf is declared... " >&6; }
36033if test "${ac_cv_have_decl_snprintf+set}" = set; then
36034  $as_echo_n "(cached) " >&6
36035else
36036  cat >conftest.$ac_ext <<_ACEOF
36037/* confdefs.h.  */
36038_ACEOF
36039cat confdefs.h >>conftest.$ac_ext
36040cat >>conftest.$ac_ext <<_ACEOF
36041/* end confdefs.h.  */
36042$ac_includes_default
36043int
36044main ()
36045{
36046#ifndef snprintf
36047  (void) snprintf;
36048#endif
36049
36050  ;
36051  return 0;
36052}
36053_ACEOF
36054rm -f conftest.$ac_objext
36055if { (ac_try="$ac_compile"
36056case "(($ac_try" in
36057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36058  *) ac_try_echo=$ac_try;;
36059esac
36060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36061$as_echo "$ac_try_echo") >&5
36062  (eval "$ac_compile") 2>conftest.er1
36063  ac_status=$?
36064  grep -v '^ *+' conftest.er1 >conftest.err
36065  rm -f conftest.er1
36066  cat conftest.err >&5
36067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36068  (exit $ac_status); } && {
36069	 test -z "$ac_c_werror_flag" ||
36070	 test ! -s conftest.err
36071       } && test -s conftest.$ac_objext; then
36072  ac_cv_have_decl_snprintf=yes
36073else
36074  $as_echo "$as_me: failed program was:" >&5
36075sed 's/^/| /' conftest.$ac_ext >&5
36076
36077	ac_cv_have_decl_snprintf=no
36078fi
36079
36080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36081fi
36082{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
36083$as_echo "$ac_cv_have_decl_snprintf" >&6; }
36084if test "x$ac_cv_have_decl_snprintf" = x""yes; then
36085
36086cat >>confdefs.h <<_ACEOF
36087#define HAVE_DECL_SNPRINTF 1
36088_ACEOF
36089
36090
36091else
36092  cat >>confdefs.h <<_ACEOF
36093#define HAVE_DECL_SNPRINTF 0
36094_ACEOF
36095
36096
36097fi
36098
36099
36100
36101{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
36102$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
36103if test "${ac_cv_header_stdbool_h+set}" = set; then
36104  $as_echo_n "(cached) " >&6
36105else
36106  cat >conftest.$ac_ext <<_ACEOF
36107/* confdefs.h.  */
36108_ACEOF
36109cat confdefs.h >>conftest.$ac_ext
36110cat >>conftest.$ac_ext <<_ACEOF
36111/* end confdefs.h.  */
36112
36113	  #include <stdbool.h>
36114	  #ifndef bool
36115	   "error: bool is not defined"
36116	  #endif
36117	  #ifndef false
36118	   "error: false is not defined"
36119	  #endif
36120	  #if false
36121	   "error: false is not 0"
36122	  #endif
36123	  #ifndef true
36124	   "error: true is not defined"
36125	  #endif
36126	  #if true != 1
36127	   "error: true is not 1"
36128	  #endif
36129	  #ifndef __bool_true_false_are_defined
36130	   "error: __bool_true_false_are_defined is not defined"
36131	  #endif
36132
36133	  struct s { _Bool s: 1; _Bool t; } s;
36134
36135	  char a[true == 1 ? 1 : -1];
36136	  char b[false == 0 ? 1 : -1];
36137	  char c[__bool_true_false_are_defined == 1 ? 1 : -1];
36138	  char d[(bool) 0.5 == true ? 1 : -1];
36139	  bool e = &s;
36140	  char f[(_Bool) 0.0 == false ? 1 : -1];
36141	  char g[true];
36142	  char h[sizeof (_Bool)];
36143	  char i[sizeof s.t];
36144	  enum { j = false, k = true, l = false * true, m = true * 256 };
36145	  _Bool n[m];
36146	  char o[sizeof n == m * sizeof n[0] ? 1 : -1];
36147	  char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
36148	  #if defined __xlc__ || defined __GNUC__
36149	   /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
36150	      reported by James Lemley on 2005-10-05; see
36151	      http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
36152	      This test is not quite right, since xlc is allowed to
36153	      reject this program, as the initializer for xlcbug is
36154	      not one of the forms that C requires support for.
36155	      However, doing the test right would require a run-time
36156	      test, and that would make cross-compilation harder.
36157	      Let us hope that IBM fixes the xlc bug, and also adds
36158	      support for this kind of constant expression.  In the
36159	      meantime, this test will reject xlc, which is OK, since
36160	      our stdbool.h substitute should suffice.  We also test
36161	      this with GCC, where it should work, to detect more
36162	      quickly whether someone messes up the test in the
36163	      future.  */
36164	   char digs[] = "0123456789";
36165	   int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
36166	  #endif
36167	  /* Catch a bug in an HP-UX C compiler.  See
36168	     http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
36169	     http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
36170	   */
36171	  _Bool q = true;
36172	  _Bool *pq = &q;
36173
36174int
36175main ()
36176{
36177
36178	  *pq |= q;
36179	  *pq |= ! q;
36180	  /* Refer to every declared value, to avoid compiler optimizations.  */
36181	  return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
36182		  + !m + !n + !o + !p + !q + !pq);
36183
36184  ;
36185  return 0;
36186}
36187_ACEOF
36188rm -f conftest.$ac_objext
36189if { (ac_try="$ac_compile"
36190case "(($ac_try" in
36191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36192  *) ac_try_echo=$ac_try;;
36193esac
36194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36195$as_echo "$ac_try_echo") >&5
36196  (eval "$ac_compile") 2>conftest.er1
36197  ac_status=$?
36198  grep -v '^ *+' conftest.er1 >conftest.err
36199  rm -f conftest.er1
36200  cat conftest.err >&5
36201  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202  (exit $ac_status); } && {
36203	 test -z "$ac_c_werror_flag" ||
36204	 test ! -s conftest.err
36205       } && test -s conftest.$ac_objext; then
36206  ac_cv_header_stdbool_h=yes
36207else
36208  $as_echo "$as_me: failed program was:" >&5
36209sed 's/^/| /' conftest.$ac_ext >&5
36210
36211	ac_cv_header_stdbool_h=no
36212fi
36213
36214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36215fi
36216{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
36217$as_echo "$ac_cv_header_stdbool_h" >&6; }
36218   { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
36219$as_echo_n "checking for _Bool... " >&6; }
36220if test "${ac_cv_type__Bool+set}" = set; then
36221  $as_echo_n "(cached) " >&6
36222else
36223  ac_cv_type__Bool=no
36224cat >conftest.$ac_ext <<_ACEOF
36225/* confdefs.h.  */
36226_ACEOF
36227cat confdefs.h >>conftest.$ac_ext
36228cat >>conftest.$ac_ext <<_ACEOF
36229/* end confdefs.h.  */
36230$ac_includes_default
36231int
36232main ()
36233{
36234if (sizeof (_Bool))
36235       return 0;
36236  ;
36237  return 0;
36238}
36239_ACEOF
36240rm -f conftest.$ac_objext
36241if { (ac_try="$ac_compile"
36242case "(($ac_try" in
36243  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36244  *) ac_try_echo=$ac_try;;
36245esac
36246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36247$as_echo "$ac_try_echo") >&5
36248  (eval "$ac_compile") 2>conftest.er1
36249  ac_status=$?
36250  grep -v '^ *+' conftest.er1 >conftest.err
36251  rm -f conftest.er1
36252  cat conftest.err >&5
36253  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254  (exit $ac_status); } && {
36255	 test -z "$ac_c_werror_flag" ||
36256	 test ! -s conftest.err
36257       } && test -s conftest.$ac_objext; then
36258  cat >conftest.$ac_ext <<_ACEOF
36259/* confdefs.h.  */
36260_ACEOF
36261cat confdefs.h >>conftest.$ac_ext
36262cat >>conftest.$ac_ext <<_ACEOF
36263/* end confdefs.h.  */
36264$ac_includes_default
36265int
36266main ()
36267{
36268if (sizeof ((_Bool)))
36269	  return 0;
36270  ;
36271  return 0;
36272}
36273_ACEOF
36274rm -f conftest.$ac_objext
36275if { (ac_try="$ac_compile"
36276case "(($ac_try" in
36277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36278  *) ac_try_echo=$ac_try;;
36279esac
36280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36281$as_echo "$ac_try_echo") >&5
36282  (eval "$ac_compile") 2>conftest.er1
36283  ac_status=$?
36284  grep -v '^ *+' conftest.er1 >conftest.err
36285  rm -f conftest.er1
36286  cat conftest.err >&5
36287  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288  (exit $ac_status); } && {
36289	 test -z "$ac_c_werror_flag" ||
36290	 test ! -s conftest.err
36291       } && test -s conftest.$ac_objext; then
36292  :
36293else
36294  $as_echo "$as_me: failed program was:" >&5
36295sed 's/^/| /' conftest.$ac_ext >&5
36296
36297	ac_cv_type__Bool=yes
36298fi
36299
36300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36301else
36302  $as_echo "$as_me: failed program was:" >&5
36303sed 's/^/| /' conftest.$ac_ext >&5
36304
36305
36306fi
36307
36308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36309fi
36310{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
36311$as_echo "$ac_cv_type__Bool" >&6; }
36312if test "x$ac_cv_type__Bool" = x""yes; then
36313
36314cat >>confdefs.h <<_ACEOF
36315#define HAVE__BOOL 1
36316_ACEOF
36317
36318
36319fi
36320
36321   if test $ac_cv_header_stdbool_h = yes; then
36322
36323cat >>confdefs.h <<\_ACEOF
36324#define HAVE_STDBOOL_H 1
36325_ACEOF
36326
36327   fi
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337
36338
36339
36340
36341      { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
36342$as_echo_n "checking whether strdup is declared... " >&6; }
36343if test "${ac_cv_have_decl_strdup+set}" = set; then
36344  $as_echo_n "(cached) " >&6
36345else
36346  cat >conftest.$ac_ext <<_ACEOF
36347/* confdefs.h.  */
36348_ACEOF
36349cat confdefs.h >>conftest.$ac_ext
36350cat >>conftest.$ac_ext <<_ACEOF
36351/* end confdefs.h.  */
36352$ac_includes_default
36353int
36354main ()
36355{
36356#ifndef strdup
36357  (void) strdup;
36358#endif
36359
36360  ;
36361  return 0;
36362}
36363_ACEOF
36364rm -f conftest.$ac_objext
36365if { (ac_try="$ac_compile"
36366case "(($ac_try" in
36367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36368  *) ac_try_echo=$ac_try;;
36369esac
36370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36371$as_echo "$ac_try_echo") >&5
36372  (eval "$ac_compile") 2>conftest.er1
36373  ac_status=$?
36374  grep -v '^ *+' conftest.er1 >conftest.err
36375  rm -f conftest.er1
36376  cat conftest.err >&5
36377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378  (exit $ac_status); } && {
36379	 test -z "$ac_c_werror_flag" ||
36380	 test ! -s conftest.err
36381       } && test -s conftest.$ac_objext; then
36382  ac_cv_have_decl_strdup=yes
36383else
36384  $as_echo "$as_me: failed program was:" >&5
36385sed 's/^/| /' conftest.$ac_ext >&5
36386
36387	ac_cv_have_decl_strdup=no
36388fi
36389
36390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36391fi
36392{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
36393$as_echo "$ac_cv_have_decl_strdup" >&6; }
36394if test "x$ac_cv_have_decl_strdup" = x""yes; then
36395
36396cat >>confdefs.h <<_ACEOF
36397#define HAVE_DECL_STRDUP 1
36398_ACEOF
36399
36400
36401else
36402  cat >>confdefs.h <<_ACEOF
36403#define HAVE_DECL_STRDUP 0
36404_ACEOF
36405
36406
36407fi
36408
36409
36410
36411
36412
36413
36414
36415
36416
36417  :
36418
36419
36420
36421
36422
36423
36424
36425     if test $gl_cv_have_include_next = yes; then
36426       gl_cv_next_string_h='<'string.h'>'
36427     else
36428       { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
36429$as_echo_n "checking absolute name of <string.h>... " >&6; }
36430if test "${gl_cv_next_string_h+set}" = set; then
36431  $as_echo_n "(cached) " >&6
36432else
36433
36434	  if test $ac_cv_header_string_h = yes; then
36435	    cat >conftest.$ac_ext <<_ACEOF
36436/* confdefs.h.  */
36437_ACEOF
36438cat confdefs.h >>conftest.$ac_ext
36439cat >>conftest.$ac_ext <<_ACEOF
36440/* end confdefs.h.  */
36441#include <string.h>
36442
36443_ACEOF
36444	    	    	    	    gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36445	       sed -n '\#/string.h#{
36446		 s#.*"\(.*/string.h\)".*#\1#
36447		 s#^/[^/]#//&#
36448		 p
36449		 q
36450	       }'`'"'
36451	  else
36452	    gl_cv_next_string_h='<'string.h'>'
36453	  fi
36454
36455fi
36456{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
36457$as_echo "$gl_cv_next_string_h" >&6; }
36458     fi
36459     NEXT_STRING_H=$gl_cv_next_string_h
36460
36461
36462
36463
36464
36465      { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
36466$as_echo_n "checking whether strnlen is declared... " >&6; }
36467if test "${ac_cv_have_decl_strnlen+set}" = set; then
36468  $as_echo_n "(cached) " >&6
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$ac_includes_default
36477int
36478main ()
36479{
36480#ifndef strnlen
36481  (void) strnlen;
36482#endif
36483
36484  ;
36485  return 0;
36486}
36487_ACEOF
36488rm -f conftest.$ac_objext
36489if { (ac_try="$ac_compile"
36490case "(($ac_try" in
36491  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36492  *) ac_try_echo=$ac_try;;
36493esac
36494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36495$as_echo "$ac_try_echo") >&5
36496  (eval "$ac_compile") 2>conftest.er1
36497  ac_status=$?
36498  grep -v '^ *+' conftest.er1 >conftest.err
36499  rm -f conftest.er1
36500  cat conftest.err >&5
36501  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36502  (exit $ac_status); } && {
36503	 test -z "$ac_c_werror_flag" ||
36504	 test ! -s conftest.err
36505       } && test -s conftest.$ac_objext; then
36506  ac_cv_have_decl_strnlen=yes
36507else
36508  $as_echo "$as_me: failed program was:" >&5
36509sed 's/^/| /' conftest.$ac_ext >&5
36510
36511	ac_cv_have_decl_strnlen=no
36512fi
36513
36514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36515fi
36516{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
36517$as_echo "$ac_cv_have_decl_strnlen" >&6; }
36518if test "x$ac_cv_have_decl_strnlen" = x""yes; then
36519
36520cat >>confdefs.h <<_ACEOF
36521#define HAVE_DECL_STRNLEN 1
36522_ACEOF
36523
36524
36525else
36526  cat >>confdefs.h <<_ACEOF
36527#define HAVE_DECL_STRNLEN 0
36528_ACEOF
36529
36530
36531fi
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
36542$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
36543if test "${ac_cv_header_stat_broken+set}" = set; then
36544  $as_echo_n "(cached) " >&6
36545else
36546  cat >conftest.$ac_ext <<_ACEOF
36547/* confdefs.h.  */
36548_ACEOF
36549cat confdefs.h >>conftest.$ac_ext
36550cat >>conftest.$ac_ext <<_ACEOF
36551/* end confdefs.h.  */
36552#include <sys/types.h>
36553#include <sys/stat.h>
36554
36555#if defined S_ISBLK && defined S_IFDIR
36556extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
36557#endif
36558
36559#if defined S_ISBLK && defined S_IFCHR
36560extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
36561#endif
36562
36563#if defined S_ISLNK && defined S_IFREG
36564extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
36565#endif
36566
36567#if defined S_ISSOCK && defined S_IFREG
36568extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
36569#endif
36570
36571_ACEOF
36572rm -f conftest.$ac_objext
36573if { (ac_try="$ac_compile"
36574case "(($ac_try" in
36575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36576  *) ac_try_echo=$ac_try;;
36577esac
36578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36579$as_echo "$ac_try_echo") >&5
36580  (eval "$ac_compile") 2>conftest.er1
36581  ac_status=$?
36582  grep -v '^ *+' conftest.er1 >conftest.err
36583  rm -f conftest.er1
36584  cat conftest.err >&5
36585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36586  (exit $ac_status); } && {
36587	 test -z "$ac_c_werror_flag" ||
36588	 test ! -s conftest.err
36589       } && test -s conftest.$ac_objext; then
36590  ac_cv_header_stat_broken=no
36591else
36592  $as_echo "$as_me: failed program was:" >&5
36593sed 's/^/| /' conftest.$ac_ext >&5
36594
36595	ac_cv_header_stat_broken=yes
36596fi
36597
36598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36599fi
36600{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
36601$as_echo "$ac_cv_header_stat_broken" >&6; }
36602if test $ac_cv_header_stat_broken = yes; then
36603
36604cat >>confdefs.h <<\_ACEOF
36605#define STAT_MACROS_BROKEN 1
36606_ACEOF
36607
36608fi
36609
36610
36611
36612
36613
36614
36615
36616# Check whether --enable-largefile was given.
36617if test "${enable_largefile+set}" = set; then
36618  enableval=$enable_largefile;
36619fi
36620
36621if test "$enable_largefile" != no; then
36622
36623  { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
36624$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
36625if test "${ac_cv_sys_largefile_CC+set}" = set; then
36626  $as_echo_n "(cached) " >&6
36627else
36628  ac_cv_sys_largefile_CC=no
36629     if test "$GCC" != yes; then
36630       ac_save_CC=$CC
36631       while :; do
36632	 # IRIX 6.2 and later do not support large files by default,
36633	 # so use the C compiler's -n32 option if that helps.
36634	 cat >conftest.$ac_ext <<_ACEOF
36635/* confdefs.h.  */
36636_ACEOF
36637cat confdefs.h >>conftest.$ac_ext
36638cat >>conftest.$ac_ext <<_ACEOF
36639/* end confdefs.h.  */
36640#include <sys/types.h>
36641 /* Check that off_t can represent 2**63 - 1 correctly.
36642    We can't simply define LARGE_OFF_T to be 9223372036854775807,
36643    since some C++ compilers masquerading as C compilers
36644    incorrectly reject 9223372036854775807.  */
36645#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
36646  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
36647		       && LARGE_OFF_T % 2147483647 == 1)
36648		      ? 1 : -1];
36649int
36650main ()
36651{
36652
36653  ;
36654  return 0;
36655}
36656_ACEOF
36657	 rm -f conftest.$ac_objext
36658if { (ac_try="$ac_compile"
36659case "(($ac_try" in
36660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36661  *) ac_try_echo=$ac_try;;
36662esac
36663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36664$as_echo "$ac_try_echo") >&5
36665  (eval "$ac_compile") 2>conftest.er1
36666  ac_status=$?
36667  grep -v '^ *+' conftest.er1 >conftest.err
36668  rm -f conftest.er1
36669  cat conftest.err >&5
36670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36671  (exit $ac_status); } && {
36672	 test -z "$ac_c_werror_flag" ||
36673	 test ! -s conftest.err
36674       } && test -s conftest.$ac_objext; then
36675  break
36676else
36677  $as_echo "$as_me: failed program was:" >&5
36678sed 's/^/| /' conftest.$ac_ext >&5
36679
36680
36681fi
36682
36683rm -f core conftest.err conftest.$ac_objext
36684	 CC="$CC -n32"
36685	 rm -f conftest.$ac_objext
36686if { (ac_try="$ac_compile"
36687case "(($ac_try" in
36688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36689  *) ac_try_echo=$ac_try;;
36690esac
36691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36692$as_echo "$ac_try_echo") >&5
36693  (eval "$ac_compile") 2>conftest.er1
36694  ac_status=$?
36695  grep -v '^ *+' conftest.er1 >conftest.err
36696  rm -f conftest.er1
36697  cat conftest.err >&5
36698  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36699  (exit $ac_status); } && {
36700	 test -z "$ac_c_werror_flag" ||
36701	 test ! -s conftest.err
36702       } && test -s conftest.$ac_objext; then
36703  ac_cv_sys_largefile_CC=' -n32'; break
36704else
36705  $as_echo "$as_me: failed program was:" >&5
36706sed 's/^/| /' conftest.$ac_ext >&5
36707
36708
36709fi
36710
36711rm -f core conftest.err conftest.$ac_objext
36712	 break
36713       done
36714       CC=$ac_save_CC
36715       rm -f conftest.$ac_ext
36716    fi
36717fi
36718{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
36719$as_echo "$ac_cv_sys_largefile_CC" >&6; }
36720  if test "$ac_cv_sys_largefile_CC" != no; then
36721    CC=$CC$ac_cv_sys_largefile_CC
36722  fi
36723
36724  { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
36725$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
36726if test "${ac_cv_sys_file_offset_bits+set}" = set; then
36727  $as_echo_n "(cached) " >&6
36728else
36729  while :; do
36730  cat >conftest.$ac_ext <<_ACEOF
36731/* confdefs.h.  */
36732_ACEOF
36733cat confdefs.h >>conftest.$ac_ext
36734cat >>conftest.$ac_ext <<_ACEOF
36735/* end confdefs.h.  */
36736#include <sys/types.h>
36737 /* Check that off_t can represent 2**63 - 1 correctly.
36738    We can't simply define LARGE_OFF_T to be 9223372036854775807,
36739    since some C++ compilers masquerading as C compilers
36740    incorrectly reject 9223372036854775807.  */
36741#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
36742  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
36743		       && LARGE_OFF_T % 2147483647 == 1)
36744		      ? 1 : -1];
36745int
36746main ()
36747{
36748
36749  ;
36750  return 0;
36751}
36752_ACEOF
36753rm -f conftest.$ac_objext
36754if { (ac_try="$ac_compile"
36755case "(($ac_try" in
36756  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36757  *) ac_try_echo=$ac_try;;
36758esac
36759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36760$as_echo "$ac_try_echo") >&5
36761  (eval "$ac_compile") 2>conftest.er1
36762  ac_status=$?
36763  grep -v '^ *+' conftest.er1 >conftest.err
36764  rm -f conftest.er1
36765  cat conftest.err >&5
36766  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36767  (exit $ac_status); } && {
36768	 test -z "$ac_c_werror_flag" ||
36769	 test ! -s conftest.err
36770       } && test -s conftest.$ac_objext; then
36771  ac_cv_sys_file_offset_bits=no; break
36772else
36773  $as_echo "$as_me: failed program was:" >&5
36774sed 's/^/| /' conftest.$ac_ext >&5
36775
36776
36777fi
36778
36779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36780  cat >conftest.$ac_ext <<_ACEOF
36781/* confdefs.h.  */
36782_ACEOF
36783cat confdefs.h >>conftest.$ac_ext
36784cat >>conftest.$ac_ext <<_ACEOF
36785/* end confdefs.h.  */
36786#define _FILE_OFFSET_BITS 64
36787#include <sys/types.h>
36788 /* Check that off_t can represent 2**63 - 1 correctly.
36789    We can't simply define LARGE_OFF_T to be 9223372036854775807,
36790    since some C++ compilers masquerading as C compilers
36791    incorrectly reject 9223372036854775807.  */
36792#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
36793  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
36794		       && LARGE_OFF_T % 2147483647 == 1)
36795		      ? 1 : -1];
36796int
36797main ()
36798{
36799
36800  ;
36801  return 0;
36802}
36803_ACEOF
36804rm -f conftest.$ac_objext
36805if { (ac_try="$ac_compile"
36806case "(($ac_try" in
36807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36808  *) ac_try_echo=$ac_try;;
36809esac
36810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36811$as_echo "$ac_try_echo") >&5
36812  (eval "$ac_compile") 2>conftest.er1
36813  ac_status=$?
36814  grep -v '^ *+' conftest.er1 >conftest.err
36815  rm -f conftest.er1
36816  cat conftest.err >&5
36817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818  (exit $ac_status); } && {
36819	 test -z "$ac_c_werror_flag" ||
36820	 test ! -s conftest.err
36821       } && test -s conftest.$ac_objext; then
36822  ac_cv_sys_file_offset_bits=64; break
36823else
36824  $as_echo "$as_me: failed program was:" >&5
36825sed 's/^/| /' conftest.$ac_ext >&5
36826
36827
36828fi
36829
36830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36831  ac_cv_sys_file_offset_bits=unknown
36832  break
36833done
36834fi
36835{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
36836$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
36837case $ac_cv_sys_file_offset_bits in #(
36838  no | unknown) ;;
36839  *)
36840cat >>confdefs.h <<_ACEOF
36841#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
36842_ACEOF
36843;;
36844esac
36845rm -rf conftest*
36846  if test $ac_cv_sys_file_offset_bits = unknown; then
36847    { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
36848$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
36849if test "${ac_cv_sys_large_files+set}" = set; then
36850  $as_echo_n "(cached) " >&6
36851else
36852  while :; do
36853  cat >conftest.$ac_ext <<_ACEOF
36854/* confdefs.h.  */
36855_ACEOF
36856cat confdefs.h >>conftest.$ac_ext
36857cat >>conftest.$ac_ext <<_ACEOF
36858/* end confdefs.h.  */
36859#include <sys/types.h>
36860 /* Check that off_t can represent 2**63 - 1 correctly.
36861    We can't simply define LARGE_OFF_T to be 9223372036854775807,
36862    since some C++ compilers masquerading as C compilers
36863    incorrectly reject 9223372036854775807.  */
36864#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
36865  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
36866		       && LARGE_OFF_T % 2147483647 == 1)
36867		      ? 1 : -1];
36868int
36869main ()
36870{
36871
36872  ;
36873  return 0;
36874}
36875_ACEOF
36876rm -f conftest.$ac_objext
36877if { (ac_try="$ac_compile"
36878case "(($ac_try" in
36879  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36880  *) ac_try_echo=$ac_try;;
36881esac
36882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36883$as_echo "$ac_try_echo") >&5
36884  (eval "$ac_compile") 2>conftest.er1
36885  ac_status=$?
36886  grep -v '^ *+' conftest.er1 >conftest.err
36887  rm -f conftest.er1
36888  cat conftest.err >&5
36889  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36890  (exit $ac_status); } && {
36891	 test -z "$ac_c_werror_flag" ||
36892	 test ! -s conftest.err
36893       } && test -s conftest.$ac_objext; then
36894  ac_cv_sys_large_files=no; break
36895else
36896  $as_echo "$as_me: failed program was:" >&5
36897sed 's/^/| /' conftest.$ac_ext >&5
36898
36899
36900fi
36901
36902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36903  cat >conftest.$ac_ext <<_ACEOF
36904/* confdefs.h.  */
36905_ACEOF
36906cat confdefs.h >>conftest.$ac_ext
36907cat >>conftest.$ac_ext <<_ACEOF
36908/* end confdefs.h.  */
36909#define _LARGE_FILES 1
36910#include <sys/types.h>
36911 /* Check that off_t can represent 2**63 - 1 correctly.
36912    We can't simply define LARGE_OFF_T to be 9223372036854775807,
36913    since some C++ compilers masquerading as C compilers
36914    incorrectly reject 9223372036854775807.  */
36915#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
36916  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
36917		       && LARGE_OFF_T % 2147483647 == 1)
36918		      ? 1 : -1];
36919int
36920main ()
36921{
36922
36923  ;
36924  return 0;
36925}
36926_ACEOF
36927rm -f conftest.$ac_objext
36928if { (ac_try="$ac_compile"
36929case "(($ac_try" in
36930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36931  *) ac_try_echo=$ac_try;;
36932esac
36933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36934$as_echo "$ac_try_echo") >&5
36935  (eval "$ac_compile") 2>conftest.er1
36936  ac_status=$?
36937  grep -v '^ *+' conftest.er1 >conftest.err
36938  rm -f conftest.er1
36939  cat conftest.err >&5
36940  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36941  (exit $ac_status); } && {
36942	 test -z "$ac_c_werror_flag" ||
36943	 test ! -s conftest.err
36944       } && test -s conftest.$ac_objext; then
36945  ac_cv_sys_large_files=1; break
36946else
36947  $as_echo "$as_me: failed program was:" >&5
36948sed 's/^/| /' conftest.$ac_ext >&5
36949
36950
36951fi
36952
36953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36954  ac_cv_sys_large_files=unknown
36955  break
36956done
36957fi
36958{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
36959$as_echo "$ac_cv_sys_large_files" >&6; }
36960case $ac_cv_sys_large_files in #(
36961  no | unknown) ;;
36962  *)
36963cat >>confdefs.h <<_ACEOF
36964#define _LARGE_FILES $ac_cv_sys_large_files
36965_ACEOF
36966;;
36967esac
36968rm -rf conftest*
36969  fi
36970fi
36971
36972
36973
36974
36975
36976
36977
36978
36979
36980
36981    use_additional=yes
36982
36983  acl_save_prefix="$prefix"
36984  prefix="$acl_final_prefix"
36985  acl_save_exec_prefix="$exec_prefix"
36986  exec_prefix="$acl_final_exec_prefix"
36987
36988    eval additional_includedir=\"$includedir\"
36989    eval additional_libdir=\"$libdir\"
36990
36991  exec_prefix="$acl_save_exec_prefix"
36992  prefix="$acl_save_prefix"
36993
36994
36995# Check whether --with-libncurses-prefix was given.
36996if test "${with_libncurses_prefix+set}" = set; then
36997  withval=$with_libncurses_prefix;
36998    if test "X$withval" = "Xno"; then
36999      use_additional=no
37000    else
37001      if test "X$withval" = "X"; then
37002
37003  acl_save_prefix="$prefix"
37004  prefix="$acl_final_prefix"
37005  acl_save_exec_prefix="$exec_prefix"
37006  exec_prefix="$acl_final_exec_prefix"
37007
37008          eval additional_includedir=\"$includedir\"
37009          eval additional_libdir=\"$libdir\"
37010
37011  exec_prefix="$acl_save_exec_prefix"
37012  prefix="$acl_save_prefix"
37013
37014      else
37015        additional_includedir="$withval/include"
37016        additional_libdir="$withval/$acl_libdirstem"
37017      fi
37018    fi
37019
37020fi
37021
37022      LIBNCURSES=
37023  LTLIBNCURSES=
37024  INCNCURSES=
37025  LIBNCURSES_PREFIX=
37026  rpathdirs=
37027  ltrpathdirs=
37028  names_already_handled=
37029  names_next_round='ncurses '
37030  while test -n "$names_next_round"; do
37031    names_this_round="$names_next_round"
37032    names_next_round=
37033    for name in $names_this_round; do
37034      already_handled=
37035      for n in $names_already_handled; do
37036        if test "$n" = "$name"; then
37037          already_handled=yes
37038          break
37039        fi
37040      done
37041      if test -z "$already_handled"; then
37042        names_already_handled="$names_already_handled $name"
37043                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
37044        eval value=\"\$HAVE_LIB$uppername\"
37045        if test -n "$value"; then
37046          if test "$value" = yes; then
37047            eval value=\"\$LIB$uppername\"
37048            test -z "$value" || LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$value"
37049            eval value=\"\$LTLIB$uppername\"
37050            test -z "$value" || LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$value"
37051          else
37052                                    :
37053          fi
37054        else
37055                              found_dir=
37056          found_la=
37057          found_so=
37058          found_a=
37059          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
37060          if test -n "$acl_shlibext"; then
37061            shrext=".$acl_shlibext"             # typically: shrext=.so
37062          else
37063            shrext=
37064          fi
37065          if test $use_additional = yes; then
37066            dir="$additional_libdir"
37067                                    if test -n "$acl_shlibext"; then
37068              if test -f "$dir/$libname$shrext"; then
37069                found_dir="$dir"
37070                found_so="$dir/$libname$shrext"
37071              else
37072                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37073                  ver=`(cd "$dir" && \
37074                        for f in "$libname$shrext".*; do echo "$f"; done \
37075                        | sed -e "s,^$libname$shrext\\\\.,," \
37076                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37077                        | sed 1q ) 2>/dev/null`
37078                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37079                    found_dir="$dir"
37080                    found_so="$dir/$libname$shrext.$ver"
37081                  fi
37082                else
37083                  eval library_names=\"$acl_library_names_spec\"
37084                  for f in $library_names; do
37085                    if test -f "$dir/$f"; then
37086                      found_dir="$dir"
37087                      found_so="$dir/$f"
37088                      break
37089                    fi
37090                  done
37091                fi
37092              fi
37093            fi
37094                        if test "X$found_dir" = "X"; then
37095              if test -f "$dir/$libname.$acl_libext"; then
37096                found_dir="$dir"
37097                found_a="$dir/$libname.$acl_libext"
37098              fi
37099            fi
37100            if test "X$found_dir" != "X"; then
37101              if test -f "$dir/$libname.la"; then
37102                found_la="$dir/$libname.la"
37103              fi
37104            fi
37105          fi
37106          if test "X$found_dir" = "X"; then
37107            for x in $LDFLAGS $LTLIBNCURSES; do
37108
37109  acl_save_prefix="$prefix"
37110  prefix="$acl_final_prefix"
37111  acl_save_exec_prefix="$exec_prefix"
37112  exec_prefix="$acl_final_exec_prefix"
37113  eval x=\"$x\"
37114  exec_prefix="$acl_save_exec_prefix"
37115  prefix="$acl_save_prefix"
37116
37117              case "$x" in
37118                -L*)
37119                  dir=`echo "X$x" | sed -e 's/^X-L//'`
37120                                    if test -n "$acl_shlibext"; then
37121                    if test -f "$dir/$libname$shrext"; then
37122                      found_dir="$dir"
37123                      found_so="$dir/$libname$shrext"
37124                    else
37125                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37126                        ver=`(cd "$dir" && \
37127                              for f in "$libname$shrext".*; do echo "$f"; done \
37128                              | sed -e "s,^$libname$shrext\\\\.,," \
37129                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37130                              | sed 1q ) 2>/dev/null`
37131                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37132                          found_dir="$dir"
37133                          found_so="$dir/$libname$shrext.$ver"
37134                        fi
37135                      else
37136                        eval library_names=\"$acl_library_names_spec\"
37137                        for f in $library_names; do
37138                          if test -f "$dir/$f"; then
37139                            found_dir="$dir"
37140                            found_so="$dir/$f"
37141                            break
37142                          fi
37143                        done
37144                      fi
37145                    fi
37146                  fi
37147                                    if test "X$found_dir" = "X"; then
37148                    if test -f "$dir/$libname.$acl_libext"; then
37149                      found_dir="$dir"
37150                      found_a="$dir/$libname.$acl_libext"
37151                    fi
37152                  fi
37153                  if test "X$found_dir" != "X"; then
37154                    if test -f "$dir/$libname.la"; then
37155                      found_la="$dir/$libname.la"
37156                    fi
37157                  fi
37158                  ;;
37159              esac
37160              if test "X$found_dir" != "X"; then
37161                break
37162              fi
37163            done
37164          fi
37165          if test "X$found_dir" != "X"; then
37166                        LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$found_dir -l$name"
37167            if test "X$found_so" != "X"; then
37168                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
37169                                LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
37170              else
37171                                                                                haveit=
37172                for x in $ltrpathdirs; do
37173                  if test "X$x" = "X$found_dir"; then
37174                    haveit=yes
37175                    break
37176                  fi
37177                done
37178                if test -z "$haveit"; then
37179                  ltrpathdirs="$ltrpathdirs $found_dir"
37180                fi
37181                                if test "$acl_hardcode_direct" = yes; then
37182                                                      LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
37183                else
37184                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
37185                                                            LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
37186                                                            haveit=
37187                    for x in $rpathdirs; do
37188                      if test "X$x" = "X$found_dir"; then
37189                        haveit=yes
37190                        break
37191                      fi
37192                    done
37193                    if test -z "$haveit"; then
37194                      rpathdirs="$rpathdirs $found_dir"
37195                    fi
37196                  else
37197                                                                                haveit=
37198                    for x in $LDFLAGS $LIBNCURSES; do
37199
37200  acl_save_prefix="$prefix"
37201  prefix="$acl_final_prefix"
37202  acl_save_exec_prefix="$exec_prefix"
37203  exec_prefix="$acl_final_exec_prefix"
37204  eval x=\"$x\"
37205  exec_prefix="$acl_save_exec_prefix"
37206  prefix="$acl_save_prefix"
37207
37208                      if test "X$x" = "X-L$found_dir"; then
37209                        haveit=yes
37210                        break
37211                      fi
37212                    done
37213                    if test -z "$haveit"; then
37214                      LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir"
37215                    fi
37216                    if test "$acl_hardcode_minus_L" != no; then
37217                                                                                        LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_so"
37218                    else
37219                                                                                                                                                                                LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
37220                    fi
37221                  fi
37222                fi
37223              fi
37224            else
37225              if test "X$found_a" != "X"; then
37226                                LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$found_a"
37227              else
37228                                                LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$found_dir -l$name"
37229              fi
37230            fi
37231                        additional_includedir=
37232            case "$found_dir" in
37233              */$acl_libdirstem | */$acl_libdirstem/)
37234                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
37235                LIBNCURSES_PREFIX="$basedir"
37236                additional_includedir="$basedir/include"
37237                ;;
37238            esac
37239            if test "X$additional_includedir" != "X"; then
37240                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
37241                haveit=
37242                if test "X$additional_includedir" = "X/usr/local/include"; then
37243                  if test -n "$GCC"; then
37244                    case $host_os in
37245                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37246                    esac
37247                  fi
37248                fi
37249                if test -z "$haveit"; then
37250                  for x in $CPPFLAGS $INCNCURSES; do
37251
37252  acl_save_prefix="$prefix"
37253  prefix="$acl_final_prefix"
37254  acl_save_exec_prefix="$exec_prefix"
37255  exec_prefix="$acl_final_exec_prefix"
37256  eval x=\"$x\"
37257  exec_prefix="$acl_save_exec_prefix"
37258  prefix="$acl_save_prefix"
37259
37260                    if test "X$x" = "X-I$additional_includedir"; then
37261                      haveit=yes
37262                      break
37263                    fi
37264                  done
37265                  if test -z "$haveit"; then
37266                    if test -d "$additional_includedir"; then
37267                                            INCNCURSES="${INCNCURSES}${INCNCURSES:+ }-I$additional_includedir"
37268                    fi
37269                  fi
37270                fi
37271              fi
37272            fi
37273                        if test -n "$found_la"; then
37274                                                        save_libdir="$libdir"
37275              case "$found_la" in
37276                */* | *\\*) . "$found_la" ;;
37277                *) . "./$found_la" ;;
37278              esac
37279              libdir="$save_libdir"
37280                            for dep in $dependency_libs; do
37281                case "$dep" in
37282                  -L*)
37283                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
37284                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
37285                      haveit=
37286                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
37287                        if test -n "$GCC"; then
37288                          case $host_os in
37289                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37290                          esac
37291                        fi
37292                      fi
37293                      if test -z "$haveit"; then
37294                        haveit=
37295                        for x in $LDFLAGS $LIBNCURSES; do
37296
37297  acl_save_prefix="$prefix"
37298  prefix="$acl_final_prefix"
37299  acl_save_exec_prefix="$exec_prefix"
37300  exec_prefix="$acl_final_exec_prefix"
37301  eval x=\"$x\"
37302  exec_prefix="$acl_save_exec_prefix"
37303  prefix="$acl_save_prefix"
37304
37305                          if test "X$x" = "X-L$additional_libdir"; then
37306                            haveit=yes
37307                            break
37308                          fi
37309                        done
37310                        if test -z "$haveit"; then
37311                          if test -d "$additional_libdir"; then
37312                                                        LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-L$additional_libdir"
37313                          fi
37314                        fi
37315                        haveit=
37316                        for x in $LDFLAGS $LTLIBNCURSES; do
37317
37318  acl_save_prefix="$prefix"
37319  prefix="$acl_final_prefix"
37320  acl_save_exec_prefix="$exec_prefix"
37321  exec_prefix="$acl_final_exec_prefix"
37322  eval x=\"$x\"
37323  exec_prefix="$acl_save_exec_prefix"
37324  prefix="$acl_save_prefix"
37325
37326                          if test "X$x" = "X-L$additional_libdir"; then
37327                            haveit=yes
37328                            break
37329                          fi
37330                        done
37331                        if test -z "$haveit"; then
37332                          if test -d "$additional_libdir"; then
37333                                                        LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-L$additional_libdir"
37334                          fi
37335                        fi
37336                      fi
37337                    fi
37338                    ;;
37339                  -R*)
37340                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
37341                    if test "$enable_rpath" != no; then
37342                                                                  haveit=
37343                      for x in $rpathdirs; do
37344                        if test "X$x" = "X$dir"; then
37345                          haveit=yes
37346                          break
37347                        fi
37348                      done
37349                      if test -z "$haveit"; then
37350                        rpathdirs="$rpathdirs $dir"
37351                      fi
37352                                                                  haveit=
37353                      for x in $ltrpathdirs; do
37354                        if test "X$x" = "X$dir"; then
37355                          haveit=yes
37356                          break
37357                        fi
37358                      done
37359                      if test -z "$haveit"; then
37360                        ltrpathdirs="$ltrpathdirs $dir"
37361                      fi
37362                    fi
37363                    ;;
37364                  -l*)
37365                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37366                    ;;
37367                  *.la)
37368                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37369                    ;;
37370                  *)
37371                                        LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$dep"
37372                    LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }$dep"
37373                    ;;
37374                esac
37375              done
37376            fi
37377          else
37378                                                            LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }-l$name"
37379            LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-l$name"
37380          fi
37381        fi
37382      fi
37383    done
37384  done
37385  if test "X$rpathdirs" != "X"; then
37386    if test -n "$acl_hardcode_libdir_separator"; then
37387                        alldirs=
37388      for found_dir in $rpathdirs; do
37389        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
37390      done
37391            acl_save_libdir="$libdir"
37392      libdir="$alldirs"
37393      eval flag=\"$acl_hardcode_libdir_flag_spec\"
37394      libdir="$acl_save_libdir"
37395      LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
37396    else
37397            for found_dir in $rpathdirs; do
37398        acl_save_libdir="$libdir"
37399        libdir="$found_dir"
37400        eval flag=\"$acl_hardcode_libdir_flag_spec\"
37401        libdir="$acl_save_libdir"
37402        LIBNCURSES="${LIBNCURSES}${LIBNCURSES:+ }$flag"
37403      done
37404    fi
37405  fi
37406  if test "X$ltrpathdirs" != "X"; then
37407            for found_dir in $ltrpathdirs; do
37408      LTLIBNCURSES="${LTLIBNCURSES}${LTLIBNCURSES:+ }-R$found_dir"
37409    done
37410  fi
37411
37412
37413
37414
37415
37416
37417    use_additional=yes
37418
37419  acl_save_prefix="$prefix"
37420  prefix="$acl_final_prefix"
37421  acl_save_exec_prefix="$exec_prefix"
37422  exec_prefix="$acl_final_exec_prefix"
37423
37424    eval additional_includedir=\"$includedir\"
37425    eval additional_libdir=\"$libdir\"
37426
37427  exec_prefix="$acl_save_exec_prefix"
37428  prefix="$acl_save_prefix"
37429
37430
37431# Check whether --with-libtermcap-prefix was given.
37432if test "${with_libtermcap_prefix+set}" = set; then
37433  withval=$with_libtermcap_prefix;
37434    if test "X$withval" = "Xno"; then
37435      use_additional=no
37436    else
37437      if test "X$withval" = "X"; then
37438
37439  acl_save_prefix="$prefix"
37440  prefix="$acl_final_prefix"
37441  acl_save_exec_prefix="$exec_prefix"
37442  exec_prefix="$acl_final_exec_prefix"
37443
37444          eval additional_includedir=\"$includedir\"
37445          eval additional_libdir=\"$libdir\"
37446
37447  exec_prefix="$acl_save_exec_prefix"
37448  prefix="$acl_save_prefix"
37449
37450      else
37451        additional_includedir="$withval/include"
37452        additional_libdir="$withval/$acl_libdirstem"
37453      fi
37454    fi
37455
37456fi
37457
37458      LIBTERMCAP=
37459  LTLIBTERMCAP=
37460  INCTERMCAP=
37461  LIBTERMCAP_PREFIX=
37462  rpathdirs=
37463  ltrpathdirs=
37464  names_already_handled=
37465  names_next_round='termcap '
37466  while test -n "$names_next_round"; do
37467    names_this_round="$names_next_round"
37468    names_next_round=
37469    for name in $names_this_round; do
37470      already_handled=
37471      for n in $names_already_handled; do
37472        if test "$n" = "$name"; then
37473          already_handled=yes
37474          break
37475        fi
37476      done
37477      if test -z "$already_handled"; then
37478        names_already_handled="$names_already_handled $name"
37479                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
37480        eval value=\"\$HAVE_LIB$uppername\"
37481        if test -n "$value"; then
37482          if test "$value" = yes; then
37483            eval value=\"\$LIB$uppername\"
37484            test -z "$value" || LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$value"
37485            eval value=\"\$LTLIB$uppername\"
37486            test -z "$value" || LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$value"
37487          else
37488                                    :
37489          fi
37490        else
37491                              found_dir=
37492          found_la=
37493          found_so=
37494          found_a=
37495          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
37496          if test -n "$acl_shlibext"; then
37497            shrext=".$acl_shlibext"             # typically: shrext=.so
37498          else
37499            shrext=
37500          fi
37501          if test $use_additional = yes; then
37502            dir="$additional_libdir"
37503                                    if test -n "$acl_shlibext"; then
37504              if test -f "$dir/$libname$shrext"; then
37505                found_dir="$dir"
37506                found_so="$dir/$libname$shrext"
37507              else
37508                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37509                  ver=`(cd "$dir" && \
37510                        for f in "$libname$shrext".*; do echo "$f"; done \
37511                        | sed -e "s,^$libname$shrext\\\\.,," \
37512                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37513                        | sed 1q ) 2>/dev/null`
37514                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37515                    found_dir="$dir"
37516                    found_so="$dir/$libname$shrext.$ver"
37517                  fi
37518                else
37519                  eval library_names=\"$acl_library_names_spec\"
37520                  for f in $library_names; do
37521                    if test -f "$dir/$f"; then
37522                      found_dir="$dir"
37523                      found_so="$dir/$f"
37524                      break
37525                    fi
37526                  done
37527                fi
37528              fi
37529            fi
37530                        if test "X$found_dir" = "X"; then
37531              if test -f "$dir/$libname.$acl_libext"; then
37532                found_dir="$dir"
37533                found_a="$dir/$libname.$acl_libext"
37534              fi
37535            fi
37536            if test "X$found_dir" != "X"; then
37537              if test -f "$dir/$libname.la"; then
37538                found_la="$dir/$libname.la"
37539              fi
37540            fi
37541          fi
37542          if test "X$found_dir" = "X"; then
37543            for x in $LDFLAGS $LTLIBTERMCAP; do
37544
37545  acl_save_prefix="$prefix"
37546  prefix="$acl_final_prefix"
37547  acl_save_exec_prefix="$exec_prefix"
37548  exec_prefix="$acl_final_exec_prefix"
37549  eval x=\"$x\"
37550  exec_prefix="$acl_save_exec_prefix"
37551  prefix="$acl_save_prefix"
37552
37553              case "$x" in
37554                -L*)
37555                  dir=`echo "X$x" | sed -e 's/^X-L//'`
37556                                    if test -n "$acl_shlibext"; then
37557                    if test -f "$dir/$libname$shrext"; then
37558                      found_dir="$dir"
37559                      found_so="$dir/$libname$shrext"
37560                    else
37561                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37562                        ver=`(cd "$dir" && \
37563                              for f in "$libname$shrext".*; do echo "$f"; done \
37564                              | sed -e "s,^$libname$shrext\\\\.,," \
37565                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37566                              | sed 1q ) 2>/dev/null`
37567                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37568                          found_dir="$dir"
37569                          found_so="$dir/$libname$shrext.$ver"
37570                        fi
37571                      else
37572                        eval library_names=\"$acl_library_names_spec\"
37573                        for f in $library_names; do
37574                          if test -f "$dir/$f"; then
37575                            found_dir="$dir"
37576                            found_so="$dir/$f"
37577                            break
37578                          fi
37579                        done
37580                      fi
37581                    fi
37582                  fi
37583                                    if test "X$found_dir" = "X"; then
37584                    if test -f "$dir/$libname.$acl_libext"; then
37585                      found_dir="$dir"
37586                      found_a="$dir/$libname.$acl_libext"
37587                    fi
37588                  fi
37589                  if test "X$found_dir" != "X"; then
37590                    if test -f "$dir/$libname.la"; then
37591                      found_la="$dir/$libname.la"
37592                    fi
37593                  fi
37594                  ;;
37595              esac
37596              if test "X$found_dir" != "X"; then
37597                break
37598              fi
37599            done
37600          fi
37601          if test "X$found_dir" != "X"; then
37602                        LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$found_dir -l$name"
37603            if test "X$found_so" != "X"; then
37604                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
37605                                LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
37606              else
37607                                                                                haveit=
37608                for x in $ltrpathdirs; do
37609                  if test "X$x" = "X$found_dir"; then
37610                    haveit=yes
37611                    break
37612                  fi
37613                done
37614                if test -z "$haveit"; then
37615                  ltrpathdirs="$ltrpathdirs $found_dir"
37616                fi
37617                                if test "$acl_hardcode_direct" = yes; then
37618                                                      LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
37619                else
37620                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
37621                                                            LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
37622                                                            haveit=
37623                    for x in $rpathdirs; do
37624                      if test "X$x" = "X$found_dir"; then
37625                        haveit=yes
37626                        break
37627                      fi
37628                    done
37629                    if test -z "$haveit"; then
37630                      rpathdirs="$rpathdirs $found_dir"
37631                    fi
37632                  else
37633                                                                                haveit=
37634                    for x in $LDFLAGS $LIBTERMCAP; do
37635
37636  acl_save_prefix="$prefix"
37637  prefix="$acl_final_prefix"
37638  acl_save_exec_prefix="$exec_prefix"
37639  exec_prefix="$acl_final_exec_prefix"
37640  eval x=\"$x\"
37641  exec_prefix="$acl_save_exec_prefix"
37642  prefix="$acl_save_prefix"
37643
37644                      if test "X$x" = "X-L$found_dir"; then
37645                        haveit=yes
37646                        break
37647                      fi
37648                    done
37649                    if test -z "$haveit"; then
37650                      LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir"
37651                    fi
37652                    if test "$acl_hardcode_minus_L" != no; then
37653                                                                                        LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_so"
37654                    else
37655                                                                                                                                                                                LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
37656                    fi
37657                  fi
37658                fi
37659              fi
37660            else
37661              if test "X$found_a" != "X"; then
37662                                LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$found_a"
37663              else
37664                                                LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$found_dir -l$name"
37665              fi
37666            fi
37667                        additional_includedir=
37668            case "$found_dir" in
37669              */$acl_libdirstem | */$acl_libdirstem/)
37670                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
37671                LIBTERMCAP_PREFIX="$basedir"
37672                additional_includedir="$basedir/include"
37673                ;;
37674            esac
37675            if test "X$additional_includedir" != "X"; then
37676                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
37677                haveit=
37678                if test "X$additional_includedir" = "X/usr/local/include"; then
37679                  if test -n "$GCC"; then
37680                    case $host_os in
37681                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37682                    esac
37683                  fi
37684                fi
37685                if test -z "$haveit"; then
37686                  for x in $CPPFLAGS $INCTERMCAP; do
37687
37688  acl_save_prefix="$prefix"
37689  prefix="$acl_final_prefix"
37690  acl_save_exec_prefix="$exec_prefix"
37691  exec_prefix="$acl_final_exec_prefix"
37692  eval x=\"$x\"
37693  exec_prefix="$acl_save_exec_prefix"
37694  prefix="$acl_save_prefix"
37695
37696                    if test "X$x" = "X-I$additional_includedir"; then
37697                      haveit=yes
37698                      break
37699                    fi
37700                  done
37701                  if test -z "$haveit"; then
37702                    if test -d "$additional_includedir"; then
37703                                            INCTERMCAP="${INCTERMCAP}${INCTERMCAP:+ }-I$additional_includedir"
37704                    fi
37705                  fi
37706                fi
37707              fi
37708            fi
37709                        if test -n "$found_la"; then
37710                                                        save_libdir="$libdir"
37711              case "$found_la" in
37712                */* | *\\*) . "$found_la" ;;
37713                *) . "./$found_la" ;;
37714              esac
37715              libdir="$save_libdir"
37716                            for dep in $dependency_libs; do
37717                case "$dep" in
37718                  -L*)
37719                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
37720                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
37721                      haveit=
37722                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
37723                        if test -n "$GCC"; then
37724                          case $host_os in
37725                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
37726                          esac
37727                        fi
37728                      fi
37729                      if test -z "$haveit"; then
37730                        haveit=
37731                        for x in $LDFLAGS $LIBTERMCAP; do
37732
37733  acl_save_prefix="$prefix"
37734  prefix="$acl_final_prefix"
37735  acl_save_exec_prefix="$exec_prefix"
37736  exec_prefix="$acl_final_exec_prefix"
37737  eval x=\"$x\"
37738  exec_prefix="$acl_save_exec_prefix"
37739  prefix="$acl_save_prefix"
37740
37741                          if test "X$x" = "X-L$additional_libdir"; then
37742                            haveit=yes
37743                            break
37744                          fi
37745                        done
37746                        if test -z "$haveit"; then
37747                          if test -d "$additional_libdir"; then
37748                                                        LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-L$additional_libdir"
37749                          fi
37750                        fi
37751                        haveit=
37752                        for x in $LDFLAGS $LTLIBTERMCAP; do
37753
37754  acl_save_prefix="$prefix"
37755  prefix="$acl_final_prefix"
37756  acl_save_exec_prefix="$exec_prefix"
37757  exec_prefix="$acl_final_exec_prefix"
37758  eval x=\"$x\"
37759  exec_prefix="$acl_save_exec_prefix"
37760  prefix="$acl_save_prefix"
37761
37762                          if test "X$x" = "X-L$additional_libdir"; then
37763                            haveit=yes
37764                            break
37765                          fi
37766                        done
37767                        if test -z "$haveit"; then
37768                          if test -d "$additional_libdir"; then
37769                                                        LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-L$additional_libdir"
37770                          fi
37771                        fi
37772                      fi
37773                    fi
37774                    ;;
37775                  -R*)
37776                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
37777                    if test "$enable_rpath" != no; then
37778                                                                  haveit=
37779                      for x in $rpathdirs; do
37780                        if test "X$x" = "X$dir"; then
37781                          haveit=yes
37782                          break
37783                        fi
37784                      done
37785                      if test -z "$haveit"; then
37786                        rpathdirs="$rpathdirs $dir"
37787                      fi
37788                                                                  haveit=
37789                      for x in $ltrpathdirs; do
37790                        if test "X$x" = "X$dir"; then
37791                          haveit=yes
37792                          break
37793                        fi
37794                      done
37795                      if test -z "$haveit"; then
37796                        ltrpathdirs="$ltrpathdirs $dir"
37797                      fi
37798                    fi
37799                    ;;
37800                  -l*)
37801                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
37802                    ;;
37803                  *.la)
37804                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
37805                    ;;
37806                  *)
37807                                        LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$dep"
37808                    LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }$dep"
37809                    ;;
37810                esac
37811              done
37812            fi
37813          else
37814                                                            LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }-l$name"
37815            LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-l$name"
37816          fi
37817        fi
37818      fi
37819    done
37820  done
37821  if test "X$rpathdirs" != "X"; then
37822    if test -n "$acl_hardcode_libdir_separator"; then
37823                        alldirs=
37824      for found_dir in $rpathdirs; do
37825        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
37826      done
37827            acl_save_libdir="$libdir"
37828      libdir="$alldirs"
37829      eval flag=\"$acl_hardcode_libdir_flag_spec\"
37830      libdir="$acl_save_libdir"
37831      LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
37832    else
37833            for found_dir in $rpathdirs; do
37834        acl_save_libdir="$libdir"
37835        libdir="$found_dir"
37836        eval flag=\"$acl_hardcode_libdir_flag_spec\"
37837        libdir="$acl_save_libdir"
37838        LIBTERMCAP="${LIBTERMCAP}${LIBTERMCAP:+ }$flag"
37839      done
37840    fi
37841  fi
37842  if test "X$ltrpathdirs" != "X"; then
37843            for found_dir in $ltrpathdirs; do
37844      LTLIBTERMCAP="${LTLIBTERMCAP}${LTLIBTERMCAP:+ }-R$found_dir"
37845    done
37846  fi
37847
37848
37849
37850
37851
37852
37853    use_additional=yes
37854
37855  acl_save_prefix="$prefix"
37856  prefix="$acl_final_prefix"
37857  acl_save_exec_prefix="$exec_prefix"
37858  exec_prefix="$acl_final_exec_prefix"
37859
37860    eval additional_includedir=\"$includedir\"
37861    eval additional_libdir=\"$libdir\"
37862
37863  exec_prefix="$acl_save_exec_prefix"
37864  prefix="$acl_save_prefix"
37865
37866
37867# Check whether --with-libxcurses-prefix was given.
37868if test "${with_libxcurses_prefix+set}" = set; then
37869  withval=$with_libxcurses_prefix;
37870    if test "X$withval" = "Xno"; then
37871      use_additional=no
37872    else
37873      if test "X$withval" = "X"; then
37874
37875  acl_save_prefix="$prefix"
37876  prefix="$acl_final_prefix"
37877  acl_save_exec_prefix="$exec_prefix"
37878  exec_prefix="$acl_final_exec_prefix"
37879
37880          eval additional_includedir=\"$includedir\"
37881          eval additional_libdir=\"$libdir\"
37882
37883  exec_prefix="$acl_save_exec_prefix"
37884  prefix="$acl_save_prefix"
37885
37886      else
37887        additional_includedir="$withval/include"
37888        additional_libdir="$withval/$acl_libdirstem"
37889      fi
37890    fi
37891
37892fi
37893
37894      LIBXCURSES=
37895  LTLIBXCURSES=
37896  INCXCURSES=
37897  LIBXCURSES_PREFIX=
37898  rpathdirs=
37899  ltrpathdirs=
37900  names_already_handled=
37901  names_next_round='xcurses '
37902  while test -n "$names_next_round"; do
37903    names_this_round="$names_next_round"
37904    names_next_round=
37905    for name in $names_this_round; do
37906      already_handled=
37907      for n in $names_already_handled; do
37908        if test "$n" = "$name"; then
37909          already_handled=yes
37910          break
37911        fi
37912      done
37913      if test -z "$already_handled"; then
37914        names_already_handled="$names_already_handled $name"
37915                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
37916        eval value=\"\$HAVE_LIB$uppername\"
37917        if test -n "$value"; then
37918          if test "$value" = yes; then
37919            eval value=\"\$LIB$uppername\"
37920            test -z "$value" || LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$value"
37921            eval value=\"\$LTLIB$uppername\"
37922            test -z "$value" || LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$value"
37923          else
37924                                    :
37925          fi
37926        else
37927                              found_dir=
37928          found_la=
37929          found_so=
37930          found_a=
37931          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
37932          if test -n "$acl_shlibext"; then
37933            shrext=".$acl_shlibext"             # typically: shrext=.so
37934          else
37935            shrext=
37936          fi
37937          if test $use_additional = yes; then
37938            dir="$additional_libdir"
37939                                    if test -n "$acl_shlibext"; then
37940              if test -f "$dir/$libname$shrext"; then
37941                found_dir="$dir"
37942                found_so="$dir/$libname$shrext"
37943              else
37944                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37945                  ver=`(cd "$dir" && \
37946                        for f in "$libname$shrext".*; do echo "$f"; done \
37947                        | sed -e "s,^$libname$shrext\\\\.,," \
37948                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
37949                        | sed 1q ) 2>/dev/null`
37950                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
37951                    found_dir="$dir"
37952                    found_so="$dir/$libname$shrext.$ver"
37953                  fi
37954                else
37955                  eval library_names=\"$acl_library_names_spec\"
37956                  for f in $library_names; do
37957                    if test -f "$dir/$f"; then
37958                      found_dir="$dir"
37959                      found_so="$dir/$f"
37960                      break
37961                    fi
37962                  done
37963                fi
37964              fi
37965            fi
37966                        if test "X$found_dir" = "X"; then
37967              if test -f "$dir/$libname.$acl_libext"; then
37968                found_dir="$dir"
37969                found_a="$dir/$libname.$acl_libext"
37970              fi
37971            fi
37972            if test "X$found_dir" != "X"; then
37973              if test -f "$dir/$libname.la"; then
37974                found_la="$dir/$libname.la"
37975              fi
37976            fi
37977          fi
37978          if test "X$found_dir" = "X"; then
37979            for x in $LDFLAGS $LTLIBXCURSES; do
37980
37981  acl_save_prefix="$prefix"
37982  prefix="$acl_final_prefix"
37983  acl_save_exec_prefix="$exec_prefix"
37984  exec_prefix="$acl_final_exec_prefix"
37985  eval x=\"$x\"
37986  exec_prefix="$acl_save_exec_prefix"
37987  prefix="$acl_save_prefix"
37988
37989              case "$x" in
37990                -L*)
37991                  dir=`echo "X$x" | sed -e 's/^X-L//'`
37992                                    if test -n "$acl_shlibext"; then
37993                    if test -f "$dir/$libname$shrext"; then
37994                      found_dir="$dir"
37995                      found_so="$dir/$libname$shrext"
37996                    else
37997                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
37998                        ver=`(cd "$dir" && \
37999                              for f in "$libname$shrext".*; do echo "$f"; done \
38000                              | sed -e "s,^$libname$shrext\\\\.,," \
38001                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
38002                              | sed 1q ) 2>/dev/null`
38003                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
38004                          found_dir="$dir"
38005                          found_so="$dir/$libname$shrext.$ver"
38006                        fi
38007                      else
38008                        eval library_names=\"$acl_library_names_spec\"
38009                        for f in $library_names; do
38010                          if test -f "$dir/$f"; then
38011                            found_dir="$dir"
38012                            found_so="$dir/$f"
38013                            break
38014                          fi
38015                        done
38016                      fi
38017                    fi
38018                  fi
38019                                    if test "X$found_dir" = "X"; then
38020                    if test -f "$dir/$libname.$acl_libext"; then
38021                      found_dir="$dir"
38022                      found_a="$dir/$libname.$acl_libext"
38023                    fi
38024                  fi
38025                  if test "X$found_dir" != "X"; then
38026                    if test -f "$dir/$libname.la"; then
38027                      found_la="$dir/$libname.la"
38028                    fi
38029                  fi
38030                  ;;
38031              esac
38032              if test "X$found_dir" != "X"; then
38033                break
38034              fi
38035            done
38036          fi
38037          if test "X$found_dir" != "X"; then
38038                        LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$found_dir -l$name"
38039            if test "X$found_so" != "X"; then
38040                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
38041                                LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
38042              else
38043                                                                                haveit=
38044                for x in $ltrpathdirs; do
38045                  if test "X$x" = "X$found_dir"; then
38046                    haveit=yes
38047                    break
38048                  fi
38049                done
38050                if test -z "$haveit"; then
38051                  ltrpathdirs="$ltrpathdirs $found_dir"
38052                fi
38053                                if test "$acl_hardcode_direct" = yes; then
38054                                                      LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
38055                else
38056                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
38057                                                            LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
38058                                                            haveit=
38059                    for x in $rpathdirs; do
38060                      if test "X$x" = "X$found_dir"; then
38061                        haveit=yes
38062                        break
38063                      fi
38064                    done
38065                    if test -z "$haveit"; then
38066                      rpathdirs="$rpathdirs $found_dir"
38067                    fi
38068                  else
38069                                                                                haveit=
38070                    for x in $LDFLAGS $LIBXCURSES; do
38071
38072  acl_save_prefix="$prefix"
38073  prefix="$acl_final_prefix"
38074  acl_save_exec_prefix="$exec_prefix"
38075  exec_prefix="$acl_final_exec_prefix"
38076  eval x=\"$x\"
38077  exec_prefix="$acl_save_exec_prefix"
38078  prefix="$acl_save_prefix"
38079
38080                      if test "X$x" = "X-L$found_dir"; then
38081                        haveit=yes
38082                        break
38083                      fi
38084                    done
38085                    if test -z "$haveit"; then
38086                      LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir"
38087                    fi
38088                    if test "$acl_hardcode_minus_L" != no; then
38089                                                                                        LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_so"
38090                    else
38091                                                                                                                                                                                LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
38092                    fi
38093                  fi
38094                fi
38095              fi
38096            else
38097              if test "X$found_a" != "X"; then
38098                                LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$found_a"
38099              else
38100                                                LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$found_dir -l$name"
38101              fi
38102            fi
38103                        additional_includedir=
38104            case "$found_dir" in
38105              */$acl_libdirstem | */$acl_libdirstem/)
38106                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
38107                LIBXCURSES_PREFIX="$basedir"
38108                additional_includedir="$basedir/include"
38109                ;;
38110            esac
38111            if test "X$additional_includedir" != "X"; then
38112                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
38113                haveit=
38114                if test "X$additional_includedir" = "X/usr/local/include"; then
38115                  if test -n "$GCC"; then
38116                    case $host_os in
38117                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38118                    esac
38119                  fi
38120                fi
38121                if test -z "$haveit"; then
38122                  for x in $CPPFLAGS $INCXCURSES; do
38123
38124  acl_save_prefix="$prefix"
38125  prefix="$acl_final_prefix"
38126  acl_save_exec_prefix="$exec_prefix"
38127  exec_prefix="$acl_final_exec_prefix"
38128  eval x=\"$x\"
38129  exec_prefix="$acl_save_exec_prefix"
38130  prefix="$acl_save_prefix"
38131
38132                    if test "X$x" = "X-I$additional_includedir"; then
38133                      haveit=yes
38134                      break
38135                    fi
38136                  done
38137                  if test -z "$haveit"; then
38138                    if test -d "$additional_includedir"; then
38139                                            INCXCURSES="${INCXCURSES}${INCXCURSES:+ }-I$additional_includedir"
38140                    fi
38141                  fi
38142                fi
38143              fi
38144            fi
38145                        if test -n "$found_la"; then
38146                                                        save_libdir="$libdir"
38147              case "$found_la" in
38148                */* | *\\*) . "$found_la" ;;
38149                *) . "./$found_la" ;;
38150              esac
38151              libdir="$save_libdir"
38152                            for dep in $dependency_libs; do
38153                case "$dep" in
38154                  -L*)
38155                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
38156                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
38157                      haveit=
38158                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
38159                        if test -n "$GCC"; then
38160                          case $host_os in
38161                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38162                          esac
38163                        fi
38164                      fi
38165                      if test -z "$haveit"; then
38166                        haveit=
38167                        for x in $LDFLAGS $LIBXCURSES; do
38168
38169  acl_save_prefix="$prefix"
38170  prefix="$acl_final_prefix"
38171  acl_save_exec_prefix="$exec_prefix"
38172  exec_prefix="$acl_final_exec_prefix"
38173  eval x=\"$x\"
38174  exec_prefix="$acl_save_exec_prefix"
38175  prefix="$acl_save_prefix"
38176
38177                          if test "X$x" = "X-L$additional_libdir"; then
38178                            haveit=yes
38179                            break
38180                          fi
38181                        done
38182                        if test -z "$haveit"; then
38183                          if test -d "$additional_libdir"; then
38184                                                        LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-L$additional_libdir"
38185                          fi
38186                        fi
38187                        haveit=
38188                        for x in $LDFLAGS $LTLIBXCURSES; do
38189
38190  acl_save_prefix="$prefix"
38191  prefix="$acl_final_prefix"
38192  acl_save_exec_prefix="$exec_prefix"
38193  exec_prefix="$acl_final_exec_prefix"
38194  eval x=\"$x\"
38195  exec_prefix="$acl_save_exec_prefix"
38196  prefix="$acl_save_prefix"
38197
38198                          if test "X$x" = "X-L$additional_libdir"; then
38199                            haveit=yes
38200                            break
38201                          fi
38202                        done
38203                        if test -z "$haveit"; then
38204                          if test -d "$additional_libdir"; then
38205                                                        LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-L$additional_libdir"
38206                          fi
38207                        fi
38208                      fi
38209                    fi
38210                    ;;
38211                  -R*)
38212                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
38213                    if test "$enable_rpath" != no; then
38214                                                                  haveit=
38215                      for x in $rpathdirs; do
38216                        if test "X$x" = "X$dir"; then
38217                          haveit=yes
38218                          break
38219                        fi
38220                      done
38221                      if test -z "$haveit"; then
38222                        rpathdirs="$rpathdirs $dir"
38223                      fi
38224                                                                  haveit=
38225                      for x in $ltrpathdirs; do
38226                        if test "X$x" = "X$dir"; then
38227                          haveit=yes
38228                          break
38229                        fi
38230                      done
38231                      if test -z "$haveit"; then
38232                        ltrpathdirs="$ltrpathdirs $dir"
38233                      fi
38234                    fi
38235                    ;;
38236                  -l*)
38237                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
38238                    ;;
38239                  *.la)
38240                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
38241                    ;;
38242                  *)
38243                                        LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$dep"
38244                    LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }$dep"
38245                    ;;
38246                esac
38247              done
38248            fi
38249          else
38250                                                            LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }-l$name"
38251            LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-l$name"
38252          fi
38253        fi
38254      fi
38255    done
38256  done
38257  if test "X$rpathdirs" != "X"; then
38258    if test -n "$acl_hardcode_libdir_separator"; then
38259                        alldirs=
38260      for found_dir in $rpathdirs; do
38261        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
38262      done
38263            acl_save_libdir="$libdir"
38264      libdir="$alldirs"
38265      eval flag=\"$acl_hardcode_libdir_flag_spec\"
38266      libdir="$acl_save_libdir"
38267      LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
38268    else
38269            for found_dir in $rpathdirs; do
38270        acl_save_libdir="$libdir"
38271        libdir="$found_dir"
38272        eval flag=\"$acl_hardcode_libdir_flag_spec\"
38273        libdir="$acl_save_libdir"
38274        LIBXCURSES="${LIBXCURSES}${LIBXCURSES:+ }$flag"
38275      done
38276    fi
38277  fi
38278  if test "X$ltrpathdirs" != "X"; then
38279            for found_dir in $ltrpathdirs; do
38280      LTLIBXCURSES="${LTLIBXCURSES}${LTLIBXCURSES:+ }-R$found_dir"
38281    done
38282  fi
38283
38284
38285
38286
38287
38288
38289    use_additional=yes
38290
38291  acl_save_prefix="$prefix"
38292  prefix="$acl_final_prefix"
38293  acl_save_exec_prefix="$exec_prefix"
38294  exec_prefix="$acl_final_exec_prefix"
38295
38296    eval additional_includedir=\"$includedir\"
38297    eval additional_libdir=\"$libdir\"
38298
38299  exec_prefix="$acl_save_exec_prefix"
38300  prefix="$acl_save_prefix"
38301
38302
38303# Check whether --with-libcurses-prefix was given.
38304if test "${with_libcurses_prefix+set}" = set; then
38305  withval=$with_libcurses_prefix;
38306    if test "X$withval" = "Xno"; then
38307      use_additional=no
38308    else
38309      if test "X$withval" = "X"; then
38310
38311  acl_save_prefix="$prefix"
38312  prefix="$acl_final_prefix"
38313  acl_save_exec_prefix="$exec_prefix"
38314  exec_prefix="$acl_final_exec_prefix"
38315
38316          eval additional_includedir=\"$includedir\"
38317          eval additional_libdir=\"$libdir\"
38318
38319  exec_prefix="$acl_save_exec_prefix"
38320  prefix="$acl_save_prefix"
38321
38322      else
38323        additional_includedir="$withval/include"
38324        additional_libdir="$withval/$acl_libdirstem"
38325      fi
38326    fi
38327
38328fi
38329
38330      LIBCURSES=
38331  LTLIBCURSES=
38332  INCCURSES=
38333  LIBCURSES_PREFIX=
38334  rpathdirs=
38335  ltrpathdirs=
38336  names_already_handled=
38337  names_next_round='curses '
38338  while test -n "$names_next_round"; do
38339    names_this_round="$names_next_round"
38340    names_next_round=
38341    for name in $names_this_round; do
38342      already_handled=
38343      for n in $names_already_handled; do
38344        if test "$n" = "$name"; then
38345          already_handled=yes
38346          break
38347        fi
38348      done
38349      if test -z "$already_handled"; then
38350        names_already_handled="$names_already_handled $name"
38351                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
38352        eval value=\"\$HAVE_LIB$uppername\"
38353        if test -n "$value"; then
38354          if test "$value" = yes; then
38355            eval value=\"\$LIB$uppername\"
38356            test -z "$value" || LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$value"
38357            eval value=\"\$LTLIB$uppername\"
38358            test -z "$value" || LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$value"
38359          else
38360                                    :
38361          fi
38362        else
38363                              found_dir=
38364          found_la=
38365          found_so=
38366          found_a=
38367          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
38368          if test -n "$acl_shlibext"; then
38369            shrext=".$acl_shlibext"             # typically: shrext=.so
38370          else
38371            shrext=
38372          fi
38373          if test $use_additional = yes; then
38374            dir="$additional_libdir"
38375                                    if test -n "$acl_shlibext"; then
38376              if test -f "$dir/$libname$shrext"; then
38377                found_dir="$dir"
38378                found_so="$dir/$libname$shrext"
38379              else
38380                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
38381                  ver=`(cd "$dir" && \
38382                        for f in "$libname$shrext".*; do echo "$f"; done \
38383                        | sed -e "s,^$libname$shrext\\\\.,," \
38384                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
38385                        | sed 1q ) 2>/dev/null`
38386                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
38387                    found_dir="$dir"
38388                    found_so="$dir/$libname$shrext.$ver"
38389                  fi
38390                else
38391                  eval library_names=\"$acl_library_names_spec\"
38392                  for f in $library_names; do
38393                    if test -f "$dir/$f"; then
38394                      found_dir="$dir"
38395                      found_so="$dir/$f"
38396                      break
38397                    fi
38398                  done
38399                fi
38400              fi
38401            fi
38402                        if test "X$found_dir" = "X"; then
38403              if test -f "$dir/$libname.$acl_libext"; then
38404                found_dir="$dir"
38405                found_a="$dir/$libname.$acl_libext"
38406              fi
38407            fi
38408            if test "X$found_dir" != "X"; then
38409              if test -f "$dir/$libname.la"; then
38410                found_la="$dir/$libname.la"
38411              fi
38412            fi
38413          fi
38414          if test "X$found_dir" = "X"; then
38415            for x in $LDFLAGS $LTLIBCURSES; do
38416
38417  acl_save_prefix="$prefix"
38418  prefix="$acl_final_prefix"
38419  acl_save_exec_prefix="$exec_prefix"
38420  exec_prefix="$acl_final_exec_prefix"
38421  eval x=\"$x\"
38422  exec_prefix="$acl_save_exec_prefix"
38423  prefix="$acl_save_prefix"
38424
38425              case "$x" in
38426                -L*)
38427                  dir=`echo "X$x" | sed -e 's/^X-L//'`
38428                                    if test -n "$acl_shlibext"; then
38429                    if test -f "$dir/$libname$shrext"; then
38430                      found_dir="$dir"
38431                      found_so="$dir/$libname$shrext"
38432                    else
38433                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
38434                        ver=`(cd "$dir" && \
38435                              for f in "$libname$shrext".*; do echo "$f"; done \
38436                              | sed -e "s,^$libname$shrext\\\\.,," \
38437                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
38438                              | sed 1q ) 2>/dev/null`
38439                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
38440                          found_dir="$dir"
38441                          found_so="$dir/$libname$shrext.$ver"
38442                        fi
38443                      else
38444                        eval library_names=\"$acl_library_names_spec\"
38445                        for f in $library_names; do
38446                          if test -f "$dir/$f"; then
38447                            found_dir="$dir"
38448                            found_so="$dir/$f"
38449                            break
38450                          fi
38451                        done
38452                      fi
38453                    fi
38454                  fi
38455                                    if test "X$found_dir" = "X"; then
38456                    if test -f "$dir/$libname.$acl_libext"; then
38457                      found_dir="$dir"
38458                      found_a="$dir/$libname.$acl_libext"
38459                    fi
38460                  fi
38461                  if test "X$found_dir" != "X"; then
38462                    if test -f "$dir/$libname.la"; then
38463                      found_la="$dir/$libname.la"
38464                    fi
38465                  fi
38466                  ;;
38467              esac
38468              if test "X$found_dir" != "X"; then
38469                break
38470              fi
38471            done
38472          fi
38473          if test "X$found_dir" != "X"; then
38474                        LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$found_dir -l$name"
38475            if test "X$found_so" != "X"; then
38476                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
38477                                LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
38478              else
38479                                                                                haveit=
38480                for x in $ltrpathdirs; do
38481                  if test "X$x" = "X$found_dir"; then
38482                    haveit=yes
38483                    break
38484                  fi
38485                done
38486                if test -z "$haveit"; then
38487                  ltrpathdirs="$ltrpathdirs $found_dir"
38488                fi
38489                                if test "$acl_hardcode_direct" = yes; then
38490                                                      LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
38491                else
38492                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
38493                                                            LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
38494                                                            haveit=
38495                    for x in $rpathdirs; do
38496                      if test "X$x" = "X$found_dir"; then
38497                        haveit=yes
38498                        break
38499                      fi
38500                    done
38501                    if test -z "$haveit"; then
38502                      rpathdirs="$rpathdirs $found_dir"
38503                    fi
38504                  else
38505                                                                                haveit=
38506                    for x in $LDFLAGS $LIBCURSES; do
38507
38508  acl_save_prefix="$prefix"
38509  prefix="$acl_final_prefix"
38510  acl_save_exec_prefix="$exec_prefix"
38511  exec_prefix="$acl_final_exec_prefix"
38512  eval x=\"$x\"
38513  exec_prefix="$acl_save_exec_prefix"
38514  prefix="$acl_save_prefix"
38515
38516                      if test "X$x" = "X-L$found_dir"; then
38517                        haveit=yes
38518                        break
38519                      fi
38520                    done
38521                    if test -z "$haveit"; then
38522                      LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir"
38523                    fi
38524                    if test "$acl_hardcode_minus_L" != no; then
38525                                                                                        LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_so"
38526                    else
38527                                                                                                                                                                                LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
38528                    fi
38529                  fi
38530                fi
38531              fi
38532            else
38533              if test "X$found_a" != "X"; then
38534                                LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$found_a"
38535              else
38536                                                LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$found_dir -l$name"
38537              fi
38538            fi
38539                        additional_includedir=
38540            case "$found_dir" in
38541              */$acl_libdirstem | */$acl_libdirstem/)
38542                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
38543                LIBCURSES_PREFIX="$basedir"
38544                additional_includedir="$basedir/include"
38545                ;;
38546            esac
38547            if test "X$additional_includedir" != "X"; then
38548                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
38549                haveit=
38550                if test "X$additional_includedir" = "X/usr/local/include"; then
38551                  if test -n "$GCC"; then
38552                    case $host_os in
38553                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38554                    esac
38555                  fi
38556                fi
38557                if test -z "$haveit"; then
38558                  for x in $CPPFLAGS $INCCURSES; do
38559
38560  acl_save_prefix="$prefix"
38561  prefix="$acl_final_prefix"
38562  acl_save_exec_prefix="$exec_prefix"
38563  exec_prefix="$acl_final_exec_prefix"
38564  eval x=\"$x\"
38565  exec_prefix="$acl_save_exec_prefix"
38566  prefix="$acl_save_prefix"
38567
38568                    if test "X$x" = "X-I$additional_includedir"; then
38569                      haveit=yes
38570                      break
38571                    fi
38572                  done
38573                  if test -z "$haveit"; then
38574                    if test -d "$additional_includedir"; then
38575                                            INCCURSES="${INCCURSES}${INCCURSES:+ }-I$additional_includedir"
38576                    fi
38577                  fi
38578                fi
38579              fi
38580            fi
38581                        if test -n "$found_la"; then
38582                                                        save_libdir="$libdir"
38583              case "$found_la" in
38584                */* | *\\*) . "$found_la" ;;
38585                *) . "./$found_la" ;;
38586              esac
38587              libdir="$save_libdir"
38588                            for dep in $dependency_libs; do
38589                case "$dep" in
38590                  -L*)
38591                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
38592                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
38593                      haveit=
38594                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
38595                        if test -n "$GCC"; then
38596                          case $host_os in
38597                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
38598                          esac
38599                        fi
38600                      fi
38601                      if test -z "$haveit"; then
38602                        haveit=
38603                        for x in $LDFLAGS $LIBCURSES; do
38604
38605  acl_save_prefix="$prefix"
38606  prefix="$acl_final_prefix"
38607  acl_save_exec_prefix="$exec_prefix"
38608  exec_prefix="$acl_final_exec_prefix"
38609  eval x=\"$x\"
38610  exec_prefix="$acl_save_exec_prefix"
38611  prefix="$acl_save_prefix"
38612
38613                          if test "X$x" = "X-L$additional_libdir"; then
38614                            haveit=yes
38615                            break
38616                          fi
38617                        done
38618                        if test -z "$haveit"; then
38619                          if test -d "$additional_libdir"; then
38620                                                        LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-L$additional_libdir"
38621                          fi
38622                        fi
38623                        haveit=
38624                        for x in $LDFLAGS $LTLIBCURSES; do
38625
38626  acl_save_prefix="$prefix"
38627  prefix="$acl_final_prefix"
38628  acl_save_exec_prefix="$exec_prefix"
38629  exec_prefix="$acl_final_exec_prefix"
38630  eval x=\"$x\"
38631  exec_prefix="$acl_save_exec_prefix"
38632  prefix="$acl_save_prefix"
38633
38634                          if test "X$x" = "X-L$additional_libdir"; then
38635                            haveit=yes
38636                            break
38637                          fi
38638                        done
38639                        if test -z "$haveit"; then
38640                          if test -d "$additional_libdir"; then
38641                                                        LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-L$additional_libdir"
38642                          fi
38643                        fi
38644                      fi
38645                    fi
38646                    ;;
38647                  -R*)
38648                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
38649                    if test "$enable_rpath" != no; then
38650                                                                  haveit=
38651                      for x in $rpathdirs; do
38652                        if test "X$x" = "X$dir"; then
38653                          haveit=yes
38654                          break
38655                        fi
38656                      done
38657                      if test -z "$haveit"; then
38658                        rpathdirs="$rpathdirs $dir"
38659                      fi
38660                                                                  haveit=
38661                      for x in $ltrpathdirs; do
38662                        if test "X$x" = "X$dir"; then
38663                          haveit=yes
38664                          break
38665                        fi
38666                      done
38667                      if test -z "$haveit"; then
38668                        ltrpathdirs="$ltrpathdirs $dir"
38669                      fi
38670                    fi
38671                    ;;
38672                  -l*)
38673                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
38674                    ;;
38675                  *.la)
38676                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
38677                    ;;
38678                  *)
38679                                        LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$dep"
38680                    LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }$dep"
38681                    ;;
38682                esac
38683              done
38684            fi
38685          else
38686                                                            LIBCURSES="${LIBCURSES}${LIBCURSES:+ }-l$name"
38687            LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-l$name"
38688          fi
38689        fi
38690      fi
38691    done
38692  done
38693  if test "X$rpathdirs" != "X"; then
38694    if test -n "$acl_hardcode_libdir_separator"; then
38695                        alldirs=
38696      for found_dir in $rpathdirs; do
38697        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
38698      done
38699            acl_save_libdir="$libdir"
38700      libdir="$alldirs"
38701      eval flag=\"$acl_hardcode_libdir_flag_spec\"
38702      libdir="$acl_save_libdir"
38703      LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
38704    else
38705            for found_dir in $rpathdirs; do
38706        acl_save_libdir="$libdir"
38707        libdir="$found_dir"
38708        eval flag=\"$acl_hardcode_libdir_flag_spec\"
38709        libdir="$acl_save_libdir"
38710        LIBCURSES="${LIBCURSES}${LIBCURSES:+ }$flag"
38711      done
38712    fi
38713  fi
38714  if test "X$ltrpathdirs" != "X"; then
38715            for found_dir in $ltrpathdirs; do
38716      LTLIBCURSES="${LTLIBCURSES}${LTLIBCURSES:+ }-R$found_dir"
38717    done
38718  fi
38719
38720
38721      { $as_echo "$as_me:$LINENO: checking where terminfo library functions come from" >&5
38722$as_echo_n "checking where terminfo library functions come from... " >&6; }
38723if test "${gl_cv_terminfo+set}" = set; then
38724  $as_echo_n "(cached) " >&6
38725else
38726
38727    gl_cv_terminfo="not found, consider installing GNU ncurses"
38728    cat >conftest.$ac_ext <<_ACEOF
38729/* confdefs.h.  */
38730_ACEOF
38731cat confdefs.h >>conftest.$ac_ext
38732cat >>conftest.$ac_ext <<_ACEOF
38733/* end confdefs.h.  */
38734extern
38735      #ifdef __cplusplus
38736      "C"
38737      #endif
38738      int setupterm (const char *, int, int *);
38739      extern
38740      #ifdef __cplusplus
38741      "C"
38742      #endif
38743      int tigetnum (const char *);
38744      extern
38745      #ifdef __cplusplus
38746      "C"
38747      #endif
38748      int tigetflag (const char *);
38749      extern
38750      #ifdef __cplusplus
38751      "C"
38752      #endif
38753      const char * tigetstr (const char *);
38754
38755int
38756main ()
38757{
38758return setupterm ("xterm", 0, (int *)0)
38759                 + tigetnum ("colors")
38760                 + tigetflag ("hc") + * tigetstr("oc");
38761  ;
38762  return 0;
38763}
38764_ACEOF
38765rm -f conftest.$ac_objext conftest$ac_exeext
38766if { (ac_try="$ac_link"
38767case "(($ac_try" in
38768  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38769  *) ac_try_echo=$ac_try;;
38770esac
38771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38772$as_echo "$ac_try_echo") >&5
38773  (eval "$ac_link") 2>conftest.er1
38774  ac_status=$?
38775  grep -v '^ *+' conftest.er1 >conftest.err
38776  rm -f conftest.er1
38777  cat conftest.err >&5
38778  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779  (exit $ac_status); } && {
38780	 test -z "$ac_c_werror_flag" ||
38781	 test ! -s conftest.err
38782       } && test -s conftest$ac_exeext && {
38783	 test "$cross_compiling" = yes ||
38784	 $as_test_x conftest$ac_exeext
38785       }; then
38786  gl_cv_terminfo=libc
38787else
38788  $as_echo "$as_me: failed program was:" >&5
38789sed 's/^/| /' conftest.$ac_ext >&5
38790
38791
38792fi
38793
38794rm -rf conftest.dSYM
38795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38796      conftest$ac_exeext conftest.$ac_ext
38797    if test "$gl_cv_terminfo" != libc; then
38798      gl_save_LIBS="$LIBS"
38799      LIBS="$LIBS $LIBNCURSES"
38800      cat >conftest.$ac_ext <<_ACEOF
38801/* confdefs.h.  */
38802_ACEOF
38803cat confdefs.h >>conftest.$ac_ext
38804cat >>conftest.$ac_ext <<_ACEOF
38805/* end confdefs.h.  */
38806extern
38807        #ifdef __cplusplus
38808        "C"
38809        #endif
38810        int setupterm (const char *, int, int *);
38811        extern
38812        #ifdef __cplusplus
38813        "C"
38814        #endif
38815        int tigetnum (const char *);
38816        extern
38817        #ifdef __cplusplus
38818        "C"
38819        #endif
38820        int tigetflag (const char *);
38821        extern
38822        #ifdef __cplusplus
38823        "C"
38824        #endif
38825        const char * tigetstr (const char *);
38826
38827int
38828main ()
38829{
38830return setupterm ("xterm", 0, (int *)0)
38831                   + tigetnum ("colors")
38832                   + tigetflag ("hc") + * tigetstr("oc");
38833  ;
38834  return 0;
38835}
38836_ACEOF
38837rm -f conftest.$ac_objext conftest$ac_exeext
38838if { (ac_try="$ac_link"
38839case "(($ac_try" in
38840  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38841  *) ac_try_echo=$ac_try;;
38842esac
38843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38844$as_echo "$ac_try_echo") >&5
38845  (eval "$ac_link") 2>conftest.er1
38846  ac_status=$?
38847  grep -v '^ *+' conftest.er1 >conftest.err
38848  rm -f conftest.er1
38849  cat conftest.err >&5
38850  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38851  (exit $ac_status); } && {
38852	 test -z "$ac_c_werror_flag" ||
38853	 test ! -s conftest.err
38854       } && test -s conftest$ac_exeext && {
38855	 test "$cross_compiling" = yes ||
38856	 $as_test_x conftest$ac_exeext
38857       }; then
38858  gl_cv_terminfo=libncurses
38859else
38860  $as_echo "$as_me: failed program was:" >&5
38861sed 's/^/| /' conftest.$ac_ext >&5
38862
38863
38864fi
38865
38866rm -rf conftest.dSYM
38867rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38868      conftest$ac_exeext conftest.$ac_ext
38869      LIBS="$gl_save_LIBS"
38870      if test "$gl_cv_terminfo" != libncurses; then
38871        gl_save_LIBS="$LIBS"
38872        LIBS="$LIBS $LIBTERMCAP"
38873        cat >conftest.$ac_ext <<_ACEOF
38874/* confdefs.h.  */
38875_ACEOF
38876cat confdefs.h >>conftest.$ac_ext
38877cat >>conftest.$ac_ext <<_ACEOF
38878/* end confdefs.h.  */
38879extern
38880          #ifdef __cplusplus
38881          "C"
38882          #endif
38883          int setupterm (const char *, int, int *);
38884          extern
38885          #ifdef __cplusplus
38886          "C"
38887          #endif
38888          int tigetnum (const char *);
38889          extern
38890          #ifdef __cplusplus
38891          "C"
38892          #endif
38893          int tigetflag (const char *);
38894          extern
38895          #ifdef __cplusplus
38896          "C"
38897          #endif
38898          const char * tigetstr (const char *);
38899
38900int
38901main ()
38902{
38903return setupterm ("xterm", 0, (int *)0)
38904                     + tigetnum ("colors")
38905                     + tigetflag ("hc") + * tigetstr("oc");
38906  ;
38907  return 0;
38908}
38909_ACEOF
38910rm -f conftest.$ac_objext conftest$ac_exeext
38911if { (ac_try="$ac_link"
38912case "(($ac_try" in
38913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38914  *) ac_try_echo=$ac_try;;
38915esac
38916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38917$as_echo "$ac_try_echo") >&5
38918  (eval "$ac_link") 2>conftest.er1
38919  ac_status=$?
38920  grep -v '^ *+' conftest.er1 >conftest.err
38921  rm -f conftest.er1
38922  cat conftest.err >&5
38923  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38924  (exit $ac_status); } && {
38925	 test -z "$ac_c_werror_flag" ||
38926	 test ! -s conftest.err
38927       } && test -s conftest$ac_exeext && {
38928	 test "$cross_compiling" = yes ||
38929	 $as_test_x conftest$ac_exeext
38930       }; then
38931  gl_cv_terminfo=libtermcap
38932else
38933  $as_echo "$as_me: failed program was:" >&5
38934sed 's/^/| /' conftest.$ac_ext >&5
38935
38936
38937fi
38938
38939rm -rf conftest.dSYM
38940rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38941      conftest$ac_exeext conftest.$ac_ext
38942        LIBS="$gl_save_LIBS"
38943        if test "$gl_cv_terminfo" != libtermcap; then
38944          gl_save_LIBS="$LIBS"
38945          LIBS="$LIBS $LIBXCURSES"
38946          cat >conftest.$ac_ext <<_ACEOF
38947/* confdefs.h.  */
38948_ACEOF
38949cat confdefs.h >>conftest.$ac_ext
38950cat >>conftest.$ac_ext <<_ACEOF
38951/* end confdefs.h.  */
38952extern
38953            #ifdef __cplusplus
38954            "C"
38955            #endif
38956            int setupterm (const char *, int, int *);
38957            extern
38958            #ifdef __cplusplus
38959            "C"
38960            #endif
38961            int tigetnum (const char *);
38962            extern
38963            #ifdef __cplusplus
38964            "C"
38965            #endif
38966            int tigetflag (const char *);
38967            extern
38968            #ifdef __cplusplus
38969            "C"
38970            #endif
38971            const char * tigetstr (const char *);
38972
38973int
38974main ()
38975{
38976return setupterm ("xterm", 0, (int *)0)
38977                       + tigetnum ("colors")
38978                       + tigetflag ("hc") + * tigetstr("oc");
38979  ;
38980  return 0;
38981}
38982_ACEOF
38983rm -f conftest.$ac_objext conftest$ac_exeext
38984if { (ac_try="$ac_link"
38985case "(($ac_try" in
38986  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38987  *) ac_try_echo=$ac_try;;
38988esac
38989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38990$as_echo "$ac_try_echo") >&5
38991  (eval "$ac_link") 2>conftest.er1
38992  ac_status=$?
38993  grep -v '^ *+' conftest.er1 >conftest.err
38994  rm -f conftest.er1
38995  cat conftest.err >&5
38996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38997  (exit $ac_status); } && {
38998	 test -z "$ac_c_werror_flag" ||
38999	 test ! -s conftest.err
39000       } && test -s conftest$ac_exeext && {
39001	 test "$cross_compiling" = yes ||
39002	 $as_test_x conftest$ac_exeext
39003       }; then
39004  gl_cv_terminfo=libxcurses
39005else
39006  $as_echo "$as_me: failed program was:" >&5
39007sed 's/^/| /' conftest.$ac_ext >&5
39008
39009
39010fi
39011
39012rm -rf conftest.dSYM
39013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39014      conftest$ac_exeext conftest.$ac_ext
39015          LIBS="$gl_save_LIBS"
39016          if test "$gl_cv_terminfo" != libxcurses; then
39017            gl_save_LIBS="$LIBS"
39018            LIBS="$LIBS $LIBCURSES"
39019            cat >conftest.$ac_ext <<_ACEOF
39020/* confdefs.h.  */
39021_ACEOF
39022cat confdefs.h >>conftest.$ac_ext
39023cat >>conftest.$ac_ext <<_ACEOF
39024/* end confdefs.h.  */
39025extern
39026              #ifdef __cplusplus
39027              "C"
39028              #endif
39029              int setupterm (const char *, int, int *);
39030              extern
39031              #ifdef __cplusplus
39032              "C"
39033              #endif
39034              int tigetnum (const char *);
39035              extern
39036              #ifdef __cplusplus
39037              "C"
39038              #endif
39039              int tigetflag (const char *);
39040              extern
39041              #ifdef __cplusplus
39042              "C"
39043              #endif
39044              const char * tigetstr (const char *);
39045
39046int
39047main ()
39048{
39049return setupterm ("xterm", 0, (int *)0)
39050                         + tigetnum ("colors")
39051                         + tigetflag ("hc") + * tigetstr("oc");
39052  ;
39053  return 0;
39054}
39055_ACEOF
39056rm -f conftest.$ac_objext conftest$ac_exeext
39057if { (ac_try="$ac_link"
39058case "(($ac_try" in
39059  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39060  *) ac_try_echo=$ac_try;;
39061esac
39062eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39063$as_echo "$ac_try_echo") >&5
39064  (eval "$ac_link") 2>conftest.er1
39065  ac_status=$?
39066  grep -v '^ *+' conftest.er1 >conftest.err
39067  rm -f conftest.er1
39068  cat conftest.err >&5
39069  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39070  (exit $ac_status); } && {
39071	 test -z "$ac_c_werror_flag" ||
39072	 test ! -s conftest.err
39073       } && test -s conftest$ac_exeext && {
39074	 test "$cross_compiling" = yes ||
39075	 $as_test_x conftest$ac_exeext
39076       }; then
39077  gl_cv_terminfo=libcurses
39078else
39079  $as_echo "$as_me: failed program was:" >&5
39080sed 's/^/| /' conftest.$ac_ext >&5
39081
39082
39083fi
39084
39085rm -rf conftest.dSYM
39086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39087      conftest$ac_exeext conftest.$ac_ext
39088            LIBS="$gl_save_LIBS"
39089          fi
39090        fi
39091      fi
39092    fi
39093
39094fi
39095{ $as_echo "$as_me:$LINENO: result: $gl_cv_terminfo" >&5
39096$as_echo "$gl_cv_terminfo" >&6; }
39097  case "$gl_cv_terminfo" in
39098    libc)
39099      LIBTERMINFO=
39100      LTLIBTERMINFO=
39101      INCTERMINFO=
39102      ;;
39103    libncurses)
39104      LIBTERMINFO="$LIBNCURSES"
39105      LTLIBTERMINFO="$LTLIBNCURSES"
39106      INCTERMINFO="$INCNCURSES"
39107      ;;
39108    libtermcap)
39109      LIBTERMINFO="$LIBTERMCAP"
39110      LTLIBTERMINFO="$LTLIBTERMCAP"
39111      INCTERMINFO="$INCTERMCAP"
39112      ;;
39113    libxcurses)
39114      LIBTERMINFO="$LIBXCURSES"
39115      LTLIBTERMINFO="$LTLIBXCURSES"
39116      INCTERMINFO="$INCXCURSES"
39117      ;;
39118    libcurses)
39119      LIBTERMINFO="$LIBCURSES"
39120      LTLIBTERMINFO="$LTLIBCURSES"
39121      INCTERMINFO="$INCCURSES"
39122      ;;
39123  esac
39124  case "$gl_cv_terminfo" in
39125    libc | libncurses | libtermcap | libxcurses | libcurses)
39126
39127cat >>confdefs.h <<\_ACEOF
39128#define HAVE_TERMINFO 1
39129_ACEOF
39130
39131      ;;
39132    *)
39133            { $as_echo "$as_me:$LINENO: checking where termcap library functions come from" >&5
39134$as_echo_n "checking where termcap library functions come from... " >&6; }
39135if test "${gl_cv_termcap+set}" = set; then
39136  $as_echo_n "(cached) " >&6
39137else
39138
39139        gl_cv_termcap="not found, consider installing GNU ncurses"
39140        cat >conftest.$ac_ext <<_ACEOF
39141/* confdefs.h.  */
39142_ACEOF
39143cat confdefs.h >>conftest.$ac_ext
39144cat >>conftest.$ac_ext <<_ACEOF
39145/* end confdefs.h.  */
39146extern
39147          #ifdef __cplusplus
39148          "C"
39149          #endif
39150          int tgetent (char *, const char *);
39151
39152int
39153main ()
39154{
39155return tgetent ((char *) 0, "xterm");
39156  ;
39157  return 0;
39158}
39159_ACEOF
39160rm -f conftest.$ac_objext conftest$ac_exeext
39161if { (ac_try="$ac_link"
39162case "(($ac_try" in
39163  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39164  *) ac_try_echo=$ac_try;;
39165esac
39166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39167$as_echo "$ac_try_echo") >&5
39168  (eval "$ac_link") 2>conftest.er1
39169  ac_status=$?
39170  grep -v '^ *+' conftest.er1 >conftest.err
39171  rm -f conftest.er1
39172  cat conftest.err >&5
39173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39174  (exit $ac_status); } && {
39175	 test -z "$ac_c_werror_flag" ||
39176	 test ! -s conftest.err
39177       } && test -s conftest$ac_exeext && {
39178	 test "$cross_compiling" = yes ||
39179	 $as_test_x conftest$ac_exeext
39180       }; then
39181  gl_cv_termcap=libc
39182else
39183  $as_echo "$as_me: failed program was:" >&5
39184sed 's/^/| /' conftest.$ac_ext >&5
39185
39186
39187fi
39188
39189rm -rf conftest.dSYM
39190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39191      conftest$ac_exeext conftest.$ac_ext
39192        if test "$gl_cv_termcap" != libc; then
39193          gl_save_LIBS="$LIBS"
39194          LIBS="$LIBS $LIBNCURSES"
39195          cat >conftest.$ac_ext <<_ACEOF
39196/* confdefs.h.  */
39197_ACEOF
39198cat confdefs.h >>conftest.$ac_ext
39199cat >>conftest.$ac_ext <<_ACEOF
39200/* end confdefs.h.  */
39201extern
39202            #ifdef __cplusplus
39203            "C"
39204            #endif
39205            int tgetent (char *, const char *);
39206
39207int
39208main ()
39209{
39210return tgetent ((char *) 0, "xterm");
39211  ;
39212  return 0;
39213}
39214_ACEOF
39215rm -f conftest.$ac_objext conftest$ac_exeext
39216if { (ac_try="$ac_link"
39217case "(($ac_try" in
39218  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39219  *) ac_try_echo=$ac_try;;
39220esac
39221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39222$as_echo "$ac_try_echo") >&5
39223  (eval "$ac_link") 2>conftest.er1
39224  ac_status=$?
39225  grep -v '^ *+' conftest.er1 >conftest.err
39226  rm -f conftest.er1
39227  cat conftest.err >&5
39228  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39229  (exit $ac_status); } && {
39230	 test -z "$ac_c_werror_flag" ||
39231	 test ! -s conftest.err
39232       } && test -s conftest$ac_exeext && {
39233	 test "$cross_compiling" = yes ||
39234	 $as_test_x conftest$ac_exeext
39235       }; then
39236  gl_cv_termcap=libncurses
39237else
39238  $as_echo "$as_me: failed program was:" >&5
39239sed 's/^/| /' conftest.$ac_ext >&5
39240
39241
39242fi
39243
39244rm -rf conftest.dSYM
39245rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39246      conftest$ac_exeext conftest.$ac_ext
39247          LIBS="$gl_save_LIBS"
39248          if test "$gl_cv_termcap" != libncurses; then
39249            gl_save_LIBS="$LIBS"
39250            LIBS="$LIBS $LIBTERMCAP"
39251            cat >conftest.$ac_ext <<_ACEOF
39252/* confdefs.h.  */
39253_ACEOF
39254cat confdefs.h >>conftest.$ac_ext
39255cat >>conftest.$ac_ext <<_ACEOF
39256/* end confdefs.h.  */
39257extern
39258              #ifdef __cplusplus
39259              "C"
39260              #endif
39261              int tgetent (char *, const char *);
39262
39263int
39264main ()
39265{
39266return tgetent ((char *) 0, "xterm");
39267  ;
39268  return 0;
39269}
39270_ACEOF
39271rm -f conftest.$ac_objext conftest$ac_exeext
39272if { (ac_try="$ac_link"
39273case "(($ac_try" in
39274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39275  *) ac_try_echo=$ac_try;;
39276esac
39277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39278$as_echo "$ac_try_echo") >&5
39279  (eval "$ac_link") 2>conftest.er1
39280  ac_status=$?
39281  grep -v '^ *+' conftest.er1 >conftest.err
39282  rm -f conftest.er1
39283  cat conftest.err >&5
39284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285  (exit $ac_status); } && {
39286	 test -z "$ac_c_werror_flag" ||
39287	 test ! -s conftest.err
39288       } && test -s conftest$ac_exeext && {
39289	 test "$cross_compiling" = yes ||
39290	 $as_test_x conftest$ac_exeext
39291       }; then
39292  gl_cv_termcap=libtermcap
39293else
39294  $as_echo "$as_me: failed program was:" >&5
39295sed 's/^/| /' conftest.$ac_ext >&5
39296
39297
39298fi
39299
39300rm -rf conftest.dSYM
39301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39302      conftest$ac_exeext conftest.$ac_ext
39303            LIBS="$gl_save_LIBS"
39304          fi
39305        fi
39306
39307fi
39308{ $as_echo "$as_me:$LINENO: result: $gl_cv_termcap" >&5
39309$as_echo "$gl_cv_termcap" >&6; }
39310      case "$gl_cv_termcap" in
39311        libc)
39312          LIBTERMINFO=
39313          LTLIBTERMINFO=
39314          INCTERMINFO=
39315          ;;
39316        libncurses)
39317          LIBTERMINFO="$LIBNCURSES"
39318          LTLIBTERMINFO="$LTLIBNCURSES"
39319          INCTERMINFO="$INCNCURSES"
39320          ;;
39321        libtermcap)
39322          LIBTERMINFO="$LIBTERMCAP"
39323          LTLIBTERMINFO="$LTLIBTERMCAP"
39324          INCTERMINFO="$INCTERMCAP"
39325          ;;
39326      esac
39327      case "$gl_cv_termcap" in
39328        libc | libncurses | libtermcap)
39329
39330cat >>confdefs.h <<\_ACEOF
39331#define HAVE_TERMCAP 1
39332_ACEOF
39333
39334          ;;
39335      esac
39336      ;;
39337  esac
39338
39339
39340
39341
39342      { $as_echo "$as_me:$LINENO: checking for tparam" >&5
39343$as_echo_n "checking for tparam... " >&6; }
39344if test "${gl_cv_terminfo_tparam+set}" = set; then
39345  $as_echo_n "(cached) " >&6
39346else
39347
39348    gl_save_LIBS="$LIBS"
39349    LIBS="$LIBS $LIBTERMINFO"
39350    gl_save_CPPFLAGS="$CPPFLAGS"
39351    CPPFLAGS="$CPPFLAGS $INCTERMINFO"
39352    cat >conftest.$ac_ext <<_ACEOF
39353/* confdefs.h.  */
39354_ACEOF
39355cat confdefs.h >>conftest.$ac_ext
39356cat >>conftest.$ac_ext <<_ACEOF
39357/* end confdefs.h.  */
39358extern
39359      #ifdef __cplusplus
39360      "C"
39361      #endif
39362      char * tparam (const char *, void *, int, ...);
39363      char buf;
39364
39365int
39366main ()
39367{
39368return tparam ("\033\133%dm", &buf, 1, 8);
39369  ;
39370  return 0;
39371}
39372_ACEOF
39373rm -f conftest.$ac_objext conftest$ac_exeext
39374if { (ac_try="$ac_link"
39375case "(($ac_try" in
39376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39377  *) ac_try_echo=$ac_try;;
39378esac
39379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39380$as_echo "$ac_try_echo") >&5
39381  (eval "$ac_link") 2>conftest.er1
39382  ac_status=$?
39383  grep -v '^ *+' conftest.er1 >conftest.err
39384  rm -f conftest.er1
39385  cat conftest.err >&5
39386  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39387  (exit $ac_status); } && {
39388	 test -z "$ac_c_werror_flag" ||
39389	 test ! -s conftest.err
39390       } && test -s conftest$ac_exeext && {
39391	 test "$cross_compiling" = yes ||
39392	 $as_test_x conftest$ac_exeext
39393       }; then
39394  gl_cv_terminfo_tparam=yes
39395else
39396  $as_echo "$as_me: failed program was:" >&5
39397sed 's/^/| /' conftest.$ac_ext >&5
39398
39399	gl_cv_terminfo_tparam=no
39400fi
39401
39402rm -rf conftest.dSYM
39403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39404      conftest$ac_exeext conftest.$ac_ext
39405    CPPFLAGS="$gl_save_CPPFLAGS"
39406    LIBS="$gl_save_LIBS"
39407
39408fi
39409{ $as_echo "$as_me:$LINENO: result: $gl_cv_terminfo_tparam" >&5
39410$as_echo "$gl_cv_terminfo_tparam" >&6; }
39411  if test $gl_cv_terminfo_tparam = yes; then
39412
39413cat >>confdefs.h <<\_ACEOF
39414#define HAVE_TPARAM 1
39415_ACEOF
39416
39417  else
39418            { $as_echo "$as_me:$LINENO: checking for tparm" >&5
39419$as_echo_n "checking for tparm... " >&6; }
39420if test "${gl_cv_terminfo_tparm+set}" = set; then
39421  $as_echo_n "(cached) " >&6
39422else
39423
39424      gl_save_LIBS="$LIBS"
39425      LIBS="$LIBS $LIBTERMINFO"
39426      gl_save_CPPFLAGS="$CPPFLAGS"
39427      CPPFLAGS="$CPPFLAGS $INCTERMINFO"
39428      cat >conftest.$ac_ext <<_ACEOF
39429/* confdefs.h.  */
39430_ACEOF
39431cat confdefs.h >>conftest.$ac_ext
39432cat >>conftest.$ac_ext <<_ACEOF
39433/* end confdefs.h.  */
39434extern
39435        #ifdef __cplusplus
39436        "C"
39437        #endif
39438        char * tparm (const char *, ...);
39439
39440int
39441main ()
39442{
39443return tparm ("\033\133%dm", 8);
39444  ;
39445  return 0;
39446}
39447_ACEOF
39448rm -f conftest.$ac_objext conftest$ac_exeext
39449if { (ac_try="$ac_link"
39450case "(($ac_try" in
39451  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39452  *) ac_try_echo=$ac_try;;
39453esac
39454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39455$as_echo "$ac_try_echo") >&5
39456  (eval "$ac_link") 2>conftest.er1
39457  ac_status=$?
39458  grep -v '^ *+' conftest.er1 >conftest.err
39459  rm -f conftest.er1
39460  cat conftest.err >&5
39461  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39462  (exit $ac_status); } && {
39463	 test -z "$ac_c_werror_flag" ||
39464	 test ! -s conftest.err
39465       } && test -s conftest$ac_exeext && {
39466	 test "$cross_compiling" = yes ||
39467	 $as_test_x conftest$ac_exeext
39468       }; then
39469  gl_cv_terminfo_tparm=yes
39470else
39471  $as_echo "$as_me: failed program was:" >&5
39472sed 's/^/| /' conftest.$ac_ext >&5
39473
39474	gl_cv_terminfo_tparm=no
39475fi
39476
39477rm -rf conftest.dSYM
39478rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39479      conftest$ac_exeext conftest.$ac_ext
39480      CPPFLAGS="$gl_save_CPPFLAGS"
39481      LIBS="$gl_save_LIBS"
39482
39483fi
39484{ $as_echo "$as_me:$LINENO: result: $gl_cv_terminfo_tparm" >&5
39485$as_echo "$gl_cv_terminfo_tparm" >&6; }
39486  fi
39487
39488
39489      { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
39490$as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
39491if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
39492  $as_echo_n "(cached) " >&6
39493else
39494  cat >conftest.$ac_ext <<_ACEOF
39495/* confdefs.h.  */
39496_ACEOF
39497cat confdefs.h >>conftest.$ac_ext
39498cat >>conftest.$ac_ext <<_ACEOF
39499/* end confdefs.h.  */
39500$ac_includes_default
39501int
39502main ()
39503{
39504#ifndef clearerr_unlocked
39505  (void) clearerr_unlocked;
39506#endif
39507
39508  ;
39509  return 0;
39510}
39511_ACEOF
39512rm -f conftest.$ac_objext
39513if { (ac_try="$ac_compile"
39514case "(($ac_try" in
39515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39516  *) ac_try_echo=$ac_try;;
39517esac
39518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39519$as_echo "$ac_try_echo") >&5
39520  (eval "$ac_compile") 2>conftest.er1
39521  ac_status=$?
39522  grep -v '^ *+' conftest.er1 >conftest.err
39523  rm -f conftest.er1
39524  cat conftest.err >&5
39525  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39526  (exit $ac_status); } && {
39527	 test -z "$ac_c_werror_flag" ||
39528	 test ! -s conftest.err
39529       } && test -s conftest.$ac_objext; then
39530  ac_cv_have_decl_clearerr_unlocked=yes
39531else
39532  $as_echo "$as_me: failed program was:" >&5
39533sed 's/^/| /' conftest.$ac_ext >&5
39534
39535	ac_cv_have_decl_clearerr_unlocked=no
39536fi
39537
39538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39539fi
39540{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
39541$as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
39542if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
39543
39544cat >>confdefs.h <<_ACEOF
39545#define HAVE_DECL_CLEARERR_UNLOCKED 1
39546_ACEOF
39547
39548
39549else
39550  cat >>confdefs.h <<_ACEOF
39551#define HAVE_DECL_CLEARERR_UNLOCKED 0
39552_ACEOF
39553
39554
39555fi
39556
39557
39558
39559
39560      { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
39561$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
39562if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
39563  $as_echo_n "(cached) " >&6
39564else
39565  cat >conftest.$ac_ext <<_ACEOF
39566/* confdefs.h.  */
39567_ACEOF
39568cat confdefs.h >>conftest.$ac_ext
39569cat >>conftest.$ac_ext <<_ACEOF
39570/* end confdefs.h.  */
39571$ac_includes_default
39572int
39573main ()
39574{
39575#ifndef feof_unlocked
39576  (void) feof_unlocked;
39577#endif
39578
39579  ;
39580  return 0;
39581}
39582_ACEOF
39583rm -f conftest.$ac_objext
39584if { (ac_try="$ac_compile"
39585case "(($ac_try" in
39586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39587  *) ac_try_echo=$ac_try;;
39588esac
39589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39590$as_echo "$ac_try_echo") >&5
39591  (eval "$ac_compile") 2>conftest.er1
39592  ac_status=$?
39593  grep -v '^ *+' conftest.er1 >conftest.err
39594  rm -f conftest.er1
39595  cat conftest.err >&5
39596  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39597  (exit $ac_status); } && {
39598	 test -z "$ac_c_werror_flag" ||
39599	 test ! -s conftest.err
39600       } && test -s conftest.$ac_objext; then
39601  ac_cv_have_decl_feof_unlocked=yes
39602else
39603  $as_echo "$as_me: failed program was:" >&5
39604sed 's/^/| /' conftest.$ac_ext >&5
39605
39606	ac_cv_have_decl_feof_unlocked=no
39607fi
39608
39609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39610fi
39611{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
39612$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
39613if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
39614
39615cat >>confdefs.h <<_ACEOF
39616#define HAVE_DECL_FEOF_UNLOCKED 1
39617_ACEOF
39618
39619
39620else
39621  cat >>confdefs.h <<_ACEOF
39622#define HAVE_DECL_FEOF_UNLOCKED 0
39623_ACEOF
39624
39625
39626fi
39627
39628
39629
39630
39631      { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
39632$as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
39633if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
39634  $as_echo_n "(cached) " >&6
39635else
39636  cat >conftest.$ac_ext <<_ACEOF
39637/* confdefs.h.  */
39638_ACEOF
39639cat confdefs.h >>conftest.$ac_ext
39640cat >>conftest.$ac_ext <<_ACEOF
39641/* end confdefs.h.  */
39642$ac_includes_default
39643int
39644main ()
39645{
39646#ifndef ferror_unlocked
39647  (void) ferror_unlocked;
39648#endif
39649
39650  ;
39651  return 0;
39652}
39653_ACEOF
39654rm -f conftest.$ac_objext
39655if { (ac_try="$ac_compile"
39656case "(($ac_try" in
39657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39658  *) ac_try_echo=$ac_try;;
39659esac
39660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39661$as_echo "$ac_try_echo") >&5
39662  (eval "$ac_compile") 2>conftest.er1
39663  ac_status=$?
39664  grep -v '^ *+' conftest.er1 >conftest.err
39665  rm -f conftest.er1
39666  cat conftest.err >&5
39667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668  (exit $ac_status); } && {
39669	 test -z "$ac_c_werror_flag" ||
39670	 test ! -s conftest.err
39671       } && test -s conftest.$ac_objext; then
39672  ac_cv_have_decl_ferror_unlocked=yes
39673else
39674  $as_echo "$as_me: failed program was:" >&5
39675sed 's/^/| /' conftest.$ac_ext >&5
39676
39677	ac_cv_have_decl_ferror_unlocked=no
39678fi
39679
39680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39681fi
39682{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
39683$as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
39684if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
39685
39686cat >>confdefs.h <<_ACEOF
39687#define HAVE_DECL_FERROR_UNLOCKED 1
39688_ACEOF
39689
39690
39691else
39692  cat >>confdefs.h <<_ACEOF
39693#define HAVE_DECL_FERROR_UNLOCKED 0
39694_ACEOF
39695
39696
39697fi
39698
39699
39700
39701
39702      { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
39703$as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
39704if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
39705  $as_echo_n "(cached) " >&6
39706else
39707  cat >conftest.$ac_ext <<_ACEOF
39708/* confdefs.h.  */
39709_ACEOF
39710cat confdefs.h >>conftest.$ac_ext
39711cat >>conftest.$ac_ext <<_ACEOF
39712/* end confdefs.h.  */
39713$ac_includes_default
39714int
39715main ()
39716{
39717#ifndef fflush_unlocked
39718  (void) fflush_unlocked;
39719#endif
39720
39721  ;
39722  return 0;
39723}
39724_ACEOF
39725rm -f conftest.$ac_objext
39726if { (ac_try="$ac_compile"
39727case "(($ac_try" in
39728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39729  *) ac_try_echo=$ac_try;;
39730esac
39731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39732$as_echo "$ac_try_echo") >&5
39733  (eval "$ac_compile") 2>conftest.er1
39734  ac_status=$?
39735  grep -v '^ *+' conftest.er1 >conftest.err
39736  rm -f conftest.er1
39737  cat conftest.err >&5
39738  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739  (exit $ac_status); } && {
39740	 test -z "$ac_c_werror_flag" ||
39741	 test ! -s conftest.err
39742       } && test -s conftest.$ac_objext; then
39743  ac_cv_have_decl_fflush_unlocked=yes
39744else
39745  $as_echo "$as_me: failed program was:" >&5
39746sed 's/^/| /' conftest.$ac_ext >&5
39747
39748	ac_cv_have_decl_fflush_unlocked=no
39749fi
39750
39751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39752fi
39753{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
39754$as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
39755if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
39756
39757cat >>confdefs.h <<_ACEOF
39758#define HAVE_DECL_FFLUSH_UNLOCKED 1
39759_ACEOF
39760
39761
39762else
39763  cat >>confdefs.h <<_ACEOF
39764#define HAVE_DECL_FFLUSH_UNLOCKED 0
39765_ACEOF
39766
39767
39768fi
39769
39770
39771
39772
39773      { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
39774$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
39775if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
39776  $as_echo_n "(cached) " >&6
39777else
39778  cat >conftest.$ac_ext <<_ACEOF
39779/* confdefs.h.  */
39780_ACEOF
39781cat confdefs.h >>conftest.$ac_ext
39782cat >>conftest.$ac_ext <<_ACEOF
39783/* end confdefs.h.  */
39784$ac_includes_default
39785int
39786main ()
39787{
39788#ifndef fgets_unlocked
39789  (void) fgets_unlocked;
39790#endif
39791
39792  ;
39793  return 0;
39794}
39795_ACEOF
39796rm -f conftest.$ac_objext
39797if { (ac_try="$ac_compile"
39798case "(($ac_try" in
39799  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39800  *) ac_try_echo=$ac_try;;
39801esac
39802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39803$as_echo "$ac_try_echo") >&5
39804  (eval "$ac_compile") 2>conftest.er1
39805  ac_status=$?
39806  grep -v '^ *+' conftest.er1 >conftest.err
39807  rm -f conftest.er1
39808  cat conftest.err >&5
39809  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39810  (exit $ac_status); } && {
39811	 test -z "$ac_c_werror_flag" ||
39812	 test ! -s conftest.err
39813       } && test -s conftest.$ac_objext; then
39814  ac_cv_have_decl_fgets_unlocked=yes
39815else
39816  $as_echo "$as_me: failed program was:" >&5
39817sed 's/^/| /' conftest.$ac_ext >&5
39818
39819	ac_cv_have_decl_fgets_unlocked=no
39820fi
39821
39822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39823fi
39824{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
39825$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
39826if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
39827
39828cat >>confdefs.h <<_ACEOF
39829#define HAVE_DECL_FGETS_UNLOCKED 1
39830_ACEOF
39831
39832
39833else
39834  cat >>confdefs.h <<_ACEOF
39835#define HAVE_DECL_FGETS_UNLOCKED 0
39836_ACEOF
39837
39838
39839fi
39840
39841
39842
39843
39844      { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
39845$as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
39846if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
39847  $as_echo_n "(cached) " >&6
39848else
39849  cat >conftest.$ac_ext <<_ACEOF
39850/* confdefs.h.  */
39851_ACEOF
39852cat confdefs.h >>conftest.$ac_ext
39853cat >>conftest.$ac_ext <<_ACEOF
39854/* end confdefs.h.  */
39855$ac_includes_default
39856int
39857main ()
39858{
39859#ifndef fputc_unlocked
39860  (void) fputc_unlocked;
39861#endif
39862
39863  ;
39864  return 0;
39865}
39866_ACEOF
39867rm -f conftest.$ac_objext
39868if { (ac_try="$ac_compile"
39869case "(($ac_try" in
39870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39871  *) ac_try_echo=$ac_try;;
39872esac
39873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39874$as_echo "$ac_try_echo") >&5
39875  (eval "$ac_compile") 2>conftest.er1
39876  ac_status=$?
39877  grep -v '^ *+' conftest.er1 >conftest.err
39878  rm -f conftest.er1
39879  cat conftest.err >&5
39880  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881  (exit $ac_status); } && {
39882	 test -z "$ac_c_werror_flag" ||
39883	 test ! -s conftest.err
39884       } && test -s conftest.$ac_objext; then
39885  ac_cv_have_decl_fputc_unlocked=yes
39886else
39887  $as_echo "$as_me: failed program was:" >&5
39888sed 's/^/| /' conftest.$ac_ext >&5
39889
39890	ac_cv_have_decl_fputc_unlocked=no
39891fi
39892
39893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39894fi
39895{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
39896$as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
39897if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
39898
39899cat >>confdefs.h <<_ACEOF
39900#define HAVE_DECL_FPUTC_UNLOCKED 1
39901_ACEOF
39902
39903
39904else
39905  cat >>confdefs.h <<_ACEOF
39906#define HAVE_DECL_FPUTC_UNLOCKED 0
39907_ACEOF
39908
39909
39910fi
39911
39912
39913
39914
39915      { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
39916$as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
39917if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
39918  $as_echo_n "(cached) " >&6
39919else
39920  cat >conftest.$ac_ext <<_ACEOF
39921/* confdefs.h.  */
39922_ACEOF
39923cat confdefs.h >>conftest.$ac_ext
39924cat >>conftest.$ac_ext <<_ACEOF
39925/* end confdefs.h.  */
39926$ac_includes_default
39927int
39928main ()
39929{
39930#ifndef fputs_unlocked
39931  (void) fputs_unlocked;
39932#endif
39933
39934  ;
39935  return 0;
39936}
39937_ACEOF
39938rm -f conftest.$ac_objext
39939if { (ac_try="$ac_compile"
39940case "(($ac_try" in
39941  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39942  *) ac_try_echo=$ac_try;;
39943esac
39944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39945$as_echo "$ac_try_echo") >&5
39946  (eval "$ac_compile") 2>conftest.er1
39947  ac_status=$?
39948  grep -v '^ *+' conftest.er1 >conftest.err
39949  rm -f conftest.er1
39950  cat conftest.err >&5
39951  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39952  (exit $ac_status); } && {
39953	 test -z "$ac_c_werror_flag" ||
39954	 test ! -s conftest.err
39955       } && test -s conftest.$ac_objext; then
39956  ac_cv_have_decl_fputs_unlocked=yes
39957else
39958  $as_echo "$as_me: failed program was:" >&5
39959sed 's/^/| /' conftest.$ac_ext >&5
39960
39961	ac_cv_have_decl_fputs_unlocked=no
39962fi
39963
39964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39965fi
39966{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
39967$as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
39968if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
39969
39970cat >>confdefs.h <<_ACEOF
39971#define HAVE_DECL_FPUTS_UNLOCKED 1
39972_ACEOF
39973
39974
39975else
39976  cat >>confdefs.h <<_ACEOF
39977#define HAVE_DECL_FPUTS_UNLOCKED 0
39978_ACEOF
39979
39980
39981fi
39982
39983
39984
39985
39986      { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
39987$as_echo_n "checking whether fread_unlocked is declared... " >&6; }
39988if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
39989  $as_echo_n "(cached) " >&6
39990else
39991  cat >conftest.$ac_ext <<_ACEOF
39992/* confdefs.h.  */
39993_ACEOF
39994cat confdefs.h >>conftest.$ac_ext
39995cat >>conftest.$ac_ext <<_ACEOF
39996/* end confdefs.h.  */
39997$ac_includes_default
39998int
39999main ()
40000{
40001#ifndef fread_unlocked
40002  (void) fread_unlocked;
40003#endif
40004
40005  ;
40006  return 0;
40007}
40008_ACEOF
40009rm -f conftest.$ac_objext
40010if { (ac_try="$ac_compile"
40011case "(($ac_try" in
40012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40013  *) ac_try_echo=$ac_try;;
40014esac
40015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40016$as_echo "$ac_try_echo") >&5
40017  (eval "$ac_compile") 2>conftest.er1
40018  ac_status=$?
40019  grep -v '^ *+' conftest.er1 >conftest.err
40020  rm -f conftest.er1
40021  cat conftest.err >&5
40022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40023  (exit $ac_status); } && {
40024	 test -z "$ac_c_werror_flag" ||
40025	 test ! -s conftest.err
40026       } && test -s conftest.$ac_objext; then
40027  ac_cv_have_decl_fread_unlocked=yes
40028else
40029  $as_echo "$as_me: failed program was:" >&5
40030sed 's/^/| /' conftest.$ac_ext >&5
40031
40032	ac_cv_have_decl_fread_unlocked=no
40033fi
40034
40035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40036fi
40037{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
40038$as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
40039if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
40040
40041cat >>confdefs.h <<_ACEOF
40042#define HAVE_DECL_FREAD_UNLOCKED 1
40043_ACEOF
40044
40045
40046else
40047  cat >>confdefs.h <<_ACEOF
40048#define HAVE_DECL_FREAD_UNLOCKED 0
40049_ACEOF
40050
40051
40052fi
40053
40054
40055
40056
40057      { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
40058$as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
40059if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
40060  $as_echo_n "(cached) " >&6
40061else
40062  cat >conftest.$ac_ext <<_ACEOF
40063/* confdefs.h.  */
40064_ACEOF
40065cat confdefs.h >>conftest.$ac_ext
40066cat >>conftest.$ac_ext <<_ACEOF
40067/* end confdefs.h.  */
40068$ac_includes_default
40069int
40070main ()
40071{
40072#ifndef fwrite_unlocked
40073  (void) fwrite_unlocked;
40074#endif
40075
40076  ;
40077  return 0;
40078}
40079_ACEOF
40080rm -f conftest.$ac_objext
40081if { (ac_try="$ac_compile"
40082case "(($ac_try" in
40083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40084  *) ac_try_echo=$ac_try;;
40085esac
40086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40087$as_echo "$ac_try_echo") >&5
40088  (eval "$ac_compile") 2>conftest.er1
40089  ac_status=$?
40090  grep -v '^ *+' conftest.er1 >conftest.err
40091  rm -f conftest.er1
40092  cat conftest.err >&5
40093  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094  (exit $ac_status); } && {
40095	 test -z "$ac_c_werror_flag" ||
40096	 test ! -s conftest.err
40097       } && test -s conftest.$ac_objext; then
40098  ac_cv_have_decl_fwrite_unlocked=yes
40099else
40100  $as_echo "$as_me: failed program was:" >&5
40101sed 's/^/| /' conftest.$ac_ext >&5
40102
40103	ac_cv_have_decl_fwrite_unlocked=no
40104fi
40105
40106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40107fi
40108{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
40109$as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
40110if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
40111
40112cat >>confdefs.h <<_ACEOF
40113#define HAVE_DECL_FWRITE_UNLOCKED 1
40114_ACEOF
40115
40116
40117else
40118  cat >>confdefs.h <<_ACEOF
40119#define HAVE_DECL_FWRITE_UNLOCKED 0
40120_ACEOF
40121
40122
40123fi
40124
40125
40126
40127
40128      { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
40129$as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
40130if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
40131  $as_echo_n "(cached) " >&6
40132else
40133  cat >conftest.$ac_ext <<_ACEOF
40134/* confdefs.h.  */
40135_ACEOF
40136cat confdefs.h >>conftest.$ac_ext
40137cat >>conftest.$ac_ext <<_ACEOF
40138/* end confdefs.h.  */
40139$ac_includes_default
40140int
40141main ()
40142{
40143#ifndef getchar_unlocked
40144  (void) getchar_unlocked;
40145#endif
40146
40147  ;
40148  return 0;
40149}
40150_ACEOF
40151rm -f conftest.$ac_objext
40152if { (ac_try="$ac_compile"
40153case "(($ac_try" in
40154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40155  *) ac_try_echo=$ac_try;;
40156esac
40157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40158$as_echo "$ac_try_echo") >&5
40159  (eval "$ac_compile") 2>conftest.er1
40160  ac_status=$?
40161  grep -v '^ *+' conftest.er1 >conftest.err
40162  rm -f conftest.er1
40163  cat conftest.err >&5
40164  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40165  (exit $ac_status); } && {
40166	 test -z "$ac_c_werror_flag" ||
40167	 test ! -s conftest.err
40168       } && test -s conftest.$ac_objext; then
40169  ac_cv_have_decl_getchar_unlocked=yes
40170else
40171  $as_echo "$as_me: failed program was:" >&5
40172sed 's/^/| /' conftest.$ac_ext >&5
40173
40174	ac_cv_have_decl_getchar_unlocked=no
40175fi
40176
40177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40178fi
40179{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
40180$as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
40181if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
40182
40183cat >>confdefs.h <<_ACEOF
40184#define HAVE_DECL_GETCHAR_UNLOCKED 1
40185_ACEOF
40186
40187
40188else
40189  cat >>confdefs.h <<_ACEOF
40190#define HAVE_DECL_GETCHAR_UNLOCKED 0
40191_ACEOF
40192
40193
40194fi
40195
40196
40197
40198
40199      { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
40200$as_echo_n "checking whether putc_unlocked is declared... " >&6; }
40201if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
40202  $as_echo_n "(cached) " >&6
40203else
40204  cat >conftest.$ac_ext <<_ACEOF
40205/* confdefs.h.  */
40206_ACEOF
40207cat confdefs.h >>conftest.$ac_ext
40208cat >>conftest.$ac_ext <<_ACEOF
40209/* end confdefs.h.  */
40210$ac_includes_default
40211int
40212main ()
40213{
40214#ifndef putc_unlocked
40215  (void) putc_unlocked;
40216#endif
40217
40218  ;
40219  return 0;
40220}
40221_ACEOF
40222rm -f conftest.$ac_objext
40223if { (ac_try="$ac_compile"
40224case "(($ac_try" in
40225  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40226  *) ac_try_echo=$ac_try;;
40227esac
40228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40229$as_echo "$ac_try_echo") >&5
40230  (eval "$ac_compile") 2>conftest.er1
40231  ac_status=$?
40232  grep -v '^ *+' conftest.er1 >conftest.err
40233  rm -f conftest.er1
40234  cat conftest.err >&5
40235  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236  (exit $ac_status); } && {
40237	 test -z "$ac_c_werror_flag" ||
40238	 test ! -s conftest.err
40239       } && test -s conftest.$ac_objext; then
40240  ac_cv_have_decl_putc_unlocked=yes
40241else
40242  $as_echo "$as_me: failed program was:" >&5
40243sed 's/^/| /' conftest.$ac_ext >&5
40244
40245	ac_cv_have_decl_putc_unlocked=no
40246fi
40247
40248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40249fi
40250{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
40251$as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
40252if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
40253
40254cat >>confdefs.h <<_ACEOF
40255#define HAVE_DECL_PUTC_UNLOCKED 1
40256_ACEOF
40257
40258
40259else
40260  cat >>confdefs.h <<_ACEOF
40261#define HAVE_DECL_PUTC_UNLOCKED 0
40262_ACEOF
40263
40264
40265fi
40266
40267
40268
40269
40270      { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
40271$as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
40272if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
40273  $as_echo_n "(cached) " >&6
40274else
40275  cat >conftest.$ac_ext <<_ACEOF
40276/* confdefs.h.  */
40277_ACEOF
40278cat confdefs.h >>conftest.$ac_ext
40279cat >>conftest.$ac_ext <<_ACEOF
40280/* end confdefs.h.  */
40281$ac_includes_default
40282int
40283main ()
40284{
40285#ifndef putchar_unlocked
40286  (void) putchar_unlocked;
40287#endif
40288
40289  ;
40290  return 0;
40291}
40292_ACEOF
40293rm -f conftest.$ac_objext
40294if { (ac_try="$ac_compile"
40295case "(($ac_try" in
40296  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40297  *) ac_try_echo=$ac_try;;
40298esac
40299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40300$as_echo "$ac_try_echo") >&5
40301  (eval "$ac_compile") 2>conftest.er1
40302  ac_status=$?
40303  grep -v '^ *+' conftest.er1 >conftest.err
40304  rm -f conftest.er1
40305  cat conftest.err >&5
40306  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40307  (exit $ac_status); } && {
40308	 test -z "$ac_c_werror_flag" ||
40309	 test ! -s conftest.err
40310       } && test -s conftest.$ac_objext; then
40311  ac_cv_have_decl_putchar_unlocked=yes
40312else
40313  $as_echo "$as_me: failed program was:" >&5
40314sed 's/^/| /' conftest.$ac_ext >&5
40315
40316	ac_cv_have_decl_putchar_unlocked=no
40317fi
40318
40319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40320fi
40321{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
40322$as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
40323if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
40324
40325cat >>confdefs.h <<_ACEOF
40326#define HAVE_DECL_PUTCHAR_UNLOCKED 1
40327_ACEOF
40328
40329
40330else
40331  cat >>confdefs.h <<_ACEOF
40332#define HAVE_DECL_PUTCHAR_UNLOCKED 0
40333_ACEOF
40334
40335
40336fi
40337
40338
40339
40340
40341
40342  { $as_echo "$as_me:$LINENO: checking for EOVERFLOW" >&5
40343$as_echo_n "checking for EOVERFLOW... " >&6; }
40344if test "${ac_cv_decl_EOVERFLOW+set}" = set; then
40345  $as_echo_n "(cached) " >&6
40346else
40347
40348    cat >conftest.$ac_ext <<_ACEOF
40349/* confdefs.h.  */
40350_ACEOF
40351cat confdefs.h >>conftest.$ac_ext
40352cat >>conftest.$ac_ext <<_ACEOF
40353/* end confdefs.h.  */
40354
40355#include <errno.h>
40356#ifdef EOVERFLOW
40357yes
40358#endif
40359
40360_ACEOF
40361if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40362  $EGREP "yes" >/dev/null 2>&1; then
40363  have_eoverflow=1
40364fi
40365rm -f conftest*
40366
40367    if test -n "$have_eoverflow"; then
40368            ac_cv_decl_EOVERFLOW=yes
40369    else
40370      cat >conftest.$ac_ext <<_ACEOF
40371/* confdefs.h.  */
40372_ACEOF
40373cat confdefs.h >>conftest.$ac_ext
40374cat >>conftest.$ac_ext <<_ACEOF
40375/* end confdefs.h.  */
40376
40377#define _XOPEN_SOURCE_EXTENDED 1
40378#include <errno.h>
40379#ifdef EOVERFLOW
40380yes
40381#endif
40382
40383_ACEOF
40384if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40385  $EGREP "yes" >/dev/null 2>&1; then
40386  have_eoverflow=1
40387fi
40388rm -f conftest*
40389
40390      if test -n "$have_eoverflow"; then
40391                        if test "$cross_compiling" = yes; then
40392  # Depending upon the size, compute the lo and hi bounds.
40393cat >conftest.$ac_ext <<_ACEOF
40394/* confdefs.h.  */
40395_ACEOF
40396cat confdefs.h >>conftest.$ac_ext
40397cat >>conftest.$ac_ext <<_ACEOF
40398/* end confdefs.h.  */
40399
40400#define _XOPEN_SOURCE_EXTENDED 1
40401#include <errno.h>
40402/* The following two lines are a workaround against an autoconf-2.52 bug.  */
40403#include <stdio.h>
40404#include <stdlib.h>
40405
40406int
40407main ()
40408{
40409static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
40410test_array [0] = 0
40411
40412  ;
40413  return 0;
40414}
40415_ACEOF
40416rm -f conftest.$ac_objext
40417if { (ac_try="$ac_compile"
40418case "(($ac_try" in
40419  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40420  *) ac_try_echo=$ac_try;;
40421esac
40422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40423$as_echo "$ac_try_echo") >&5
40424  (eval "$ac_compile") 2>conftest.er1
40425  ac_status=$?
40426  grep -v '^ *+' conftest.er1 >conftest.err
40427  rm -f conftest.er1
40428  cat conftest.err >&5
40429  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430  (exit $ac_status); } && {
40431	 test -z "$ac_c_werror_flag" ||
40432	 test ! -s conftest.err
40433       } && test -s conftest.$ac_objext; then
40434  ac_lo=0 ac_mid=0
40435  while :; do
40436    cat >conftest.$ac_ext <<_ACEOF
40437/* confdefs.h.  */
40438_ACEOF
40439cat confdefs.h >>conftest.$ac_ext
40440cat >>conftest.$ac_ext <<_ACEOF
40441/* end confdefs.h.  */
40442
40443#define _XOPEN_SOURCE_EXTENDED 1
40444#include <errno.h>
40445/* The following two lines are a workaround against an autoconf-2.52 bug.  */
40446#include <stdio.h>
40447#include <stdlib.h>
40448
40449int
40450main ()
40451{
40452static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
40453test_array [0] = 0
40454
40455  ;
40456  return 0;
40457}
40458_ACEOF
40459rm -f conftest.$ac_objext
40460if { (ac_try="$ac_compile"
40461case "(($ac_try" in
40462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40463  *) ac_try_echo=$ac_try;;
40464esac
40465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40466$as_echo "$ac_try_echo") >&5
40467  (eval "$ac_compile") 2>conftest.er1
40468  ac_status=$?
40469  grep -v '^ *+' conftest.er1 >conftest.err
40470  rm -f conftest.er1
40471  cat conftest.err >&5
40472  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473  (exit $ac_status); } && {
40474	 test -z "$ac_c_werror_flag" ||
40475	 test ! -s conftest.err
40476       } && test -s conftest.$ac_objext; then
40477  ac_hi=$ac_mid; break
40478else
40479  $as_echo "$as_me: failed program was:" >&5
40480sed 's/^/| /' conftest.$ac_ext >&5
40481
40482	ac_lo=`expr $ac_mid + 1`
40483			if test $ac_lo -le $ac_mid; then
40484			  ac_lo= ac_hi=
40485			  break
40486			fi
40487			ac_mid=`expr 2 '*' $ac_mid + 1`
40488fi
40489
40490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40491  done
40492else
40493  $as_echo "$as_me: failed program was:" >&5
40494sed 's/^/| /' conftest.$ac_ext >&5
40495
40496	cat >conftest.$ac_ext <<_ACEOF
40497/* confdefs.h.  */
40498_ACEOF
40499cat confdefs.h >>conftest.$ac_ext
40500cat >>conftest.$ac_ext <<_ACEOF
40501/* end confdefs.h.  */
40502
40503#define _XOPEN_SOURCE_EXTENDED 1
40504#include <errno.h>
40505/* The following two lines are a workaround against an autoconf-2.52 bug.  */
40506#include <stdio.h>
40507#include <stdlib.h>
40508
40509int
40510main ()
40511{
40512static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
40513test_array [0] = 0
40514
40515  ;
40516  return 0;
40517}
40518_ACEOF
40519rm -f conftest.$ac_objext
40520if { (ac_try="$ac_compile"
40521case "(($ac_try" in
40522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40523  *) ac_try_echo=$ac_try;;
40524esac
40525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40526$as_echo "$ac_try_echo") >&5
40527  (eval "$ac_compile") 2>conftest.er1
40528  ac_status=$?
40529  grep -v '^ *+' conftest.er1 >conftest.err
40530  rm -f conftest.er1
40531  cat conftest.err >&5
40532  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40533  (exit $ac_status); } && {
40534	 test -z "$ac_c_werror_flag" ||
40535	 test ! -s conftest.err
40536       } && test -s conftest.$ac_objext; then
40537  ac_hi=-1 ac_mid=-1
40538  while :; do
40539    cat >conftest.$ac_ext <<_ACEOF
40540/* confdefs.h.  */
40541_ACEOF
40542cat confdefs.h >>conftest.$ac_ext
40543cat >>conftest.$ac_ext <<_ACEOF
40544/* end confdefs.h.  */
40545
40546#define _XOPEN_SOURCE_EXTENDED 1
40547#include <errno.h>
40548/* The following two lines are a workaround against an autoconf-2.52 bug.  */
40549#include <stdio.h>
40550#include <stdlib.h>
40551
40552int
40553main ()
40554{
40555static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
40556test_array [0] = 0
40557
40558  ;
40559  return 0;
40560}
40561_ACEOF
40562rm -f conftest.$ac_objext
40563if { (ac_try="$ac_compile"
40564case "(($ac_try" in
40565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40566  *) ac_try_echo=$ac_try;;
40567esac
40568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40569$as_echo "$ac_try_echo") >&5
40570  (eval "$ac_compile") 2>conftest.er1
40571  ac_status=$?
40572  grep -v '^ *+' conftest.er1 >conftest.err
40573  rm -f conftest.er1
40574  cat conftest.err >&5
40575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576  (exit $ac_status); } && {
40577	 test -z "$ac_c_werror_flag" ||
40578	 test ! -s conftest.err
40579       } && test -s conftest.$ac_objext; then
40580  ac_lo=$ac_mid; break
40581else
40582  $as_echo "$as_me: failed program was:" >&5
40583sed 's/^/| /' conftest.$ac_ext >&5
40584
40585	ac_hi=`expr '(' $ac_mid ')' - 1`
40586			if test $ac_mid -le $ac_hi; then
40587			  ac_lo= ac_hi=
40588			  break
40589			fi
40590			ac_mid=`expr 2 '*' $ac_mid`
40591fi
40592
40593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40594  done
40595else
40596  $as_echo "$as_me: failed program was:" >&5
40597sed 's/^/| /' conftest.$ac_ext >&5
40598
40599	ac_lo= ac_hi=
40600fi
40601
40602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40603fi
40604
40605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40606# Binary search between lo and hi bounds.
40607while test "x$ac_lo" != "x$ac_hi"; do
40608  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40609  cat >conftest.$ac_ext <<_ACEOF
40610/* confdefs.h.  */
40611_ACEOF
40612cat confdefs.h >>conftest.$ac_ext
40613cat >>conftest.$ac_ext <<_ACEOF
40614/* end confdefs.h.  */
40615
40616#define _XOPEN_SOURCE_EXTENDED 1
40617#include <errno.h>
40618/* The following two lines are a workaround against an autoconf-2.52 bug.  */
40619#include <stdio.h>
40620#include <stdlib.h>
40621
40622int
40623main ()
40624{
40625static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
40626test_array [0] = 0
40627
40628  ;
40629  return 0;
40630}
40631_ACEOF
40632rm -f conftest.$ac_objext
40633if { (ac_try="$ac_compile"
40634case "(($ac_try" in
40635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40636  *) ac_try_echo=$ac_try;;
40637esac
40638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40639$as_echo "$ac_try_echo") >&5
40640  (eval "$ac_compile") 2>conftest.er1
40641  ac_status=$?
40642  grep -v '^ *+' conftest.er1 >conftest.err
40643  rm -f conftest.er1
40644  cat conftest.err >&5
40645  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40646  (exit $ac_status); } && {
40647	 test -z "$ac_c_werror_flag" ||
40648	 test ! -s conftest.err
40649       } && test -s conftest.$ac_objext; then
40650  ac_hi=$ac_mid
40651else
40652  $as_echo "$as_me: failed program was:" >&5
40653sed 's/^/| /' conftest.$ac_ext >&5
40654
40655	ac_lo=`expr '(' $ac_mid ')' + 1`
40656fi
40657
40658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40659done
40660case $ac_lo in
40661?*) ac_cv_decl_EOVERFLOW=$ac_lo;;
40662'')  ;;
40663esac
40664else
40665  cat >conftest.$ac_ext <<_ACEOF
40666/* confdefs.h.  */
40667_ACEOF
40668cat confdefs.h >>conftest.$ac_ext
40669cat >>conftest.$ac_ext <<_ACEOF
40670/* end confdefs.h.  */
40671
40672#define _XOPEN_SOURCE_EXTENDED 1
40673#include <errno.h>
40674/* The following two lines are a workaround against an autoconf-2.52 bug.  */
40675#include <stdio.h>
40676#include <stdlib.h>
40677
40678static long int longval () { return EOVERFLOW; }
40679static unsigned long int ulongval () { return EOVERFLOW; }
40680#include <stdio.h>
40681#include <stdlib.h>
40682int
40683main ()
40684{
40685
40686  FILE *f = fopen ("conftest.val", "w");
40687  if (! f)
40688    return 1;
40689  if ((EOVERFLOW) < 0)
40690    {
40691      long int i = longval ();
40692      if (i != (EOVERFLOW))
40693	return 1;
40694      fprintf (f, "%ld", i);
40695    }
40696  else
40697    {
40698      unsigned long int i = ulongval ();
40699      if (i != (EOVERFLOW))
40700	return 1;
40701      fprintf (f, "%lu", i);
40702    }
40703  /* Do not output a trailing newline, as this causes \r\n confusion
40704     on some platforms.  */
40705  return ferror (f) || fclose (f) != 0;
40706
40707  ;
40708  return 0;
40709}
40710_ACEOF
40711rm -f conftest$ac_exeext
40712if { (ac_try="$ac_link"
40713case "(($ac_try" in
40714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40715  *) ac_try_echo=$ac_try;;
40716esac
40717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40718$as_echo "$ac_try_echo") >&5
40719  (eval "$ac_link") 2>&5
40720  ac_status=$?
40721  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40722  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40723  { (case "(($ac_try" in
40724  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40725  *) ac_try_echo=$ac_try;;
40726esac
40727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40728$as_echo "$ac_try_echo") >&5
40729  (eval "$ac_try") 2>&5
40730  ac_status=$?
40731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40732  (exit $ac_status); }; }; then
40733  ac_cv_decl_EOVERFLOW=`cat conftest.val`
40734else
40735  $as_echo "$as_me: program exited with status $ac_status" >&5
40736$as_echo "$as_me: failed program was:" >&5
40737sed 's/^/| /' conftest.$ac_ext >&5
40738
40739fi
40740rm -rf conftest.dSYM
40741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40742fi
40743rm -f conftest.val
40744      else
40745                                ac_cv_decl_EOVERFLOW=E2BIG
40746      fi
40747    fi
40748
40749fi
40750{ $as_echo "$as_me:$LINENO: result: $ac_cv_decl_EOVERFLOW" >&5
40751$as_echo "$ac_cv_decl_EOVERFLOW" >&6; }
40752  if test "$ac_cv_decl_EOVERFLOW" != yes; then
40753
40754cat >>confdefs.h <<_ACEOF
40755#define EOVERFLOW $ac_cv_decl_EOVERFLOW
40756_ACEOF
40757
40758    EOVERFLOW="$ac_cv_decl_EOVERFLOW"
40759
40760  fi
40761
40762
40763
40764
40765
40766
40767
40768
40769
40770
40771  { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
40772$as_echo_n "checking for intmax_t... " >&6; }
40773if test "${gt_cv_c_intmax_t+set}" = set; then
40774  $as_echo_n "(cached) " >&6
40775else
40776  cat >conftest.$ac_ext <<_ACEOF
40777/* confdefs.h.  */
40778_ACEOF
40779cat confdefs.h >>conftest.$ac_ext
40780cat >>conftest.$ac_ext <<_ACEOF
40781/* end confdefs.h.  */
40782
40783#include <stddef.h>
40784#include <stdlib.h>
40785#if HAVE_STDINT_H_WITH_UINTMAX
40786#include <stdint.h>
40787#endif
40788#if HAVE_INTTYPES_H_WITH_UINTMAX
40789#include <inttypes.h>
40790#endif
40791
40792int
40793main ()
40794{
40795intmax_t x = -1; return !x;
40796  ;
40797  return 0;
40798}
40799_ACEOF
40800rm -f conftest.$ac_objext
40801if { (ac_try="$ac_compile"
40802case "(($ac_try" in
40803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40804  *) ac_try_echo=$ac_try;;
40805esac
40806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40807$as_echo "$ac_try_echo") >&5
40808  (eval "$ac_compile") 2>conftest.er1
40809  ac_status=$?
40810  grep -v '^ *+' conftest.er1 >conftest.err
40811  rm -f conftest.er1
40812  cat conftest.err >&5
40813  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40814  (exit $ac_status); } && {
40815	 test -z "$ac_c_werror_flag" ||
40816	 test ! -s conftest.err
40817       } && test -s conftest.$ac_objext; then
40818  gt_cv_c_intmax_t=yes
40819else
40820  $as_echo "$as_me: failed program was:" >&5
40821sed 's/^/| /' conftest.$ac_ext >&5
40822
40823	gt_cv_c_intmax_t=no
40824fi
40825
40826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40827fi
40828{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
40829$as_echo "$gt_cv_c_intmax_t" >&6; }
40830  if test $gt_cv_c_intmax_t = yes; then
40831
40832cat >>confdefs.h <<\_ACEOF
40833#define HAVE_INTMAX_T 1
40834_ACEOF
40835
40836  else
40837
40838    test $ac_cv_type_long_long_int = yes \
40839      && ac_type='long long' \
40840      || ac_type='long'
40841
40842cat >>confdefs.h <<_ACEOF
40843#define intmax_t $ac_type
40844_ACEOF
40845
40846  fi
40847
40848
40849      { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
40850$as_echo_n "checking whether vsnprintf is declared... " >&6; }
40851if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
40852  $as_echo_n "(cached) " >&6
40853else
40854  cat >conftest.$ac_ext <<_ACEOF
40855/* confdefs.h.  */
40856_ACEOF
40857cat confdefs.h >>conftest.$ac_ext
40858cat >>conftest.$ac_ext <<_ACEOF
40859/* end confdefs.h.  */
40860$ac_includes_default
40861int
40862main ()
40863{
40864#ifndef vsnprintf
40865  (void) vsnprintf;
40866#endif
40867
40868  ;
40869  return 0;
40870}
40871_ACEOF
40872rm -f conftest.$ac_objext
40873if { (ac_try="$ac_compile"
40874case "(($ac_try" in
40875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40876  *) ac_try_echo=$ac_try;;
40877esac
40878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40879$as_echo "$ac_try_echo") >&5
40880  (eval "$ac_compile") 2>conftest.er1
40881  ac_status=$?
40882  grep -v '^ *+' conftest.er1 >conftest.err
40883  rm -f conftest.er1
40884  cat conftest.err >&5
40885  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40886  (exit $ac_status); } && {
40887	 test -z "$ac_c_werror_flag" ||
40888	 test ! -s conftest.err
40889       } && test -s conftest.$ac_objext; then
40890  ac_cv_have_decl_vsnprintf=yes
40891else
40892  $as_echo "$as_me: failed program was:" >&5
40893sed 's/^/| /' conftest.$ac_ext >&5
40894
40895	ac_cv_have_decl_vsnprintf=no
40896fi
40897
40898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40899fi
40900{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
40901$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
40902if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
40903
40904cat >>confdefs.h <<_ACEOF
40905#define HAVE_DECL_VSNPRINTF 1
40906_ACEOF
40907
40908
40909else
40910  cat >>confdefs.h <<_ACEOF
40911#define HAVE_DECL_VSNPRINTF 0
40912_ACEOF
40913
40914
40915fi
40916
40917
40918
40919
40920  GNULIB_WCWIDTH=0;
40921    HAVE_DECL_WCWIDTH=1;
40922  REPLACE_WCWIDTH=0;
40923  WCHAR_H=
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942   if true; then
40943  GL_COND_LIBTOOL_TRUE=
40944  GL_COND_LIBTOOL_FALSE='#'
40945else
40946  GL_COND_LIBTOOL_TRUE='#'
40947  GL_COND_LIBTOOL_FALSE=
40948fi
40949
40950  gl_cond_libtool=true
40951  gl_source_base='gnulib-lib'
40952
40953
40954
40955
40956
40957
40958
40959
40960  gl_LIBOBJS="$gl_LIBOBJS acl.$ac_objext"
40961
40962
40963
40964
40965
40966
40967
40968
40969  gl_LIBOBJS="$gl_LIBOBJS file-has-acl.$ac_objext"
40970
40971
40972
40973for ac_header in sys/acl.h
40974do
40975as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40976if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40977  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40978$as_echo_n "checking for $ac_header... " >&6; }
40979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40980  $as_echo_n "(cached) " >&6
40981fi
40982ac_res=`eval 'as_val=${'$as_ac_Header'}
40983		 $as_echo "$as_val"'`
40984	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40985$as_echo "$ac_res" >&6; }
40986else
40987  # Is the header compilable?
40988{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
40989$as_echo_n "checking $ac_header usability... " >&6; }
40990cat >conftest.$ac_ext <<_ACEOF
40991/* confdefs.h.  */
40992_ACEOF
40993cat confdefs.h >>conftest.$ac_ext
40994cat >>conftest.$ac_ext <<_ACEOF
40995/* end confdefs.h.  */
40996$ac_includes_default
40997#include <$ac_header>
40998_ACEOF
40999rm -f conftest.$ac_objext
41000if { (ac_try="$ac_compile"
41001case "(($ac_try" in
41002  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41003  *) ac_try_echo=$ac_try;;
41004esac
41005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41006$as_echo "$ac_try_echo") >&5
41007  (eval "$ac_compile") 2>conftest.er1
41008  ac_status=$?
41009  grep -v '^ *+' conftest.er1 >conftest.err
41010  rm -f conftest.er1
41011  cat conftest.err >&5
41012  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41013  (exit $ac_status); } && {
41014	 test -z "$ac_c_werror_flag" ||
41015	 test ! -s conftest.err
41016       } && test -s conftest.$ac_objext; then
41017  ac_header_compiler=yes
41018else
41019  $as_echo "$as_me: failed program was:" >&5
41020sed 's/^/| /' conftest.$ac_ext >&5
41021
41022	ac_header_compiler=no
41023fi
41024
41025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41026{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41027$as_echo "$ac_header_compiler" >&6; }
41028
41029# Is the header present?
41030{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41031$as_echo_n "checking $ac_header presence... " >&6; }
41032cat >conftest.$ac_ext <<_ACEOF
41033/* confdefs.h.  */
41034_ACEOF
41035cat confdefs.h >>conftest.$ac_ext
41036cat >>conftest.$ac_ext <<_ACEOF
41037/* end confdefs.h.  */
41038#include <$ac_header>
41039_ACEOF
41040if { (ac_try="$ac_cpp conftest.$ac_ext"
41041case "(($ac_try" in
41042  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41043  *) ac_try_echo=$ac_try;;
41044esac
41045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41046$as_echo "$ac_try_echo") >&5
41047  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41048  ac_status=$?
41049  grep -v '^ *+' conftest.er1 >conftest.err
41050  rm -f conftest.er1
41051  cat conftest.err >&5
41052  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41053  (exit $ac_status); } >/dev/null && {
41054	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41055	 test ! -s conftest.err
41056       }; then
41057  ac_header_preproc=yes
41058else
41059  $as_echo "$as_me: failed program was:" >&5
41060sed 's/^/| /' conftest.$ac_ext >&5
41061
41062  ac_header_preproc=no
41063fi
41064
41065rm -f conftest.err conftest.$ac_ext
41066{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41067$as_echo "$ac_header_preproc" >&6; }
41068
41069# So?  What about this header?
41070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41071  yes:no: )
41072    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41073$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41074    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41075$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41076    ac_header_preproc=yes
41077    ;;
41078  no:yes:* )
41079    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41080$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41081    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41082$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41083    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41084$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41085    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41086$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41087    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41088$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41089    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41090$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41091
41092    ;;
41093esac
41094{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41095$as_echo_n "checking for $ac_header... " >&6; }
41096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41097  $as_echo_n "(cached) " >&6
41098else
41099  eval "$as_ac_Header=\$ac_header_preproc"
41100fi
41101ac_res=`eval 'as_val=${'$as_ac_Header'}
41102		 $as_echo "$as_val"'`
41103	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41104$as_echo "$ac_res" >&6; }
41105
41106fi
41107as_val=`eval 'as_val=${'$as_ac_Header'}
41108		 $as_echo "$as_val"'`
41109   if test "x$as_val" = x""yes; then
41110  cat >>confdefs.h <<_ACEOF
41111#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41112_ACEOF
41113
41114fi
41115
41116done
41117
41118
41119for ac_func in acl
41120do
41121as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41122{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41123$as_echo_n "checking for $ac_func... " >&6; }
41124if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41125  $as_echo_n "(cached) " >&6
41126else
41127  cat >conftest.$ac_ext <<_ACEOF
41128/* confdefs.h.  */
41129_ACEOF
41130cat confdefs.h >>conftest.$ac_ext
41131cat >>conftest.$ac_ext <<_ACEOF
41132/* end confdefs.h.  */
41133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41134   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41135#define $ac_func innocuous_$ac_func
41136
41137/* System header to define __stub macros and hopefully few prototypes,
41138    which can conflict with char $ac_func (); below.
41139    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41140    <limits.h> exists even on freestanding compilers.  */
41141
41142#ifdef __STDC__
41143# include <limits.h>
41144#else
41145# include <assert.h>
41146#endif
41147
41148#undef $ac_func
41149
41150/* Override any GCC internal prototype to avoid an error.
41151   Use char because int might match the return type of a GCC
41152   builtin and then its argument prototype would still apply.  */
41153#ifdef __cplusplus
41154extern "C"
41155#endif
41156char $ac_func ();
41157/* The GNU C library defines this for functions which it implements
41158    to always fail with ENOSYS.  Some functions are actually named
41159    something starting with __ and the normal name is an alias.  */
41160#if defined __stub_$ac_func || defined __stub___$ac_func
41161choke me
41162#endif
41163
41164int
41165main ()
41166{
41167return $ac_func ();
41168  ;
41169  return 0;
41170}
41171_ACEOF
41172rm -f conftest.$ac_objext conftest$ac_exeext
41173if { (ac_try="$ac_link"
41174case "(($ac_try" in
41175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41176  *) ac_try_echo=$ac_try;;
41177esac
41178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41179$as_echo "$ac_try_echo") >&5
41180  (eval "$ac_link") 2>conftest.er1
41181  ac_status=$?
41182  grep -v '^ *+' conftest.er1 >conftest.err
41183  rm -f conftest.er1
41184  cat conftest.err >&5
41185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41186  (exit $ac_status); } && {
41187	 test -z "$ac_c_werror_flag" ||
41188	 test ! -s conftest.err
41189       } && test -s conftest$ac_exeext && {
41190	 test "$cross_compiling" = yes ||
41191	 $as_test_x conftest$ac_exeext
41192       }; then
41193  eval "$as_ac_var=yes"
41194else
41195  $as_echo "$as_me: failed program was:" >&5
41196sed 's/^/| /' conftest.$ac_ext >&5
41197
41198	eval "$as_ac_var=no"
41199fi
41200
41201rm -rf conftest.dSYM
41202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41203      conftest$ac_exeext conftest.$ac_ext
41204fi
41205ac_res=`eval 'as_val=${'$as_ac_var'}
41206		 $as_echo "$as_val"'`
41207	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41208$as_echo "$ac_res" >&6; }
41209as_val=`eval 'as_val=${'$as_ac_var'}
41210		 $as_echo "$as_val"'`
41211   if test "x$as_val" = x""yes; then
41212  cat >>confdefs.h <<_ACEOF
41213#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41214_ACEOF
41215
41216fi
41217done
41218
41219  ac_save_LIBS="$LIBS"
41220    { $as_echo "$as_me:$LINENO: checking for library containing acl_get_file" >&5
41221$as_echo_n "checking for library containing acl_get_file... " >&6; }
41222if test "${ac_cv_search_acl_get_file+set}" = set; then
41223  $as_echo_n "(cached) " >&6
41224else
41225  ac_func_search_save_LIBS=$LIBS
41226cat >conftest.$ac_ext <<_ACEOF
41227/* confdefs.h.  */
41228_ACEOF
41229cat confdefs.h >>conftest.$ac_ext
41230cat >>conftest.$ac_ext <<_ACEOF
41231/* end confdefs.h.  */
41232
41233/* Override any GCC internal prototype to avoid an error.
41234   Use char because int might match the return type of a GCC
41235   builtin and then its argument prototype would still apply.  */
41236#ifdef __cplusplus
41237extern "C"
41238#endif
41239char acl_get_file ();
41240int
41241main ()
41242{
41243return acl_get_file ();
41244  ;
41245  return 0;
41246}
41247_ACEOF
41248for ac_lib in '' acl; do
41249  if test -z "$ac_lib"; then
41250    ac_res="none required"
41251  else
41252    ac_res=-l$ac_lib
41253    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
41254  fi
41255  rm -f conftest.$ac_objext conftest$ac_exeext
41256if { (ac_try="$ac_link"
41257case "(($ac_try" in
41258  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41259  *) ac_try_echo=$ac_try;;
41260esac
41261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41262$as_echo "$ac_try_echo") >&5
41263  (eval "$ac_link") 2>conftest.er1
41264  ac_status=$?
41265  grep -v '^ *+' conftest.er1 >conftest.err
41266  rm -f conftest.er1
41267  cat conftest.err >&5
41268  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41269  (exit $ac_status); } && {
41270	 test -z "$ac_c_werror_flag" ||
41271	 test ! -s conftest.err
41272       } && test -s conftest$ac_exeext && {
41273	 test "$cross_compiling" = yes ||
41274	 $as_test_x conftest$ac_exeext
41275       }; then
41276  ac_cv_search_acl_get_file=$ac_res
41277else
41278  $as_echo "$as_me: failed program was:" >&5
41279sed 's/^/| /' conftest.$ac_ext >&5
41280
41281
41282fi
41283
41284rm -rf conftest.dSYM
41285rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41286      conftest$ac_exeext
41287  if test "${ac_cv_search_acl_get_file+set}" = set; then
41288  break
41289fi
41290done
41291if test "${ac_cv_search_acl_get_file+set}" = set; then
41292  :
41293else
41294  ac_cv_search_acl_get_file=no
41295fi
41296rm conftest.$ac_ext
41297LIBS=$ac_func_search_save_LIBS
41298fi
41299{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_get_file" >&5
41300$as_echo "$ac_cv_search_acl_get_file" >&6; }
41301ac_res=$ac_cv_search_acl_get_file
41302if test "$ac_res" != no; then
41303  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41304  test "$ac_cv_search_acl_get_file" = "none required" ||
41305		    LIB_ACL=$ac_cv_search_acl_get_file
41306fi
41307
41308
41309
41310for ac_header in acl/libacl.h
41311do
41312as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41313if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41314  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41315$as_echo_n "checking for $ac_header... " >&6; }
41316if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41317  $as_echo_n "(cached) " >&6
41318fi
41319ac_res=`eval 'as_val=${'$as_ac_Header'}
41320		 $as_echo "$as_val"'`
41321	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41322$as_echo "$ac_res" >&6; }
41323else
41324  # Is the header compilable?
41325{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41326$as_echo_n "checking $ac_header usability... " >&6; }
41327cat >conftest.$ac_ext <<_ACEOF
41328/* confdefs.h.  */
41329_ACEOF
41330cat confdefs.h >>conftest.$ac_ext
41331cat >>conftest.$ac_ext <<_ACEOF
41332/* end confdefs.h.  */
41333$ac_includes_default
41334#include <$ac_header>
41335_ACEOF
41336rm -f conftest.$ac_objext
41337if { (ac_try="$ac_compile"
41338case "(($ac_try" in
41339  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41340  *) ac_try_echo=$ac_try;;
41341esac
41342eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41343$as_echo "$ac_try_echo") >&5
41344  (eval "$ac_compile") 2>conftest.er1
41345  ac_status=$?
41346  grep -v '^ *+' conftest.er1 >conftest.err
41347  rm -f conftest.er1
41348  cat conftest.err >&5
41349  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41350  (exit $ac_status); } && {
41351	 test -z "$ac_c_werror_flag" ||
41352	 test ! -s conftest.err
41353       } && test -s conftest.$ac_objext; then
41354  ac_header_compiler=yes
41355else
41356  $as_echo "$as_me: failed program was:" >&5
41357sed 's/^/| /' conftest.$ac_ext >&5
41358
41359	ac_header_compiler=no
41360fi
41361
41362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41363{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41364$as_echo "$ac_header_compiler" >&6; }
41365
41366# Is the header present?
41367{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41368$as_echo_n "checking $ac_header presence... " >&6; }
41369cat >conftest.$ac_ext <<_ACEOF
41370/* confdefs.h.  */
41371_ACEOF
41372cat confdefs.h >>conftest.$ac_ext
41373cat >>conftest.$ac_ext <<_ACEOF
41374/* end confdefs.h.  */
41375#include <$ac_header>
41376_ACEOF
41377if { (ac_try="$ac_cpp conftest.$ac_ext"
41378case "(($ac_try" in
41379  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41380  *) ac_try_echo=$ac_try;;
41381esac
41382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41383$as_echo "$ac_try_echo") >&5
41384  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41385  ac_status=$?
41386  grep -v '^ *+' conftest.er1 >conftest.err
41387  rm -f conftest.er1
41388  cat conftest.err >&5
41389  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41390  (exit $ac_status); } >/dev/null && {
41391	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41392	 test ! -s conftest.err
41393       }; then
41394  ac_header_preproc=yes
41395else
41396  $as_echo "$as_me: failed program was:" >&5
41397sed 's/^/| /' conftest.$ac_ext >&5
41398
41399  ac_header_preproc=no
41400fi
41401
41402rm -f conftest.err conftest.$ac_ext
41403{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41404$as_echo "$ac_header_preproc" >&6; }
41405
41406# So?  What about this header?
41407case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41408  yes:no: )
41409    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41410$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41411    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41412$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41413    ac_header_preproc=yes
41414    ;;
41415  no:yes:* )
41416    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41417$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41418    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
41419$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
41420    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41421$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41422    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
41423$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
41424    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41425$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41426    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41427$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41428
41429    ;;
41430esac
41431{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41432$as_echo_n "checking for $ac_header... " >&6; }
41433if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41434  $as_echo_n "(cached) " >&6
41435else
41436  eval "$as_ac_Header=\$ac_header_preproc"
41437fi
41438ac_res=`eval 'as_val=${'$as_ac_Header'}
41439		 $as_echo "$as_val"'`
41440	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41441$as_echo "$ac_res" >&6; }
41442
41443fi
41444as_val=`eval 'as_val=${'$as_ac_Header'}
41445		 $as_echo "$as_val"'`
41446   if test "x$as_val" = x""yes; then
41447  cat >>confdefs.h <<_ACEOF
41448#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41449_ACEOF
41450
41451fi
41452
41453done
41454
41455
41456
41457
41458
41459
41460
41461
41462
41463
41464for ac_func in acl_get_file acl_get_fd acl_set_file acl_set_fd \
41465		   acl_free acl_from_mode acl_from_text \
41466		   acl_delete_def_file acl_extended_file
41467do
41468as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41469{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41470$as_echo_n "checking for $ac_func... " >&6; }
41471if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41472  $as_echo_n "(cached) " >&6
41473else
41474  cat >conftest.$ac_ext <<_ACEOF
41475/* confdefs.h.  */
41476_ACEOF
41477cat confdefs.h >>conftest.$ac_ext
41478cat >>conftest.$ac_ext <<_ACEOF
41479/* end confdefs.h.  */
41480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41481   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41482#define $ac_func innocuous_$ac_func
41483
41484/* System header to define __stub macros and hopefully few prototypes,
41485    which can conflict with char $ac_func (); below.
41486    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41487    <limits.h> exists even on freestanding compilers.  */
41488
41489#ifdef __STDC__
41490# include <limits.h>
41491#else
41492# include <assert.h>
41493#endif
41494
41495#undef $ac_func
41496
41497/* Override any GCC internal prototype to avoid an error.
41498   Use char because int might match the return type of a GCC
41499   builtin and then its argument prototype would still apply.  */
41500#ifdef __cplusplus
41501extern "C"
41502#endif
41503char $ac_func ();
41504/* The GNU C library defines this for functions which it implements
41505    to always fail with ENOSYS.  Some functions are actually named
41506    something starting with __ and the normal name is an alias.  */
41507#if defined __stub_$ac_func || defined __stub___$ac_func
41508choke me
41509#endif
41510
41511int
41512main ()
41513{
41514return $ac_func ();
41515  ;
41516  return 0;
41517}
41518_ACEOF
41519rm -f conftest.$ac_objext conftest$ac_exeext
41520if { (ac_try="$ac_link"
41521case "(($ac_try" in
41522  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41523  *) ac_try_echo=$ac_try;;
41524esac
41525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41526$as_echo "$ac_try_echo") >&5
41527  (eval "$ac_link") 2>conftest.er1
41528  ac_status=$?
41529  grep -v '^ *+' conftest.er1 >conftest.err
41530  rm -f conftest.er1
41531  cat conftest.err >&5
41532  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41533  (exit $ac_status); } && {
41534	 test -z "$ac_c_werror_flag" ||
41535	 test ! -s conftest.err
41536       } && test -s conftest$ac_exeext && {
41537	 test "$cross_compiling" = yes ||
41538	 $as_test_x conftest$ac_exeext
41539       }; then
41540  eval "$as_ac_var=yes"
41541else
41542  $as_echo "$as_me: failed program was:" >&5
41543sed 's/^/| /' conftest.$ac_ext >&5
41544
41545	eval "$as_ac_var=no"
41546fi
41547
41548rm -rf conftest.dSYM
41549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41550      conftest$ac_exeext conftest.$ac_ext
41551fi
41552ac_res=`eval 'as_val=${'$as_ac_var'}
41553		 $as_echo "$as_val"'`
41554	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41555$as_echo "$ac_res" >&6; }
41556as_val=`eval 'as_val=${'$as_ac_var'}
41557		 $as_echo "$as_val"'`
41558   if test "x$as_val" = x""yes; then
41559  cat >>confdefs.h <<_ACEOF
41560#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41561_ACEOF
41562
41563fi
41564done
41565
41566    if test $ac_cv_header_sys_acl_h = yes; then
41567      use_acl=1
41568      if test $ac_cv_func_acl_get_file = yes; then
41569	# If we detect the acl_get_file bug, disable ACL support altogether.
41570
41571  { $as_echo "$as_me:$LINENO: checking for working acl_get_file" >&5
41572$as_echo_n "checking for working acl_get_file... " >&6; }
41573if test "${gl_cv_func_working_acl_get_file+set}" = set; then
41574  $as_echo_n "(cached) " >&6
41575else
41576  if test "$cross_compiling" = yes; then
41577  gl_cv_func_working_acl_get_file=cross-compiling
41578else
41579  cat >conftest.$ac_ext <<_ACEOF
41580/* confdefs.h.  */
41581_ACEOF
41582cat confdefs.h >>conftest.$ac_ext
41583cat >>conftest.$ac_ext <<_ACEOF
41584/* end confdefs.h.  */
41585#include <sys/types.h>
41586	   #include <sys/acl.h>
41587	   #include <errno.h>
41588
41589int
41590main ()
41591{
41592return !! (!acl_get_file (".", ACL_TYPE_ACCESS)
41593		       && errno == ENOENT);
41594  ;
41595  return 0;
41596}
41597_ACEOF
41598rm -f conftest$ac_exeext
41599if { (ac_try="$ac_link"
41600case "(($ac_try" in
41601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41602  *) ac_try_echo=$ac_try;;
41603esac
41604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41605$as_echo "$ac_try_echo") >&5
41606  (eval "$ac_link") 2>&5
41607  ac_status=$?
41608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41609  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41610  { (case "(($ac_try" in
41611  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41612  *) ac_try_echo=$ac_try;;
41613esac
41614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41615$as_echo "$ac_try_echo") >&5
41616  (eval "$ac_try") 2>&5
41617  ac_status=$?
41618  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41619  (exit $ac_status); }; }; then
41620  gl_cv_func_working_acl_get_file=yes
41621else
41622  $as_echo "$as_me: program exited with status $ac_status" >&5
41623$as_echo "$as_me: failed program was:" >&5
41624sed 's/^/| /' conftest.$ac_ext >&5
41625
41626( exit $ac_status )
41627gl_cv_func_working_acl_get_file=no
41628fi
41629rm -rf conftest.dSYM
41630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41631fi
41632
41633
41634fi
41635{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_acl_get_file" >&5
41636$as_echo "$gl_cv_func_working_acl_get_file" >&6; }
41637
41638  if test $gl_cv_func_working_acl_get_file = yes; then
41639  :
41640else
41641  use_acl=0
41642fi
41643
41644
41645      fi
41646    else
41647      use_acl=0
41648    fi
41649    if test $use_acl = 1 &&
41650       test $ac_cv_func_acl_get_file = yes &&
41651       test $ac_cv_func_acl_free = yes; then
41652
41653
41654
41655
41656
41657
41658
41659
41660for ac_func in acl_entries
41661do
41662as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41663{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41664$as_echo_n "checking for $ac_func... " >&6; }
41665if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41666  $as_echo_n "(cached) " >&6
41667else
41668  cat >conftest.$ac_ext <<_ACEOF
41669/* confdefs.h.  */
41670_ACEOF
41671cat confdefs.h >>conftest.$ac_ext
41672cat >>conftest.$ac_ext <<_ACEOF
41673/* end confdefs.h.  */
41674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41675   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41676#define $ac_func innocuous_$ac_func
41677
41678/* System header to define __stub macros and hopefully few prototypes,
41679    which can conflict with char $ac_func (); below.
41680    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41681    <limits.h> exists even on freestanding compilers.  */
41682
41683#ifdef __STDC__
41684# include <limits.h>
41685#else
41686# include <assert.h>
41687#endif
41688
41689#undef $ac_func
41690
41691/* Override any GCC internal prototype to avoid an error.
41692   Use char because int might match the return type of a GCC
41693   builtin and then its argument prototype would still apply.  */
41694#ifdef __cplusplus
41695extern "C"
41696#endif
41697char $ac_func ();
41698/* The GNU C library defines this for functions which it implements
41699    to always fail with ENOSYS.  Some functions are actually named
41700    something starting with __ and the normal name is an alias.  */
41701#if defined __stub_$ac_func || defined __stub___$ac_func
41702choke me
41703#endif
41704
41705int
41706main ()
41707{
41708return $ac_func ();
41709  ;
41710  return 0;
41711}
41712_ACEOF
41713rm -f conftest.$ac_objext conftest$ac_exeext
41714if { (ac_try="$ac_link"
41715case "(($ac_try" in
41716  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41717  *) ac_try_echo=$ac_try;;
41718esac
41719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41720$as_echo "$ac_try_echo") >&5
41721  (eval "$ac_link") 2>conftest.er1
41722  ac_status=$?
41723  grep -v '^ *+' conftest.er1 >conftest.err
41724  rm -f conftest.er1
41725  cat conftest.err >&5
41726  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41727  (exit $ac_status); } && {
41728	 test -z "$ac_c_werror_flag" ||
41729	 test ! -s conftest.err
41730       } && test -s conftest$ac_exeext && {
41731	 test "$cross_compiling" = yes ||
41732	 $as_test_x conftest$ac_exeext
41733       }; then
41734  eval "$as_ac_var=yes"
41735else
41736  $as_echo "$as_me: failed program was:" >&5
41737sed 's/^/| /' conftest.$ac_ext >&5
41738
41739	eval "$as_ac_var=no"
41740fi
41741
41742rm -rf conftest.dSYM
41743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41744      conftest$ac_exeext conftest.$ac_ext
41745fi
41746ac_res=`eval 'as_val=${'$as_ac_var'}
41747		 $as_echo "$as_val"'`
41748	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41749$as_echo "$ac_res" >&6; }
41750as_val=`eval 'as_val=${'$as_ac_var'}
41751		 $as_echo "$as_val"'`
41752   if test "x$as_val" = x""yes; then
41753  cat >>confdefs.h <<_ACEOF
41754#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41755_ACEOF
41756
41757else
41758
41759    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41760
41761fi
41762done
41763
41764
41765    fi
41766  LIBS="$ac_save_LIBS"
41767  if test $use_acl = 1; then
41768    ac_save_LIBS="$LIBS"
41769    { $as_echo "$as_me:$LINENO: checking for library containing acl_trivial" >&5
41770$as_echo_n "checking for library containing acl_trivial... " >&6; }
41771if test "${ac_cv_search_acl_trivial+set}" = set; then
41772  $as_echo_n "(cached) " >&6
41773else
41774  ac_func_search_save_LIBS=$LIBS
41775cat >conftest.$ac_ext <<_ACEOF
41776/* confdefs.h.  */
41777_ACEOF
41778cat confdefs.h >>conftest.$ac_ext
41779cat >>conftest.$ac_ext <<_ACEOF
41780/* end confdefs.h.  */
41781
41782/* Override any GCC internal prototype to avoid an error.
41783   Use char because int might match the return type of a GCC
41784   builtin and then its argument prototype would still apply.  */
41785#ifdef __cplusplus
41786extern "C"
41787#endif
41788char acl_trivial ();
41789int
41790main ()
41791{
41792return acl_trivial ();
41793  ;
41794  return 0;
41795}
41796_ACEOF
41797for ac_lib in '' sec; do
41798  if test -z "$ac_lib"; then
41799    ac_res="none required"
41800  else
41801    ac_res=-l$ac_lib
41802    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
41803  fi
41804  rm -f conftest.$ac_objext conftest$ac_exeext
41805if { (ac_try="$ac_link"
41806case "(($ac_try" in
41807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41808  *) ac_try_echo=$ac_try;;
41809esac
41810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41811$as_echo "$ac_try_echo") >&5
41812  (eval "$ac_link") 2>conftest.er1
41813  ac_status=$?
41814  grep -v '^ *+' conftest.er1 >conftest.err
41815  rm -f conftest.er1
41816  cat conftest.err >&5
41817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818  (exit $ac_status); } && {
41819	 test -z "$ac_c_werror_flag" ||
41820	 test ! -s conftest.err
41821       } && test -s conftest$ac_exeext && {
41822	 test "$cross_compiling" = yes ||
41823	 $as_test_x conftest$ac_exeext
41824       }; then
41825  ac_cv_search_acl_trivial=$ac_res
41826else
41827  $as_echo "$as_me: failed program was:" >&5
41828sed 's/^/| /' conftest.$ac_ext >&5
41829
41830
41831fi
41832
41833rm -rf conftest.dSYM
41834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41835      conftest$ac_exeext
41836  if test "${ac_cv_search_acl_trivial+set}" = set; then
41837  break
41838fi
41839done
41840if test "${ac_cv_search_acl_trivial+set}" = set; then
41841  :
41842else
41843  ac_cv_search_acl_trivial=no
41844fi
41845rm conftest.$ac_ext
41846LIBS=$ac_func_search_save_LIBS
41847fi
41848{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_acl_trivial" >&5
41849$as_echo "$ac_cv_search_acl_trivial" >&6; }
41850ac_res=$ac_cv_search_acl_trivial
41851if test "$ac_res" != no; then
41852  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
41853
41854cat >>confdefs.h <<\_ACEOF
41855#define HAVE_ACL_TRIVIAL 1
41856_ACEOF
41857
41858       test "$ac_cv_search_acl_trivial" = "none required" ||
41859       LIB_ACL_TRIVIAL="$ac_cv_search_acl_trivial"
41860fi
41861
41862
41863    LIBS="$ac_save_LIBS"
41864  fi
41865
41866cat >>confdefs.h <<_ACEOF
41867#define USE_ACL $use_acl
41868_ACEOF
41869
41870
41871
41872
41873
41874
41875
41876  if test $ac_cv_func_alloca_works = no; then
41877
41878
41879  :
41880
41881
41882
41883
41884
41885
41886
41887
41888  :
41889
41890  fi
41891
41892  # Define an additional variable used in the Makefile substitution.
41893
41894  cat >conftest.$ac_ext <<_ACEOF
41895/* confdefs.h.  */
41896_ACEOF
41897cat confdefs.h >>conftest.$ac_ext
41898cat >>conftest.$ac_ext <<_ACEOF
41899/* end confdefs.h.  */
41900
41901#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
41902  Need own alloca
41903#endif
41904
41905_ACEOF
41906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41907  $EGREP "Need own alloca" >/dev/null 2>&1; then
41908  ALLOCA_H=alloca.h
41909else
41910  ALLOCA_H=
41911fi
41912rm -f conftest*
41913
41914
41915
41916
41917
41918
41919
41920
41921
41922
41923
41924  gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
41925
41926
41927
41928
41929
41930
41931
41932
41933
41934
41935
41936for ac_func in atexit
41937do
41938as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41939{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41940$as_echo_n "checking for $ac_func... " >&6; }
41941if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41942  $as_echo_n "(cached) " >&6
41943else
41944  cat >conftest.$ac_ext <<_ACEOF
41945/* confdefs.h.  */
41946_ACEOF
41947cat confdefs.h >>conftest.$ac_ext
41948cat >>conftest.$ac_ext <<_ACEOF
41949/* end confdefs.h.  */
41950/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41951   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41952#define $ac_func innocuous_$ac_func
41953
41954/* System header to define __stub macros and hopefully few prototypes,
41955    which can conflict with char $ac_func (); below.
41956    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41957    <limits.h> exists even on freestanding compilers.  */
41958
41959#ifdef __STDC__
41960# include <limits.h>
41961#else
41962# include <assert.h>
41963#endif
41964
41965#undef $ac_func
41966
41967/* Override any GCC internal prototype to avoid an error.
41968   Use char because int might match the return type of a GCC
41969   builtin and then its argument prototype would still apply.  */
41970#ifdef __cplusplus
41971extern "C"
41972#endif
41973char $ac_func ();
41974/* The GNU C library defines this for functions which it implements
41975    to always fail with ENOSYS.  Some functions are actually named
41976    something starting with __ and the normal name is an alias.  */
41977#if defined __stub_$ac_func || defined __stub___$ac_func
41978choke me
41979#endif
41980
41981int
41982main ()
41983{
41984return $ac_func ();
41985  ;
41986  return 0;
41987}
41988_ACEOF
41989rm -f conftest.$ac_objext conftest$ac_exeext
41990if { (ac_try="$ac_link"
41991case "(($ac_try" in
41992  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41993  *) ac_try_echo=$ac_try;;
41994esac
41995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41996$as_echo "$ac_try_echo") >&5
41997  (eval "$ac_link") 2>conftest.er1
41998  ac_status=$?
41999  grep -v '^ *+' conftest.er1 >conftest.err
42000  rm -f conftest.er1
42001  cat conftest.err >&5
42002  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42003  (exit $ac_status); } && {
42004	 test -z "$ac_c_werror_flag" ||
42005	 test ! -s conftest.err
42006       } && test -s conftest$ac_exeext && {
42007	 test "$cross_compiling" = yes ||
42008	 $as_test_x conftest$ac_exeext
42009       }; then
42010  eval "$as_ac_var=yes"
42011else
42012  $as_echo "$as_me: failed program was:" >&5
42013sed 's/^/| /' conftest.$ac_ext >&5
42014
42015	eval "$as_ac_var=no"
42016fi
42017
42018rm -rf conftest.dSYM
42019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42020      conftest$ac_exeext conftest.$ac_ext
42021fi
42022ac_res=`eval 'as_val=${'$as_ac_var'}
42023		 $as_echo "$as_val"'`
42024	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42025$as_echo "$ac_res" >&6; }
42026as_val=`eval 'as_val=${'$as_ac_var'}
42027		 $as_echo "$as_val"'`
42028   if test "x$as_val" = x""yes; then
42029  cat >>confdefs.h <<_ACEOF
42030#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42031_ACEOF
42032
42033else
42034
42035    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42036
42037fi
42038done
42039
42040
42041  if test $ac_cv_func_atexit = no; then
42042
42043  :
42044
42045  fi
42046
42047
42048
42049
42050for ac_header in dirent.h string.h
42051do
42052as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42054  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42055$as_echo_n "checking for $ac_header... " >&6; }
42056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42057  $as_echo_n "(cached) " >&6
42058fi
42059ac_res=`eval 'as_val=${'$as_ac_Header'}
42060		 $as_echo "$as_val"'`
42061	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42062$as_echo "$ac_res" >&6; }
42063else
42064  # Is the header compilable?
42065{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42066$as_echo_n "checking $ac_header usability... " >&6; }
42067cat >conftest.$ac_ext <<_ACEOF
42068/* confdefs.h.  */
42069_ACEOF
42070cat confdefs.h >>conftest.$ac_ext
42071cat >>conftest.$ac_ext <<_ACEOF
42072/* end confdefs.h.  */
42073$ac_includes_default
42074#include <$ac_header>
42075_ACEOF
42076rm -f conftest.$ac_objext
42077if { (ac_try="$ac_compile"
42078case "(($ac_try" in
42079  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42080  *) ac_try_echo=$ac_try;;
42081esac
42082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42083$as_echo "$ac_try_echo") >&5
42084  (eval "$ac_compile") 2>conftest.er1
42085  ac_status=$?
42086  grep -v '^ *+' conftest.er1 >conftest.err
42087  rm -f conftest.er1
42088  cat conftest.err >&5
42089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42090  (exit $ac_status); } && {
42091	 test -z "$ac_c_werror_flag" ||
42092	 test ! -s conftest.err
42093       } && test -s conftest.$ac_objext; then
42094  ac_header_compiler=yes
42095else
42096  $as_echo "$as_me: failed program was:" >&5
42097sed 's/^/| /' conftest.$ac_ext >&5
42098
42099	ac_header_compiler=no
42100fi
42101
42102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42103{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42104$as_echo "$ac_header_compiler" >&6; }
42105
42106# Is the header present?
42107{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42108$as_echo_n "checking $ac_header presence... " >&6; }
42109cat >conftest.$ac_ext <<_ACEOF
42110/* confdefs.h.  */
42111_ACEOF
42112cat confdefs.h >>conftest.$ac_ext
42113cat >>conftest.$ac_ext <<_ACEOF
42114/* end confdefs.h.  */
42115#include <$ac_header>
42116_ACEOF
42117if { (ac_try="$ac_cpp conftest.$ac_ext"
42118case "(($ac_try" in
42119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42120  *) ac_try_echo=$ac_try;;
42121esac
42122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42123$as_echo "$ac_try_echo") >&5
42124  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42125  ac_status=$?
42126  grep -v '^ *+' conftest.er1 >conftest.err
42127  rm -f conftest.er1
42128  cat conftest.err >&5
42129  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42130  (exit $ac_status); } >/dev/null && {
42131	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42132	 test ! -s conftest.err
42133       }; then
42134  ac_header_preproc=yes
42135else
42136  $as_echo "$as_me: failed program was:" >&5
42137sed 's/^/| /' conftest.$ac_ext >&5
42138
42139  ac_header_preproc=no
42140fi
42141
42142rm -f conftest.err conftest.$ac_ext
42143{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42144$as_echo "$ac_header_preproc" >&6; }
42145
42146# So?  What about this header?
42147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42148  yes:no: )
42149    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42150$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42151    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42152$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42153    ac_header_preproc=yes
42154    ;;
42155  no:yes:* )
42156    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42157$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42158    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42159$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42160    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42161$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42162    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42163$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42164    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42165$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42166    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42167$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42168
42169    ;;
42170esac
42171{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42172$as_echo_n "checking for $ac_header... " >&6; }
42173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42174  $as_echo_n "(cached) " >&6
42175else
42176  eval "$as_ac_Header=\$ac_header_preproc"
42177fi
42178ac_res=`eval 'as_val=${'$as_ac_Header'}
42179		 $as_echo "$as_val"'`
42180	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42181$as_echo "$ac_res" >&6; }
42182
42183fi
42184as_val=`eval 'as_val=${'$as_ac_Header'}
42185		 $as_echo "$as_val"'`
42186   if test "x$as_val" = x""yes; then
42187  cat >>confdefs.h <<_ACEOF
42188#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42189_ACEOF
42190
42191fi
42192
42193done
42194
42195    { $as_echo "$as_me:$LINENO: checking for long file names" >&5
42196$as_echo_n "checking for long file names... " >&6; }
42197if test "${ac_cv_sys_long_file_names+set}" = set; then
42198  $as_echo_n "(cached) " >&6
42199else
42200  ac_cv_sys_long_file_names=yes
42201# Test for long file names in all the places we know might matter:
42202#      .		the current directory, where building will happen
42203#      $prefix/lib	where we will be installing things
42204#      $exec_prefix/lib	likewise
42205#      $TMPDIR		if set, where it might want to write temporary files
42206#      /tmp		where it might want to write temporary files
42207#      /var/tmp		likewise
42208#      /usr/tmp		likewise
42209for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
42210  # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
42211  # in the usual case where exec_prefix is '${prefix}'.
42212  case $ac_dir in #(
42213    . | /* | ?:[\\/]*) ;; #(
42214    *) continue;;
42215  esac
42216  test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
42217  ac_xdir=$ac_dir/cf$$
42218  (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
42219  ac_tf1=$ac_xdir/conftest9012345
42220  ac_tf2=$ac_xdir/conftest9012346
42221  touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
42222    ac_cv_sys_long_file_names=no
42223  rm -f -r "$ac_xdir" 2>/dev/null
42224  test $ac_cv_sys_long_file_names = no && break
42225done
42226fi
42227{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
42228$as_echo "$ac_cv_sys_long_file_names" >&6; }
42229if test $ac_cv_sys_long_file_names = yes; then
42230
42231cat >>confdefs.h <<\_ACEOF
42232#define HAVE_LONG_FILE_NAMES 1
42233_ACEOF
42234
42235fi
42236
42237
42238for ac_func in pathconf
42239do
42240as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42241{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42242$as_echo_n "checking for $ac_func... " >&6; }
42243if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42244  $as_echo_n "(cached) " >&6
42245else
42246  cat >conftest.$ac_ext <<_ACEOF
42247/* confdefs.h.  */
42248_ACEOF
42249cat confdefs.h >>conftest.$ac_ext
42250cat >>conftest.$ac_ext <<_ACEOF
42251/* end confdefs.h.  */
42252/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42253   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42254#define $ac_func innocuous_$ac_func
42255
42256/* System header to define __stub macros and hopefully few prototypes,
42257    which can conflict with char $ac_func (); below.
42258    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42259    <limits.h> exists even on freestanding compilers.  */
42260
42261#ifdef __STDC__
42262# include <limits.h>
42263#else
42264# include <assert.h>
42265#endif
42266
42267#undef $ac_func
42268
42269/* Override any GCC internal prototype to avoid an error.
42270   Use char because int might match the return type of a GCC
42271   builtin and then its argument prototype would still apply.  */
42272#ifdef __cplusplus
42273extern "C"
42274#endif
42275char $ac_func ();
42276/* The GNU C library defines this for functions which it implements
42277    to always fail with ENOSYS.  Some functions are actually named
42278    something starting with __ and the normal name is an alias.  */
42279#if defined __stub_$ac_func || defined __stub___$ac_func
42280choke me
42281#endif
42282
42283int
42284main ()
42285{
42286return $ac_func ();
42287  ;
42288  return 0;
42289}
42290_ACEOF
42291rm -f conftest.$ac_objext conftest$ac_exeext
42292if { (ac_try="$ac_link"
42293case "(($ac_try" in
42294  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42295  *) ac_try_echo=$ac_try;;
42296esac
42297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42298$as_echo "$ac_try_echo") >&5
42299  (eval "$ac_link") 2>conftest.er1
42300  ac_status=$?
42301  grep -v '^ *+' conftest.er1 >conftest.err
42302  rm -f conftest.er1
42303  cat conftest.err >&5
42304  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42305  (exit $ac_status); } && {
42306	 test -z "$ac_c_werror_flag" ||
42307	 test ! -s conftest.err
42308       } && test -s conftest$ac_exeext && {
42309	 test "$cross_compiling" = yes ||
42310	 $as_test_x conftest$ac_exeext
42311       }; then
42312  eval "$as_ac_var=yes"
42313else
42314  $as_echo "$as_me: failed program was:" >&5
42315sed 's/^/| /' conftest.$ac_ext >&5
42316
42317	eval "$as_ac_var=no"
42318fi
42319
42320rm -rf conftest.dSYM
42321rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42322      conftest$ac_exeext conftest.$ac_ext
42323fi
42324ac_res=`eval 'as_val=${'$as_ac_var'}
42325		 $as_echo "$as_val"'`
42326	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42327$as_echo "$ac_res" >&6; }
42328as_val=`eval 'as_val=${'$as_ac_var'}
42329		 $as_echo "$as_val"'`
42330   if test "x$as_val" = x""yes; then
42331  cat >>confdefs.h <<_ACEOF
42332#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42333_ACEOF
42334
42335fi
42336done
42337
42338
42339
42340for ac_header in string.h unistd.h
42341do
42342as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42344  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42345$as_echo_n "checking for $ac_header... " >&6; }
42346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42347  $as_echo_n "(cached) " >&6
42348fi
42349ac_res=`eval 'as_val=${'$as_ac_Header'}
42350		 $as_echo "$as_val"'`
42351	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42352$as_echo "$ac_res" >&6; }
42353else
42354  # Is the header compilable?
42355{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42356$as_echo_n "checking $ac_header usability... " >&6; }
42357cat >conftest.$ac_ext <<_ACEOF
42358/* confdefs.h.  */
42359_ACEOF
42360cat confdefs.h >>conftest.$ac_ext
42361cat >>conftest.$ac_ext <<_ACEOF
42362/* end confdefs.h.  */
42363$ac_includes_default
42364#include <$ac_header>
42365_ACEOF
42366rm -f conftest.$ac_objext
42367if { (ac_try="$ac_compile"
42368case "(($ac_try" in
42369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42370  *) ac_try_echo=$ac_try;;
42371esac
42372eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42373$as_echo "$ac_try_echo") >&5
42374  (eval "$ac_compile") 2>conftest.er1
42375  ac_status=$?
42376  grep -v '^ *+' conftest.er1 >conftest.err
42377  rm -f conftest.er1
42378  cat conftest.err >&5
42379  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380  (exit $ac_status); } && {
42381	 test -z "$ac_c_werror_flag" ||
42382	 test ! -s conftest.err
42383       } && test -s conftest.$ac_objext; then
42384  ac_header_compiler=yes
42385else
42386  $as_echo "$as_me: failed program was:" >&5
42387sed 's/^/| /' conftest.$ac_ext >&5
42388
42389	ac_header_compiler=no
42390fi
42391
42392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42393{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42394$as_echo "$ac_header_compiler" >&6; }
42395
42396# Is the header present?
42397{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42398$as_echo_n "checking $ac_header presence... " >&6; }
42399cat >conftest.$ac_ext <<_ACEOF
42400/* confdefs.h.  */
42401_ACEOF
42402cat confdefs.h >>conftest.$ac_ext
42403cat >>conftest.$ac_ext <<_ACEOF
42404/* end confdefs.h.  */
42405#include <$ac_header>
42406_ACEOF
42407if { (ac_try="$ac_cpp conftest.$ac_ext"
42408case "(($ac_try" in
42409  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42410  *) ac_try_echo=$ac_try;;
42411esac
42412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42413$as_echo "$ac_try_echo") >&5
42414  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42415  ac_status=$?
42416  grep -v '^ *+' conftest.er1 >conftest.err
42417  rm -f conftest.er1
42418  cat conftest.err >&5
42419  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42420  (exit $ac_status); } >/dev/null && {
42421	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42422	 test ! -s conftest.err
42423       }; then
42424  ac_header_preproc=yes
42425else
42426  $as_echo "$as_me: failed program was:" >&5
42427sed 's/^/| /' conftest.$ac_ext >&5
42428
42429  ac_header_preproc=no
42430fi
42431
42432rm -f conftest.err conftest.$ac_ext
42433{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42434$as_echo "$ac_header_preproc" >&6; }
42435
42436# So?  What about this header?
42437case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42438  yes:no: )
42439    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42440$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42441    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42442$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42443    ac_header_preproc=yes
42444    ;;
42445  no:yes:* )
42446    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42447$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42448    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42449$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42450    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42451$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42452    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42453$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42454    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42455$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42456    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42457$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42458
42459    ;;
42460esac
42461{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42462$as_echo_n "checking for $ac_header... " >&6; }
42463if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42464  $as_echo_n "(cached) " >&6
42465else
42466  eval "$as_ac_Header=\$ac_header_preproc"
42467fi
42468ac_res=`eval 'as_val=${'$as_ac_Header'}
42469		 $as_echo "$as_val"'`
42470	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42471$as_echo "$ac_res" >&6; }
42472
42473fi
42474as_val=`eval 'as_val=${'$as_ac_Header'}
42475		 $as_echo "$as_val"'`
42476   if test "x$as_val" = x""yes; then
42477  cat >>confdefs.h <<_ACEOF
42478#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42479_ACEOF
42480
42481fi
42482
42483done
42484
42485
42486
42487  if test -z "$USE_NLS"; then
42488    echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT." 1>&2
42489    exit 1
42490  fi
42491  BISON_LOCALEDIR=
42492  BISON_USE_NLS=no
42493  if test "$USE_NLS" = yes; then
42494                        if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>&1; then
42495      BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
42496    fi
42497
42498    if test -n "$BISON_LOCALEDIR"; then
42499                              USER_LINGUAS="${LINGUAS-%UNSET%}"
42500      if test -n "$USER_LINGUAS"; then
42501        BISON_USE_NLS=yes
42502      fi
42503    fi
42504  fi
42505  if test $BISON_USE_NLS = yes; then
42506
42507cat >>confdefs.h <<\_ACEOF
42508#define YYENABLE_NLS 1
42509_ACEOF
42510
42511  fi
42512
42513
42514
42515for ac_header in byteswap.h
42516do
42517as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42518if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42519  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42520$as_echo_n "checking for $ac_header... " >&6; }
42521if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42522  $as_echo_n "(cached) " >&6
42523fi
42524ac_res=`eval 'as_val=${'$as_ac_Header'}
42525		 $as_echo "$as_val"'`
42526	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42527$as_echo "$ac_res" >&6; }
42528else
42529  # Is the header compilable?
42530{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42531$as_echo_n "checking $ac_header usability... " >&6; }
42532cat >conftest.$ac_ext <<_ACEOF
42533/* confdefs.h.  */
42534_ACEOF
42535cat confdefs.h >>conftest.$ac_ext
42536cat >>conftest.$ac_ext <<_ACEOF
42537/* end confdefs.h.  */
42538$ac_includes_default
42539#include <$ac_header>
42540_ACEOF
42541rm -f conftest.$ac_objext
42542if { (ac_try="$ac_compile"
42543case "(($ac_try" in
42544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42545  *) ac_try_echo=$ac_try;;
42546esac
42547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42548$as_echo "$ac_try_echo") >&5
42549  (eval "$ac_compile") 2>conftest.er1
42550  ac_status=$?
42551  grep -v '^ *+' conftest.er1 >conftest.err
42552  rm -f conftest.er1
42553  cat conftest.err >&5
42554  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42555  (exit $ac_status); } && {
42556	 test -z "$ac_c_werror_flag" ||
42557	 test ! -s conftest.err
42558       } && test -s conftest.$ac_objext; then
42559  ac_header_compiler=yes
42560else
42561  $as_echo "$as_me: failed program was:" >&5
42562sed 's/^/| /' conftest.$ac_ext >&5
42563
42564	ac_header_compiler=no
42565fi
42566
42567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42568{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42569$as_echo "$ac_header_compiler" >&6; }
42570
42571# Is the header present?
42572{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42573$as_echo_n "checking $ac_header presence... " >&6; }
42574cat >conftest.$ac_ext <<_ACEOF
42575/* confdefs.h.  */
42576_ACEOF
42577cat confdefs.h >>conftest.$ac_ext
42578cat >>conftest.$ac_ext <<_ACEOF
42579/* end confdefs.h.  */
42580#include <$ac_header>
42581_ACEOF
42582if { (ac_try="$ac_cpp conftest.$ac_ext"
42583case "(($ac_try" in
42584  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42585  *) ac_try_echo=$ac_try;;
42586esac
42587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42588$as_echo "$ac_try_echo") >&5
42589  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42590  ac_status=$?
42591  grep -v '^ *+' conftest.er1 >conftest.err
42592  rm -f conftest.er1
42593  cat conftest.err >&5
42594  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595  (exit $ac_status); } >/dev/null && {
42596	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42597	 test ! -s conftest.err
42598       }; then
42599  ac_header_preproc=yes
42600else
42601  $as_echo "$as_me: failed program was:" >&5
42602sed 's/^/| /' conftest.$ac_ext >&5
42603
42604  ac_header_preproc=no
42605fi
42606
42607rm -f conftest.err conftest.$ac_ext
42608{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42609$as_echo "$ac_header_preproc" >&6; }
42610
42611# So?  What about this header?
42612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42613  yes:no: )
42614    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42615$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42616    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42617$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42618    ac_header_preproc=yes
42619    ;;
42620  no:yes:* )
42621    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42622$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42623    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
42624$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
42625    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42626$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42627    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
42628$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
42629    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42630$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42631    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42632$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42633
42634    ;;
42635esac
42636{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42637$as_echo_n "checking for $ac_header... " >&6; }
42638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42639  $as_echo_n "(cached) " >&6
42640else
42641  eval "$as_ac_Header=\$ac_header_preproc"
42642fi
42643ac_res=`eval 'as_val=${'$as_ac_Header'}
42644		 $as_echo "$as_val"'`
42645	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42646$as_echo "$ac_res" >&6; }
42647
42648fi
42649as_val=`eval 'as_val=${'$as_ac_Header'}
42650		 $as_echo "$as_val"'`
42651   if test "x$as_val" = x""yes; then
42652  cat >>confdefs.h <<_ACEOF
42653#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42654_ACEOF
42655
42656    BYTESWAP_H=''
42657
42658else
42659
42660    BYTESWAP_H='byteswap.h'
42661
42662fi
42663
42664done
42665
42666
42667
42668
42669
42670
42671  { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
42672$as_echo_n "checking for a traditional french locale... " >&6; }
42673if test "${gt_cv_locale_fr+set}" = set; then
42674  $as_echo_n "(cached) " >&6
42675else
42676
42677    macosx=
42678    case "$host_os" in
42679      darwin[56]*) ;;
42680      darwin*) macosx=yes;;
42681    esac
42682    if test -n "$macosx"; then
42683      # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8
42684      # encodings, but the kernel does not support them. The documentation
42685      # says:
42686      #   "... all code that calls BSD system routines should ensure
42687      #    that the const *char parameters of these routines are in UTF-8
42688      #    encoding. All BSD system functions expect their string
42689      #    parameters to be in UTF-8 encoding and nothing else."
42690      # See the comments in config.charset. Therefore we bypass the test.
42691      gt_cv_locale_fr=none
42692    else
42693      cat >conftest.$ac_ext <<_ACEOF
42694/* confdefs.h.  */
42695_ACEOF
42696cat confdefs.h >>conftest.$ac_ext
42697cat >>conftest.$ac_ext <<_ACEOF
42698/* end confdefs.h.  */
42699
42700#include <locale.h>
42701#include <time.h>
42702#if HAVE_LANGINFO_CODESET
42703# include <langinfo.h>
42704#endif
42705#include <stdlib.h>
42706#include <string.h>
42707struct tm t;
42708char buf[16];
42709int main () {
42710  /* Check whether the given locale name is recognized by the system.  */
42711  if (setlocale (LC_ALL, "") == NULL) return 1;
42712  /* Check whether nl_langinfo(CODESET) is nonempty.
42713     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
42714     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
42715#if HAVE_LANGINFO_CODESET
42716  if (nl_langinfo (CODESET) [0] == '\0') return 1;
42717#endif
42718#ifdef __CYGWIN__
42719  /* On Cygwin, avoid locale names without encoding suffix, because the
42720     locale_charset() function relies on the encoding suffix.  Note that
42721     LC_ALL is set on the command line.  */
42722  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
42723#endif
42724  /* Check whether in the abbreviation of the second month, the second
42725     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
42726     one byte long. This excludes the UTF-8 encoding.  */
42727  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
42728  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
42729  /* Check whether the decimal separator is a comma.
42730     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
42731     are nl_langinfo(RADIXCHAR) are both ".".  */
42732  if (localeconv () ->decimal_point[0] != ',') return 1;
42733  return 0;
42734}
42735
42736_ACEOF
42737      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42738  (eval $ac_link) 2>&5
42739  ac_status=$?
42740  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42741  (exit $ac_status); } && test -s conftest$ac_exeext; then
42742        # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
42743        # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
42744        # configure script would override the LC_ALL setting. Likewise for
42745        # LC_CTYPE, which is also set at the beginning of the configure script.
42746        # Test for the usual locale name.
42747        if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
42748          gt_cv_locale_fr=fr_FR
42749        else
42750          # Test for the locale name with explicit encoding suffix.
42751          if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
42752            gt_cv_locale_fr=fr_FR.ISO-8859-1
42753          else
42754            # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
42755            if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
42756              gt_cv_locale_fr=fr_FR.ISO8859-1
42757            else
42758              # Test for the HP-UX locale name.
42759              if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
42760                gt_cv_locale_fr=fr_FR.iso88591
42761              else
42762                # Test for the Solaris 7 locale name.
42763                if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
42764                  gt_cv_locale_fr=fr
42765                else
42766                  # None found.
42767                  gt_cv_locale_fr=none
42768                fi
42769              fi
42770            fi
42771          fi
42772        fi
42773      fi
42774      rm -fr conftest*
42775    fi
42776
42777fi
42778{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
42779$as_echo "$gt_cv_locale_fr" >&6; }
42780  LOCALE_FR=$gt_cv_locale_fr
42781
42782
42783
42784
42785  { $as_echo "$as_me:$LINENO: checking for a turkish Unicode locale" >&5
42786$as_echo_n "checking for a turkish Unicode locale... " >&6; }
42787if test "${gt_cv_locale_tr_utf8+set}" = set; then
42788  $as_echo_n "(cached) " >&6
42789else
42790
42791    cat >conftest.$ac_ext <<_ACEOF
42792/* confdefs.h.  */
42793_ACEOF
42794cat confdefs.h >>conftest.$ac_ext
42795cat >>conftest.$ac_ext <<_ACEOF
42796/* end confdefs.h.  */
42797
42798#include <locale.h>
42799#include <time.h>
42800#if HAVE_LANGINFO_CODESET
42801# include <langinfo.h>
42802#endif
42803#include <stdlib.h>
42804#include <string.h>
42805struct tm t;
42806char buf[16];
42807int main () {
42808  /* On BeOS, locales are not implemented in libc.  Rather, libintl
42809     imitates locale dependent behaviour by looking at the environment
42810     variables, and all locales use the UTF-8 encoding.  */
42811#if !defined(__BEOS__)
42812  /* Check whether the given locale name is recognized by the system.  */
42813  if (setlocale (LC_ALL, "") == NULL) return 1;
42814  /* Check whether nl_langinfo(CODESET) is nonempty.
42815     On MacOS X 10.3.5 (Darwin 7.5) in the tr_TR locale, nl_langinfo(CODESET)
42816     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
42817# if HAVE_LANGINFO_CODESET
42818  if (nl_langinfo (CODESET) [0] == '\0') return 1;
42819# endif
42820# ifdef __CYGWIN__
42821  /* On Cygwin, avoid locale names without encoding suffix, because the
42822     locale_charset() function relies on the encoding suffix.  Note that
42823     LC_ALL is set on the command line.  */
42824  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
42825# endif
42826  /* Check whether in the abbreviation of the eighth month, the second
42827     character (should be U+011F: LATIN SMALL LETTER G WITH BREVE) is
42828     two bytes long, with UTF-8 encoding.  */
42829  t.tm_year = 1992 - 1900; t.tm_mon = 8 - 1; t.tm_mday = 19;
42830  if (strftime (buf, sizeof (buf), "%b", &t) < 4
42831      || buf[1] != (char) 0xc4 || buf[2] != (char) 0x9f)
42832    return 1;
42833  /* Check whether the upper-/lowercase mappings are as expected for
42834     Turkish.  */
42835  if (towupper ('i') != 0x0130 || towlower (0x0130) != 'i'
42836      || towupper(0x0131) != 'I' || towlower ('I') != 0x0131)
42837    return 1;
42838#endif
42839  return 0;
42840}
42841
42842_ACEOF
42843    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42844  (eval $ac_link) 2>&5
42845  ac_status=$?
42846  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42847  (exit $ac_status); } && test -s conftest$ac_exeext; then
42848      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
42849      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
42850      # configure script would override the LC_ALL setting. Likewise for
42851      # LC_CTYPE, which is also set at the beginning of the configure script.
42852      # Test for the usual locale name.
42853      if (LC_ALL=tr_TR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
42854        gt_cv_locale_tr_utf8=tr_TR
42855      else
42856        # Test for the locale name with explicit encoding suffix.
42857        if (LC_ALL=tr_TR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
42858          gt_cv_locale_tr_utf8=tr_TR.UTF-8
42859        else
42860          # Test for the Solaris 7 locale name.
42861          if (LC_ALL=tr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
42862            gt_cv_locale_tr_utf8=tr.UTF-8
42863          else
42864            # None found.
42865            gt_cv_locale_tr_utf8=none
42866          fi
42867        fi
42868      fi
42869    else
42870      gt_cv_locale_tr_utf8=none
42871    fi
42872    rm -fr conftest*
42873
42874fi
42875{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_tr_utf8" >&5
42876$as_echo "$gt_cv_locale_tr_utf8" >&6; }
42877  LOCALE_TR_UTF8=$gt_cv_locale_tr_utf8
42878
42879
42880
42881
42882  :
42883
42884
42885
42886
42887
42888
42889  :
42890
42891
42892
42893
42894
42895  if test $ac_cv_func_canonicalize_file_name = no; then
42896
42897
42898
42899
42900
42901
42902
42903  gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
42904
42905
42906cat >>confdefs.h <<\_ACEOF
42907#define realpath rpl_realpath
42908_ACEOF
42909
42910
42911
42912  :
42913
42914
42915
42916
42917
42918
42919
42920
42921
42922  :
42923
42924
42925
42926
42927
42928
42929
42930
42931
42932  fi
42933
42934
42935cat >>confdefs.h <<\_ACEOF
42936#define SIGNAL_SAFE_LIST 1
42937_ACEOF
42938
42939
42940
42941  :
42942
42943
42944
42945
42946
42947
42948
42949
42950
42951
42952
42953for ac_func in chown utime utimes
42954do
42955as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42956{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42957$as_echo_n "checking for $ac_func... " >&6; }
42958if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42959  $as_echo_n "(cached) " >&6
42960else
42961  cat >conftest.$ac_ext <<_ACEOF
42962/* confdefs.h.  */
42963_ACEOF
42964cat confdefs.h >>conftest.$ac_ext
42965cat >>conftest.$ac_ext <<_ACEOF
42966/* end confdefs.h.  */
42967/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42968   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42969#define $ac_func innocuous_$ac_func
42970
42971/* System header to define __stub macros and hopefully few prototypes,
42972    which can conflict with char $ac_func (); below.
42973    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42974    <limits.h> exists even on freestanding compilers.  */
42975
42976#ifdef __STDC__
42977# include <limits.h>
42978#else
42979# include <assert.h>
42980#endif
42981
42982#undef $ac_func
42983
42984/* Override any GCC internal prototype to avoid an error.
42985   Use char because int might match the return type of a GCC
42986   builtin and then its argument prototype would still apply.  */
42987#ifdef __cplusplus
42988extern "C"
42989#endif
42990char $ac_func ();
42991/* The GNU C library defines this for functions which it implements
42992    to always fail with ENOSYS.  Some functions are actually named
42993    something starting with __ and the normal name is an alias.  */
42994#if defined __stub_$ac_func || defined __stub___$ac_func
42995choke me
42996#endif
42997
42998int
42999main ()
43000{
43001return $ac_func ();
43002  ;
43003  return 0;
43004}
43005_ACEOF
43006rm -f conftest.$ac_objext conftest$ac_exeext
43007if { (ac_try="$ac_link"
43008case "(($ac_try" in
43009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43010  *) ac_try_echo=$ac_try;;
43011esac
43012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43013$as_echo "$ac_try_echo") >&5
43014  (eval "$ac_link") 2>conftest.er1
43015  ac_status=$?
43016  grep -v '^ *+' conftest.er1 >conftest.err
43017  rm -f conftest.er1
43018  cat conftest.err >&5
43019  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43020  (exit $ac_status); } && {
43021	 test -z "$ac_c_werror_flag" ||
43022	 test ! -s conftest.err
43023       } && test -s conftest$ac_exeext && {
43024	 test "$cross_compiling" = yes ||
43025	 $as_test_x conftest$ac_exeext
43026       }; then
43027  eval "$as_ac_var=yes"
43028else
43029  $as_echo "$as_me: failed program was:" >&5
43030sed 's/^/| /' conftest.$ac_ext >&5
43031
43032	eval "$as_ac_var=no"
43033fi
43034
43035rm -rf conftest.dSYM
43036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43037      conftest$ac_exeext conftest.$ac_ext
43038fi
43039ac_res=`eval 'as_val=${'$as_ac_var'}
43040		 $as_echo "$as_val"'`
43041	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43042$as_echo "$ac_res" >&6; }
43043as_val=`eval 'as_val=${'$as_ac_var'}
43044		 $as_echo "$as_val"'`
43045   if test "x$as_val" = x""yes; then
43046  cat >>confdefs.h <<_ACEOF
43047#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43048_ACEOF
43049
43050fi
43051done
43052
43053
43054
43055  ac_config_files="$ac_config_files csharpcomp.sh:../build-aux/csharpcomp.sh.in"
43056
43057  # You need to invoke gt_CSHARPEXEC yourself, possibly with arguments.
43058  ac_config_files="$ac_config_files csharpexec.sh:../build-aux/csharpexec.sh.in"
43059
43060
43061
43062
43063
43064
43065
43066
43067
43068
43069
43070
43071{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
43072$as_echo_n "checking for error_at_line... " >&6; }
43073if test "${ac_cv_lib_error_at_line+set}" = set; then
43074  $as_echo_n "(cached) " >&6
43075else
43076  cat >conftest.$ac_ext <<_ACEOF
43077/* confdefs.h.  */
43078_ACEOF
43079cat confdefs.h >>conftest.$ac_ext
43080cat >>conftest.$ac_ext <<_ACEOF
43081/* end confdefs.h.  */
43082#include <error.h>
43083int
43084main ()
43085{
43086error_at_line (0, 0, "", 0, "an error occurred");
43087  ;
43088  return 0;
43089}
43090_ACEOF
43091rm -f conftest.$ac_objext conftest$ac_exeext
43092if { (ac_try="$ac_link"
43093case "(($ac_try" in
43094  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43095  *) ac_try_echo=$ac_try;;
43096esac
43097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43098$as_echo "$ac_try_echo") >&5
43099  (eval "$ac_link") 2>conftest.er1
43100  ac_status=$?
43101  grep -v '^ *+' conftest.er1 >conftest.err
43102  rm -f conftest.er1
43103  cat conftest.err >&5
43104  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105  (exit $ac_status); } && {
43106	 test -z "$ac_c_werror_flag" ||
43107	 test ! -s conftest.err
43108       } && test -s conftest$ac_exeext && {
43109	 test "$cross_compiling" = yes ||
43110	 $as_test_x conftest$ac_exeext
43111       }; then
43112  ac_cv_lib_error_at_line=yes
43113else
43114  $as_echo "$as_me: failed program was:" >&5
43115sed 's/^/| /' conftest.$ac_ext >&5
43116
43117	ac_cv_lib_error_at_line=no
43118fi
43119
43120rm -rf conftest.dSYM
43121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43122      conftest$ac_exeext conftest.$ac_ext
43123fi
43124{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
43125$as_echo "$ac_cv_lib_error_at_line" >&6; }
43126if test $ac_cv_lib_error_at_line = no; then
43127
43128
43129
43130
43131
43132
43133
43134  gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
43135
43136fi
43137
43138
43139
43140  :
43141
43142
43143
43144
43145  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
43146
43147
43148
43149  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
43150
43151
43152
43153
43154
43155  :
43156
43157
43158
43159
43160
43161
43162
43163for ac_func in posix_spawn
43164do
43165as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43166{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43167$as_echo_n "checking for $ac_func... " >&6; }
43168if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43169  $as_echo_n "(cached) " >&6
43170else
43171  cat >conftest.$ac_ext <<_ACEOF
43172/* confdefs.h.  */
43173_ACEOF
43174cat confdefs.h >>conftest.$ac_ext
43175cat >>conftest.$ac_ext <<_ACEOF
43176/* end confdefs.h.  */
43177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43178   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43179#define $ac_func innocuous_$ac_func
43180
43181/* System header to define __stub macros and hopefully few prototypes,
43182    which can conflict with char $ac_func (); below.
43183    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43184    <limits.h> exists even on freestanding compilers.  */
43185
43186#ifdef __STDC__
43187# include <limits.h>
43188#else
43189# include <assert.h>
43190#endif
43191
43192#undef $ac_func
43193
43194/* Override any GCC internal prototype to avoid an error.
43195   Use char because int might match the return type of a GCC
43196   builtin and then its argument prototype would still apply.  */
43197#ifdef __cplusplus
43198extern "C"
43199#endif
43200char $ac_func ();
43201/* The GNU C library defines this for functions which it implements
43202    to always fail with ENOSYS.  Some functions are actually named
43203    something starting with __ and the normal name is an alias.  */
43204#if defined __stub_$ac_func || defined __stub___$ac_func
43205choke me
43206#endif
43207
43208int
43209main ()
43210{
43211return $ac_func ();
43212  ;
43213  return 0;
43214}
43215_ACEOF
43216rm -f conftest.$ac_objext conftest$ac_exeext
43217if { (ac_try="$ac_link"
43218case "(($ac_try" in
43219  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43220  *) ac_try_echo=$ac_try;;
43221esac
43222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43223$as_echo "$ac_try_echo") >&5
43224  (eval "$ac_link") 2>conftest.er1
43225  ac_status=$?
43226  grep -v '^ *+' conftest.er1 >conftest.err
43227  rm -f conftest.er1
43228  cat conftest.err >&5
43229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43230  (exit $ac_status); } && {
43231	 test -z "$ac_c_werror_flag" ||
43232	 test ! -s conftest.err
43233       } && test -s conftest$ac_exeext && {
43234	 test "$cross_compiling" = yes ||
43235	 $as_test_x conftest$ac_exeext
43236       }; then
43237  eval "$as_ac_var=yes"
43238else
43239  $as_echo "$as_me: failed program was:" >&5
43240sed 's/^/| /' conftest.$ac_ext >&5
43241
43242	eval "$as_ac_var=no"
43243fi
43244
43245rm -rf conftest.dSYM
43246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43247      conftest$ac_exeext conftest.$ac_ext
43248fi
43249ac_res=`eval 'as_val=${'$as_ac_var'}
43250		 $as_echo "$as_val"'`
43251	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43252$as_echo "$ac_res" >&6; }
43253as_val=`eval 'as_val=${'$as_ac_var'}
43254		 $as_echo "$as_val"'`
43255   if test "x$as_val" = x""yes; then
43256  cat >>confdefs.h <<_ACEOF
43257#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43258_ACEOF
43259
43260fi
43261done
43262
43263
43264
43265    :
43266
43267
43268
43269
43270  :
43271
43272
43273
43274
43275
43276
43277  :
43278
43279
43280
43281
43282
43283
43284for ac_func in sigaction
43285do
43286as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43287{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
43288$as_echo_n "checking for $ac_func... " >&6; }
43289if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43290  $as_echo_n "(cached) " >&6
43291else
43292  cat >conftest.$ac_ext <<_ACEOF
43293/* confdefs.h.  */
43294_ACEOF
43295cat confdefs.h >>conftest.$ac_ext
43296cat >>conftest.$ac_ext <<_ACEOF
43297/* end confdefs.h.  */
43298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43299   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43300#define $ac_func innocuous_$ac_func
43301
43302/* System header to define __stub macros and hopefully few prototypes,
43303    which can conflict with char $ac_func (); below.
43304    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43305    <limits.h> exists even on freestanding compilers.  */
43306
43307#ifdef __STDC__
43308# include <limits.h>
43309#else
43310# include <assert.h>
43311#endif
43312
43313#undef $ac_func
43314
43315/* Override any GCC internal prototype to avoid an error.
43316   Use char because int might match the return type of a GCC
43317   builtin and then its argument prototype would still apply.  */
43318#ifdef __cplusplus
43319extern "C"
43320#endif
43321char $ac_func ();
43322/* The GNU C library defines this for functions which it implements
43323    to always fail with ENOSYS.  Some functions are actually named
43324    something starting with __ and the normal name is an alias.  */
43325#if defined __stub_$ac_func || defined __stub___$ac_func
43326choke me
43327#endif
43328
43329int
43330main ()
43331{
43332return $ac_func ();
43333  ;
43334  return 0;
43335}
43336_ACEOF
43337rm -f conftest.$ac_objext conftest$ac_exeext
43338if { (ac_try="$ac_link"
43339case "(($ac_try" in
43340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43341  *) ac_try_echo=$ac_try;;
43342esac
43343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43344$as_echo "$ac_try_echo") >&5
43345  (eval "$ac_link") 2>conftest.er1
43346  ac_status=$?
43347  grep -v '^ *+' conftest.er1 >conftest.err
43348  rm -f conftest.er1
43349  cat conftest.err >&5
43350  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43351  (exit $ac_status); } && {
43352	 test -z "$ac_c_werror_flag" ||
43353	 test ! -s conftest.err
43354       } && test -s conftest$ac_exeext && {
43355	 test "$cross_compiling" = yes ||
43356	 $as_test_x conftest$ac_exeext
43357       }; then
43358  eval "$as_ac_var=yes"
43359else
43360  $as_echo "$as_me: failed program was:" >&5
43361sed 's/^/| /' conftest.$ac_ext >&5
43362
43363	eval "$as_ac_var=no"
43364fi
43365
43366rm -rf conftest.dSYM
43367rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43368      conftest$ac_exeext conftest.$ac_ext
43369fi
43370ac_res=`eval 'as_val=${'$as_ac_var'}
43371		 $as_echo "$as_val"'`
43372	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43373$as_echo "$ac_res" >&6; }
43374as_val=`eval 'as_val=${'$as_ac_var'}
43375		 $as_echo "$as_val"'`
43376   if test "x$as_val" = x""yes; then
43377  cat >>confdefs.h <<_ACEOF
43378#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43379_ACEOF
43380
43381fi
43382done
43383
43384
43385
43386
43387  { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
43388$as_echo_n "checking for working fcntl.h... " >&6; }
43389if test "${gl_cv_header_working_fcntl_h+set}" = set; then
43390  $as_echo_n "(cached) " >&6
43391else
43392  if test "$cross_compiling" = yes; then
43393  gl_cv_header_working_fcntl_h=cross-compiling
43394else
43395  cat >conftest.$ac_ext <<_ACEOF
43396/* confdefs.h.  */
43397_ACEOF
43398cat confdefs.h >>conftest.$ac_ext
43399cat >>conftest.$ac_ext <<_ACEOF
43400/* end confdefs.h.  */
43401#include <sys/types.h>
43402	   #include <sys/stat.h>
43403	   #include <unistd.h>
43404	   #include <fcntl.h>
43405	   #ifndef O_NOATIME
43406	    #define O_NOATIME 0
43407	   #endif
43408	   #ifndef O_NOFOLLOW
43409	    #define O_NOFOLLOW 0
43410	   #endif
43411	   static int const constants[] =
43412	    {
43413	      O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
43414	      O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
43415	    };
43416
43417int
43418main ()
43419{
43420
43421	    int status = !constants;
43422	    {
43423	      static char const sym[] = "conftest.sym";
43424	      if (symlink (".", sym) != 0
43425		  || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
43426		status |= 32;
43427	    }
43428	    {
43429	      static char const file[] = "confdefs.h";
43430	      int fd = open (file, O_RDONLY | O_NOATIME);
43431	      char c;
43432	      struct stat st0, st1;
43433	      if (fd < 0
43434		  || fstat (fd, &st0) != 0
43435		  || sleep (1) != 0
43436		  || read (fd, &c, 1) != 1
43437		  || close (fd) != 0
43438		  || stat (file, &st1) != 0
43439		  || st0.st_atime != st1.st_atime)
43440		status |= 64;
43441	    }
43442	    return status;
43443  ;
43444  return 0;
43445}
43446_ACEOF
43447rm -f conftest$ac_exeext
43448if { (ac_try="$ac_link"
43449case "(($ac_try" in
43450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43451  *) ac_try_echo=$ac_try;;
43452esac
43453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43454$as_echo "$ac_try_echo") >&5
43455  (eval "$ac_link") 2>&5
43456  ac_status=$?
43457  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43458  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43459  { (case "(($ac_try" in
43460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43461  *) ac_try_echo=$ac_try;;
43462esac
43463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43464$as_echo "$ac_try_echo") >&5
43465  (eval "$ac_try") 2>&5
43466  ac_status=$?
43467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43468  (exit $ac_status); }; }; then
43469  gl_cv_header_working_fcntl_h=yes
43470else
43471  $as_echo "$as_me: program exited with status $ac_status" >&5
43472$as_echo "$as_me: failed program was:" >&5
43473sed 's/^/| /' conftest.$ac_ext >&5
43474
43475( exit $ac_status )
43476case $? in #(
43477	32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
43478	64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
43479	96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
43480	 *) gl_cv_header_working_fcntl_h='no';;
43481	esac
43482fi
43483rm -rf conftest.dSYM
43484rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43485fi
43486
43487
43488fi
43489{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
43490$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
43491
43492  case $gl_cv_header_working_fcntl_h in #(
43493  *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
43494  *) ac_val=1;;
43495  esac
43496
43497cat >>confdefs.h <<_ACEOF
43498#define HAVE_WORKING_O_NOATIME $ac_val
43499_ACEOF
43500
43501
43502  case $gl_cv_header_working_fcntl_h in #(
43503  *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
43504  *) ac_val=1;;
43505  esac
43506
43507cat >>confdefs.h <<_ACEOF
43508#define HAVE_WORKING_O_NOFOLLOW $ac_val
43509_ACEOF
43510
43511
43512
43513
43514
43515  :
43516
43517
43518
43519
43520
43521
43522
43523     if test $gl_cv_have_include_next = yes; then
43524       gl_cv_next_fcntl_h='<'fcntl.h'>'
43525     else
43526       { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
43527$as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
43528if test "${gl_cv_next_fcntl_h+set}" = set; then
43529  $as_echo_n "(cached) " >&6
43530else
43531
43532	  if test $ac_cv_header_fcntl_h = yes; then
43533	    cat >conftest.$ac_ext <<_ACEOF
43534/* confdefs.h.  */
43535_ACEOF
43536cat confdefs.h >>conftest.$ac_ext
43537cat >>conftest.$ac_ext <<_ACEOF
43538/* end confdefs.h.  */
43539#include <fcntl.h>
43540
43541_ACEOF
43542	    	    	    	    gl_cv_next_fcntl_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43543	       sed -n '\#/fcntl.h#{
43544		 s#.*"\(.*/fcntl.h\)".*#\1#
43545		 s#^/[^/]#//&#
43546		 p
43547		 q
43548	       }'`'"'
43549	  else
43550	    gl_cv_next_fcntl_h='<'fcntl.h'>'
43551	  fi
43552
43553fi
43554{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
43555$as_echo "$gl_cv_next_fcntl_h" >&6; }
43556     fi
43557     NEXT_FCNTL_H=$gl_cv_next_fcntl_h
43558
43559
43560
43561  FCNTL_H='fcntl.h'
43562
43563
43564
43565
43566  :
43567
43568
43569
43570
43571
43572
43573
43574
43575
43576
43577  FLOAT_H=
43578  case "$host_os" in
43579    beos*)
43580      FLOAT_H=float.h
43581
43582
43583
43584  :
43585
43586
43587
43588
43589
43590
43591
43592     if test $gl_cv_have_include_next = yes; then
43593       gl_cv_next_float_h='<'float.h'>'
43594     else
43595       { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
43596$as_echo_n "checking absolute name of <float.h>... " >&6; }
43597if test "${gl_cv_next_float_h+set}" = set; then
43598  $as_echo_n "(cached) " >&6
43599else
43600
43601	  if test $ac_cv_header_float_h = yes; then
43602	    cat >conftest.$ac_ext <<_ACEOF
43603/* confdefs.h.  */
43604_ACEOF
43605cat confdefs.h >>conftest.$ac_ext
43606cat >>conftest.$ac_ext <<_ACEOF
43607/* end confdefs.h.  */
43608#include <float.h>
43609
43610_ACEOF
43611	    	    	    	    gl_cv_next_float_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43612	       sed -n '\#/float.h#{
43613		 s#.*"\(.*/float.h\)".*#\1#
43614		 s#^/[^/]#//&#
43615		 p
43616		 q
43617	       }'`'"'
43618	  else
43619	    gl_cv_next_float_h='<'float.h'>'
43620	  fi
43621
43622fi
43623{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
43624$as_echo "$gl_cv_next_float_h" >&6; }
43625     fi
43626     NEXT_FLOAT_H=$gl_cv_next_float_h
43627
43628
43629
43630      ;;
43631  esac
43632
43633
43634  # No macro. You should also use one of fnmatch-posix or fnmatch-gnu.
43635
43636  FNMATCH_H=
43637  { $as_echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
43638$as_echo_n "checking for working POSIX fnmatch... " >&6; }
43639if test "${ac_cv_func_fnmatch_posix+set}" = set; then
43640  $as_echo_n "(cached) " >&6
43641else
43642              if test "$cross_compiling" = yes; then
43643  ac_cv_func_fnmatch_posix=cross
43644else
43645  cat >conftest.$ac_ext <<_ACEOF
43646/* confdefs.h.  */
43647_ACEOF
43648cat confdefs.h >>conftest.$ac_ext
43649cat >>conftest.$ac_ext <<_ACEOF
43650/* end confdefs.h.  */
43651#include <fnmatch.h>
43652	   static int
43653	   y (char const *pattern, char const *string, int flags)
43654	   {
43655	     return fnmatch (pattern, string, flags) == 0;
43656	   }
43657	   static int
43658	   n (char const *pattern, char const *string, int flags)
43659	   {
43660	     return fnmatch (pattern, string, flags) == FNM_NOMATCH;
43661	   }
43662
43663int
43664main ()
43665{
43666char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
43667	   char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
43668	   static char const A_1[] = { 'A' - 1, 0 };
43669	   static char const A01[] = { 'A' + 1, 0 };
43670	   static char const a_1[] = { 'a' - 1, 0 };
43671	   static char const a01[] = { 'a' + 1, 0 };
43672	   static char const bs_1[] = { '\\\\' - 1, 0 };
43673	   static char const bs01[] = { '\\\\' + 1, 0 };
43674	   return
43675	    !(n ("a*", "", 0)
43676	      && y ("a*", "abc", 0)
43677	      && n ("d*/*1", "d/s/1", FNM_PATHNAME)
43678	      && y ("a\\\\bc", "abc", 0)
43679	      && n ("a\\\\bc", "abc", FNM_NOESCAPE)
43680	      && y ("*x", ".x", 0)
43681	      && n ("*x", ".x", FNM_PERIOD)
43682	      && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
43683	      && y (apat, "\\\\", 0) && y (apat, "a", 0)
43684	      && n (Apat, A_1, 0) == ('A' < '\\\\')
43685	      && n (apat, a_1, 0) == ('a' < '\\\\')
43686	      && y (Apat, A01, 0) == ('A' < '\\\\')
43687	      && y (apat, a01, 0) == ('a' < '\\\\')
43688	      && y (Apat, bs_1, 0) == ('A' < '\\\\')
43689	      && y (apat, bs_1, 0) == ('a' < '\\\\')
43690	      && n (Apat, bs01, 0) == ('A' < '\\\\')
43691	      && n (apat, bs01, 0) == ('a' < '\\\\')
43692	      && 1);
43693  ;
43694  return 0;
43695}
43696_ACEOF
43697rm -f conftest$ac_exeext
43698if { (ac_try="$ac_link"
43699case "(($ac_try" in
43700  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43701  *) ac_try_echo=$ac_try;;
43702esac
43703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43704$as_echo "$ac_try_echo") >&5
43705  (eval "$ac_link") 2>&5
43706  ac_status=$?
43707  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43708  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43709  { (case "(($ac_try" in
43710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43711  *) ac_try_echo=$ac_try;;
43712esac
43713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43714$as_echo "$ac_try_echo") >&5
43715  (eval "$ac_try") 2>&5
43716  ac_status=$?
43717  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718  (exit $ac_status); }; }; then
43719  ac_cv_func_fnmatch_posix=yes
43720else
43721  $as_echo "$as_me: program exited with status $ac_status" >&5
43722$as_echo "$as_me: failed program was:" >&5
43723sed 's/^/| /' conftest.$ac_ext >&5
43724
43725( exit $ac_status )
43726ac_cv_func_fnmatch_posix=no
43727fi
43728rm -rf conftest.dSYM
43729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43730fi
43731
43732
43733fi
43734{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_posix" >&5
43735$as_echo "$ac_cv_func_fnmatch_posix" >&6; }
43736if test $ac_cv_func_fnmatch_posix = yes; then
43737  rm -f lib/fnmatch.h
43738else
43739  { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
43740$as_echo_n "checking whether isblank is declared... " >&6; }
43741if test "${ac_cv_have_decl_isblank+set}" = set; then
43742  $as_echo_n "(cached) " >&6
43743else
43744  cat >conftest.$ac_ext <<_ACEOF
43745/* confdefs.h.  */
43746_ACEOF
43747cat confdefs.h >>conftest.$ac_ext
43748cat >>conftest.$ac_ext <<_ACEOF
43749/* end confdefs.h.  */
43750#include <ctype.h>
43751
43752int
43753main ()
43754{
43755#ifndef isblank
43756  (void) isblank;
43757#endif
43758
43759  ;
43760  return 0;
43761}
43762_ACEOF
43763rm -f conftest.$ac_objext
43764if { (ac_try="$ac_compile"
43765case "(($ac_try" in
43766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43767  *) ac_try_echo=$ac_try;;
43768esac
43769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43770$as_echo "$ac_try_echo") >&5
43771  (eval "$ac_compile") 2>conftest.er1
43772  ac_status=$?
43773  grep -v '^ *+' conftest.er1 >conftest.err
43774  rm -f conftest.er1
43775  cat conftest.err >&5
43776  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43777  (exit $ac_status); } && {
43778	 test -z "$ac_c_werror_flag" ||
43779	 test ! -s conftest.err
43780       } && test -s conftest.$ac_objext; then
43781  ac_cv_have_decl_isblank=yes
43782else
43783  $as_echo "$as_me: failed program was:" >&5
43784sed 's/^/| /' conftest.$ac_ext >&5
43785
43786	ac_cv_have_decl_isblank=no
43787fi
43788
43789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43790fi
43791{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
43792$as_echo "$ac_cv_have_decl_isblank" >&6; }
43793if test "x$ac_cv_have_decl_isblank" = x""yes; then
43794
43795cat >>confdefs.h <<_ACEOF
43796#define HAVE_DECL_ISBLANK 1
43797_ACEOF
43798
43799
43800else
43801  cat >>confdefs.h <<_ACEOF
43802#define HAVE_DECL_ISBLANK 0
43803_ACEOF
43804
43805
43806fi
43807
43808
43809
43810  :
43811
43812
43813
43814
43815
43816
43817
43818
43819
43820
43821
43822
43823
43824
43825
43826
43827
43828
43829
43830
43831
43832
43833
43834
43835
43836
43837
43838  :
43839
43840
43841
43842
43843
43844
43845
43846
43847
43848
43849
43850
43851  gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
43852
43853FNMATCH_H=fnmatch.h
43854
43855fi
43856
43857
43858  if test $ac_cv_func_fnmatch_posix != yes; then
43859
43860cat >>confdefs.h <<\_ACEOF
43861#define fnmatch posix_fnmatch
43862_ACEOF
43863
43864  fi
43865
43866
43867
43868
43869
43870  case "$host_os" in
43871    mingw* | pw*)
43872      REPLACE_FOPEN=1
43873
43874
43875
43876
43877
43878
43879
43880  gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
43881
43882      ;;
43883  esac
43884
43885
43886
43887  GNULIB_FOPEN=1
43888
43889
43890
43891cat >>confdefs.h <<\_ACEOF
43892#define GNULIB_FWRITEERROR 1
43893_ACEOF
43894
43895
43896
43897
43898
43899
43900  { $as_echo "$as_me:$LINENO: checking for Java to native code compiler" >&5
43901$as_echo_n "checking for Java to native code compiler... " >&6; }
43902  # Search for the gcj command or use the one provided by the user.
43903  if test -z "$GCJ"; then
43904                if test -n "$ac_tool_prefix"; then
43905  # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
43906set dummy ${ac_tool_prefix}gcj; ac_word=$2
43907:
43908if test "${ac_cv_prog_GCJ+set}" = set; then
43909  $as_echo_n "(cached) " >&6
43910else
43911  if test -n "$GCJ"; then
43912  ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
43913else
43914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43915for as_dir in $PATH
43916do
43917  IFS=$as_save_IFS
43918  test -z "$as_dir" && as_dir=.
43919  for ac_exec_ext in '' $ac_executable_extensions; do
43920  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43921    ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
43922    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43923    break 2
43924  fi
43925done
43926done
43927IFS=$as_save_IFS
43928
43929fi
43930fi
43931GCJ=$ac_cv_prog_GCJ
43932if test -n "$GCJ"; then
43933  :
43934else
43935  :
43936fi
43937
43938
43939fi
43940if test -z "$ac_cv_prog_GCJ"; then
43941  ac_ct_GCJ=$GCJ
43942  # Extract the first word of "gcj", so it can be a program name with args.
43943set dummy gcj; ac_word=$2
43944:
43945if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
43946  $as_echo_n "(cached) " >&6
43947else
43948  if test -n "$ac_ct_GCJ"; then
43949  ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
43950else
43951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43952for as_dir in $PATH
43953do
43954  IFS=$as_save_IFS
43955  test -z "$as_dir" && as_dir=.
43956  for ac_exec_ext in '' $ac_executable_extensions; do
43957  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43958    ac_cv_prog_ac_ct_GCJ="gcj"
43959    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43960    break 2
43961  fi
43962done
43963done
43964IFS=$as_save_IFS
43965
43966fi
43967fi
43968ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
43969if test -n "$ac_ct_GCJ"; then
43970  :
43971else
43972  :
43973fi
43974
43975  if test "x$ac_ct_GCJ" = x; then
43976    GCJ="none"
43977  else
43978    case $cross_compiling:$ac_tool_warned in
43979yes:)
43980{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
43981$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43982ac_tool_warned=yes ;;
43983esac
43984    GCJ=$ac_ct_GCJ
43985  fi
43986else
43987  GCJ="$ac_cv_prog_GCJ"
43988fi
43989
43990              fi
43991  # Choose GCJFLAGS or use the one provided by the user.
43992  if test "$GCJ" != none; then
43993    test "${GCJFLAGS+set}" != set || GCJFLAGS="-O2 -g"
43994  fi
43995  # Check whether the version is ok and it can create executables.
43996  ac_gcj_link="$GCJ $GCJFLAGS conftest.java --main=conftest -o conftest$ac_exeext"
43997  if test "$GCJ" != none \
43998     && $GCJ --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | grep '^[3-9]' >/dev/null \
43999     && (
44000      # See if libgcj.so is well installed and if exception handling works.
44001      cat > conftest.java <<EOF
44002public class conftest {
44003  public static void main (String[] args) {
44004    try {
44005      java.util.ResourceBundle.getBundle("foobar");
44006    } catch (Exception e) {
44007    }
44008    System.exit(0);
44009  }
44010}
44011EOF
44012      { (eval echo "$as_me:$LINENO: \"$ac_gcj_link\"") >&5
44013  (eval $ac_gcj_link) 2>&5
44014  ac_status=$?
44015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44016  (exit $ac_status); }
44017      error=$?
44018      if test $error = 0 && test "$cross_compiling" != yes; then
44019        # Run conftest and catch its exit status, but silently.
44020        error=`./conftest >/dev/null 2>&1; echo $?`
44021        test $error = 0 || error=1
44022        rm -f core conftest.core
44023      fi
44024      rm -f conftest.java conftest$ac_exeext
44025      exit $error
44026     ); then
44027    :
44028  else
44029    GCJ=none
44030  fi
44031  { $as_echo "$as_me:$LINENO: result: $GCJ" >&5
44032$as_echo "$GCJ" >&6; }
44033  if test "$GCJ" != none; then
44034    HAVE_GCJ=1
44035  else
44036    HAVE_GCJ=
44037  fi
44038
44039
44040
44041
44042
44043
44044
44045
44046
44047
44048
44049
44050
44051
44052
44053
44054
44055for ac_func in getdelim
44056do
44057as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44058{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44059$as_echo_n "checking for $ac_func... " >&6; }
44060if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44061  $as_echo_n "(cached) " >&6
44062else
44063  cat >conftest.$ac_ext <<_ACEOF
44064/* confdefs.h.  */
44065_ACEOF
44066cat confdefs.h >>conftest.$ac_ext
44067cat >>conftest.$ac_ext <<_ACEOF
44068/* end confdefs.h.  */
44069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44070   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44071#define $ac_func innocuous_$ac_func
44072
44073/* System header to define __stub macros and hopefully few prototypes,
44074    which can conflict with char $ac_func (); below.
44075    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44076    <limits.h> exists even on freestanding compilers.  */
44077
44078#ifdef __STDC__
44079# include <limits.h>
44080#else
44081# include <assert.h>
44082#endif
44083
44084#undef $ac_func
44085
44086/* Override any GCC internal prototype to avoid an error.
44087   Use char because int might match the return type of a GCC
44088   builtin and then its argument prototype would still apply.  */
44089#ifdef __cplusplus
44090extern "C"
44091#endif
44092char $ac_func ();
44093/* The GNU C library defines this for functions which it implements
44094    to always fail with ENOSYS.  Some functions are actually named
44095    something starting with __ and the normal name is an alias.  */
44096#if defined __stub_$ac_func || defined __stub___$ac_func
44097choke me
44098#endif
44099
44100int
44101main ()
44102{
44103return $ac_func ();
44104  ;
44105  return 0;
44106}
44107_ACEOF
44108rm -f conftest.$ac_objext conftest$ac_exeext
44109if { (ac_try="$ac_link"
44110case "(($ac_try" in
44111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44112  *) ac_try_echo=$ac_try;;
44113esac
44114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44115$as_echo "$ac_try_echo") >&5
44116  (eval "$ac_link") 2>conftest.er1
44117  ac_status=$?
44118  grep -v '^ *+' conftest.er1 >conftest.err
44119  rm -f conftest.er1
44120  cat conftest.err >&5
44121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122  (exit $ac_status); } && {
44123	 test -z "$ac_c_werror_flag" ||
44124	 test ! -s conftest.err
44125       } && test -s conftest$ac_exeext && {
44126	 test "$cross_compiling" = yes ||
44127	 $as_test_x conftest$ac_exeext
44128       }; then
44129  eval "$as_ac_var=yes"
44130else
44131  $as_echo "$as_me: failed program was:" >&5
44132sed 's/^/| /' conftest.$ac_ext >&5
44133
44134	eval "$as_ac_var=no"
44135fi
44136
44137rm -rf conftest.dSYM
44138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44139      conftest$ac_exeext conftest.$ac_ext
44140fi
44141ac_res=`eval 'as_val=${'$as_ac_var'}
44142		 $as_echo "$as_val"'`
44143	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44144$as_echo "$ac_res" >&6; }
44145as_val=`eval 'as_val=${'$as_ac_var'}
44146		 $as_echo "$as_val"'`
44147   if test "x$as_val" = x""yes; then
44148  cat >>confdefs.h <<_ACEOF
44149#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44150_ACEOF
44151
44152else
44153
44154    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44155
44156fi
44157done
44158
44159
44160
44161  :
44162
44163
44164
44165
44166
44167
44168  if test $ac_cv_func_getdelim = no; then
44169
44170
44171
44172for ac_func in flockfile funlockfile
44173do
44174as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44175{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44176$as_echo_n "checking for $ac_func... " >&6; }
44177if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44178  $as_echo_n "(cached) " >&6
44179else
44180  cat >conftest.$ac_ext <<_ACEOF
44181/* confdefs.h.  */
44182_ACEOF
44183cat confdefs.h >>conftest.$ac_ext
44184cat >>conftest.$ac_ext <<_ACEOF
44185/* end confdefs.h.  */
44186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44187   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44188#define $ac_func innocuous_$ac_func
44189
44190/* System header to define __stub macros and hopefully few prototypes,
44191    which can conflict with char $ac_func (); below.
44192    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44193    <limits.h> exists even on freestanding compilers.  */
44194
44195#ifdef __STDC__
44196# include <limits.h>
44197#else
44198# include <assert.h>
44199#endif
44200
44201#undef $ac_func
44202
44203/* Override any GCC internal prototype to avoid an error.
44204   Use char because int might match the return type of a GCC
44205   builtin and then its argument prototype would still apply.  */
44206#ifdef __cplusplus
44207extern "C"
44208#endif
44209char $ac_func ();
44210/* The GNU C library defines this for functions which it implements
44211    to always fail with ENOSYS.  Some functions are actually named
44212    something starting with __ and the normal name is an alias.  */
44213#if defined __stub_$ac_func || defined __stub___$ac_func
44214choke me
44215#endif
44216
44217int
44218main ()
44219{
44220return $ac_func ();
44221  ;
44222  return 0;
44223}
44224_ACEOF
44225rm -f conftest.$ac_objext conftest$ac_exeext
44226if { (ac_try="$ac_link"
44227case "(($ac_try" in
44228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44229  *) ac_try_echo=$ac_try;;
44230esac
44231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44232$as_echo "$ac_try_echo") >&5
44233  (eval "$ac_link") 2>conftest.er1
44234  ac_status=$?
44235  grep -v '^ *+' conftest.er1 >conftest.err
44236  rm -f conftest.er1
44237  cat conftest.err >&5
44238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44239  (exit $ac_status); } && {
44240	 test -z "$ac_c_werror_flag" ||
44241	 test ! -s conftest.err
44242       } && test -s conftest$ac_exeext && {
44243	 test "$cross_compiling" = yes ||
44244	 $as_test_x conftest$ac_exeext
44245       }; then
44246  eval "$as_ac_var=yes"
44247else
44248  $as_echo "$as_me: failed program was:" >&5
44249sed 's/^/| /' conftest.$ac_ext >&5
44250
44251	eval "$as_ac_var=no"
44252fi
44253
44254rm -rf conftest.dSYM
44255rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44256      conftest$ac_exeext conftest.$ac_ext
44257fi
44258ac_res=`eval 'as_val=${'$as_ac_var'}
44259		 $as_echo "$as_val"'`
44260	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44261$as_echo "$ac_res" >&6; }
44262as_val=`eval 'as_val=${'$as_ac_var'}
44263		 $as_echo "$as_val"'`
44264   if test "x$as_val" = x""yes; then
44265  cat >>confdefs.h <<_ACEOF
44266#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44267_ACEOF
44268
44269fi
44270done
44271
44272
44273  fi
44274
44275  if test $ac_cv_have_decl_getdelim = no; then
44276    HAVE_DECL_GETDELIM=0
44277  fi
44278
44279
44280
44281  GNULIB_GETDELIM=1
44282
44283
44284
44285
44286
44287
44288
44289  :
44290
44291
44292
44293
44294
44295
44296  gl_getline_needs_run_time_check=no
44297  { $as_echo "$as_me:$LINENO: checking for getline" >&5
44298$as_echo_n "checking for getline... " >&6; }
44299if test "${ac_cv_func_getline+set}" = set; then
44300  $as_echo_n "(cached) " >&6
44301else
44302  cat >conftest.$ac_ext <<_ACEOF
44303/* confdefs.h.  */
44304_ACEOF
44305cat confdefs.h >>conftest.$ac_ext
44306cat >>conftest.$ac_ext <<_ACEOF
44307/* end confdefs.h.  */
44308/* Define getline to an innocuous variant, in case <limits.h> declares getline.
44309   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44310#define getline innocuous_getline
44311
44312/* System header to define __stub macros and hopefully few prototypes,
44313    which can conflict with char getline (); below.
44314    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44315    <limits.h> exists even on freestanding compilers.  */
44316
44317#ifdef __STDC__
44318# include <limits.h>
44319#else
44320# include <assert.h>
44321#endif
44322
44323#undef getline
44324
44325/* Override any GCC internal prototype to avoid an error.
44326   Use char because int might match the return type of a GCC
44327   builtin and then its argument prototype would still apply.  */
44328#ifdef __cplusplus
44329extern "C"
44330#endif
44331char getline ();
44332/* The GNU C library defines this for functions which it implements
44333    to always fail with ENOSYS.  Some functions are actually named
44334    something starting with __ and the normal name is an alias.  */
44335#if defined __stub_getline || defined __stub___getline
44336choke me
44337#endif
44338
44339int
44340main ()
44341{
44342return getline ();
44343  ;
44344  return 0;
44345}
44346_ACEOF
44347rm -f conftest.$ac_objext conftest$ac_exeext
44348if { (ac_try="$ac_link"
44349case "(($ac_try" in
44350  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44351  *) ac_try_echo=$ac_try;;
44352esac
44353eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44354$as_echo "$ac_try_echo") >&5
44355  (eval "$ac_link") 2>conftest.er1
44356  ac_status=$?
44357  grep -v '^ *+' conftest.er1 >conftest.err
44358  rm -f conftest.er1
44359  cat conftest.err >&5
44360  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44361  (exit $ac_status); } && {
44362	 test -z "$ac_c_werror_flag" ||
44363	 test ! -s conftest.err
44364       } && test -s conftest$ac_exeext && {
44365	 test "$cross_compiling" = yes ||
44366	 $as_test_x conftest$ac_exeext
44367       }; then
44368  ac_cv_func_getline=yes
44369else
44370  $as_echo "$as_me: failed program was:" >&5
44371sed 's/^/| /' conftest.$ac_ext >&5
44372
44373	ac_cv_func_getline=no
44374fi
44375
44376rm -rf conftest.dSYM
44377rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44378      conftest$ac_exeext conftest.$ac_ext
44379fi
44380{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
44381$as_echo "$ac_cv_func_getline" >&6; }
44382if test "x$ac_cv_func_getline" = x""yes; then
44383  		gl_getline_needs_run_time_check=yes
44384else
44385  am_cv_func_working_getline=no
44386fi
44387
44388  if test $gl_getline_needs_run_time_check = yes; then
44389    { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
44390$as_echo_n "checking for working getline function... " >&6; }
44391if test "${am_cv_func_working_getline+set}" = set; then
44392  $as_echo_n "(cached) " >&6
44393else
44394  echo fooN |tr -d '\012'|tr N '\012' > conftest.data
44395    if test "$cross_compiling" = yes; then
44396        cat >conftest.$ac_ext <<_ACEOF
44397/* confdefs.h.  */
44398_ACEOF
44399cat confdefs.h >>conftest.$ac_ext
44400cat >>conftest.$ac_ext <<_ACEOF
44401/* end confdefs.h.  */
44402
44403#include <features.h>
44404#ifdef __GNU_LIBRARY__
44405 #if (__GLIBC__ >= 2)
44406  Lucky GNU user
44407 #endif
44408#endif
44409
44410_ACEOF
44411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44412  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
44413  am_cv_func_working_getline=yes
44414else
44415  am_cv_func_working_getline=no
44416fi
44417rm -f conftest*
44418
44419
44420else
44421  cat >conftest.$ac_ext <<_ACEOF
44422/* confdefs.h.  */
44423_ACEOF
44424cat confdefs.h >>conftest.$ac_ext
44425cat >>conftest.$ac_ext <<_ACEOF
44426/* end confdefs.h.  */
44427
44428#    include <stdio.h>
44429#    include <stdlib.h>
44430#    include <string.h>
44431    int main ()
44432    { /* Based on a test program from Karl Heuer.  */
44433      char *line = NULL;
44434      size_t siz = 0;
44435      int len;
44436      FILE *in = fopen ("./conftest.data", "r");
44437      if (!in)
44438	return 1;
44439      len = getline (&line, &siz, in);
44440      exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
44441    }
44442
44443_ACEOF
44444rm -f conftest$ac_exeext
44445if { (ac_try="$ac_link"
44446case "(($ac_try" in
44447  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44448  *) ac_try_echo=$ac_try;;
44449esac
44450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44451$as_echo "$ac_try_echo") >&5
44452  (eval "$ac_link") 2>&5
44453  ac_status=$?
44454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44455  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44456  { (case "(($ac_try" in
44457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44458  *) ac_try_echo=$ac_try;;
44459esac
44460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44461$as_echo "$ac_try_echo") >&5
44462  (eval "$ac_try") 2>&5
44463  ac_status=$?
44464  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44465  (exit $ac_status); }; }; then
44466  am_cv_func_working_getline=yes
44467else
44468  $as_echo "$as_me: program exited with status $ac_status" >&5
44469$as_echo "$as_me: failed program was:" >&5
44470sed 's/^/| /' conftest.$ac_ext >&5
44471
44472( exit $ac_status )
44473am_cv_func_working_getline=no
44474fi
44475rm -rf conftest.dSYM
44476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44477fi
44478
44479
44480fi
44481{ $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
44482$as_echo "$am_cv_func_working_getline" >&6; }
44483  fi
44484
44485  if test $ac_cv_have_decl_getline = no; then
44486    HAVE_DECL_GETLINE=0
44487  fi
44488
44489  if test $am_cv_func_working_getline = no; then
44490    REPLACE_GETLINE=1
44491
44492
44493
44494
44495
44496
44497
44498  gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
44499
44500
44501
44502
44503
44504
44505
44506
44507
44508
44509
44510
44511
44512
44513
44514
44515for ac_func in getdelim
44516do
44517as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44518{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44519$as_echo_n "checking for $ac_func... " >&6; }
44520if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44521  $as_echo_n "(cached) " >&6
44522else
44523  cat >conftest.$ac_ext <<_ACEOF
44524/* confdefs.h.  */
44525_ACEOF
44526cat confdefs.h >>conftest.$ac_ext
44527cat >>conftest.$ac_ext <<_ACEOF
44528/* end confdefs.h.  */
44529/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44530   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44531#define $ac_func innocuous_$ac_func
44532
44533/* System header to define __stub macros and hopefully few prototypes,
44534    which can conflict with char $ac_func (); below.
44535    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44536    <limits.h> exists even on freestanding compilers.  */
44537
44538#ifdef __STDC__
44539# include <limits.h>
44540#else
44541# include <assert.h>
44542#endif
44543
44544#undef $ac_func
44545
44546/* Override any GCC internal prototype to avoid an error.
44547   Use char because int might match the return type of a GCC
44548   builtin and then its argument prototype would still apply.  */
44549#ifdef __cplusplus
44550extern "C"
44551#endif
44552char $ac_func ();
44553/* The GNU C library defines this for functions which it implements
44554    to always fail with ENOSYS.  Some functions are actually named
44555    something starting with __ and the normal name is an alias.  */
44556#if defined __stub_$ac_func || defined __stub___$ac_func
44557choke me
44558#endif
44559
44560int
44561main ()
44562{
44563return $ac_func ();
44564  ;
44565  return 0;
44566}
44567_ACEOF
44568rm -f conftest.$ac_objext conftest$ac_exeext
44569if { (ac_try="$ac_link"
44570case "(($ac_try" in
44571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44572  *) ac_try_echo=$ac_try;;
44573esac
44574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44575$as_echo "$ac_try_echo") >&5
44576  (eval "$ac_link") 2>conftest.er1
44577  ac_status=$?
44578  grep -v '^ *+' conftest.er1 >conftest.err
44579  rm -f conftest.er1
44580  cat conftest.err >&5
44581  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44582  (exit $ac_status); } && {
44583	 test -z "$ac_c_werror_flag" ||
44584	 test ! -s conftest.err
44585       } && test -s conftest$ac_exeext && {
44586	 test "$cross_compiling" = yes ||
44587	 $as_test_x conftest$ac_exeext
44588       }; then
44589  eval "$as_ac_var=yes"
44590else
44591  $as_echo "$as_me: failed program was:" >&5
44592sed 's/^/| /' conftest.$ac_ext >&5
44593
44594	eval "$as_ac_var=no"
44595fi
44596
44597rm -rf conftest.dSYM
44598rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44599      conftest$ac_exeext conftest.$ac_ext
44600fi
44601ac_res=`eval 'as_val=${'$as_ac_var'}
44602		 $as_echo "$as_val"'`
44603	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44604$as_echo "$ac_res" >&6; }
44605as_val=`eval 'as_val=${'$as_ac_var'}
44606		 $as_echo "$as_val"'`
44607   if test "x$as_val" = x""yes; then
44608  cat >>confdefs.h <<_ACEOF
44609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44610_ACEOF
44611
44612else
44613
44614    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
44615
44616fi
44617done
44618
44619
44620
44621  :
44622
44623
44624
44625
44626
44627
44628  if test $ac_cv_func_getdelim = no; then
44629
44630
44631
44632for ac_func in flockfile funlockfile
44633do
44634as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44635{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44636$as_echo_n "checking for $ac_func... " >&6; }
44637if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44638  $as_echo_n "(cached) " >&6
44639else
44640  cat >conftest.$ac_ext <<_ACEOF
44641/* confdefs.h.  */
44642_ACEOF
44643cat confdefs.h >>conftest.$ac_ext
44644cat >>conftest.$ac_ext <<_ACEOF
44645/* end confdefs.h.  */
44646/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44647   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44648#define $ac_func innocuous_$ac_func
44649
44650/* System header to define __stub macros and hopefully few prototypes,
44651    which can conflict with char $ac_func (); below.
44652    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44653    <limits.h> exists even on freestanding compilers.  */
44654
44655#ifdef __STDC__
44656# include <limits.h>
44657#else
44658# include <assert.h>
44659#endif
44660
44661#undef $ac_func
44662
44663/* Override any GCC internal prototype to avoid an error.
44664   Use char because int might match the return type of a GCC
44665   builtin and then its argument prototype would still apply.  */
44666#ifdef __cplusplus
44667extern "C"
44668#endif
44669char $ac_func ();
44670/* The GNU C library defines this for functions which it implements
44671    to always fail with ENOSYS.  Some functions are actually named
44672    something starting with __ and the normal name is an alias.  */
44673#if defined __stub_$ac_func || defined __stub___$ac_func
44674choke me
44675#endif
44676
44677int
44678main ()
44679{
44680return $ac_func ();
44681  ;
44682  return 0;
44683}
44684_ACEOF
44685rm -f conftest.$ac_objext conftest$ac_exeext
44686if { (ac_try="$ac_link"
44687case "(($ac_try" in
44688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44689  *) ac_try_echo=$ac_try;;
44690esac
44691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44692$as_echo "$ac_try_echo") >&5
44693  (eval "$ac_link") 2>conftest.er1
44694  ac_status=$?
44695  grep -v '^ *+' conftest.er1 >conftest.err
44696  rm -f conftest.er1
44697  cat conftest.err >&5
44698  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44699  (exit $ac_status); } && {
44700	 test -z "$ac_c_werror_flag" ||
44701	 test ! -s conftest.err
44702       } && test -s conftest$ac_exeext && {
44703	 test "$cross_compiling" = yes ||
44704	 $as_test_x conftest$ac_exeext
44705       }; then
44706  eval "$as_ac_var=yes"
44707else
44708  $as_echo "$as_me: failed program was:" >&5
44709sed 's/^/| /' conftest.$ac_ext >&5
44710
44711	eval "$as_ac_var=no"
44712fi
44713
44714rm -rf conftest.dSYM
44715rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44716      conftest$ac_exeext conftest.$ac_ext
44717fi
44718ac_res=`eval 'as_val=${'$as_ac_var'}
44719		 $as_echo "$as_val"'`
44720	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44721$as_echo "$ac_res" >&6; }
44722as_val=`eval 'as_val=${'$as_ac_var'}
44723		 $as_echo "$as_val"'`
44724   if test "x$as_val" = x""yes; then
44725  cat >>confdefs.h <<_ACEOF
44726#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44727_ACEOF
44728
44729fi
44730done
44731
44732
44733  fi
44734
44735  if test $ac_cv_have_decl_getdelim = no; then
44736    HAVE_DECL_GETDELIM=0
44737  fi
44738
44739
44740  fi
44741
44742
44743
44744  GNULIB_GETLINE=1
44745
44746
44747
44748  if test -n "$GETOPT_H"; then
44749
44750
44751
44752
44753
44754
44755
44756
44757  gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
44758
44759
44760
44761
44762
44763
44764
44765
44766  gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
44767
44768
44769  GETOPT_H=getopt.h
44770
44771cat >>confdefs.h <<\_ACEOF
44772#define __GETOPT_PREFIX rpl_
44773_ACEOF
44774
44775
44776
44777
44778
44779  :
44780
44781
44782
44783
44784
44785
44786
44787fi
44788
44789
44790
44791
44792
44793
44794
44795
44796
44797  :
44798
44799
44800
44801
44802
44803
44804  { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
44805$as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
44806if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
44807  $as_echo_n "(cached) " >&6
44808else
44809  cat >conftest.$ac_ext <<_ACEOF
44810/* confdefs.h.  */
44811_ACEOF
44812cat confdefs.h >>conftest.$ac_ext
44813cat >>conftest.$ac_ext <<_ACEOF
44814/* end confdefs.h.  */
44815#include <sys/time.h>
44816	    struct timeval c;
44817
44818int
44819main ()
44820{
44821
44822	    int (*f) (struct timeval *restrict, void *restrict) = gettimeofday;
44823	    int x = f (&c, 0);
44824	    return !(x | c.tv_sec | c.tv_usec);
44825
44826  ;
44827  return 0;
44828}
44829_ACEOF
44830rm -f conftest.$ac_objext
44831if { (ac_try="$ac_compile"
44832case "(($ac_try" in
44833  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44834  *) ac_try_echo=$ac_try;;
44835esac
44836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44837$as_echo "$ac_try_echo") >&5
44838  (eval "$ac_compile") 2>conftest.er1
44839  ac_status=$?
44840  grep -v '^ *+' conftest.er1 >conftest.err
44841  rm -f conftest.er1
44842  cat conftest.err >&5
44843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44844  (exit $ac_status); } && {
44845	 test -z "$ac_c_werror_flag" ||
44846	 test ! -s conftest.err
44847       } && test -s conftest.$ac_objext; then
44848  gl_cv_func_gettimeofday_posix_signature=yes
44849else
44850  $as_echo "$as_me: failed program was:" >&5
44851sed 's/^/| /' conftest.$ac_ext >&5
44852
44853	gl_cv_func_gettimeofday_posix_signature=no
44854fi
44855
44856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44857fi
44858{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
44859$as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
44860
44861
44862
44863
44864 { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
44865$as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
44866if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
44867  $as_echo_n "(cached) " >&6
44868else
44869  if test "$cross_compiling" = yes; then
44870       gl_cv_func_gettimeofday_clobber=yes
44871else
44872  cat >conftest.$ac_ext <<_ACEOF
44873/* confdefs.h.  */
44874_ACEOF
44875cat confdefs.h >>conftest.$ac_ext
44876cat >>conftest.$ac_ext <<_ACEOF
44877/* end confdefs.h.  */
44878#include <string.h>
44879	  #include <sys/time.h>
44880	  #include <time.h>
44881	  #include <stdlib.h>
44882
44883int
44884main ()
44885{
44886
44887	  time_t t = 0;
44888	  struct tm *lt;
44889	  struct tm saved_lt;
44890	  struct timeval tv;
44891	  lt = localtime (&t);
44892	  saved_lt = *lt;
44893	  gettimeofday (&tv, NULL);
44894	  return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
44895
44896  ;
44897  return 0;
44898}
44899_ACEOF
44900rm -f conftest$ac_exeext
44901if { (ac_try="$ac_link"
44902case "(($ac_try" in
44903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44904  *) ac_try_echo=$ac_try;;
44905esac
44906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44907$as_echo "$ac_try_echo") >&5
44908  (eval "$ac_link") 2>&5
44909  ac_status=$?
44910  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44911  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44912  { (case "(($ac_try" in
44913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44914  *) ac_try_echo=$ac_try;;
44915esac
44916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44917$as_echo "$ac_try_echo") >&5
44918  (eval "$ac_try") 2>&5
44919  ac_status=$?
44920  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44921  (exit $ac_status); }; }; then
44922  gl_cv_func_gettimeofday_clobber=no
44923else
44924  $as_echo "$as_me: program exited with status $ac_status" >&5
44925$as_echo "$as_me: failed program was:" >&5
44926sed 's/^/| /' conftest.$ac_ext >&5
44927
44928( exit $ac_status )
44929gl_cv_func_gettimeofday_clobber=yes
44930fi
44931rm -rf conftest.dSYM
44932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44933fi
44934
44935
44936fi
44937{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
44938$as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
44939
44940 if test $gl_cv_func_gettimeofday_clobber = yes; then
44941   REPLACE_GETTIMEOFDAY=1
44942   SYS_TIME_H=sys/time.h
44943
44944
44945
44946
44947
44948
44949
44950
44951  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
44952
44953
44954
44955for ac_header in sys/timeb.h
44956do
44957as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
44958if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44959  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
44960$as_echo_n "checking for $ac_header... " >&6; }
44961if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
44962  $as_echo_n "(cached) " >&6
44963fi
44964ac_res=`eval 'as_val=${'$as_ac_Header'}
44965		 $as_echo "$as_val"'`
44966	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44967$as_echo "$ac_res" >&6; }
44968else
44969  # Is the header compilable?
44970{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
44971$as_echo_n "checking $ac_header usability... " >&6; }
44972cat >conftest.$ac_ext <<_ACEOF
44973/* confdefs.h.  */
44974_ACEOF
44975cat confdefs.h >>conftest.$ac_ext
44976cat >>conftest.$ac_ext <<_ACEOF
44977/* end confdefs.h.  */
44978$ac_includes_default
44979#include <$ac_header>
44980_ACEOF
44981rm -f conftest.$ac_objext
44982if { (ac_try="$ac_compile"
44983case "(($ac_try" in
44984  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44985  *) ac_try_echo=$ac_try;;
44986esac
44987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44988$as_echo "$ac_try_echo") >&5
44989  (eval "$ac_compile") 2>conftest.er1
44990  ac_status=$?
44991  grep -v '^ *+' conftest.er1 >conftest.err
44992  rm -f conftest.er1
44993  cat conftest.err >&5
44994  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44995  (exit $ac_status); } && {
44996	 test -z "$ac_c_werror_flag" ||
44997	 test ! -s conftest.err
44998       } && test -s conftest.$ac_objext; then
44999  ac_header_compiler=yes
45000else
45001  $as_echo "$as_me: failed program was:" >&5
45002sed 's/^/| /' conftest.$ac_ext >&5
45003
45004	ac_header_compiler=no
45005fi
45006
45007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45008{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45009$as_echo "$ac_header_compiler" >&6; }
45010
45011# Is the header present?
45012{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45013$as_echo_n "checking $ac_header presence... " >&6; }
45014cat >conftest.$ac_ext <<_ACEOF
45015/* confdefs.h.  */
45016_ACEOF
45017cat confdefs.h >>conftest.$ac_ext
45018cat >>conftest.$ac_ext <<_ACEOF
45019/* end confdefs.h.  */
45020#include <$ac_header>
45021_ACEOF
45022if { (ac_try="$ac_cpp conftest.$ac_ext"
45023case "(($ac_try" in
45024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45025  *) ac_try_echo=$ac_try;;
45026esac
45027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45028$as_echo "$ac_try_echo") >&5
45029  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45030  ac_status=$?
45031  grep -v '^ *+' conftest.er1 >conftest.err
45032  rm -f conftest.er1
45033  cat conftest.err >&5
45034  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45035  (exit $ac_status); } >/dev/null && {
45036	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45037	 test ! -s conftest.err
45038       }; then
45039  ac_header_preproc=yes
45040else
45041  $as_echo "$as_me: failed program was:" >&5
45042sed 's/^/| /' conftest.$ac_ext >&5
45043
45044  ac_header_preproc=no
45045fi
45046
45047rm -f conftest.err conftest.$ac_ext
45048{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45049$as_echo "$ac_header_preproc" >&6; }
45050
45051# So?  What about this header?
45052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45053  yes:no: )
45054    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45055$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45056    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45057$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45058    ac_header_preproc=yes
45059    ;;
45060  no:yes:* )
45061    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45062$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45063    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45064$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45065    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45066$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45067    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45068$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45069    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45070$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45071    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45072$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45073
45074    ;;
45075esac
45076{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45077$as_echo_n "checking for $ac_header... " >&6; }
45078if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45079  $as_echo_n "(cached) " >&6
45080else
45081  eval "$as_ac_Header=\$ac_header_preproc"
45082fi
45083ac_res=`eval 'as_val=${'$as_ac_Header'}
45084		 $as_echo "$as_val"'`
45085	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45086$as_echo "$ac_res" >&6; }
45087
45088fi
45089as_val=`eval 'as_val=${'$as_ac_Header'}
45090		 $as_echo "$as_val"'`
45091   if test "x$as_val" = x""yes; then
45092  cat >>confdefs.h <<_ACEOF
45093#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45094_ACEOF
45095
45096fi
45097
45098done
45099
45100
45101for ac_func in _ftime
45102do
45103as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45104{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45105$as_echo_n "checking for $ac_func... " >&6; }
45106if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45107  $as_echo_n "(cached) " >&6
45108else
45109  cat >conftest.$ac_ext <<_ACEOF
45110/* confdefs.h.  */
45111_ACEOF
45112cat confdefs.h >>conftest.$ac_ext
45113cat >>conftest.$ac_ext <<_ACEOF
45114/* end confdefs.h.  */
45115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45116   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45117#define $ac_func innocuous_$ac_func
45118
45119/* System header to define __stub macros and hopefully few prototypes,
45120    which can conflict with char $ac_func (); below.
45121    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45122    <limits.h> exists even on freestanding compilers.  */
45123
45124#ifdef __STDC__
45125# include <limits.h>
45126#else
45127# include <assert.h>
45128#endif
45129
45130#undef $ac_func
45131
45132/* Override any GCC internal prototype to avoid an error.
45133   Use char because int might match the return type of a GCC
45134   builtin and then its argument prototype would still apply.  */
45135#ifdef __cplusplus
45136extern "C"
45137#endif
45138char $ac_func ();
45139/* The GNU C library defines this for functions which it implements
45140    to always fail with ENOSYS.  Some functions are actually named
45141    something starting with __ and the normal name is an alias.  */
45142#if defined __stub_$ac_func || defined __stub___$ac_func
45143choke me
45144#endif
45145
45146int
45147main ()
45148{
45149return $ac_func ();
45150  ;
45151  return 0;
45152}
45153_ACEOF
45154rm -f conftest.$ac_objext conftest$ac_exeext
45155if { (ac_try="$ac_link"
45156case "(($ac_try" in
45157  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45158  *) ac_try_echo=$ac_try;;
45159esac
45160eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45161$as_echo "$ac_try_echo") >&5
45162  (eval "$ac_link") 2>conftest.er1
45163  ac_status=$?
45164  grep -v '^ *+' conftest.er1 >conftest.err
45165  rm -f conftest.er1
45166  cat conftest.err >&5
45167  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45168  (exit $ac_status); } && {
45169	 test -z "$ac_c_werror_flag" ||
45170	 test ! -s conftest.err
45171       } && test -s conftest$ac_exeext && {
45172	 test "$cross_compiling" = yes ||
45173	 $as_test_x conftest$ac_exeext
45174       }; then
45175  eval "$as_ac_var=yes"
45176else
45177  $as_echo "$as_me: failed program was:" >&5
45178sed 's/^/| /' conftest.$ac_ext >&5
45179
45180	eval "$as_ac_var=no"
45181fi
45182
45183rm -rf conftest.dSYM
45184rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45185      conftest$ac_exeext conftest.$ac_ext
45186fi
45187ac_res=`eval 'as_val=${'$as_ac_var'}
45188		 $as_echo "$as_val"'`
45189	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45190$as_echo "$ac_res" >&6; }
45191as_val=`eval 'as_val=${'$as_ac_var'}
45192		 $as_echo "$as_val"'`
45193   if test "x$as_val" = x""yes; then
45194  cat >>confdefs.h <<_ACEOF
45195#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45196_ACEOF
45197
45198fi
45199done
45200
45201
45202
45203cat >>confdefs.h <<\_ACEOF
45204#define gmtime rpl_gmtime
45205_ACEOF
45206
45207
45208cat >>confdefs.h <<\_ACEOF
45209#define localtime rpl_localtime
45210_ACEOF
45211
45212
45213
45214cat >>confdefs.h <<\_ACEOF
45215#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
45216_ACEOF
45217
45218 fi
45219
45220
45221  if test $gl_cv_func_gettimeofday_posix_signature != yes; then
45222    REPLACE_GETTIMEOFDAY=1
45223    SYS_TIME_H=sys/time.h
45224    if test $gl_cv_func_gettimeofday_clobber != yes; then
45225
45226
45227
45228
45229
45230
45231
45232  gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
45233
45234
45235
45236for ac_header in sys/timeb.h
45237do
45238as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
45239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45240  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45241$as_echo_n "checking for $ac_header... " >&6; }
45242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45243  $as_echo_n "(cached) " >&6
45244fi
45245ac_res=`eval 'as_val=${'$as_ac_Header'}
45246		 $as_echo "$as_val"'`
45247	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45248$as_echo "$ac_res" >&6; }
45249else
45250  # Is the header compilable?
45251{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
45252$as_echo_n "checking $ac_header usability... " >&6; }
45253cat >conftest.$ac_ext <<_ACEOF
45254/* confdefs.h.  */
45255_ACEOF
45256cat confdefs.h >>conftest.$ac_ext
45257cat >>conftest.$ac_ext <<_ACEOF
45258/* end confdefs.h.  */
45259$ac_includes_default
45260#include <$ac_header>
45261_ACEOF
45262rm -f conftest.$ac_objext
45263if { (ac_try="$ac_compile"
45264case "(($ac_try" in
45265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45266  *) ac_try_echo=$ac_try;;
45267esac
45268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45269$as_echo "$ac_try_echo") >&5
45270  (eval "$ac_compile") 2>conftest.er1
45271  ac_status=$?
45272  grep -v '^ *+' conftest.er1 >conftest.err
45273  rm -f conftest.er1
45274  cat conftest.err >&5
45275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45276  (exit $ac_status); } && {
45277	 test -z "$ac_c_werror_flag" ||
45278	 test ! -s conftest.err
45279       } && test -s conftest.$ac_objext; then
45280  ac_header_compiler=yes
45281else
45282  $as_echo "$as_me: failed program was:" >&5
45283sed 's/^/| /' conftest.$ac_ext >&5
45284
45285	ac_header_compiler=no
45286fi
45287
45288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45289{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45290$as_echo "$ac_header_compiler" >&6; }
45291
45292# Is the header present?
45293{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
45294$as_echo_n "checking $ac_header presence... " >&6; }
45295cat >conftest.$ac_ext <<_ACEOF
45296/* confdefs.h.  */
45297_ACEOF
45298cat confdefs.h >>conftest.$ac_ext
45299cat >>conftest.$ac_ext <<_ACEOF
45300/* end confdefs.h.  */
45301#include <$ac_header>
45302_ACEOF
45303if { (ac_try="$ac_cpp conftest.$ac_ext"
45304case "(($ac_try" in
45305  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45306  *) ac_try_echo=$ac_try;;
45307esac
45308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45309$as_echo "$ac_try_echo") >&5
45310  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
45311  ac_status=$?
45312  grep -v '^ *+' conftest.er1 >conftest.err
45313  rm -f conftest.er1
45314  cat conftest.err >&5
45315  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45316  (exit $ac_status); } >/dev/null && {
45317	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
45318	 test ! -s conftest.err
45319       }; then
45320  ac_header_preproc=yes
45321else
45322  $as_echo "$as_me: failed program was:" >&5
45323sed 's/^/| /' conftest.$ac_ext >&5
45324
45325  ac_header_preproc=no
45326fi
45327
45328rm -f conftest.err conftest.$ac_ext
45329{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45330$as_echo "$ac_header_preproc" >&6; }
45331
45332# So?  What about this header?
45333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45334  yes:no: )
45335    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45336$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45337    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45338$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45339    ac_header_preproc=yes
45340    ;;
45341  no:yes:* )
45342    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45343$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45344    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
45345$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
45346    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45347$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45348    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
45349$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
45350    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45351$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45352    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45353$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45354
45355    ;;
45356esac
45357{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
45358$as_echo_n "checking for $ac_header... " >&6; }
45359if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45360  $as_echo_n "(cached) " >&6
45361else
45362  eval "$as_ac_Header=\$ac_header_preproc"
45363fi
45364ac_res=`eval 'as_val=${'$as_ac_Header'}
45365		 $as_echo "$as_val"'`
45366	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45367$as_echo "$ac_res" >&6; }
45368
45369fi
45370as_val=`eval 'as_val=${'$as_ac_Header'}
45371		 $as_echo "$as_val"'`
45372   if test "x$as_val" = x""yes; then
45373  cat >>confdefs.h <<_ACEOF
45374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
45375_ACEOF
45376
45377fi
45378
45379done
45380
45381
45382for ac_func in _ftime
45383do
45384as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45385{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45386$as_echo_n "checking for $ac_func... " >&6; }
45387if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45388  $as_echo_n "(cached) " >&6
45389else
45390  cat >conftest.$ac_ext <<_ACEOF
45391/* confdefs.h.  */
45392_ACEOF
45393cat confdefs.h >>conftest.$ac_ext
45394cat >>conftest.$ac_ext <<_ACEOF
45395/* end confdefs.h.  */
45396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45397   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45398#define $ac_func innocuous_$ac_func
45399
45400/* System header to define __stub macros and hopefully few prototypes,
45401    which can conflict with char $ac_func (); below.
45402    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45403    <limits.h> exists even on freestanding compilers.  */
45404
45405#ifdef __STDC__
45406# include <limits.h>
45407#else
45408# include <assert.h>
45409#endif
45410
45411#undef $ac_func
45412
45413/* Override any GCC internal prototype to avoid an error.
45414   Use char because int might match the return type of a GCC
45415   builtin and then its argument prototype would still apply.  */
45416#ifdef __cplusplus
45417extern "C"
45418#endif
45419char $ac_func ();
45420/* The GNU C library defines this for functions which it implements
45421    to always fail with ENOSYS.  Some functions are actually named
45422    something starting with __ and the normal name is an alias.  */
45423#if defined __stub_$ac_func || defined __stub___$ac_func
45424choke me
45425#endif
45426
45427int
45428main ()
45429{
45430return $ac_func ();
45431  ;
45432  return 0;
45433}
45434_ACEOF
45435rm -f conftest.$ac_objext conftest$ac_exeext
45436if { (ac_try="$ac_link"
45437case "(($ac_try" in
45438  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45439  *) ac_try_echo=$ac_try;;
45440esac
45441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45442$as_echo "$ac_try_echo") >&5
45443  (eval "$ac_link") 2>conftest.er1
45444  ac_status=$?
45445  grep -v '^ *+' conftest.er1 >conftest.err
45446  rm -f conftest.er1
45447  cat conftest.err >&5
45448  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45449  (exit $ac_status); } && {
45450	 test -z "$ac_c_werror_flag" ||
45451	 test ! -s conftest.err
45452       } && test -s conftest$ac_exeext && {
45453	 test "$cross_compiling" = yes ||
45454	 $as_test_x conftest$ac_exeext
45455       }; then
45456  eval "$as_ac_var=yes"
45457else
45458  $as_echo "$as_me: failed program was:" >&5
45459sed 's/^/| /' conftest.$ac_ext >&5
45460
45461	eval "$as_ac_var=no"
45462fi
45463
45464rm -rf conftest.dSYM
45465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45466      conftest$ac_exeext conftest.$ac_ext
45467fi
45468ac_res=`eval 'as_val=${'$as_ac_var'}
45469		 $as_echo "$as_val"'`
45470	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45471$as_echo "$ac_res" >&6; }
45472as_val=`eval 'as_val=${'$as_ac_var'}
45473		 $as_echo "$as_val"'`
45474   if test "x$as_val" = x""yes; then
45475  cat >>confdefs.h <<_ACEOF
45476#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45477_ACEOF
45478
45479fi
45480done
45481
45482
45483    fi
45484  fi
45485
45486
45487
45488
45489
45490
45491          am_save_CPPFLAGS="$CPPFLAGS"
45492
45493  for element in $INCICONV; do
45494    haveit=
45495    for x in $CPPFLAGS; do
45496
45497  acl_save_prefix="$prefix"
45498  prefix="$acl_final_prefix"
45499  acl_save_exec_prefix="$exec_prefix"
45500  exec_prefix="$acl_final_exec_prefix"
45501  eval x=\"$x\"
45502  exec_prefix="$acl_save_exec_prefix"
45503  prefix="$acl_save_prefix"
45504
45505      if test "X$x" = "X$element"; then
45506        haveit=yes
45507        break
45508      fi
45509    done
45510    if test -z "$haveit"; then
45511      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
45512    fi
45513  done
45514
45515
45516  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
45517$as_echo_n "checking for iconv... " >&6; }
45518if test "${am_cv_func_iconv+set}" = set; then
45519  $as_echo_n "(cached) " >&6
45520else
45521
45522    am_cv_func_iconv="no, consider installing GNU libiconv"
45523    am_cv_lib_iconv=no
45524    cat >conftest.$ac_ext <<_ACEOF
45525/* confdefs.h.  */
45526_ACEOF
45527cat confdefs.h >>conftest.$ac_ext
45528cat >>conftest.$ac_ext <<_ACEOF
45529/* end confdefs.h.  */
45530#include <stdlib.h>
45531#include <iconv.h>
45532int
45533main ()
45534{
45535iconv_t cd = iconv_open("","");
45536       iconv(cd,NULL,NULL,NULL,NULL);
45537       iconv_close(cd);
45538  ;
45539  return 0;
45540}
45541_ACEOF
45542rm -f conftest.$ac_objext conftest$ac_exeext
45543if { (ac_try="$ac_link"
45544case "(($ac_try" in
45545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45546  *) ac_try_echo=$ac_try;;
45547esac
45548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45549$as_echo "$ac_try_echo") >&5
45550  (eval "$ac_link") 2>conftest.er1
45551  ac_status=$?
45552  grep -v '^ *+' conftest.er1 >conftest.err
45553  rm -f conftest.er1
45554  cat conftest.err >&5
45555  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45556  (exit $ac_status); } && {
45557	 test -z "$ac_c_werror_flag" ||
45558	 test ! -s conftest.err
45559       } && test -s conftest$ac_exeext && {
45560	 test "$cross_compiling" = yes ||
45561	 $as_test_x conftest$ac_exeext
45562       }; then
45563  am_cv_func_iconv=yes
45564else
45565  $as_echo "$as_me: failed program was:" >&5
45566sed 's/^/| /' conftest.$ac_ext >&5
45567
45568
45569fi
45570
45571rm -rf conftest.dSYM
45572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45573      conftest$ac_exeext conftest.$ac_ext
45574    if test "$am_cv_func_iconv" != yes; then
45575      am_save_LIBS="$LIBS"
45576      LIBS="$LIBS $LIBICONV"
45577      cat >conftest.$ac_ext <<_ACEOF
45578/* confdefs.h.  */
45579_ACEOF
45580cat confdefs.h >>conftest.$ac_ext
45581cat >>conftest.$ac_ext <<_ACEOF
45582/* end confdefs.h.  */
45583#include <stdlib.h>
45584#include <iconv.h>
45585int
45586main ()
45587{
45588iconv_t cd = iconv_open("","");
45589         iconv(cd,NULL,NULL,NULL,NULL);
45590         iconv_close(cd);
45591  ;
45592  return 0;
45593}
45594_ACEOF
45595rm -f conftest.$ac_objext conftest$ac_exeext
45596if { (ac_try="$ac_link"
45597case "(($ac_try" in
45598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45599  *) ac_try_echo=$ac_try;;
45600esac
45601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45602$as_echo "$ac_try_echo") >&5
45603  (eval "$ac_link") 2>conftest.er1
45604  ac_status=$?
45605  grep -v '^ *+' conftest.er1 >conftest.err
45606  rm -f conftest.er1
45607  cat conftest.err >&5
45608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45609  (exit $ac_status); } && {
45610	 test -z "$ac_c_werror_flag" ||
45611	 test ! -s conftest.err
45612       } && test -s conftest$ac_exeext && {
45613	 test "$cross_compiling" = yes ||
45614	 $as_test_x conftest$ac_exeext
45615       }; then
45616  am_cv_lib_iconv=yes
45617        am_cv_func_iconv=yes
45618else
45619  $as_echo "$as_me: failed program was:" >&5
45620sed 's/^/| /' conftest.$ac_ext >&5
45621
45622
45623fi
45624
45625rm -rf conftest.dSYM
45626rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45627      conftest$ac_exeext conftest.$ac_ext
45628      LIBS="$am_save_LIBS"
45629    fi
45630
45631fi
45632{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
45633$as_echo "$am_cv_func_iconv" >&6; }
45634  if test "$am_cv_func_iconv" = yes; then
45635    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
45636$as_echo_n "checking for working iconv... " >&6; }
45637if test "${am_cv_func_iconv_works+set}" = set; then
45638  $as_echo_n "(cached) " >&6
45639else
45640
45641            am_save_LIBS="$LIBS"
45642      if test $am_cv_lib_iconv = yes; then
45643        LIBS="$LIBS $LIBICONV"
45644      fi
45645      if test "$cross_compiling" = yes; then
45646  case "$host_os" in
45647           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
45648           *)            am_cv_func_iconv_works="guessing yes" ;;
45649         esac
45650else
45651  cat >conftest.$ac_ext <<_ACEOF
45652/* confdefs.h.  */
45653_ACEOF
45654cat confdefs.h >>conftest.$ac_ext
45655cat >>conftest.$ac_ext <<_ACEOF
45656/* end confdefs.h.  */
45657
45658#include <iconv.h>
45659#include <string.h>
45660int main ()
45661{
45662  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
45663     returns.  */
45664  {
45665    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
45666    if (cd_utf8_to_88591 != (iconv_t)(-1))
45667      {
45668        static const char input[] = "\342\202\254"; /* EURO SIGN */
45669        char buf[10];
45670        const char *inptr = input;
45671        size_t inbytesleft = strlen (input);
45672        char *outptr = buf;
45673        size_t outbytesleft = sizeof (buf);
45674        size_t res = iconv (cd_utf8_to_88591,
45675                            (char **) &inptr, &inbytesleft,
45676                            &outptr, &outbytesleft);
45677        if (res == 0)
45678          return 1;
45679      }
45680  }
45681#if 0 /* This bug could be worked around by the caller.  */
45682  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
45683  {
45684    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
45685    if (cd_88591_to_utf8 != (iconv_t)(-1))
45686      {
45687        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
45688        char buf[50];
45689        const char *inptr = input;
45690        size_t inbytesleft = strlen (input);
45691        char *outptr = buf;
45692        size_t outbytesleft = sizeof (buf);
45693        size_t res = iconv (cd_88591_to_utf8,
45694                            (char **) &inptr, &inbytesleft,
45695                            &outptr, &outbytesleft);
45696        if ((int)res > 0)
45697          return 1;
45698      }
45699  }
45700#endif
45701  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
45702     provided.  */
45703  if (/* Try standardized names.  */
45704      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
45705      /* Try IRIX, OSF/1 names.  */
45706      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
45707      /* Try AIX names.  */
45708      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
45709      /* Try HP-UX names.  */
45710      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
45711    return 1;
45712  return 0;
45713}
45714_ACEOF
45715rm -f conftest$ac_exeext
45716if { (ac_try="$ac_link"
45717case "(($ac_try" in
45718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45719  *) ac_try_echo=$ac_try;;
45720esac
45721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45722$as_echo "$ac_try_echo") >&5
45723  (eval "$ac_link") 2>&5
45724  ac_status=$?
45725  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45726  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45727  { (case "(($ac_try" in
45728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45729  *) ac_try_echo=$ac_try;;
45730esac
45731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45732$as_echo "$ac_try_echo") >&5
45733  (eval "$ac_try") 2>&5
45734  ac_status=$?
45735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45736  (exit $ac_status); }; }; then
45737  am_cv_func_iconv_works=yes
45738else
45739  $as_echo "$as_me: program exited with status $ac_status" >&5
45740$as_echo "$as_me: failed program was:" >&5
45741sed 's/^/| /' conftest.$ac_ext >&5
45742
45743( exit $ac_status )
45744am_cv_func_iconv_works=no
45745fi
45746rm -rf conftest.dSYM
45747rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45748fi
45749
45750
45751      LIBS="$am_save_LIBS"
45752
45753fi
45754{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
45755$as_echo "$am_cv_func_iconv_works" >&6; }
45756    case "$am_cv_func_iconv_works" in
45757      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
45758      *)   am_func_iconv=yes ;;
45759    esac
45760  else
45761    am_func_iconv=no am_cv_lib_iconv=no
45762  fi
45763  if test "$am_func_iconv" = yes; then
45764
45765cat >>confdefs.h <<\_ACEOF
45766#define HAVE_ICONV 1
45767_ACEOF
45768
45769  fi
45770  if test "$am_cv_lib_iconv" = yes; then
45771    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
45772$as_echo_n "checking how to link with libiconv... " >&6; }
45773    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
45774$as_echo "$LIBICONV" >&6; }
45775  else
45776            CPPFLAGS="$am_save_CPPFLAGS"
45777    LIBICONV=
45778    LTLIBICONV=
45779  fi
45780
45781
45782
45783  if test "$am_cv_func_iconv" = yes; then
45784    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
45785$as_echo_n "checking for iconv declaration... " >&6; }
45786    if test "${am_cv_proto_iconv+set}" = set; then
45787  $as_echo_n "(cached) " >&6
45788else
45789
45790      cat >conftest.$ac_ext <<_ACEOF
45791/* confdefs.h.  */
45792_ACEOF
45793cat confdefs.h >>conftest.$ac_ext
45794cat >>conftest.$ac_ext <<_ACEOF
45795/* end confdefs.h.  */
45796
45797#include <stdlib.h>
45798#include <iconv.h>
45799extern
45800#ifdef __cplusplus
45801"C"
45802#endif
45803#if defined(__STDC__) || defined(__cplusplus)
45804size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
45805#else
45806size_t iconv();
45807#endif
45808
45809int
45810main ()
45811{
45812
45813  ;
45814  return 0;
45815}
45816_ACEOF
45817rm -f conftest.$ac_objext
45818if { (ac_try="$ac_compile"
45819case "(($ac_try" in
45820  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45821  *) ac_try_echo=$ac_try;;
45822esac
45823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45824$as_echo "$ac_try_echo") >&5
45825  (eval "$ac_compile") 2>conftest.er1
45826  ac_status=$?
45827  grep -v '^ *+' conftest.er1 >conftest.err
45828  rm -f conftest.er1
45829  cat conftest.err >&5
45830  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45831  (exit $ac_status); } && {
45832	 test -z "$ac_c_werror_flag" ||
45833	 test ! -s conftest.err
45834       } && test -s conftest.$ac_objext; then
45835  am_cv_proto_iconv_arg1=""
45836else
45837  $as_echo "$as_me: failed program was:" >&5
45838sed 's/^/| /' conftest.$ac_ext >&5
45839
45840	am_cv_proto_iconv_arg1="const"
45841fi
45842
45843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45844      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);"
45845fi
45846
45847    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
45848    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
45849         }$am_cv_proto_iconv" >&5
45850$as_echo "${ac_t:-
45851         }$am_cv_proto_iconv" >&6; }
45852
45853cat >>confdefs.h <<_ACEOF
45854#define ICONV_CONST $am_cv_proto_iconv_arg1
45855_ACEOF
45856
45857  fi
45858
45859
45860
45861
45862
45863
45864  :
45865
45866
45867
45868
45869
45870
45871
45872     if test $gl_cv_have_include_next = yes; then
45873       gl_cv_next_iconv_h='<'iconv.h'>'
45874     else
45875       { $as_echo "$as_me:$LINENO: checking absolute name of <iconv.h>" >&5
45876$as_echo_n "checking absolute name of <iconv.h>... " >&6; }
45877if test "${gl_cv_next_iconv_h+set}" = set; then
45878  $as_echo_n "(cached) " >&6
45879else
45880
45881	  if test $ac_cv_header_iconv_h = yes; then
45882	    cat >conftest.$ac_ext <<_ACEOF
45883/* confdefs.h.  */
45884_ACEOF
45885cat confdefs.h >>conftest.$ac_ext
45886cat >>conftest.$ac_ext <<_ACEOF
45887/* end confdefs.h.  */
45888#include <iconv.h>
45889
45890_ACEOF
45891	    	    	    	    gl_cv_next_iconv_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45892	       sed -n '\#/iconv.h#{
45893		 s#.*"\(.*/iconv.h\)".*#\1#
45894		 s#^/[^/]#//&#
45895		 p
45896		 q
45897	       }'`'"'
45898	  else
45899	    gl_cv_next_iconv_h='<'iconv.h'>'
45900	  fi
45901
45902fi
45903{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_iconv_h" >&5
45904$as_echo "$gl_cv_next_iconv_h" >&6; }
45905     fi
45906     NEXT_ICONV_H=$gl_cv_next_iconv_h
45907
45908
45909
45910  ICONV_H=
45911
45912
45913
45914
45915
45916
45917  if test "$am_cv_func_iconv" = yes; then
45918            cat >conftest.$ac_ext <<_ACEOF
45919/* confdefs.h.  */
45920_ACEOF
45921cat confdefs.h >>conftest.$ac_ext
45922cat >>conftest.$ac_ext <<_ACEOF
45923/* end confdefs.h.  */
45924
45925      #include <iconv.h>
45926      #if defined _LIBICONV_VERSION || defined __GLIBC__
45927       gnu_iconv
45928      #endif
45929
45930_ACEOF
45931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45932  $EGREP "gnu_iconv" >/dev/null 2>&1; then
45933  gl_func_iconv_gnu=yes
45934else
45935  gl_func_iconv_gnu=no
45936fi
45937rm -f conftest*
45938
45939    if test $gl_func_iconv_gnu = no; then
45940      iconv_flavor=
45941      case "$host_os" in
45942        aix*)  iconv_flavor=ICONV_FLAVOR_AIX ;;
45943        irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
45944        hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
45945        osf*)  iconv_flavor=ICONV_FLAVOR_OSF ;;
45946      esac
45947      if test -n "$iconv_flavor"; then
45948
45949cat >>confdefs.h <<_ACEOF
45950#define ICONV_FLAVOR $iconv_flavor
45951_ACEOF
45952
45953
45954  REPLACE_ICONV_OPEN=1
45955
45956
45957
45958
45959
45960
45961
45962  gl_LIBOBJS="$gl_LIBOBJS iconv_open.$ac_objext"
45963
45964  ICONV_H='iconv.h'
45965
45966      fi
45967    fi
45968  fi
45969
45970
45971
45972  { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
45973$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
45974if test "${gl_cv_c_inline_effective+set}" = set; then
45975  $as_echo_n "(cached) " >&6
45976else
45977  if test $ac_cv_c_inline = no; then
45978       gl_cv_c_inline_effective=no
45979     else
45980                                          cat >conftest.$ac_ext <<_ACEOF
45981/* confdefs.h.  */
45982_ACEOF
45983cat confdefs.h >>conftest.$ac_ext
45984cat >>conftest.$ac_ext <<_ACEOF
45985/* end confdefs.h.  */
45986
45987int
45988main ()
45989{
45990#ifdef __NO_INLINE__
45991               #error "inline is not effective"
45992             #endif
45993  ;
45994  return 0;
45995}
45996_ACEOF
45997rm -f conftest.$ac_objext
45998if { (ac_try="$ac_compile"
45999case "(($ac_try" in
46000  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46001  *) ac_try_echo=$ac_try;;
46002esac
46003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46004$as_echo "$ac_try_echo") >&5
46005  (eval "$ac_compile") 2>conftest.er1
46006  ac_status=$?
46007  grep -v '^ *+' conftest.er1 >conftest.err
46008  rm -f conftest.er1
46009  cat conftest.err >&5
46010  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46011  (exit $ac_status); } && {
46012	 test -z "$ac_c_werror_flag" ||
46013	 test ! -s conftest.err
46014       } && test -s conftest.$ac_objext; then
46015  gl_cv_c_inline_effective=yes
46016else
46017  $as_echo "$as_me: failed program was:" >&5
46018sed 's/^/| /' conftest.$ac_ext >&5
46019
46020	gl_cv_c_inline_effective=no
46021fi
46022
46023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46024     fi
46025
46026fi
46027{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
46028$as_echo "$gl_cv_c_inline_effective" >&6; }
46029  if test $gl_cv_c_inline_effective = yes; then
46030
46031cat >>confdefs.h <<\_ACEOF
46032#define HAVE_INLINE 1
46033_ACEOF
46034
46035  fi
46036
46037
46038  { $as_echo "$as_me:$LINENO: checking whether to use Java" >&5
46039$as_echo_n "checking whether to use Java... " >&6; }
46040  # Check whether --enable-java was given.
46041if test "${enable_java+set}" = set; then
46042  enableval=$enable_java; JAVA_CHOICE="$enableval"
46043else
46044  JAVA_CHOICE=yes
46045fi
46046
46047  { $as_echo "$as_me:$LINENO: result: $JAVA_CHOICE" >&5
46048$as_echo "$JAVA_CHOICE" >&6; }
46049  if test "$JAVA_CHOICE" = yes; then
46050    # Check whether --enable-native-java was given.
46051if test "${enable_native_java+set}" = set; then
46052  enableval=$enable_native_java; test "$enableval" != no || JAVA_CHOICE=bytecode
46053fi
46054
46055  fi
46056
46057
46058  # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
46059  ac_config_files="$ac_config_files javacomp.sh:../build-aux/javacomp.sh.in"
46060
46061  # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
46062  ac_config_files="$ac_config_files javaexec.sh:../build-aux/javaexec.sh.in"
46063
46064
46065
46066
46067  { $as_echo "$as_me:$LINENO: checking whether included libcroco is requested" >&5
46068$as_echo_n "checking whether included libcroco is requested... " >&6; }
46069
46070# Check whether --with-included-libcroco was given.
46071if test "${with_included_libcroco+set}" = set; then
46072  withval=$with_included_libcroco; gl_cv_libcroco_force_included=$withval
46073else
46074  gl_cv_libcroco_force_included=no
46075fi
46076
46077  { $as_echo "$as_me:$LINENO: result: $gl_cv_libcroco_force_included" >&5
46078$as_echo "$gl_cv_libcroco_force_included" >&6; }
46079
46080  gl_cv_libcroco_use_included="$gl_cv_libcroco_force_included"
46081  LIBCROCO=
46082  LTLIBCROCO=
46083  INCCROCO=
46084  if test "$gl_cv_libcroco_use_included" != yes; then
46085            if test "${gl_cv_libcroco+set}" = set; then
46086  $as_echo_n "(cached) " >&6
46087else
46088
46089      gl_cv_libcroco=no
46090      gl_cv_LIBCROCO=
46091      gl_cv_LTLIBCROCO=
46092      gl_cv_INCCROCO=
46093      gl_save_LIBS="$LIBS"
46094
46095
46096
46097
46098    use_additional=yes
46099
46100  acl_save_prefix="$prefix"
46101  prefix="$acl_final_prefix"
46102  acl_save_exec_prefix="$exec_prefix"
46103  exec_prefix="$acl_final_exec_prefix"
46104
46105    eval additional_includedir=\"$includedir\"
46106    eval additional_libdir=\"$libdir\"
46107
46108  exec_prefix="$acl_save_exec_prefix"
46109  prefix="$acl_save_prefix"
46110
46111
46112# Check whether --with-libcroco-0.6-prefix was given.
46113if test "${with_libcroco_0_6_prefix+set}" = set; then
46114  withval=$with_libcroco_0_6_prefix;
46115    if test "X$withval" = "Xno"; then
46116      use_additional=no
46117    else
46118      if test "X$withval" = "X"; then
46119
46120  acl_save_prefix="$prefix"
46121  prefix="$acl_final_prefix"
46122  acl_save_exec_prefix="$exec_prefix"
46123  exec_prefix="$acl_final_exec_prefix"
46124
46125          eval additional_includedir=\"$includedir\"
46126          eval additional_libdir=\"$libdir\"
46127
46128  exec_prefix="$acl_save_exec_prefix"
46129  prefix="$acl_save_prefix"
46130
46131      else
46132        additional_includedir="$withval/include"
46133        additional_libdir="$withval/$acl_libdirstem"
46134      fi
46135    fi
46136
46137fi
46138
46139      LIBCROCO_0_6=
46140  LTLIBCROCO_0_6=
46141  INCCROCO_0_6=
46142  LIBCROCO_0_6_PREFIX=
46143  rpathdirs=
46144  ltrpathdirs=
46145  names_already_handled=
46146  names_next_round='croco-0.6 glib-2.0'
46147  while test -n "$names_next_round"; do
46148    names_this_round="$names_next_round"
46149    names_next_round=
46150    for name in $names_this_round; do
46151      already_handled=
46152      for n in $names_already_handled; do
46153        if test "$n" = "$name"; then
46154          already_handled=yes
46155          break
46156        fi
46157      done
46158      if test -z "$already_handled"; then
46159        names_already_handled="$names_already_handled $name"
46160                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
46161        eval value=\"\$HAVE_LIB$uppername\"
46162        if test -n "$value"; then
46163          if test "$value" = yes; then
46164            eval value=\"\$LIB$uppername\"
46165            test -z "$value" || LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$value"
46166            eval value=\"\$LTLIB$uppername\"
46167            test -z "$value" || LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$value"
46168          else
46169                                    :
46170          fi
46171        else
46172                              found_dir=
46173          found_la=
46174          found_so=
46175          found_a=
46176          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
46177          if test -n "$acl_shlibext"; then
46178            shrext=".$acl_shlibext"             # typically: shrext=.so
46179          else
46180            shrext=
46181          fi
46182          if test $use_additional = yes; then
46183            dir="$additional_libdir"
46184                                    if test -n "$acl_shlibext"; then
46185              if test -f "$dir/$libname$shrext"; then
46186                found_dir="$dir"
46187                found_so="$dir/$libname$shrext"
46188              else
46189                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
46190                  ver=`(cd "$dir" && \
46191                        for f in "$libname$shrext".*; do echo "$f"; done \
46192                        | sed -e "s,^$libname$shrext\\\\.,," \
46193                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
46194                        | sed 1q ) 2>/dev/null`
46195                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
46196                    found_dir="$dir"
46197                    found_so="$dir/$libname$shrext.$ver"
46198                  fi
46199                else
46200                  eval library_names=\"$acl_library_names_spec\"
46201                  for f in $library_names; do
46202                    if test -f "$dir/$f"; then
46203                      found_dir="$dir"
46204                      found_so="$dir/$f"
46205                      break
46206                    fi
46207                  done
46208                fi
46209              fi
46210            fi
46211                        if test "X$found_dir" = "X"; then
46212              if test -f "$dir/$libname.$acl_libext"; then
46213                found_dir="$dir"
46214                found_a="$dir/$libname.$acl_libext"
46215              fi
46216            fi
46217            if test "X$found_dir" != "X"; then
46218              if test -f "$dir/$libname.la"; then
46219                found_la="$dir/$libname.la"
46220              fi
46221            fi
46222          fi
46223          if test "X$found_dir" = "X"; then
46224            for x in $LDFLAGS $LTLIBCROCO_0_6; do
46225
46226  acl_save_prefix="$prefix"
46227  prefix="$acl_final_prefix"
46228  acl_save_exec_prefix="$exec_prefix"
46229  exec_prefix="$acl_final_exec_prefix"
46230  eval x=\"$x\"
46231  exec_prefix="$acl_save_exec_prefix"
46232  prefix="$acl_save_prefix"
46233
46234              case "$x" in
46235                -L*)
46236                  dir=`echo "X$x" | sed -e 's/^X-L//'`
46237                                    if test -n "$acl_shlibext"; then
46238                    if test -f "$dir/$libname$shrext"; then
46239                      found_dir="$dir"
46240                      found_so="$dir/$libname$shrext"
46241                    else
46242                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
46243                        ver=`(cd "$dir" && \
46244                              for f in "$libname$shrext".*; do echo "$f"; done \
46245                              | sed -e "s,^$libname$shrext\\\\.,," \
46246                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
46247                              | sed 1q ) 2>/dev/null`
46248                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
46249                          found_dir="$dir"
46250                          found_so="$dir/$libname$shrext.$ver"
46251                        fi
46252                      else
46253                        eval library_names=\"$acl_library_names_spec\"
46254                        for f in $library_names; do
46255                          if test -f "$dir/$f"; then
46256                            found_dir="$dir"
46257                            found_so="$dir/$f"
46258                            break
46259                          fi
46260                        done
46261                      fi
46262                    fi
46263                  fi
46264                                    if test "X$found_dir" = "X"; then
46265                    if test -f "$dir/$libname.$acl_libext"; then
46266                      found_dir="$dir"
46267                      found_a="$dir/$libname.$acl_libext"
46268                    fi
46269                  fi
46270                  if test "X$found_dir" != "X"; then
46271                    if test -f "$dir/$libname.la"; then
46272                      found_la="$dir/$libname.la"
46273                    fi
46274                  fi
46275                  ;;
46276              esac
46277              if test "X$found_dir" != "X"; then
46278                break
46279              fi
46280            done
46281          fi
46282          if test "X$found_dir" != "X"; then
46283                        LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$found_dir -l$name"
46284            if test "X$found_so" != "X"; then
46285                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
46286                                LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
46287              else
46288                                                                                haveit=
46289                for x in $ltrpathdirs; do
46290                  if test "X$x" = "X$found_dir"; then
46291                    haveit=yes
46292                    break
46293                  fi
46294                done
46295                if test -z "$haveit"; then
46296                  ltrpathdirs="$ltrpathdirs $found_dir"
46297                fi
46298                                if test "$acl_hardcode_direct" = yes; then
46299                                                      LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
46300                else
46301                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
46302                                                            LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
46303                                                            haveit=
46304                    for x in $rpathdirs; do
46305                      if test "X$x" = "X$found_dir"; then
46306                        haveit=yes
46307                        break
46308                      fi
46309                    done
46310                    if test -z "$haveit"; then
46311                      rpathdirs="$rpathdirs $found_dir"
46312                    fi
46313                  else
46314                                                                                haveit=
46315                    for x in $LDFLAGS $LIBCROCO_0_6; do
46316
46317  acl_save_prefix="$prefix"
46318  prefix="$acl_final_prefix"
46319  acl_save_exec_prefix="$exec_prefix"
46320  exec_prefix="$acl_final_exec_prefix"
46321  eval x=\"$x\"
46322  exec_prefix="$acl_save_exec_prefix"
46323  prefix="$acl_save_prefix"
46324
46325                      if test "X$x" = "X-L$found_dir"; then
46326                        haveit=yes
46327                        break
46328                      fi
46329                    done
46330                    if test -z "$haveit"; then
46331                      LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir"
46332                    fi
46333                    if test "$acl_hardcode_minus_L" != no; then
46334                                                                                        LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_so"
46335                    else
46336                                                                                                                                                                                LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
46337                    fi
46338                  fi
46339                fi
46340              fi
46341            else
46342              if test "X$found_a" != "X"; then
46343                                LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$found_a"
46344              else
46345                                                LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$found_dir -l$name"
46346              fi
46347            fi
46348                        additional_includedir=
46349            case "$found_dir" in
46350              */$acl_libdirstem | */$acl_libdirstem/)
46351                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
46352                LIBCROCO_0_6_PREFIX="$basedir"
46353                additional_includedir="$basedir/include"
46354                ;;
46355            esac
46356            if test "X$additional_includedir" != "X"; then
46357                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
46358                haveit=
46359                if test "X$additional_includedir" = "X/usr/local/include"; then
46360                  if test -n "$GCC"; then
46361                    case $host_os in
46362                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46363                    esac
46364                  fi
46365                fi
46366                if test -z "$haveit"; then
46367                  for x in $CPPFLAGS $INCCROCO_0_6; do
46368
46369  acl_save_prefix="$prefix"
46370  prefix="$acl_final_prefix"
46371  acl_save_exec_prefix="$exec_prefix"
46372  exec_prefix="$acl_final_exec_prefix"
46373  eval x=\"$x\"
46374  exec_prefix="$acl_save_exec_prefix"
46375  prefix="$acl_save_prefix"
46376
46377                    if test "X$x" = "X-I$additional_includedir"; then
46378                      haveit=yes
46379                      break
46380                    fi
46381                  done
46382                  if test -z "$haveit"; then
46383                    if test -d "$additional_includedir"; then
46384                                            INCCROCO_0_6="${INCCROCO_0_6}${INCCROCO_0_6:+ }-I$additional_includedir"
46385                    fi
46386                  fi
46387                fi
46388              fi
46389            fi
46390                        if test -n "$found_la"; then
46391                                                        save_libdir="$libdir"
46392              case "$found_la" in
46393                */* | *\\*) . "$found_la" ;;
46394                *) . "./$found_la" ;;
46395              esac
46396              libdir="$save_libdir"
46397                            for dep in $dependency_libs; do
46398                case "$dep" in
46399                  -L*)
46400                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
46401                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
46402                      haveit=
46403                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
46404                        if test -n "$GCC"; then
46405                          case $host_os in
46406                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
46407                          esac
46408                        fi
46409                      fi
46410                      if test -z "$haveit"; then
46411                        haveit=
46412                        for x in $LDFLAGS $LIBCROCO_0_6; do
46413
46414  acl_save_prefix="$prefix"
46415  prefix="$acl_final_prefix"
46416  acl_save_exec_prefix="$exec_prefix"
46417  exec_prefix="$acl_final_exec_prefix"
46418  eval x=\"$x\"
46419  exec_prefix="$acl_save_exec_prefix"
46420  prefix="$acl_save_prefix"
46421
46422                          if test "X$x" = "X-L$additional_libdir"; then
46423                            haveit=yes
46424                            break
46425                          fi
46426                        done
46427                        if test -z "$haveit"; then
46428                          if test -d "$additional_libdir"; then
46429                                                        LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-L$additional_libdir"
46430                          fi
46431                        fi
46432                        haveit=
46433                        for x in $LDFLAGS $LTLIBCROCO_0_6; do
46434
46435  acl_save_prefix="$prefix"
46436  prefix="$acl_final_prefix"
46437  acl_save_exec_prefix="$exec_prefix"
46438  exec_prefix="$acl_final_exec_prefix"
46439  eval x=\"$x\"
46440  exec_prefix="$acl_save_exec_prefix"
46441  prefix="$acl_save_prefix"
46442
46443                          if test "X$x" = "X-L$additional_libdir"; then
46444                            haveit=yes
46445                            break
46446                          fi
46447                        done
46448                        if test -z "$haveit"; then
46449                          if test -d "$additional_libdir"; then
46450                                                        LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-L$additional_libdir"
46451                          fi
46452                        fi
46453                      fi
46454                    fi
46455                    ;;
46456                  -R*)
46457                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
46458                    if test "$enable_rpath" != no; then
46459                                                                  haveit=
46460                      for x in $rpathdirs; do
46461                        if test "X$x" = "X$dir"; then
46462                          haveit=yes
46463                          break
46464                        fi
46465                      done
46466                      if test -z "$haveit"; then
46467                        rpathdirs="$rpathdirs $dir"
46468                      fi
46469                                                                  haveit=
46470                      for x in $ltrpathdirs; do
46471                        if test "X$x" = "X$dir"; then
46472                          haveit=yes
46473                          break
46474                        fi
46475                      done
46476                      if test -z "$haveit"; then
46477                        ltrpathdirs="$ltrpathdirs $dir"
46478                      fi
46479                    fi
46480                    ;;
46481                  -l*)
46482                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
46483                    ;;
46484                  *.la)
46485                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
46486                    ;;
46487                  *)
46488                                        LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$dep"
46489                    LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }$dep"
46490                    ;;
46491                esac
46492              done
46493            fi
46494          else
46495                                                            LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }-l$name"
46496            LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-l$name"
46497          fi
46498        fi
46499      fi
46500    done
46501  done
46502  if test "X$rpathdirs" != "X"; then
46503    if test -n "$acl_hardcode_libdir_separator"; then
46504                        alldirs=
46505      for found_dir in $rpathdirs; do
46506        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
46507      done
46508            acl_save_libdir="$libdir"
46509      libdir="$alldirs"
46510      eval flag=\"$acl_hardcode_libdir_flag_spec\"
46511      libdir="$acl_save_libdir"
46512      LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
46513    else
46514            for found_dir in $rpathdirs; do
46515        acl_save_libdir="$libdir"
46516        libdir="$found_dir"
46517        eval flag=\"$acl_hardcode_libdir_flag_spec\"
46518        libdir="$acl_save_libdir"
46519        LIBCROCO_0_6="${LIBCROCO_0_6}${LIBCROCO_0_6:+ }$flag"
46520      done
46521    fi
46522  fi
46523  if test "X$ltrpathdirs" != "X"; then
46524            for found_dir in $ltrpathdirs; do
46525      LTLIBCROCO_0_6="${LTLIBCROCO_0_6}${LTLIBCROCO_0_6:+ }-R$found_dir"
46526    done
46527  fi
46528
46529      LIBS="$gl_save_LIBS $LIBCROCO_0_6"
46530      cat >conftest.$ac_ext <<_ACEOF
46531/* confdefs.h.  */
46532_ACEOF
46533cat confdefs.h >>conftest.$ac_ext
46534cat >>conftest.$ac_ext <<_ACEOF
46535/* end confdefs.h.  */
46536#include <libcroco-config.h>
46537int
46538main ()
46539{
46540const char *version = LIBCROCO_VERSION; return !version;
46541  ;
46542  return 0;
46543}
46544_ACEOF
46545rm -f conftest.$ac_objext conftest$ac_exeext
46546if { (ac_try="$ac_link"
46547case "(($ac_try" in
46548  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46549  *) ac_try_echo=$ac_try;;
46550esac
46551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46552$as_echo "$ac_try_echo") >&5
46553  (eval "$ac_link") 2>conftest.er1
46554  ac_status=$?
46555  grep -v '^ *+' conftest.er1 >conftest.err
46556  rm -f conftest.er1
46557  cat conftest.err >&5
46558  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46559  (exit $ac_status); } && {
46560	 test -z "$ac_c_werror_flag" ||
46561	 test ! -s conftest.err
46562       } && test -s conftest$ac_exeext && {
46563	 test "$cross_compiling" = yes ||
46564	 $as_test_x conftest$ac_exeext
46565       }; then
46566  gl_cv_libcroco=yes
46567         gl_cv_LIBCROCO="$LIBCROCO_0_6"
46568         gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
46569
46570else
46571  $as_echo "$as_me: failed program was:" >&5
46572sed 's/^/| /' conftest.$ac_ext >&5
46573
46574
46575fi
46576
46577rm -rf conftest.dSYM
46578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46579      conftest$ac_exeext conftest.$ac_ext
46580      if test "$gl_cv_libcroco" != yes; then
46581        gl_save_CPPFLAGS="$CPPFLAGS"
46582        CPPFLAGS="$CPPFLAGS $INCCROCO_0_6"
46583        cat >conftest.$ac_ext <<_ACEOF
46584/* confdefs.h.  */
46585_ACEOF
46586cat confdefs.h >>conftest.$ac_ext
46587cat >>conftest.$ac_ext <<_ACEOF
46588/* end confdefs.h.  */
46589#include <libcroco-config.h>
46590int
46591main ()
46592{
46593const char *version = LIBCROCO_VERSION; return !version;
46594  ;
46595  return 0;
46596}
46597_ACEOF
46598rm -f conftest.$ac_objext conftest$ac_exeext
46599if { (ac_try="$ac_link"
46600case "(($ac_try" in
46601  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46602  *) ac_try_echo=$ac_try;;
46603esac
46604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46605$as_echo "$ac_try_echo") >&5
46606  (eval "$ac_link") 2>conftest.er1
46607  ac_status=$?
46608  grep -v '^ *+' conftest.er1 >conftest.err
46609  rm -f conftest.er1
46610  cat conftest.err >&5
46611  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46612  (exit $ac_status); } && {
46613	 test -z "$ac_c_werror_flag" ||
46614	 test ! -s conftest.err
46615       } && test -s conftest$ac_exeext && {
46616	 test "$cross_compiling" = yes ||
46617	 $as_test_x conftest$ac_exeext
46618       }; then
46619  gl_cv_libcroco=yes
46620           gl_cv_LIBCROCO="$LIBCROCO_0_6"
46621           gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
46622           gl_cv_INCCROCO="$INCCROCO_0_6"
46623
46624else
46625  $as_echo "$as_me: failed program was:" >&5
46626sed 's/^/| /' conftest.$ac_ext >&5
46627
46628
46629fi
46630
46631rm -rf conftest.dSYM
46632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46633      conftest$ac_exeext conftest.$ac_ext
46634        if test "$gl_cv_libcroco" != yes; then
46635                              cat >conftest.$ac_ext <<_ACEOF
46636/* confdefs.h.  */
46637_ACEOF
46638cat confdefs.h >>conftest.$ac_ext
46639cat >>conftest.$ac_ext <<_ACEOF
46640/* end confdefs.h.  */
46641#include <libcroco-0.6/libcroco/libcroco-config.h>
46642int
46643main ()
46644{
46645const char *version = LIBCROCO_VERSION; return !version;
46646  ;
46647  return 0;
46648}
46649_ACEOF
46650rm -f conftest.$ac_objext conftest$ac_exeext
46651if { (ac_try="$ac_link"
46652case "(($ac_try" in
46653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46654  *) ac_try_echo=$ac_try;;
46655esac
46656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46657$as_echo "$ac_try_echo") >&5
46658  (eval "$ac_link") 2>conftest.er1
46659  ac_status=$?
46660  grep -v '^ *+' conftest.er1 >conftest.err
46661  rm -f conftest.er1
46662  cat conftest.err >&5
46663  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46664  (exit $ac_status); } && {
46665	 test -z "$ac_c_werror_flag" ||
46666	 test ! -s conftest.err
46667       } && test -s conftest$ac_exeext && {
46668	 test "$cross_compiling" = yes ||
46669	 $as_test_x conftest$ac_exeext
46670       }; then
46671    { $as_echo "$as_me:$LINENO: checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>" >&5
46672$as_echo_n "checking absolute name of <libcroco-0.6/libcroco/libcroco-config.h>... " >&6; }
46673if test "${gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h+set}" = set; then
46674  $as_echo_n "(cached) " >&6
46675else
46676
46677  :
46678
46679
46680
46681
46682    if test $ac_cv_header_libcroco_0_6_libcroco_libcroco_config_h = yes; then
46683      cat >conftest.$ac_ext <<_ACEOF
46684/* confdefs.h.  */
46685_ACEOF
46686cat confdefs.h >>conftest.$ac_ext
46687cat >>conftest.$ac_ext <<_ACEOF
46688/* end confdefs.h.  */
46689#include <libcroco-0.6/libcroco/libcroco-config.h>
46690_ACEOF
46691      gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46692sed -n '\#/libcroco-0.6/libcroco/libcroco-config.h#{
46693	s#.*"\(.*/libcroco-0.6/libcroco/libcroco-config.h\)".*#\1#
46694	s#^/[^/]#//&#
46695	p
46696	q
46697}'`
46698    fi
46699
46700fi
46701{ $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&5
46702$as_echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" >&6; }
46703cat >>confdefs.h <<_ACEOF
46704#define ABSOLUTE_LIBCROCO_0_6_LIBCROCO_LIBCROCO_CONFIG_H "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h"
46705_ACEOF
46706
46707
46708             libcroco_include_dir=`echo "$gl_cv_absolute_libcroco_0_6_libcroco_libcroco_config_h" | sed -e 's,.libcroco-config\.h$,,'`
46709             if test -d "$libcroco_include_dir"; then
46710               gl_cv_libcroco=yes
46711               gl_cv_LIBCROCO="$LIBCROCO_0_6"
46712               gl_cv_LTLIBCROCO="$LTLIBCROCO_0_6"
46713               gl_cv_INCCROCO="-I$libcroco_include_dir"
46714             fi
46715
46716else
46717  $as_echo "$as_me: failed program was:" >&5
46718sed 's/^/| /' conftest.$ac_ext >&5
46719
46720
46721fi
46722
46723rm -rf conftest.dSYM
46724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46725      conftest$ac_exeext conftest.$ac_ext
46726        fi
46727        CPPFLAGS="$gl_save_CPPFLAGS"
46728      fi
46729      LIBS="$gl_save_LIBS"
46730
46731fi
46732
46733    { $as_echo "$as_me:$LINENO: checking for libcroco" >&5
46734$as_echo_n "checking for libcroco... " >&6; }
46735    { $as_echo "$as_me:$LINENO: result: $gl_cv_libcroco" >&5
46736$as_echo "$gl_cv_libcroco" >&6; }
46737    if test $gl_cv_libcroco = yes; then
46738      LIBCROCO="$gl_cv_LIBCROCO"
46739      LTLIBCROCO="$gl_cv_LTLIBCROCO"
46740      INCCROCO="$gl_cv_INCCROCO"
46741    else
46742      gl_cv_libcroco_use_included=yes
46743    fi
46744  fi
46745
46746
46747
46748  { $as_echo "$as_me:$LINENO: checking whether to use the included libcroco" >&5
46749$as_echo_n "checking whether to use the included libcroco... " >&6; }
46750  { $as_echo "$as_me:$LINENO: result: $gl_cv_libcroco_use_included" >&5
46751$as_echo "$gl_cv_libcroco_use_included" >&6; }
46752
46753   if test "$gl_cv_libcroco_use_included" = yes; then
46754  INCLUDED_LIBCROCO_TRUE=
46755  INCLUDED_LIBCROCO_FALSE='#'
46756else
46757  INCLUDED_LIBCROCO_TRUE='#'
46758  INCLUDED_LIBCROCO_FALSE=
46759fi
46760
46761
46762
46763  { $as_echo "$as_me:$LINENO: checking whether included glib is requested" >&5
46764$as_echo_n "checking whether included glib is requested... " >&6; }
46765
46766# Check whether --with-included-glib was given.
46767if test "${with_included_glib+set}" = set; then
46768  withval=$with_included_glib; gl_cv_libglib_force_included=$withval
46769else
46770  gl_cv_libglib_force_included=no
46771fi
46772
46773  { $as_echo "$as_me:$LINENO: result: $gl_cv_libglib_force_included" >&5
46774$as_echo "$gl_cv_libglib_force_included" >&6; }
46775
46776  gl_cv_libglib_use_included="$gl_cv_libglib_force_included"
46777  LIBGLIB=
46778  LTLIBGLIB=
46779  INCGLIB=
46780  if test "$gl_cv_libglib_use_included" != yes; then
46781            if test "${gl_cv_libglib+set}" = set; then
46782  $as_echo_n "(cached) " >&6
46783else
46784
46785      gl_cv_libglib=no
46786      gl_cv_LIBGLIB=
46787      gl_cv_LTLIBGLIB=
46788      gl_cv_INCGLIB=
46789      gl_save_LIBS="$LIBS"
46790
46791
46792
46793
46794    use_additional=yes
46795
46796  acl_save_prefix="$prefix"
46797  prefix="$acl_final_prefix"
46798  acl_save_exec_prefix="$exec_prefix"
46799  exec_prefix="$acl_final_exec_prefix"
46800
46801    eval additional_includedir=\"$includedir\"
46802    eval additional_libdir=\"$libdir\"
46803
46804  exec_prefix="$acl_save_exec_prefix"
46805  prefix="$acl_save_prefix"
46806
46807
46808# Check whether --with-libglib-2.0-prefix was given.
46809if test "${with_libglib_2_0_prefix+set}" = set; then
46810  withval=$with_libglib_2_0_prefix;
46811    if test "X$withval" = "Xno"; then
46812      use_additional=no
46813    else
46814      if test "X$withval" = "X"; then
46815
46816  acl_save_prefix="$prefix"
46817  prefix="$acl_final_prefix"
46818  acl_save_exec_prefix="$exec_prefix"
46819  exec_prefix="$acl_final_exec_prefix"
46820
46821          eval additional_includedir=\"$includedir\"
46822          eval additional_libdir=\"$libdir\"
46823
46824  exec_prefix="$acl_save_exec_prefix"
46825  prefix="$acl_save_prefix"
46826
46827      else
46828        additional_includedir="$withval/include"
46829        additional_libdir="$withval/$acl_libdirstem"
46830      fi
46831    fi
46832
46833fi
46834
46835      LIBGLIB_2_0=
46836  LTLIBGLIB_2_0=
46837  INCGLIB_2_0=
46838  LIBGLIB_2_0_PREFIX=
46839  rpathdirs=
46840  ltrpathdirs=
46841  names_already_handled=
46842  names_next_round='glib-2.0 '
46843  while test -n "$names_next_round"; do
46844    names_this_round="$names_next_round"
46845    names_next_round=
46846    for name in $names_this_round; do
46847      already_handled=
46848      for n in $names_already_handled; do
46849        if test "$n" = "$name"; then
46850          already_handled=yes
46851          break
46852        fi
46853      done
46854      if test -z "$already_handled"; then
46855        names_already_handled="$names_already_handled $name"
46856                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
46857        eval value=\"\$HAVE_LIB$uppername\"
46858        if test -n "$value"; then
46859          if test "$value" = yes; then
46860            eval value=\"\$LIB$uppername\"
46861            test -z "$value" || LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$value"
46862            eval value=\"\$LTLIB$uppername\"
46863            test -z "$value" || LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$value"
46864          else
46865                                    :
46866          fi
46867        else
46868                              found_dir=
46869          found_la=
46870          found_so=
46871          found_a=
46872          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
46873          if test -n "$acl_shlibext"; then
46874            shrext=".$acl_shlibext"             # typically: shrext=.so
46875          else
46876            shrext=
46877          fi
46878          if test $use_additional = yes; then
46879            dir="$additional_libdir"
46880                                    if test -n "$acl_shlibext"; then
46881              if test -f "$dir/$libname$shrext"; then
46882                found_dir="$dir"
46883                found_so="$dir/$libname$shrext"
46884              else
46885                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
46886                  ver=`(cd "$dir" && \
46887                        for f in "$libname$shrext".*; do echo "$f"; done \
46888                        | sed -e "s,^$libname$shrext\\\\.,," \
46889                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
46890                        | sed 1q ) 2>/dev/null`
46891                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
46892                    found_dir="$dir"
46893                    found_so="$dir/$libname$shrext.$ver"
46894                  fi
46895                else
46896                  eval library_names=\"$acl_library_names_spec\"
46897                  for f in $library_names; do
46898                    if test -f "$dir/$f"; then
46899                      found_dir="$dir"
46900                      found_so="$dir/$f"
46901                      break
46902                    fi
46903                  done
46904                fi
46905              fi
46906            fi
46907                        if test "X$found_dir" = "X"; then
46908              if test -f "$dir/$libname.$acl_libext"; then
46909                found_dir="$dir"
46910                found_a="$dir/$libname.$acl_libext"
46911              fi
46912            fi
46913            if test "X$found_dir" != "X"; then
46914              if test -f "$dir/$libname.la"; then
46915                found_la="$dir/$libname.la"
46916              fi
46917            fi
46918          fi
46919          if test "X$found_dir" = "X"; then
46920            for x in $LDFLAGS $LTLIBGLIB_2_0; do
46921
46922  acl_save_prefix="$prefix"
46923  prefix="$acl_final_prefix"
46924  acl_save_exec_prefix="$exec_prefix"
46925  exec_prefix="$acl_final_exec_prefix"
46926  eval x=\"$x\"
46927  exec_prefix="$acl_save_exec_prefix"
46928  prefix="$acl_save_prefix"
46929
46930              case "$x" in
46931                -L*)
46932                  dir=`echo "X$x" | sed -e 's/^X-L//'`
46933                                    if test -n "$acl_shlibext"; then
46934                    if test -f "$dir/$libname$shrext"; then
46935                      found_dir="$dir"
46936                      found_so="$dir/$libname$shrext"
46937                    else
46938                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
46939                        ver=`(cd "$dir" && \
46940                              for f in "$libname$shrext".*; do echo "$f"; done \
46941                              | sed -e "s,^$libname$shrext\\\\.,," \
46942                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
46943                              | sed 1q ) 2>/dev/null`
46944                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
46945                          found_dir="$dir"
46946                          found_so="$dir/$libname$shrext.$ver"
46947                        fi
46948                      else
46949                        eval library_names=\"$acl_library_names_spec\"
46950                        for f in $library_names; do
46951                          if test -f "$dir/$f"; then
46952                            found_dir="$dir"
46953                            found_so="$dir/$f"
46954                            break
46955                          fi
46956                        done
46957                      fi
46958                    fi
46959                  fi
46960                                    if test "X$found_dir" = "X"; then
46961                    if test -f "$dir/$libname.$acl_libext"; then
46962                      found_dir="$dir"
46963                      found_a="$dir/$libname.$acl_libext"
46964                    fi
46965                  fi
46966                  if test "X$found_dir" != "X"; then
46967                    if test -f "$dir/$libname.la"; then
46968                      found_la="$dir/$libname.la"
46969                    fi
46970                  fi
46971                  ;;
46972              esac
46973              if test "X$found_dir" != "X"; then
46974                break
46975              fi
46976            done
46977          fi
46978          if test "X$found_dir" != "X"; then
46979                        LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$found_dir -l$name"
46980            if test "X$found_so" != "X"; then
46981                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
46982                                LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
46983              else
46984                                                                                haveit=
46985                for x in $ltrpathdirs; do
46986                  if test "X$x" = "X$found_dir"; then
46987                    haveit=yes
46988                    break
46989                  fi
46990                done
46991                if test -z "$haveit"; then
46992                  ltrpathdirs="$ltrpathdirs $found_dir"
46993                fi
46994                                if test "$acl_hardcode_direct" = yes; then
46995                                                      LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
46996                else
46997                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
46998                                                            LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
46999                                                            haveit=
47000                    for x in $rpathdirs; do
47001                      if test "X$x" = "X$found_dir"; then
47002                        haveit=yes
47003                        break
47004                      fi
47005                    done
47006                    if test -z "$haveit"; then
47007                      rpathdirs="$rpathdirs $found_dir"
47008                    fi
47009                  else
47010                                                                                haveit=
47011                    for x in $LDFLAGS $LIBGLIB_2_0; do
47012
47013  acl_save_prefix="$prefix"
47014  prefix="$acl_final_prefix"
47015  acl_save_exec_prefix="$exec_prefix"
47016  exec_prefix="$acl_final_exec_prefix"
47017  eval x=\"$x\"
47018  exec_prefix="$acl_save_exec_prefix"
47019  prefix="$acl_save_prefix"
47020
47021                      if test "X$x" = "X-L$found_dir"; then
47022                        haveit=yes
47023                        break
47024                      fi
47025                    done
47026                    if test -z "$haveit"; then
47027                      LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir"
47028                    fi
47029                    if test "$acl_hardcode_minus_L" != no; then
47030                                                                                        LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_so"
47031                    else
47032                                                                                                                                                                                LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
47033                    fi
47034                  fi
47035                fi
47036              fi
47037            else
47038              if test "X$found_a" != "X"; then
47039                                LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$found_a"
47040              else
47041                                                LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$found_dir -l$name"
47042              fi
47043            fi
47044                        additional_includedir=
47045            case "$found_dir" in
47046              */$acl_libdirstem | */$acl_libdirstem/)
47047                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
47048                LIBGLIB_2_0_PREFIX="$basedir"
47049                additional_includedir="$basedir/include"
47050                ;;
47051            esac
47052            if test "X$additional_includedir" != "X"; then
47053                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
47054                haveit=
47055                if test "X$additional_includedir" = "X/usr/local/include"; then
47056                  if test -n "$GCC"; then
47057                    case $host_os in
47058                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
47059                    esac
47060                  fi
47061                fi
47062                if test -z "$haveit"; then
47063                  for x in $CPPFLAGS $INCGLIB_2_0; do
47064
47065  acl_save_prefix="$prefix"
47066  prefix="$acl_final_prefix"
47067  acl_save_exec_prefix="$exec_prefix"
47068  exec_prefix="$acl_final_exec_prefix"
47069  eval x=\"$x\"
47070  exec_prefix="$acl_save_exec_prefix"
47071  prefix="$acl_save_prefix"
47072
47073                    if test "X$x" = "X-I$additional_includedir"; then
47074                      haveit=yes
47075                      break
47076                    fi
47077                  done
47078                  if test -z "$haveit"; then
47079                    if test -d "$additional_includedir"; then
47080                                            INCGLIB_2_0="${INCGLIB_2_0}${INCGLIB_2_0:+ }-I$additional_includedir"
47081                    fi
47082                  fi
47083                fi
47084              fi
47085            fi
47086                        if test -n "$found_la"; then
47087                                                        save_libdir="$libdir"
47088              case "$found_la" in
47089                */* | *\\*) . "$found_la" ;;
47090                *) . "./$found_la" ;;
47091              esac
47092              libdir="$save_libdir"
47093                            for dep in $dependency_libs; do
47094                case "$dep" in
47095                  -L*)
47096                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
47097                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
47098                      haveit=
47099                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
47100                        if test -n "$GCC"; then
47101                          case $host_os in
47102                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
47103                          esac
47104                        fi
47105                      fi
47106                      if test -z "$haveit"; then
47107                        haveit=
47108                        for x in $LDFLAGS $LIBGLIB_2_0; do
47109
47110  acl_save_prefix="$prefix"
47111  prefix="$acl_final_prefix"
47112  acl_save_exec_prefix="$exec_prefix"
47113  exec_prefix="$acl_final_exec_prefix"
47114  eval x=\"$x\"
47115  exec_prefix="$acl_save_exec_prefix"
47116  prefix="$acl_save_prefix"
47117
47118                          if test "X$x" = "X-L$additional_libdir"; then
47119                            haveit=yes
47120                            break
47121                          fi
47122                        done
47123                        if test -z "$haveit"; then
47124                          if test -d "$additional_libdir"; then
47125                                                        LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-L$additional_libdir"
47126                          fi
47127                        fi
47128                        haveit=
47129                        for x in $LDFLAGS $LTLIBGLIB_2_0; do
47130
47131  acl_save_prefix="$prefix"
47132  prefix="$acl_final_prefix"
47133  acl_save_exec_prefix="$exec_prefix"
47134  exec_prefix="$acl_final_exec_prefix"
47135  eval x=\"$x\"
47136  exec_prefix="$acl_save_exec_prefix"
47137  prefix="$acl_save_prefix"
47138
47139                          if test "X$x" = "X-L$additional_libdir"; then
47140                            haveit=yes
47141                            break
47142                          fi
47143                        done
47144                        if test -z "$haveit"; then
47145                          if test -d "$additional_libdir"; then
47146                                                        LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-L$additional_libdir"
47147                          fi
47148                        fi
47149                      fi
47150                    fi
47151                    ;;
47152                  -R*)
47153                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
47154                    if test "$enable_rpath" != no; then
47155                                                                  haveit=
47156                      for x in $rpathdirs; do
47157                        if test "X$x" = "X$dir"; then
47158                          haveit=yes
47159                          break
47160                        fi
47161                      done
47162                      if test -z "$haveit"; then
47163                        rpathdirs="$rpathdirs $dir"
47164                      fi
47165                                                                  haveit=
47166                      for x in $ltrpathdirs; do
47167                        if test "X$x" = "X$dir"; then
47168                          haveit=yes
47169                          break
47170                        fi
47171                      done
47172                      if test -z "$haveit"; then
47173                        ltrpathdirs="$ltrpathdirs $dir"
47174                      fi
47175                    fi
47176                    ;;
47177                  -l*)
47178                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
47179                    ;;
47180                  *.la)
47181                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
47182                    ;;
47183                  *)
47184                                        LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$dep"
47185                    LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }$dep"
47186                    ;;
47187                esac
47188              done
47189            fi
47190          else
47191                                                            LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }-l$name"
47192            LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-l$name"
47193          fi
47194        fi
47195      fi
47196    done
47197  done
47198  if test "X$rpathdirs" != "X"; then
47199    if test -n "$acl_hardcode_libdir_separator"; then
47200                        alldirs=
47201      for found_dir in $rpathdirs; do
47202        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
47203      done
47204            acl_save_libdir="$libdir"
47205      libdir="$alldirs"
47206      eval flag=\"$acl_hardcode_libdir_flag_spec\"
47207      libdir="$acl_save_libdir"
47208      LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
47209    else
47210            for found_dir in $rpathdirs; do
47211        acl_save_libdir="$libdir"
47212        libdir="$found_dir"
47213        eval flag=\"$acl_hardcode_libdir_flag_spec\"
47214        libdir="$acl_save_libdir"
47215        LIBGLIB_2_0="${LIBGLIB_2_0}${LIBGLIB_2_0:+ }$flag"
47216      done
47217    fi
47218  fi
47219  if test "X$ltrpathdirs" != "X"; then
47220            for found_dir in $ltrpathdirs; do
47221      LTLIBGLIB_2_0="${LTLIBGLIB_2_0}${LTLIBGLIB_2_0:+ }-R$found_dir"
47222    done
47223  fi
47224
47225      LIBS="$gl_save_LIBS $LIBGLIB_2_0"
47226      cat >conftest.$ac_ext <<_ACEOF
47227/* confdefs.h.  */
47228_ACEOF
47229cat confdefs.h >>conftest.$ac_ext
47230cat >>conftest.$ac_ext <<_ACEOF
47231/* end confdefs.h.  */
47232#include <glib.h>
47233int
47234main ()
47235{
47236g_string_new ("foo");
47237  ;
47238  return 0;
47239}
47240_ACEOF
47241rm -f conftest.$ac_objext conftest$ac_exeext
47242if { (ac_try="$ac_link"
47243case "(($ac_try" in
47244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47245  *) ac_try_echo=$ac_try;;
47246esac
47247eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47248$as_echo "$ac_try_echo") >&5
47249  (eval "$ac_link") 2>conftest.er1
47250  ac_status=$?
47251  grep -v '^ *+' conftest.er1 >conftest.err
47252  rm -f conftest.er1
47253  cat conftest.err >&5
47254  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47255  (exit $ac_status); } && {
47256	 test -z "$ac_c_werror_flag" ||
47257	 test ! -s conftest.err
47258       } && test -s conftest$ac_exeext && {
47259	 test "$cross_compiling" = yes ||
47260	 $as_test_x conftest$ac_exeext
47261       }; then
47262  gl_cv_libglib=yes
47263         gl_cv_LIBGLIB="$LIBGLIB_2_0"
47264         gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
47265
47266else
47267  $as_echo "$as_me: failed program was:" >&5
47268sed 's/^/| /' conftest.$ac_ext >&5
47269
47270
47271fi
47272
47273rm -rf conftest.dSYM
47274rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47275      conftest$ac_exeext conftest.$ac_ext
47276      if test "$gl_cv_libglib" != yes; then
47277        gl_save_CPPFLAGS="$CPPFLAGS"
47278        CPPFLAGS="$CPPFLAGS $INCGLIB_2_0"
47279        cat >conftest.$ac_ext <<_ACEOF
47280/* confdefs.h.  */
47281_ACEOF
47282cat confdefs.h >>conftest.$ac_ext
47283cat >>conftest.$ac_ext <<_ACEOF
47284/* end confdefs.h.  */
47285#include <glib.h>
47286int
47287main ()
47288{
47289g_string_new ("foo");
47290  ;
47291  return 0;
47292}
47293_ACEOF
47294rm -f conftest.$ac_objext conftest$ac_exeext
47295if { (ac_try="$ac_link"
47296case "(($ac_try" in
47297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47298  *) ac_try_echo=$ac_try;;
47299esac
47300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47301$as_echo "$ac_try_echo") >&5
47302  (eval "$ac_link") 2>conftest.er1
47303  ac_status=$?
47304  grep -v '^ *+' conftest.er1 >conftest.err
47305  rm -f conftest.er1
47306  cat conftest.err >&5
47307  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47308  (exit $ac_status); } && {
47309	 test -z "$ac_c_werror_flag" ||
47310	 test ! -s conftest.err
47311       } && test -s conftest$ac_exeext && {
47312	 test "$cross_compiling" = yes ||
47313	 $as_test_x conftest$ac_exeext
47314       }; then
47315  gl_cv_libglib=yes
47316           gl_cv_LIBGLIB="$LIBGLIB_2_0"
47317           gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
47318           gl_cv_INCGLIB="$INCGLIB_2_0"
47319
47320else
47321  $as_echo "$as_me: failed program was:" >&5
47322sed 's/^/| /' conftest.$ac_ext >&5
47323
47324
47325fi
47326
47327rm -rf conftest.dSYM
47328rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47329      conftest$ac_exeext conftest.$ac_ext
47330        if test "$gl_cv_libglib" != yes; then
47331                              if test -n "$LIBGLIB_2_0_PREFIX"; then
47332            CPPFLAGS="$gl_save_CPPFLAGS -I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
47333            cat >conftest.$ac_ext <<_ACEOF
47334/* confdefs.h.  */
47335_ACEOF
47336cat confdefs.h >>conftest.$ac_ext
47337cat >>conftest.$ac_ext <<_ACEOF
47338/* end confdefs.h.  */
47339#include <glib.h>
47340int
47341main ()
47342{
47343g_string_new ("foo");
47344  ;
47345  return 0;
47346}
47347_ACEOF
47348rm -f conftest.$ac_objext conftest$ac_exeext
47349if { (ac_try="$ac_link"
47350case "(($ac_try" in
47351  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47352  *) ac_try_echo=$ac_try;;
47353esac
47354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47355$as_echo "$ac_try_echo") >&5
47356  (eval "$ac_link") 2>conftest.er1
47357  ac_status=$?
47358  grep -v '^ *+' conftest.er1 >conftest.err
47359  rm -f conftest.er1
47360  cat conftest.err >&5
47361  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47362  (exit $ac_status); } && {
47363	 test -z "$ac_c_werror_flag" ||
47364	 test ! -s conftest.err
47365       } && test -s conftest$ac_exeext && {
47366	 test "$cross_compiling" = yes ||
47367	 $as_test_x conftest$ac_exeext
47368       }; then
47369  gl_cv_libglib=yes
47370               gl_cv_LIBGLIB="$LIBGLIB_2_0"
47371               gl_cv_LTLIBGLIB="$LTLIBGLIB_2_0"
47372               gl_cv_INCGLIB="-I$LIBGLIB_2_0_PREFIX/include/glib-2.0 -I$LIBGLIB_2_0_PREFIX/$acl_libdirstem/glib-2.0/include"
47373
47374else
47375  $as_echo "$as_me: failed program was:" >&5
47376sed 's/^/| /' conftest.$ac_ext >&5
47377
47378
47379fi
47380
47381rm -rf conftest.dSYM
47382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47383      conftest$ac_exeext conftest.$ac_ext
47384          fi
47385        fi
47386        CPPFLAGS="$gl_save_CPPFLAGS"
47387      fi
47388      LIBS="$gl_save_LIBS"
47389
47390fi
47391
47392    { $as_echo "$as_me:$LINENO: checking for glib" >&5
47393$as_echo_n "checking for glib... " >&6; }
47394    { $as_echo "$as_me:$LINENO: result: $gl_cv_libglib" >&5
47395$as_echo "$gl_cv_libglib" >&6; }
47396    if test $gl_cv_libglib = yes; then
47397      LIBGLIB="$gl_cv_LIBGLIB"
47398      LTLIBGLIB="$gl_cv_LTLIBGLIB"
47399      INCGLIB="$gl_cv_INCGLIB"
47400    else
47401      gl_cv_libglib_use_included=yes
47402    fi
47403  fi
47404
47405
47406
47407  { $as_echo "$as_me:$LINENO: checking whether to use the included glib" >&5
47408$as_echo_n "checking whether to use the included glib... " >&6; }
47409  { $as_echo "$as_me:$LINENO: result: $gl_cv_libglib_use_included" >&5
47410$as_echo "$gl_cv_libglib_use_included" >&6; }
47411
47412  if test "$gl_cv_libglib_use_included" = yes; then
47413    LIBGLIB_H=
47414    LIBGLIB_H="$LIBGLIB_H glib.h"
47415    LIBGLIB_H="$LIBGLIB_H glibconfig.h"
47416    LIBGLIB_H="$LIBGLIB_H glib/ghash.h"
47417    LIBGLIB_H="$LIBGLIB_H glib/glist.h"
47418    LIBGLIB_H="$LIBGLIB_H glib/gprimes.h"
47419    LIBGLIB_H="$LIBGLIB_H glib/gstrfuncs.h"
47420    LIBGLIB_H="$LIBGLIB_H glib/gstring.h"
47421    LIBGLIB_H="$LIBGLIB_H glib/gtypes.h"
47422
47423
47424for ac_header in unistd.h
47425do
47426as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47427if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47428  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47429$as_echo_n "checking for $ac_header... " >&6; }
47430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47431  $as_echo_n "(cached) " >&6
47432fi
47433ac_res=`eval 'as_val=${'$as_ac_Header'}
47434		 $as_echo "$as_val"'`
47435	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47436$as_echo "$ac_res" >&6; }
47437else
47438  # Is the header compilable?
47439{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
47440$as_echo_n "checking $ac_header usability... " >&6; }
47441cat >conftest.$ac_ext <<_ACEOF
47442/* confdefs.h.  */
47443_ACEOF
47444cat confdefs.h >>conftest.$ac_ext
47445cat >>conftest.$ac_ext <<_ACEOF
47446/* end confdefs.h.  */
47447$ac_includes_default
47448#include <$ac_header>
47449_ACEOF
47450rm -f conftest.$ac_objext
47451if { (ac_try="$ac_compile"
47452case "(($ac_try" in
47453  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47454  *) ac_try_echo=$ac_try;;
47455esac
47456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47457$as_echo "$ac_try_echo") >&5
47458  (eval "$ac_compile") 2>conftest.er1
47459  ac_status=$?
47460  grep -v '^ *+' conftest.er1 >conftest.err
47461  rm -f conftest.er1
47462  cat conftest.err >&5
47463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47464  (exit $ac_status); } && {
47465	 test -z "$ac_c_werror_flag" ||
47466	 test ! -s conftest.err
47467       } && test -s conftest.$ac_objext; then
47468  ac_header_compiler=yes
47469else
47470  $as_echo "$as_me: failed program was:" >&5
47471sed 's/^/| /' conftest.$ac_ext >&5
47472
47473	ac_header_compiler=no
47474fi
47475
47476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47477{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47478$as_echo "$ac_header_compiler" >&6; }
47479
47480# Is the header present?
47481{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
47482$as_echo_n "checking $ac_header presence... " >&6; }
47483cat >conftest.$ac_ext <<_ACEOF
47484/* confdefs.h.  */
47485_ACEOF
47486cat confdefs.h >>conftest.$ac_ext
47487cat >>conftest.$ac_ext <<_ACEOF
47488/* end confdefs.h.  */
47489#include <$ac_header>
47490_ACEOF
47491if { (ac_try="$ac_cpp conftest.$ac_ext"
47492case "(($ac_try" in
47493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47494  *) ac_try_echo=$ac_try;;
47495esac
47496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47497$as_echo "$ac_try_echo") >&5
47498  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47499  ac_status=$?
47500  grep -v '^ *+' conftest.er1 >conftest.err
47501  rm -f conftest.er1
47502  cat conftest.err >&5
47503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47504  (exit $ac_status); } >/dev/null && {
47505	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47506	 test ! -s conftest.err
47507       }; then
47508  ac_header_preproc=yes
47509else
47510  $as_echo "$as_me: failed program was:" >&5
47511sed 's/^/| /' conftest.$ac_ext >&5
47512
47513  ac_header_preproc=no
47514fi
47515
47516rm -f conftest.err conftest.$ac_ext
47517{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47518$as_echo "$ac_header_preproc" >&6; }
47519
47520# So?  What about this header?
47521case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47522  yes:no: )
47523    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47524$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47525    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47526$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47527    ac_header_preproc=yes
47528    ;;
47529  no:yes:* )
47530    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47531$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47532    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47533$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47534    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47535$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47536    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47537$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47538    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47539$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47540    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47541$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47542
47543    ;;
47544esac
47545{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47546$as_echo_n "checking for $ac_header... " >&6; }
47547if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47548  $as_echo_n "(cached) " >&6
47549else
47550  eval "$as_ac_Header=\$ac_header_preproc"
47551fi
47552ac_res=`eval 'as_val=${'$as_ac_Header'}
47553		 $as_echo "$as_val"'`
47554	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47555$as_echo "$ac_res" >&6; }
47556
47557fi
47558as_val=`eval 'as_val=${'$as_ac_Header'}
47559		 $as_echo "$as_val"'`
47560   if test "x$as_val" = x""yes; then
47561  cat >>confdefs.h <<_ACEOF
47562#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47563_ACEOF
47564
47565fi
47566
47567done
47568
47569      else
47570    LIBGLIB_H=
47571  fi
47572
47573
47574   if test "$gl_cv_libglib_use_included" = yes; then
47575  INCLUDED_LIBGLIB_TRUE=
47576  INCLUDED_LIBGLIB_FALSE='#'
47577else
47578  INCLUDED_LIBGLIB_TRUE='#'
47579  INCLUDED_LIBGLIB_FALSE=
47580fi
47581
47582
47583
47584
47585
47586  { $as_echo "$as_me:$LINENO: checking whether included libxml is requested" >&5
47587$as_echo_n "checking whether included libxml is requested... " >&6; }
47588
47589# Check whether --with-included-libxml was given.
47590if test "${with_included_libxml+set}" = set; then
47591  withval=$with_included_libxml; gl_cv_libxml_force_included=$withval
47592else
47593  gl_cv_libxml_force_included=no
47594fi
47595
47596  { $as_echo "$as_me:$LINENO: result: $gl_cv_libxml_force_included" >&5
47597$as_echo "$gl_cv_libxml_force_included" >&6; }
47598
47599  gl_cv_libxml_use_included="$gl_cv_libxml_force_included"
47600  LIBXML=
47601  LTLIBXML=
47602  INCXML=
47603  if test "$gl_cv_libxml_use_included" != yes; then
47604            if test "${gl_cv_libxml+set}" = set; then
47605  $as_echo_n "(cached) " >&6
47606else
47607
47608      gl_cv_libxml=no
47609      gl_cv_LIBXML=
47610      gl_cv_LTLIBXML=
47611      gl_cv_INCXML=
47612      gl_save_LIBS="$LIBS"
47613      LIBS="$LIBS $LIBICONV"
47614
47615
47616
47617
47618    use_additional=yes
47619
47620  acl_save_prefix="$prefix"
47621  prefix="$acl_final_prefix"
47622  acl_save_exec_prefix="$exec_prefix"
47623  exec_prefix="$acl_final_exec_prefix"
47624
47625    eval additional_includedir=\"$includedir\"
47626    eval additional_libdir=\"$libdir\"
47627
47628  exec_prefix="$acl_save_exec_prefix"
47629  prefix="$acl_save_prefix"
47630
47631
47632# Check whether --with-libxml2-prefix was given.
47633if test "${with_libxml2_prefix+set}" = set; then
47634  withval=$with_libxml2_prefix;
47635    if test "X$withval" = "Xno"; then
47636      use_additional=no
47637    else
47638      if test "X$withval" = "X"; then
47639
47640  acl_save_prefix="$prefix"
47641  prefix="$acl_final_prefix"
47642  acl_save_exec_prefix="$exec_prefix"
47643  exec_prefix="$acl_final_exec_prefix"
47644
47645          eval additional_includedir=\"$includedir\"
47646          eval additional_libdir=\"$libdir\"
47647
47648  exec_prefix="$acl_save_exec_prefix"
47649  prefix="$acl_save_prefix"
47650
47651      else
47652        additional_includedir="$withval/include"
47653        additional_libdir="$withval/$acl_libdirstem"
47654      fi
47655    fi
47656
47657fi
47658
47659      LIBXML2=
47660  LTLIBXML2=
47661  INCXML2=
47662  LIBXML2_PREFIX=
47663  rpathdirs=
47664  ltrpathdirs=
47665  names_already_handled=
47666  names_next_round='xml2 '
47667  while test -n "$names_next_round"; do
47668    names_this_round="$names_next_round"
47669    names_next_round=
47670    for name in $names_this_round; do
47671      already_handled=
47672      for n in $names_already_handled; do
47673        if test "$n" = "$name"; then
47674          already_handled=yes
47675          break
47676        fi
47677      done
47678      if test -z "$already_handled"; then
47679        names_already_handled="$names_already_handled $name"
47680                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
47681        eval value=\"\$HAVE_LIB$uppername\"
47682        if test -n "$value"; then
47683          if test "$value" = yes; then
47684            eval value=\"\$LIB$uppername\"
47685            test -z "$value" || LIBXML2="${LIBXML2}${LIBXML2:+ }$value"
47686            eval value=\"\$LTLIB$uppername\"
47687            test -z "$value" || LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$value"
47688          else
47689                                    :
47690          fi
47691        else
47692                              found_dir=
47693          found_la=
47694          found_so=
47695          found_a=
47696          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
47697          if test -n "$acl_shlibext"; then
47698            shrext=".$acl_shlibext"             # typically: shrext=.so
47699          else
47700            shrext=
47701          fi
47702          if test $use_additional = yes; then
47703            dir="$additional_libdir"
47704                                    if test -n "$acl_shlibext"; then
47705              if test -f "$dir/$libname$shrext"; then
47706                found_dir="$dir"
47707                found_so="$dir/$libname$shrext"
47708              else
47709                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
47710                  ver=`(cd "$dir" && \
47711                        for f in "$libname$shrext".*; do echo "$f"; done \
47712                        | sed -e "s,^$libname$shrext\\\\.,," \
47713                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
47714                        | sed 1q ) 2>/dev/null`
47715                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
47716                    found_dir="$dir"
47717                    found_so="$dir/$libname$shrext.$ver"
47718                  fi
47719                else
47720                  eval library_names=\"$acl_library_names_spec\"
47721                  for f in $library_names; do
47722                    if test -f "$dir/$f"; then
47723                      found_dir="$dir"
47724                      found_so="$dir/$f"
47725                      break
47726                    fi
47727                  done
47728                fi
47729              fi
47730            fi
47731                        if test "X$found_dir" = "X"; then
47732              if test -f "$dir/$libname.$acl_libext"; then
47733                found_dir="$dir"
47734                found_a="$dir/$libname.$acl_libext"
47735              fi
47736            fi
47737            if test "X$found_dir" != "X"; then
47738              if test -f "$dir/$libname.la"; then
47739                found_la="$dir/$libname.la"
47740              fi
47741            fi
47742          fi
47743          if test "X$found_dir" = "X"; then
47744            for x in $LDFLAGS $LTLIBXML2; do
47745
47746  acl_save_prefix="$prefix"
47747  prefix="$acl_final_prefix"
47748  acl_save_exec_prefix="$exec_prefix"
47749  exec_prefix="$acl_final_exec_prefix"
47750  eval x=\"$x\"
47751  exec_prefix="$acl_save_exec_prefix"
47752  prefix="$acl_save_prefix"
47753
47754              case "$x" in
47755                -L*)
47756                  dir=`echo "X$x" | sed -e 's/^X-L//'`
47757                                    if test -n "$acl_shlibext"; then
47758                    if test -f "$dir/$libname$shrext"; then
47759                      found_dir="$dir"
47760                      found_so="$dir/$libname$shrext"
47761                    else
47762                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
47763                        ver=`(cd "$dir" && \
47764                              for f in "$libname$shrext".*; do echo "$f"; done \
47765                              | sed -e "s,^$libname$shrext\\\\.,," \
47766                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
47767                              | sed 1q ) 2>/dev/null`
47768                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
47769                          found_dir="$dir"
47770                          found_so="$dir/$libname$shrext.$ver"
47771                        fi
47772                      else
47773                        eval library_names=\"$acl_library_names_spec\"
47774                        for f in $library_names; do
47775                          if test -f "$dir/$f"; then
47776                            found_dir="$dir"
47777                            found_so="$dir/$f"
47778                            break
47779                          fi
47780                        done
47781                      fi
47782                    fi
47783                  fi
47784                                    if test "X$found_dir" = "X"; then
47785                    if test -f "$dir/$libname.$acl_libext"; then
47786                      found_dir="$dir"
47787                      found_a="$dir/$libname.$acl_libext"
47788                    fi
47789                  fi
47790                  if test "X$found_dir" != "X"; then
47791                    if test -f "$dir/$libname.la"; then
47792                      found_la="$dir/$libname.la"
47793                    fi
47794                  fi
47795                  ;;
47796              esac
47797              if test "X$found_dir" != "X"; then
47798                break
47799              fi
47800            done
47801          fi
47802          if test "X$found_dir" != "X"; then
47803                        LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$found_dir -l$name"
47804            if test "X$found_so" != "X"; then
47805                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
47806                                LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
47807              else
47808                                                                                haveit=
47809                for x in $ltrpathdirs; do
47810                  if test "X$x" = "X$found_dir"; then
47811                    haveit=yes
47812                    break
47813                  fi
47814                done
47815                if test -z "$haveit"; then
47816                  ltrpathdirs="$ltrpathdirs $found_dir"
47817                fi
47818                                if test "$acl_hardcode_direct" = yes; then
47819                                                      LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
47820                else
47821                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
47822                                                            LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
47823                                                            haveit=
47824                    for x in $rpathdirs; do
47825                      if test "X$x" = "X$found_dir"; then
47826                        haveit=yes
47827                        break
47828                      fi
47829                    done
47830                    if test -z "$haveit"; then
47831                      rpathdirs="$rpathdirs $found_dir"
47832                    fi
47833                  else
47834                                                                                haveit=
47835                    for x in $LDFLAGS $LIBXML2; do
47836
47837  acl_save_prefix="$prefix"
47838  prefix="$acl_final_prefix"
47839  acl_save_exec_prefix="$exec_prefix"
47840  exec_prefix="$acl_final_exec_prefix"
47841  eval x=\"$x\"
47842  exec_prefix="$acl_save_exec_prefix"
47843  prefix="$acl_save_prefix"
47844
47845                      if test "X$x" = "X-L$found_dir"; then
47846                        haveit=yes
47847                        break
47848                      fi
47849                    done
47850                    if test -z "$haveit"; then
47851                      LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir"
47852                    fi
47853                    if test "$acl_hardcode_minus_L" != no; then
47854                                                                                        LIBXML2="${LIBXML2}${LIBXML2:+ }$found_so"
47855                    else
47856                                                                                                                                                                                LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
47857                    fi
47858                  fi
47859                fi
47860              fi
47861            else
47862              if test "X$found_a" != "X"; then
47863                                LIBXML2="${LIBXML2}${LIBXML2:+ }$found_a"
47864              else
47865                                                LIBXML2="${LIBXML2}${LIBXML2:+ }-L$found_dir -l$name"
47866              fi
47867            fi
47868                        additional_includedir=
47869            case "$found_dir" in
47870              */$acl_libdirstem | */$acl_libdirstem/)
47871                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
47872                LIBXML2_PREFIX="$basedir"
47873                additional_includedir="$basedir/include"
47874                ;;
47875            esac
47876            if test "X$additional_includedir" != "X"; then
47877                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
47878                haveit=
47879                if test "X$additional_includedir" = "X/usr/local/include"; then
47880                  if test -n "$GCC"; then
47881                    case $host_os in
47882                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
47883                    esac
47884                  fi
47885                fi
47886                if test -z "$haveit"; then
47887                  for x in $CPPFLAGS $INCXML2; do
47888
47889  acl_save_prefix="$prefix"
47890  prefix="$acl_final_prefix"
47891  acl_save_exec_prefix="$exec_prefix"
47892  exec_prefix="$acl_final_exec_prefix"
47893  eval x=\"$x\"
47894  exec_prefix="$acl_save_exec_prefix"
47895  prefix="$acl_save_prefix"
47896
47897                    if test "X$x" = "X-I$additional_includedir"; then
47898                      haveit=yes
47899                      break
47900                    fi
47901                  done
47902                  if test -z "$haveit"; then
47903                    if test -d "$additional_includedir"; then
47904                                            INCXML2="${INCXML2}${INCXML2:+ }-I$additional_includedir"
47905                    fi
47906                  fi
47907                fi
47908              fi
47909            fi
47910                        if test -n "$found_la"; then
47911                                                        save_libdir="$libdir"
47912              case "$found_la" in
47913                */* | *\\*) . "$found_la" ;;
47914                *) . "./$found_la" ;;
47915              esac
47916              libdir="$save_libdir"
47917                            for dep in $dependency_libs; do
47918                case "$dep" in
47919                  -L*)
47920                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
47921                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
47922                      haveit=
47923                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
47924                        if test -n "$GCC"; then
47925                          case $host_os in
47926                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
47927                          esac
47928                        fi
47929                      fi
47930                      if test -z "$haveit"; then
47931                        haveit=
47932                        for x in $LDFLAGS $LIBXML2; do
47933
47934  acl_save_prefix="$prefix"
47935  prefix="$acl_final_prefix"
47936  acl_save_exec_prefix="$exec_prefix"
47937  exec_prefix="$acl_final_exec_prefix"
47938  eval x=\"$x\"
47939  exec_prefix="$acl_save_exec_prefix"
47940  prefix="$acl_save_prefix"
47941
47942                          if test "X$x" = "X-L$additional_libdir"; then
47943                            haveit=yes
47944                            break
47945                          fi
47946                        done
47947                        if test -z "$haveit"; then
47948                          if test -d "$additional_libdir"; then
47949                                                        LIBXML2="${LIBXML2}${LIBXML2:+ }-L$additional_libdir"
47950                          fi
47951                        fi
47952                        haveit=
47953                        for x in $LDFLAGS $LTLIBXML2; do
47954
47955  acl_save_prefix="$prefix"
47956  prefix="$acl_final_prefix"
47957  acl_save_exec_prefix="$exec_prefix"
47958  exec_prefix="$acl_final_exec_prefix"
47959  eval x=\"$x\"
47960  exec_prefix="$acl_save_exec_prefix"
47961  prefix="$acl_save_prefix"
47962
47963                          if test "X$x" = "X-L$additional_libdir"; then
47964                            haveit=yes
47965                            break
47966                          fi
47967                        done
47968                        if test -z "$haveit"; then
47969                          if test -d "$additional_libdir"; then
47970                                                        LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-L$additional_libdir"
47971                          fi
47972                        fi
47973                      fi
47974                    fi
47975                    ;;
47976                  -R*)
47977                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
47978                    if test "$enable_rpath" != no; then
47979                                                                  haveit=
47980                      for x in $rpathdirs; do
47981                        if test "X$x" = "X$dir"; then
47982                          haveit=yes
47983                          break
47984                        fi
47985                      done
47986                      if test -z "$haveit"; then
47987                        rpathdirs="$rpathdirs $dir"
47988                      fi
47989                                                                  haveit=
47990                      for x in $ltrpathdirs; do
47991                        if test "X$x" = "X$dir"; then
47992                          haveit=yes
47993                          break
47994                        fi
47995                      done
47996                      if test -z "$haveit"; then
47997                        ltrpathdirs="$ltrpathdirs $dir"
47998                      fi
47999                    fi
48000                    ;;
48001                  -l*)
48002                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
48003                    ;;
48004                  *.la)
48005                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
48006                    ;;
48007                  *)
48008                                        LIBXML2="${LIBXML2}${LIBXML2:+ }$dep"
48009                    LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }$dep"
48010                    ;;
48011                esac
48012              done
48013            fi
48014          else
48015                                                            LIBXML2="${LIBXML2}${LIBXML2:+ }-l$name"
48016            LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-l$name"
48017          fi
48018        fi
48019      fi
48020    done
48021  done
48022  if test "X$rpathdirs" != "X"; then
48023    if test -n "$acl_hardcode_libdir_separator"; then
48024                        alldirs=
48025      for found_dir in $rpathdirs; do
48026        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
48027      done
48028            acl_save_libdir="$libdir"
48029      libdir="$alldirs"
48030      eval flag=\"$acl_hardcode_libdir_flag_spec\"
48031      libdir="$acl_save_libdir"
48032      LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
48033    else
48034            for found_dir in $rpathdirs; do
48035        acl_save_libdir="$libdir"
48036        libdir="$found_dir"
48037        eval flag=\"$acl_hardcode_libdir_flag_spec\"
48038        libdir="$acl_save_libdir"
48039        LIBXML2="${LIBXML2}${LIBXML2:+ }$flag"
48040      done
48041    fi
48042  fi
48043  if test "X$ltrpathdirs" != "X"; then
48044            for found_dir in $ltrpathdirs; do
48045      LTLIBXML2="${LTLIBXML2}${LTLIBXML2:+ }-R$found_dir"
48046    done
48047  fi
48048
48049      LIBS="$gl_save_LIBS $LIBXML2 $LIBICONV"
48050      cat >conftest.$ac_ext <<_ACEOF
48051/* confdefs.h.  */
48052_ACEOF
48053cat confdefs.h >>conftest.$ac_ext
48054cat >>conftest.$ac_ext <<_ACEOF
48055/* end confdefs.h.  */
48056#include <libxml/xmlversion.h>
48057int
48058main ()
48059{
48060xmlCheckVersion (0);
48061  ;
48062  return 0;
48063}
48064_ACEOF
48065rm -f conftest.$ac_objext conftest$ac_exeext
48066if { (ac_try="$ac_link"
48067case "(($ac_try" in
48068  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48069  *) ac_try_echo=$ac_try;;
48070esac
48071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48072$as_echo "$ac_try_echo") >&5
48073  (eval "$ac_link") 2>conftest.er1
48074  ac_status=$?
48075  grep -v '^ *+' conftest.er1 >conftest.err
48076  rm -f conftest.er1
48077  cat conftest.err >&5
48078  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48079  (exit $ac_status); } && {
48080	 test -z "$ac_c_werror_flag" ||
48081	 test ! -s conftest.err
48082       } && test -s conftest$ac_exeext && {
48083	 test "$cross_compiling" = yes ||
48084	 $as_test_x conftest$ac_exeext
48085       }; then
48086  gl_cv_libxml=yes
48087         gl_cv_LIBXML="$LIBXML2 $LIBICONV"
48088         gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
48089
48090else
48091  $as_echo "$as_me: failed program was:" >&5
48092sed 's/^/| /' conftest.$ac_ext >&5
48093
48094
48095fi
48096
48097rm -rf conftest.dSYM
48098rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48099      conftest$ac_exeext conftest.$ac_ext
48100      if test "$gl_cv_libxml" != yes; then
48101        gl_save_CPPFLAGS="$CPPFLAGS"
48102        CPPFLAGS="$CPPFLAGS $INCXML2"
48103        cat >conftest.$ac_ext <<_ACEOF
48104/* confdefs.h.  */
48105_ACEOF
48106cat confdefs.h >>conftest.$ac_ext
48107cat >>conftest.$ac_ext <<_ACEOF
48108/* end confdefs.h.  */
48109#include <libxml/xmlversion.h>
48110int
48111main ()
48112{
48113xmlCheckVersion (0);
48114  ;
48115  return 0;
48116}
48117_ACEOF
48118rm -f conftest.$ac_objext conftest$ac_exeext
48119if { (ac_try="$ac_link"
48120case "(($ac_try" in
48121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48122  *) ac_try_echo=$ac_try;;
48123esac
48124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48125$as_echo "$ac_try_echo") >&5
48126  (eval "$ac_link") 2>conftest.er1
48127  ac_status=$?
48128  grep -v '^ *+' conftest.er1 >conftest.err
48129  rm -f conftest.er1
48130  cat conftest.err >&5
48131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48132  (exit $ac_status); } && {
48133	 test -z "$ac_c_werror_flag" ||
48134	 test ! -s conftest.err
48135       } && test -s conftest$ac_exeext && {
48136	 test "$cross_compiling" = yes ||
48137	 $as_test_x conftest$ac_exeext
48138       }; then
48139  gl_cv_libxml=yes
48140           gl_cv_LIBXML="$LIBXML2 $LIBICONV"
48141           gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
48142           gl_cv_INCXML="$INCXML2"
48143
48144else
48145  $as_echo "$as_me: failed program was:" >&5
48146sed 's/^/| /' conftest.$ac_ext >&5
48147
48148
48149fi
48150
48151rm -rf conftest.dSYM
48152rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48153      conftest$ac_exeext conftest.$ac_ext
48154        if test "$gl_cv_libxml" != yes; then
48155                    cat >conftest.$ac_ext <<_ACEOF
48156/* confdefs.h.  */
48157_ACEOF
48158cat confdefs.h >>conftest.$ac_ext
48159cat >>conftest.$ac_ext <<_ACEOF
48160/* end confdefs.h.  */
48161#include <libxml2/libxml/xmlversion.h>
48162int
48163main ()
48164{
48165xmlCheckVersion (0);
48166  ;
48167  return 0;
48168}
48169_ACEOF
48170rm -f conftest.$ac_objext conftest$ac_exeext
48171if { (ac_try="$ac_link"
48172case "(($ac_try" in
48173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48174  *) ac_try_echo=$ac_try;;
48175esac
48176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48177$as_echo "$ac_try_echo") >&5
48178  (eval "$ac_link") 2>conftest.er1
48179  ac_status=$?
48180  grep -v '^ *+' conftest.er1 >conftest.err
48181  rm -f conftest.er1
48182  cat conftest.err >&5
48183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48184  (exit $ac_status); } && {
48185	 test -z "$ac_c_werror_flag" ||
48186	 test ! -s conftest.err
48187       } && test -s conftest$ac_exeext && {
48188	 test "$cross_compiling" = yes ||
48189	 $as_test_x conftest$ac_exeext
48190       }; then
48191    { $as_echo "$as_me:$LINENO: checking absolute name of <libxml2/libxml/xmlversion.h>" >&5
48192$as_echo_n "checking absolute name of <libxml2/libxml/xmlversion.h>... " >&6; }
48193if test "${gl_cv_absolute_libxml2_libxml_xmlversion_h+set}" = set; then
48194  $as_echo_n "(cached) " >&6
48195else
48196
48197  :
48198
48199
48200
48201
48202    if test $ac_cv_header_libxml2_libxml_xmlversion_h = yes; then
48203      cat >conftest.$ac_ext <<_ACEOF
48204/* confdefs.h.  */
48205_ACEOF
48206cat confdefs.h >>conftest.$ac_ext
48207cat >>conftest.$ac_ext <<_ACEOF
48208/* end confdefs.h.  */
48209#include <libxml2/libxml/xmlversion.h>
48210_ACEOF
48211      gl_cv_absolute_libxml2_libxml_xmlversion_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48212sed -n '\#/libxml2/libxml/xmlversion.h#{
48213	s#.*"\(.*/libxml2/libxml/xmlversion.h\)".*#\1#
48214	s#^/[^/]#//&#
48215	p
48216	q
48217}'`
48218    fi
48219
48220fi
48221{ $as_echo "$as_me:$LINENO: result: $gl_cv_absolute_libxml2_libxml_xmlversion_h" >&5
48222$as_echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" >&6; }
48223cat >>confdefs.h <<_ACEOF
48224#define ABSOLUTE_LIBXML2_LIBXML_XMLVERSION_H "$gl_cv_absolute_libxml2_libxml_xmlversion_h"
48225_ACEOF
48226
48227
48228             libxml2_include_dir=`echo "$gl_cv_absolute_libxml2_libxml_xmlversion_h" | sed -e 's,.libxml.xmlversion\.h$,,'`
48229             if test -d "$libxml2_include_dir"; then
48230               gl_cv_libxml=yes
48231               gl_cv_LIBXML="$LIBXML2 $LIBICONV"
48232               gl_cv_LTLIBXML="$LTLIBXML2 $LTLIBICONV"
48233               gl_cv_INCXML="-I$libxml2_include_dir"
48234             fi
48235
48236else
48237  $as_echo "$as_me: failed program was:" >&5
48238sed 's/^/| /' conftest.$ac_ext >&5
48239
48240
48241fi
48242
48243rm -rf conftest.dSYM
48244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48245      conftest$ac_exeext conftest.$ac_ext
48246        fi
48247        CPPFLAGS="$gl_save_CPPFLAGS"
48248      fi
48249      LIBS="$gl_save_LIBS"
48250
48251fi
48252
48253    { $as_echo "$as_me:$LINENO: checking for libxml" >&5
48254$as_echo_n "checking for libxml... " >&6; }
48255    { $as_echo "$as_me:$LINENO: result: $gl_cv_libxml" >&5
48256$as_echo "$gl_cv_libxml" >&6; }
48257    if test $gl_cv_libxml = yes; then
48258      LIBXML="$gl_cv_LIBXML"
48259      LTLIBXML="$gl_cv_LTLIBXML"
48260      INCXML="$gl_cv_INCXML"
48261    else
48262      gl_cv_libxml_use_included=yes
48263    fi
48264  fi
48265
48266
48267
48268  { $as_echo "$as_me:$LINENO: checking whether to use the included libxml" >&5
48269$as_echo_n "checking whether to use the included libxml... " >&6; }
48270  { $as_echo "$as_me:$LINENO: result: $gl_cv_libxml_use_included" >&5
48271$as_echo "$gl_cv_libxml_use_included" >&6; }
48272
48273  if test "$gl_cv_libxml_use_included" = yes; then
48274    LIBXML_H=
48275    LIBXML_H="$LIBXML_H libxml/DOCBparser.h"
48276    LIBXML_H="$LIBXML_H libxml/HTMLparser.h"
48277    LIBXML_H="$LIBXML_H libxml/HTMLtree.h"
48278    LIBXML_H="$LIBXML_H libxml/SAX2.h"
48279    LIBXML_H="$LIBXML_H libxml/SAX.h"
48280    LIBXML_H="$LIBXML_H libxml/c14n.h"
48281    LIBXML_H="$LIBXML_H libxml/catalog.h"
48282    LIBXML_H="$LIBXML_H libxml/chvalid.h"
48283    LIBXML_H="$LIBXML_H libxml/debugXML.h"
48284    LIBXML_H="$LIBXML_H libxml/dict.h"
48285    LIBXML_H="$LIBXML_H libxml/encoding.h"
48286    LIBXML_H="$LIBXML_H libxml/entities.h"
48287    LIBXML_H="$LIBXML_H libxml/globals.h"
48288    LIBXML_H="$LIBXML_H libxml/hash.h"
48289    LIBXML_H="$LIBXML_H libxml/list.h"
48290    LIBXML_H="$LIBXML_H libxml/nanoftp.h"
48291    LIBXML_H="$LIBXML_H libxml/nanohttp.h"
48292    LIBXML_H="$LIBXML_H libxml/parser.h"
48293    LIBXML_H="$LIBXML_H libxml/parserInternals.h"
48294    LIBXML_H="$LIBXML_H libxml/pattern.h"
48295    LIBXML_H="$LIBXML_H libxml/relaxng.h"
48296    LIBXML_H="$LIBXML_H libxml/schemasInternals.h"
48297    LIBXML_H="$LIBXML_H libxml/schematron.h"
48298    LIBXML_H="$LIBXML_H libxml/threads.h"
48299    LIBXML_H="$LIBXML_H libxml/tree.h"
48300    LIBXML_H="$LIBXML_H libxml/uri.h"
48301    LIBXML_H="$LIBXML_H libxml/valid.h"
48302    LIBXML_H="$LIBXML_H libxml/xinclude.h"
48303    LIBXML_H="$LIBXML_H libxml/xlink.h"
48304    LIBXML_H="$LIBXML_H libxml/xmlIO.h"
48305    LIBXML_H="$LIBXML_H libxml/xmlautomata.h"
48306    LIBXML_H="$LIBXML_H libxml/xmlerror.h"
48307    LIBXML_H="$LIBXML_H libxml/xmlexports.h"
48308    LIBXML_H="$LIBXML_H libxml/xmlmemory.h"
48309    LIBXML_H="$LIBXML_H libxml/xmlmodule.h"
48310    LIBXML_H="$LIBXML_H libxml/xmlreader.h"
48311    LIBXML_H="$LIBXML_H libxml/xmlregexp.h"
48312    LIBXML_H="$LIBXML_H libxml/xmlsave.h"
48313    LIBXML_H="$LIBXML_H libxml/xmlschemas.h"
48314    LIBXML_H="$LIBXML_H libxml/xmlschemastypes.h"
48315    LIBXML_H="$LIBXML_H libxml/xmlstring.h"
48316    LIBXML_H="$LIBXML_H libxml/xmlunicode.h"
48317    LIBXML_H="$LIBXML_H libxml/xmlversion.h"
48318    LIBXML_H="$LIBXML_H libxml/xmlwriter.h"
48319    LIBXML_H="$LIBXML_H libxml/xpath.h"
48320    LIBXML_H="$LIBXML_H libxml/xpathInternals.h"
48321    LIBXML_H="$LIBXML_H libxml/xpointer.h"
48322
48323
48324
48325
48326
48327
48328
48329
48330
48331
48332
48333
48334
48335
48336
48337
48338
48339
48340
48341
48342
48343
48344
48345for ac_header in arpa/inet.h ctype.h dlfcn.h dl.h errno.h \
48346                      fcntl.h float.h limits.h malloc.h math.h netdb.h \
48347                      netinet/in.h signal.h stdlib.h string.h \
48348                      strings.h sys/select.h sys/socket.h sys/stat.h \
48349                      sys/time.h sys/types.h time.h unistd.h
48350do
48351as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48353  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48354$as_echo_n "checking for $ac_header... " >&6; }
48355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48356  $as_echo_n "(cached) " >&6
48357fi
48358ac_res=`eval 'as_val=${'$as_ac_Header'}
48359		 $as_echo "$as_val"'`
48360	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48361$as_echo "$ac_res" >&6; }
48362else
48363  # Is the header compilable?
48364{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
48365$as_echo_n "checking $ac_header usability... " >&6; }
48366cat >conftest.$ac_ext <<_ACEOF
48367/* confdefs.h.  */
48368_ACEOF
48369cat confdefs.h >>conftest.$ac_ext
48370cat >>conftest.$ac_ext <<_ACEOF
48371/* end confdefs.h.  */
48372$ac_includes_default
48373#include <$ac_header>
48374_ACEOF
48375rm -f conftest.$ac_objext
48376if { (ac_try="$ac_compile"
48377case "(($ac_try" in
48378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48379  *) ac_try_echo=$ac_try;;
48380esac
48381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48382$as_echo "$ac_try_echo") >&5
48383  (eval "$ac_compile") 2>conftest.er1
48384  ac_status=$?
48385  grep -v '^ *+' conftest.er1 >conftest.err
48386  rm -f conftest.er1
48387  cat conftest.err >&5
48388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48389  (exit $ac_status); } && {
48390	 test -z "$ac_c_werror_flag" ||
48391	 test ! -s conftest.err
48392       } && test -s conftest.$ac_objext; then
48393  ac_header_compiler=yes
48394else
48395  $as_echo "$as_me: failed program was:" >&5
48396sed 's/^/| /' conftest.$ac_ext >&5
48397
48398	ac_header_compiler=no
48399fi
48400
48401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48402{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
48403$as_echo "$ac_header_compiler" >&6; }
48404
48405# Is the header present?
48406{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
48407$as_echo_n "checking $ac_header presence... " >&6; }
48408cat >conftest.$ac_ext <<_ACEOF
48409/* confdefs.h.  */
48410_ACEOF
48411cat confdefs.h >>conftest.$ac_ext
48412cat >>conftest.$ac_ext <<_ACEOF
48413/* end confdefs.h.  */
48414#include <$ac_header>
48415_ACEOF
48416if { (ac_try="$ac_cpp conftest.$ac_ext"
48417case "(($ac_try" in
48418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48419  *) ac_try_echo=$ac_try;;
48420esac
48421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48422$as_echo "$ac_try_echo") >&5
48423  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
48424  ac_status=$?
48425  grep -v '^ *+' conftest.er1 >conftest.err
48426  rm -f conftest.er1
48427  cat conftest.err >&5
48428  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48429  (exit $ac_status); } >/dev/null && {
48430	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
48431	 test ! -s conftest.err
48432       }; then
48433  ac_header_preproc=yes
48434else
48435  $as_echo "$as_me: failed program was:" >&5
48436sed 's/^/| /' conftest.$ac_ext >&5
48437
48438  ac_header_preproc=no
48439fi
48440
48441rm -f conftest.err conftest.$ac_ext
48442{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
48443$as_echo "$ac_header_preproc" >&6; }
48444
48445# So?  What about this header?
48446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
48447  yes:no: )
48448    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
48449$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
48450    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
48451$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
48452    ac_header_preproc=yes
48453    ;;
48454  no:yes:* )
48455    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
48456$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
48457    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
48458$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
48459    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
48460$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
48461    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
48462$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
48463    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
48464$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
48465    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
48466$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
48467
48468    ;;
48469esac
48470{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48471$as_echo_n "checking for $ac_header... " >&6; }
48472if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48473  $as_echo_n "(cached) " >&6
48474else
48475  eval "$as_ac_Header=\$ac_header_preproc"
48476fi
48477ac_res=`eval 'as_val=${'$as_ac_Header'}
48478		 $as_echo "$as_val"'`
48479	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48480$as_echo "$ac_res" >&6; }
48481
48482fi
48483as_val=`eval 'as_val=${'$as_ac_Header'}
48484		 $as_echo "$as_val"'`
48485   if test "x$as_val" = x""yes; then
48486  cat >>confdefs.h <<_ACEOF
48487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48488_ACEOF
48489
48490fi
48491
48492done
48493
48494
48495for ac_header in arpa/nameser.h
48496do
48497as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48498{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48499$as_echo_n "checking for $ac_header... " >&6; }
48500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48501  $as_echo_n "(cached) " >&6
48502else
48503  cat >conftest.$ac_ext <<_ACEOF
48504/* confdefs.h.  */
48505_ACEOF
48506cat confdefs.h >>conftest.$ac_ext
48507cat >>conftest.$ac_ext <<_ACEOF
48508/* end confdefs.h.  */
48509
48510      #if HAVE_SYS_TYPES_H
48511      # include <sys/types.h>
48512      #endif
48513
48514
48515#include <$ac_header>
48516_ACEOF
48517rm -f conftest.$ac_objext
48518if { (ac_try="$ac_compile"
48519case "(($ac_try" in
48520  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48521  *) ac_try_echo=$ac_try;;
48522esac
48523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48524$as_echo "$ac_try_echo") >&5
48525  (eval "$ac_compile") 2>conftest.er1
48526  ac_status=$?
48527  grep -v '^ *+' conftest.er1 >conftest.err
48528  rm -f conftest.er1
48529  cat conftest.err >&5
48530  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48531  (exit $ac_status); } && {
48532	 test -z "$ac_c_werror_flag" ||
48533	 test ! -s conftest.err
48534       } && test -s conftest.$ac_objext; then
48535  eval "$as_ac_Header=yes"
48536else
48537  $as_echo "$as_me: failed program was:" >&5
48538sed 's/^/| /' conftest.$ac_ext >&5
48539
48540	eval "$as_ac_Header=no"
48541fi
48542
48543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48544fi
48545ac_res=`eval 'as_val=${'$as_ac_Header'}
48546		 $as_echo "$as_val"'`
48547	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48548$as_echo "$ac_res" >&6; }
48549as_val=`eval 'as_val=${'$as_ac_Header'}
48550		 $as_echo "$as_val"'`
48551   if test "x$as_val" = x""yes; then
48552  cat >>confdefs.h <<_ACEOF
48553#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48554_ACEOF
48555
48556fi
48557
48558done
48559
48560
48561for ac_header in resolv.h
48562do
48563as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
48564{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
48565$as_echo_n "checking for $ac_header... " >&6; }
48566if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
48567  $as_echo_n "(cached) " >&6
48568else
48569  cat >conftest.$ac_ext <<_ACEOF
48570/* confdefs.h.  */
48571_ACEOF
48572cat confdefs.h >>conftest.$ac_ext
48573cat >>conftest.$ac_ext <<_ACEOF
48574/* end confdefs.h.  */
48575
48576      #if HAVE_SYS_TYPES_H
48577      # include <sys/types.h>
48578      #endif
48579      #if HAVE_NETINET_IN_H
48580      # include <netinet/in.h>
48581      #endif
48582      #if HAVE_ARPA_NAMESER_H
48583      # include <arpa/nameser.h>
48584      #endif
48585
48586
48587#include <$ac_header>
48588_ACEOF
48589rm -f conftest.$ac_objext
48590if { (ac_try="$ac_compile"
48591case "(($ac_try" in
48592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48593  *) ac_try_echo=$ac_try;;
48594esac
48595eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48596$as_echo "$ac_try_echo") >&5
48597  (eval "$ac_compile") 2>conftest.er1
48598  ac_status=$?
48599  grep -v '^ *+' conftest.er1 >conftest.err
48600  rm -f conftest.er1
48601  cat conftest.err >&5
48602  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48603  (exit $ac_status); } && {
48604	 test -z "$ac_c_werror_flag" ||
48605	 test ! -s conftest.err
48606       } && test -s conftest.$ac_objext; then
48607  eval "$as_ac_Header=yes"
48608else
48609  $as_echo "$as_me: failed program was:" >&5
48610sed 's/^/| /' conftest.$ac_ext >&5
48611
48612	eval "$as_ac_Header=no"
48613fi
48614
48615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48616fi
48617ac_res=`eval 'as_val=${'$as_ac_Header'}
48618		 $as_echo "$as_val"'`
48619	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48620$as_echo "$ac_res" >&6; }
48621as_val=`eval 'as_val=${'$as_ac_Header'}
48622		 $as_echo "$as_val"'`
48623   if test "x$as_val" = x""yes; then
48624  cat >>confdefs.h <<_ACEOF
48625#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48626_ACEOF
48627
48628fi
48629
48630done
48631
48632
48633
48634
48635
48636
48637
48638
48639for ac_func in dlopen getaddrinfo localtime shlload stat _stat strftime
48640do
48641as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48642{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48643$as_echo_n "checking for $ac_func... " >&6; }
48644if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48645  $as_echo_n "(cached) " >&6
48646else
48647  cat >conftest.$ac_ext <<_ACEOF
48648/* confdefs.h.  */
48649_ACEOF
48650cat confdefs.h >>conftest.$ac_ext
48651cat >>conftest.$ac_ext <<_ACEOF
48652/* end confdefs.h.  */
48653/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48654   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48655#define $ac_func innocuous_$ac_func
48656
48657/* System header to define __stub macros and hopefully few prototypes,
48658    which can conflict with char $ac_func (); below.
48659    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48660    <limits.h> exists even on freestanding compilers.  */
48661
48662#ifdef __STDC__
48663# include <limits.h>
48664#else
48665# include <assert.h>
48666#endif
48667
48668#undef $ac_func
48669
48670/* Override any GCC internal prototype to avoid an error.
48671   Use char because int might match the return type of a GCC
48672   builtin and then its argument prototype would still apply.  */
48673#ifdef __cplusplus
48674extern "C"
48675#endif
48676char $ac_func ();
48677/* The GNU C library defines this for functions which it implements
48678    to always fail with ENOSYS.  Some functions are actually named
48679    something starting with __ and the normal name is an alias.  */
48680#if defined __stub_$ac_func || defined __stub___$ac_func
48681choke me
48682#endif
48683
48684int
48685main ()
48686{
48687return $ac_func ();
48688  ;
48689  return 0;
48690}
48691_ACEOF
48692rm -f conftest.$ac_objext conftest$ac_exeext
48693if { (ac_try="$ac_link"
48694case "(($ac_try" in
48695  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48696  *) ac_try_echo=$ac_try;;
48697esac
48698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48699$as_echo "$ac_try_echo") >&5
48700  (eval "$ac_link") 2>conftest.er1
48701  ac_status=$?
48702  grep -v '^ *+' conftest.er1 >conftest.err
48703  rm -f conftest.er1
48704  cat conftest.err >&5
48705  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48706  (exit $ac_status); } && {
48707	 test -z "$ac_c_werror_flag" ||
48708	 test ! -s conftest.err
48709       } && test -s conftest$ac_exeext && {
48710	 test "$cross_compiling" = yes ||
48711	 $as_test_x conftest$ac_exeext
48712       }; then
48713  eval "$as_ac_var=yes"
48714else
48715  $as_echo "$as_me: failed program was:" >&5
48716sed 's/^/| /' conftest.$ac_ext >&5
48717
48718	eval "$as_ac_var=no"
48719fi
48720
48721rm -rf conftest.dSYM
48722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48723      conftest$ac_exeext conftest.$ac_ext
48724fi
48725ac_res=`eval 'as_val=${'$as_ac_var'}
48726		 $as_echo "$as_val"'`
48727	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48728$as_echo "$ac_res" >&6; }
48729as_val=`eval 'as_val=${'$as_ac_var'}
48730		 $as_echo "$as_val"'`
48731   if test "x$as_val" = x""yes; then
48732  cat >>confdefs.h <<_ACEOF
48733#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48734_ACEOF
48735
48736fi
48737done
48738
48739
48740cat >>confdefs.h <<\_ACEOF
48741#define VA_COPY va_copy
48742_ACEOF
48743
48744          else
48745    LIBXML_H=
48746  fi
48747
48748
48749   if test "$gl_cv_libxml_use_included" = yes; then
48750  INCLUDED_LIBXML_TRUE=
48751  INCLUDED_LIBXML_FALSE='#'
48752else
48753  INCLUDED_LIBXML_TRUE='#'
48754  INCLUDED_LIBXML_FALSE=
48755fi
48756
48757
48758
48759
48760
48761
48762
48763
48764
48765
48766
48767  :
48768
48769
48770
48771
48772
48773
48774
48775
48776
48777
48778  { $as_echo "$as_me:$LINENO: checking whether locale.h conforms to POSIX" >&5
48779$as_echo_n "checking whether locale.h conforms to POSIX... " >&6; }
48780if test "${gl_cv_header_working_locale_h+set}" = set; then
48781  $as_echo_n "(cached) " >&6
48782else
48783  cat >conftest.$ac_ext <<_ACEOF
48784/* confdefs.h.  */
48785_ACEOF
48786cat confdefs.h >>conftest.$ac_ext
48787cat >>conftest.$ac_ext <<_ACEOF
48788/* end confdefs.h.  */
48789#include <locale.h>
48790int x = LC_MESSAGES;
48791int
48792main ()
48793{
48794
48795  ;
48796  return 0;
48797}
48798_ACEOF
48799rm -f conftest.$ac_objext
48800if { (ac_try="$ac_compile"
48801case "(($ac_try" in
48802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48803  *) ac_try_echo=$ac_try;;
48804esac
48805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48806$as_echo "$ac_try_echo") >&5
48807  (eval "$ac_compile") 2>conftest.er1
48808  ac_status=$?
48809  grep -v '^ *+' conftest.er1 >conftest.err
48810  rm -f conftest.er1
48811  cat conftest.err >&5
48812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813  (exit $ac_status); } && {
48814	 test -z "$ac_c_werror_flag" ||
48815	 test ! -s conftest.err
48816       } && test -s conftest.$ac_objext; then
48817  gl_cv_header_working_locale_h=yes
48818else
48819  $as_echo "$as_me: failed program was:" >&5
48820sed 's/^/| /' conftest.$ac_ext >&5
48821
48822	gl_cv_header_working_locale_h=no
48823fi
48824
48825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48826fi
48827{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_locale_h" >&5
48828$as_echo "$gl_cv_header_working_locale_h" >&6; }
48829  if test $gl_cv_header_working_locale_h = yes; then
48830    LOCALE_H=
48831  else
48832
48833
48834
48835  :
48836
48837
48838
48839
48840
48841
48842
48843     if test $gl_cv_have_include_next = yes; then
48844       gl_cv_next_locale_h='<'locale.h'>'
48845     else
48846       { $as_echo "$as_me:$LINENO: checking absolute name of <locale.h>" >&5
48847$as_echo_n "checking absolute name of <locale.h>... " >&6; }
48848if test "${gl_cv_next_locale_h+set}" = set; then
48849  $as_echo_n "(cached) " >&6
48850else
48851
48852	  if test $ac_cv_header_locale_h = yes; then
48853	    cat >conftest.$ac_ext <<_ACEOF
48854/* confdefs.h.  */
48855_ACEOF
48856cat confdefs.h >>conftest.$ac_ext
48857cat >>conftest.$ac_ext <<_ACEOF
48858/* end confdefs.h.  */
48859#include <locale.h>
48860
48861_ACEOF
48862	    	    	    	    gl_cv_next_locale_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48863	       sed -n '\#/locale.h#{
48864		 s#.*"\(.*/locale.h\)".*#\1#
48865		 s#^/[^/]#//&#
48866		 p
48867		 q
48868	       }'`'"'
48869	  else
48870	    gl_cv_next_locale_h='<'locale.h'>'
48871	  fi
48872
48873fi
48874{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_locale_h" >&5
48875$as_echo "$gl_cv_next_locale_h" >&6; }
48876     fi
48877     NEXT_LOCALE_H=$gl_cv_next_locale_h
48878
48879
48880
48881    LOCALE_H=locale.h
48882  fi
48883
48884
48885
48886
48887
48888
48889for ac_func in setlocale
48890do
48891as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48892{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48893$as_echo_n "checking for $ac_func... " >&6; }
48894if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48895  $as_echo_n "(cached) " >&6
48896else
48897  cat >conftest.$ac_ext <<_ACEOF
48898/* confdefs.h.  */
48899_ACEOF
48900cat confdefs.h >>conftest.$ac_ext
48901cat >>conftest.$ac_ext <<_ACEOF
48902/* end confdefs.h.  */
48903/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48904   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48905#define $ac_func innocuous_$ac_func
48906
48907/* System header to define __stub macros and hopefully few prototypes,
48908    which can conflict with char $ac_func (); below.
48909    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48910    <limits.h> exists even on freestanding compilers.  */
48911
48912#ifdef __STDC__
48913# include <limits.h>
48914#else
48915# include <assert.h>
48916#endif
48917
48918#undef $ac_func
48919
48920/* Override any GCC internal prototype to avoid an error.
48921   Use char because int might match the return type of a GCC
48922   builtin and then its argument prototype would still apply.  */
48923#ifdef __cplusplus
48924extern "C"
48925#endif
48926char $ac_func ();
48927/* The GNU C library defines this for functions which it implements
48928    to always fail with ENOSYS.  Some functions are actually named
48929    something starting with __ and the normal name is an alias.  */
48930#if defined __stub_$ac_func || defined __stub___$ac_func
48931choke me
48932#endif
48933
48934int
48935main ()
48936{
48937return $ac_func ();
48938  ;
48939  return 0;
48940}
48941_ACEOF
48942rm -f conftest.$ac_objext conftest$ac_exeext
48943if { (ac_try="$ac_link"
48944case "(($ac_try" in
48945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48946  *) ac_try_echo=$ac_try;;
48947esac
48948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48949$as_echo "$ac_try_echo") >&5
48950  (eval "$ac_link") 2>conftest.er1
48951  ac_status=$?
48952  grep -v '^ *+' conftest.er1 >conftest.err
48953  rm -f conftest.er1
48954  cat conftest.err >&5
48955  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48956  (exit $ac_status); } && {
48957	 test -z "$ac_c_werror_flag" ||
48958	 test ! -s conftest.err
48959       } && test -s conftest$ac_exeext && {
48960	 test "$cross_compiling" = yes ||
48961	 $as_test_x conftest$ac_exeext
48962       }; then
48963  eval "$as_ac_var=yes"
48964else
48965  $as_echo "$as_me: failed program was:" >&5
48966sed 's/^/| /' conftest.$ac_ext >&5
48967
48968	eval "$as_ac_var=no"
48969fi
48970
48971rm -rf conftest.dSYM
48972rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48973      conftest$ac_exeext conftest.$ac_ext
48974fi
48975ac_res=`eval 'as_val=${'$as_ac_var'}
48976		 $as_echo "$as_val"'`
48977	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48978$as_echo "$ac_res" >&6; }
48979as_val=`eval 'as_val=${'$as_ac_var'}
48980		 $as_echo "$as_val"'`
48981   if test "x$as_val" = x""yes; then
48982  cat >>confdefs.h <<_ACEOF
48983#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48984_ACEOF
48985
48986fi
48987done
48988
48989
48990
48991
48992
48993
48994
48995
48996
48997      LIBSCHED=
48998  if test $gl_threads_api = posix; then
48999        { $as_echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
49000$as_echo_n "checking for sched_yield in -lrt... " >&6; }
49001if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
49002  $as_echo_n "(cached) " >&6
49003else
49004  ac_check_lib_save_LIBS=$LIBS
49005LIBS="-lrt  $LIBS"
49006cat >conftest.$ac_ext <<_ACEOF
49007/* confdefs.h.  */
49008_ACEOF
49009cat confdefs.h >>conftest.$ac_ext
49010cat >>conftest.$ac_ext <<_ACEOF
49011/* end confdefs.h.  */
49012
49013/* Override any GCC internal prototype to avoid an error.
49014   Use char because int might match the return type of a GCC
49015   builtin and then its argument prototype would still apply.  */
49016#ifdef __cplusplus
49017extern "C"
49018#endif
49019char sched_yield ();
49020int
49021main ()
49022{
49023return sched_yield ();
49024  ;
49025  return 0;
49026}
49027_ACEOF
49028rm -f conftest.$ac_objext conftest$ac_exeext
49029if { (ac_try="$ac_link"
49030case "(($ac_try" in
49031  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49032  *) ac_try_echo=$ac_try;;
49033esac
49034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49035$as_echo "$ac_try_echo") >&5
49036  (eval "$ac_link") 2>conftest.er1
49037  ac_status=$?
49038  grep -v '^ *+' conftest.er1 >conftest.err
49039  rm -f conftest.er1
49040  cat conftest.err >&5
49041  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49042  (exit $ac_status); } && {
49043	 test -z "$ac_c_werror_flag" ||
49044	 test ! -s conftest.err
49045       } && test -s conftest$ac_exeext && {
49046	 test "$cross_compiling" = yes ||
49047	 $as_test_x conftest$ac_exeext
49048       }; then
49049  ac_cv_lib_rt_sched_yield=yes
49050else
49051  $as_echo "$as_me: failed program was:" >&5
49052sed 's/^/| /' conftest.$ac_ext >&5
49053
49054	ac_cv_lib_rt_sched_yield=no
49055fi
49056
49057rm -rf conftest.dSYM
49058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49059      conftest$ac_exeext conftest.$ac_ext
49060LIBS=$ac_check_lib_save_LIBS
49061fi
49062{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
49063$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
49064if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then
49065  LIBSCHED=-lrt
49066else
49067         { $as_echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
49068$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
49069if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
49070  $as_echo_n "(cached) " >&6
49071else
49072  ac_check_lib_save_LIBS=$LIBS
49073LIBS="-lposix4  $LIBS"
49074cat >conftest.$ac_ext <<_ACEOF
49075/* confdefs.h.  */
49076_ACEOF
49077cat confdefs.h >>conftest.$ac_ext
49078cat >>conftest.$ac_ext <<_ACEOF
49079/* end confdefs.h.  */
49080
49081/* Override any GCC internal prototype to avoid an error.
49082   Use char because int might match the return type of a GCC
49083   builtin and then its argument prototype would still apply.  */
49084#ifdef __cplusplus
49085extern "C"
49086#endif
49087char sched_yield ();
49088int
49089main ()
49090{
49091return sched_yield ();
49092  ;
49093  return 0;
49094}
49095_ACEOF
49096rm -f conftest.$ac_objext conftest$ac_exeext
49097if { (ac_try="$ac_link"
49098case "(($ac_try" in
49099  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49100  *) ac_try_echo=$ac_try;;
49101esac
49102eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49103$as_echo "$ac_try_echo") >&5
49104  (eval "$ac_link") 2>conftest.er1
49105  ac_status=$?
49106  grep -v '^ *+' conftest.er1 >conftest.err
49107  rm -f conftest.er1
49108  cat conftest.err >&5
49109  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49110  (exit $ac_status); } && {
49111	 test -z "$ac_c_werror_flag" ||
49112	 test ! -s conftest.err
49113       } && test -s conftest$ac_exeext && {
49114	 test "$cross_compiling" = yes ||
49115	 $as_test_x conftest$ac_exeext
49116       }; then
49117  ac_cv_lib_posix4_sched_yield=yes
49118else
49119  $as_echo "$as_me: failed program was:" >&5
49120sed 's/^/| /' conftest.$ac_ext >&5
49121
49122	ac_cv_lib_posix4_sched_yield=no
49123fi
49124
49125rm -rf conftest.dSYM
49126rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49127      conftest$ac_exeext conftest.$ac_ext
49128LIBS=$ac_check_lib_save_LIBS
49129fi
49130{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
49131$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
49132if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then
49133  LIBSCHED=-lposix4
49134fi
49135
49136fi
49137
49138  fi
49139
49140
49141
49142  if test $gl_cv_func_malloc_posix = yes; then
49143    HAVE_MALLOC_POSIX=1
49144
49145cat >>confdefs.h <<\_ACEOF
49146#define HAVE_MALLOC_POSIX 1
49147_ACEOF
49148
49149  else
49150
49151
49152
49153
49154
49155
49156
49157  gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
49158
49159    HAVE_MALLOC_POSIX=0
49160  fi
49161
49162
49163
49164
49165  GNULIB_MALLOC_POSIX=1
49166
49167
49168
49169
49170
49171
49172
49173
49174
49175
49176
49177  :
49178
49179
49180
49181
49182  GNULIB_MBSLEN=1
49183
49184
49185
49186
49187  :
49188
49189
49190
49191
49192  GNULIB_MBSSTR=1
49193
49194
49195
49196  { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
49197$as_echo_n "checking for a french Unicode locale... " >&6; }
49198if test "${gt_cv_locale_fr_utf8+set}" = set; then
49199  $as_echo_n "(cached) " >&6
49200else
49201
49202    cat >conftest.$ac_ext <<_ACEOF
49203/* confdefs.h.  */
49204_ACEOF
49205cat confdefs.h >>conftest.$ac_ext
49206cat >>conftest.$ac_ext <<_ACEOF
49207/* end confdefs.h.  */
49208
49209#include <locale.h>
49210#include <time.h>
49211#if HAVE_LANGINFO_CODESET
49212# include <langinfo.h>
49213#endif
49214#include <stdlib.h>
49215#include <string.h>
49216struct tm t;
49217char buf[16];
49218int main () {
49219  /* On BeOS, locales are not implemented in libc.  Rather, libintl
49220     imitates locale dependent behaviour by looking at the environment
49221     variables, and all locales use the UTF-8 encoding.  */
49222#if !defined(__BEOS__)
49223  /* Check whether the given locale name is recognized by the system.  */
49224  if (setlocale (LC_ALL, "") == NULL) return 1;
49225  /* Check whether nl_langinfo(CODESET) is nonempty.
49226     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49227     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
49228# if HAVE_LANGINFO_CODESET
49229  if (nl_langinfo (CODESET) [0] == '\0') return 1;
49230# endif
49231# ifdef __CYGWIN__
49232  /* On Cygwin, avoid locale names without encoding suffix, because the
49233     locale_charset() function relies on the encoding suffix.  Note that
49234     LC_ALL is set on the command line.  */
49235  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49236# endif
49237  /* Check whether in the abbreviation of the second month, the second
49238     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
49239     two bytes long, with UTF-8 encoding.  */
49240  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49241  if (strftime (buf, sizeof (buf), "%b", &t) < 4
49242      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
49243    return 1;
49244#endif
49245  /* Check whether the decimal separator is a comma.
49246     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
49247     are nl_langinfo(RADIXCHAR) are both ".".  */
49248  if (localeconv () ->decimal_point[0] != ',') return 1;
49249  return 0;
49250}
49251
49252_ACEOF
49253    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49254  (eval $ac_link) 2>&5
49255  ac_status=$?
49256  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49257  (exit $ac_status); } && test -s conftest$ac_exeext; then
49258      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49259      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
49260      # configure script would override the LC_ALL setting. Likewise for
49261      # LC_CTYPE, which is also set at the beginning of the configure script.
49262      # Test for the usual locale name.
49263      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49264        gt_cv_locale_fr_utf8=fr_FR
49265      else
49266        # Test for the locale name with explicit encoding suffix.
49267        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49268          gt_cv_locale_fr_utf8=fr_FR.UTF-8
49269        else
49270          # Test for the Solaris 7 locale name.
49271          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49272            gt_cv_locale_fr_utf8=fr.UTF-8
49273          else
49274            # None found.
49275            gt_cv_locale_fr_utf8=none
49276          fi
49277        fi
49278      fi
49279    fi
49280    rm -fr conftest*
49281
49282fi
49283{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
49284$as_echo "$gt_cv_locale_fr_utf8" >&6; }
49285  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
49286
49287
49288
49289
49290
49291  { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
49292$as_echo_n "checking for a transitional chinese locale... " >&6; }
49293if test "${gt_cv_locale_zh_CN+set}" = set; then
49294  $as_echo_n "(cached) " >&6
49295else
49296
49297    macosx=
49298    case "$host_os" in
49299      darwin[56]*) ;;
49300      darwin*) macosx=yes;;
49301    esac
49302    if test -n "$macosx"; then
49303      # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8
49304      # encodings, but the kernel does not support them. The documentation
49305      # says:
49306      #   "... all code that calls BSD system routines should ensure
49307      #    that the const *char parameters of these routines are in UTF-8
49308      #    encoding. All BSD system functions expect their string
49309      #    parameters to be in UTF-8 encoding and nothing else."
49310      # See the comments in config.charset. Therefore we bypass the test.
49311      gt_cv_locale_zh_CN=none
49312    else
49313      cat >conftest.$ac_ext <<_ACEOF
49314/* confdefs.h.  */
49315_ACEOF
49316cat confdefs.h >>conftest.$ac_ext
49317cat >>conftest.$ac_ext <<_ACEOF
49318/* end confdefs.h.  */
49319
49320#include <locale.h>
49321#include <stdlib.h>
49322#include <time.h>
49323#if HAVE_LANGINFO_CODESET
49324# include <langinfo.h>
49325#endif
49326#include <stdlib.h>
49327#include <string.h>
49328struct tm t;
49329char buf[16];
49330int main ()
49331{
49332  const char *p;
49333  /* Check whether the given locale name is recognized by the system.  */
49334  if (setlocale (LC_ALL, "") == NULL) return 1;
49335  /* Check whether nl_langinfo(CODESET) is nonempty.
49336     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
49337     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
49338#if HAVE_LANGINFO_CODESET
49339  if (nl_langinfo (CODESET) [0] == '\0') return 1;
49340#endif
49341#ifdef __CYGWIN__
49342  /* On Cygwin, avoid locale names without encoding suffix, because the
49343     locale_charset() function relies on the encoding suffix.  Note that
49344     LC_ALL is set on the command line.  */
49345  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
49346#endif
49347  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
49348     This excludes the UTF-8 encoding.  */
49349  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
49350  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
49351  for (p = buf; *p != '\0'; p++)
49352    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
49353      return 1;
49354  /* Check whether a typical GB18030 multibyte sequence is recognized as a
49355     single wide character.  This excludes the GB2312 and GBK encodings.  */
49356  if (mblen ("\203\062\332\066", 5) != 4)
49357    return 1;
49358  return 0;
49359}
49360
49361_ACEOF
49362      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49363  (eval $ac_link) 2>&5
49364  ac_status=$?
49365  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49366  (exit $ac_status); } && test -s conftest$ac_exeext; then
49367        # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
49368        # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
49369        # configure script would override the LC_ALL setting. Likewise for
49370        # LC_CTYPE, which is also set at the beginning of the configure script.
49371        # Test for the locale name without encoding suffix.
49372        if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49373          gt_cv_locale_zh_CN=zh_CN
49374        else
49375          # Test for the locale name with explicit encoding suffix.
49376          if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
49377            gt_cv_locale_zh_CN=zh_CN.GB18030
49378          else
49379            # None found.
49380            gt_cv_locale_zh_CN=none
49381          fi
49382        fi
49383      else
49384        # If there was a link error, due to mblen(), the system is so old that
49385        # it certainly doesn't have a chinese locale.
49386        gt_cv_locale_zh_CN=none
49387      fi
49388      rm -fr conftest*
49389    fi
49390
49391fi
49392{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
49393$as_echo "$gt_cv_locale_zh_CN" >&6; }
49394  LOCALE_ZH_CN=$gt_cv_locale_zh_CN
49395
49396
49397
49398
49399  :
49400
49401
49402
49403
49404
49405
49406  :
49407
49408
49409
49410
49411
49412
49413
49414
49415
49416    { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
49417$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
49418if test "${gl_cv_func_mbrtowc+set}" = set; then
49419  $as_echo_n "(cached) " >&6
49420else
49421  cat >conftest.$ac_ext <<_ACEOF
49422/* confdefs.h.  */
49423_ACEOF
49424cat confdefs.h >>conftest.$ac_ext
49425cat >>conftest.$ac_ext <<_ACEOF
49426/* end confdefs.h.  */
49427#include <wchar.h>
49428int
49429main ()
49430{
49431wchar_t wc;
49432              char const s[] = "";
49433              size_t n = 1;
49434              mbstate_t state;
49435              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
49436  ;
49437  return 0;
49438}
49439_ACEOF
49440rm -f conftest.$ac_objext conftest$ac_exeext
49441if { (ac_try="$ac_link"
49442case "(($ac_try" in
49443  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49444  *) ac_try_echo=$ac_try;;
49445esac
49446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49447$as_echo "$ac_try_echo") >&5
49448  (eval "$ac_link") 2>conftest.er1
49449  ac_status=$?
49450  grep -v '^ *+' conftest.er1 >conftest.err
49451  rm -f conftest.er1
49452  cat conftest.err >&5
49453  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49454  (exit $ac_status); } && {
49455	 test -z "$ac_c_werror_flag" ||
49456	 test ! -s conftest.err
49457       } && test -s conftest$ac_exeext && {
49458	 test "$cross_compiling" = yes ||
49459	 $as_test_x conftest$ac_exeext
49460       }; then
49461  gl_cv_func_mbrtowc=yes
49462else
49463  $as_echo "$as_me: failed program was:" >&5
49464sed 's/^/| /' conftest.$ac_ext >&5
49465
49466	gl_cv_func_mbrtowc=no
49467fi
49468
49469rm -rf conftest.dSYM
49470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49471      conftest$ac_exeext conftest.$ac_ext
49472fi
49473{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
49474$as_echo "$gl_cv_func_mbrtowc" >&6; }
49475  if test $gl_cv_func_mbrtowc = yes; then
49476
49477cat >>confdefs.h <<\_ACEOF
49478#define HAVE_MBRTOWC 1
49479_ACEOF
49480
49481  fi
49482
49483
49484      { $as_echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
49485$as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
49486if test "${ac_cv_have_decl_mbswidth+set}" = set; then
49487  $as_echo_n "(cached) " >&6
49488else
49489  cat >conftest.$ac_ext <<_ACEOF
49490/* confdefs.h.  */
49491_ACEOF
49492cat confdefs.h >>conftest.$ac_ext
49493cat >>conftest.$ac_ext <<_ACEOF
49494/* end confdefs.h.  */
49495
49496/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
49497   <wchar.h>.
49498   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
49499   before <wchar.h>.  */
49500#include <stddef.h>
49501#include <stdio.h>
49502#include <time.h>
49503#include <wchar.h>
49504
49505int
49506main ()
49507{
49508
49509  char *p = (char *) mbswidth;
49510  return !p;
49511
49512  ;
49513  return 0;
49514}
49515_ACEOF
49516rm -f conftest.$ac_objext
49517if { (ac_try="$ac_compile"
49518case "(($ac_try" in
49519  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49520  *) ac_try_echo=$ac_try;;
49521esac
49522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49523$as_echo "$ac_try_echo") >&5
49524  (eval "$ac_compile") 2>conftest.er1
49525  ac_status=$?
49526  grep -v '^ *+' conftest.er1 >conftest.err
49527  rm -f conftest.er1
49528  cat conftest.err >&5
49529  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49530  (exit $ac_status); } && {
49531	 test -z "$ac_c_werror_flag" ||
49532	 test ! -s conftest.err
49533       } && test -s conftest.$ac_objext; then
49534  ac_cv_have_decl_mbswidth=yes
49535else
49536  $as_echo "$as_me: failed program was:" >&5
49537sed 's/^/| /' conftest.$ac_ext >&5
49538
49539	ac_cv_have_decl_mbswidth=no
49540fi
49541
49542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49543fi
49544{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
49545$as_echo "$ac_cv_have_decl_mbswidth" >&6; }
49546  if test $ac_cv_have_decl_mbswidth = yes; then
49547    ac_val=1
49548  else
49549    ac_val=0
49550  fi
49551
49552cat >>confdefs.h <<_ACEOF
49553#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
49554_ACEOF
49555
49556
49557  { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
49558$as_echo_n "checking for mbstate_t... " >&6; }
49559if test "${ac_cv_type_mbstate_t+set}" = set; then
49560  $as_echo_n "(cached) " >&6
49561else
49562  cat >conftest.$ac_ext <<_ACEOF
49563/* confdefs.h.  */
49564_ACEOF
49565cat confdefs.h >>conftest.$ac_ext
49566cat >>conftest.$ac_ext <<_ACEOF
49567/* end confdefs.h.  */
49568$ac_includes_default
49569#	    include <wchar.h>
49570int
49571main ()
49572{
49573mbstate_t x; return sizeof x;
49574  ;
49575  return 0;
49576}
49577_ACEOF
49578rm -f conftest.$ac_objext
49579if { (ac_try="$ac_compile"
49580case "(($ac_try" in
49581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49582  *) ac_try_echo=$ac_try;;
49583esac
49584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49585$as_echo "$ac_try_echo") >&5
49586  (eval "$ac_compile") 2>conftest.er1
49587  ac_status=$?
49588  grep -v '^ *+' conftest.er1 >conftest.err
49589  rm -f conftest.er1
49590  cat conftest.err >&5
49591  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49592  (exit $ac_status); } && {
49593	 test -z "$ac_c_werror_flag" ||
49594	 test ! -s conftest.err
49595       } && test -s conftest.$ac_objext; then
49596  ac_cv_type_mbstate_t=yes
49597else
49598  $as_echo "$as_me: failed program was:" >&5
49599sed 's/^/| /' conftest.$ac_ext >&5
49600
49601	ac_cv_type_mbstate_t=no
49602fi
49603
49604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49605fi
49606{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
49607$as_echo "$ac_cv_type_mbstate_t" >&6; }
49608   if test $ac_cv_type_mbstate_t = yes; then
49609
49610cat >>confdefs.h <<\_ACEOF
49611#define HAVE_MBSTATE_T 1
49612_ACEOF
49613
49614   else
49615
49616cat >>confdefs.h <<\_ACEOF
49617#define mbstate_t int
49618_ACEOF
49619
49620   fi
49621
49622
49623
49624
49625  :
49626
49627
49628
49629
49630
49631
49632
49633
49634
49635
49636for ac_func in memchr
49637do
49638as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49639{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49640$as_echo_n "checking for $ac_func... " >&6; }
49641if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49642  $as_echo_n "(cached) " >&6
49643else
49644  cat >conftest.$ac_ext <<_ACEOF
49645/* confdefs.h.  */
49646_ACEOF
49647cat confdefs.h >>conftest.$ac_ext
49648cat >>conftest.$ac_ext <<_ACEOF
49649/* end confdefs.h.  */
49650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49651   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49652#define $ac_func innocuous_$ac_func
49653
49654/* System header to define __stub macros and hopefully few prototypes,
49655    which can conflict with char $ac_func (); below.
49656    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49657    <limits.h> exists even on freestanding compilers.  */
49658
49659#ifdef __STDC__
49660# include <limits.h>
49661#else
49662# include <assert.h>
49663#endif
49664
49665#undef $ac_func
49666
49667/* Override any GCC internal prototype to avoid an error.
49668   Use char because int might match the return type of a GCC
49669   builtin and then its argument prototype would still apply.  */
49670#ifdef __cplusplus
49671extern "C"
49672#endif
49673char $ac_func ();
49674/* The GNU C library defines this for functions which it implements
49675    to always fail with ENOSYS.  Some functions are actually named
49676    something starting with __ and the normal name is an alias.  */
49677#if defined __stub_$ac_func || defined __stub___$ac_func
49678choke me
49679#endif
49680
49681int
49682main ()
49683{
49684return $ac_func ();
49685  ;
49686  return 0;
49687}
49688_ACEOF
49689rm -f conftest.$ac_objext conftest$ac_exeext
49690if { (ac_try="$ac_link"
49691case "(($ac_try" in
49692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49693  *) ac_try_echo=$ac_try;;
49694esac
49695eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49696$as_echo "$ac_try_echo") >&5
49697  (eval "$ac_link") 2>conftest.er1
49698  ac_status=$?
49699  grep -v '^ *+' conftest.er1 >conftest.err
49700  rm -f conftest.er1
49701  cat conftest.err >&5
49702  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49703  (exit $ac_status); } && {
49704	 test -z "$ac_c_werror_flag" ||
49705	 test ! -s conftest.err
49706       } && test -s conftest$ac_exeext && {
49707	 test "$cross_compiling" = yes ||
49708	 $as_test_x conftest$ac_exeext
49709       }; then
49710  eval "$as_ac_var=yes"
49711else
49712  $as_echo "$as_me: failed program was:" >&5
49713sed 's/^/| /' conftest.$ac_ext >&5
49714
49715	eval "$as_ac_var=no"
49716fi
49717
49718rm -rf conftest.dSYM
49719rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49720      conftest$ac_exeext conftest.$ac_ext
49721fi
49722ac_res=`eval 'as_val=${'$as_ac_var'}
49723		 $as_echo "$as_val"'`
49724	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49725$as_echo "$ac_res" >&6; }
49726as_val=`eval 'as_val=${'$as_ac_var'}
49727		 $as_echo "$as_val"'`
49728   if test "x$as_val" = x""yes; then
49729  cat >>confdefs.h <<_ACEOF
49730#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49731_ACEOF
49732
49733else
49734
49735    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
49736
49737fi
49738done
49739
49740
49741  if test $ac_cv_func_memchr = no; then
49742
49743
49744for ac_header in bp-sym.h
49745do
49746as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49748  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49749$as_echo_n "checking for $ac_header... " >&6; }
49750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49751  $as_echo_n "(cached) " >&6
49752fi
49753ac_res=`eval 'as_val=${'$as_ac_Header'}
49754		 $as_echo "$as_val"'`
49755	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49756$as_echo "$ac_res" >&6; }
49757else
49758  # Is the header compilable?
49759{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
49760$as_echo_n "checking $ac_header usability... " >&6; }
49761cat >conftest.$ac_ext <<_ACEOF
49762/* confdefs.h.  */
49763_ACEOF
49764cat confdefs.h >>conftest.$ac_ext
49765cat >>conftest.$ac_ext <<_ACEOF
49766/* end confdefs.h.  */
49767$ac_includes_default
49768#include <$ac_header>
49769_ACEOF
49770rm -f conftest.$ac_objext
49771if { (ac_try="$ac_compile"
49772case "(($ac_try" in
49773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49774  *) ac_try_echo=$ac_try;;
49775esac
49776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49777$as_echo "$ac_try_echo") >&5
49778  (eval "$ac_compile") 2>conftest.er1
49779  ac_status=$?
49780  grep -v '^ *+' conftest.er1 >conftest.err
49781  rm -f conftest.er1
49782  cat conftest.err >&5
49783  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49784  (exit $ac_status); } && {
49785	 test -z "$ac_c_werror_flag" ||
49786	 test ! -s conftest.err
49787       } && test -s conftest.$ac_objext; then
49788  ac_header_compiler=yes
49789else
49790  $as_echo "$as_me: failed program was:" >&5
49791sed 's/^/| /' conftest.$ac_ext >&5
49792
49793	ac_header_compiler=no
49794fi
49795
49796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49797{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49798$as_echo "$ac_header_compiler" >&6; }
49799
49800# Is the header present?
49801{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
49802$as_echo_n "checking $ac_header presence... " >&6; }
49803cat >conftest.$ac_ext <<_ACEOF
49804/* confdefs.h.  */
49805_ACEOF
49806cat confdefs.h >>conftest.$ac_ext
49807cat >>conftest.$ac_ext <<_ACEOF
49808/* end confdefs.h.  */
49809#include <$ac_header>
49810_ACEOF
49811if { (ac_try="$ac_cpp conftest.$ac_ext"
49812case "(($ac_try" in
49813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49814  *) ac_try_echo=$ac_try;;
49815esac
49816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49817$as_echo "$ac_try_echo") >&5
49818  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49819  ac_status=$?
49820  grep -v '^ *+' conftest.er1 >conftest.err
49821  rm -f conftest.er1
49822  cat conftest.err >&5
49823  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49824  (exit $ac_status); } >/dev/null && {
49825	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49826	 test ! -s conftest.err
49827       }; then
49828  ac_header_preproc=yes
49829else
49830  $as_echo "$as_me: failed program was:" >&5
49831sed 's/^/| /' conftest.$ac_ext >&5
49832
49833  ac_header_preproc=no
49834fi
49835
49836rm -f conftest.err conftest.$ac_ext
49837{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49838$as_echo "$ac_header_preproc" >&6; }
49839
49840# So?  What about this header?
49841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49842  yes:no: )
49843    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49844$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49845    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49846$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49847    ac_header_preproc=yes
49848    ;;
49849  no:yes:* )
49850    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49851$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49852    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49853$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49854    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49855$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49856    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49857$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49858    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49859$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49860    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49861$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49862
49863    ;;
49864esac
49865{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49866$as_echo_n "checking for $ac_header... " >&6; }
49867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49868  $as_echo_n "(cached) " >&6
49869else
49870  eval "$as_ac_Header=\$ac_header_preproc"
49871fi
49872ac_res=`eval 'as_val=${'$as_ac_Header'}
49873		 $as_echo "$as_val"'`
49874	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49875$as_echo "$ac_res" >&6; }
49876
49877fi
49878as_val=`eval 'as_val=${'$as_ac_Header'}
49879		 $as_echo "$as_val"'`
49880   if test "x$as_val" = x""yes; then
49881  cat >>confdefs.h <<_ACEOF
49882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49883_ACEOF
49884
49885fi
49886
49887done
49888
49889
49890  fi
49891
49892
49893
49894
49895
49896
49897
49898
49899
49900
49901for ac_func in memmove
49902do
49903as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49904{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49905$as_echo_n "checking for $ac_func... " >&6; }
49906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49907  $as_echo_n "(cached) " >&6
49908else
49909  cat >conftest.$ac_ext <<_ACEOF
49910/* confdefs.h.  */
49911_ACEOF
49912cat confdefs.h >>conftest.$ac_ext
49913cat >>conftest.$ac_ext <<_ACEOF
49914/* end confdefs.h.  */
49915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49916   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49917#define $ac_func innocuous_$ac_func
49918
49919/* System header to define __stub macros and hopefully few prototypes,
49920    which can conflict with char $ac_func (); below.
49921    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49922    <limits.h> exists even on freestanding compilers.  */
49923
49924#ifdef __STDC__
49925# include <limits.h>
49926#else
49927# include <assert.h>
49928#endif
49929
49930#undef $ac_func
49931
49932/* Override any GCC internal prototype to avoid an error.
49933   Use char because int might match the return type of a GCC
49934   builtin and then its argument prototype would still apply.  */
49935#ifdef __cplusplus
49936extern "C"
49937#endif
49938char $ac_func ();
49939/* The GNU C library defines this for functions which it implements
49940    to always fail with ENOSYS.  Some functions are actually named
49941    something starting with __ and the normal name is an alias.  */
49942#if defined __stub_$ac_func || defined __stub___$ac_func
49943choke me
49944#endif
49945
49946int
49947main ()
49948{
49949return $ac_func ();
49950  ;
49951  return 0;
49952}
49953_ACEOF
49954rm -f conftest.$ac_objext conftest$ac_exeext
49955if { (ac_try="$ac_link"
49956case "(($ac_try" in
49957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49958  *) ac_try_echo=$ac_try;;
49959esac
49960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49961$as_echo "$ac_try_echo") >&5
49962  (eval "$ac_link") 2>conftest.er1
49963  ac_status=$?
49964  grep -v '^ *+' conftest.er1 >conftest.err
49965  rm -f conftest.er1
49966  cat conftest.err >&5
49967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49968  (exit $ac_status); } && {
49969	 test -z "$ac_c_werror_flag" ||
49970	 test ! -s conftest.err
49971       } && test -s conftest$ac_exeext && {
49972	 test "$cross_compiling" = yes ||
49973	 $as_test_x conftest$ac_exeext
49974       }; then
49975  eval "$as_ac_var=yes"
49976else
49977  $as_echo "$as_me: failed program was:" >&5
49978sed 's/^/| /' conftest.$ac_ext >&5
49979
49980	eval "$as_ac_var=no"
49981fi
49982
49983rm -rf conftest.dSYM
49984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49985      conftest$ac_exeext conftest.$ac_ext
49986fi
49987ac_res=`eval 'as_val=${'$as_ac_var'}
49988		 $as_echo "$as_val"'`
49989	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49990$as_echo "$ac_res" >&6; }
49991as_val=`eval 'as_val=${'$as_ac_var'}
49992		 $as_echo "$as_val"'`
49993   if test "x$as_val" = x""yes; then
49994  cat >>confdefs.h <<_ACEOF
49995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49996_ACEOF
49997
49998else
49999
50000    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
50001
50002fi
50003done
50004
50005
50006  if test $ac_cv_func_memmove = no; then
50007
50008  :
50009
50010  fi
50011
50012
50013
50014
50015
50016
50017
50018
50019
50020
50021for ac_func in memset
50022do
50023as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50024{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50025$as_echo_n "checking for $ac_func... " >&6; }
50026if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50027  $as_echo_n "(cached) " >&6
50028else
50029  cat >conftest.$ac_ext <<_ACEOF
50030/* confdefs.h.  */
50031_ACEOF
50032cat confdefs.h >>conftest.$ac_ext
50033cat >>conftest.$ac_ext <<_ACEOF
50034/* end confdefs.h.  */
50035/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50036   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50037#define $ac_func innocuous_$ac_func
50038
50039/* System header to define __stub macros and hopefully few prototypes,
50040    which can conflict with char $ac_func (); below.
50041    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50042    <limits.h> exists even on freestanding compilers.  */
50043
50044#ifdef __STDC__
50045# include <limits.h>
50046#else
50047# include <assert.h>
50048#endif
50049
50050#undef $ac_func
50051
50052/* Override any GCC internal prototype to avoid an error.
50053   Use char because int might match the return type of a GCC
50054   builtin and then its argument prototype would still apply.  */
50055#ifdef __cplusplus
50056extern "C"
50057#endif
50058char $ac_func ();
50059/* The GNU C library defines this for functions which it implements
50060    to always fail with ENOSYS.  Some functions are actually named
50061    something starting with __ and the normal name is an alias.  */
50062#if defined __stub_$ac_func || defined __stub___$ac_func
50063choke me
50064#endif
50065
50066int
50067main ()
50068{
50069return $ac_func ();
50070  ;
50071  return 0;
50072}
50073_ACEOF
50074rm -f conftest.$ac_objext conftest$ac_exeext
50075if { (ac_try="$ac_link"
50076case "(($ac_try" in
50077  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50078  *) ac_try_echo=$ac_try;;
50079esac
50080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50081$as_echo "$ac_try_echo") >&5
50082  (eval "$ac_link") 2>conftest.er1
50083  ac_status=$?
50084  grep -v '^ *+' conftest.er1 >conftest.err
50085  rm -f conftest.er1
50086  cat conftest.err >&5
50087  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50088  (exit $ac_status); } && {
50089	 test -z "$ac_c_werror_flag" ||
50090	 test ! -s conftest.err
50091       } && test -s conftest$ac_exeext && {
50092	 test "$cross_compiling" = yes ||
50093	 $as_test_x conftest$ac_exeext
50094       }; then
50095  eval "$as_ac_var=yes"
50096else
50097  $as_echo "$as_me: failed program was:" >&5
50098sed 's/^/| /' conftest.$ac_ext >&5
50099
50100	eval "$as_ac_var=no"
50101fi
50102
50103rm -rf conftest.dSYM
50104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50105      conftest$ac_exeext conftest.$ac_ext
50106fi
50107ac_res=`eval 'as_val=${'$as_ac_var'}
50108		 $as_echo "$as_val"'`
50109	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50110$as_echo "$ac_res" >&6; }
50111as_val=`eval 'as_val=${'$as_ac_var'}
50112		 $as_echo "$as_val"'`
50113   if test "x$as_val" = x""yes; then
50114  cat >>confdefs.h <<_ACEOF
50115#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50116_ACEOF
50117
50118else
50119
50120    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
50121
50122fi
50123done
50124
50125
50126  if test $ac_cv_func_memset = no; then
50127
50128  :
50129
50130  fi
50131
50132
50133
50134
50135
50136
50137
50138
50139
50140
50141
50142
50143
50144
50145for ac_func in mkdtemp
50146do
50147as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50148{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50149$as_echo_n "checking for $ac_func... " >&6; }
50150if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50151  $as_echo_n "(cached) " >&6
50152else
50153  cat >conftest.$ac_ext <<_ACEOF
50154/* confdefs.h.  */
50155_ACEOF
50156cat confdefs.h >>conftest.$ac_ext
50157cat >>conftest.$ac_ext <<_ACEOF
50158/* end confdefs.h.  */
50159/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50160   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50161#define $ac_func innocuous_$ac_func
50162
50163/* System header to define __stub macros and hopefully few prototypes,
50164    which can conflict with char $ac_func (); below.
50165    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50166    <limits.h> exists even on freestanding compilers.  */
50167
50168#ifdef __STDC__
50169# include <limits.h>
50170#else
50171# include <assert.h>
50172#endif
50173
50174#undef $ac_func
50175
50176/* Override any GCC internal prototype to avoid an error.
50177   Use char because int might match the return type of a GCC
50178   builtin and then its argument prototype would still apply.  */
50179#ifdef __cplusplus
50180extern "C"
50181#endif
50182char $ac_func ();
50183/* The GNU C library defines this for functions which it implements
50184    to always fail with ENOSYS.  Some functions are actually named
50185    something starting with __ and the normal name is an alias.  */
50186#if defined __stub_$ac_func || defined __stub___$ac_func
50187choke me
50188#endif
50189
50190int
50191main ()
50192{
50193return $ac_func ();
50194  ;
50195  return 0;
50196}
50197_ACEOF
50198rm -f conftest.$ac_objext conftest$ac_exeext
50199if { (ac_try="$ac_link"
50200case "(($ac_try" in
50201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50202  *) ac_try_echo=$ac_try;;
50203esac
50204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50205$as_echo "$ac_try_echo") >&5
50206  (eval "$ac_link") 2>conftest.er1
50207  ac_status=$?
50208  grep -v '^ *+' conftest.er1 >conftest.err
50209  rm -f conftest.er1
50210  cat conftest.err >&5
50211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50212  (exit $ac_status); } && {
50213	 test -z "$ac_c_werror_flag" ||
50214	 test ! -s conftest.err
50215       } && test -s conftest$ac_exeext && {
50216	 test "$cross_compiling" = yes ||
50217	 $as_test_x conftest$ac_exeext
50218       }; then
50219  eval "$as_ac_var=yes"
50220else
50221  $as_echo "$as_me: failed program was:" >&5
50222sed 's/^/| /' conftest.$ac_ext >&5
50223
50224	eval "$as_ac_var=no"
50225fi
50226
50227rm -rf conftest.dSYM
50228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50229      conftest$ac_exeext conftest.$ac_ext
50230fi
50231ac_res=`eval 'as_val=${'$as_ac_var'}
50232		 $as_echo "$as_val"'`
50233	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50234$as_echo "$ac_res" >&6; }
50235as_val=`eval 'as_val=${'$as_ac_var'}
50236		 $as_echo "$as_val"'`
50237   if test "x$as_val" = x""yes; then
50238  cat >>confdefs.h <<_ACEOF
50239#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50240_ACEOF
50241
50242else
50243
50244    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
50245
50246fi
50247done
50248
50249
50250  if test $ac_cv_func_mkdtemp = no; then
50251    HAVE_MKDTEMP=0
50252    :
50253
50254  fi
50255
50256
50257
50258  GNULIB_MKDTEMP=1
50259
50260
50261
50262          { $as_echo "$as_me:$LINENO: checking whether the C compiler is actually a C++ compiler" >&5
50263$as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
50264if test "${gl_cv_c_cplusplus+set}" = set; then
50265  $as_echo_n "(cached) " >&6
50266else
50267  cat >conftest.$ac_ext <<_ACEOF
50268/* confdefs.h.  */
50269_ACEOF
50270cat confdefs.h >>conftest.$ac_ext
50271cat >>conftest.$ac_ext <<_ACEOF
50272/* end confdefs.h.  */
50273
50274#ifdef __cplusplus
50275  Is c++
50276#endif
50277
50278_ACEOF
50279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50280  $EGREP "Is c++" >/dev/null 2>&1; then
50281  gl_cv_c_cplusplus=yes
50282else
50283  gl_cv_c_cplusplus=no
50284fi
50285rm -f conftest*
50286
50287fi
50288{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_cplusplus" >&5
50289$as_echo "$gl_cv_c_cplusplus" >&6; }
50290  if test $gl_cv_c_cplusplus = yes; then
50291
50292cat >>confdefs.h <<\_ACEOF
50293#define IS_CPLUSPLUS 1
50294_ACEOF
50295
50296  fi
50297
50298
50299  NO_CXX=
50300  cat >conftest.$ac_ext <<_ACEOF
50301/* confdefs.h.  */
50302_ACEOF
50303cat confdefs.h >>conftest.$ac_ext
50304cat >>conftest.$ac_ext <<_ACEOF
50305/* end confdefs.h.  */
50306
50307#if defined __GNUC__ && defined __cplusplus
50308  Is g++
50309#endif
50310
50311_ACEOF
50312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
50313  $EGREP "Is g++" >/dev/null 2>&1; then
50314  NO_CXX="-x c"
50315fi
50316rm -f conftest*
50317
50318
50319
50320
50321
50322
50323
50324
50325
50326
50327
50328
50329
50330{ $as_echo "$as_me:$LINENO: checking for obstacks" >&5
50331$as_echo_n "checking for obstacks... " >&6; }
50332if test "${ac_cv_func_obstack+set}" = set; then
50333  $as_echo_n "(cached) " >&6
50334else
50335  cat >conftest.$ac_ext <<_ACEOF
50336/* confdefs.h.  */
50337_ACEOF
50338cat confdefs.h >>conftest.$ac_ext
50339cat >>conftest.$ac_ext <<_ACEOF
50340/* end confdefs.h.  */
50341$ac_includes_default
50342		      #include "obstack.h"
50343int
50344main ()
50345{
50346struct obstack mem;
50347		       #define obstack_chunk_alloc malloc
50348		       #define obstack_chunk_free free
50349		       obstack_init (&mem);
50350		       obstack_free (&mem, 0);
50351  ;
50352  return 0;
50353}
50354_ACEOF
50355rm -f conftest.$ac_objext conftest$ac_exeext
50356if { (ac_try="$ac_link"
50357case "(($ac_try" in
50358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50359  *) ac_try_echo=$ac_try;;
50360esac
50361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50362$as_echo "$ac_try_echo") >&5
50363  (eval "$ac_link") 2>conftest.er1
50364  ac_status=$?
50365  grep -v '^ *+' conftest.er1 >conftest.err
50366  rm -f conftest.er1
50367  cat conftest.err >&5
50368  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50369  (exit $ac_status); } && {
50370	 test -z "$ac_c_werror_flag" ||
50371	 test ! -s conftest.err
50372       } && test -s conftest$ac_exeext && {
50373	 test "$cross_compiling" = yes ||
50374	 $as_test_x conftest$ac_exeext
50375       }; then
50376  ac_cv_func_obstack=yes
50377else
50378  $as_echo "$as_me: failed program was:" >&5
50379sed 's/^/| /' conftest.$ac_ext >&5
50380
50381	ac_cv_func_obstack=no
50382fi
50383
50384rm -rf conftest.dSYM
50385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50386      conftest$ac_exeext conftest.$ac_ext
50387fi
50388{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
50389$as_echo "$ac_cv_func_obstack" >&6; }
50390if test $ac_cv_func_obstack = yes; then
50391
50392cat >>confdefs.h <<\_ACEOF
50393#define HAVE_OBSTACK 1
50394_ACEOF
50395
50396else
50397
50398
50399
50400
50401
50402
50403
50404  gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
50405
50406fi
50407
50408
50409
50410
50411  case "$host_os" in
50412    mingw* | pw*)
50413      REPLACE_OPEN=1
50414
50415
50416
50417
50418
50419
50420
50421  gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
50422
50423      ;;
50424  esac
50425
50426
50427
50428cat >>confdefs.h <<\_ACEOF
50429#define GNULIB_OPEN 1
50430_ACEOF
50431
50432
50433
50434
50435  GNULIB_OPEN=1
50436
50437
50438  OPENMP_CFLAGS=
50439  # Check whether --enable-openmp was given.
50440if test "${enable_openmp+set}" = set; then
50441  enableval=$enable_openmp;
50442fi
50443
50444  if test "$enable_openmp" != no; then
50445    { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
50446$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
50447if test "${ac_cv_prog_c_openmp+set}" = set; then
50448  $as_echo_n "(cached) " >&6
50449else
50450  cat >conftest.$ac_ext <<_ACEOF
50451
50452#ifndef _OPENMP
50453 choke me
50454#endif
50455#include <omp.h>
50456int main () { return omp_get_num_threads (); }
50457
50458_ACEOF
50459rm -f conftest.$ac_objext conftest$ac_exeext
50460if { (ac_try="$ac_link"
50461case "(($ac_try" in
50462  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50463  *) ac_try_echo=$ac_try;;
50464esac
50465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50466$as_echo "$ac_try_echo") >&5
50467  (eval "$ac_link") 2>conftest.er1
50468  ac_status=$?
50469  grep -v '^ *+' conftest.er1 >conftest.err
50470  rm -f conftest.er1
50471  cat conftest.err >&5
50472  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50473  (exit $ac_status); } && {
50474	 test -z "$ac_c_werror_flag" ||
50475	 test ! -s conftest.err
50476       } && test -s conftest$ac_exeext && {
50477	 test "$cross_compiling" = yes ||
50478	 $as_test_x conftest$ac_exeext
50479       }; then
50480  ac_cv_prog_c_openmp='none needed'
50481else
50482  $as_echo "$as_me: failed program was:" >&5
50483sed 's/^/| /' conftest.$ac_ext >&5
50484
50485	ac_cv_prog_c_openmp='unsupported'
50486	  	  	  	  	  	  	  	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
50487	    ac_save_CFLAGS=$CFLAGS
50488	    CFLAGS="$CFLAGS $ac_option"
50489	    cat >conftest.$ac_ext <<_ACEOF
50490
50491#ifndef _OPENMP
50492 choke me
50493#endif
50494#include <omp.h>
50495int main () { return omp_get_num_threads (); }
50496
50497_ACEOF
50498rm -f conftest.$ac_objext conftest$ac_exeext
50499if { (ac_try="$ac_link"
50500case "(($ac_try" in
50501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50502  *) ac_try_echo=$ac_try;;
50503esac
50504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50505$as_echo "$ac_try_echo") >&5
50506  (eval "$ac_link") 2>conftest.er1
50507  ac_status=$?
50508  grep -v '^ *+' conftest.er1 >conftest.err
50509  rm -f conftest.er1
50510  cat conftest.err >&5
50511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50512  (exit $ac_status); } && {
50513	 test -z "$ac_c_werror_flag" ||
50514	 test ! -s conftest.err
50515       } && test -s conftest$ac_exeext && {
50516	 test "$cross_compiling" = yes ||
50517	 $as_test_x conftest$ac_exeext
50518       }; then
50519  ac_cv_prog_c_openmp=$ac_option
50520else
50521  $as_echo "$as_me: failed program was:" >&5
50522sed 's/^/| /' conftest.$ac_ext >&5
50523
50524
50525fi
50526
50527rm -rf conftest.dSYM
50528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50529      conftest$ac_exeext conftest.$ac_ext
50530	    CFLAGS=$ac_save_CFLAGS
50531	    if test "$ac_cv_prog_c_openmp" != unsupported; then
50532	      break
50533	    fi
50534	  done
50535fi
50536
50537rm -rf conftest.dSYM
50538rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50539      conftest$ac_exeext conftest.$ac_ext
50540fi
50541{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
50542$as_echo "$ac_cv_prog_c_openmp" >&6; }
50543    case $ac_cv_prog_c_openmp in #(
50544      "none needed" | unsupported)
50545        ;; #(
50546      *)
50547        OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
50548    esac
50549  fi
50550
50551
50552
50553
50554  :
50555
50556
50557
50558
50559
50560
50561
50562
50563  :
50564
50565
50566
50567
50568
50569
50570
50571
50572
50573for ac_func in posix_spawn
50574do
50575as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
50576{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
50577$as_echo_n "checking for $ac_func... " >&6; }
50578if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
50579  $as_echo_n "(cached) " >&6
50580else
50581  cat >conftest.$ac_ext <<_ACEOF
50582/* confdefs.h.  */
50583_ACEOF
50584cat confdefs.h >>conftest.$ac_ext
50585cat >>conftest.$ac_ext <<_ACEOF
50586/* end confdefs.h.  */
50587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50588   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
50589#define $ac_func innocuous_$ac_func
50590
50591/* System header to define __stub macros and hopefully few prototypes,
50592    which can conflict with char $ac_func (); below.
50593    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50594    <limits.h> exists even on freestanding compilers.  */
50595
50596#ifdef __STDC__
50597# include <limits.h>
50598#else
50599# include <assert.h>
50600#endif
50601
50602#undef $ac_func
50603
50604/* Override any GCC internal prototype to avoid an error.
50605   Use char because int might match the return type of a GCC
50606   builtin and then its argument prototype would still apply.  */
50607#ifdef __cplusplus
50608extern "C"
50609#endif
50610char $ac_func ();
50611/* The GNU C library defines this for functions which it implements
50612    to always fail with ENOSYS.  Some functions are actually named
50613    something starting with __ and the normal name is an alias.  */
50614#if defined __stub_$ac_func || defined __stub___$ac_func
50615choke me
50616#endif
50617
50618int
50619main ()
50620{
50621return $ac_func ();
50622  ;
50623  return 0;
50624}
50625_ACEOF
50626rm -f conftest.$ac_objext conftest$ac_exeext
50627if { (ac_try="$ac_link"
50628case "(($ac_try" in
50629  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50630  *) ac_try_echo=$ac_try;;
50631esac
50632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50633$as_echo "$ac_try_echo") >&5
50634  (eval "$ac_link") 2>conftest.er1
50635  ac_status=$?
50636  grep -v '^ *+' conftest.er1 >conftest.err
50637  rm -f conftest.er1
50638  cat conftest.err >&5
50639  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50640  (exit $ac_status); } && {
50641	 test -z "$ac_c_werror_flag" ||
50642	 test ! -s conftest.err
50643       } && test -s conftest$ac_exeext && {
50644	 test "$cross_compiling" = yes ||
50645	 $as_test_x conftest$ac_exeext
50646       }; then
50647  eval "$as_ac_var=yes"
50648else
50649  $as_echo "$as_me: failed program was:" >&5
50650sed 's/^/| /' conftest.$ac_ext >&5
50651
50652	eval "$as_ac_var=no"
50653fi
50654
50655rm -rf conftest.dSYM
50656rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50657      conftest$ac_exeext conftest.$ac_ext
50658fi
50659ac_res=`eval 'as_val=${'$as_ac_var'}
50660		 $as_echo "$as_val"'`
50661	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50662$as_echo "$ac_res" >&6; }
50663as_val=`eval 'as_val=${'$as_ac_var'}
50664		 $as_echo "$as_val"'`
50665   if test "x$as_val" = x""yes; then
50666  cat >>confdefs.h <<_ACEOF
50667#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
50668_ACEOF
50669
50670fi
50671done
50672
50673
50674
50675
50676
50677
50678  :
50679
50680
50681
50682
50683
50684  { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
50685$as_echo_n "checking for mbstate_t... " >&6; }
50686if test "${ac_cv_type_mbstate_t+set}" = set; then
50687  $as_echo_n "(cached) " >&6
50688else
50689  cat >conftest.$ac_ext <<_ACEOF
50690/* confdefs.h.  */
50691_ACEOF
50692cat confdefs.h >>conftest.$ac_ext
50693cat >>conftest.$ac_ext <<_ACEOF
50694/* end confdefs.h.  */
50695$ac_includes_default
50696#	    include <wchar.h>
50697int
50698main ()
50699{
50700mbstate_t x; return sizeof x;
50701  ;
50702  return 0;
50703}
50704_ACEOF
50705rm -f conftest.$ac_objext
50706if { (ac_try="$ac_compile"
50707case "(($ac_try" in
50708  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50709  *) ac_try_echo=$ac_try;;
50710esac
50711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50712$as_echo "$ac_try_echo") >&5
50713  (eval "$ac_compile") 2>conftest.er1
50714  ac_status=$?
50715  grep -v '^ *+' conftest.er1 >conftest.err
50716  rm -f conftest.er1
50717  cat conftest.err >&5
50718  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50719  (exit $ac_status); } && {
50720	 test -z "$ac_c_werror_flag" ||
50721	 test ! -s conftest.err
50722       } && test -s conftest.$ac_objext; then
50723  ac_cv_type_mbstate_t=yes
50724else
50725  $as_echo "$as_me: failed program was:" >&5
50726sed 's/^/| /' conftest.$ac_ext >&5
50727
50728	ac_cv_type_mbstate_t=no
50729fi
50730
50731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50732fi
50733{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
50734$as_echo "$ac_cv_type_mbstate_t" >&6; }
50735   if test $ac_cv_type_mbstate_t = yes; then
50736
50737cat >>confdefs.h <<\_ACEOF
50738#define HAVE_MBSTATE_T 1
50739_ACEOF
50740
50741   else
50742
50743cat >>confdefs.h <<\_ACEOF
50744#define mbstate_t int
50745_ACEOF
50746
50747   fi
50748
50749    { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
50750$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
50751if test "${gl_cv_func_mbrtowc+set}" = set; then
50752  $as_echo_n "(cached) " >&6
50753else
50754  cat >conftest.$ac_ext <<_ACEOF
50755/* confdefs.h.  */
50756_ACEOF
50757cat confdefs.h >>conftest.$ac_ext
50758cat >>conftest.$ac_ext <<_ACEOF
50759/* end confdefs.h.  */
50760#include <wchar.h>
50761int
50762main ()
50763{
50764wchar_t wc;
50765              char const s[] = "";
50766              size_t n = 1;
50767              mbstate_t state;
50768              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
50769  ;
50770  return 0;
50771}
50772_ACEOF
50773rm -f conftest.$ac_objext conftest$ac_exeext
50774if { (ac_try="$ac_link"
50775case "(($ac_try" in
50776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50777  *) ac_try_echo=$ac_try;;
50778esac
50779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50780$as_echo "$ac_try_echo") >&5
50781  (eval "$ac_link") 2>conftest.er1
50782  ac_status=$?
50783  grep -v '^ *+' conftest.er1 >conftest.err
50784  rm -f conftest.er1
50785  cat conftest.err >&5
50786  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50787  (exit $ac_status); } && {
50788	 test -z "$ac_c_werror_flag" ||
50789	 test ! -s conftest.err
50790       } && test -s conftest$ac_exeext && {
50791	 test "$cross_compiling" = yes ||
50792	 $as_test_x conftest$ac_exeext
50793       }; then
50794  gl_cv_func_mbrtowc=yes
50795else
50796  $as_echo "$as_me: failed program was:" >&5
50797sed 's/^/| /' conftest.$ac_ext >&5
50798
50799	gl_cv_func_mbrtowc=no
50800fi
50801
50802rm -rf conftest.dSYM
50803rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50804      conftest$ac_exeext conftest.$ac_ext
50805fi
50806{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
50807$as_echo "$gl_cv_func_mbrtowc" >&6; }
50808  if test $gl_cv_func_mbrtowc = yes; then
50809
50810cat >>confdefs.h <<\_ACEOF
50811#define HAVE_MBRTOWC 1
50812_ACEOF
50813
50814  fi
50815
50816
50817
50818
50819
50820  :
50821
50822
50823
50824
50825
50826  if test $ac_cv_func_readlink = no; then
50827    HAVE_READLINK=0
50828
50829
50830
50831
50832
50833
50834
50835  gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
50836
50837
50838  :
50839
50840  fi
50841
50842
50843
50844  GNULIB_READLINK=1
50845
50846
50847
50848  if test $gl_cv_func_malloc_posix = yes; then
50849    HAVE_REALLOC_POSIX=1
50850
50851cat >>confdefs.h <<\_ACEOF
50852#define HAVE_REALLOC_POSIX 1
50853_ACEOF
50854
50855  else
50856
50857
50858
50859
50860
50861
50862
50863  gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
50864
50865    HAVE_REALLOC_POSIX=0
50866  fi
50867
50868
50869
50870
50871  GNULIB_REALLOC_POSIX=1
50872
50873
50874
50875
50876
50877  if test $RELOCATABLE = yes; then
50878
50879
50880
50881
50882
50883
50884
50885  gl_LIBOBJS="$gl_LIBOBJS relocatable.$ac_objext"
50886
50887  fi
50888
50889  if test $RELOCATABLE = yes; then
50890
50891
50892
50893
50894
50895
50896
50897  gl_LIBOBJS="$gl_LIBOBJS progreloc.$ac_objext"
50898
50899  fi
50900  : ${RELOCATABLE_CONFIG_H_DIR='$(top_builddir)'}
50901  RELOCATABLE_SRC_DIR="\$(top_srcdir)/$gl_source_base"
50902  RELOCATABLE_BUILD_DIR="\$(top_builddir)/$gl_source_base"
50903
50904
50905
50906  :
50907
50908
50909
50910
50911
50912
50913  :
50914
50915
50916
50917
50918  :
50919
50920
50921
50922
50923
50924
50925  :
50926
50927
50928
50929
50930
50931
50932
50933  :
50934
50935
50936
50937
50938
50939
50940
50941
50942
50943  :
50944
50945
50946
50947
50948
50949
50950
50951
50952
50953
50954
50955
50956
50957
50958
50959
50960
50961
50962
50963  :
50964
50965
50966
50967
50968
50969
50970
50971
50972  :
50973
50974
50975
50976
50977
50978
50979for ac_header in search.h
50980do
50981as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
50982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50983  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
50984$as_echo_n "checking for $ac_header... " >&6; }
50985if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
50986  $as_echo_n "(cached) " >&6
50987fi
50988ac_res=`eval 'as_val=${'$as_ac_Header'}
50989		 $as_echo "$as_val"'`
50990	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50991$as_echo "$ac_res" >&6; }
50992else
50993  # Is the header compilable?
50994{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
50995$as_echo_n "checking $ac_header usability... " >&6; }
50996cat >conftest.$ac_ext <<_ACEOF
50997/* confdefs.h.  */
50998_ACEOF
50999cat confdefs.h >>conftest.$ac_ext
51000cat >>conftest.$ac_ext <<_ACEOF
51001/* end confdefs.h.  */
51002$ac_includes_default
51003#include <$ac_header>
51004_ACEOF
51005rm -f conftest.$ac_objext
51006if { (ac_try="$ac_compile"
51007case "(($ac_try" in
51008  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51009  *) ac_try_echo=$ac_try;;
51010esac
51011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51012$as_echo "$ac_try_echo") >&5
51013  (eval "$ac_compile") 2>conftest.er1
51014  ac_status=$?
51015  grep -v '^ *+' conftest.er1 >conftest.err
51016  rm -f conftest.er1
51017  cat conftest.err >&5
51018  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51019  (exit $ac_status); } && {
51020	 test -z "$ac_c_werror_flag" ||
51021	 test ! -s conftest.err
51022       } && test -s conftest.$ac_objext; then
51023  ac_header_compiler=yes
51024else
51025  $as_echo "$as_me: failed program was:" >&5
51026sed 's/^/| /' conftest.$ac_ext >&5
51027
51028	ac_header_compiler=no
51029fi
51030
51031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51032{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51033$as_echo "$ac_header_compiler" >&6; }
51034
51035# Is the header present?
51036{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51037$as_echo_n "checking $ac_header presence... " >&6; }
51038cat >conftest.$ac_ext <<_ACEOF
51039/* confdefs.h.  */
51040_ACEOF
51041cat confdefs.h >>conftest.$ac_ext
51042cat >>conftest.$ac_ext <<_ACEOF
51043/* end confdefs.h.  */
51044#include <$ac_header>
51045_ACEOF
51046if { (ac_try="$ac_cpp conftest.$ac_ext"
51047case "(($ac_try" in
51048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51049  *) ac_try_echo=$ac_try;;
51050esac
51051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51052$as_echo "$ac_try_echo") >&5
51053  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51054  ac_status=$?
51055  grep -v '^ *+' conftest.er1 >conftest.err
51056  rm -f conftest.er1
51057  cat conftest.err >&5
51058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51059  (exit $ac_status); } >/dev/null && {
51060	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51061	 test ! -s conftest.err
51062       }; then
51063  ac_header_preproc=yes
51064else
51065  $as_echo "$as_me: failed program was:" >&5
51066sed 's/^/| /' conftest.$ac_ext >&5
51067
51068  ac_header_preproc=no
51069fi
51070
51071rm -f conftest.err conftest.$ac_ext
51072{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51073$as_echo "$ac_header_preproc" >&6; }
51074
51075# So?  What about this header?
51076case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51077  yes:no: )
51078    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51079$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51080    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51081$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51082    ac_header_preproc=yes
51083    ;;
51084  no:yes:* )
51085    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51086$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51087    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51088$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51089    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51090$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51091    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51092$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51093    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51094$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51095    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51096$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51097
51098    ;;
51099esac
51100{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51101$as_echo_n "checking for $ac_header... " >&6; }
51102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51103  $as_echo_n "(cached) " >&6
51104else
51105  eval "$as_ac_Header=\$ac_header_preproc"
51106fi
51107ac_res=`eval 'as_val=${'$as_ac_Header'}
51108		 $as_echo "$as_val"'`
51109	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51110$as_echo "$ac_res" >&6; }
51111
51112fi
51113as_val=`eval 'as_val=${'$as_ac_Header'}
51114		 $as_echo "$as_val"'`
51115   if test "x$as_val" = x""yes; then
51116  cat >>confdefs.h <<_ACEOF
51117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51118_ACEOF
51119
51120fi
51121
51122done
51123
51124
51125for ac_func in tsearch
51126do
51127as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51128{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51129$as_echo_n "checking for $ac_func... " >&6; }
51130if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51131  $as_echo_n "(cached) " >&6
51132else
51133  cat >conftest.$ac_ext <<_ACEOF
51134/* confdefs.h.  */
51135_ACEOF
51136cat confdefs.h >>conftest.$ac_ext
51137cat >>conftest.$ac_ext <<_ACEOF
51138/* end confdefs.h.  */
51139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51140   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51141#define $ac_func innocuous_$ac_func
51142
51143/* System header to define __stub macros and hopefully few prototypes,
51144    which can conflict with char $ac_func (); below.
51145    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51146    <limits.h> exists even on freestanding compilers.  */
51147
51148#ifdef __STDC__
51149# include <limits.h>
51150#else
51151# include <assert.h>
51152#endif
51153
51154#undef $ac_func
51155
51156/* Override any GCC internal prototype to avoid an error.
51157   Use char because int might match the return type of a GCC
51158   builtin and then its argument prototype would still apply.  */
51159#ifdef __cplusplus
51160extern "C"
51161#endif
51162char $ac_func ();
51163/* The GNU C library defines this for functions which it implements
51164    to always fail with ENOSYS.  Some functions are actually named
51165    something starting with __ and the normal name is an alias.  */
51166#if defined __stub_$ac_func || defined __stub___$ac_func
51167choke me
51168#endif
51169
51170int
51171main ()
51172{
51173return $ac_func ();
51174  ;
51175  return 0;
51176}
51177_ACEOF
51178rm -f conftest.$ac_objext conftest$ac_exeext
51179if { (ac_try="$ac_link"
51180case "(($ac_try" in
51181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51182  *) ac_try_echo=$ac_try;;
51183esac
51184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51185$as_echo "$ac_try_echo") >&5
51186  (eval "$ac_link") 2>conftest.er1
51187  ac_status=$?
51188  grep -v '^ *+' conftest.er1 >conftest.err
51189  rm -f conftest.er1
51190  cat conftest.err >&5
51191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51192  (exit $ac_status); } && {
51193	 test -z "$ac_c_werror_flag" ||
51194	 test ! -s conftest.err
51195       } && test -s conftest$ac_exeext && {
51196	 test "$cross_compiling" = yes ||
51197	 $as_test_x conftest$ac_exeext
51198       }; then
51199  eval "$as_ac_var=yes"
51200else
51201  $as_echo "$as_me: failed program was:" >&5
51202sed 's/^/| /' conftest.$ac_ext >&5
51203
51204	eval "$as_ac_var=no"
51205fi
51206
51207rm -rf conftest.dSYM
51208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51209      conftest$ac_exeext conftest.$ac_ext
51210fi
51211ac_res=`eval 'as_val=${'$as_ac_var'}
51212		 $as_echo "$as_val"'`
51213	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51214$as_echo "$ac_res" >&6; }
51215as_val=`eval 'as_val=${'$as_ac_var'}
51216		 $as_echo "$as_val"'`
51217   if test "x$as_val" = x""yes; then
51218  cat >>confdefs.h <<_ACEOF
51219#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51220_ACEOF
51221
51222fi
51223done
51224
51225
51226
51227  { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
51228$as_echo_n "checking if environ is properly declared... " >&6; }
51229  if test "${gt_cv_var_environ_declaration+set}" = set; then
51230  $as_echo_n "(cached) " >&6
51231else
51232
51233    cat >conftest.$ac_ext <<_ACEOF
51234/* confdefs.h.  */
51235_ACEOF
51236cat confdefs.h >>conftest.$ac_ext
51237cat >>conftest.$ac_ext <<_ACEOF
51238/* end confdefs.h.  */
51239#include <unistd.h>
51240      extern struct { int foo; } environ;
51241int
51242main ()
51243{
51244environ.foo = 1;
51245  ;
51246  return 0;
51247}
51248_ACEOF
51249rm -f conftest.$ac_objext
51250if { (ac_try="$ac_compile"
51251case "(($ac_try" in
51252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51253  *) ac_try_echo=$ac_try;;
51254esac
51255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51256$as_echo "$ac_try_echo") >&5
51257  (eval "$ac_compile") 2>conftest.er1
51258  ac_status=$?
51259  grep -v '^ *+' conftest.er1 >conftest.err
51260  rm -f conftest.er1
51261  cat conftest.err >&5
51262  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51263  (exit $ac_status); } && {
51264	 test -z "$ac_c_werror_flag" ||
51265	 test ! -s conftest.err
51266       } && test -s conftest.$ac_objext; then
51267  gt_cv_var_environ_declaration=no
51268else
51269  $as_echo "$as_me: failed program was:" >&5
51270sed 's/^/| /' conftest.$ac_ext >&5
51271
51272	gt_cv_var_environ_declaration=yes
51273fi
51274
51275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51276fi
51277
51278  { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
51279$as_echo "$gt_cv_var_environ_declaration" >&6; }
51280  if test $gt_cv_var_environ_declaration = yes; then
51281
51282cat >>confdefs.h <<\_ACEOF
51283#define HAVE_ENVIRON_DECL 1
51284_ACEOF
51285
51286  fi
51287
51288
51289
51290
51291  { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
51292$as_echo_n "checking for working strerror function... " >&6; }
51293if test "${gl_cv_func_working_strerror+set}" = set; then
51294  $as_echo_n "(cached) " >&6
51295else
51296  if test "$cross_compiling" = yes; then
51297         cat >conftest.$ac_ext <<_ACEOF
51298/* confdefs.h.  */
51299_ACEOF
51300cat confdefs.h >>conftest.$ac_ext
51301cat >>conftest.$ac_ext <<_ACEOF
51302/* end confdefs.h.  */
51303#include <string.h>
51304
51305int
51306main ()
51307{
51308return !*strerror (-2);
51309  ;
51310  return 0;
51311}
51312_ACEOF
51313rm -f conftest.$ac_objext
51314if { (ac_try="$ac_compile"
51315case "(($ac_try" in
51316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51317  *) ac_try_echo=$ac_try;;
51318esac
51319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51320$as_echo "$ac_try_echo") >&5
51321  (eval "$ac_compile") 2>conftest.er1
51322  ac_status=$?
51323  grep -v '^ *+' conftest.er1 >conftest.err
51324  rm -f conftest.er1
51325  cat conftest.err >&5
51326  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51327  (exit $ac_status); } && {
51328	 test -z "$ac_c_werror_flag" ||
51329	 test ! -s conftest.err
51330       } && test -s conftest.$ac_objext; then
51331  gl_cv_func_working_strerror=yes
51332else
51333  $as_echo "$as_me: failed program was:" >&5
51334sed 's/^/| /' conftest.$ac_ext >&5
51335
51336	gl_cv_func_working_strerror=no
51337fi
51338
51339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51340else
51341  cat >conftest.$ac_ext <<_ACEOF
51342/* confdefs.h.  */
51343_ACEOF
51344cat confdefs.h >>conftest.$ac_ext
51345cat >>conftest.$ac_ext <<_ACEOF
51346/* end confdefs.h.  */
51347#include <string.h>
51348
51349int
51350main ()
51351{
51352return !*strerror (-2);
51353  ;
51354  return 0;
51355}
51356_ACEOF
51357rm -f conftest$ac_exeext
51358if { (ac_try="$ac_link"
51359case "(($ac_try" in
51360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51361  *) ac_try_echo=$ac_try;;
51362esac
51363eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51364$as_echo "$ac_try_echo") >&5
51365  (eval "$ac_link") 2>&5
51366  ac_status=$?
51367  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51368  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51369  { (case "(($ac_try" in
51370  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51371  *) ac_try_echo=$ac_try;;
51372esac
51373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51374$as_echo "$ac_try_echo") >&5
51375  (eval "$ac_try") 2>&5
51376  ac_status=$?
51377  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51378  (exit $ac_status); }; }; then
51379  gl_cv_func_working_strerror=yes
51380else
51381  $as_echo "$as_me: program exited with status $ac_status" >&5
51382$as_echo "$as_me: failed program was:" >&5
51383sed 's/^/| /' conftest.$ac_ext >&5
51384
51385( exit $ac_status )
51386gl_cv_func_working_strerror=no
51387fi
51388rm -rf conftest.dSYM
51389rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51390fi
51391
51392
51393fi
51394{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
51395$as_echo "$gl_cv_func_working_strerror" >&6; }
51396  if test $gl_cv_func_working_strerror = no ; then
51397    REPLACE_STRERROR=1
51398
51399  { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
51400$as_echo_n "checking whether strerror is declared... " >&6; }
51401if test "${ac_cv_have_decl_strerror+set}" = set; then
51402  $as_echo_n "(cached) " >&6
51403else
51404  cat >conftest.$ac_ext <<_ACEOF
51405/* confdefs.h.  */
51406_ACEOF
51407cat confdefs.h >>conftest.$ac_ext
51408cat >>conftest.$ac_ext <<_ACEOF
51409/* end confdefs.h.  */
51410$ac_includes_default
51411int
51412main ()
51413{
51414#ifndef strerror
51415  (void) strerror;
51416#endif
51417
51418  ;
51419  return 0;
51420}
51421_ACEOF
51422rm -f conftest.$ac_objext
51423if { (ac_try="$ac_compile"
51424case "(($ac_try" in
51425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51426  *) ac_try_echo=$ac_try;;
51427esac
51428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51429$as_echo "$ac_try_echo") >&5
51430  (eval "$ac_compile") 2>conftest.er1
51431  ac_status=$?
51432  grep -v '^ *+' conftest.er1 >conftest.err
51433  rm -f conftest.er1
51434  cat conftest.err >&5
51435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51436  (exit $ac_status); } && {
51437	 test -z "$ac_c_werror_flag" ||
51438	 test ! -s conftest.err
51439       } && test -s conftest.$ac_objext; then
51440  ac_cv_have_decl_strerror=yes
51441else
51442  $as_echo "$as_me: failed program was:" >&5
51443sed 's/^/| /' conftest.$ac_ext >&5
51444
51445	ac_cv_have_decl_strerror=no
51446fi
51447
51448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51449fi
51450{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
51451$as_echo "$ac_cv_have_decl_strerror" >&6; }
51452if test "x$ac_cv_have_decl_strerror" = x""yes; then
51453
51454cat >>confdefs.h <<_ACEOF
51455#define HAVE_DECL_STRERROR 1
51456_ACEOF
51457
51458
51459else
51460  cat >>confdefs.h <<_ACEOF
51461#define HAVE_DECL_STRERROR 0
51462_ACEOF
51463
51464
51465fi
51466
51467
51468
51469  fi
51470
51471
51472  relocatable_sh=$ac_aux_dir/relocatable.sh.in
51473
51474
51475
51476
51477
51478
51479
51480
51481
51482  gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
51483
51484
51485
51486
51487
51488
51489
51490
51491
51492
51493
51494
51495
51496
51497  gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
51498
51499
51500
51501
51502
51503
51504
51505
51506
51507
51508  :
51509
51510
51511
51512
51513
51514  if test $ac_cv_func_setenv = no; then
51515
51516
51517
51518
51519
51520
51521
51522  gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
51523
51524
51525
51526
51527  :
51528
51529
51530
51531
51532
51533
51534for ac_header in search.h
51535do
51536as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51537if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51538  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51539$as_echo_n "checking for $ac_header... " >&6; }
51540if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51541  $as_echo_n "(cached) " >&6
51542fi
51543ac_res=`eval 'as_val=${'$as_ac_Header'}
51544		 $as_echo "$as_val"'`
51545	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51546$as_echo "$ac_res" >&6; }
51547else
51548  # Is the header compilable?
51549{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51550$as_echo_n "checking $ac_header usability... " >&6; }
51551cat >conftest.$ac_ext <<_ACEOF
51552/* confdefs.h.  */
51553_ACEOF
51554cat confdefs.h >>conftest.$ac_ext
51555cat >>conftest.$ac_ext <<_ACEOF
51556/* end confdefs.h.  */
51557$ac_includes_default
51558#include <$ac_header>
51559_ACEOF
51560rm -f conftest.$ac_objext
51561if { (ac_try="$ac_compile"
51562case "(($ac_try" in
51563  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51564  *) ac_try_echo=$ac_try;;
51565esac
51566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51567$as_echo "$ac_try_echo") >&5
51568  (eval "$ac_compile") 2>conftest.er1
51569  ac_status=$?
51570  grep -v '^ *+' conftest.er1 >conftest.err
51571  rm -f conftest.er1
51572  cat conftest.err >&5
51573  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51574  (exit $ac_status); } && {
51575	 test -z "$ac_c_werror_flag" ||
51576	 test ! -s conftest.err
51577       } && test -s conftest.$ac_objext; then
51578  ac_header_compiler=yes
51579else
51580  $as_echo "$as_me: failed program was:" >&5
51581sed 's/^/| /' conftest.$ac_ext >&5
51582
51583	ac_header_compiler=no
51584fi
51585
51586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51587{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51588$as_echo "$ac_header_compiler" >&6; }
51589
51590# Is the header present?
51591{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51592$as_echo_n "checking $ac_header presence... " >&6; }
51593cat >conftest.$ac_ext <<_ACEOF
51594/* confdefs.h.  */
51595_ACEOF
51596cat confdefs.h >>conftest.$ac_ext
51597cat >>conftest.$ac_ext <<_ACEOF
51598/* end confdefs.h.  */
51599#include <$ac_header>
51600_ACEOF
51601if { (ac_try="$ac_cpp conftest.$ac_ext"
51602case "(($ac_try" in
51603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51604  *) ac_try_echo=$ac_try;;
51605esac
51606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51607$as_echo "$ac_try_echo") >&5
51608  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51609  ac_status=$?
51610  grep -v '^ *+' conftest.er1 >conftest.err
51611  rm -f conftest.er1
51612  cat conftest.err >&5
51613  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51614  (exit $ac_status); } >/dev/null && {
51615	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51616	 test ! -s conftest.err
51617       }; then
51618  ac_header_preproc=yes
51619else
51620  $as_echo "$as_me: failed program was:" >&5
51621sed 's/^/| /' conftest.$ac_ext >&5
51622
51623  ac_header_preproc=no
51624fi
51625
51626rm -f conftest.err conftest.$ac_ext
51627{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51628$as_echo "$ac_header_preproc" >&6; }
51629
51630# So?  What about this header?
51631case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51632  yes:no: )
51633    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51634$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51635    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51636$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51637    ac_header_preproc=yes
51638    ;;
51639  no:yes:* )
51640    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51641$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51642    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51643$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51644    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51645$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51646    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51647$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51648    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51649$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51650    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51651$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51652
51653    ;;
51654esac
51655{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51656$as_echo_n "checking for $ac_header... " >&6; }
51657if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51658  $as_echo_n "(cached) " >&6
51659else
51660  eval "$as_ac_Header=\$ac_header_preproc"
51661fi
51662ac_res=`eval 'as_val=${'$as_ac_Header'}
51663		 $as_echo "$as_val"'`
51664	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51665$as_echo "$ac_res" >&6; }
51666
51667fi
51668as_val=`eval 'as_val=${'$as_ac_Header'}
51669		 $as_echo "$as_val"'`
51670   if test "x$as_val" = x""yes; then
51671  cat >>confdefs.h <<_ACEOF
51672#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51673_ACEOF
51674
51675fi
51676
51677done
51678
51679
51680for ac_func in tsearch
51681do
51682as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51683{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51684$as_echo_n "checking for $ac_func... " >&6; }
51685if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51686  $as_echo_n "(cached) " >&6
51687else
51688  cat >conftest.$ac_ext <<_ACEOF
51689/* confdefs.h.  */
51690_ACEOF
51691cat confdefs.h >>conftest.$ac_ext
51692cat >>conftest.$ac_ext <<_ACEOF
51693/* end confdefs.h.  */
51694/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51695   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51696#define $ac_func innocuous_$ac_func
51697
51698/* System header to define __stub macros and hopefully few prototypes,
51699    which can conflict with char $ac_func (); below.
51700    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51701    <limits.h> exists even on freestanding compilers.  */
51702
51703#ifdef __STDC__
51704# include <limits.h>
51705#else
51706# include <assert.h>
51707#endif
51708
51709#undef $ac_func
51710
51711/* Override any GCC internal prototype to avoid an error.
51712   Use char because int might match the return type of a GCC
51713   builtin and then its argument prototype would still apply.  */
51714#ifdef __cplusplus
51715extern "C"
51716#endif
51717char $ac_func ();
51718/* The GNU C library defines this for functions which it implements
51719    to always fail with ENOSYS.  Some functions are actually named
51720    something starting with __ and the normal name is an alias.  */
51721#if defined __stub_$ac_func || defined __stub___$ac_func
51722choke me
51723#endif
51724
51725int
51726main ()
51727{
51728return $ac_func ();
51729  ;
51730  return 0;
51731}
51732_ACEOF
51733rm -f conftest.$ac_objext conftest$ac_exeext
51734if { (ac_try="$ac_link"
51735case "(($ac_try" in
51736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51737  *) ac_try_echo=$ac_try;;
51738esac
51739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51740$as_echo "$ac_try_echo") >&5
51741  (eval "$ac_link") 2>conftest.er1
51742  ac_status=$?
51743  grep -v '^ *+' conftest.er1 >conftest.err
51744  rm -f conftest.er1
51745  cat conftest.err >&5
51746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51747  (exit $ac_status); } && {
51748	 test -z "$ac_c_werror_flag" ||
51749	 test ! -s conftest.err
51750       } && test -s conftest$ac_exeext && {
51751	 test "$cross_compiling" = yes ||
51752	 $as_test_x conftest$ac_exeext
51753       }; then
51754  eval "$as_ac_var=yes"
51755else
51756  $as_echo "$as_me: failed program was:" >&5
51757sed 's/^/| /' conftest.$ac_ext >&5
51758
51759	eval "$as_ac_var=no"
51760fi
51761
51762rm -rf conftest.dSYM
51763rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51764      conftest$ac_exeext conftest.$ac_ext
51765fi
51766ac_res=`eval 'as_val=${'$as_ac_var'}
51767		 $as_echo "$as_val"'`
51768	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51769$as_echo "$ac_res" >&6; }
51770as_val=`eval 'as_val=${'$as_ac_var'}
51771		 $as_echo "$as_val"'`
51772   if test "x$as_val" = x""yes; then
51773  cat >>confdefs.h <<_ACEOF
51774#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51775_ACEOF
51776
51777fi
51778done
51779
51780
51781
51782  { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
51783$as_echo_n "checking if environ is properly declared... " >&6; }
51784  if test "${gt_cv_var_environ_declaration+set}" = set; then
51785  $as_echo_n "(cached) " >&6
51786else
51787
51788    cat >conftest.$ac_ext <<_ACEOF
51789/* confdefs.h.  */
51790_ACEOF
51791cat confdefs.h >>conftest.$ac_ext
51792cat >>conftest.$ac_ext <<_ACEOF
51793/* end confdefs.h.  */
51794#include <unistd.h>
51795      extern struct { int foo; } environ;
51796int
51797main ()
51798{
51799environ.foo = 1;
51800  ;
51801  return 0;
51802}
51803_ACEOF
51804rm -f conftest.$ac_objext
51805if { (ac_try="$ac_compile"
51806case "(($ac_try" in
51807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51808  *) ac_try_echo=$ac_try;;
51809esac
51810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51811$as_echo "$ac_try_echo") >&5
51812  (eval "$ac_compile") 2>conftest.er1
51813  ac_status=$?
51814  grep -v '^ *+' conftest.er1 >conftest.err
51815  rm -f conftest.er1
51816  cat conftest.err >&5
51817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51818  (exit $ac_status); } && {
51819	 test -z "$ac_c_werror_flag" ||
51820	 test ! -s conftest.err
51821       } && test -s conftest.$ac_objext; then
51822  gt_cv_var_environ_declaration=no
51823else
51824  $as_echo "$as_me: failed program was:" >&5
51825sed 's/^/| /' conftest.$ac_ext >&5
51826
51827	gt_cv_var_environ_declaration=yes
51828fi
51829
51830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51831fi
51832
51833  { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
51834$as_echo "$gt_cv_var_environ_declaration" >&6; }
51835  if test $gt_cv_var_environ_declaration = yes; then
51836
51837cat >>confdefs.h <<\_ACEOF
51838#define HAVE_ENVIRON_DECL 1
51839_ACEOF
51840
51841  fi
51842
51843
51844  fi
51845
51846
51847
51848for ac_func in unsetenv
51849do
51850as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
51851{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
51852$as_echo_n "checking for $ac_func... " >&6; }
51853if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
51854  $as_echo_n "(cached) " >&6
51855else
51856  cat >conftest.$ac_ext <<_ACEOF
51857/* confdefs.h.  */
51858_ACEOF
51859cat confdefs.h >>conftest.$ac_ext
51860cat >>conftest.$ac_ext <<_ACEOF
51861/* end confdefs.h.  */
51862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51863   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
51864#define $ac_func innocuous_$ac_func
51865
51866/* System header to define __stub macros and hopefully few prototypes,
51867    which can conflict with char $ac_func (); below.
51868    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51869    <limits.h> exists even on freestanding compilers.  */
51870
51871#ifdef __STDC__
51872# include <limits.h>
51873#else
51874# include <assert.h>
51875#endif
51876
51877#undef $ac_func
51878
51879/* Override any GCC internal prototype to avoid an error.
51880   Use char because int might match the return type of a GCC
51881   builtin and then its argument prototype would still apply.  */
51882#ifdef __cplusplus
51883extern "C"
51884#endif
51885char $ac_func ();
51886/* The GNU C library defines this for functions which it implements
51887    to always fail with ENOSYS.  Some functions are actually named
51888    something starting with __ and the normal name is an alias.  */
51889#if defined __stub_$ac_func || defined __stub___$ac_func
51890choke me
51891#endif
51892
51893int
51894main ()
51895{
51896return $ac_func ();
51897  ;
51898  return 0;
51899}
51900_ACEOF
51901rm -f conftest.$ac_objext conftest$ac_exeext
51902if { (ac_try="$ac_link"
51903case "(($ac_try" in
51904  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51905  *) ac_try_echo=$ac_try;;
51906esac
51907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51908$as_echo "$ac_try_echo") >&5
51909  (eval "$ac_link") 2>conftest.er1
51910  ac_status=$?
51911  grep -v '^ *+' conftest.er1 >conftest.err
51912  rm -f conftest.er1
51913  cat conftest.err >&5
51914  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51915  (exit $ac_status); } && {
51916	 test -z "$ac_c_werror_flag" ||
51917	 test ! -s conftest.err
51918       } && test -s conftest$ac_exeext && {
51919	 test "$cross_compiling" = yes ||
51920	 $as_test_x conftest$ac_exeext
51921       }; then
51922  eval "$as_ac_var=yes"
51923else
51924  $as_echo "$as_me: failed program was:" >&5
51925sed 's/^/| /' conftest.$ac_ext >&5
51926
51927	eval "$as_ac_var=no"
51928fi
51929
51930rm -rf conftest.dSYM
51931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51932      conftest$ac_exeext conftest.$ac_ext
51933fi
51934ac_res=`eval 'as_val=${'$as_ac_var'}
51935		 $as_echo "$as_val"'`
51936	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51937$as_echo "$ac_res" >&6; }
51938as_val=`eval 'as_val=${'$as_ac_var'}
51939		 $as_echo "$as_val"'`
51940   if test "x$as_val" = x""yes; then
51941  cat >>confdefs.h <<_ACEOF
51942#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
51943_ACEOF
51944
51945fi
51946done
51947
51948  if test $ac_cv_func_unsetenv = no; then
51949
51950
51951
51952
51953
51954
51955
51956  gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
51957
51958
51959
51960  :
51961
51962
51963
51964
51965
51966
51967
51968  { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
51969$as_echo_n "checking if environ is properly declared... " >&6; }
51970  if test "${gt_cv_var_environ_declaration+set}" = set; then
51971  $as_echo_n "(cached) " >&6
51972else
51973
51974    cat >conftest.$ac_ext <<_ACEOF
51975/* confdefs.h.  */
51976_ACEOF
51977cat confdefs.h >>conftest.$ac_ext
51978cat >>conftest.$ac_ext <<_ACEOF
51979/* end confdefs.h.  */
51980#include <unistd.h>
51981      extern struct { int foo; } environ;
51982int
51983main ()
51984{
51985environ.foo = 1;
51986  ;
51987  return 0;
51988}
51989_ACEOF
51990rm -f conftest.$ac_objext
51991if { (ac_try="$ac_compile"
51992case "(($ac_try" in
51993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51994  *) ac_try_echo=$ac_try;;
51995esac
51996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51997$as_echo "$ac_try_echo") >&5
51998  (eval "$ac_compile") 2>conftest.er1
51999  ac_status=$?
52000  grep -v '^ *+' conftest.er1 >conftest.err
52001  rm -f conftest.er1
52002  cat conftest.err >&5
52003  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52004  (exit $ac_status); } && {
52005	 test -z "$ac_c_werror_flag" ||
52006	 test ! -s conftest.err
52007       } && test -s conftest.$ac_objext; then
52008  gt_cv_var_environ_declaration=no
52009else
52010  $as_echo "$as_me: failed program was:" >&5
52011sed 's/^/| /' conftest.$ac_ext >&5
52012
52013	gt_cv_var_environ_declaration=yes
52014fi
52015
52016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52017fi
52018
52019  { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
52020$as_echo "$gt_cv_var_environ_declaration" >&6; }
52021  if test $gt_cv_var_environ_declaration = yes; then
52022
52023cat >>confdefs.h <<\_ACEOF
52024#define HAVE_ENVIRON_DECL 1
52025_ACEOF
52026
52027  fi
52028
52029
52030  else
52031    { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
52032$as_echo_n "checking for unsetenv() return type... " >&6; }
52033if test "${gt_cv_func_unsetenv_ret+set}" = set; then
52034  $as_echo_n "(cached) " >&6
52035else
52036  cat >conftest.$ac_ext <<_ACEOF
52037/* confdefs.h.  */
52038_ACEOF
52039cat confdefs.h >>conftest.$ac_ext
52040cat >>conftest.$ac_ext <<_ACEOF
52041/* end confdefs.h.  */
52042#include <stdlib.h>
52043extern
52044#ifdef __cplusplus
52045"C"
52046#endif
52047#if defined(__STDC__) || defined(__cplusplus)
52048int unsetenv (const char *name);
52049#else
52050int unsetenv();
52051#endif
52052
52053int
52054main ()
52055{
52056
52057  ;
52058  return 0;
52059}
52060_ACEOF
52061rm -f conftest.$ac_objext
52062if { (ac_try="$ac_compile"
52063case "(($ac_try" in
52064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52065  *) ac_try_echo=$ac_try;;
52066esac
52067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52068$as_echo "$ac_try_echo") >&5
52069  (eval "$ac_compile") 2>conftest.er1
52070  ac_status=$?
52071  grep -v '^ *+' conftest.er1 >conftest.err
52072  rm -f conftest.er1
52073  cat conftest.err >&5
52074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52075  (exit $ac_status); } && {
52076	 test -z "$ac_c_werror_flag" ||
52077	 test ! -s conftest.err
52078       } && test -s conftest.$ac_objext; then
52079  gt_cv_func_unsetenv_ret='int'
52080else
52081  $as_echo "$as_me: failed program was:" >&5
52082sed 's/^/| /' conftest.$ac_ext >&5
52083
52084	gt_cv_func_unsetenv_ret='void'
52085fi
52086
52087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52088fi
52089{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
52090$as_echo "$gt_cv_func_unsetenv_ret" >&6; }
52091    if test $gt_cv_func_unsetenv_ret = 'void'; then
52092
52093cat >>confdefs.h <<\_ACEOF
52094#define VOID_UNSETENV 1
52095_ACEOF
52096
52097    fi
52098  fi
52099
52100
52101
52102
52103
52104
52105  :
52106
52107
52108
52109
52110
52111
52112
52113     if test $gl_cv_have_include_next = yes; then
52114       gl_cv_next_signal_h='<'signal.h'>'
52115     else
52116       { $as_echo "$as_me:$LINENO: checking absolute name of <signal.h>" >&5
52117$as_echo_n "checking absolute name of <signal.h>... " >&6; }
52118if test "${gl_cv_next_signal_h+set}" = set; then
52119  $as_echo_n "(cached) " >&6
52120else
52121
52122	  if test $ac_cv_header_signal_h = yes; then
52123	    cat >conftest.$ac_ext <<_ACEOF
52124/* confdefs.h.  */
52125_ACEOF
52126cat confdefs.h >>conftest.$ac_ext
52127cat >>conftest.$ac_ext <<_ACEOF
52128/* end confdefs.h.  */
52129#include <signal.h>
52130
52131_ACEOF
52132	    	    	    	    gl_cv_next_signal_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52133	       sed -n '\#/signal.h#{
52134		 s#.*"\(.*/signal.h\)".*#\1#
52135		 s#^/[^/]#//&#
52136		 p
52137		 q
52138	       }'`'"'
52139	  else
52140	    gl_cv_next_signal_h='<'signal.h'>'
52141	  fi
52142
52143fi
52144{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_signal_h" >&5
52145$as_echo "$gl_cv_next_signal_h" >&6; }
52146     fi
52147     NEXT_SIGNAL_H=$gl_cv_next_signal_h
52148
52149
52150
52151
52152
52153
52154  signals_not_posix=
52155  cat >conftest.$ac_ext <<_ACEOF
52156/* confdefs.h.  */
52157_ACEOF
52158cat confdefs.h >>conftest.$ac_ext
52159cat >>conftest.$ac_ext <<_ACEOF
52160/* end confdefs.h.  */
52161#include <signal.h>
52162
52163_ACEOF
52164if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52165  $EGREP "sigset_t" >/dev/null 2>&1; then
52166  :
52167else
52168  signals_not_posix=1
52169fi
52170rm -f conftest*
52171
52172  if test -z "$signals_not_posix"; then
52173    { $as_echo "$as_me:$LINENO: checking for sigprocmask" >&5
52174$as_echo_n "checking for sigprocmask... " >&6; }
52175if test "${ac_cv_func_sigprocmask+set}" = set; then
52176  $as_echo_n "(cached) " >&6
52177else
52178  cat >conftest.$ac_ext <<_ACEOF
52179/* confdefs.h.  */
52180_ACEOF
52181cat confdefs.h >>conftest.$ac_ext
52182cat >>conftest.$ac_ext <<_ACEOF
52183/* end confdefs.h.  */
52184/* Define sigprocmask to an innocuous variant, in case <limits.h> declares sigprocmask.
52185   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52186#define sigprocmask innocuous_sigprocmask
52187
52188/* System header to define __stub macros and hopefully few prototypes,
52189    which can conflict with char sigprocmask (); below.
52190    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52191    <limits.h> exists even on freestanding compilers.  */
52192
52193#ifdef __STDC__
52194# include <limits.h>
52195#else
52196# include <assert.h>
52197#endif
52198
52199#undef sigprocmask
52200
52201/* Override any GCC internal prototype to avoid an error.
52202   Use char because int might match the return type of a GCC
52203   builtin and then its argument prototype would still apply.  */
52204#ifdef __cplusplus
52205extern "C"
52206#endif
52207char sigprocmask ();
52208/* The GNU C library defines this for functions which it implements
52209    to always fail with ENOSYS.  Some functions are actually named
52210    something starting with __ and the normal name is an alias.  */
52211#if defined __stub_sigprocmask || defined __stub___sigprocmask
52212choke me
52213#endif
52214
52215int
52216main ()
52217{
52218return sigprocmask ();
52219  ;
52220  return 0;
52221}
52222_ACEOF
52223rm -f conftest.$ac_objext conftest$ac_exeext
52224if { (ac_try="$ac_link"
52225case "(($ac_try" in
52226  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52227  *) ac_try_echo=$ac_try;;
52228esac
52229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52230$as_echo "$ac_try_echo") >&5
52231  (eval "$ac_link") 2>conftest.er1
52232  ac_status=$?
52233  grep -v '^ *+' conftest.er1 >conftest.err
52234  rm -f conftest.er1
52235  cat conftest.err >&5
52236  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52237  (exit $ac_status); } && {
52238	 test -z "$ac_c_werror_flag" ||
52239	 test ! -s conftest.err
52240       } && test -s conftest$ac_exeext && {
52241	 test "$cross_compiling" = yes ||
52242	 $as_test_x conftest$ac_exeext
52243       }; then
52244  ac_cv_func_sigprocmask=yes
52245else
52246  $as_echo "$as_me: failed program was:" >&5
52247sed 's/^/| /' conftest.$ac_ext >&5
52248
52249	ac_cv_func_sigprocmask=no
52250fi
52251
52252rm -rf conftest.dSYM
52253rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52254      conftest$ac_exeext conftest.$ac_ext
52255fi
52256{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sigprocmask" >&5
52257$as_echo "$ac_cv_func_sigprocmask" >&6; }
52258if test "x$ac_cv_func_sigprocmask" = x""yes; then
52259  gl_cv_func_sigprocmask=1
52260fi
52261
52262  fi
52263  if test -z "$gl_cv_func_sigprocmask"; then
52264    HAVE_POSIX_SIGNALBLOCKING=0
52265
52266
52267
52268
52269
52270
52271
52272  gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
52273
52274
52275
52276  { $as_echo "$as_me:$LINENO: checking for sigset_t" >&5
52277$as_echo_n "checking for sigset_t... " >&6; }
52278if test "${ac_cv_type_sigset_t+set}" = set; then
52279  $as_echo_n "(cached) " >&6
52280else
52281  ac_cv_type_sigset_t=no
52282cat >conftest.$ac_ext <<_ACEOF
52283/* confdefs.h.  */
52284_ACEOF
52285cat confdefs.h >>conftest.$ac_ext
52286cat >>conftest.$ac_ext <<_ACEOF
52287/* end confdefs.h.  */
52288#include <signal.h>
52289/* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
52290#include <sys/types.h>
52291
52292int
52293main ()
52294{
52295if (sizeof (sigset_t))
52296       return 0;
52297  ;
52298  return 0;
52299}
52300_ACEOF
52301rm -f conftest.$ac_objext
52302if { (ac_try="$ac_compile"
52303case "(($ac_try" in
52304  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52305  *) ac_try_echo=$ac_try;;
52306esac
52307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52308$as_echo "$ac_try_echo") >&5
52309  (eval "$ac_compile") 2>conftest.er1
52310  ac_status=$?
52311  grep -v '^ *+' conftest.er1 >conftest.err
52312  rm -f conftest.er1
52313  cat conftest.err >&5
52314  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52315  (exit $ac_status); } && {
52316	 test -z "$ac_c_werror_flag" ||
52317	 test ! -s conftest.err
52318       } && test -s conftest.$ac_objext; then
52319  cat >conftest.$ac_ext <<_ACEOF
52320/* confdefs.h.  */
52321_ACEOF
52322cat confdefs.h >>conftest.$ac_ext
52323cat >>conftest.$ac_ext <<_ACEOF
52324/* end confdefs.h.  */
52325#include <signal.h>
52326/* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
52327#include <sys/types.h>
52328
52329int
52330main ()
52331{
52332if (sizeof ((sigset_t)))
52333	  return 0;
52334  ;
52335  return 0;
52336}
52337_ACEOF
52338rm -f conftest.$ac_objext
52339if { (ac_try="$ac_compile"
52340case "(($ac_try" in
52341  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52342  *) ac_try_echo=$ac_try;;
52343esac
52344eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52345$as_echo "$ac_try_echo") >&5
52346  (eval "$ac_compile") 2>conftest.er1
52347  ac_status=$?
52348  grep -v '^ *+' conftest.er1 >conftest.err
52349  rm -f conftest.er1
52350  cat conftest.err >&5
52351  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52352  (exit $ac_status); } && {
52353	 test -z "$ac_c_werror_flag" ||
52354	 test ! -s conftest.err
52355       } && test -s conftest.$ac_objext; then
52356  :
52357else
52358  $as_echo "$as_me: failed program was:" >&5
52359sed 's/^/| /' conftest.$ac_ext >&5
52360
52361	ac_cv_type_sigset_t=yes
52362fi
52363
52364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52365else
52366  $as_echo "$as_me: failed program was:" >&5
52367sed 's/^/| /' conftest.$ac_ext >&5
52368
52369
52370fi
52371
52372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52373fi
52374{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
52375$as_echo "$ac_cv_type_sigset_t" >&6; }
52376if test "x$ac_cv_type_sigset_t" = x""yes; then
52377
52378cat >>confdefs.h <<_ACEOF
52379#define HAVE_SIGSET_T 1
52380_ACEOF
52381
52382gl_cv_type_sigset_t=yes
52383else
52384  gl_cv_type_sigset_t=no
52385fi
52386
52387  if test $gl_cv_type_sigset_t != yes; then
52388    HAVE_SIGSET_T=0
52389  fi
52390
52391
52392  :
52393
52394
52395
52396
52397
52398
52399  fi
52400
52401
52402
52403  GNULIB_SIGPROCMASK=1
52404
52405
52406
52407for ac_header in stdint.h
52408do
52409as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52410if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52411  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52412$as_echo_n "checking for $ac_header... " >&6; }
52413if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52414  $as_echo_n "(cached) " >&6
52415fi
52416ac_res=`eval 'as_val=${'$as_ac_Header'}
52417		 $as_echo "$as_val"'`
52418	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52419$as_echo "$ac_res" >&6; }
52420else
52421  # Is the header compilable?
52422{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
52423$as_echo_n "checking $ac_header usability... " >&6; }
52424cat >conftest.$ac_ext <<_ACEOF
52425/* confdefs.h.  */
52426_ACEOF
52427cat confdefs.h >>conftest.$ac_ext
52428cat >>conftest.$ac_ext <<_ACEOF
52429/* end confdefs.h.  */
52430$ac_includes_default
52431#include <$ac_header>
52432_ACEOF
52433rm -f conftest.$ac_objext
52434if { (ac_try="$ac_compile"
52435case "(($ac_try" in
52436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52437  *) ac_try_echo=$ac_try;;
52438esac
52439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52440$as_echo "$ac_try_echo") >&5
52441  (eval "$ac_compile") 2>conftest.er1
52442  ac_status=$?
52443  grep -v '^ *+' conftest.er1 >conftest.err
52444  rm -f conftest.er1
52445  cat conftest.err >&5
52446  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52447  (exit $ac_status); } && {
52448	 test -z "$ac_c_werror_flag" ||
52449	 test ! -s conftest.err
52450       } && test -s conftest.$ac_objext; then
52451  ac_header_compiler=yes
52452else
52453  $as_echo "$as_me: failed program was:" >&5
52454sed 's/^/| /' conftest.$ac_ext >&5
52455
52456	ac_header_compiler=no
52457fi
52458
52459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52460{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52461$as_echo "$ac_header_compiler" >&6; }
52462
52463# Is the header present?
52464{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
52465$as_echo_n "checking $ac_header presence... " >&6; }
52466cat >conftest.$ac_ext <<_ACEOF
52467/* confdefs.h.  */
52468_ACEOF
52469cat confdefs.h >>conftest.$ac_ext
52470cat >>conftest.$ac_ext <<_ACEOF
52471/* end confdefs.h.  */
52472#include <$ac_header>
52473_ACEOF
52474if { (ac_try="$ac_cpp conftest.$ac_ext"
52475case "(($ac_try" in
52476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52477  *) ac_try_echo=$ac_try;;
52478esac
52479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52480$as_echo "$ac_try_echo") >&5
52481  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52482  ac_status=$?
52483  grep -v '^ *+' conftest.er1 >conftest.err
52484  rm -f conftest.er1
52485  cat conftest.err >&5
52486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52487  (exit $ac_status); } >/dev/null && {
52488	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52489	 test ! -s conftest.err
52490       }; then
52491  ac_header_preproc=yes
52492else
52493  $as_echo "$as_me: failed program was:" >&5
52494sed 's/^/| /' conftest.$ac_ext >&5
52495
52496  ac_header_preproc=no
52497fi
52498
52499rm -f conftest.err conftest.$ac_ext
52500{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52501$as_echo "$ac_header_preproc" >&6; }
52502
52503# So?  What about this header?
52504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52505  yes:no: )
52506    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52507$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52508    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52509$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52510    ac_header_preproc=yes
52511    ;;
52512  no:yes:* )
52513    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52514$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52515    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52516$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52517    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52518$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52519    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52520$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52521    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52522$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52523    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52524$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52525
52526    ;;
52527esac
52528{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52529$as_echo_n "checking for $ac_header... " >&6; }
52530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52531  $as_echo_n "(cached) " >&6
52532else
52533  eval "$as_ac_Header=\$ac_header_preproc"
52534fi
52535ac_res=`eval 'as_val=${'$as_ac_Header'}
52536		 $as_echo "$as_val"'`
52537	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52538$as_echo "$ac_res" >&6; }
52539
52540fi
52541as_val=`eval 'as_val=${'$as_ac_Header'}
52542		 $as_echo "$as_val"'`
52543   if test "x$as_val" = x""yes; then
52544  cat >>confdefs.h <<_ACEOF
52545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52546_ACEOF
52547
52548fi
52549
52550done
52551
52552    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
52553$as_echo_n "checking for SIZE_MAX... " >&6; }
52554  if test "${gl_cv_size_max+set}" = set; then
52555  $as_echo_n "(cached) " >&6
52556else
52557
52558    gl_cv_size_max=
52559    cat >conftest.$ac_ext <<_ACEOF
52560/* confdefs.h.  */
52561_ACEOF
52562cat confdefs.h >>conftest.$ac_ext
52563cat >>conftest.$ac_ext <<_ACEOF
52564/* end confdefs.h.  */
52565
52566#include <limits.h>
52567#if HAVE_STDINT_H
52568#include <stdint.h>
52569#endif
52570#ifdef SIZE_MAX
52571Found it
52572#endif
52573
52574_ACEOF
52575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52576  $EGREP "Found it" >/dev/null 2>&1; then
52577  gl_cv_size_max=yes
52578fi
52579rm -f conftest*
52580
52581    if test -z "$gl_cv_size_max"; then
52582                        if test "$cross_compiling" = yes; then
52583  # Depending upon the size, compute the lo and hi bounds.
52584cat >conftest.$ac_ext <<_ACEOF
52585/* confdefs.h.  */
52586_ACEOF
52587cat confdefs.h >>conftest.$ac_ext
52588cat >>conftest.$ac_ext <<_ACEOF
52589/* end confdefs.h.  */
52590#include <stddef.h>
52591#include <limits.h>
52592int
52593main ()
52594{
52595static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
52596test_array [0] = 0
52597
52598  ;
52599  return 0;
52600}
52601_ACEOF
52602rm -f conftest.$ac_objext
52603if { (ac_try="$ac_compile"
52604case "(($ac_try" in
52605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52606  *) ac_try_echo=$ac_try;;
52607esac
52608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52609$as_echo "$ac_try_echo") >&5
52610  (eval "$ac_compile") 2>conftest.er1
52611  ac_status=$?
52612  grep -v '^ *+' conftest.er1 >conftest.err
52613  rm -f conftest.er1
52614  cat conftest.err >&5
52615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52616  (exit $ac_status); } && {
52617	 test -z "$ac_c_werror_flag" ||
52618	 test ! -s conftest.err
52619       } && test -s conftest.$ac_objext; then
52620  ac_lo=0 ac_mid=0
52621  while :; do
52622    cat >conftest.$ac_ext <<_ACEOF
52623/* confdefs.h.  */
52624_ACEOF
52625cat confdefs.h >>conftest.$ac_ext
52626cat >>conftest.$ac_ext <<_ACEOF
52627/* end confdefs.h.  */
52628#include <stddef.h>
52629#include <limits.h>
52630int
52631main ()
52632{
52633static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
52634test_array [0] = 0
52635
52636  ;
52637  return 0;
52638}
52639_ACEOF
52640rm -f conftest.$ac_objext
52641if { (ac_try="$ac_compile"
52642case "(($ac_try" in
52643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52644  *) ac_try_echo=$ac_try;;
52645esac
52646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52647$as_echo "$ac_try_echo") >&5
52648  (eval "$ac_compile") 2>conftest.er1
52649  ac_status=$?
52650  grep -v '^ *+' conftest.er1 >conftest.err
52651  rm -f conftest.er1
52652  cat conftest.err >&5
52653  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52654  (exit $ac_status); } && {
52655	 test -z "$ac_c_werror_flag" ||
52656	 test ! -s conftest.err
52657       } && test -s conftest.$ac_objext; then
52658  ac_hi=$ac_mid; break
52659else
52660  $as_echo "$as_me: failed program was:" >&5
52661sed 's/^/| /' conftest.$ac_ext >&5
52662
52663	ac_lo=`expr $ac_mid + 1`
52664			if test $ac_lo -le $ac_mid; then
52665			  ac_lo= ac_hi=
52666			  break
52667			fi
52668			ac_mid=`expr 2 '*' $ac_mid + 1`
52669fi
52670
52671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52672  done
52673else
52674  $as_echo "$as_me: failed program was:" >&5
52675sed 's/^/| /' conftest.$ac_ext >&5
52676
52677	cat >conftest.$ac_ext <<_ACEOF
52678/* confdefs.h.  */
52679_ACEOF
52680cat confdefs.h >>conftest.$ac_ext
52681cat >>conftest.$ac_ext <<_ACEOF
52682/* end confdefs.h.  */
52683#include <stddef.h>
52684#include <limits.h>
52685int
52686main ()
52687{
52688static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
52689test_array [0] = 0
52690
52691  ;
52692  return 0;
52693}
52694_ACEOF
52695rm -f conftest.$ac_objext
52696if { (ac_try="$ac_compile"
52697case "(($ac_try" in
52698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52699  *) ac_try_echo=$ac_try;;
52700esac
52701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52702$as_echo "$ac_try_echo") >&5
52703  (eval "$ac_compile") 2>conftest.er1
52704  ac_status=$?
52705  grep -v '^ *+' conftest.er1 >conftest.err
52706  rm -f conftest.er1
52707  cat conftest.err >&5
52708  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52709  (exit $ac_status); } && {
52710	 test -z "$ac_c_werror_flag" ||
52711	 test ! -s conftest.err
52712       } && test -s conftest.$ac_objext; then
52713  ac_hi=-1 ac_mid=-1
52714  while :; do
52715    cat >conftest.$ac_ext <<_ACEOF
52716/* confdefs.h.  */
52717_ACEOF
52718cat confdefs.h >>conftest.$ac_ext
52719cat >>conftest.$ac_ext <<_ACEOF
52720/* end confdefs.h.  */
52721#include <stddef.h>
52722#include <limits.h>
52723int
52724main ()
52725{
52726static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
52727test_array [0] = 0
52728
52729  ;
52730  return 0;
52731}
52732_ACEOF
52733rm -f conftest.$ac_objext
52734if { (ac_try="$ac_compile"
52735case "(($ac_try" in
52736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52737  *) ac_try_echo=$ac_try;;
52738esac
52739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52740$as_echo "$ac_try_echo") >&5
52741  (eval "$ac_compile") 2>conftest.er1
52742  ac_status=$?
52743  grep -v '^ *+' conftest.er1 >conftest.err
52744  rm -f conftest.er1
52745  cat conftest.err >&5
52746  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52747  (exit $ac_status); } && {
52748	 test -z "$ac_c_werror_flag" ||
52749	 test ! -s conftest.err
52750       } && test -s conftest.$ac_objext; then
52751  ac_lo=$ac_mid; break
52752else
52753  $as_echo "$as_me: failed program was:" >&5
52754sed 's/^/| /' conftest.$ac_ext >&5
52755
52756	ac_hi=`expr '(' $ac_mid ')' - 1`
52757			if test $ac_mid -le $ac_hi; then
52758			  ac_lo= ac_hi=
52759			  break
52760			fi
52761			ac_mid=`expr 2 '*' $ac_mid`
52762fi
52763
52764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52765  done
52766else
52767  $as_echo "$as_me: failed program was:" >&5
52768sed 's/^/| /' conftest.$ac_ext >&5
52769
52770	ac_lo= ac_hi=
52771fi
52772
52773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52774fi
52775
52776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52777# Binary search between lo and hi bounds.
52778while test "x$ac_lo" != "x$ac_hi"; do
52779  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
52780  cat >conftest.$ac_ext <<_ACEOF
52781/* confdefs.h.  */
52782_ACEOF
52783cat confdefs.h >>conftest.$ac_ext
52784cat >>conftest.$ac_ext <<_ACEOF
52785/* end confdefs.h.  */
52786#include <stddef.h>
52787#include <limits.h>
52788int
52789main ()
52790{
52791static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
52792test_array [0] = 0
52793
52794  ;
52795  return 0;
52796}
52797_ACEOF
52798rm -f conftest.$ac_objext
52799if { (ac_try="$ac_compile"
52800case "(($ac_try" in
52801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52802  *) ac_try_echo=$ac_try;;
52803esac
52804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52805$as_echo "$ac_try_echo") >&5
52806  (eval "$ac_compile") 2>conftest.er1
52807  ac_status=$?
52808  grep -v '^ *+' conftest.er1 >conftest.err
52809  rm -f conftest.er1
52810  cat conftest.err >&5
52811  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52812  (exit $ac_status); } && {
52813	 test -z "$ac_c_werror_flag" ||
52814	 test ! -s conftest.err
52815       } && test -s conftest.$ac_objext; then
52816  ac_hi=$ac_mid
52817else
52818  $as_echo "$as_me: failed program was:" >&5
52819sed 's/^/| /' conftest.$ac_ext >&5
52820
52821	ac_lo=`expr '(' $ac_mid ')' + 1`
52822fi
52823
52824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52825done
52826case $ac_lo in
52827?*) size_t_bits_minus_1=$ac_lo;;
52828'') size_t_bits_minus_1= ;;
52829esac
52830else
52831  cat >conftest.$ac_ext <<_ACEOF
52832/* confdefs.h.  */
52833_ACEOF
52834cat confdefs.h >>conftest.$ac_ext
52835cat >>conftest.$ac_ext <<_ACEOF
52836/* end confdefs.h.  */
52837#include <stddef.h>
52838#include <limits.h>
52839static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
52840static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
52841#include <stdio.h>
52842#include <stdlib.h>
52843int
52844main ()
52845{
52846
52847  FILE *f = fopen ("conftest.val", "w");
52848  if (! f)
52849    return 1;
52850  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
52851    {
52852      long int i = longval ();
52853      if (i != (sizeof (size_t) * CHAR_BIT - 1))
52854	return 1;
52855      fprintf (f, "%ld", i);
52856    }
52857  else
52858    {
52859      unsigned long int i = ulongval ();
52860      if (i != (sizeof (size_t) * CHAR_BIT - 1))
52861	return 1;
52862      fprintf (f, "%lu", i);
52863    }
52864  /* Do not output a trailing newline, as this causes \r\n confusion
52865     on some platforms.  */
52866  return ferror (f) || fclose (f) != 0;
52867
52868  ;
52869  return 0;
52870}
52871_ACEOF
52872rm -f conftest$ac_exeext
52873if { (ac_try="$ac_link"
52874case "(($ac_try" in
52875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52876  *) ac_try_echo=$ac_try;;
52877esac
52878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52879$as_echo "$ac_try_echo") >&5
52880  (eval "$ac_link") 2>&5
52881  ac_status=$?
52882  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52883  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
52884  { (case "(($ac_try" in
52885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52886  *) ac_try_echo=$ac_try;;
52887esac
52888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52889$as_echo "$ac_try_echo") >&5
52890  (eval "$ac_try") 2>&5
52891  ac_status=$?
52892  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52893  (exit $ac_status); }; }; then
52894  size_t_bits_minus_1=`cat conftest.val`
52895else
52896  $as_echo "$as_me: program exited with status $ac_status" >&5
52897$as_echo "$as_me: failed program was:" >&5
52898sed 's/^/| /' conftest.$ac_ext >&5
52899
52900( exit $ac_status )
52901size_t_bits_minus_1=
52902fi
52903rm -rf conftest.dSYM
52904rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
52905fi
52906rm -f conftest.val
52907      if test "$cross_compiling" = yes; then
52908  # Depending upon the size, compute the lo and hi bounds.
52909cat >conftest.$ac_ext <<_ACEOF
52910/* confdefs.h.  */
52911_ACEOF
52912cat confdefs.h >>conftest.$ac_ext
52913cat >>conftest.$ac_ext <<_ACEOF
52914/* end confdefs.h.  */
52915#include <stddef.h>
52916int
52917main ()
52918{
52919static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
52920test_array [0] = 0
52921
52922  ;
52923  return 0;
52924}
52925_ACEOF
52926rm -f conftest.$ac_objext
52927if { (ac_try="$ac_compile"
52928case "(($ac_try" in
52929  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52930  *) ac_try_echo=$ac_try;;
52931esac
52932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52933$as_echo "$ac_try_echo") >&5
52934  (eval "$ac_compile") 2>conftest.er1
52935  ac_status=$?
52936  grep -v '^ *+' conftest.er1 >conftest.err
52937  rm -f conftest.er1
52938  cat conftest.err >&5
52939  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52940  (exit $ac_status); } && {
52941	 test -z "$ac_c_werror_flag" ||
52942	 test ! -s conftest.err
52943       } && test -s conftest.$ac_objext; then
52944  ac_lo=0 ac_mid=0
52945  while :; do
52946    cat >conftest.$ac_ext <<_ACEOF
52947/* confdefs.h.  */
52948_ACEOF
52949cat confdefs.h >>conftest.$ac_ext
52950cat >>conftest.$ac_ext <<_ACEOF
52951/* end confdefs.h.  */
52952#include <stddef.h>
52953int
52954main ()
52955{
52956static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
52957test_array [0] = 0
52958
52959  ;
52960  return 0;
52961}
52962_ACEOF
52963rm -f conftest.$ac_objext
52964if { (ac_try="$ac_compile"
52965case "(($ac_try" in
52966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52967  *) ac_try_echo=$ac_try;;
52968esac
52969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52970$as_echo "$ac_try_echo") >&5
52971  (eval "$ac_compile") 2>conftest.er1
52972  ac_status=$?
52973  grep -v '^ *+' conftest.er1 >conftest.err
52974  rm -f conftest.er1
52975  cat conftest.err >&5
52976  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52977  (exit $ac_status); } && {
52978	 test -z "$ac_c_werror_flag" ||
52979	 test ! -s conftest.err
52980       } && test -s conftest.$ac_objext; then
52981  ac_hi=$ac_mid; break
52982else
52983  $as_echo "$as_me: failed program was:" >&5
52984sed 's/^/| /' conftest.$ac_ext >&5
52985
52986	ac_lo=`expr $ac_mid + 1`
52987			if test $ac_lo -le $ac_mid; then
52988			  ac_lo= ac_hi=
52989			  break
52990			fi
52991			ac_mid=`expr 2 '*' $ac_mid + 1`
52992fi
52993
52994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52995  done
52996else
52997  $as_echo "$as_me: failed program was:" >&5
52998sed 's/^/| /' conftest.$ac_ext >&5
52999
53000	cat >conftest.$ac_ext <<_ACEOF
53001/* confdefs.h.  */
53002_ACEOF
53003cat confdefs.h >>conftest.$ac_ext
53004cat >>conftest.$ac_ext <<_ACEOF
53005/* end confdefs.h.  */
53006#include <stddef.h>
53007int
53008main ()
53009{
53010static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
53011test_array [0] = 0
53012
53013  ;
53014  return 0;
53015}
53016_ACEOF
53017rm -f conftest.$ac_objext
53018if { (ac_try="$ac_compile"
53019case "(($ac_try" in
53020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53021  *) ac_try_echo=$ac_try;;
53022esac
53023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53024$as_echo "$ac_try_echo") >&5
53025  (eval "$ac_compile") 2>conftest.er1
53026  ac_status=$?
53027  grep -v '^ *+' conftest.er1 >conftest.err
53028  rm -f conftest.er1
53029  cat conftest.err >&5
53030  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53031  (exit $ac_status); } && {
53032	 test -z "$ac_c_werror_flag" ||
53033	 test ! -s conftest.err
53034       } && test -s conftest.$ac_objext; then
53035  ac_hi=-1 ac_mid=-1
53036  while :; do
53037    cat >conftest.$ac_ext <<_ACEOF
53038/* confdefs.h.  */
53039_ACEOF
53040cat confdefs.h >>conftest.$ac_ext
53041cat >>conftest.$ac_ext <<_ACEOF
53042/* end confdefs.h.  */
53043#include <stddef.h>
53044int
53045main ()
53046{
53047static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
53048test_array [0] = 0
53049
53050  ;
53051  return 0;
53052}
53053_ACEOF
53054rm -f conftest.$ac_objext
53055if { (ac_try="$ac_compile"
53056case "(($ac_try" in
53057  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53058  *) ac_try_echo=$ac_try;;
53059esac
53060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53061$as_echo "$ac_try_echo") >&5
53062  (eval "$ac_compile") 2>conftest.er1
53063  ac_status=$?
53064  grep -v '^ *+' conftest.er1 >conftest.err
53065  rm -f conftest.er1
53066  cat conftest.err >&5
53067  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53068  (exit $ac_status); } && {
53069	 test -z "$ac_c_werror_flag" ||
53070	 test ! -s conftest.err
53071       } && test -s conftest.$ac_objext; then
53072  ac_lo=$ac_mid; break
53073else
53074  $as_echo "$as_me: failed program was:" >&5
53075sed 's/^/| /' conftest.$ac_ext >&5
53076
53077	ac_hi=`expr '(' $ac_mid ')' - 1`
53078			if test $ac_mid -le $ac_hi; then
53079			  ac_lo= ac_hi=
53080			  break
53081			fi
53082			ac_mid=`expr 2 '*' $ac_mid`
53083fi
53084
53085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53086  done
53087else
53088  $as_echo "$as_me: failed program was:" >&5
53089sed 's/^/| /' conftest.$ac_ext >&5
53090
53091	ac_lo= ac_hi=
53092fi
53093
53094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53095fi
53096
53097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53098# Binary search between lo and hi bounds.
53099while test "x$ac_lo" != "x$ac_hi"; do
53100  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
53101  cat >conftest.$ac_ext <<_ACEOF
53102/* confdefs.h.  */
53103_ACEOF
53104cat confdefs.h >>conftest.$ac_ext
53105cat >>conftest.$ac_ext <<_ACEOF
53106/* end confdefs.h.  */
53107#include <stddef.h>
53108int
53109main ()
53110{
53111static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
53112test_array [0] = 0
53113
53114  ;
53115  return 0;
53116}
53117_ACEOF
53118rm -f conftest.$ac_objext
53119if { (ac_try="$ac_compile"
53120case "(($ac_try" in
53121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53122  *) ac_try_echo=$ac_try;;
53123esac
53124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53125$as_echo "$ac_try_echo") >&5
53126  (eval "$ac_compile") 2>conftest.er1
53127  ac_status=$?
53128  grep -v '^ *+' conftest.er1 >conftest.err
53129  rm -f conftest.er1
53130  cat conftest.err >&5
53131  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53132  (exit $ac_status); } && {
53133	 test -z "$ac_c_werror_flag" ||
53134	 test ! -s conftest.err
53135       } && test -s conftest.$ac_objext; then
53136  ac_hi=$ac_mid
53137else
53138  $as_echo "$as_me: failed program was:" >&5
53139sed 's/^/| /' conftest.$ac_ext >&5
53140
53141	ac_lo=`expr '(' $ac_mid ')' + 1`
53142fi
53143
53144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53145done
53146case $ac_lo in
53147?*) fits_in_uint=$ac_lo;;
53148'') fits_in_uint= ;;
53149esac
53150else
53151  cat >conftest.$ac_ext <<_ACEOF
53152/* confdefs.h.  */
53153_ACEOF
53154cat confdefs.h >>conftest.$ac_ext
53155cat >>conftest.$ac_ext <<_ACEOF
53156/* end confdefs.h.  */
53157#include <stddef.h>
53158static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
53159static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
53160#include <stdio.h>
53161#include <stdlib.h>
53162int
53163main ()
53164{
53165
53166  FILE *f = fopen ("conftest.val", "w");
53167  if (! f)
53168    return 1;
53169  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
53170    {
53171      long int i = longval ();
53172      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
53173	return 1;
53174      fprintf (f, "%ld", i);
53175    }
53176  else
53177    {
53178      unsigned long int i = ulongval ();
53179      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
53180	return 1;
53181      fprintf (f, "%lu", i);
53182    }
53183  /* Do not output a trailing newline, as this causes \r\n confusion
53184     on some platforms.  */
53185  return ferror (f) || fclose (f) != 0;
53186
53187  ;
53188  return 0;
53189}
53190_ACEOF
53191rm -f conftest$ac_exeext
53192if { (ac_try="$ac_link"
53193case "(($ac_try" in
53194  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53195  *) ac_try_echo=$ac_try;;
53196esac
53197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53198$as_echo "$ac_try_echo") >&5
53199  (eval "$ac_link") 2>&5
53200  ac_status=$?
53201  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53202  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
53203  { (case "(($ac_try" in
53204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53205  *) ac_try_echo=$ac_try;;
53206esac
53207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53208$as_echo "$ac_try_echo") >&5
53209  (eval "$ac_try") 2>&5
53210  ac_status=$?
53211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53212  (exit $ac_status); }; }; then
53213  fits_in_uint=`cat conftest.val`
53214else
53215  $as_echo "$as_me: program exited with status $ac_status" >&5
53216$as_echo "$as_me: failed program was:" >&5
53217sed 's/^/| /' conftest.$ac_ext >&5
53218
53219( exit $ac_status )
53220fits_in_uint=
53221fi
53222rm -rf conftest.dSYM
53223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
53224fi
53225rm -f conftest.val
53226      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
53227        if test $fits_in_uint = 1; then
53228                              cat >conftest.$ac_ext <<_ACEOF
53229/* confdefs.h.  */
53230_ACEOF
53231cat confdefs.h >>conftest.$ac_ext
53232cat >>conftest.$ac_ext <<_ACEOF
53233/* end confdefs.h.  */
53234#include <stddef.h>
53235            extern size_t foo;
53236            extern unsigned long foo;
53237
53238int
53239main ()
53240{
53241
53242  ;
53243  return 0;
53244}
53245_ACEOF
53246rm -f conftest.$ac_objext
53247if { (ac_try="$ac_compile"
53248case "(($ac_try" in
53249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53250  *) ac_try_echo=$ac_try;;
53251esac
53252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53253$as_echo "$ac_try_echo") >&5
53254  (eval "$ac_compile") 2>conftest.er1
53255  ac_status=$?
53256  grep -v '^ *+' conftest.er1 >conftest.err
53257  rm -f conftest.er1
53258  cat conftest.err >&5
53259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53260  (exit $ac_status); } && {
53261	 test -z "$ac_c_werror_flag" ||
53262	 test ! -s conftest.err
53263       } && test -s conftest.$ac_objext; then
53264  fits_in_uint=0
53265else
53266  $as_echo "$as_me: failed program was:" >&5
53267sed 's/^/| /' conftest.$ac_ext >&5
53268
53269
53270fi
53271
53272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53273        fi
53274                                if test $fits_in_uint = 1; then
53275          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
53276        else
53277          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
53278        fi
53279      else
53280                gl_cv_size_max='((size_t)~(size_t)0)'
53281      fi
53282    fi
53283
53284fi
53285
53286  { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
53287$as_echo "$gl_cv_size_max" >&6; }
53288  if test "$gl_cv_size_max" != yes; then
53289
53290cat >>confdefs.h <<_ACEOF
53291#define SIZE_MAX $gl_cv_size_max
53292_ACEOF
53293
53294  fi
53295
53296
53297
53298
53299for ac_func in snprintf
53300do
53301as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
53302{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
53303$as_echo_n "checking for $ac_func... " >&6; }
53304if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
53305  $as_echo_n "(cached) " >&6
53306else
53307  cat >conftest.$ac_ext <<_ACEOF
53308/* confdefs.h.  */
53309_ACEOF
53310cat confdefs.h >>conftest.$ac_ext
53311cat >>conftest.$ac_ext <<_ACEOF
53312/* end confdefs.h.  */
53313/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
53314   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
53315#define $ac_func innocuous_$ac_func
53316
53317/* System header to define __stub macros and hopefully few prototypes,
53318    which can conflict with char $ac_func (); below.
53319    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
53320    <limits.h> exists even on freestanding compilers.  */
53321
53322#ifdef __STDC__
53323# include <limits.h>
53324#else
53325# include <assert.h>
53326#endif
53327
53328#undef $ac_func
53329
53330/* Override any GCC internal prototype to avoid an error.
53331   Use char because int might match the return type of a GCC
53332   builtin and then its argument prototype would still apply.  */
53333#ifdef __cplusplus
53334extern "C"
53335#endif
53336char $ac_func ();
53337/* The GNU C library defines this for functions which it implements
53338    to always fail with ENOSYS.  Some functions are actually named
53339    something starting with __ and the normal name is an alias.  */
53340#if defined __stub_$ac_func || defined __stub___$ac_func
53341choke me
53342#endif
53343
53344int
53345main ()
53346{
53347return $ac_func ();
53348  ;
53349  return 0;
53350}
53351_ACEOF
53352rm -f conftest.$ac_objext conftest$ac_exeext
53353if { (ac_try="$ac_link"
53354case "(($ac_try" in
53355  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53356  *) ac_try_echo=$ac_try;;
53357esac
53358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53359$as_echo "$ac_try_echo") >&5
53360  (eval "$ac_link") 2>conftest.er1
53361  ac_status=$?
53362  grep -v '^ *+' conftest.er1 >conftest.err
53363  rm -f conftest.er1
53364  cat conftest.err >&5
53365  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53366  (exit $ac_status); } && {
53367	 test -z "$ac_c_werror_flag" ||
53368	 test ! -s conftest.err
53369       } && test -s conftest$ac_exeext && {
53370	 test "$cross_compiling" = yes ||
53371	 $as_test_x conftest$ac_exeext
53372       }; then
53373  eval "$as_ac_var=yes"
53374else
53375  $as_echo "$as_me: failed program was:" >&5
53376sed 's/^/| /' conftest.$ac_ext >&5
53377
53378	eval "$as_ac_var=no"
53379fi
53380
53381rm -rf conftest.dSYM
53382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
53383      conftest$ac_exeext conftest.$ac_ext
53384fi
53385ac_res=`eval 'as_val=${'$as_ac_var'}
53386		 $as_echo "$as_val"'`
53387	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53388$as_echo "$ac_res" >&6; }
53389as_val=`eval 'as_val=${'$as_ac_var'}
53390		 $as_echo "$as_val"'`
53391   if test "x$as_val" = x""yes; then
53392  cat >>confdefs.h <<_ACEOF
53393#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
53394_ACEOF
53395
53396fi
53397done
53398
53399  if test $ac_cv_func_snprintf = no; then
53400
53401
53402
53403
53404
53405
53406
53407
53408
53409  gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
53410
53411  if test $ac_cv_func_snprintf = yes; then
53412    REPLACE_SNPRINTF=1
53413  fi
53414  :
53415
53416  fi
53417
53418  :
53419
53420
53421
53422
53423
53424  if test $ac_cv_have_decl_snprintf = no; then
53425    HAVE_DECL_SNPRINTF=0
53426  fi
53427
53428
53429
53430  GNULIB_SNPRINTF=1
53431
53432
53433  { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
53434$as_echo_n "checking for ssize_t... " >&6; }
53435if test "${gt_cv_ssize_t+set}" = set; then
53436  $as_echo_n "(cached) " >&6
53437else
53438  cat >conftest.$ac_ext <<_ACEOF
53439/* confdefs.h.  */
53440_ACEOF
53441cat confdefs.h >>conftest.$ac_ext
53442cat >>conftest.$ac_ext <<_ACEOF
53443/* end confdefs.h.  */
53444#include <sys/types.h>
53445int
53446main ()
53447{
53448int x = sizeof (ssize_t *) + sizeof (ssize_t);
53449        return !x;
53450  ;
53451  return 0;
53452}
53453_ACEOF
53454rm -f conftest.$ac_objext
53455if { (ac_try="$ac_compile"
53456case "(($ac_try" in
53457  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53458  *) ac_try_echo=$ac_try;;
53459esac
53460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53461$as_echo "$ac_try_echo") >&5
53462  (eval "$ac_compile") 2>conftest.er1
53463  ac_status=$?
53464  grep -v '^ *+' conftest.er1 >conftest.err
53465  rm -f conftest.er1
53466  cat conftest.err >&5
53467  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53468  (exit $ac_status); } && {
53469	 test -z "$ac_c_werror_flag" ||
53470	 test ! -s conftest.err
53471       } && test -s conftest.$ac_objext; then
53472  gt_cv_ssize_t=yes
53473else
53474  $as_echo "$as_me: failed program was:" >&5
53475sed 's/^/| /' conftest.$ac_ext >&5
53476
53477	gt_cv_ssize_t=no
53478fi
53479
53480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53481fi
53482{ $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
53483$as_echo "$gt_cv_ssize_t" >&6; }
53484  if test $gt_cv_ssize_t = no; then
53485
53486cat >>confdefs.h <<\_ACEOF
53487#define ssize_t int
53488_ACEOF
53489
53490  fi
53491
53492
53493  { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
53494$as_echo_n "checking for va_copy... " >&6; }
53495  if test "${gl_cv_func_va_copy+set}" = set; then
53496  $as_echo_n "(cached) " >&6
53497else
53498
53499    cat >conftest.$ac_ext <<_ACEOF
53500/* confdefs.h.  */
53501_ACEOF
53502cat confdefs.h >>conftest.$ac_ext
53503cat >>conftest.$ac_ext <<_ACEOF
53504/* end confdefs.h.  */
53505#include <stdarg.h>
53506int
53507main ()
53508{
53509
53510#ifndef va_copy
53511void (*func) (va_list, va_list) = va_copy;
53512#endif
53513
53514  ;
53515  return 0;
53516}
53517_ACEOF
53518rm -f conftest.$ac_objext
53519if { (ac_try="$ac_compile"
53520case "(($ac_try" in
53521  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53522  *) ac_try_echo=$ac_try;;
53523esac
53524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53525$as_echo "$ac_try_echo") >&5
53526  (eval "$ac_compile") 2>conftest.er1
53527  ac_status=$?
53528  grep -v '^ *+' conftest.er1 >conftest.err
53529  rm -f conftest.er1
53530  cat conftest.err >&5
53531  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53532  (exit $ac_status); } && {
53533	 test -z "$ac_c_werror_flag" ||
53534	 test ! -s conftest.err
53535       } && test -s conftest.$ac_objext; then
53536  gl_cv_func_va_copy=yes
53537else
53538  $as_echo "$as_me: failed program was:" >&5
53539sed 's/^/| /' conftest.$ac_ext >&5
53540
53541	gl_cv_func_va_copy=no
53542fi
53543
53544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53545fi
53546
53547  { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
53548$as_echo "$gl_cv_func_va_copy" >&6; }
53549  if test $gl_cv_func_va_copy = no; then
53550    # Provide a substitute, either __va_copy or as a simple assignment.
53551    if test "${gl_cv_func___va_copy+set}" = set; then
53552  $as_echo_n "(cached) " >&6
53553else
53554
53555      cat >conftest.$ac_ext <<_ACEOF
53556/* confdefs.h.  */
53557_ACEOF
53558cat confdefs.h >>conftest.$ac_ext
53559cat >>conftest.$ac_ext <<_ACEOF
53560/* end confdefs.h.  */
53561#include <stdarg.h>
53562int
53563main ()
53564{
53565
53566#ifndef __va_copy
53567error, bail out
53568#endif
53569
53570  ;
53571  return 0;
53572}
53573_ACEOF
53574rm -f conftest.$ac_objext
53575if { (ac_try="$ac_compile"
53576case "(($ac_try" in
53577  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53578  *) ac_try_echo=$ac_try;;
53579esac
53580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53581$as_echo "$ac_try_echo") >&5
53582  (eval "$ac_compile") 2>conftest.er1
53583  ac_status=$?
53584  grep -v '^ *+' conftest.er1 >conftest.err
53585  rm -f conftest.er1
53586  cat conftest.err >&5
53587  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53588  (exit $ac_status); } && {
53589	 test -z "$ac_c_werror_flag" ||
53590	 test ! -s conftest.err
53591       } && test -s conftest.$ac_objext; then
53592  gl_cv_func___va_copy=yes
53593else
53594  $as_echo "$as_me: failed program was:" >&5
53595sed 's/^/| /' conftest.$ac_ext >&5
53596
53597	gl_cv_func___va_copy=no
53598fi
53599
53600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53601fi
53602
53603    if test $gl_cv_func___va_copy = yes; then
53604
53605cat >>confdefs.h <<\_ACEOF
53606#define va_copy __va_copy
53607_ACEOF
53608
53609    else
53610
53611
53612
53613cat >>confdefs.h <<\_ACEOF
53614#define va_copy gl_va_copy
53615_ACEOF
53616
53617    fi
53618  fi
53619
53620
53621
53622
53623  # Define two additional variables used in the Makefile substitution.
53624
53625  if test "$ac_cv_header_stdbool_h" = yes; then
53626    STDBOOL_H=''
53627  else
53628    STDBOOL_H='stdbool.h'
53629  fi
53630
53631
53632  if test "$ac_cv_type__Bool" = yes; then
53633    HAVE__BOOL=1
53634  else
53635    HAVE__BOOL=0
53636  fi
53637
53638
53639
53640
53641
53642  if test $ac_cv_type_long_long_int = yes; then
53643    HAVE_LONG_LONG_INT=1
53644  else
53645    HAVE_LONG_LONG_INT=0
53646  fi
53647
53648
53649  if test $ac_cv_type_unsigned_long_long_int = yes; then
53650    HAVE_UNSIGNED_LONG_LONG_INT=1
53651  else
53652    HAVE_UNSIGNED_LONG_LONG_INT=0
53653  fi
53654
53655
53656      if test $ac_cv_header_inttypes_h = yes; then
53657    HAVE_INTTYPES_H=1
53658  else
53659    HAVE_INTTYPES_H=0
53660  fi
53661
53662
53663      if test $ac_cv_header_sys_types_h = yes; then
53664    HAVE_SYS_TYPES_H=1
53665  else
53666    HAVE_SYS_TYPES_H=0
53667  fi
53668
53669
53670
53671
53672
53673  :
53674
53675
53676
53677
53678
53679
53680
53681     if test $gl_cv_have_include_next = yes; then
53682       gl_cv_next_stdint_h='<'stdint.h'>'
53683     else
53684       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
53685$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
53686if test "${gl_cv_next_stdint_h+set}" = set; then
53687  $as_echo_n "(cached) " >&6
53688else
53689
53690	  if test $ac_cv_header_stdint_h = yes; then
53691	    cat >conftest.$ac_ext <<_ACEOF
53692/* confdefs.h.  */
53693_ACEOF
53694cat confdefs.h >>conftest.$ac_ext
53695cat >>conftest.$ac_ext <<_ACEOF
53696/* end confdefs.h.  */
53697#include <stdint.h>
53698
53699_ACEOF
53700	    	    	    	    gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53701	       sed -n '\#/stdint.h#{
53702		 s#.*"\(.*/stdint.h\)".*#\1#
53703		 s#^/[^/]#//&#
53704		 p
53705		 q
53706	       }'`'"'
53707	  else
53708	    gl_cv_next_stdint_h='<'stdint.h'>'
53709	  fi
53710
53711fi
53712{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
53713$as_echo "$gl_cv_next_stdint_h" >&6; }
53714     fi
53715     NEXT_STDINT_H=$gl_cv_next_stdint_h
53716
53717
53718
53719  if test $ac_cv_header_stdint_h = yes; then
53720    HAVE_STDINT_H=1
53721  else
53722    HAVE_STDINT_H=0
53723  fi
53724
53725
53726    if test $ac_cv_header_stdint_h = yes; then
53727    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
53728$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
53729if test "${gl_cv_header_working_stdint_h+set}" = set; then
53730  $as_echo_n "(cached) " >&6
53731else
53732  gl_cv_header_working_stdint_h=no
53733       cat >conftest.$ac_ext <<_ACEOF
53734
53735         /* confdefs.h.  */
53736_ACEOF
53737cat confdefs.h >>conftest.$ac_ext
53738cat >>conftest.$ac_ext <<_ACEOF
53739/* end confdefs.h.  */
53740
53741#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
53742#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
53743#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
53744#include <stdint.h>
53745/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
53746#if !(defined WCHAR_MIN && defined WCHAR_MAX)
53747#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
53748#endif
53749
53750
53751  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
53752     included before <wchar.h>.  */
53753  #include <stddef.h>
53754  #include <signal.h>
53755  #if HAVE_WCHAR_H
53756  # include <stdio.h>
53757  # include <time.h>
53758  # include <wchar.h>
53759  #endif
53760
53761
53762#ifdef INT8_MAX
53763int8_t a1 = INT8_MAX;
53764int8_t a1min = INT8_MIN;
53765#endif
53766#ifdef INT16_MAX
53767int16_t a2 = INT16_MAX;
53768int16_t a2min = INT16_MIN;
53769#endif
53770#ifdef INT32_MAX
53771int32_t a3 = INT32_MAX;
53772int32_t a3min = INT32_MIN;
53773#endif
53774#ifdef INT64_MAX
53775int64_t a4 = INT64_MAX;
53776int64_t a4min = INT64_MIN;
53777#endif
53778#ifdef UINT8_MAX
53779uint8_t b1 = UINT8_MAX;
53780#else
53781typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
53782#endif
53783#ifdef UINT16_MAX
53784uint16_t b2 = UINT16_MAX;
53785#endif
53786#ifdef UINT32_MAX
53787uint32_t b3 = UINT32_MAX;
53788#endif
53789#ifdef UINT64_MAX
53790uint64_t b4 = UINT64_MAX;
53791#endif
53792int_least8_t c1 = INT8_C (0x7f);
53793int_least8_t c1max = INT_LEAST8_MAX;
53794int_least8_t c1min = INT_LEAST8_MIN;
53795int_least16_t c2 = INT16_C (0x7fff);
53796int_least16_t c2max = INT_LEAST16_MAX;
53797int_least16_t c2min = INT_LEAST16_MIN;
53798int_least32_t c3 = INT32_C (0x7fffffff);
53799int_least32_t c3max = INT_LEAST32_MAX;
53800int_least32_t c3min = INT_LEAST32_MIN;
53801int_least64_t c4 = INT64_C (0x7fffffffffffffff);
53802int_least64_t c4max = INT_LEAST64_MAX;
53803int_least64_t c4min = INT_LEAST64_MIN;
53804uint_least8_t d1 = UINT8_C (0xff);
53805uint_least8_t d1max = UINT_LEAST8_MAX;
53806uint_least16_t d2 = UINT16_C (0xffff);
53807uint_least16_t d2max = UINT_LEAST16_MAX;
53808uint_least32_t d3 = UINT32_C (0xffffffff);
53809uint_least32_t d3max = UINT_LEAST32_MAX;
53810uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
53811uint_least64_t d4max = UINT_LEAST64_MAX;
53812int_fast8_t e1 = INT_FAST8_MAX;
53813int_fast8_t e1min = INT_FAST8_MIN;
53814int_fast16_t e2 = INT_FAST16_MAX;
53815int_fast16_t e2min = INT_FAST16_MIN;
53816int_fast32_t e3 = INT_FAST32_MAX;
53817int_fast32_t e3min = INT_FAST32_MIN;
53818int_fast64_t e4 = INT_FAST64_MAX;
53819int_fast64_t e4min = INT_FAST64_MIN;
53820uint_fast8_t f1 = UINT_FAST8_MAX;
53821uint_fast16_t f2 = UINT_FAST16_MAX;
53822uint_fast32_t f3 = UINT_FAST32_MAX;
53823uint_fast64_t f4 = UINT_FAST64_MAX;
53824#ifdef INTPTR_MAX
53825intptr_t g = INTPTR_MAX;
53826intptr_t gmin = INTPTR_MIN;
53827#endif
53828#ifdef UINTPTR_MAX
53829uintptr_t h = UINTPTR_MAX;
53830#endif
53831intmax_t i = INTMAX_MAX;
53832uintmax_t j = UINTMAX_MAX;
53833
53834#include <limits.h> /* for CHAR_BIT */
53835#define TYPE_MINIMUM(t) \
53836  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
53837#define TYPE_MAXIMUM(t) \
53838  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
53839struct s {
53840  int check_PTRDIFF:
53841      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
53842      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
53843      ? 1 : -1;
53844  /* Detect bug in FreeBSD 6.0 / ia64.  */
53845  int check_SIG_ATOMIC:
53846      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
53847      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
53848      ? 1 : -1;
53849  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
53850  int check_WCHAR:
53851      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
53852      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
53853      ? 1 : -1;
53854  /* Detect bug in mingw.  */
53855  int check_WINT:
53856      WINT_MIN == TYPE_MINIMUM (wint_t)
53857      && WINT_MAX == TYPE_MAXIMUM (wint_t)
53858      ? 1 : -1;
53859
53860  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
53861  int check_UINT8_C:
53862        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
53863  int check_UINT16_C:
53864        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
53865
53866  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
53867#ifdef UINT8_MAX
53868  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
53869#endif
53870#ifdef UINT16_MAX
53871  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
53872#endif
53873#ifdef UINT32_MAX
53874  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
53875#endif
53876#ifdef UINT64_MAX
53877  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
53878#endif
53879  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
53880  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
53881  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
53882  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
53883  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
53884  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
53885  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
53886  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
53887  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
53888  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
53889  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
53890};
53891
53892int
53893main ()
53894{
53895
53896  ;
53897  return 0;
53898}
53899_ACEOF
53900rm -f conftest.$ac_objext
53901if { (ac_try="$ac_compile"
53902case "(($ac_try" in
53903  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53904  *) ac_try_echo=$ac_try;;
53905esac
53906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53907$as_echo "$ac_try_echo") >&5
53908  (eval "$ac_compile") 2>conftest.er1
53909  ac_status=$?
53910  grep -v '^ *+' conftest.er1 >conftest.err
53911  rm -f conftest.er1
53912  cat conftest.err >&5
53913  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53914  (exit $ac_status); } && {
53915	 test -z "$ac_c_werror_flag" ||
53916	 test ! -s conftest.err
53917       } && test -s conftest.$ac_objext; then
53918  gl_cv_header_working_stdint_h=yes
53919else
53920  $as_echo "$as_me: failed program was:" >&5
53921sed 's/^/| /' conftest.$ac_ext >&5
53922
53923
53924fi
53925
53926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53927fi
53928{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
53929$as_echo "$gl_cv_header_working_stdint_h" >&6; }
53930  fi
53931  if test "$gl_cv_header_working_stdint_h" = yes; then
53932    STDINT_H=
53933  else
53934
53935
53936for ac_header in sys/inttypes.h sys/bitypes.h
53937do
53938as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53939if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53940  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53941$as_echo_n "checking for $ac_header... " >&6; }
53942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53943  $as_echo_n "(cached) " >&6
53944fi
53945ac_res=`eval 'as_val=${'$as_ac_Header'}
53946		 $as_echo "$as_val"'`
53947	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53948$as_echo "$ac_res" >&6; }
53949else
53950  # Is the header compilable?
53951{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53952$as_echo_n "checking $ac_header usability... " >&6; }
53953cat >conftest.$ac_ext <<_ACEOF
53954/* confdefs.h.  */
53955_ACEOF
53956cat confdefs.h >>conftest.$ac_ext
53957cat >>conftest.$ac_ext <<_ACEOF
53958/* end confdefs.h.  */
53959$ac_includes_default
53960#include <$ac_header>
53961_ACEOF
53962rm -f conftest.$ac_objext
53963if { (ac_try="$ac_compile"
53964case "(($ac_try" in
53965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53966  *) ac_try_echo=$ac_try;;
53967esac
53968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53969$as_echo "$ac_try_echo") >&5
53970  (eval "$ac_compile") 2>conftest.er1
53971  ac_status=$?
53972  grep -v '^ *+' conftest.er1 >conftest.err
53973  rm -f conftest.er1
53974  cat conftest.err >&5
53975  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53976  (exit $ac_status); } && {
53977	 test -z "$ac_c_werror_flag" ||
53978	 test ! -s conftest.err
53979       } && test -s conftest.$ac_objext; then
53980  ac_header_compiler=yes
53981else
53982  $as_echo "$as_me: failed program was:" >&5
53983sed 's/^/| /' conftest.$ac_ext >&5
53984
53985	ac_header_compiler=no
53986fi
53987
53988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53989{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53990$as_echo "$ac_header_compiler" >&6; }
53991
53992# Is the header present?
53993{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53994$as_echo_n "checking $ac_header presence... " >&6; }
53995cat >conftest.$ac_ext <<_ACEOF
53996/* confdefs.h.  */
53997_ACEOF
53998cat confdefs.h >>conftest.$ac_ext
53999cat >>conftest.$ac_ext <<_ACEOF
54000/* end confdefs.h.  */
54001#include <$ac_header>
54002_ACEOF
54003if { (ac_try="$ac_cpp conftest.$ac_ext"
54004case "(($ac_try" in
54005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54006  *) ac_try_echo=$ac_try;;
54007esac
54008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54009$as_echo "$ac_try_echo") >&5
54010  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54011  ac_status=$?
54012  grep -v '^ *+' conftest.er1 >conftest.err
54013  rm -f conftest.er1
54014  cat conftest.err >&5
54015  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54016  (exit $ac_status); } >/dev/null && {
54017	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54018	 test ! -s conftest.err
54019       }; then
54020  ac_header_preproc=yes
54021else
54022  $as_echo "$as_me: failed program was:" >&5
54023sed 's/^/| /' conftest.$ac_ext >&5
54024
54025  ac_header_preproc=no
54026fi
54027
54028rm -f conftest.err conftest.$ac_ext
54029{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54030$as_echo "$ac_header_preproc" >&6; }
54031
54032# So?  What about this header?
54033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54034  yes:no: )
54035    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54036$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54037    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54038$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54039    ac_header_preproc=yes
54040    ;;
54041  no:yes:* )
54042    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54043$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54044    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54045$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54046    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54047$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54048    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54049$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54050    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54051$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54052    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54053$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54054
54055    ;;
54056esac
54057{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
54058$as_echo_n "checking for $ac_header... " >&6; }
54059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54060  $as_echo_n "(cached) " >&6
54061else
54062  eval "$as_ac_Header=\$ac_header_preproc"
54063fi
54064ac_res=`eval 'as_val=${'$as_ac_Header'}
54065		 $as_echo "$as_val"'`
54066	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54067$as_echo "$ac_res" >&6; }
54068
54069fi
54070as_val=`eval 'as_val=${'$as_ac_Header'}
54071		 $as_echo "$as_val"'`
54072   if test "x$as_val" = x""yes; then
54073  cat >>confdefs.h <<_ACEOF
54074#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
54075_ACEOF
54076
54077fi
54078
54079done
54080
54081    if test $ac_cv_header_sys_inttypes_h = yes; then
54082      HAVE_SYS_INTTYPES_H=1
54083    else
54084      HAVE_SYS_INTTYPES_H=0
54085    fi
54086
54087    if test $ac_cv_header_sys_bitypes_h = yes; then
54088      HAVE_SYS_BITYPES_H=1
54089    else
54090      HAVE_SYS_BITYPES_H=0
54091    fi
54092
54093
54094
54095  :
54096
54097
54098
54099
54100
54101
54102
54103
54104
54105
54106
54107
54108
54109
54110  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
54111    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
54112$as_echo_n "checking for bit size of $gltype... " >&6; }
54113if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
54114  $as_echo_n "(cached) " >&6
54115else
54116  if test "$cross_compiling" = yes; then
54117  # Depending upon the size, compute the lo and hi bounds.
54118cat >conftest.$ac_ext <<_ACEOF
54119/* confdefs.h.  */
54120_ACEOF
54121cat confdefs.h >>conftest.$ac_ext
54122cat >>conftest.$ac_ext <<_ACEOF
54123/* end confdefs.h.  */
54124
54125  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54126     included before <wchar.h>.  */
54127  #include <stddef.h>
54128  #include <signal.h>
54129  #if HAVE_WCHAR_H
54130  # include <stdio.h>
54131  # include <time.h>
54132  # include <wchar.h>
54133  #endif
54134
54135#include <limits.h>
54136int
54137main ()
54138{
54139static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
54140test_array [0] = 0
54141
54142  ;
54143  return 0;
54144}
54145_ACEOF
54146rm -f conftest.$ac_objext
54147if { (ac_try="$ac_compile"
54148case "(($ac_try" in
54149  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54150  *) ac_try_echo=$ac_try;;
54151esac
54152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54153$as_echo "$ac_try_echo") >&5
54154  (eval "$ac_compile") 2>conftest.er1
54155  ac_status=$?
54156  grep -v '^ *+' conftest.er1 >conftest.err
54157  rm -f conftest.er1
54158  cat conftest.err >&5
54159  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54160  (exit $ac_status); } && {
54161	 test -z "$ac_c_werror_flag" ||
54162	 test ! -s conftest.err
54163       } && test -s conftest.$ac_objext; then
54164  ac_lo=0 ac_mid=0
54165  while :; do
54166    cat >conftest.$ac_ext <<_ACEOF
54167/* confdefs.h.  */
54168_ACEOF
54169cat confdefs.h >>conftest.$ac_ext
54170cat >>conftest.$ac_ext <<_ACEOF
54171/* end confdefs.h.  */
54172
54173  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54174     included before <wchar.h>.  */
54175  #include <stddef.h>
54176  #include <signal.h>
54177  #if HAVE_WCHAR_H
54178  # include <stdio.h>
54179  # include <time.h>
54180  # include <wchar.h>
54181  #endif
54182
54183#include <limits.h>
54184int
54185main ()
54186{
54187static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
54188test_array [0] = 0
54189
54190  ;
54191  return 0;
54192}
54193_ACEOF
54194rm -f conftest.$ac_objext
54195if { (ac_try="$ac_compile"
54196case "(($ac_try" in
54197  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54198  *) ac_try_echo=$ac_try;;
54199esac
54200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54201$as_echo "$ac_try_echo") >&5
54202  (eval "$ac_compile") 2>conftest.er1
54203  ac_status=$?
54204  grep -v '^ *+' conftest.er1 >conftest.err
54205  rm -f conftest.er1
54206  cat conftest.err >&5
54207  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54208  (exit $ac_status); } && {
54209	 test -z "$ac_c_werror_flag" ||
54210	 test ! -s conftest.err
54211       } && test -s conftest.$ac_objext; then
54212  ac_hi=$ac_mid; break
54213else
54214  $as_echo "$as_me: failed program was:" >&5
54215sed 's/^/| /' conftest.$ac_ext >&5
54216
54217	ac_lo=`expr $ac_mid + 1`
54218			if test $ac_lo -le $ac_mid; then
54219			  ac_lo= ac_hi=
54220			  break
54221			fi
54222			ac_mid=`expr 2 '*' $ac_mid + 1`
54223fi
54224
54225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54226  done
54227else
54228  $as_echo "$as_me: failed program was:" >&5
54229sed 's/^/| /' conftest.$ac_ext >&5
54230
54231	cat >conftest.$ac_ext <<_ACEOF
54232/* confdefs.h.  */
54233_ACEOF
54234cat confdefs.h >>conftest.$ac_ext
54235cat >>conftest.$ac_ext <<_ACEOF
54236/* end confdefs.h.  */
54237
54238  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54239     included before <wchar.h>.  */
54240  #include <stddef.h>
54241  #include <signal.h>
54242  #if HAVE_WCHAR_H
54243  # include <stdio.h>
54244  # include <time.h>
54245  # include <wchar.h>
54246  #endif
54247
54248#include <limits.h>
54249int
54250main ()
54251{
54252static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
54253test_array [0] = 0
54254
54255  ;
54256  return 0;
54257}
54258_ACEOF
54259rm -f conftest.$ac_objext
54260if { (ac_try="$ac_compile"
54261case "(($ac_try" in
54262  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54263  *) ac_try_echo=$ac_try;;
54264esac
54265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54266$as_echo "$ac_try_echo") >&5
54267  (eval "$ac_compile") 2>conftest.er1
54268  ac_status=$?
54269  grep -v '^ *+' conftest.er1 >conftest.err
54270  rm -f conftest.er1
54271  cat conftest.err >&5
54272  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54273  (exit $ac_status); } && {
54274	 test -z "$ac_c_werror_flag" ||
54275	 test ! -s conftest.err
54276       } && test -s conftest.$ac_objext; then
54277  ac_hi=-1 ac_mid=-1
54278  while :; do
54279    cat >conftest.$ac_ext <<_ACEOF
54280/* confdefs.h.  */
54281_ACEOF
54282cat confdefs.h >>conftest.$ac_ext
54283cat >>conftest.$ac_ext <<_ACEOF
54284/* end confdefs.h.  */
54285
54286  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54287     included before <wchar.h>.  */
54288  #include <stddef.h>
54289  #include <signal.h>
54290  #if HAVE_WCHAR_H
54291  # include <stdio.h>
54292  # include <time.h>
54293  # include <wchar.h>
54294  #endif
54295
54296#include <limits.h>
54297int
54298main ()
54299{
54300static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
54301test_array [0] = 0
54302
54303  ;
54304  return 0;
54305}
54306_ACEOF
54307rm -f conftest.$ac_objext
54308if { (ac_try="$ac_compile"
54309case "(($ac_try" in
54310  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54311  *) ac_try_echo=$ac_try;;
54312esac
54313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54314$as_echo "$ac_try_echo") >&5
54315  (eval "$ac_compile") 2>conftest.er1
54316  ac_status=$?
54317  grep -v '^ *+' conftest.er1 >conftest.err
54318  rm -f conftest.er1
54319  cat conftest.err >&5
54320  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54321  (exit $ac_status); } && {
54322	 test -z "$ac_c_werror_flag" ||
54323	 test ! -s conftest.err
54324       } && test -s conftest.$ac_objext; then
54325  ac_lo=$ac_mid; break
54326else
54327  $as_echo "$as_me: failed program was:" >&5
54328sed 's/^/| /' conftest.$ac_ext >&5
54329
54330	ac_hi=`expr '(' $ac_mid ')' - 1`
54331			if test $ac_mid -le $ac_hi; then
54332			  ac_lo= ac_hi=
54333			  break
54334			fi
54335			ac_mid=`expr 2 '*' $ac_mid`
54336fi
54337
54338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54339  done
54340else
54341  $as_echo "$as_me: failed program was:" >&5
54342sed 's/^/| /' conftest.$ac_ext >&5
54343
54344	ac_lo= ac_hi=
54345fi
54346
54347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54348fi
54349
54350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54351# Binary search between lo and hi bounds.
54352while test "x$ac_lo" != "x$ac_hi"; do
54353  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
54354  cat >conftest.$ac_ext <<_ACEOF
54355/* confdefs.h.  */
54356_ACEOF
54357cat confdefs.h >>conftest.$ac_ext
54358cat >>conftest.$ac_ext <<_ACEOF
54359/* end confdefs.h.  */
54360
54361  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54362     included before <wchar.h>.  */
54363  #include <stddef.h>
54364  #include <signal.h>
54365  #if HAVE_WCHAR_H
54366  # include <stdio.h>
54367  # include <time.h>
54368  # include <wchar.h>
54369  #endif
54370
54371#include <limits.h>
54372int
54373main ()
54374{
54375static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
54376test_array [0] = 0
54377
54378  ;
54379  return 0;
54380}
54381_ACEOF
54382rm -f conftest.$ac_objext
54383if { (ac_try="$ac_compile"
54384case "(($ac_try" in
54385  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54386  *) ac_try_echo=$ac_try;;
54387esac
54388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54389$as_echo "$ac_try_echo") >&5
54390  (eval "$ac_compile") 2>conftest.er1
54391  ac_status=$?
54392  grep -v '^ *+' conftest.er1 >conftest.err
54393  rm -f conftest.er1
54394  cat conftest.err >&5
54395  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54396  (exit $ac_status); } && {
54397	 test -z "$ac_c_werror_flag" ||
54398	 test ! -s conftest.err
54399       } && test -s conftest.$ac_objext; then
54400  ac_hi=$ac_mid
54401else
54402  $as_echo "$as_me: failed program was:" >&5
54403sed 's/^/| /' conftest.$ac_ext >&5
54404
54405	ac_lo=`expr '(' $ac_mid ')' + 1`
54406fi
54407
54408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54409done
54410case $ac_lo in
54411?*) result=$ac_lo;;
54412'') result=unknown ;;
54413esac
54414else
54415  cat >conftest.$ac_ext <<_ACEOF
54416/* confdefs.h.  */
54417_ACEOF
54418cat confdefs.h >>conftest.$ac_ext
54419cat >>conftest.$ac_ext <<_ACEOF
54420/* end confdefs.h.  */
54421
54422  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54423     included before <wchar.h>.  */
54424  #include <stddef.h>
54425  #include <signal.h>
54426  #if HAVE_WCHAR_H
54427  # include <stdio.h>
54428  # include <time.h>
54429  # include <wchar.h>
54430  #endif
54431
54432#include <limits.h>
54433static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
54434static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
54435#include <stdio.h>
54436#include <stdlib.h>
54437int
54438main ()
54439{
54440
54441  FILE *f = fopen ("conftest.val", "w");
54442  if (! f)
54443    return 1;
54444  if ((sizeof ($gltype) * CHAR_BIT) < 0)
54445    {
54446      long int i = longval ();
54447      if (i != (sizeof ($gltype) * CHAR_BIT))
54448	return 1;
54449      fprintf (f, "%ld", i);
54450    }
54451  else
54452    {
54453      unsigned long int i = ulongval ();
54454      if (i != (sizeof ($gltype) * CHAR_BIT))
54455	return 1;
54456      fprintf (f, "%lu", i);
54457    }
54458  /* Do not output a trailing newline, as this causes \r\n confusion
54459     on some platforms.  */
54460  return ferror (f) || fclose (f) != 0;
54461
54462  ;
54463  return 0;
54464}
54465_ACEOF
54466rm -f conftest$ac_exeext
54467if { (ac_try="$ac_link"
54468case "(($ac_try" in
54469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54470  *) ac_try_echo=$ac_try;;
54471esac
54472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54473$as_echo "$ac_try_echo") >&5
54474  (eval "$ac_link") 2>&5
54475  ac_status=$?
54476  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54477  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54478  { (case "(($ac_try" in
54479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54480  *) ac_try_echo=$ac_try;;
54481esac
54482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54483$as_echo "$ac_try_echo") >&5
54484  (eval "$ac_try") 2>&5
54485  ac_status=$?
54486  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54487  (exit $ac_status); }; }; then
54488  result=`cat conftest.val`
54489else
54490  $as_echo "$as_me: program exited with status $ac_status" >&5
54491$as_echo "$as_me: failed program was:" >&5
54492sed 's/^/| /' conftest.$ac_ext >&5
54493
54494( exit $ac_status )
54495result=unknown
54496fi
54497rm -rf conftest.dSYM
54498rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54499fi
54500rm -f conftest.val
54501       eval gl_cv_bitsizeof_${gltype}=\$result
54502
54503fi
54504ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
54505		 $as_echo "$as_val"'`
54506	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54507$as_echo "$ac_res" >&6; }
54508    eval result=\$gl_cv_bitsizeof_${gltype}
54509    if test $result = unknown; then
54510                                                result=0
54511    fi
54512    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
54513    cat >>confdefs.h <<_ACEOF
54514#define BITSIZEOF_${GLTYPE} $result
54515_ACEOF
54516
54517    eval BITSIZEOF_${GLTYPE}=\$result
54518  done
54519
54520
54521
54522
54523
54524
54525
54526  for gltype in sig_atomic_t wchar_t wint_t ; do
54527    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
54528$as_echo_n "checking whether $gltype is signed... " >&6; }
54529if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
54530  $as_echo_n "(cached) " >&6
54531else
54532  cat >conftest.$ac_ext <<_ACEOF
54533/* confdefs.h.  */
54534_ACEOF
54535cat confdefs.h >>conftest.$ac_ext
54536cat >>conftest.$ac_ext <<_ACEOF
54537/* end confdefs.h.  */
54538
54539  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54540     included before <wchar.h>.  */
54541  #include <stddef.h>
54542  #include <signal.h>
54543  #if HAVE_WCHAR_H
54544  # include <stdio.h>
54545  # include <time.h>
54546  # include <wchar.h>
54547  #endif
54548
54549            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
54550int
54551main ()
54552{
54553
54554  ;
54555  return 0;
54556}
54557_ACEOF
54558rm -f conftest.$ac_objext
54559if { (ac_try="$ac_compile"
54560case "(($ac_try" in
54561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54562  *) ac_try_echo=$ac_try;;
54563esac
54564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54565$as_echo "$ac_try_echo") >&5
54566  (eval "$ac_compile") 2>conftest.er1
54567  ac_status=$?
54568  grep -v '^ *+' conftest.er1 >conftest.err
54569  rm -f conftest.er1
54570  cat conftest.err >&5
54571  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54572  (exit $ac_status); } && {
54573	 test -z "$ac_c_werror_flag" ||
54574	 test ! -s conftest.err
54575       } && test -s conftest.$ac_objext; then
54576  result=yes
54577else
54578  $as_echo "$as_me: failed program was:" >&5
54579sed 's/^/| /' conftest.$ac_ext >&5
54580
54581	result=no
54582fi
54583
54584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54585       eval gl_cv_type_${gltype}_signed=\$result
54586
54587fi
54588ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
54589		 $as_echo "$as_val"'`
54590	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54591$as_echo "$ac_res" >&6; }
54592    eval result=\$gl_cv_type_${gltype}_signed
54593    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
54594    if test "$result" = yes; then
54595      cat >>confdefs.h <<_ACEOF
54596#define HAVE_SIGNED_${GLTYPE} 1
54597_ACEOF
54598
54599      eval HAVE_SIGNED_${GLTYPE}=1
54600    else
54601      eval HAVE_SIGNED_${GLTYPE}=0
54602    fi
54603  done
54604
54605
54606  gl_cv_type_ptrdiff_t_signed=yes
54607  gl_cv_type_size_t_signed=no
54608
54609
54610
54611
54612
54613
54614
54615  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
54616    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
54617$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
54618if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
54619  $as_echo_n "(cached) " >&6
54620else
54621  eval gl_cv_type_${gltype}_suffix=no
54622       eval result=\$gl_cv_type_${gltype}_signed
54623       if test "$result" = yes; then
54624         glsufu=
54625       else
54626         glsufu=u
54627       fi
54628       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
54629         case $glsuf in
54630           '')  gltype1='int';;
54631           l)	gltype1='long int';;
54632           ll)	gltype1='long long int';;
54633           i64)	gltype1='__int64';;
54634           u)	gltype1='unsigned int';;
54635           ul)	gltype1='unsigned long int';;
54636           ull)	gltype1='unsigned long long int';;
54637           ui64)gltype1='unsigned __int64';;
54638         esac
54639         cat >conftest.$ac_ext <<_ACEOF
54640/* confdefs.h.  */
54641_ACEOF
54642cat confdefs.h >>conftest.$ac_ext
54643cat >>conftest.$ac_ext <<_ACEOF
54644/* end confdefs.h.  */
54645
54646  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54647     included before <wchar.h>.  */
54648  #include <stddef.h>
54649  #include <signal.h>
54650  #if HAVE_WCHAR_H
54651  # include <stdio.h>
54652  # include <time.h>
54653  # include <wchar.h>
54654  #endif
54655
54656              extern $gltype foo;
54657              extern $gltype1 foo;
54658int
54659main ()
54660{
54661
54662  ;
54663  return 0;
54664}
54665_ACEOF
54666rm -f conftest.$ac_objext
54667if { (ac_try="$ac_compile"
54668case "(($ac_try" in
54669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54670  *) ac_try_echo=$ac_try;;
54671esac
54672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54673$as_echo "$ac_try_echo") >&5
54674  (eval "$ac_compile") 2>conftest.er1
54675  ac_status=$?
54676  grep -v '^ *+' conftest.er1 >conftest.err
54677  rm -f conftest.er1
54678  cat conftest.err >&5
54679  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54680  (exit $ac_status); } && {
54681	 test -z "$ac_c_werror_flag" ||
54682	 test ! -s conftest.err
54683       } && test -s conftest.$ac_objext; then
54684  eval gl_cv_type_${gltype}_suffix=\$glsuf
54685else
54686  $as_echo "$as_me: failed program was:" >&5
54687sed 's/^/| /' conftest.$ac_ext >&5
54688
54689
54690fi
54691
54692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54693         eval result=\$gl_cv_type_${gltype}_suffix
54694         test "$result" != no && break
54695       done
54696fi
54697ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
54698		 $as_echo "$as_val"'`
54699	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54700$as_echo "$ac_res" >&6; }
54701    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
54702    eval result=\$gl_cv_type_${gltype}_suffix
54703    test "$result" = no && result=
54704    eval ${GLTYPE}_SUFFIX=\$result
54705    cat >>confdefs.h <<_ACEOF
54706#define ${GLTYPE}_SUFFIX $result
54707_ACEOF
54708
54709  done
54710
54711
54712
54713    STDINT_H=stdint.h
54714  fi
54715
54716
54717
54718  { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
54719$as_echo_n "checking for wchar_t... " >&6; }
54720if test "${gt_cv_c_wchar_t+set}" = set; then
54721  $as_echo_n "(cached) " >&6
54722else
54723  cat >conftest.$ac_ext <<_ACEOF
54724/* confdefs.h.  */
54725_ACEOF
54726cat confdefs.h >>conftest.$ac_ext
54727cat >>conftest.$ac_ext <<_ACEOF
54728/* end confdefs.h.  */
54729#include <stddef.h>
54730       wchar_t foo = (wchar_t)'\0';
54731int
54732main ()
54733{
54734
54735  ;
54736  return 0;
54737}
54738_ACEOF
54739rm -f conftest.$ac_objext
54740if { (ac_try="$ac_compile"
54741case "(($ac_try" in
54742  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54743  *) ac_try_echo=$ac_try;;
54744esac
54745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54746$as_echo "$ac_try_echo") >&5
54747  (eval "$ac_compile") 2>conftest.er1
54748  ac_status=$?
54749  grep -v '^ *+' conftest.er1 >conftest.err
54750  rm -f conftest.er1
54751  cat conftest.err >&5
54752  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54753  (exit $ac_status); } && {
54754	 test -z "$ac_c_werror_flag" ||
54755	 test ! -s conftest.err
54756       } && test -s conftest.$ac_objext; then
54757  gt_cv_c_wchar_t=yes
54758else
54759  $as_echo "$as_me: failed program was:" >&5
54760sed 's/^/| /' conftest.$ac_ext >&5
54761
54762	gt_cv_c_wchar_t=no
54763fi
54764
54765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54766fi
54767{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
54768$as_echo "$gt_cv_c_wchar_t" >&6; }
54769  if test $gt_cv_c_wchar_t = yes; then
54770
54771cat >>confdefs.h <<\_ACEOF
54772#define HAVE_WCHAR_T 1
54773_ACEOF
54774
54775  fi
54776
54777
54778  { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
54779$as_echo_n "checking for wint_t... " >&6; }
54780if test "${gt_cv_c_wint_t+set}" = set; then
54781  $as_echo_n "(cached) " >&6
54782else
54783  cat >conftest.$ac_ext <<_ACEOF
54784/* confdefs.h.  */
54785_ACEOF
54786cat confdefs.h >>conftest.$ac_ext
54787cat >>conftest.$ac_ext <<_ACEOF
54788/* end confdefs.h.  */
54789
54790/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
54791   <wchar.h>.
54792   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
54793   before <wchar.h>.  */
54794#include <stddef.h>
54795#include <stdio.h>
54796#include <time.h>
54797#include <wchar.h>
54798       wint_t foo = (wchar_t)'\0';
54799int
54800main ()
54801{
54802
54803  ;
54804  return 0;
54805}
54806_ACEOF
54807rm -f conftest.$ac_objext
54808if { (ac_try="$ac_compile"
54809case "(($ac_try" in
54810  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54811  *) ac_try_echo=$ac_try;;
54812esac
54813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54814$as_echo "$ac_try_echo") >&5
54815  (eval "$ac_compile") 2>conftest.er1
54816  ac_status=$?
54817  grep -v '^ *+' conftest.er1 >conftest.err
54818  rm -f conftest.er1
54819  cat conftest.err >&5
54820  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54821  (exit $ac_status); } && {
54822	 test -z "$ac_c_werror_flag" ||
54823	 test ! -s conftest.err
54824       } && test -s conftest.$ac_objext; then
54825  gt_cv_c_wint_t=yes
54826else
54827  $as_echo "$as_me: failed program was:" >&5
54828sed 's/^/| /' conftest.$ac_ext >&5
54829
54830	gt_cv_c_wint_t=no
54831fi
54832
54833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54834fi
54835{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
54836$as_echo "$gt_cv_c_wint_t" >&6; }
54837  if test $gt_cv_c_wint_t = yes; then
54838
54839cat >>confdefs.h <<\_ACEOF
54840#define HAVE_WINT_T 1
54841_ACEOF
54842
54843  fi
54844
54845
54846
54847
54848
54849
54850  :
54851
54852
54853
54854
54855
54856
54857
54858     if test $gl_cv_have_include_next = yes; then
54859       gl_cv_next_stdio_h='<'stdio.h'>'
54860     else
54861       { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
54862$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
54863if test "${gl_cv_next_stdio_h+set}" = set; then
54864  $as_echo_n "(cached) " >&6
54865else
54866
54867	  if test $ac_cv_header_stdio_h = yes; then
54868	    cat >conftest.$ac_ext <<_ACEOF
54869/* confdefs.h.  */
54870_ACEOF
54871cat confdefs.h >>conftest.$ac_ext
54872cat >>conftest.$ac_ext <<_ACEOF
54873/* end confdefs.h.  */
54874#include <stdio.h>
54875
54876_ACEOF
54877	    	    	    	    gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54878	       sed -n '\#/stdio.h#{
54879		 s#.*"\(.*/stdio.h\)".*#\1#
54880		 s#^/[^/]#//&#
54881		 p
54882		 q
54883	       }'`'"'
54884	  else
54885	    gl_cv_next_stdio_h='<'stdio.h'>'
54886	  fi
54887
54888fi
54889{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
54890$as_echo "$gl_cv_next_stdio_h" >&6; }
54891     fi
54892     NEXT_STDIO_H=$gl_cv_next_stdio_h
54893
54894
54895
54896
54897
54898
54899
54900
54901
54902  :
54903
54904
54905
54906
54907
54908
54909
54910     if test $gl_cv_have_include_next = yes; then
54911       gl_cv_next_stdlib_h='<'stdlib.h'>'
54912     else
54913       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
54914$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
54915if test "${gl_cv_next_stdlib_h+set}" = set; then
54916  $as_echo_n "(cached) " >&6
54917else
54918
54919	  if test $ac_cv_header_stdlib_h = yes; then
54920	    cat >conftest.$ac_ext <<_ACEOF
54921/* confdefs.h.  */
54922_ACEOF
54923cat confdefs.h >>conftest.$ac_ext
54924cat >>conftest.$ac_ext <<_ACEOF
54925/* end confdefs.h.  */
54926#include <stdlib.h>
54927
54928_ACEOF
54929	    	    	    	    gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54930	       sed -n '\#/stdlib.h#{
54931		 s#.*"\(.*/stdlib.h\)".*#\1#
54932		 s#^/[^/]#//&#
54933		 p
54934		 q
54935	       }'`'"'
54936	  else
54937	    gl_cv_next_stdlib_h='<'stdlib.h'>'
54938	  fi
54939
54940fi
54941{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
54942$as_echo "$gl_cv_next_stdlib_h" >&6; }
54943     fi
54944     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
54945
54946
54947
54948
54949
54950
54951
54952
54953
54954
54955
54956
54957
54958
54959
54960
54961
54962
54963for ac_func in stpcpy
54964do
54965as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
54966{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
54967$as_echo_n "checking for $ac_func... " >&6; }
54968if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
54969  $as_echo_n "(cached) " >&6
54970else
54971  cat >conftest.$ac_ext <<_ACEOF
54972/* confdefs.h.  */
54973_ACEOF
54974cat confdefs.h >>conftest.$ac_ext
54975cat >>conftest.$ac_ext <<_ACEOF
54976/* end confdefs.h.  */
54977/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
54978   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
54979#define $ac_func innocuous_$ac_func
54980
54981/* System header to define __stub macros and hopefully few prototypes,
54982    which can conflict with char $ac_func (); below.
54983    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
54984    <limits.h> exists even on freestanding compilers.  */
54985
54986#ifdef __STDC__
54987# include <limits.h>
54988#else
54989# include <assert.h>
54990#endif
54991
54992#undef $ac_func
54993
54994/* Override any GCC internal prototype to avoid an error.
54995   Use char because int might match the return type of a GCC
54996   builtin and then its argument prototype would still apply.  */
54997#ifdef __cplusplus
54998extern "C"
54999#endif
55000char $ac_func ();
55001/* The GNU C library defines this for functions which it implements
55002    to always fail with ENOSYS.  Some functions are actually named
55003    something starting with __ and the normal name is an alias.  */
55004#if defined __stub_$ac_func || defined __stub___$ac_func
55005choke me
55006#endif
55007
55008int
55009main ()
55010{
55011return $ac_func ();
55012  ;
55013  return 0;
55014}
55015_ACEOF
55016rm -f conftest.$ac_objext conftest$ac_exeext
55017if { (ac_try="$ac_link"
55018case "(($ac_try" in
55019  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55020  *) ac_try_echo=$ac_try;;
55021esac
55022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55023$as_echo "$ac_try_echo") >&5
55024  (eval "$ac_link") 2>conftest.er1
55025  ac_status=$?
55026  grep -v '^ *+' conftest.er1 >conftest.err
55027  rm -f conftest.er1
55028  cat conftest.err >&5
55029  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55030  (exit $ac_status); } && {
55031	 test -z "$ac_c_werror_flag" ||
55032	 test ! -s conftest.err
55033       } && test -s conftest$ac_exeext && {
55034	 test "$cross_compiling" = yes ||
55035	 $as_test_x conftest$ac_exeext
55036       }; then
55037  eval "$as_ac_var=yes"
55038else
55039  $as_echo "$as_me: failed program was:" >&5
55040sed 's/^/| /' conftest.$ac_ext >&5
55041
55042	eval "$as_ac_var=no"
55043fi
55044
55045rm -rf conftest.dSYM
55046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55047      conftest$ac_exeext conftest.$ac_ext
55048fi
55049ac_res=`eval 'as_val=${'$as_ac_var'}
55050		 $as_echo "$as_val"'`
55051	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55052$as_echo "$ac_res" >&6; }
55053as_val=`eval 'as_val=${'$as_ac_var'}
55054		 $as_echo "$as_val"'`
55055   if test "x$as_val" = x""yes; then
55056  cat >>confdefs.h <<_ACEOF
55057#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55058_ACEOF
55059
55060else
55061
55062    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
55063
55064fi
55065done
55066
55067
55068  if test $ac_cv_func_stpcpy = no; then
55069    HAVE_STPCPY=0
55070
55071  :
55072
55073  fi
55074
55075
55076
55077  GNULIB_STPCPY=1
55078
55079
55080
55081
55082
55083
55084
55085
55086
55087  { $as_echo "$as_me:$LINENO: checking for working stpncpy" >&5
55088$as_echo_n "checking for working stpncpy... " >&6; }
55089if test "${gl_cv_func_stpncpy+set}" = set; then
55090  $as_echo_n "(cached) " >&6
55091else
55092
55093    if test "$cross_compiling" = yes; then
55094  cat >conftest.$ac_ext <<_ACEOF
55095/* confdefs.h.  */
55096_ACEOF
55097cat confdefs.h >>conftest.$ac_ext
55098cat >>conftest.$ac_ext <<_ACEOF
55099/* end confdefs.h.  */
55100
55101#include <features.h>
55102#ifdef __GNU_LIBRARY__
55103  Thanks for using GNU
55104#endif
55105
55106_ACEOF
55107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
55108  $EGREP "Thanks for using GNU" >/dev/null 2>&1; then
55109  gl_cv_func_stpncpy=yes
55110else
55111  gl_cv_func_stpncpy=no
55112fi
55113rm -f conftest*
55114
55115else
55116  cat >conftest.$ac_ext <<_ACEOF
55117/* confdefs.h.  */
55118_ACEOF
55119cat confdefs.h >>conftest.$ac_ext
55120cat >>conftest.$ac_ext <<_ACEOF
55121/* end confdefs.h.  */
55122
55123#include <stdlib.h>
55124#include <string.h> /* for strcpy */
55125/* The stpncpy prototype is missing in <string.h> on AIX 4.  */
55126extern char *stpncpy (char *dest, const char *src, size_t n);
55127int main () {
55128  const char *src = "Hello";
55129  char dest[10];
55130  /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+1 here.  */
55131  strcpy (dest, "\377\377\377\377\377\377");
55132  if (stpncpy (dest, src, 2) != dest + 2) exit(1);
55133  /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+4 here.  */
55134  strcpy (dest, "\377\377\377\377\377\377");
55135  if (stpncpy (dest, src, 5) != dest + 5) exit(1);
55136  /* AIX 4.3.3 and AIX 5.1 stpncpy() returns dest+6 here.  */
55137  strcpy (dest, "\377\377\377\377\377\377");
55138  if (stpncpy (dest, src, 7) != dest + 5) exit(1);
55139  exit(0);
55140}
55141
55142_ACEOF
55143rm -f conftest$ac_exeext
55144if { (ac_try="$ac_link"
55145case "(($ac_try" in
55146  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55147  *) ac_try_echo=$ac_try;;
55148esac
55149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55150$as_echo "$ac_try_echo") >&5
55151  (eval "$ac_link") 2>&5
55152  ac_status=$?
55153  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55154  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55155  { (case "(($ac_try" in
55156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55157  *) ac_try_echo=$ac_try;;
55158esac
55159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55160$as_echo "$ac_try_echo") >&5
55161  (eval "$ac_try") 2>&5
55162  ac_status=$?
55163  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55164  (exit $ac_status); }; }; then
55165  gl_cv_func_stpncpy=yes
55166else
55167  $as_echo "$as_me: program exited with status $ac_status" >&5
55168$as_echo "$as_me: failed program was:" >&5
55169sed 's/^/| /' conftest.$ac_ext >&5
55170
55171( exit $ac_status )
55172gl_cv_func_stpncpy=no
55173fi
55174rm -rf conftest.dSYM
55175rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55176fi
55177
55178
55179fi
55180{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_stpncpy" >&5
55181$as_echo "$gl_cv_func_stpncpy" >&6; }
55182
55183  if test $gl_cv_func_stpncpy = yes; then
55184
55185cat >>confdefs.h <<\_ACEOF
55186#define HAVE_STPNCPY 1
55187_ACEOF
55188
55189  else
55190    HAVE_STPNCPY=0
55191
55192
55193
55194
55195
55196
55197
55198  gl_LIBOBJS="$gl_LIBOBJS stpncpy.$ac_objext"
55199
55200
55201  :
55202
55203  fi
55204
55205
55206
55207  GNULIB_STPNCPY=1
55208
55209
55210
55211
55212
55213
55214
55215
55216
55217
55218for ac_func in strcspn
55219do
55220as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55221{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
55222$as_echo_n "checking for $ac_func... " >&6; }
55223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55224  $as_echo_n "(cached) " >&6
55225else
55226  cat >conftest.$ac_ext <<_ACEOF
55227/* confdefs.h.  */
55228_ACEOF
55229cat confdefs.h >>conftest.$ac_ext
55230cat >>conftest.$ac_ext <<_ACEOF
55231/* end confdefs.h.  */
55232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55233   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55234#define $ac_func innocuous_$ac_func
55235
55236/* System header to define __stub macros and hopefully few prototypes,
55237    which can conflict with char $ac_func (); below.
55238    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55239    <limits.h> exists even on freestanding compilers.  */
55240
55241#ifdef __STDC__
55242# include <limits.h>
55243#else
55244# include <assert.h>
55245#endif
55246
55247#undef $ac_func
55248
55249/* Override any GCC internal prototype to avoid an error.
55250   Use char because int might match the return type of a GCC
55251   builtin and then its argument prototype would still apply.  */
55252#ifdef __cplusplus
55253extern "C"
55254#endif
55255char $ac_func ();
55256/* The GNU C library defines this for functions which it implements
55257    to always fail with ENOSYS.  Some functions are actually named
55258    something starting with __ and the normal name is an alias.  */
55259#if defined __stub_$ac_func || defined __stub___$ac_func
55260choke me
55261#endif
55262
55263int
55264main ()
55265{
55266return $ac_func ();
55267  ;
55268  return 0;
55269}
55270_ACEOF
55271rm -f conftest.$ac_objext conftest$ac_exeext
55272if { (ac_try="$ac_link"
55273case "(($ac_try" in
55274  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55275  *) ac_try_echo=$ac_try;;
55276esac
55277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55278$as_echo "$ac_try_echo") >&5
55279  (eval "$ac_link") 2>conftest.er1
55280  ac_status=$?
55281  grep -v '^ *+' conftest.er1 >conftest.err
55282  rm -f conftest.er1
55283  cat conftest.err >&5
55284  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55285  (exit $ac_status); } && {
55286	 test -z "$ac_c_werror_flag" ||
55287	 test ! -s conftest.err
55288       } && test -s conftest$ac_exeext && {
55289	 test "$cross_compiling" = yes ||
55290	 $as_test_x conftest$ac_exeext
55291       }; then
55292  eval "$as_ac_var=yes"
55293else
55294  $as_echo "$as_me: failed program was:" >&5
55295sed 's/^/| /' conftest.$ac_ext >&5
55296
55297	eval "$as_ac_var=no"
55298fi
55299
55300rm -rf conftest.dSYM
55301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55302      conftest$ac_exeext conftest.$ac_ext
55303fi
55304ac_res=`eval 'as_val=${'$as_ac_var'}
55305		 $as_echo "$as_val"'`
55306	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55307$as_echo "$ac_res" >&6; }
55308as_val=`eval 'as_val=${'$as_ac_var'}
55309		 $as_echo "$as_val"'`
55310   if test "x$as_val" = x""yes; then
55311  cat >>confdefs.h <<_ACEOF
55312#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55313_ACEOF
55314
55315else
55316
55317    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
55318
55319fi
55320done
55321
55322
55323  if test $ac_cv_func_strcspn = no; then
55324    :
55325  fi
55326
55327
55328
55329
55330
55331
55332
55333
55334
55335
55336
55337for ac_func in strdup
55338do
55339as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55340{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
55341$as_echo_n "checking for $ac_func... " >&6; }
55342if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55343  $as_echo_n "(cached) " >&6
55344else
55345  cat >conftest.$ac_ext <<_ACEOF
55346/* confdefs.h.  */
55347_ACEOF
55348cat confdefs.h >>conftest.$ac_ext
55349cat >>conftest.$ac_ext <<_ACEOF
55350/* end confdefs.h.  */
55351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55352   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55353#define $ac_func innocuous_$ac_func
55354
55355/* System header to define __stub macros and hopefully few prototypes,
55356    which can conflict with char $ac_func (); below.
55357    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55358    <limits.h> exists even on freestanding compilers.  */
55359
55360#ifdef __STDC__
55361# include <limits.h>
55362#else
55363# include <assert.h>
55364#endif
55365
55366#undef $ac_func
55367
55368/* Override any GCC internal prototype to avoid an error.
55369   Use char because int might match the return type of a GCC
55370   builtin and then its argument prototype would still apply.  */
55371#ifdef __cplusplus
55372extern "C"
55373#endif
55374char $ac_func ();
55375/* The GNU C library defines this for functions which it implements
55376    to always fail with ENOSYS.  Some functions are actually named
55377    something starting with __ and the normal name is an alias.  */
55378#if defined __stub_$ac_func || defined __stub___$ac_func
55379choke me
55380#endif
55381
55382int
55383main ()
55384{
55385return $ac_func ();
55386  ;
55387  return 0;
55388}
55389_ACEOF
55390rm -f conftest.$ac_objext conftest$ac_exeext
55391if { (ac_try="$ac_link"
55392case "(($ac_try" in
55393  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55394  *) ac_try_echo=$ac_try;;
55395esac
55396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55397$as_echo "$ac_try_echo") >&5
55398  (eval "$ac_link") 2>conftest.er1
55399  ac_status=$?
55400  grep -v '^ *+' conftest.er1 >conftest.err
55401  rm -f conftest.er1
55402  cat conftest.err >&5
55403  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55404  (exit $ac_status); } && {
55405	 test -z "$ac_c_werror_flag" ||
55406	 test ! -s conftest.err
55407       } && test -s conftest$ac_exeext && {
55408	 test "$cross_compiling" = yes ||
55409	 $as_test_x conftest$ac_exeext
55410       }; then
55411  eval "$as_ac_var=yes"
55412else
55413  $as_echo "$as_me: failed program was:" >&5
55414sed 's/^/| /' conftest.$ac_ext >&5
55415
55416	eval "$as_ac_var=no"
55417fi
55418
55419rm -rf conftest.dSYM
55420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55421      conftest$ac_exeext conftest.$ac_ext
55422fi
55423ac_res=`eval 'as_val=${'$as_ac_var'}
55424		 $as_echo "$as_val"'`
55425	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55426$as_echo "$ac_res" >&6; }
55427as_val=`eval 'as_val=${'$as_ac_var'}
55428		 $as_echo "$as_val"'`
55429   if test "x$as_val" = x""yes; then
55430  cat >>confdefs.h <<_ACEOF
55431#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55432_ACEOF
55433
55434else
55435
55436    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
55437
55438fi
55439done
55440
55441
55442
55443  :
55444
55445
55446
55447
55448
55449  if test $ac_cv_have_decl_strdup = no; then
55450    HAVE_DECL_STRDUP=0
55451  fi
55452  :
55453
55454
55455
55456  GNULIB_STRDUP=1
55457
55458
55459
55460  if test $gl_cv_func_working_strerror = no; then
55461
55462
55463
55464
55465
55466
55467
55468  gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
55469
55470
55471cat >>confdefs.h <<_ACEOF
55472#define REPLACE_STRERROR $REPLACE_STRERROR
55473_ACEOF
55474
55475  fi
55476
55477
55478
55479  GNULIB_STRERROR=1
55480
55481  if test $gl_cond_libtool = false; then
55482    gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
55483    gl_libdeps="$gl_libdeps $LIBICONV"
55484  fi
55485
55486
55487
55488
55489
55490
55491
55492
55493  :
55494
55495
55496
55497
55498
55499  if test $ac_cv_have_decl_strnlen = no; then
55500    HAVE_DECL_STRNLEN=0
55501  fi
55502
55503  { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
55504$as_echo_n "checking for working strnlen... " >&6; }
55505if test "${ac_cv_func_strnlen_working+set}" = set; then
55506  $as_echo_n "(cached) " >&6
55507else
55508  if test "$cross_compiling" = yes; then
55509  ac_cv_func_strnlen_working=no
55510else
55511  cat >conftest.$ac_ext <<_ACEOF
55512/* confdefs.h.  */
55513_ACEOF
55514cat confdefs.h >>conftest.$ac_ext
55515cat >>conftest.$ac_ext <<_ACEOF
55516/* end confdefs.h.  */
55517$ac_includes_default
55518int
55519main ()
55520{
55521
55522#define S "foobar"
55523#define S_LEN (sizeof S - 1)
55524
55525  /* At least one implementation is buggy: that of AIX 4.3 would
55526     give strnlen (S, 1) == 3.  */
55527
55528  int i;
55529  for (i = 0; i < S_LEN + 1; ++i)
55530    {
55531      int expected = i <= S_LEN ? i : S_LEN;
55532      if (strnlen (S, i) != expected)
55533	return 1;
55534    }
55535  return 0;
55536
55537  ;
55538  return 0;
55539}
55540_ACEOF
55541rm -f conftest$ac_exeext
55542if { (ac_try="$ac_link"
55543case "(($ac_try" in
55544  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55545  *) ac_try_echo=$ac_try;;
55546esac
55547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55548$as_echo "$ac_try_echo") >&5
55549  (eval "$ac_link") 2>&5
55550  ac_status=$?
55551  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55552  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55553  { (case "(($ac_try" in
55554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55555  *) ac_try_echo=$ac_try;;
55556esac
55557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55558$as_echo "$ac_try_echo") >&5
55559  (eval "$ac_try") 2>&5
55560  ac_status=$?
55561  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55562  (exit $ac_status); }; }; then
55563  ac_cv_func_strnlen_working=yes
55564else
55565  $as_echo "$as_me: program exited with status $ac_status" >&5
55566$as_echo "$as_me: failed program was:" >&5
55567sed 's/^/| /' conftest.$ac_ext >&5
55568
55569( exit $ac_status )
55570ac_cv_func_strnlen_working=no
55571fi
55572rm -rf conftest.dSYM
55573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55574fi
55575
55576
55577fi
55578{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
55579$as_echo "$ac_cv_func_strnlen_working" >&6; }
55580test $ac_cv_func_strnlen_working = no &&
55581
55582
55583
55584
55585
55586
55587  gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
55588
55589
55590  if test $ac_cv_func_strnlen_working = no; then
55591    # This is necessary because automake-1.6.1 doesn't understand
55592    # that the above use of AC_FUNC_STRNLEN means we may have to use
55593    # lib/strnlen.c.
55594    #AC_LIBOBJ(strnlen)
55595
55596cat >>confdefs.h <<\_ACEOF
55597#define strnlen rpl_strnlen
55598_ACEOF
55599
55600    :
55601  fi
55602
55603
55604
55605  GNULIB_STRNLEN=1
55606
55607
55608
55609
55610
55611
55612
55613
55614
55615
55616
55617for ac_func in strpbrk
55618do
55619as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55620{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
55621$as_echo_n "checking for $ac_func... " >&6; }
55622if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55623  $as_echo_n "(cached) " >&6
55624else
55625  cat >conftest.$ac_ext <<_ACEOF
55626/* confdefs.h.  */
55627_ACEOF
55628cat confdefs.h >>conftest.$ac_ext
55629cat >>conftest.$ac_ext <<_ACEOF
55630/* end confdefs.h.  */
55631/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55632   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55633#define $ac_func innocuous_$ac_func
55634
55635/* System header to define __stub macros and hopefully few prototypes,
55636    which can conflict with char $ac_func (); below.
55637    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55638    <limits.h> exists even on freestanding compilers.  */
55639
55640#ifdef __STDC__
55641# include <limits.h>
55642#else
55643# include <assert.h>
55644#endif
55645
55646#undef $ac_func
55647
55648/* Override any GCC internal prototype to avoid an error.
55649   Use char because int might match the return type of a GCC
55650   builtin and then its argument prototype would still apply.  */
55651#ifdef __cplusplus
55652extern "C"
55653#endif
55654char $ac_func ();
55655/* The GNU C library defines this for functions which it implements
55656    to always fail with ENOSYS.  Some functions are actually named
55657    something starting with __ and the normal name is an alias.  */
55658#if defined __stub_$ac_func || defined __stub___$ac_func
55659choke me
55660#endif
55661
55662int
55663main ()
55664{
55665return $ac_func ();
55666  ;
55667  return 0;
55668}
55669_ACEOF
55670rm -f conftest.$ac_objext conftest$ac_exeext
55671if { (ac_try="$ac_link"
55672case "(($ac_try" in
55673  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55674  *) ac_try_echo=$ac_try;;
55675esac
55676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55677$as_echo "$ac_try_echo") >&5
55678  (eval "$ac_link") 2>conftest.er1
55679  ac_status=$?
55680  grep -v '^ *+' conftest.er1 >conftest.err
55681  rm -f conftest.er1
55682  cat conftest.err >&5
55683  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55684  (exit $ac_status); } && {
55685	 test -z "$ac_c_werror_flag" ||
55686	 test ! -s conftest.err
55687       } && test -s conftest$ac_exeext && {
55688	 test "$cross_compiling" = yes ||
55689	 $as_test_x conftest$ac_exeext
55690       }; then
55691  eval "$as_ac_var=yes"
55692else
55693  $as_echo "$as_me: failed program was:" >&5
55694sed 's/^/| /' conftest.$ac_ext >&5
55695
55696	eval "$as_ac_var=no"
55697fi
55698
55699rm -rf conftest.dSYM
55700rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55701      conftest$ac_exeext conftest.$ac_ext
55702fi
55703ac_res=`eval 'as_val=${'$as_ac_var'}
55704		 $as_echo "$as_val"'`
55705	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55706$as_echo "$ac_res" >&6; }
55707as_val=`eval 'as_val=${'$as_ac_var'}
55708		 $as_echo "$as_val"'`
55709   if test "x$as_val" = x""yes; then
55710  cat >>confdefs.h <<_ACEOF
55711#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55712_ACEOF
55713
55714else
55715
55716    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
55717
55718fi
55719done
55720
55721
55722  if test $ac_cv_func_strpbrk = no; then
55723    HAVE_STRPBRK=0
55724    :
55725  fi
55726
55727
55728
55729  GNULIB_STRPBRK=1
55730
55731
55732
55733
55734
55735
55736
55737
55738
55739
55740for ac_func in strtol
55741do
55742as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55743{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
55744$as_echo_n "checking for $ac_func... " >&6; }
55745if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55746  $as_echo_n "(cached) " >&6
55747else
55748  cat >conftest.$ac_ext <<_ACEOF
55749/* confdefs.h.  */
55750_ACEOF
55751cat confdefs.h >>conftest.$ac_ext
55752cat >>conftest.$ac_ext <<_ACEOF
55753/* end confdefs.h.  */
55754/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55755   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55756#define $ac_func innocuous_$ac_func
55757
55758/* System header to define __stub macros and hopefully few prototypes,
55759    which can conflict with char $ac_func (); below.
55760    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55761    <limits.h> exists even on freestanding compilers.  */
55762
55763#ifdef __STDC__
55764# include <limits.h>
55765#else
55766# include <assert.h>
55767#endif
55768
55769#undef $ac_func
55770
55771/* Override any GCC internal prototype to avoid an error.
55772   Use char because int might match the return type of a GCC
55773   builtin and then its argument prototype would still apply.  */
55774#ifdef __cplusplus
55775extern "C"
55776#endif
55777char $ac_func ();
55778/* The GNU C library defines this for functions which it implements
55779    to always fail with ENOSYS.  Some functions are actually named
55780    something starting with __ and the normal name is an alias.  */
55781#if defined __stub_$ac_func || defined __stub___$ac_func
55782choke me
55783#endif
55784
55785int
55786main ()
55787{
55788return $ac_func ();
55789  ;
55790  return 0;
55791}
55792_ACEOF
55793rm -f conftest.$ac_objext conftest$ac_exeext
55794if { (ac_try="$ac_link"
55795case "(($ac_try" in
55796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55797  *) ac_try_echo=$ac_try;;
55798esac
55799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55800$as_echo "$ac_try_echo") >&5
55801  (eval "$ac_link") 2>conftest.er1
55802  ac_status=$?
55803  grep -v '^ *+' conftest.er1 >conftest.err
55804  rm -f conftest.er1
55805  cat conftest.err >&5
55806  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55807  (exit $ac_status); } && {
55808	 test -z "$ac_c_werror_flag" ||
55809	 test ! -s conftest.err
55810       } && test -s conftest$ac_exeext && {
55811	 test "$cross_compiling" = yes ||
55812	 $as_test_x conftest$ac_exeext
55813       }; then
55814  eval "$as_ac_var=yes"
55815else
55816  $as_echo "$as_me: failed program was:" >&5
55817sed 's/^/| /' conftest.$ac_ext >&5
55818
55819	eval "$as_ac_var=no"
55820fi
55821
55822rm -rf conftest.dSYM
55823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55824      conftest$ac_exeext conftest.$ac_ext
55825fi
55826ac_res=`eval 'as_val=${'$as_ac_var'}
55827		 $as_echo "$as_val"'`
55828	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55829$as_echo "$ac_res" >&6; }
55830as_val=`eval 'as_val=${'$as_ac_var'}
55831		 $as_echo "$as_val"'`
55832   if test "x$as_val" = x""yes; then
55833  cat >>confdefs.h <<_ACEOF
55834#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55835_ACEOF
55836
55837else
55838
55839    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
55840
55841fi
55842done
55843
55844
55845
55846
55847
55848
55849
55850
55851
55852
55853
55854
55855for ac_func in strtoul
55856do
55857as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
55858{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
55859$as_echo_n "checking for $ac_func... " >&6; }
55860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
55861  $as_echo_n "(cached) " >&6
55862else
55863  cat >conftest.$ac_ext <<_ACEOF
55864/* confdefs.h.  */
55865_ACEOF
55866cat confdefs.h >>conftest.$ac_ext
55867cat >>conftest.$ac_ext <<_ACEOF
55868/* end confdefs.h.  */
55869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
55870   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
55871#define $ac_func innocuous_$ac_func
55872
55873/* System header to define __stub macros and hopefully few prototypes,
55874    which can conflict with char $ac_func (); below.
55875    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
55876    <limits.h> exists even on freestanding compilers.  */
55877
55878#ifdef __STDC__
55879# include <limits.h>
55880#else
55881# include <assert.h>
55882#endif
55883
55884#undef $ac_func
55885
55886/* Override any GCC internal prototype to avoid an error.
55887   Use char because int might match the return type of a GCC
55888   builtin and then its argument prototype would still apply.  */
55889#ifdef __cplusplus
55890extern "C"
55891#endif
55892char $ac_func ();
55893/* The GNU C library defines this for functions which it implements
55894    to always fail with ENOSYS.  Some functions are actually named
55895    something starting with __ and the normal name is an alias.  */
55896#if defined __stub_$ac_func || defined __stub___$ac_func
55897choke me
55898#endif
55899
55900int
55901main ()
55902{
55903return $ac_func ();
55904  ;
55905  return 0;
55906}
55907_ACEOF
55908rm -f conftest.$ac_objext conftest$ac_exeext
55909if { (ac_try="$ac_link"
55910case "(($ac_try" in
55911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55912  *) ac_try_echo=$ac_try;;
55913esac
55914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55915$as_echo "$ac_try_echo") >&5
55916  (eval "$ac_link") 2>conftest.er1
55917  ac_status=$?
55918  grep -v '^ *+' conftest.er1 >conftest.err
55919  rm -f conftest.er1
55920  cat conftest.err >&5
55921  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55922  (exit $ac_status); } && {
55923	 test -z "$ac_c_werror_flag" ||
55924	 test ! -s conftest.err
55925       } && test -s conftest$ac_exeext && {
55926	 test "$cross_compiling" = yes ||
55927	 $as_test_x conftest$ac_exeext
55928       }; then
55929  eval "$as_ac_var=yes"
55930else
55931  $as_echo "$as_me: failed program was:" >&5
55932sed 's/^/| /' conftest.$ac_ext >&5
55933
55934	eval "$as_ac_var=no"
55935fi
55936
55937rm -rf conftest.dSYM
55938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55939      conftest$ac_exeext conftest.$ac_ext
55940fi
55941ac_res=`eval 'as_val=${'$as_ac_var'}
55942		 $as_echo "$as_val"'`
55943	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55944$as_echo "$ac_res" >&6; }
55945as_val=`eval 'as_val=${'$as_ac_var'}
55946		 $as_echo "$as_val"'`
55947   if test "x$as_val" = x""yes; then
55948  cat >>confdefs.h <<_ACEOF
55949#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
55950_ACEOF
55951
55952else
55953
55954    gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
55955
55956fi
55957done
55958
55959
55960
55961
55962
55963  :
55964
55965
55966
55967
55968
55969  if test $ac_cv_func_lstat = yes; then
55970    HAVE_LSTAT=1
55971  else
55972    HAVE_LSTAT=0
55973  fi
55974
55975
55976      { $as_echo "$as_me:$LINENO: checking whether mkdir is declared" >&5
55977$as_echo_n "checking whether mkdir is declared... " >&6; }
55978if test "${ac_cv_have_decl_mkdir+set}" = set; then
55979  $as_echo_n "(cached) " >&6
55980else
55981  cat >conftest.$ac_ext <<_ACEOF
55982/* confdefs.h.  */
55983_ACEOF
55984cat confdefs.h >>conftest.$ac_ext
55985cat >>conftest.$ac_ext <<_ACEOF
55986/* end confdefs.h.  */
55987#include <sys/stat.h>
55988
55989int
55990main ()
55991{
55992#ifndef mkdir
55993  (void) mkdir;
55994#endif
55995
55996  ;
55997  return 0;
55998}
55999_ACEOF
56000rm -f conftest.$ac_objext
56001if { (ac_try="$ac_compile"
56002case "(($ac_try" in
56003  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56004  *) ac_try_echo=$ac_try;;
56005esac
56006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56007$as_echo "$ac_try_echo") >&5
56008  (eval "$ac_compile") 2>conftest.er1
56009  ac_status=$?
56010  grep -v '^ *+' conftest.er1 >conftest.err
56011  rm -f conftest.er1
56012  cat conftest.err >&5
56013  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56014  (exit $ac_status); } && {
56015	 test -z "$ac_c_werror_flag" ||
56016	 test ! -s conftest.err
56017       } && test -s conftest.$ac_objext; then
56018  ac_cv_have_decl_mkdir=yes
56019else
56020  $as_echo "$as_me: failed program was:" >&5
56021sed 's/^/| /' conftest.$ac_ext >&5
56022
56023	ac_cv_have_decl_mkdir=no
56024fi
56025
56026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56027fi
56028{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mkdir" >&5
56029$as_echo "$ac_cv_have_decl_mkdir" >&6; }
56030if test "x$ac_cv_have_decl_mkdir" = x""yes; then
56031
56032cat >>confdefs.h <<_ACEOF
56033#define HAVE_DECL_MKDIR 1
56034_ACEOF
56035
56036
56037else
56038  cat >>confdefs.h <<_ACEOF
56039#define HAVE_DECL_MKDIR 0
56040_ACEOF
56041
56042
56043for ac_header in io.h
56044do
56045as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
56046if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56047  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
56048$as_echo_n "checking for $ac_header... " >&6; }
56049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56050  $as_echo_n "(cached) " >&6
56051fi
56052ac_res=`eval 'as_val=${'$as_ac_Header'}
56053		 $as_echo "$as_val"'`
56054	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56055$as_echo "$ac_res" >&6; }
56056else
56057  # Is the header compilable?
56058{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
56059$as_echo_n "checking $ac_header usability... " >&6; }
56060cat >conftest.$ac_ext <<_ACEOF
56061/* confdefs.h.  */
56062_ACEOF
56063cat confdefs.h >>conftest.$ac_ext
56064cat >>conftest.$ac_ext <<_ACEOF
56065/* end confdefs.h.  */
56066$ac_includes_default
56067#include <$ac_header>
56068_ACEOF
56069rm -f conftest.$ac_objext
56070if { (ac_try="$ac_compile"
56071case "(($ac_try" in
56072  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56073  *) ac_try_echo=$ac_try;;
56074esac
56075eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56076$as_echo "$ac_try_echo") >&5
56077  (eval "$ac_compile") 2>conftest.er1
56078  ac_status=$?
56079  grep -v '^ *+' conftest.er1 >conftest.err
56080  rm -f conftest.er1
56081  cat conftest.err >&5
56082  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56083  (exit $ac_status); } && {
56084	 test -z "$ac_c_werror_flag" ||
56085	 test ! -s conftest.err
56086       } && test -s conftest.$ac_objext; then
56087  ac_header_compiler=yes
56088else
56089  $as_echo "$as_me: failed program was:" >&5
56090sed 's/^/| /' conftest.$ac_ext >&5
56091
56092	ac_header_compiler=no
56093fi
56094
56095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56096{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
56097$as_echo "$ac_header_compiler" >&6; }
56098
56099# Is the header present?
56100{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
56101$as_echo_n "checking $ac_header presence... " >&6; }
56102cat >conftest.$ac_ext <<_ACEOF
56103/* confdefs.h.  */
56104_ACEOF
56105cat confdefs.h >>conftest.$ac_ext
56106cat >>conftest.$ac_ext <<_ACEOF
56107/* end confdefs.h.  */
56108#include <$ac_header>
56109_ACEOF
56110if { (ac_try="$ac_cpp conftest.$ac_ext"
56111case "(($ac_try" in
56112  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56113  *) ac_try_echo=$ac_try;;
56114esac
56115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56116$as_echo "$ac_try_echo") >&5
56117  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
56118  ac_status=$?
56119  grep -v '^ *+' conftest.er1 >conftest.err
56120  rm -f conftest.er1
56121  cat conftest.err >&5
56122  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56123  (exit $ac_status); } >/dev/null && {
56124	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
56125	 test ! -s conftest.err
56126       }; then
56127  ac_header_preproc=yes
56128else
56129  $as_echo "$as_me: failed program was:" >&5
56130sed 's/^/| /' conftest.$ac_ext >&5
56131
56132  ac_header_preproc=no
56133fi
56134
56135rm -f conftest.err conftest.$ac_ext
56136{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
56137$as_echo "$ac_header_preproc" >&6; }
56138
56139# So?  What about this header?
56140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
56141  yes:no: )
56142    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
56143$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
56144    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
56145$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
56146    ac_header_preproc=yes
56147    ;;
56148  no:yes:* )
56149    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
56150$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
56151    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
56152$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
56153    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
56154$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
56155    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
56156$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
56157    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
56158$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
56159    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
56160$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
56161
56162    ;;
56163esac
56164{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
56165$as_echo_n "checking for $ac_header... " >&6; }
56166if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
56167  $as_echo_n "(cached) " >&6
56168else
56169  eval "$as_ac_Header=\$ac_header_preproc"
56170fi
56171ac_res=`eval 'as_val=${'$as_ac_Header'}
56172		 $as_echo "$as_val"'`
56173	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56174$as_echo "$ac_res" >&6; }
56175
56176fi
56177as_val=`eval 'as_val=${'$as_ac_Header'}
56178		 $as_echo "$as_val"'`
56179   if test "x$as_val" = x""yes; then
56180  cat >>confdefs.h <<_ACEOF
56181#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
56182_ACEOF
56183
56184fi
56185
56186done
56187
56188fi
56189
56190
56191  if test $ac_cv_have_decl_mkdir = yes; then
56192    HAVE_DECL_MKDIR=1
56193  else
56194    HAVE_DECL_MKDIR=0
56195  fi
56196
56197  if test "$ac_cv_header_io_h" = yes; then
56198    HAVE_IO_H=1
56199  else
56200    HAVE_IO_H=0
56201  fi
56202
56203
56204
56205
56206
56207
56208
56209
56210  :
56211
56212
56213
56214
56215
56216
56217
56218     if test $gl_cv_have_include_next = yes; then
56219       gl_cv_next_sys_stat_h='<'sys/stat.h'>'
56220     else
56221       { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
56222$as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
56223if test "${gl_cv_next_sys_stat_h+set}" = set; then
56224  $as_echo_n "(cached) " >&6
56225else
56226
56227	  if test $ac_cv_header_sys_stat_h = yes; then
56228	    cat >conftest.$ac_ext <<_ACEOF
56229/* confdefs.h.  */
56230_ACEOF
56231cat confdefs.h >>conftest.$ac_ext
56232cat >>conftest.$ac_ext <<_ACEOF
56233/* end confdefs.h.  */
56234#include <sys/stat.h>
56235
56236_ACEOF
56237	    	    	    	    gl_cv_next_sys_stat_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56238	       sed -n '\#/sys/stat.h#{
56239		 s#.*"\(.*/sys/stat.h\)".*#\1#
56240		 s#^/[^/]#//&#
56241		 p
56242		 q
56243	       }'`'"'
56244	  else
56245	    gl_cv_next_sys_stat_h='<'sys/stat.h'>'
56246	  fi
56247
56248fi
56249{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
56250$as_echo "$gl_cv_next_sys_stat_h" >&6; }
56251     fi
56252     NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
56253
56254
56255
56256  SYS_STAT_H='sys/stat.h'
56257
56258
56259  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
56260$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
56261if test -z "$MKDIR_P"; then
56262  if test "${ac_cv_path_mkdir+set}" = set; then
56263  $as_echo_n "(cached) " >&6
56264else
56265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56266for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
56267do
56268  IFS=$as_save_IFS
56269  test -z "$as_dir" && as_dir=.
56270  for ac_prog in mkdir gmkdir; do
56271	 for ac_exec_ext in '' $ac_executable_extensions; do
56272	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
56273	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
56274	     'mkdir (GNU coreutils) '* | \
56275	     'mkdir (coreutils) '* | \
56276	     'mkdir (fileutils) '4.1*)
56277	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
56278	       break 3;;
56279	   esac
56280	 done
56281       done
56282done
56283IFS=$as_save_IFS
56284
56285fi
56286
56287  if test "${ac_cv_path_mkdir+set}" = set; then
56288    MKDIR_P="$ac_cv_path_mkdir -p"
56289  else
56290    # As a last resort, use the slow shell script.  Don't cache a
56291    # value for MKDIR_P within a source directory, because that will
56292    # break other packages using the cache if that directory is
56293    # removed, or if the value is a relative name.
56294    test -d ./--version && rmdir ./--version
56295    MKDIR_P="$ac_install_sh -d"
56296  fi
56297fi
56298{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
56299$as_echo "$MKDIR_P" >&6; }
56300
56301
56302
56303
56304  { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
56305$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
56306if test -z "$MKDIR_P"; then
56307  if test "${ac_cv_path_mkdir+set}" = set; then
56308  $as_echo_n "(cached) " >&6
56309else
56310  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56311for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
56312do
56313  IFS=$as_save_IFS
56314  test -z "$as_dir" && as_dir=.
56315  for ac_prog in mkdir gmkdir; do
56316	 for ac_exec_ext in '' $ac_executable_extensions; do
56317	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
56318	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
56319	     'mkdir (GNU coreutils) '* | \
56320	     'mkdir (coreutils) '* | \
56321	     'mkdir (fileutils) '4.1*)
56322	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
56323	       break 3;;
56324	   esac
56325	 done
56326       done
56327done
56328IFS=$as_save_IFS
56329
56330fi
56331
56332  if test "${ac_cv_path_mkdir+set}" = set; then
56333    MKDIR_P="$ac_cv_path_mkdir -p"
56334  else
56335    # As a last resort, use the slow shell script.  Don't cache a
56336    # value for MKDIR_P within a source directory, because that will
56337    # break other packages using the cache if that directory is
56338    # removed, or if the value is a relative name.
56339    test -d ./--version && rmdir ./--version
56340    MKDIR_P="$ac_install_sh -d"
56341  fi
56342fi
56343{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
56344$as_echo "$MKDIR_P" >&6; }
56345
56346
56347
56348
56349
56350
56351
56352
56353
56354
56355
56356  gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
56357
56358
56359  :
56360
56361
56362
56363
56364
56365
56366
56367  if test $gl_cv_terminfo_tparam = no && test $gl_cv_terminfo_tparm = no; then
56368
56369
56370
56371
56372
56373
56374
56375  gl_LIBOBJS="$gl_LIBOBJS tparm.$ac_objext"
56376
56377  fi
56378  case "$gl_cv_terminfo" in
56379    no*)
56380      case "$gl_cv_termcap" in
56381        no*)
56382
56383
56384
56385
56386
56387
56388
56389  gl_LIBOBJS="$gl_LIBOBJS tputs.$ac_objext"
56390
56391          ;;
56392      esac
56393      ;;
56394  esac
56395
56396
56397
56398
56399      LIBSCHED=
56400  if test $gl_threads_api = posix; then
56401        { $as_echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
56402$as_echo_n "checking for sched_yield in -lrt... " >&6; }
56403if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
56404  $as_echo_n "(cached) " >&6
56405else
56406  ac_check_lib_save_LIBS=$LIBS
56407LIBS="-lrt  $LIBS"
56408cat >conftest.$ac_ext <<_ACEOF
56409/* confdefs.h.  */
56410_ACEOF
56411cat confdefs.h >>conftest.$ac_ext
56412cat >>conftest.$ac_ext <<_ACEOF
56413/* end confdefs.h.  */
56414
56415/* Override any GCC internal prototype to avoid an error.
56416   Use char because int might match the return type of a GCC
56417   builtin and then its argument prototype would still apply.  */
56418#ifdef __cplusplus
56419extern "C"
56420#endif
56421char sched_yield ();
56422int
56423main ()
56424{
56425return sched_yield ();
56426  ;
56427  return 0;
56428}
56429_ACEOF
56430rm -f conftest.$ac_objext conftest$ac_exeext
56431if { (ac_try="$ac_link"
56432case "(($ac_try" in
56433  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56434  *) ac_try_echo=$ac_try;;
56435esac
56436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56437$as_echo "$ac_try_echo") >&5
56438  (eval "$ac_link") 2>conftest.er1
56439  ac_status=$?
56440  grep -v '^ *+' conftest.er1 >conftest.err
56441  rm -f conftest.er1
56442  cat conftest.err >&5
56443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56444  (exit $ac_status); } && {
56445	 test -z "$ac_c_werror_flag" ||
56446	 test ! -s conftest.err
56447       } && test -s conftest$ac_exeext && {
56448	 test "$cross_compiling" = yes ||
56449	 $as_test_x conftest$ac_exeext
56450       }; then
56451  ac_cv_lib_rt_sched_yield=yes
56452else
56453  $as_echo "$as_me: failed program was:" >&5
56454sed 's/^/| /' conftest.$ac_ext >&5
56455
56456	ac_cv_lib_rt_sched_yield=no
56457fi
56458
56459rm -rf conftest.dSYM
56460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56461      conftest$ac_exeext conftest.$ac_ext
56462LIBS=$ac_check_lib_save_LIBS
56463fi
56464{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
56465$as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
56466if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then
56467  LIBSCHED=-lrt
56468else
56469         { $as_echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
56470$as_echo_n "checking for sched_yield in -lposix4... " >&6; }
56471if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
56472  $as_echo_n "(cached) " >&6
56473else
56474  ac_check_lib_save_LIBS=$LIBS
56475LIBS="-lposix4  $LIBS"
56476cat >conftest.$ac_ext <<_ACEOF
56477/* confdefs.h.  */
56478_ACEOF
56479cat confdefs.h >>conftest.$ac_ext
56480cat >>conftest.$ac_ext <<_ACEOF
56481/* end confdefs.h.  */
56482
56483/* Override any GCC internal prototype to avoid an error.
56484   Use char because int might match the return type of a GCC
56485   builtin and then its argument prototype would still apply.  */
56486#ifdef __cplusplus
56487extern "C"
56488#endif
56489char sched_yield ();
56490int
56491main ()
56492{
56493return sched_yield ();
56494  ;
56495  return 0;
56496}
56497_ACEOF
56498rm -f conftest.$ac_objext conftest$ac_exeext
56499if { (ac_try="$ac_link"
56500case "(($ac_try" in
56501  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56502  *) ac_try_echo=$ac_try;;
56503esac
56504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56505$as_echo "$ac_try_echo") >&5
56506  (eval "$ac_link") 2>conftest.er1
56507  ac_status=$?
56508  grep -v '^ *+' conftest.er1 >conftest.err
56509  rm -f conftest.er1
56510  cat conftest.err >&5
56511  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56512  (exit $ac_status); } && {
56513	 test -z "$ac_c_werror_flag" ||
56514	 test ! -s conftest.err
56515       } && test -s conftest$ac_exeext && {
56516	 test "$cross_compiling" = yes ||
56517	 $as_test_x conftest$ac_exeext
56518       }; then
56519  ac_cv_lib_posix4_sched_yield=yes
56520else
56521  $as_echo "$as_me: failed program was:" >&5
56522sed 's/^/| /' conftest.$ac_ext >&5
56523
56524	ac_cv_lib_posix4_sched_yield=no
56525fi
56526
56527rm -rf conftest.dSYM
56528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56529      conftest$ac_exeext conftest.$ac_ext
56530LIBS=$ac_check_lib_save_LIBS
56531fi
56532{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
56533$as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
56534if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then
56535  LIBSCHED=-lposix4
56536fi
56537
56538fi
56539
56540  fi
56541
56542
56543
56544for ac_func in __secure_getenv
56545do
56546as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
56547{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
56548$as_echo_n "checking for $ac_func... " >&6; }
56549if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
56550  $as_echo_n "(cached) " >&6
56551else
56552  cat >conftest.$ac_ext <<_ACEOF
56553/* confdefs.h.  */
56554_ACEOF
56555cat confdefs.h >>conftest.$ac_ext
56556cat >>conftest.$ac_ext <<_ACEOF
56557/* end confdefs.h.  */
56558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
56559   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
56560#define $ac_func innocuous_$ac_func
56561
56562/* System header to define __stub macros and hopefully few prototypes,
56563    which can conflict with char $ac_func (); below.
56564    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
56565    <limits.h> exists even on freestanding compilers.  */
56566
56567#ifdef __STDC__
56568# include <limits.h>
56569#else
56570# include <assert.h>
56571#endif
56572
56573#undef $ac_func
56574
56575/* Override any GCC internal prototype to avoid an error.
56576   Use char because int might match the return type of a GCC
56577   builtin and then its argument prototype would still apply.  */
56578#ifdef __cplusplus
56579extern "C"
56580#endif
56581char $ac_func ();
56582/* The GNU C library defines this for functions which it implements
56583    to always fail with ENOSYS.  Some functions are actually named
56584    something starting with __ and the normal name is an alias.  */
56585#if defined __stub_$ac_func || defined __stub___$ac_func
56586choke me
56587#endif
56588
56589int
56590main ()
56591{
56592return $ac_func ();
56593  ;
56594  return 0;
56595}
56596_ACEOF
56597rm -f conftest.$ac_objext conftest$ac_exeext
56598if { (ac_try="$ac_link"
56599case "(($ac_try" in
56600  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56601  *) ac_try_echo=$ac_try;;
56602esac
56603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56604$as_echo "$ac_try_echo") >&5
56605  (eval "$ac_link") 2>conftest.er1
56606  ac_status=$?
56607  grep -v '^ *+' conftest.er1 >conftest.err
56608  rm -f conftest.er1
56609  cat conftest.err >&5
56610  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56611  (exit $ac_status); } && {
56612	 test -z "$ac_c_werror_flag" ||
56613	 test ! -s conftest.err
56614       } && test -s conftest$ac_exeext && {
56615	 test "$cross_compiling" = yes ||
56616	 $as_test_x conftest$ac_exeext
56617       }; then
56618  eval "$as_ac_var=yes"
56619else
56620  $as_echo "$as_me: failed program was:" >&5
56621sed 's/^/| /' conftest.$ac_ext >&5
56622
56623	eval "$as_ac_var=no"
56624fi
56625
56626rm -rf conftest.dSYM
56627rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56628      conftest$ac_exeext conftest.$ac_ext
56629fi
56630ac_res=`eval 'as_val=${'$as_ac_var'}
56631		 $as_echo "$as_val"'`
56632	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56633$as_echo "$ac_res" >&6; }
56634as_val=`eval 'as_val=${'$as_ac_var'}
56635		 $as_echo "$as_val"'`
56636   if test "x$as_val" = x""yes; then
56637  cat >>confdefs.h <<_ACEOF
56638#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
56639_ACEOF
56640
56641fi
56642done
56643
56644
56645
56646
56647
56648
56649
56650
56651  :
56652
56653
56654
56655
56656
56657
56658
56659     if test $gl_cv_have_include_next = yes; then
56660       gl_cv_next_unistd_h='<'unistd.h'>'
56661     else
56662       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
56663$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
56664if test "${gl_cv_next_unistd_h+set}" = set; then
56665  $as_echo_n "(cached) " >&6
56666else
56667
56668	  if test $ac_cv_header_unistd_h = yes; then
56669	    cat >conftest.$ac_ext <<_ACEOF
56670/* confdefs.h.  */
56671_ACEOF
56672cat confdefs.h >>conftest.$ac_ext
56673cat >>conftest.$ac_ext <<_ACEOF
56674/* end confdefs.h.  */
56675#include <unistd.h>
56676
56677_ACEOF
56678	    	    	    	    gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
56679	       sed -n '\#/unistd.h#{
56680		 s#.*"\(.*/unistd.h\)".*#\1#
56681		 s#^/[^/]#//&#
56682		 p
56683		 q
56684	       }'`'"'
56685	  else
56686	    gl_cv_next_unistd_h='<'unistd.h'>'
56687	  fi
56688
56689fi
56690{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
56691$as_echo "$gl_cv_next_unistd_h" >&6; }
56692     fi
56693     NEXT_UNISTD_H=$gl_cv_next_unistd_h
56694
56695
56696
56697
56698
56699  :
56700
56701
56702
56703
56704
56705  if test $ac_cv_header_unistd_h = yes; then
56706    HAVE_UNISTD_H=1
56707  else
56708    HAVE_UNISTD_H=0
56709  fi
56710
56711
56712
56713
56714cat >>confdefs.h <<\_ACEOF
56715#define GNULIB_UNISTR_U16_MBTOUC 1
56716_ACEOF
56717
56718
56719
56720
56721cat >>confdefs.h <<\_ACEOF
56722#define GNULIB_UNISTR_U16_MBTOUC_UNSAFE 1
56723_ACEOF
56724
56725
56726
56727
56728cat >>confdefs.h <<\_ACEOF
56729#define GNULIB_UNISTR_U8_MBTOUC 1
56730_ACEOF
56731
56732
56733
56734
56735cat >>confdefs.h <<\_ACEOF
56736#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
56737_ACEOF
56738
56739
56740
56741
56742cat >>confdefs.h <<\_ACEOF
56743#define GNULIB_UNISTR_U8_UCTOMB 1
56744_ACEOF
56745
56746
56747
56748
56749cat >>confdefs.h <<\_ACEOF
56750#define USE_UNLOCKED_IO 1
56751_ACEOF
56752
56753
56754
56755
56756
56757  :
56758
56759
56760
56761
56762
56763
56764  :
56765
56766
56767
56768
56769
56770
56771  :
56772
56773
56774
56775
56776
56777
56778  :
56779
56780
56781
56782
56783
56784
56785  :
56786
56787
56788
56789
56790
56791
56792  :
56793
56794
56795
56796
56797
56798
56799  :
56800
56801
56802
56803
56804
56805
56806  :
56807
56808
56809
56810
56811
56812
56813  :
56814
56815
56816
56817
56818
56819
56820  :
56821
56822
56823
56824
56825
56826
56827  :
56828
56829
56830
56831
56832
56833
56834  :
56835
56836
56837
56838
56839
56840
56841  :
56842
56843
56844
56845
56846
56847
56848
56849
56850
56851  :
56852
56853
56854
56855
56856
56857  if test $ac_cv_func_vasnprintf = no; then
56858
56859
56860  :
56861
56862
56863
56864
56865
56866
56867
56868
56869
56870
56871
56872
56873  gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
56874
56875
56876
56877
56878
56879
56880
56881
56882  gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
56883
56884
56885
56886
56887
56888
56889
56890
56891  gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
56892
56893
56894
56895
56896
56897
56898
56899
56900  gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
56901
56902  if test $ac_cv_func_vasnprintf = yes; then
56903
56904cat >>confdefs.h <<\_ACEOF
56905#define REPLACE_VASNPRINTF 1
56906_ACEOF
56907
56908  fi
56909
56910
56911
56912
56913
56914
56915
56916
56917
56918
56919  { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
56920$as_echo_n "checking for ptrdiff_t... " >&6; }
56921if test "${ac_cv_type_ptrdiff_t+set}" = set; then
56922  $as_echo_n "(cached) " >&6
56923else
56924  ac_cv_type_ptrdiff_t=no
56925cat >conftest.$ac_ext <<_ACEOF
56926/* confdefs.h.  */
56927_ACEOF
56928cat confdefs.h >>conftest.$ac_ext
56929cat >>conftest.$ac_ext <<_ACEOF
56930/* end confdefs.h.  */
56931$ac_includes_default
56932int
56933main ()
56934{
56935if (sizeof (ptrdiff_t))
56936       return 0;
56937  ;
56938  return 0;
56939}
56940_ACEOF
56941rm -f conftest.$ac_objext
56942if { (ac_try="$ac_compile"
56943case "(($ac_try" in
56944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56945  *) ac_try_echo=$ac_try;;
56946esac
56947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56948$as_echo "$ac_try_echo") >&5
56949  (eval "$ac_compile") 2>conftest.er1
56950  ac_status=$?
56951  grep -v '^ *+' conftest.er1 >conftest.err
56952  rm -f conftest.er1
56953  cat conftest.err >&5
56954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56955  (exit $ac_status); } && {
56956	 test -z "$ac_c_werror_flag" ||
56957	 test ! -s conftest.err
56958       } && test -s conftest.$ac_objext; then
56959  cat >conftest.$ac_ext <<_ACEOF
56960/* confdefs.h.  */
56961_ACEOF
56962cat confdefs.h >>conftest.$ac_ext
56963cat >>conftest.$ac_ext <<_ACEOF
56964/* end confdefs.h.  */
56965$ac_includes_default
56966int
56967main ()
56968{
56969if (sizeof ((ptrdiff_t)))
56970	  return 0;
56971  ;
56972  return 0;
56973}
56974_ACEOF
56975rm -f conftest.$ac_objext
56976if { (ac_try="$ac_compile"
56977case "(($ac_try" in
56978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56979  *) ac_try_echo=$ac_try;;
56980esac
56981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56982$as_echo "$ac_try_echo") >&5
56983  (eval "$ac_compile") 2>conftest.er1
56984  ac_status=$?
56985  grep -v '^ *+' conftest.er1 >conftest.err
56986  rm -f conftest.er1
56987  cat conftest.err >&5
56988  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56989  (exit $ac_status); } && {
56990	 test -z "$ac_c_werror_flag" ||
56991	 test ! -s conftest.err
56992       } && test -s conftest.$ac_objext; then
56993  :
56994else
56995  $as_echo "$as_me: failed program was:" >&5
56996sed 's/^/| /' conftest.$ac_ext >&5
56997
56998	ac_cv_type_ptrdiff_t=yes
56999fi
57000
57001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57002else
57003  $as_echo "$as_me: failed program was:" >&5
57004sed 's/^/| /' conftest.$ac_ext >&5
57005
57006
57007fi
57008
57009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57010fi
57011{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
57012$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
57013if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
57014
57015cat >>confdefs.h <<_ACEOF
57016#define HAVE_PTRDIFF_T 1
57017_ACEOF
57018
57019
57020fi
57021
57022
57023
57024
57025
57026
57027
57028
57029
57030
57031for ac_func in snprintf wcslen
57032do
57033as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57034{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57035$as_echo_n "checking for $ac_func... " >&6; }
57036if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57037  $as_echo_n "(cached) " >&6
57038else
57039  cat >conftest.$ac_ext <<_ACEOF
57040/* confdefs.h.  */
57041_ACEOF
57042cat confdefs.h >>conftest.$ac_ext
57043cat >>conftest.$ac_ext <<_ACEOF
57044/* end confdefs.h.  */
57045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57046   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57047#define $ac_func innocuous_$ac_func
57048
57049/* System header to define __stub macros and hopefully few prototypes,
57050    which can conflict with char $ac_func (); below.
57051    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57052    <limits.h> exists even on freestanding compilers.  */
57053
57054#ifdef __STDC__
57055# include <limits.h>
57056#else
57057# include <assert.h>
57058#endif
57059
57060#undef $ac_func
57061
57062/* Override any GCC internal prototype to avoid an error.
57063   Use char because int might match the return type of a GCC
57064   builtin and then its argument prototype would still apply.  */
57065#ifdef __cplusplus
57066extern "C"
57067#endif
57068char $ac_func ();
57069/* The GNU C library defines this for functions which it implements
57070    to always fail with ENOSYS.  Some functions are actually named
57071    something starting with __ and the normal name is an alias.  */
57072#if defined __stub_$ac_func || defined __stub___$ac_func
57073choke me
57074#endif
57075
57076int
57077main ()
57078{
57079return $ac_func ();
57080  ;
57081  return 0;
57082}
57083_ACEOF
57084rm -f conftest.$ac_objext conftest$ac_exeext
57085if { (ac_try="$ac_link"
57086case "(($ac_try" in
57087  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57088  *) ac_try_echo=$ac_try;;
57089esac
57090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57091$as_echo "$ac_try_echo") >&5
57092  (eval "$ac_link") 2>conftest.er1
57093  ac_status=$?
57094  grep -v '^ *+' conftest.er1 >conftest.err
57095  rm -f conftest.er1
57096  cat conftest.err >&5
57097  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57098  (exit $ac_status); } && {
57099	 test -z "$ac_c_werror_flag" ||
57100	 test ! -s conftest.err
57101       } && test -s conftest$ac_exeext && {
57102	 test "$cross_compiling" = yes ||
57103	 $as_test_x conftest$ac_exeext
57104       }; then
57105  eval "$as_ac_var=yes"
57106else
57107  $as_echo "$as_me: failed program was:" >&5
57108sed 's/^/| /' conftest.$ac_ext >&5
57109
57110	eval "$as_ac_var=no"
57111fi
57112
57113rm -rf conftest.dSYM
57114rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57115      conftest$ac_exeext conftest.$ac_ext
57116fi
57117ac_res=`eval 'as_val=${'$as_ac_var'}
57118		 $as_echo "$as_val"'`
57119	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57120$as_echo "$ac_res" >&6; }
57121as_val=`eval 'as_val=${'$as_ac_var'}
57122		 $as_echo "$as_val"'`
57123   if test "x$as_val" = x""yes; then
57124  cat >>confdefs.h <<_ACEOF
57125#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57126_ACEOF
57127
57128fi
57129done
57130
57131      { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
57132$as_echo_n "checking whether _snprintf is declared... " >&6; }
57133if test "${ac_cv_have_decl__snprintf+set}" = set; then
57134  $as_echo_n "(cached) " >&6
57135else
57136  cat >conftest.$ac_ext <<_ACEOF
57137/* confdefs.h.  */
57138_ACEOF
57139cat confdefs.h >>conftest.$ac_ext
57140cat >>conftest.$ac_ext <<_ACEOF
57141/* end confdefs.h.  */
57142#include <stdio.h>
57143
57144int
57145main ()
57146{
57147#ifndef _snprintf
57148  (void) _snprintf;
57149#endif
57150
57151  ;
57152  return 0;
57153}
57154_ACEOF
57155rm -f conftest.$ac_objext
57156if { (ac_try="$ac_compile"
57157case "(($ac_try" in
57158  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57159  *) ac_try_echo=$ac_try;;
57160esac
57161eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57162$as_echo "$ac_try_echo") >&5
57163  (eval "$ac_compile") 2>conftest.er1
57164  ac_status=$?
57165  grep -v '^ *+' conftest.er1 >conftest.err
57166  rm -f conftest.er1
57167  cat conftest.err >&5
57168  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57169  (exit $ac_status); } && {
57170	 test -z "$ac_c_werror_flag" ||
57171	 test ! -s conftest.err
57172       } && test -s conftest.$ac_objext; then
57173  ac_cv_have_decl__snprintf=yes
57174else
57175  $as_echo "$as_me: failed program was:" >&5
57176sed 's/^/| /' conftest.$ac_ext >&5
57177
57178	ac_cv_have_decl__snprintf=no
57179fi
57180
57181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57182fi
57183{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
57184$as_echo "$ac_cv_have_decl__snprintf" >&6; }
57185if test "x$ac_cv_have_decl__snprintf" = x""yes; then
57186
57187cat >>confdefs.h <<_ACEOF
57188#define HAVE_DECL__SNPRINTF 1
57189_ACEOF
57190
57191
57192else
57193  cat >>confdefs.h <<_ACEOF
57194#define HAVE_DECL__SNPRINTF 0
57195_ACEOF
57196
57197
57198fi
57199
57200
57201
57202
57203
57204
57205  fi
57206
57207
57208
57209for ac_func in vasprintf
57210do
57211as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57212{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57213$as_echo_n "checking for $ac_func... " >&6; }
57214if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57215  $as_echo_n "(cached) " >&6
57216else
57217  cat >conftest.$ac_ext <<_ACEOF
57218/* confdefs.h.  */
57219_ACEOF
57220cat confdefs.h >>conftest.$ac_ext
57221cat >>conftest.$ac_ext <<_ACEOF
57222/* end confdefs.h.  */
57223/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57224   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57225#define $ac_func innocuous_$ac_func
57226
57227/* System header to define __stub macros and hopefully few prototypes,
57228    which can conflict with char $ac_func (); below.
57229    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57230    <limits.h> exists even on freestanding compilers.  */
57231
57232#ifdef __STDC__
57233# include <limits.h>
57234#else
57235# include <assert.h>
57236#endif
57237
57238#undef $ac_func
57239
57240/* Override any GCC internal prototype to avoid an error.
57241   Use char because int might match the return type of a GCC
57242   builtin and then its argument prototype would still apply.  */
57243#ifdef __cplusplus
57244extern "C"
57245#endif
57246char $ac_func ();
57247/* The GNU C library defines this for functions which it implements
57248    to always fail with ENOSYS.  Some functions are actually named
57249    something starting with __ and the normal name is an alias.  */
57250#if defined __stub_$ac_func || defined __stub___$ac_func
57251choke me
57252#endif
57253
57254int
57255main ()
57256{
57257return $ac_func ();
57258  ;
57259  return 0;
57260}
57261_ACEOF
57262rm -f conftest.$ac_objext conftest$ac_exeext
57263if { (ac_try="$ac_link"
57264case "(($ac_try" in
57265  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57266  *) ac_try_echo=$ac_try;;
57267esac
57268eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57269$as_echo "$ac_try_echo") >&5
57270  (eval "$ac_link") 2>conftest.er1
57271  ac_status=$?
57272  grep -v '^ *+' conftest.er1 >conftest.err
57273  rm -f conftest.er1
57274  cat conftest.err >&5
57275  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57276  (exit $ac_status); } && {
57277	 test -z "$ac_c_werror_flag" ||
57278	 test ! -s conftest.err
57279       } && test -s conftest$ac_exeext && {
57280	 test "$cross_compiling" = yes ||
57281	 $as_test_x conftest$ac_exeext
57282       }; then
57283  eval "$as_ac_var=yes"
57284else
57285  $as_echo "$as_me: failed program was:" >&5
57286sed 's/^/| /' conftest.$ac_ext >&5
57287
57288	eval "$as_ac_var=no"
57289fi
57290
57291rm -rf conftest.dSYM
57292rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57293      conftest$ac_exeext conftest.$ac_ext
57294fi
57295ac_res=`eval 'as_val=${'$as_ac_var'}
57296		 $as_echo "$as_val"'`
57297	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57298$as_echo "$ac_res" >&6; }
57299as_val=`eval 'as_val=${'$as_ac_var'}
57300		 $as_echo "$as_val"'`
57301   if test "x$as_val" = x""yes; then
57302  cat >>confdefs.h <<_ACEOF
57303#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57304_ACEOF
57305
57306fi
57307done
57308
57309  if test $ac_cv_func_vasprintf = no; then
57310
57311
57312
57313
57314
57315
57316
57317
57318  gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
57319
57320
57321  if test $ac_cv_func_vasprintf = yes; then
57322    REPLACE_VASPRINTF=1
57323  else
57324    HAVE_VASPRINTF=0
57325  fi
57326
57327
57328
57329
57330  fi
57331
57332
57333
57334  GNULIB_VASPRINTF=1
57335
57336
57337
57338  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
57339
57340
57341
57342  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
57343
57344
57345
57346
57347for ac_func in vsnprintf
57348do
57349as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57350{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57351$as_echo_n "checking for $ac_func... " >&6; }
57352if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57353  $as_echo_n "(cached) " >&6
57354else
57355  cat >conftest.$ac_ext <<_ACEOF
57356/* confdefs.h.  */
57357_ACEOF
57358cat confdefs.h >>conftest.$ac_ext
57359cat >>conftest.$ac_ext <<_ACEOF
57360/* end confdefs.h.  */
57361/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57362   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57363#define $ac_func innocuous_$ac_func
57364
57365/* System header to define __stub macros and hopefully few prototypes,
57366    which can conflict with char $ac_func (); below.
57367    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57368    <limits.h> exists even on freestanding compilers.  */
57369
57370#ifdef __STDC__
57371# include <limits.h>
57372#else
57373# include <assert.h>
57374#endif
57375
57376#undef $ac_func
57377
57378/* Override any GCC internal prototype to avoid an error.
57379   Use char because int might match the return type of a GCC
57380   builtin and then its argument prototype would still apply.  */
57381#ifdef __cplusplus
57382extern "C"
57383#endif
57384char $ac_func ();
57385/* The GNU C library defines this for functions which it implements
57386    to always fail with ENOSYS.  Some functions are actually named
57387    something starting with __ and the normal name is an alias.  */
57388#if defined __stub_$ac_func || defined __stub___$ac_func
57389choke me
57390#endif
57391
57392int
57393main ()
57394{
57395return $ac_func ();
57396  ;
57397  return 0;
57398}
57399_ACEOF
57400rm -f conftest.$ac_objext conftest$ac_exeext
57401if { (ac_try="$ac_link"
57402case "(($ac_try" in
57403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57404  *) ac_try_echo=$ac_try;;
57405esac
57406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57407$as_echo "$ac_try_echo") >&5
57408  (eval "$ac_link") 2>conftest.er1
57409  ac_status=$?
57410  grep -v '^ *+' conftest.er1 >conftest.err
57411  rm -f conftest.er1
57412  cat conftest.err >&5
57413  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57414  (exit $ac_status); } && {
57415	 test -z "$ac_c_werror_flag" ||
57416	 test ! -s conftest.err
57417       } && test -s conftest$ac_exeext && {
57418	 test "$cross_compiling" = yes ||
57419	 $as_test_x conftest$ac_exeext
57420       }; then
57421  eval "$as_ac_var=yes"
57422else
57423  $as_echo "$as_me: failed program was:" >&5
57424sed 's/^/| /' conftest.$ac_ext >&5
57425
57426	eval "$as_ac_var=no"
57427fi
57428
57429rm -rf conftest.dSYM
57430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57431      conftest$ac_exeext conftest.$ac_ext
57432fi
57433ac_res=`eval 'as_val=${'$as_ac_var'}
57434		 $as_echo "$as_val"'`
57435	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57436$as_echo "$ac_res" >&6; }
57437as_val=`eval 'as_val=${'$as_ac_var'}
57438		 $as_echo "$as_val"'`
57439   if test "x$as_val" = x""yes; then
57440  cat >>confdefs.h <<_ACEOF
57441#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57442_ACEOF
57443
57444fi
57445done
57446
57447  if test $ac_cv_func_vsnprintf = no; then
57448
57449
57450
57451
57452
57453
57454
57455
57456
57457  gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
57458
57459  if test $ac_cv_func_vsnprintf = yes; then
57460    REPLACE_VSNPRINTF=1
57461  fi
57462  :
57463
57464  fi
57465
57466  :
57467
57468
57469
57470
57471
57472  if test $ac_cv_have_decl_vsnprintf = no; then
57473    HAVE_DECL_VSNPRINTF=0
57474  fi
57475
57476
57477
57478  GNULIB_VSNPRINTF=1
57479
57480
57481
57482  :
57483
57484
57485
57486
57487
57488
57489
57490for ac_func in waitid
57491do
57492as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57493{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57494$as_echo_n "checking for $ac_func... " >&6; }
57495if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57496  $as_echo_n "(cached) " >&6
57497else
57498  cat >conftest.$ac_ext <<_ACEOF
57499/* confdefs.h.  */
57500_ACEOF
57501cat confdefs.h >>conftest.$ac_ext
57502cat >>conftest.$ac_ext <<_ACEOF
57503/* end confdefs.h.  */
57504/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57505   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57506#define $ac_func innocuous_$ac_func
57507
57508/* System header to define __stub macros and hopefully few prototypes,
57509    which can conflict with char $ac_func (); below.
57510    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57511    <limits.h> exists even on freestanding compilers.  */
57512
57513#ifdef __STDC__
57514# include <limits.h>
57515#else
57516# include <assert.h>
57517#endif
57518
57519#undef $ac_func
57520
57521/* Override any GCC internal prototype to avoid an error.
57522   Use char because int might match the return type of a GCC
57523   builtin and then its argument prototype would still apply.  */
57524#ifdef __cplusplus
57525extern "C"
57526#endif
57527char $ac_func ();
57528/* The GNU C library defines this for functions which it implements
57529    to always fail with ENOSYS.  Some functions are actually named
57530    something starting with __ and the normal name is an alias.  */
57531#if defined __stub_$ac_func || defined __stub___$ac_func
57532choke me
57533#endif
57534
57535int
57536main ()
57537{
57538return $ac_func ();
57539  ;
57540  return 0;
57541}
57542_ACEOF
57543rm -f conftest.$ac_objext conftest$ac_exeext
57544if { (ac_try="$ac_link"
57545case "(($ac_try" in
57546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57547  *) ac_try_echo=$ac_try;;
57548esac
57549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57550$as_echo "$ac_try_echo") >&5
57551  (eval "$ac_link") 2>conftest.er1
57552  ac_status=$?
57553  grep -v '^ *+' conftest.er1 >conftest.err
57554  rm -f conftest.er1
57555  cat conftest.err >&5
57556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57557  (exit $ac_status); } && {
57558	 test -z "$ac_c_werror_flag" ||
57559	 test ! -s conftest.err
57560       } && test -s conftest$ac_exeext && {
57561	 test "$cross_compiling" = yes ||
57562	 $as_test_x conftest$ac_exeext
57563       }; then
57564  eval "$as_ac_var=yes"
57565else
57566  $as_echo "$as_me: failed program was:" >&5
57567sed 's/^/| /' conftest.$ac_ext >&5
57568
57569	eval "$as_ac_var=no"
57570fi
57571
57572rm -rf conftest.dSYM
57573rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57574      conftest$ac_exeext conftest.$ac_ext
57575fi
57576ac_res=`eval 'as_val=${'$as_ac_var'}
57577		 $as_echo "$as_val"'`
57578	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57579$as_echo "$ac_res" >&6; }
57580as_val=`eval 'as_val=${'$as_ac_var'}
57581		 $as_echo "$as_val"'`
57582   if test "x$as_val" = x""yes; then
57583  cat >>confdefs.h <<_ACEOF
57584#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57585_ACEOF
57586
57587fi
57588done
57589
57590
57591
57592
57593for ac_func in waitpid
57594do
57595as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
57596{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
57597$as_echo_n "checking for $ac_func... " >&6; }
57598if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
57599  $as_echo_n "(cached) " >&6
57600else
57601  cat >conftest.$ac_ext <<_ACEOF
57602/* confdefs.h.  */
57603_ACEOF
57604cat confdefs.h >>conftest.$ac_ext
57605cat >>conftest.$ac_ext <<_ACEOF
57606/* end confdefs.h.  */
57607/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
57608   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
57609#define $ac_func innocuous_$ac_func
57610
57611/* System header to define __stub macros and hopefully few prototypes,
57612    which can conflict with char $ac_func (); below.
57613    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
57614    <limits.h> exists even on freestanding compilers.  */
57615
57616#ifdef __STDC__
57617# include <limits.h>
57618#else
57619# include <assert.h>
57620#endif
57621
57622#undef $ac_func
57623
57624/* Override any GCC internal prototype to avoid an error.
57625   Use char because int might match the return type of a GCC
57626   builtin and then its argument prototype would still apply.  */
57627#ifdef __cplusplus
57628extern "C"
57629#endif
57630char $ac_func ();
57631/* The GNU C library defines this for functions which it implements
57632    to always fail with ENOSYS.  Some functions are actually named
57633    something starting with __ and the normal name is an alias.  */
57634#if defined __stub_$ac_func || defined __stub___$ac_func
57635choke me
57636#endif
57637
57638int
57639main ()
57640{
57641return $ac_func ();
57642  ;
57643  return 0;
57644}
57645_ACEOF
57646rm -f conftest.$ac_objext conftest$ac_exeext
57647if { (ac_try="$ac_link"
57648case "(($ac_try" in
57649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57650  *) ac_try_echo=$ac_try;;
57651esac
57652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57653$as_echo "$ac_try_echo") >&5
57654  (eval "$ac_link") 2>conftest.er1
57655  ac_status=$?
57656  grep -v '^ *+' conftest.er1 >conftest.err
57657  rm -f conftest.er1
57658  cat conftest.err >&5
57659  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57660  (exit $ac_status); } && {
57661	 test -z "$ac_c_werror_flag" ||
57662	 test ! -s conftest.err
57663       } && test -s conftest$ac_exeext && {
57664	 test "$cross_compiling" = yes ||
57665	 $as_test_x conftest$ac_exeext
57666       }; then
57667  eval "$as_ac_var=yes"
57668else
57669  $as_echo "$as_me: failed program was:" >&5
57670sed 's/^/| /' conftest.$ac_ext >&5
57671
57672	eval "$as_ac_var=no"
57673fi
57674
57675rm -rf conftest.dSYM
57676rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57677      conftest$ac_exeext conftest.$ac_ext
57678fi
57679ac_res=`eval 'as_val=${'$as_ac_var'}
57680		 $as_echo "$as_val"'`
57681	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
57682$as_echo "$ac_res" >&6; }
57683as_val=`eval 'as_val=${'$as_ac_var'}
57684		 $as_echo "$as_val"'`
57685   if test "x$as_val" = x""yes; then
57686  cat >>confdefs.h <<_ACEOF
57687#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57688_ACEOF
57689
57690fi
57691done
57692
57693{ $as_echo "$as_me:$LINENO: checking for union wait" >&5
57694$as_echo_n "checking for union wait... " >&6; }
57695if test "${gt_cv_union_wait+set}" = set; then
57696  $as_echo_n "(cached) " >&6
57697else
57698  cat >conftest.$ac_ext <<_ACEOF
57699/* confdefs.h.  */
57700_ACEOF
57701cat confdefs.h >>conftest.$ac_ext
57702cat >>conftest.$ac_ext <<_ACEOF
57703/* end confdefs.h.  */
57704#include <sys/types.h>
57705#include <sys/wait.h>
57706int
57707main ()
57708{
57709union wait status; int pid; pid = wait (&status);
57710#ifdef WEXITSTATUS
57711/* Some POSIXoid systems have both the new-style macros and the old
57712   union wait type, and they do not work together.  If union wait
57713   conflicts with WEXITSTATUS et al, we don't want to use it at all.  */
57714if (WEXITSTATUS (status) != 0) pid = -1;
57715#ifdef WTERMSIG
57716/* If we have WEXITSTATUS and WTERMSIG, just use them on ints.  */
57717-- blow chunks here --
57718#endif
57719#endif
57720#ifdef HAVE_WAITPID
57721/* Make sure union wait works with waitpid.  */
57722pid = waitpid (-1, &status, 0);
57723#endif
57724
57725  ;
57726  return 0;
57727}
57728_ACEOF
57729rm -f conftest.$ac_objext conftest$ac_exeext
57730if { (ac_try="$ac_link"
57731case "(($ac_try" in
57732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57733  *) ac_try_echo=$ac_try;;
57734esac
57735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57736$as_echo "$ac_try_echo") >&5
57737  (eval "$ac_link") 2>conftest.er1
57738  ac_status=$?
57739  grep -v '^ *+' conftest.er1 >conftest.err
57740  rm -f conftest.er1
57741  cat conftest.err >&5
57742  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57743  (exit $ac_status); } && {
57744	 test -z "$ac_c_werror_flag" ||
57745	 test ! -s conftest.err
57746       } && test -s conftest$ac_exeext && {
57747	 test "$cross_compiling" = yes ||
57748	 $as_test_x conftest$ac_exeext
57749       }; then
57750  gt_cv_union_wait=yes
57751else
57752  $as_echo "$as_me: failed program was:" >&5
57753sed 's/^/| /' conftest.$ac_ext >&5
57754
57755	gt_cv_union_wait=no
57756fi
57757
57758rm -rf conftest.dSYM
57759rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
57760      conftest$ac_exeext conftest.$ac_ext
57761fi
57762
57763if test "$gt_cv_union_wait" = yes; then
57764
57765cat >>confdefs.h <<\_ACEOF
57766#define HAVE_UNION_WAIT 1
57767_ACEOF
57768
57769fi
57770{ $as_echo "$as_me:$LINENO: result: $gt_cv_union_wait" >&5
57771$as_echo "$gt_cv_union_wait" >&6; }
57772
57773
57774
57775  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
57776$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
57777if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
57778  $as_echo_n "(cached) " >&6
57779else
57780  cat >conftest.$ac_ext <<_ACEOF
57781#include <wchar.h>
57782wchar_t w;
57783_ACEOF
57784rm -f conftest.$ac_objext
57785if { (ac_try="$ac_compile"
57786case "(($ac_try" in
57787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
57788  *) ac_try_echo=$ac_try;;
57789esac
57790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
57791$as_echo "$ac_try_echo") >&5
57792  (eval "$ac_compile") 2>conftest.er1
57793  ac_status=$?
57794  grep -v '^ *+' conftest.er1 >conftest.err
57795  rm -f conftest.er1
57796  cat conftest.err >&5
57797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
57798  (exit $ac_status); } && {
57799	 test -z "$ac_c_werror_flag" ||
57800	 test ! -s conftest.err
57801       } && test -s conftest.$ac_objext; then
57802  gl_cv_header_wchar_h_standalone=yes
57803else
57804  $as_echo "$as_me: failed program was:" >&5
57805sed 's/^/| /' conftest.$ac_ext >&5
57806
57807	gl_cv_header_wchar_h_standalone=no
57808fi
57809
57810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57811fi
57812{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
57813$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
57814  if test $gl_cv_header_wchar_h_standalone != yes; then
57815    WCHAR_H=wchar.h
57816  fi
57817
57818
57819  :
57820
57821
57822
57823
57824
57825  if test $ac_cv_header_wchar_h = yes; then
57826    HAVE_WCHAR_H=1
57827  else
57828    HAVE_WCHAR_H=0
57829  fi
57830
57831
57832
57833
57834  :
57835
57836
57837
57838
57839
57840
57841
57842     if test $gl_cv_have_include_next = yes; then
57843       gl_cv_next_wchar_h='<'wchar.h'>'
57844     else
57845       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
57846$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
57847if test "${gl_cv_next_wchar_h+set}" = set; then
57848  $as_echo_n "(cached) " >&6
57849else
57850
57851	  if test $ac_cv_header_wchar_h = yes; then
57852	    cat >conftest.$ac_ext <<_ACEOF
57853/* confdefs.h.  */
57854_ACEOF
57855cat confdefs.h >>conftest.$ac_ext
57856cat >>conftest.$ac_ext <<_ACEOF
57857/* end confdefs.h.  */
57858#include <wchar.h>
57859
57860_ACEOF
57861	    	    	    	    gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57862	       sed -n '\#/wchar.h#{
57863		 s#.*"\(.*/wchar.h\)".*#\1#
57864		 s#^/[^/]#//&#
57865		 p
57866		 q
57867	       }'`'"'
57868	  else
57869	    gl_cv_next_wchar_h='<'wchar.h'>'
57870	  fi
57871
57872fi
57873{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
57874$as_echo "$gl_cv_next_wchar_h" >&6; }
57875     fi
57876     NEXT_WCHAR_H=$gl_cv_next_wchar_h
57877
57878
57879
57880
57881
57882
57883  :
57884
57885
57886
57887
57888
57889  if test $ac_cv_func_iswcntrl = yes; then
57890    HAVE_ISWCNTRL=1
57891  else
57892    HAVE_ISWCNTRL=0
57893  fi
57894
57895
57896  :
57897
57898
57899
57900
57901
57902
57903
57904
57905  if test $gt_cv_c_wint_t = yes; then
57906    HAVE_WINT_T=1
57907  else
57908    HAVE_WINT_T=0
57909  fi
57910
57911
57912  WCTYPE_H=wctype.h
57913  if test $ac_cv_header_wctype_h = yes; then
57914    if test $ac_cv_func_iswcntrl = yes; then
57915      WCTYPE_H=
57916    fi
57917
57918
57919
57920  :
57921
57922
57923
57924
57925
57926
57927
57928     if test $gl_cv_have_include_next = yes; then
57929       gl_cv_next_wctype_h='<'wctype.h'>'
57930     else
57931       { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
57932$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
57933if test "${gl_cv_next_wctype_h+set}" = set; then
57934  $as_echo_n "(cached) " >&6
57935else
57936
57937	  if test $ac_cv_header_wctype_h = yes; then
57938	    cat >conftest.$ac_ext <<_ACEOF
57939/* confdefs.h.  */
57940_ACEOF
57941cat confdefs.h >>conftest.$ac_ext
57942cat >>conftest.$ac_ext <<_ACEOF
57943/* end confdefs.h.  */
57944#include <wctype.h>
57945
57946_ACEOF
57947	    	    	    	    gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
57948	       sed -n '\#/wctype.h#{
57949		 s#.*"\(.*/wctype.h\)".*#\1#
57950		 s#^/[^/]#//&#
57951		 p
57952		 q
57953	       }'`'"'
57954	  else
57955	    gl_cv_next_wctype_h='<'wctype.h'>'
57956	  fi
57957
57958fi
57959{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
57960$as_echo "$gl_cv_next_wctype_h" >&6; }
57961     fi
57962     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
57963
57964
57965
57966    HAVE_WCTYPE_H=1
57967  else
57968    HAVE_WCTYPE_H=0
57969  fi
57970
57971
57972
57973
57974
57975
57976
57977
57978
57979
57980
57981
57982  :
57983
57984
57985
57986
57987
57988
57989  :
57990
57991
57992
57993
57994
57995
57996  { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
57997$as_echo_n "checking whether wcwidth is declared... " >&6; }
57998if test "${ac_cv_have_decl_wcwidth+set}" = set; then
57999  $as_echo_n "(cached) " >&6
58000else
58001  cat >conftest.$ac_ext <<_ACEOF
58002/* confdefs.h.  */
58003_ACEOF
58004cat confdefs.h >>conftest.$ac_ext
58005cat >>conftest.$ac_ext <<_ACEOF
58006/* end confdefs.h.  */
58007
58008/* AIX 3.2.5 declares wcwidth in <string.h>. */
58009#include <string.h>
58010/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
58011   <wchar.h>.
58012   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
58013   before <wchar.h>.  */
58014#include <stddef.h>
58015#include <stdio.h>
58016#include <time.h>
58017#include <wchar.h>
58018
58019
58020int
58021main ()
58022{
58023#ifndef wcwidth
58024  (void) wcwidth;
58025#endif
58026
58027  ;
58028  return 0;
58029}
58030_ACEOF
58031rm -f conftest.$ac_objext
58032if { (ac_try="$ac_compile"
58033case "(($ac_try" in
58034  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58035  *) ac_try_echo=$ac_try;;
58036esac
58037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58038$as_echo "$ac_try_echo") >&5
58039  (eval "$ac_compile") 2>conftest.er1
58040  ac_status=$?
58041  grep -v '^ *+' conftest.er1 >conftest.err
58042  rm -f conftest.er1
58043  cat conftest.err >&5
58044  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58045  (exit $ac_status); } && {
58046	 test -z "$ac_c_werror_flag" ||
58047	 test ! -s conftest.err
58048       } && test -s conftest.$ac_objext; then
58049  ac_cv_have_decl_wcwidth=yes
58050else
58051  $as_echo "$as_me: failed program was:" >&5
58052sed 's/^/| /' conftest.$ac_ext >&5
58053
58054	ac_cv_have_decl_wcwidth=no
58055fi
58056
58057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58058fi
58059{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
58060$as_echo "$ac_cv_have_decl_wcwidth" >&6; }
58061if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
58062
58063cat >>confdefs.h <<_ACEOF
58064#define HAVE_DECL_WCWIDTH 1
58065_ACEOF
58066
58067
58068else
58069  cat >>confdefs.h <<_ACEOF
58070#define HAVE_DECL_WCWIDTH 0
58071_ACEOF
58072
58073
58074fi
58075
58076
58077  if test $ac_cv_have_decl_wcwidth != yes; then
58078    HAVE_DECL_WCWIDTH=0
58079  fi
58080
58081  if test $ac_cv_func_wcwidth = no; then
58082    REPLACE_WCWIDTH=1
58083  else
58084                { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
58085$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
58086if test "${gl_cv_func_wcwidth_works+set}" = set; then
58087  $as_echo_n "(cached) " >&6
58088else
58089
58090        if test "$cross_compiling" = yes; then
58091  gl_cv_func_wcwidth_works="guessing no"
58092else
58093  cat >conftest.$ac_ext <<_ACEOF
58094/* confdefs.h.  */
58095_ACEOF
58096cat confdefs.h >>conftest.$ac_ext
58097cat >>conftest.$ac_ext <<_ACEOF
58098/* end confdefs.h.  */
58099
58100#include <locale.h>
58101/* AIX 3.2.5 declares wcwidth in <string.h>. */
58102#include <string.h>
58103/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
58104   <wchar.h>.
58105   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
58106   before <wchar.h>.  */
58107#include <stddef.h>
58108#include <stdio.h>
58109#include <time.h>
58110#include <wchar.h>
58111#if !HAVE_DECL_WCWIDTH
58112extern
58113# ifdef __cplusplus
58114"C"
58115# endif
58116int wcwidth (int);
58117#endif
58118int main ()
58119{
58120  if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
58121    if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
58122      return 1;
58123  return 0;
58124}
58125_ACEOF
58126rm -f conftest$ac_exeext
58127if { (ac_try="$ac_link"
58128case "(($ac_try" in
58129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58130  *) ac_try_echo=$ac_try;;
58131esac
58132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58133$as_echo "$ac_try_echo") >&5
58134  (eval "$ac_link") 2>&5
58135  ac_status=$?
58136  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58137  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58138  { (case "(($ac_try" in
58139  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58140  *) ac_try_echo=$ac_try;;
58141esac
58142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58143$as_echo "$ac_try_echo") >&5
58144  (eval "$ac_try") 2>&5
58145  ac_status=$?
58146  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58147  (exit $ac_status); }; }; then
58148  gl_cv_func_wcwidth_works=yes
58149else
58150  $as_echo "$as_me: program exited with status $ac_status" >&5
58151$as_echo "$as_me: failed program was:" >&5
58152sed 's/^/| /' conftest.$ac_ext >&5
58153
58154( exit $ac_status )
58155gl_cv_func_wcwidth_works=no
58156fi
58157rm -rf conftest.dSYM
58158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58159fi
58160
58161
58162
58163fi
58164{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
58165$as_echo "$gl_cv_func_wcwidth_works" >&6; }
58166    case "$gl_cv_func_wcwidth_works" in
58167      *yes) ;;
58168      *no) REPLACE_WCWIDTH=1 ;;
58169    esac
58170  fi
58171  if test $REPLACE_WCWIDTH = 1; then
58172
58173
58174
58175
58176
58177
58178
58179  gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
58180
58181  fi
58182
58183  if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
58184    WCHAR_H=wchar.h
58185  fi
58186
58187
58188
58189  GNULIB_WCWIDTH=1
58190
58191
58192
58193
58194
58195for ac_header in stdint.h
58196do
58197as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
58198if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58199  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58200$as_echo_n "checking for $ac_header... " >&6; }
58201if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58202  $as_echo_n "(cached) " >&6
58203fi
58204ac_res=`eval 'as_val=${'$as_ac_Header'}
58205		 $as_echo "$as_val"'`
58206	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58207$as_echo "$ac_res" >&6; }
58208else
58209  # Is the header compilable?
58210{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
58211$as_echo_n "checking $ac_header usability... " >&6; }
58212cat >conftest.$ac_ext <<_ACEOF
58213/* confdefs.h.  */
58214_ACEOF
58215cat confdefs.h >>conftest.$ac_ext
58216cat >>conftest.$ac_ext <<_ACEOF
58217/* end confdefs.h.  */
58218$ac_includes_default
58219#include <$ac_header>
58220_ACEOF
58221rm -f conftest.$ac_objext
58222if { (ac_try="$ac_compile"
58223case "(($ac_try" in
58224  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58225  *) ac_try_echo=$ac_try;;
58226esac
58227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58228$as_echo "$ac_try_echo") >&5
58229  (eval "$ac_compile") 2>conftest.er1
58230  ac_status=$?
58231  grep -v '^ *+' conftest.er1 >conftest.err
58232  rm -f conftest.er1
58233  cat conftest.err >&5
58234  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58235  (exit $ac_status); } && {
58236	 test -z "$ac_c_werror_flag" ||
58237	 test ! -s conftest.err
58238       } && test -s conftest.$ac_objext; then
58239  ac_header_compiler=yes
58240else
58241  $as_echo "$as_me: failed program was:" >&5
58242sed 's/^/| /' conftest.$ac_ext >&5
58243
58244	ac_header_compiler=no
58245fi
58246
58247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
58248{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
58249$as_echo "$ac_header_compiler" >&6; }
58250
58251# Is the header present?
58252{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
58253$as_echo_n "checking $ac_header presence... " >&6; }
58254cat >conftest.$ac_ext <<_ACEOF
58255/* confdefs.h.  */
58256_ACEOF
58257cat confdefs.h >>conftest.$ac_ext
58258cat >>conftest.$ac_ext <<_ACEOF
58259/* end confdefs.h.  */
58260#include <$ac_header>
58261_ACEOF
58262if { (ac_try="$ac_cpp conftest.$ac_ext"
58263case "(($ac_try" in
58264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58265  *) ac_try_echo=$ac_try;;
58266esac
58267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58268$as_echo "$ac_try_echo") >&5
58269  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
58270  ac_status=$?
58271  grep -v '^ *+' conftest.er1 >conftest.err
58272  rm -f conftest.er1
58273  cat conftest.err >&5
58274  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58275  (exit $ac_status); } >/dev/null && {
58276	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
58277	 test ! -s conftest.err
58278       }; then
58279  ac_header_preproc=yes
58280else
58281  $as_echo "$as_me: failed program was:" >&5
58282sed 's/^/| /' conftest.$ac_ext >&5
58283
58284  ac_header_preproc=no
58285fi
58286
58287rm -f conftest.err conftest.$ac_ext
58288{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
58289$as_echo "$ac_header_preproc" >&6; }
58290
58291# So?  What about this header?
58292case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
58293  yes:no: )
58294    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
58295$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
58296    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
58297$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
58298    ac_header_preproc=yes
58299    ;;
58300  no:yes:* )
58301    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
58302$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
58303    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
58304$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
58305    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
58306$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
58307    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
58308$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
58309    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
58310$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
58311    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
58312$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
58313
58314    ;;
58315esac
58316{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
58317$as_echo_n "checking for $ac_header... " >&6; }
58318if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
58319  $as_echo_n "(cached) " >&6
58320else
58321  eval "$as_ac_Header=\$ac_header_preproc"
58322fi
58323ac_res=`eval 'as_val=${'$as_ac_Header'}
58324		 $as_echo "$as_val"'`
58325	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58326$as_echo "$ac_res" >&6; }
58327
58328fi
58329as_val=`eval 'as_val=${'$as_ac_Header'}
58330		 $as_echo "$as_val"'`
58331   if test "x$as_val" = x""yes; then
58332  cat >>confdefs.h <<_ACEOF
58333#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
58334_ACEOF
58335
58336fi
58337
58338done
58339
58340
58341
58342
58343
58344
58345
58346  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
58347
58348
58349
58350
58351
58352
58353
58354
58355
58356
58357   if true; then
58358  GL_COND_LIBTOOL_TRUE=
58359  GL_COND_LIBTOOL_FALSE='#'
58360else
58361  GL_COND_LIBTOOL_TRUE='#'
58362  GL_COND_LIBTOOL_FALSE=
58363fi
58364
58365  gl_cond_libtool=true
58366  gl_source_base='libgettextpo'
58367
58368
58369
58370
58371
58372  if test $ac_cv_func_alloca_works = no; then
58373
58374
58375  :
58376
58377
58378
58379
58380
58381
58382
58383
58384  :
58385
58386  fi
58387
58388  # Define an additional variable used in the Makefile substitution.
58389
58390  cat >conftest.$ac_ext <<_ACEOF
58391/* confdefs.h.  */
58392_ACEOF
58393cat confdefs.h >>conftest.$ac_ext
58394cat >>conftest.$ac_ext <<_ACEOF
58395/* end confdefs.h.  */
58396
58397#if defined __GNUC__ || defined _MSC_VER || !HAVE_ALLOCA_H
58398  Need own alloca
58399#endif
58400
58401_ACEOF
58402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58403  $EGREP "Need own alloca" >/dev/null 2>&1; then
58404  ALLOCA_H=alloca.h
58405else
58406  ALLOCA_H=
58407fi
58408rm -f conftest*
58409
58410
58411
58412
58413
58414
58415
58416
58417
58418
58419
58420
58421
58422
58423{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
58424$as_echo_n "checking for error_at_line... " >&6; }
58425if test "${ac_cv_lib_error_at_line+set}" = set; then
58426  $as_echo_n "(cached) " >&6
58427else
58428  cat >conftest.$ac_ext <<_ACEOF
58429/* confdefs.h.  */
58430_ACEOF
58431cat confdefs.h >>conftest.$ac_ext
58432cat >>conftest.$ac_ext <<_ACEOF
58433/* end confdefs.h.  */
58434#include <error.h>
58435int
58436main ()
58437{
58438error_at_line (0, 0, "", 0, "an error occurred");
58439  ;
58440  return 0;
58441}
58442_ACEOF
58443rm -f conftest.$ac_objext conftest$ac_exeext
58444if { (ac_try="$ac_link"
58445case "(($ac_try" in
58446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58447  *) ac_try_echo=$ac_try;;
58448esac
58449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58450$as_echo "$ac_try_echo") >&5
58451  (eval "$ac_link") 2>conftest.er1
58452  ac_status=$?
58453  grep -v '^ *+' conftest.er1 >conftest.err
58454  rm -f conftest.er1
58455  cat conftest.err >&5
58456  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58457  (exit $ac_status); } && {
58458	 test -z "$ac_c_werror_flag" ||
58459	 test ! -s conftest.err
58460       } && test -s conftest$ac_exeext && {
58461	 test "$cross_compiling" = yes ||
58462	 $as_test_x conftest$ac_exeext
58463       }; then
58464  ac_cv_lib_error_at_line=yes
58465else
58466  $as_echo "$as_me: failed program was:" >&5
58467sed 's/^/| /' conftest.$ac_ext >&5
58468
58469	ac_cv_lib_error_at_line=no
58470fi
58471
58472rm -rf conftest.dSYM
58473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58474      conftest$ac_exeext conftest.$ac_ext
58475fi
58476{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
58477$as_echo "$ac_cv_lib_error_at_line" >&6; }
58478if test $ac_cv_lib_error_at_line = no; then
58479
58480
58481
58482
58483
58484
58485
58486  gtpo_LIBOBJS="$gtpo_LIBOBJS error.$ac_objext"
58487
58488fi
58489
58490
58491
58492  :
58493
58494
58495
58496
58497  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
58498
58499
58500
58501  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
58502
58503
58504    :
58505
58506
58507
58508
58509  case "$host_os" in
58510    mingw* | pw*)
58511      REPLACE_FOPEN=1
58512
58513
58514
58515
58516
58517
58518
58519  gtpo_LIBOBJS="$gtpo_LIBOBJS fopen.$ac_objext"
58520
58521      ;;
58522  esac
58523
58524
58525
58526  GNULIB_FOPEN=1
58527
58528
58529
58530cat >>confdefs.h <<\_ACEOF
58531#define GNULIB_FWRITEERROR 1
58532_ACEOF
58533
58534
58535
58536
58537
58538
58539
58540
58541
58542
58543
58544
58545
58546
58547
58548for ac_func in getdelim
58549do
58550as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58551{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58552$as_echo_n "checking for $ac_func... " >&6; }
58553if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58554  $as_echo_n "(cached) " >&6
58555else
58556  cat >conftest.$ac_ext <<_ACEOF
58557/* confdefs.h.  */
58558_ACEOF
58559cat confdefs.h >>conftest.$ac_ext
58560cat >>conftest.$ac_ext <<_ACEOF
58561/* end confdefs.h.  */
58562/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58563   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58564#define $ac_func innocuous_$ac_func
58565
58566/* System header to define __stub macros and hopefully few prototypes,
58567    which can conflict with char $ac_func (); below.
58568    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58569    <limits.h> exists even on freestanding compilers.  */
58570
58571#ifdef __STDC__
58572# include <limits.h>
58573#else
58574# include <assert.h>
58575#endif
58576
58577#undef $ac_func
58578
58579/* Override any GCC internal prototype to avoid an error.
58580   Use char because int might match the return type of a GCC
58581   builtin and then its argument prototype would still apply.  */
58582#ifdef __cplusplus
58583extern "C"
58584#endif
58585char $ac_func ();
58586/* The GNU C library defines this for functions which it implements
58587    to always fail with ENOSYS.  Some functions are actually named
58588    something starting with __ and the normal name is an alias.  */
58589#if defined __stub_$ac_func || defined __stub___$ac_func
58590choke me
58591#endif
58592
58593int
58594main ()
58595{
58596return $ac_func ();
58597  ;
58598  return 0;
58599}
58600_ACEOF
58601rm -f conftest.$ac_objext conftest$ac_exeext
58602if { (ac_try="$ac_link"
58603case "(($ac_try" in
58604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58605  *) ac_try_echo=$ac_try;;
58606esac
58607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58608$as_echo "$ac_try_echo") >&5
58609  (eval "$ac_link") 2>conftest.er1
58610  ac_status=$?
58611  grep -v '^ *+' conftest.er1 >conftest.err
58612  rm -f conftest.er1
58613  cat conftest.err >&5
58614  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58615  (exit $ac_status); } && {
58616	 test -z "$ac_c_werror_flag" ||
58617	 test ! -s conftest.err
58618       } && test -s conftest$ac_exeext && {
58619	 test "$cross_compiling" = yes ||
58620	 $as_test_x conftest$ac_exeext
58621       }; then
58622  eval "$as_ac_var=yes"
58623else
58624  $as_echo "$as_me: failed program was:" >&5
58625sed 's/^/| /' conftest.$ac_ext >&5
58626
58627	eval "$as_ac_var=no"
58628fi
58629
58630rm -rf conftest.dSYM
58631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58632      conftest$ac_exeext conftest.$ac_ext
58633fi
58634ac_res=`eval 'as_val=${'$as_ac_var'}
58635		 $as_echo "$as_val"'`
58636	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58637$as_echo "$ac_res" >&6; }
58638as_val=`eval 'as_val=${'$as_ac_var'}
58639		 $as_echo "$as_val"'`
58640   if test "x$as_val" = x""yes; then
58641  cat >>confdefs.h <<_ACEOF
58642#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58643_ACEOF
58644
58645else
58646
58647    gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext"
58648
58649fi
58650done
58651
58652
58653
58654  :
58655
58656
58657
58658
58659
58660
58661  if test $ac_cv_func_getdelim = no; then
58662
58663
58664
58665for ac_func in flockfile funlockfile
58666do
58667as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
58668{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
58669$as_echo_n "checking for $ac_func... " >&6; }
58670if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
58671  $as_echo_n "(cached) " >&6
58672else
58673  cat >conftest.$ac_ext <<_ACEOF
58674/* confdefs.h.  */
58675_ACEOF
58676cat confdefs.h >>conftest.$ac_ext
58677cat >>conftest.$ac_ext <<_ACEOF
58678/* end confdefs.h.  */
58679/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
58680   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58681#define $ac_func innocuous_$ac_func
58682
58683/* System header to define __stub macros and hopefully few prototypes,
58684    which can conflict with char $ac_func (); below.
58685    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58686    <limits.h> exists even on freestanding compilers.  */
58687
58688#ifdef __STDC__
58689# include <limits.h>
58690#else
58691# include <assert.h>
58692#endif
58693
58694#undef $ac_func
58695
58696/* Override any GCC internal prototype to avoid an error.
58697   Use char because int might match the return type of a GCC
58698   builtin and then its argument prototype would still apply.  */
58699#ifdef __cplusplus
58700extern "C"
58701#endif
58702char $ac_func ();
58703/* The GNU C library defines this for functions which it implements
58704    to always fail with ENOSYS.  Some functions are actually named
58705    something starting with __ and the normal name is an alias.  */
58706#if defined __stub_$ac_func || defined __stub___$ac_func
58707choke me
58708#endif
58709
58710int
58711main ()
58712{
58713return $ac_func ();
58714  ;
58715  return 0;
58716}
58717_ACEOF
58718rm -f conftest.$ac_objext conftest$ac_exeext
58719if { (ac_try="$ac_link"
58720case "(($ac_try" in
58721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58722  *) ac_try_echo=$ac_try;;
58723esac
58724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58725$as_echo "$ac_try_echo") >&5
58726  (eval "$ac_link") 2>conftest.er1
58727  ac_status=$?
58728  grep -v '^ *+' conftest.er1 >conftest.err
58729  rm -f conftest.er1
58730  cat conftest.err >&5
58731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58732  (exit $ac_status); } && {
58733	 test -z "$ac_c_werror_flag" ||
58734	 test ! -s conftest.err
58735       } && test -s conftest$ac_exeext && {
58736	 test "$cross_compiling" = yes ||
58737	 $as_test_x conftest$ac_exeext
58738       }; then
58739  eval "$as_ac_var=yes"
58740else
58741  $as_echo "$as_me: failed program was:" >&5
58742sed 's/^/| /' conftest.$ac_ext >&5
58743
58744	eval "$as_ac_var=no"
58745fi
58746
58747rm -rf conftest.dSYM
58748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58749      conftest$ac_exeext conftest.$ac_ext
58750fi
58751ac_res=`eval 'as_val=${'$as_ac_var'}
58752		 $as_echo "$as_val"'`
58753	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
58754$as_echo "$ac_res" >&6; }
58755as_val=`eval 'as_val=${'$as_ac_var'}
58756		 $as_echo "$as_val"'`
58757   if test "x$as_val" = x""yes; then
58758  cat >>confdefs.h <<_ACEOF
58759#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
58760_ACEOF
58761
58762fi
58763done
58764
58765
58766  fi
58767
58768  if test $ac_cv_have_decl_getdelim = no; then
58769    HAVE_DECL_GETDELIM=0
58770  fi
58771
58772
58773
58774  GNULIB_GETDELIM=1
58775
58776
58777
58778
58779
58780
58781
58782  :
58783
58784
58785
58786
58787
58788
58789  gl_getline_needs_run_time_check=no
58790  { $as_echo "$as_me:$LINENO: checking for getline" >&5
58791$as_echo_n "checking for getline... " >&6; }
58792if test "${ac_cv_func_getline+set}" = set; then
58793  $as_echo_n "(cached) " >&6
58794else
58795  cat >conftest.$ac_ext <<_ACEOF
58796/* confdefs.h.  */
58797_ACEOF
58798cat confdefs.h >>conftest.$ac_ext
58799cat >>conftest.$ac_ext <<_ACEOF
58800/* end confdefs.h.  */
58801/* Define getline to an innocuous variant, in case <limits.h> declares getline.
58802   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
58803#define getline innocuous_getline
58804
58805/* System header to define __stub macros and hopefully few prototypes,
58806    which can conflict with char getline (); below.
58807    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
58808    <limits.h> exists even on freestanding compilers.  */
58809
58810#ifdef __STDC__
58811# include <limits.h>
58812#else
58813# include <assert.h>
58814#endif
58815
58816#undef getline
58817
58818/* Override any GCC internal prototype to avoid an error.
58819   Use char because int might match the return type of a GCC
58820   builtin and then its argument prototype would still apply.  */
58821#ifdef __cplusplus
58822extern "C"
58823#endif
58824char getline ();
58825/* The GNU C library defines this for functions which it implements
58826    to always fail with ENOSYS.  Some functions are actually named
58827    something starting with __ and the normal name is an alias.  */
58828#if defined __stub_getline || defined __stub___getline
58829choke me
58830#endif
58831
58832int
58833main ()
58834{
58835return getline ();
58836  ;
58837  return 0;
58838}
58839_ACEOF
58840rm -f conftest.$ac_objext conftest$ac_exeext
58841if { (ac_try="$ac_link"
58842case "(($ac_try" in
58843  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58844  *) ac_try_echo=$ac_try;;
58845esac
58846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58847$as_echo "$ac_try_echo") >&5
58848  (eval "$ac_link") 2>conftest.er1
58849  ac_status=$?
58850  grep -v '^ *+' conftest.er1 >conftest.err
58851  rm -f conftest.er1
58852  cat conftest.err >&5
58853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58854  (exit $ac_status); } && {
58855	 test -z "$ac_c_werror_flag" ||
58856	 test ! -s conftest.err
58857       } && test -s conftest$ac_exeext && {
58858	 test "$cross_compiling" = yes ||
58859	 $as_test_x conftest$ac_exeext
58860       }; then
58861  ac_cv_func_getline=yes
58862else
58863  $as_echo "$as_me: failed program was:" >&5
58864sed 's/^/| /' conftest.$ac_ext >&5
58865
58866	ac_cv_func_getline=no
58867fi
58868
58869rm -rf conftest.dSYM
58870rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
58871      conftest$ac_exeext conftest.$ac_ext
58872fi
58873{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
58874$as_echo "$ac_cv_func_getline" >&6; }
58875if test "x$ac_cv_func_getline" = x""yes; then
58876  		gl_getline_needs_run_time_check=yes
58877else
58878  am_cv_func_working_getline=no
58879fi
58880
58881  if test $gl_getline_needs_run_time_check = yes; then
58882    { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
58883$as_echo_n "checking for working getline function... " >&6; }
58884if test "${am_cv_func_working_getline+set}" = set; then
58885  $as_echo_n "(cached) " >&6
58886else
58887  echo fooN |tr -d '\012'|tr N '\012' > conftest.data
58888    if test "$cross_compiling" = yes; then
58889        cat >conftest.$ac_ext <<_ACEOF
58890/* confdefs.h.  */
58891_ACEOF
58892cat confdefs.h >>conftest.$ac_ext
58893cat >>conftest.$ac_ext <<_ACEOF
58894/* end confdefs.h.  */
58895
58896#include <features.h>
58897#ifdef __GNU_LIBRARY__
58898 #if (__GLIBC__ >= 2)
58899  Lucky GNU user
58900 #endif
58901#endif
58902
58903_ACEOF
58904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
58905  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
58906  am_cv_func_working_getline=yes
58907else
58908  am_cv_func_working_getline=no
58909fi
58910rm -f conftest*
58911
58912
58913else
58914  cat >conftest.$ac_ext <<_ACEOF
58915/* confdefs.h.  */
58916_ACEOF
58917cat confdefs.h >>conftest.$ac_ext
58918cat >>conftest.$ac_ext <<_ACEOF
58919/* end confdefs.h.  */
58920
58921#    include <stdio.h>
58922#    include <stdlib.h>
58923#    include <string.h>
58924    int main ()
58925    { /* Based on a test program from Karl Heuer.  */
58926      char *line = NULL;
58927      size_t siz = 0;
58928      int len;
58929      FILE *in = fopen ("./conftest.data", "r");
58930      if (!in)
58931	return 1;
58932      len = getline (&line, &siz, in);
58933      exit ((len == 4 && line && strcmp (line, "foo\n") == 0) ? 0 : 1);
58934    }
58935
58936_ACEOF
58937rm -f conftest$ac_exeext
58938if { (ac_try="$ac_link"
58939case "(($ac_try" in
58940  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58941  *) ac_try_echo=$ac_try;;
58942esac
58943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58944$as_echo "$ac_try_echo") >&5
58945  (eval "$ac_link") 2>&5
58946  ac_status=$?
58947  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58948  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
58949  { (case "(($ac_try" in
58950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
58951  *) ac_try_echo=$ac_try;;
58952esac
58953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
58954$as_echo "$ac_try_echo") >&5
58955  (eval "$ac_try") 2>&5
58956  ac_status=$?
58957  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
58958  (exit $ac_status); }; }; then
58959  am_cv_func_working_getline=yes
58960else
58961  $as_echo "$as_me: program exited with status $ac_status" >&5
58962$as_echo "$as_me: failed program was:" >&5
58963sed 's/^/| /' conftest.$ac_ext >&5
58964
58965( exit $ac_status )
58966am_cv_func_working_getline=no
58967fi
58968rm -rf conftest.dSYM
58969rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
58970fi
58971
58972
58973fi
58974{ $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
58975$as_echo "$am_cv_func_working_getline" >&6; }
58976  fi
58977
58978  if test $ac_cv_have_decl_getline = no; then
58979    HAVE_DECL_GETLINE=0
58980  fi
58981
58982  if test $am_cv_func_working_getline = no; then
58983    REPLACE_GETLINE=1
58984
58985
58986
58987
58988
58989
58990
58991  gtpo_LIBOBJS="$gtpo_LIBOBJS getline.$ac_objext"
58992
58993
58994
58995
58996
58997
58998
58999
59000
59001
59002
59003
59004
59005
59006
59007
59008for ac_func in getdelim
59009do
59010as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59011{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59012$as_echo_n "checking for $ac_func... " >&6; }
59013if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59014  $as_echo_n "(cached) " >&6
59015else
59016  cat >conftest.$ac_ext <<_ACEOF
59017/* confdefs.h.  */
59018_ACEOF
59019cat confdefs.h >>conftest.$ac_ext
59020cat >>conftest.$ac_ext <<_ACEOF
59021/* end confdefs.h.  */
59022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59023   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59024#define $ac_func innocuous_$ac_func
59025
59026/* System header to define __stub macros and hopefully few prototypes,
59027    which can conflict with char $ac_func (); below.
59028    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59029    <limits.h> exists even on freestanding compilers.  */
59030
59031#ifdef __STDC__
59032# include <limits.h>
59033#else
59034# include <assert.h>
59035#endif
59036
59037#undef $ac_func
59038
59039/* Override any GCC internal prototype to avoid an error.
59040   Use char because int might match the return type of a GCC
59041   builtin and then its argument prototype would still apply.  */
59042#ifdef __cplusplus
59043extern "C"
59044#endif
59045char $ac_func ();
59046/* The GNU C library defines this for functions which it implements
59047    to always fail with ENOSYS.  Some functions are actually named
59048    something starting with __ and the normal name is an alias.  */
59049#if defined __stub_$ac_func || defined __stub___$ac_func
59050choke me
59051#endif
59052
59053int
59054main ()
59055{
59056return $ac_func ();
59057  ;
59058  return 0;
59059}
59060_ACEOF
59061rm -f conftest.$ac_objext conftest$ac_exeext
59062if { (ac_try="$ac_link"
59063case "(($ac_try" in
59064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59065  *) ac_try_echo=$ac_try;;
59066esac
59067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59068$as_echo "$ac_try_echo") >&5
59069  (eval "$ac_link") 2>conftest.er1
59070  ac_status=$?
59071  grep -v '^ *+' conftest.er1 >conftest.err
59072  rm -f conftest.er1
59073  cat conftest.err >&5
59074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59075  (exit $ac_status); } && {
59076	 test -z "$ac_c_werror_flag" ||
59077	 test ! -s conftest.err
59078       } && test -s conftest$ac_exeext && {
59079	 test "$cross_compiling" = yes ||
59080	 $as_test_x conftest$ac_exeext
59081       }; then
59082  eval "$as_ac_var=yes"
59083else
59084  $as_echo "$as_me: failed program was:" >&5
59085sed 's/^/| /' conftest.$ac_ext >&5
59086
59087	eval "$as_ac_var=no"
59088fi
59089
59090rm -rf conftest.dSYM
59091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59092      conftest$ac_exeext conftest.$ac_ext
59093fi
59094ac_res=`eval 'as_val=${'$as_ac_var'}
59095		 $as_echo "$as_val"'`
59096	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59097$as_echo "$ac_res" >&6; }
59098as_val=`eval 'as_val=${'$as_ac_var'}
59099		 $as_echo "$as_val"'`
59100   if test "x$as_val" = x""yes; then
59101  cat >>confdefs.h <<_ACEOF
59102#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59103_ACEOF
59104
59105else
59106
59107    gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext"
59108
59109fi
59110done
59111
59112
59113
59114  :
59115
59116
59117
59118
59119
59120
59121  if test $ac_cv_func_getdelim = no; then
59122
59123
59124
59125for ac_func in flockfile funlockfile
59126do
59127as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
59128{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
59129$as_echo_n "checking for $ac_func... " >&6; }
59130if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
59131  $as_echo_n "(cached) " >&6
59132else
59133  cat >conftest.$ac_ext <<_ACEOF
59134/* confdefs.h.  */
59135_ACEOF
59136cat confdefs.h >>conftest.$ac_ext
59137cat >>conftest.$ac_ext <<_ACEOF
59138/* end confdefs.h.  */
59139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
59140   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
59141#define $ac_func innocuous_$ac_func
59142
59143/* System header to define __stub macros and hopefully few prototypes,
59144    which can conflict with char $ac_func (); below.
59145    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
59146    <limits.h> exists even on freestanding compilers.  */
59147
59148#ifdef __STDC__
59149# include <limits.h>
59150#else
59151# include <assert.h>
59152#endif
59153
59154#undef $ac_func
59155
59156/* Override any GCC internal prototype to avoid an error.
59157   Use char because int might match the return type of a GCC
59158   builtin and then its argument prototype would still apply.  */
59159#ifdef __cplusplus
59160extern "C"
59161#endif
59162char $ac_func ();
59163/* The GNU C library defines this for functions which it implements
59164    to always fail with ENOSYS.  Some functions are actually named
59165    something starting with __ and the normal name is an alias.  */
59166#if defined __stub_$ac_func || defined __stub___$ac_func
59167choke me
59168#endif
59169
59170int
59171main ()
59172{
59173return $ac_func ();
59174  ;
59175  return 0;
59176}
59177_ACEOF
59178rm -f conftest.$ac_objext conftest$ac_exeext
59179if { (ac_try="$ac_link"
59180case "(($ac_try" in
59181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59182  *) ac_try_echo=$ac_try;;
59183esac
59184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59185$as_echo "$ac_try_echo") >&5
59186  (eval "$ac_link") 2>conftest.er1
59187  ac_status=$?
59188  grep -v '^ *+' conftest.er1 >conftest.err
59189  rm -f conftest.er1
59190  cat conftest.err >&5
59191  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59192  (exit $ac_status); } && {
59193	 test -z "$ac_c_werror_flag" ||
59194	 test ! -s conftest.err
59195       } && test -s conftest$ac_exeext && {
59196	 test "$cross_compiling" = yes ||
59197	 $as_test_x conftest$ac_exeext
59198       }; then
59199  eval "$as_ac_var=yes"
59200else
59201  $as_echo "$as_me: failed program was:" >&5
59202sed 's/^/| /' conftest.$ac_ext >&5
59203
59204	eval "$as_ac_var=no"
59205fi
59206
59207rm -rf conftest.dSYM
59208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59209      conftest$ac_exeext conftest.$ac_ext
59210fi
59211ac_res=`eval 'as_val=${'$as_ac_var'}
59212		 $as_echo "$as_val"'`
59213	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
59214$as_echo "$ac_res" >&6; }
59215as_val=`eval 'as_val=${'$as_ac_var'}
59216		 $as_echo "$as_val"'`
59217   if test "x$as_val" = x""yes; then
59218  cat >>confdefs.h <<_ACEOF
59219#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
59220_ACEOF
59221
59222fi
59223done
59224
59225
59226  fi
59227
59228  if test $ac_cv_have_decl_getdelim = no; then
59229    HAVE_DECL_GETDELIM=0
59230  fi
59231
59232
59233  fi
59234
59235
59236
59237  GNULIB_GETLINE=1
59238
59239
59240
59241
59242
59243
59244
59245
59246          am_save_CPPFLAGS="$CPPFLAGS"
59247
59248  for element in $INCICONV; do
59249    haveit=
59250    for x in $CPPFLAGS; do
59251
59252  acl_save_prefix="$prefix"
59253  prefix="$acl_final_prefix"
59254  acl_save_exec_prefix="$exec_prefix"
59255  exec_prefix="$acl_final_exec_prefix"
59256  eval x=\"$x\"
59257  exec_prefix="$acl_save_exec_prefix"
59258  prefix="$acl_save_prefix"
59259
59260      if test "X$x" = "X$element"; then
59261        haveit=yes
59262        break
59263      fi
59264    done
59265    if test -z "$haveit"; then
59266      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
59267    fi
59268  done
59269
59270
59271  { $as_echo "$as_me:$LINENO: checking for iconv" >&5
59272$as_echo_n "checking for iconv... " >&6; }
59273if test "${am_cv_func_iconv+set}" = set; then
59274  $as_echo_n "(cached) " >&6
59275else
59276
59277    am_cv_func_iconv="no, consider installing GNU libiconv"
59278    am_cv_lib_iconv=no
59279    cat >conftest.$ac_ext <<_ACEOF
59280/* confdefs.h.  */
59281_ACEOF
59282cat confdefs.h >>conftest.$ac_ext
59283cat >>conftest.$ac_ext <<_ACEOF
59284/* end confdefs.h.  */
59285#include <stdlib.h>
59286#include <iconv.h>
59287int
59288main ()
59289{
59290iconv_t cd = iconv_open("","");
59291       iconv(cd,NULL,NULL,NULL,NULL);
59292       iconv_close(cd);
59293  ;
59294  return 0;
59295}
59296_ACEOF
59297rm -f conftest.$ac_objext conftest$ac_exeext
59298if { (ac_try="$ac_link"
59299case "(($ac_try" in
59300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59301  *) ac_try_echo=$ac_try;;
59302esac
59303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59304$as_echo "$ac_try_echo") >&5
59305  (eval "$ac_link") 2>conftest.er1
59306  ac_status=$?
59307  grep -v '^ *+' conftest.er1 >conftest.err
59308  rm -f conftest.er1
59309  cat conftest.err >&5
59310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59311  (exit $ac_status); } && {
59312	 test -z "$ac_c_werror_flag" ||
59313	 test ! -s conftest.err
59314       } && test -s conftest$ac_exeext && {
59315	 test "$cross_compiling" = yes ||
59316	 $as_test_x conftest$ac_exeext
59317       }; then
59318  am_cv_func_iconv=yes
59319else
59320  $as_echo "$as_me: failed program was:" >&5
59321sed 's/^/| /' conftest.$ac_ext >&5
59322
59323
59324fi
59325
59326rm -rf conftest.dSYM
59327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59328      conftest$ac_exeext conftest.$ac_ext
59329    if test "$am_cv_func_iconv" != yes; then
59330      am_save_LIBS="$LIBS"
59331      LIBS="$LIBS $LIBICONV"
59332      cat >conftest.$ac_ext <<_ACEOF
59333/* confdefs.h.  */
59334_ACEOF
59335cat confdefs.h >>conftest.$ac_ext
59336cat >>conftest.$ac_ext <<_ACEOF
59337/* end confdefs.h.  */
59338#include <stdlib.h>
59339#include <iconv.h>
59340int
59341main ()
59342{
59343iconv_t cd = iconv_open("","");
59344         iconv(cd,NULL,NULL,NULL,NULL);
59345         iconv_close(cd);
59346  ;
59347  return 0;
59348}
59349_ACEOF
59350rm -f conftest.$ac_objext conftest$ac_exeext
59351if { (ac_try="$ac_link"
59352case "(($ac_try" in
59353  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59354  *) ac_try_echo=$ac_try;;
59355esac
59356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59357$as_echo "$ac_try_echo") >&5
59358  (eval "$ac_link") 2>conftest.er1
59359  ac_status=$?
59360  grep -v '^ *+' conftest.er1 >conftest.err
59361  rm -f conftest.er1
59362  cat conftest.err >&5
59363  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59364  (exit $ac_status); } && {
59365	 test -z "$ac_c_werror_flag" ||
59366	 test ! -s conftest.err
59367       } && test -s conftest$ac_exeext && {
59368	 test "$cross_compiling" = yes ||
59369	 $as_test_x conftest$ac_exeext
59370       }; then
59371  am_cv_lib_iconv=yes
59372        am_cv_func_iconv=yes
59373else
59374  $as_echo "$as_me: failed program was:" >&5
59375sed 's/^/| /' conftest.$ac_ext >&5
59376
59377
59378fi
59379
59380rm -rf conftest.dSYM
59381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59382      conftest$ac_exeext conftest.$ac_ext
59383      LIBS="$am_save_LIBS"
59384    fi
59385
59386fi
59387{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
59388$as_echo "$am_cv_func_iconv" >&6; }
59389  if test "$am_cv_func_iconv" = yes; then
59390    { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
59391$as_echo_n "checking for working iconv... " >&6; }
59392if test "${am_cv_func_iconv_works+set}" = set; then
59393  $as_echo_n "(cached) " >&6
59394else
59395
59396            am_save_LIBS="$LIBS"
59397      if test $am_cv_lib_iconv = yes; then
59398        LIBS="$LIBS $LIBICONV"
59399      fi
59400      if test "$cross_compiling" = yes; then
59401  case "$host_os" in
59402           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
59403           *)            am_cv_func_iconv_works="guessing yes" ;;
59404         esac
59405else
59406  cat >conftest.$ac_ext <<_ACEOF
59407/* confdefs.h.  */
59408_ACEOF
59409cat confdefs.h >>conftest.$ac_ext
59410cat >>conftest.$ac_ext <<_ACEOF
59411/* end confdefs.h.  */
59412
59413#include <iconv.h>
59414#include <string.h>
59415int main ()
59416{
59417  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
59418     returns.  */
59419  {
59420    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
59421    if (cd_utf8_to_88591 != (iconv_t)(-1))
59422      {
59423        static const char input[] = "\342\202\254"; /* EURO SIGN */
59424        char buf[10];
59425        const char *inptr = input;
59426        size_t inbytesleft = strlen (input);
59427        char *outptr = buf;
59428        size_t outbytesleft = sizeof (buf);
59429        size_t res = iconv (cd_utf8_to_88591,
59430                            (char **) &inptr, &inbytesleft,
59431                            &outptr, &outbytesleft);
59432        if (res == 0)
59433          return 1;
59434      }
59435  }
59436#if 0 /* This bug could be worked around by the caller.  */
59437  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
59438  {
59439    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
59440    if (cd_88591_to_utf8 != (iconv_t)(-1))
59441      {
59442        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
59443        char buf[50];
59444        const char *inptr = input;
59445        size_t inbytesleft = strlen (input);
59446        char *outptr = buf;
59447        size_t outbytesleft = sizeof (buf);
59448        size_t res = iconv (cd_88591_to_utf8,
59449                            (char **) &inptr, &inbytesleft,
59450                            &outptr, &outbytesleft);
59451        if ((int)res > 0)
59452          return 1;
59453      }
59454  }
59455#endif
59456  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
59457     provided.  */
59458  if (/* Try standardized names.  */
59459      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
59460      /* Try IRIX, OSF/1 names.  */
59461      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
59462      /* Try AIX names.  */
59463      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
59464      /* Try HP-UX names.  */
59465      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
59466    return 1;
59467  return 0;
59468}
59469_ACEOF
59470rm -f conftest$ac_exeext
59471if { (ac_try="$ac_link"
59472case "(($ac_try" in
59473  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59474  *) ac_try_echo=$ac_try;;
59475esac
59476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59477$as_echo "$ac_try_echo") >&5
59478  (eval "$ac_link") 2>&5
59479  ac_status=$?
59480  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59481  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
59482  { (case "(($ac_try" in
59483  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59484  *) ac_try_echo=$ac_try;;
59485esac
59486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59487$as_echo "$ac_try_echo") >&5
59488  (eval "$ac_try") 2>&5
59489  ac_status=$?
59490  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59491  (exit $ac_status); }; }; then
59492  am_cv_func_iconv_works=yes
59493else
59494  $as_echo "$as_me: program exited with status $ac_status" >&5
59495$as_echo "$as_me: failed program was:" >&5
59496sed 's/^/| /' conftest.$ac_ext >&5
59497
59498( exit $ac_status )
59499am_cv_func_iconv_works=no
59500fi
59501rm -rf conftest.dSYM
59502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
59503fi
59504
59505
59506      LIBS="$am_save_LIBS"
59507
59508fi
59509{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
59510$as_echo "$am_cv_func_iconv_works" >&6; }
59511    case "$am_cv_func_iconv_works" in
59512      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
59513      *)   am_func_iconv=yes ;;
59514    esac
59515  else
59516    am_func_iconv=no am_cv_lib_iconv=no
59517  fi
59518  if test "$am_func_iconv" = yes; then
59519
59520cat >>confdefs.h <<\_ACEOF
59521#define HAVE_ICONV 1
59522_ACEOF
59523
59524  fi
59525  if test "$am_cv_lib_iconv" = yes; then
59526    { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
59527$as_echo_n "checking how to link with libiconv... " >&6; }
59528    { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
59529$as_echo "$LIBICONV" >&6; }
59530  else
59531            CPPFLAGS="$am_save_CPPFLAGS"
59532    LIBICONV=
59533    LTLIBICONV=
59534  fi
59535
59536
59537
59538  if test "$am_cv_func_iconv" = yes; then
59539    { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
59540$as_echo_n "checking for iconv declaration... " >&6; }
59541    if test "${am_cv_proto_iconv+set}" = set; then
59542  $as_echo_n "(cached) " >&6
59543else
59544
59545      cat >conftest.$ac_ext <<_ACEOF
59546/* confdefs.h.  */
59547_ACEOF
59548cat confdefs.h >>conftest.$ac_ext
59549cat >>conftest.$ac_ext <<_ACEOF
59550/* end confdefs.h.  */
59551
59552#include <stdlib.h>
59553#include <iconv.h>
59554extern
59555#ifdef __cplusplus
59556"C"
59557#endif
59558#if defined(__STDC__) || defined(__cplusplus)
59559size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
59560#else
59561size_t iconv();
59562#endif
59563
59564int
59565main ()
59566{
59567
59568  ;
59569  return 0;
59570}
59571_ACEOF
59572rm -f conftest.$ac_objext
59573if { (ac_try="$ac_compile"
59574case "(($ac_try" in
59575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59576  *) ac_try_echo=$ac_try;;
59577esac
59578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59579$as_echo "$ac_try_echo") >&5
59580  (eval "$ac_compile") 2>conftest.er1
59581  ac_status=$?
59582  grep -v '^ *+' conftest.er1 >conftest.err
59583  rm -f conftest.er1
59584  cat conftest.err >&5
59585  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59586  (exit $ac_status); } && {
59587	 test -z "$ac_c_werror_flag" ||
59588	 test ! -s conftest.err
59589       } && test -s conftest.$ac_objext; then
59590  am_cv_proto_iconv_arg1=""
59591else
59592  $as_echo "$as_me: failed program was:" >&5
59593sed 's/^/| /' conftest.$ac_ext >&5
59594
59595	am_cv_proto_iconv_arg1="const"
59596fi
59597
59598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59599      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);"
59600fi
59601
59602    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
59603    { $as_echo "$as_me:$LINENO: result: ${ac_t:-
59604         }$am_cv_proto_iconv" >&5
59605$as_echo "${ac_t:-
59606         }$am_cv_proto_iconv" >&6; }
59607
59608cat >>confdefs.h <<_ACEOF
59609#define ICONV_CONST $am_cv_proto_iconv_arg1
59610_ACEOF
59611
59612  fi
59613
59614
59615
59616
59617
59618
59619  :
59620
59621
59622
59623
59624
59625
59626
59627     if test $gl_cv_have_include_next = yes; then
59628       gl_cv_next_iconv_h='<'iconv.h'>'
59629     else
59630       { $as_echo "$as_me:$LINENO: checking absolute name of <iconv.h>" >&5
59631$as_echo_n "checking absolute name of <iconv.h>... " >&6; }
59632if test "${gl_cv_next_iconv_h+set}" = set; then
59633  $as_echo_n "(cached) " >&6
59634else
59635
59636	  if test $ac_cv_header_iconv_h = yes; then
59637	    cat >conftest.$ac_ext <<_ACEOF
59638/* confdefs.h.  */
59639_ACEOF
59640cat confdefs.h >>conftest.$ac_ext
59641cat >>conftest.$ac_ext <<_ACEOF
59642/* end confdefs.h.  */
59643#include <iconv.h>
59644
59645_ACEOF
59646	    	    	    	    gl_cv_next_iconv_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59647	       sed -n '\#/iconv.h#{
59648		 s#.*"\(.*/iconv.h\)".*#\1#
59649		 s#^/[^/]#//&#
59650		 p
59651		 q
59652	       }'`'"'
59653	  else
59654	    gl_cv_next_iconv_h='<'iconv.h'>'
59655	  fi
59656
59657fi
59658{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_iconv_h" >&5
59659$as_echo "$gl_cv_next_iconv_h" >&6; }
59660     fi
59661     NEXT_ICONV_H=$gl_cv_next_iconv_h
59662
59663
59664
59665  ICONV_H=
59666
59667
59668
59669
59670
59671
59672  if test "$am_cv_func_iconv" = yes; then
59673            cat >conftest.$ac_ext <<_ACEOF
59674/* confdefs.h.  */
59675_ACEOF
59676cat confdefs.h >>conftest.$ac_ext
59677cat >>conftest.$ac_ext <<_ACEOF
59678/* end confdefs.h.  */
59679
59680      #include <iconv.h>
59681      #if defined _LIBICONV_VERSION || defined __GLIBC__
59682       gnu_iconv
59683      #endif
59684
59685_ACEOF
59686if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
59687  $EGREP "gnu_iconv" >/dev/null 2>&1; then
59688  gl_func_iconv_gnu=yes
59689else
59690  gl_func_iconv_gnu=no
59691fi
59692rm -f conftest*
59693
59694    if test $gl_func_iconv_gnu = no; then
59695      iconv_flavor=
59696      case "$host_os" in
59697        aix*)  iconv_flavor=ICONV_FLAVOR_AIX ;;
59698        irix*) iconv_flavor=ICONV_FLAVOR_IRIX ;;
59699        hpux*) iconv_flavor=ICONV_FLAVOR_HPUX ;;
59700        osf*)  iconv_flavor=ICONV_FLAVOR_OSF ;;
59701      esac
59702      if test -n "$iconv_flavor"; then
59703
59704cat >>confdefs.h <<_ACEOF
59705#define ICONV_FLAVOR $iconv_flavor
59706_ACEOF
59707
59708
59709  REPLACE_ICONV_OPEN=1
59710
59711
59712
59713
59714
59715
59716
59717  gtpo_LIBOBJS="$gtpo_LIBOBJS iconv_open.$ac_objext"
59718
59719  ICONV_H='iconv.h'
59720
59721      fi
59722    fi
59723  fi
59724
59725
59726
59727  { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
59728$as_echo_n "checking whether the compiler generally respects inline... " >&6; }
59729if test "${gl_cv_c_inline_effective+set}" = set; then
59730  $as_echo_n "(cached) " >&6
59731else
59732  if test $ac_cv_c_inline = no; then
59733       gl_cv_c_inline_effective=no
59734     else
59735                                          cat >conftest.$ac_ext <<_ACEOF
59736/* confdefs.h.  */
59737_ACEOF
59738cat confdefs.h >>conftest.$ac_ext
59739cat >>conftest.$ac_ext <<_ACEOF
59740/* end confdefs.h.  */
59741
59742int
59743main ()
59744{
59745#ifdef __NO_INLINE__
59746               #error "inline is not effective"
59747             #endif
59748  ;
59749  return 0;
59750}
59751_ACEOF
59752rm -f conftest.$ac_objext
59753if { (ac_try="$ac_compile"
59754case "(($ac_try" in
59755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59756  *) ac_try_echo=$ac_try;;
59757esac
59758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59759$as_echo "$ac_try_echo") >&5
59760  (eval "$ac_compile") 2>conftest.er1
59761  ac_status=$?
59762  grep -v '^ *+' conftest.er1 >conftest.err
59763  rm -f conftest.er1
59764  cat conftest.err >&5
59765  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59766  (exit $ac_status); } && {
59767	 test -z "$ac_c_werror_flag" ||
59768	 test ! -s conftest.err
59769       } && test -s conftest.$ac_objext; then
59770  gl_cv_c_inline_effective=yes
59771else
59772  $as_echo "$as_me: failed program was:" >&5
59773sed 's/^/| /' conftest.$ac_ext >&5
59774
59775	gl_cv_c_inline_effective=no
59776fi
59777
59778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59779     fi
59780
59781fi
59782{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
59783$as_echo "$gl_cv_c_inline_effective" >&6; }
59784  if test $gl_cv_c_inline_effective = yes; then
59785
59786cat >>confdefs.h <<\_ACEOF
59787#define HAVE_INLINE 1
59788_ACEOF
59789
59790  fi
59791
59792
59793
59794
59795
59796
59797
59798  :
59799
59800
59801
59802
59803
59804
59805
59806
59807
59808
59809
59810
59811
59812
59813
59814
59815
59816
59817  if test $gl_cv_func_malloc_posix = yes; then
59818    HAVE_MALLOC_POSIX=1
59819
59820cat >>confdefs.h <<\_ACEOF
59821#define HAVE_MALLOC_POSIX 1
59822_ACEOF
59823
59824  else
59825
59826
59827
59828
59829
59830
59831
59832  gtpo_LIBOBJS="$gtpo_LIBOBJS malloc.$ac_objext"
59833
59834    HAVE_MALLOC_POSIX=0
59835  fi
59836
59837
59838
59839
59840  GNULIB_MALLOC_POSIX=1
59841
59842
59843
59844
59845
59846
59847
59848  :
59849
59850
59851
59852
59853
59854
59855  :
59856
59857
59858
59859
59860
59861
59862
59863
59864
59865    { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
59866$as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
59867if test "${gl_cv_func_mbrtowc+set}" = set; then
59868  $as_echo_n "(cached) " >&6
59869else
59870  cat >conftest.$ac_ext <<_ACEOF
59871/* confdefs.h.  */
59872_ACEOF
59873cat confdefs.h >>conftest.$ac_ext
59874cat >>conftest.$ac_ext <<_ACEOF
59875/* end confdefs.h.  */
59876#include <wchar.h>
59877int
59878main ()
59879{
59880wchar_t wc;
59881              char const s[] = "";
59882              size_t n = 1;
59883              mbstate_t state;
59884              return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
59885  ;
59886  return 0;
59887}
59888_ACEOF
59889rm -f conftest.$ac_objext conftest$ac_exeext
59890if { (ac_try="$ac_link"
59891case "(($ac_try" in
59892  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59893  *) ac_try_echo=$ac_try;;
59894esac
59895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59896$as_echo "$ac_try_echo") >&5
59897  (eval "$ac_link") 2>conftest.er1
59898  ac_status=$?
59899  grep -v '^ *+' conftest.er1 >conftest.err
59900  rm -f conftest.er1
59901  cat conftest.err >&5
59902  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59903  (exit $ac_status); } && {
59904	 test -z "$ac_c_werror_flag" ||
59905	 test ! -s conftest.err
59906       } && test -s conftest$ac_exeext && {
59907	 test "$cross_compiling" = yes ||
59908	 $as_test_x conftest$ac_exeext
59909       }; then
59910  gl_cv_func_mbrtowc=yes
59911else
59912  $as_echo "$as_me: failed program was:" >&5
59913sed 's/^/| /' conftest.$ac_ext >&5
59914
59915	gl_cv_func_mbrtowc=no
59916fi
59917
59918rm -rf conftest.dSYM
59919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
59920      conftest$ac_exeext conftest.$ac_ext
59921fi
59922{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
59923$as_echo "$gl_cv_func_mbrtowc" >&6; }
59924  if test $gl_cv_func_mbrtowc = yes; then
59925
59926cat >>confdefs.h <<\_ACEOF
59927#define HAVE_MBRTOWC 1
59928_ACEOF
59929
59930  fi
59931
59932
59933      { $as_echo "$as_me:$LINENO: checking whether mbswidth is declared in <wchar.h>" >&5
59934$as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
59935if test "${ac_cv_have_decl_mbswidth+set}" = set; then
59936  $as_echo_n "(cached) " >&6
59937else
59938  cat >conftest.$ac_ext <<_ACEOF
59939/* confdefs.h.  */
59940_ACEOF
59941cat confdefs.h >>conftest.$ac_ext
59942cat >>conftest.$ac_ext <<_ACEOF
59943/* end confdefs.h.  */
59944
59945/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
59946   <wchar.h>.
59947   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
59948   before <wchar.h>.  */
59949#include <stddef.h>
59950#include <stdio.h>
59951#include <time.h>
59952#include <wchar.h>
59953
59954int
59955main ()
59956{
59957
59958  char *p = (char *) mbswidth;
59959  return !p;
59960
59961  ;
59962  return 0;
59963}
59964_ACEOF
59965rm -f conftest.$ac_objext
59966if { (ac_try="$ac_compile"
59967case "(($ac_try" in
59968  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
59969  *) ac_try_echo=$ac_try;;
59970esac
59971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
59972$as_echo "$ac_try_echo") >&5
59973  (eval "$ac_compile") 2>conftest.er1
59974  ac_status=$?
59975  grep -v '^ *+' conftest.er1 >conftest.err
59976  rm -f conftest.er1
59977  cat conftest.err >&5
59978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
59979  (exit $ac_status); } && {
59980	 test -z "$ac_c_werror_flag" ||
59981	 test ! -s conftest.err
59982       } && test -s conftest.$ac_objext; then
59983  ac_cv_have_decl_mbswidth=yes
59984else
59985  $as_echo "$as_me: failed program was:" >&5
59986sed 's/^/| /' conftest.$ac_ext >&5
59987
59988	ac_cv_have_decl_mbswidth=no
59989fi
59990
59991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
59992fi
59993{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
59994$as_echo "$ac_cv_have_decl_mbswidth" >&6; }
59995  if test $ac_cv_have_decl_mbswidth = yes; then
59996    ac_val=1
59997  else
59998    ac_val=0
59999  fi
60000
60001cat >>confdefs.h <<_ACEOF
60002#define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
60003_ACEOF
60004
60005
60006  { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
60007$as_echo_n "checking for mbstate_t... " >&6; }
60008if test "${ac_cv_type_mbstate_t+set}" = set; then
60009  $as_echo_n "(cached) " >&6
60010else
60011  cat >conftest.$ac_ext <<_ACEOF
60012/* confdefs.h.  */
60013_ACEOF
60014cat confdefs.h >>conftest.$ac_ext
60015cat >>conftest.$ac_ext <<_ACEOF
60016/* end confdefs.h.  */
60017$ac_includes_default
60018#	    include <wchar.h>
60019int
60020main ()
60021{
60022mbstate_t x; return sizeof x;
60023  ;
60024  return 0;
60025}
60026_ACEOF
60027rm -f conftest.$ac_objext
60028if { (ac_try="$ac_compile"
60029case "(($ac_try" in
60030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60031  *) ac_try_echo=$ac_try;;
60032esac
60033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60034$as_echo "$ac_try_echo") >&5
60035  (eval "$ac_compile") 2>conftest.er1
60036  ac_status=$?
60037  grep -v '^ *+' conftest.er1 >conftest.err
60038  rm -f conftest.er1
60039  cat conftest.err >&5
60040  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60041  (exit $ac_status); } && {
60042	 test -z "$ac_c_werror_flag" ||
60043	 test ! -s conftest.err
60044       } && test -s conftest.$ac_objext; then
60045  ac_cv_type_mbstate_t=yes
60046else
60047  $as_echo "$as_me: failed program was:" >&5
60048sed 's/^/| /' conftest.$ac_ext >&5
60049
60050	ac_cv_type_mbstate_t=no
60051fi
60052
60053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60054fi
60055{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
60056$as_echo "$ac_cv_type_mbstate_t" >&6; }
60057   if test $ac_cv_type_mbstate_t = yes; then
60058
60059cat >>confdefs.h <<\_ACEOF
60060#define HAVE_MBSTATE_T 1
60061_ACEOF
60062
60063   else
60064
60065cat >>confdefs.h <<\_ACEOF
60066#define mbstate_t int
60067_ACEOF
60068
60069   fi
60070
60071
60072
60073
60074
60075
60076          { $as_echo "$as_me:$LINENO: checking whether the C compiler is actually a C++ compiler" >&5
60077$as_echo_n "checking whether the C compiler is actually a C++ compiler... " >&6; }
60078if test "${gl_cv_c_cplusplus+set}" = set; then
60079  $as_echo_n "(cached) " >&6
60080else
60081  cat >conftest.$ac_ext <<_ACEOF
60082/* confdefs.h.  */
60083_ACEOF
60084cat confdefs.h >>conftest.$ac_ext
60085cat >>conftest.$ac_ext <<_ACEOF
60086/* end confdefs.h.  */
60087
60088#ifdef __cplusplus
60089  Is c++
60090#endif
60091
60092_ACEOF
60093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60094  $EGREP "Is c++" >/dev/null 2>&1; then
60095  gl_cv_c_cplusplus=yes
60096else
60097  gl_cv_c_cplusplus=no
60098fi
60099rm -f conftest*
60100
60101fi
60102{ $as_echo "$as_me:$LINENO: result: $gl_cv_c_cplusplus" >&5
60103$as_echo "$gl_cv_c_cplusplus" >&6; }
60104  if test $gl_cv_c_cplusplus = yes; then
60105
60106cat >>confdefs.h <<\_ACEOF
60107#define IS_CPLUSPLUS 1
60108_ACEOF
60109
60110  fi
60111
60112
60113
60114
60115
60116
60117
60118
60119
60120
60121
60122{ $as_echo "$as_me:$LINENO: checking for obstacks" >&5
60123$as_echo_n "checking for obstacks... " >&6; }
60124if test "${ac_cv_func_obstack+set}" = set; then
60125  $as_echo_n "(cached) " >&6
60126else
60127  cat >conftest.$ac_ext <<_ACEOF
60128/* confdefs.h.  */
60129_ACEOF
60130cat confdefs.h >>conftest.$ac_ext
60131cat >>conftest.$ac_ext <<_ACEOF
60132/* end confdefs.h.  */
60133$ac_includes_default
60134		      #include "obstack.h"
60135int
60136main ()
60137{
60138struct obstack mem;
60139		       #define obstack_chunk_alloc malloc
60140		       #define obstack_chunk_free free
60141		       obstack_init (&mem);
60142		       obstack_free (&mem, 0);
60143  ;
60144  return 0;
60145}
60146_ACEOF
60147rm -f conftest.$ac_objext conftest$ac_exeext
60148if { (ac_try="$ac_link"
60149case "(($ac_try" in
60150  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60151  *) ac_try_echo=$ac_try;;
60152esac
60153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60154$as_echo "$ac_try_echo") >&5
60155  (eval "$ac_link") 2>conftest.er1
60156  ac_status=$?
60157  grep -v '^ *+' conftest.er1 >conftest.err
60158  rm -f conftest.er1
60159  cat conftest.err >&5
60160  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60161  (exit $ac_status); } && {
60162	 test -z "$ac_c_werror_flag" ||
60163	 test ! -s conftest.err
60164       } && test -s conftest$ac_exeext && {
60165	 test "$cross_compiling" = yes ||
60166	 $as_test_x conftest$ac_exeext
60167       }; then
60168  ac_cv_func_obstack=yes
60169else
60170  $as_echo "$as_me: failed program was:" >&5
60171sed 's/^/| /' conftest.$ac_ext >&5
60172
60173	ac_cv_func_obstack=no
60174fi
60175
60176rm -rf conftest.dSYM
60177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
60178      conftest$ac_exeext conftest.$ac_ext
60179fi
60180{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
60181$as_echo "$ac_cv_func_obstack" >&6; }
60182if test $ac_cv_func_obstack = yes; then
60183
60184cat >>confdefs.h <<\_ACEOF
60185#define HAVE_OBSTACK 1
60186_ACEOF
60187
60188else
60189
60190
60191
60192
60193
60194
60195
60196  gtpo_LIBOBJS="$gtpo_LIBOBJS obstack.$ac_objext"
60197
60198fi
60199
60200
60201
60202  if test $gl_cv_func_malloc_posix = yes; then
60203    HAVE_REALLOC_POSIX=1
60204
60205cat >>confdefs.h <<\_ACEOF
60206#define HAVE_REALLOC_POSIX 1
60207_ACEOF
60208
60209  else
60210
60211
60212
60213
60214
60215
60216
60217  gtpo_LIBOBJS="$gtpo_LIBOBJS realloc.$ac_objext"
60218
60219    HAVE_REALLOC_POSIX=0
60220  fi
60221
60222
60223
60224
60225  GNULIB_REALLOC_POSIX=1
60226
60227
60228
60229  if test $RELOCATABLE = yes; then
60230
60231
60232
60233
60234
60235
60236
60237  gtpo_LIBOBJS="$gtpo_LIBOBJS relocatable.$ac_objext"
60238
60239  fi
60240
60241
60242
60243for ac_header in stdint.h
60244do
60245as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
60246if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
60247  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
60248$as_echo_n "checking for $ac_header... " >&6; }
60249if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
60250  $as_echo_n "(cached) " >&6
60251fi
60252ac_res=`eval 'as_val=${'$as_ac_Header'}
60253		 $as_echo "$as_val"'`
60254	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60255$as_echo "$ac_res" >&6; }
60256else
60257  # Is the header compilable?
60258{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
60259$as_echo_n "checking $ac_header usability... " >&6; }
60260cat >conftest.$ac_ext <<_ACEOF
60261/* confdefs.h.  */
60262_ACEOF
60263cat confdefs.h >>conftest.$ac_ext
60264cat >>conftest.$ac_ext <<_ACEOF
60265/* end confdefs.h.  */
60266$ac_includes_default
60267#include <$ac_header>
60268_ACEOF
60269rm -f conftest.$ac_objext
60270if { (ac_try="$ac_compile"
60271case "(($ac_try" in
60272  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60273  *) ac_try_echo=$ac_try;;
60274esac
60275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60276$as_echo "$ac_try_echo") >&5
60277  (eval "$ac_compile") 2>conftest.er1
60278  ac_status=$?
60279  grep -v '^ *+' conftest.er1 >conftest.err
60280  rm -f conftest.er1
60281  cat conftest.err >&5
60282  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60283  (exit $ac_status); } && {
60284	 test -z "$ac_c_werror_flag" ||
60285	 test ! -s conftest.err
60286       } && test -s conftest.$ac_objext; then
60287  ac_header_compiler=yes
60288else
60289  $as_echo "$as_me: failed program was:" >&5
60290sed 's/^/| /' conftest.$ac_ext >&5
60291
60292	ac_header_compiler=no
60293fi
60294
60295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60296{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
60297$as_echo "$ac_header_compiler" >&6; }
60298
60299# Is the header present?
60300{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
60301$as_echo_n "checking $ac_header presence... " >&6; }
60302cat >conftest.$ac_ext <<_ACEOF
60303/* confdefs.h.  */
60304_ACEOF
60305cat confdefs.h >>conftest.$ac_ext
60306cat >>conftest.$ac_ext <<_ACEOF
60307/* end confdefs.h.  */
60308#include <$ac_header>
60309_ACEOF
60310if { (ac_try="$ac_cpp conftest.$ac_ext"
60311case "(($ac_try" in
60312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60313  *) ac_try_echo=$ac_try;;
60314esac
60315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60316$as_echo "$ac_try_echo") >&5
60317  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
60318  ac_status=$?
60319  grep -v '^ *+' conftest.er1 >conftest.err
60320  rm -f conftest.er1
60321  cat conftest.err >&5
60322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60323  (exit $ac_status); } >/dev/null && {
60324	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
60325	 test ! -s conftest.err
60326       }; then
60327  ac_header_preproc=yes
60328else
60329  $as_echo "$as_me: failed program was:" >&5
60330sed 's/^/| /' conftest.$ac_ext >&5
60331
60332  ac_header_preproc=no
60333fi
60334
60335rm -f conftest.err conftest.$ac_ext
60336{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
60337$as_echo "$ac_header_preproc" >&6; }
60338
60339# So?  What about this header?
60340case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
60341  yes:no: )
60342    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
60343$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
60344    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
60345$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
60346    ac_header_preproc=yes
60347    ;;
60348  no:yes:* )
60349    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
60350$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
60351    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
60352$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
60353    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
60354$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
60355    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
60356$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
60357    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
60358$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
60359    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
60360$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
60361
60362    ;;
60363esac
60364{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
60365$as_echo_n "checking for $ac_header... " >&6; }
60366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
60367  $as_echo_n "(cached) " >&6
60368else
60369  eval "$as_ac_Header=\$ac_header_preproc"
60370fi
60371ac_res=`eval 'as_val=${'$as_ac_Header'}
60372		 $as_echo "$as_val"'`
60373	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
60374$as_echo "$ac_res" >&6; }
60375
60376fi
60377as_val=`eval 'as_val=${'$as_ac_Header'}
60378		 $as_echo "$as_val"'`
60379   if test "x$as_val" = x""yes; then
60380  cat >>confdefs.h <<_ACEOF
60381#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
60382_ACEOF
60383
60384fi
60385
60386done
60387
60388    { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
60389$as_echo_n "checking for SIZE_MAX... " >&6; }
60390  if test "${gl_cv_size_max+set}" = set; then
60391  $as_echo_n "(cached) " >&6
60392else
60393
60394    gl_cv_size_max=
60395    cat >conftest.$ac_ext <<_ACEOF
60396/* confdefs.h.  */
60397_ACEOF
60398cat confdefs.h >>conftest.$ac_ext
60399cat >>conftest.$ac_ext <<_ACEOF
60400/* end confdefs.h.  */
60401
60402#include <limits.h>
60403#if HAVE_STDINT_H
60404#include <stdint.h>
60405#endif
60406#ifdef SIZE_MAX
60407Found it
60408#endif
60409
60410_ACEOF
60411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
60412  $EGREP "Found it" >/dev/null 2>&1; then
60413  gl_cv_size_max=yes
60414fi
60415rm -f conftest*
60416
60417    if test -z "$gl_cv_size_max"; then
60418                        if test "$cross_compiling" = yes; then
60419  # Depending upon the size, compute the lo and hi bounds.
60420cat >conftest.$ac_ext <<_ACEOF
60421/* confdefs.h.  */
60422_ACEOF
60423cat confdefs.h >>conftest.$ac_ext
60424cat >>conftest.$ac_ext <<_ACEOF
60425/* end confdefs.h.  */
60426#include <stddef.h>
60427#include <limits.h>
60428int
60429main ()
60430{
60431static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
60432test_array [0] = 0
60433
60434  ;
60435  return 0;
60436}
60437_ACEOF
60438rm -f conftest.$ac_objext
60439if { (ac_try="$ac_compile"
60440case "(($ac_try" in
60441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60442  *) ac_try_echo=$ac_try;;
60443esac
60444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60445$as_echo "$ac_try_echo") >&5
60446  (eval "$ac_compile") 2>conftest.er1
60447  ac_status=$?
60448  grep -v '^ *+' conftest.er1 >conftest.err
60449  rm -f conftest.er1
60450  cat conftest.err >&5
60451  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60452  (exit $ac_status); } && {
60453	 test -z "$ac_c_werror_flag" ||
60454	 test ! -s conftest.err
60455       } && test -s conftest.$ac_objext; then
60456  ac_lo=0 ac_mid=0
60457  while :; do
60458    cat >conftest.$ac_ext <<_ACEOF
60459/* confdefs.h.  */
60460_ACEOF
60461cat confdefs.h >>conftest.$ac_ext
60462cat >>conftest.$ac_ext <<_ACEOF
60463/* end confdefs.h.  */
60464#include <stddef.h>
60465#include <limits.h>
60466int
60467main ()
60468{
60469static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
60470test_array [0] = 0
60471
60472  ;
60473  return 0;
60474}
60475_ACEOF
60476rm -f conftest.$ac_objext
60477if { (ac_try="$ac_compile"
60478case "(($ac_try" in
60479  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60480  *) ac_try_echo=$ac_try;;
60481esac
60482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60483$as_echo "$ac_try_echo") >&5
60484  (eval "$ac_compile") 2>conftest.er1
60485  ac_status=$?
60486  grep -v '^ *+' conftest.er1 >conftest.err
60487  rm -f conftest.er1
60488  cat conftest.err >&5
60489  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60490  (exit $ac_status); } && {
60491	 test -z "$ac_c_werror_flag" ||
60492	 test ! -s conftest.err
60493       } && test -s conftest.$ac_objext; then
60494  ac_hi=$ac_mid; break
60495else
60496  $as_echo "$as_me: failed program was:" >&5
60497sed 's/^/| /' conftest.$ac_ext >&5
60498
60499	ac_lo=`expr $ac_mid + 1`
60500			if test $ac_lo -le $ac_mid; then
60501			  ac_lo= ac_hi=
60502			  break
60503			fi
60504			ac_mid=`expr 2 '*' $ac_mid + 1`
60505fi
60506
60507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60508  done
60509else
60510  $as_echo "$as_me: failed program was:" >&5
60511sed 's/^/| /' conftest.$ac_ext >&5
60512
60513	cat >conftest.$ac_ext <<_ACEOF
60514/* confdefs.h.  */
60515_ACEOF
60516cat confdefs.h >>conftest.$ac_ext
60517cat >>conftest.$ac_ext <<_ACEOF
60518/* end confdefs.h.  */
60519#include <stddef.h>
60520#include <limits.h>
60521int
60522main ()
60523{
60524static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
60525test_array [0] = 0
60526
60527  ;
60528  return 0;
60529}
60530_ACEOF
60531rm -f conftest.$ac_objext
60532if { (ac_try="$ac_compile"
60533case "(($ac_try" in
60534  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60535  *) ac_try_echo=$ac_try;;
60536esac
60537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60538$as_echo "$ac_try_echo") >&5
60539  (eval "$ac_compile") 2>conftest.er1
60540  ac_status=$?
60541  grep -v '^ *+' conftest.er1 >conftest.err
60542  rm -f conftest.er1
60543  cat conftest.err >&5
60544  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60545  (exit $ac_status); } && {
60546	 test -z "$ac_c_werror_flag" ||
60547	 test ! -s conftest.err
60548       } && test -s conftest.$ac_objext; then
60549  ac_hi=-1 ac_mid=-1
60550  while :; do
60551    cat >conftest.$ac_ext <<_ACEOF
60552/* confdefs.h.  */
60553_ACEOF
60554cat confdefs.h >>conftest.$ac_ext
60555cat >>conftest.$ac_ext <<_ACEOF
60556/* end confdefs.h.  */
60557#include <stddef.h>
60558#include <limits.h>
60559int
60560main ()
60561{
60562static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
60563test_array [0] = 0
60564
60565  ;
60566  return 0;
60567}
60568_ACEOF
60569rm -f conftest.$ac_objext
60570if { (ac_try="$ac_compile"
60571case "(($ac_try" in
60572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60573  *) ac_try_echo=$ac_try;;
60574esac
60575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60576$as_echo "$ac_try_echo") >&5
60577  (eval "$ac_compile") 2>conftest.er1
60578  ac_status=$?
60579  grep -v '^ *+' conftest.er1 >conftest.err
60580  rm -f conftest.er1
60581  cat conftest.err >&5
60582  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60583  (exit $ac_status); } && {
60584	 test -z "$ac_c_werror_flag" ||
60585	 test ! -s conftest.err
60586       } && test -s conftest.$ac_objext; then
60587  ac_lo=$ac_mid; break
60588else
60589  $as_echo "$as_me: failed program was:" >&5
60590sed 's/^/| /' conftest.$ac_ext >&5
60591
60592	ac_hi=`expr '(' $ac_mid ')' - 1`
60593			if test $ac_mid -le $ac_hi; then
60594			  ac_lo= ac_hi=
60595			  break
60596			fi
60597			ac_mid=`expr 2 '*' $ac_mid`
60598fi
60599
60600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60601  done
60602else
60603  $as_echo "$as_me: failed program was:" >&5
60604sed 's/^/| /' conftest.$ac_ext >&5
60605
60606	ac_lo= ac_hi=
60607fi
60608
60609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60610fi
60611
60612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60613# Binary search between lo and hi bounds.
60614while test "x$ac_lo" != "x$ac_hi"; do
60615  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
60616  cat >conftest.$ac_ext <<_ACEOF
60617/* confdefs.h.  */
60618_ACEOF
60619cat confdefs.h >>conftest.$ac_ext
60620cat >>conftest.$ac_ext <<_ACEOF
60621/* end confdefs.h.  */
60622#include <stddef.h>
60623#include <limits.h>
60624int
60625main ()
60626{
60627static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
60628test_array [0] = 0
60629
60630  ;
60631  return 0;
60632}
60633_ACEOF
60634rm -f conftest.$ac_objext
60635if { (ac_try="$ac_compile"
60636case "(($ac_try" in
60637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60638  *) ac_try_echo=$ac_try;;
60639esac
60640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60641$as_echo "$ac_try_echo") >&5
60642  (eval "$ac_compile") 2>conftest.er1
60643  ac_status=$?
60644  grep -v '^ *+' conftest.er1 >conftest.err
60645  rm -f conftest.er1
60646  cat conftest.err >&5
60647  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60648  (exit $ac_status); } && {
60649	 test -z "$ac_c_werror_flag" ||
60650	 test ! -s conftest.err
60651       } && test -s conftest.$ac_objext; then
60652  ac_hi=$ac_mid
60653else
60654  $as_echo "$as_me: failed program was:" >&5
60655sed 's/^/| /' conftest.$ac_ext >&5
60656
60657	ac_lo=`expr '(' $ac_mid ')' + 1`
60658fi
60659
60660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60661done
60662case $ac_lo in
60663?*) size_t_bits_minus_1=$ac_lo;;
60664'') size_t_bits_minus_1= ;;
60665esac
60666else
60667  cat >conftest.$ac_ext <<_ACEOF
60668/* confdefs.h.  */
60669_ACEOF
60670cat confdefs.h >>conftest.$ac_ext
60671cat >>conftest.$ac_ext <<_ACEOF
60672/* end confdefs.h.  */
60673#include <stddef.h>
60674#include <limits.h>
60675static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
60676static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
60677#include <stdio.h>
60678#include <stdlib.h>
60679int
60680main ()
60681{
60682
60683  FILE *f = fopen ("conftest.val", "w");
60684  if (! f)
60685    return 1;
60686  if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
60687    {
60688      long int i = longval ();
60689      if (i != (sizeof (size_t) * CHAR_BIT - 1))
60690	return 1;
60691      fprintf (f, "%ld", i);
60692    }
60693  else
60694    {
60695      unsigned long int i = ulongval ();
60696      if (i != (sizeof (size_t) * CHAR_BIT - 1))
60697	return 1;
60698      fprintf (f, "%lu", i);
60699    }
60700  /* Do not output a trailing newline, as this causes \r\n confusion
60701     on some platforms.  */
60702  return ferror (f) || fclose (f) != 0;
60703
60704  ;
60705  return 0;
60706}
60707_ACEOF
60708rm -f conftest$ac_exeext
60709if { (ac_try="$ac_link"
60710case "(($ac_try" in
60711  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60712  *) ac_try_echo=$ac_try;;
60713esac
60714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60715$as_echo "$ac_try_echo") >&5
60716  (eval "$ac_link") 2>&5
60717  ac_status=$?
60718  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60719  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
60720  { (case "(($ac_try" in
60721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60722  *) ac_try_echo=$ac_try;;
60723esac
60724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60725$as_echo "$ac_try_echo") >&5
60726  (eval "$ac_try") 2>&5
60727  ac_status=$?
60728  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60729  (exit $ac_status); }; }; then
60730  size_t_bits_minus_1=`cat conftest.val`
60731else
60732  $as_echo "$as_me: program exited with status $ac_status" >&5
60733$as_echo "$as_me: failed program was:" >&5
60734sed 's/^/| /' conftest.$ac_ext >&5
60735
60736( exit $ac_status )
60737size_t_bits_minus_1=
60738fi
60739rm -rf conftest.dSYM
60740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
60741fi
60742rm -f conftest.val
60743      if test "$cross_compiling" = yes; then
60744  # Depending upon the size, compute the lo and hi bounds.
60745cat >conftest.$ac_ext <<_ACEOF
60746/* confdefs.h.  */
60747_ACEOF
60748cat confdefs.h >>conftest.$ac_ext
60749cat >>conftest.$ac_ext <<_ACEOF
60750/* end confdefs.h.  */
60751#include <stddef.h>
60752int
60753main ()
60754{
60755static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
60756test_array [0] = 0
60757
60758  ;
60759  return 0;
60760}
60761_ACEOF
60762rm -f conftest.$ac_objext
60763if { (ac_try="$ac_compile"
60764case "(($ac_try" in
60765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60766  *) ac_try_echo=$ac_try;;
60767esac
60768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60769$as_echo "$ac_try_echo") >&5
60770  (eval "$ac_compile") 2>conftest.er1
60771  ac_status=$?
60772  grep -v '^ *+' conftest.er1 >conftest.err
60773  rm -f conftest.er1
60774  cat conftest.err >&5
60775  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60776  (exit $ac_status); } && {
60777	 test -z "$ac_c_werror_flag" ||
60778	 test ! -s conftest.err
60779       } && test -s conftest.$ac_objext; then
60780  ac_lo=0 ac_mid=0
60781  while :; do
60782    cat >conftest.$ac_ext <<_ACEOF
60783/* confdefs.h.  */
60784_ACEOF
60785cat confdefs.h >>conftest.$ac_ext
60786cat >>conftest.$ac_ext <<_ACEOF
60787/* end confdefs.h.  */
60788#include <stddef.h>
60789int
60790main ()
60791{
60792static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
60793test_array [0] = 0
60794
60795  ;
60796  return 0;
60797}
60798_ACEOF
60799rm -f conftest.$ac_objext
60800if { (ac_try="$ac_compile"
60801case "(($ac_try" in
60802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60803  *) ac_try_echo=$ac_try;;
60804esac
60805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60806$as_echo "$ac_try_echo") >&5
60807  (eval "$ac_compile") 2>conftest.er1
60808  ac_status=$?
60809  grep -v '^ *+' conftest.er1 >conftest.err
60810  rm -f conftest.er1
60811  cat conftest.err >&5
60812  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60813  (exit $ac_status); } && {
60814	 test -z "$ac_c_werror_flag" ||
60815	 test ! -s conftest.err
60816       } && test -s conftest.$ac_objext; then
60817  ac_hi=$ac_mid; break
60818else
60819  $as_echo "$as_me: failed program was:" >&5
60820sed 's/^/| /' conftest.$ac_ext >&5
60821
60822	ac_lo=`expr $ac_mid + 1`
60823			if test $ac_lo -le $ac_mid; then
60824			  ac_lo= ac_hi=
60825			  break
60826			fi
60827			ac_mid=`expr 2 '*' $ac_mid + 1`
60828fi
60829
60830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60831  done
60832else
60833  $as_echo "$as_me: failed program was:" >&5
60834sed 's/^/| /' conftest.$ac_ext >&5
60835
60836	cat >conftest.$ac_ext <<_ACEOF
60837/* confdefs.h.  */
60838_ACEOF
60839cat confdefs.h >>conftest.$ac_ext
60840cat >>conftest.$ac_ext <<_ACEOF
60841/* end confdefs.h.  */
60842#include <stddef.h>
60843int
60844main ()
60845{
60846static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
60847test_array [0] = 0
60848
60849  ;
60850  return 0;
60851}
60852_ACEOF
60853rm -f conftest.$ac_objext
60854if { (ac_try="$ac_compile"
60855case "(($ac_try" in
60856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60857  *) ac_try_echo=$ac_try;;
60858esac
60859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60860$as_echo "$ac_try_echo") >&5
60861  (eval "$ac_compile") 2>conftest.er1
60862  ac_status=$?
60863  grep -v '^ *+' conftest.er1 >conftest.err
60864  rm -f conftest.er1
60865  cat conftest.err >&5
60866  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60867  (exit $ac_status); } && {
60868	 test -z "$ac_c_werror_flag" ||
60869	 test ! -s conftest.err
60870       } && test -s conftest.$ac_objext; then
60871  ac_hi=-1 ac_mid=-1
60872  while :; do
60873    cat >conftest.$ac_ext <<_ACEOF
60874/* confdefs.h.  */
60875_ACEOF
60876cat confdefs.h >>conftest.$ac_ext
60877cat >>conftest.$ac_ext <<_ACEOF
60878/* end confdefs.h.  */
60879#include <stddef.h>
60880int
60881main ()
60882{
60883static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
60884test_array [0] = 0
60885
60886  ;
60887  return 0;
60888}
60889_ACEOF
60890rm -f conftest.$ac_objext
60891if { (ac_try="$ac_compile"
60892case "(($ac_try" in
60893  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60894  *) ac_try_echo=$ac_try;;
60895esac
60896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60897$as_echo "$ac_try_echo") >&5
60898  (eval "$ac_compile") 2>conftest.er1
60899  ac_status=$?
60900  grep -v '^ *+' conftest.er1 >conftest.err
60901  rm -f conftest.er1
60902  cat conftest.err >&5
60903  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60904  (exit $ac_status); } && {
60905	 test -z "$ac_c_werror_flag" ||
60906	 test ! -s conftest.err
60907       } && test -s conftest.$ac_objext; then
60908  ac_lo=$ac_mid; break
60909else
60910  $as_echo "$as_me: failed program was:" >&5
60911sed 's/^/| /' conftest.$ac_ext >&5
60912
60913	ac_hi=`expr '(' $ac_mid ')' - 1`
60914			if test $ac_mid -le $ac_hi; then
60915			  ac_lo= ac_hi=
60916			  break
60917			fi
60918			ac_mid=`expr 2 '*' $ac_mid`
60919fi
60920
60921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60922  done
60923else
60924  $as_echo "$as_me: failed program was:" >&5
60925sed 's/^/| /' conftest.$ac_ext >&5
60926
60927	ac_lo= ac_hi=
60928fi
60929
60930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60931fi
60932
60933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60934# Binary search between lo and hi bounds.
60935while test "x$ac_lo" != "x$ac_hi"; do
60936  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
60937  cat >conftest.$ac_ext <<_ACEOF
60938/* confdefs.h.  */
60939_ACEOF
60940cat confdefs.h >>conftest.$ac_ext
60941cat >>conftest.$ac_ext <<_ACEOF
60942/* end confdefs.h.  */
60943#include <stddef.h>
60944int
60945main ()
60946{
60947static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
60948test_array [0] = 0
60949
60950  ;
60951  return 0;
60952}
60953_ACEOF
60954rm -f conftest.$ac_objext
60955if { (ac_try="$ac_compile"
60956case "(($ac_try" in
60957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
60958  *) ac_try_echo=$ac_try;;
60959esac
60960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
60961$as_echo "$ac_try_echo") >&5
60962  (eval "$ac_compile") 2>conftest.er1
60963  ac_status=$?
60964  grep -v '^ *+' conftest.er1 >conftest.err
60965  rm -f conftest.er1
60966  cat conftest.err >&5
60967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
60968  (exit $ac_status); } && {
60969	 test -z "$ac_c_werror_flag" ||
60970	 test ! -s conftest.err
60971       } && test -s conftest.$ac_objext; then
60972  ac_hi=$ac_mid
60973else
60974  $as_echo "$as_me: failed program was:" >&5
60975sed 's/^/| /' conftest.$ac_ext >&5
60976
60977	ac_lo=`expr '(' $ac_mid ')' + 1`
60978fi
60979
60980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
60981done
60982case $ac_lo in
60983?*) fits_in_uint=$ac_lo;;
60984'') fits_in_uint= ;;
60985esac
60986else
60987  cat >conftest.$ac_ext <<_ACEOF
60988/* confdefs.h.  */
60989_ACEOF
60990cat confdefs.h >>conftest.$ac_ext
60991cat >>conftest.$ac_ext <<_ACEOF
60992/* end confdefs.h.  */
60993#include <stddef.h>
60994static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
60995static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
60996#include <stdio.h>
60997#include <stdlib.h>
60998int
60999main ()
61000{
61001
61002  FILE *f = fopen ("conftest.val", "w");
61003  if (! f)
61004    return 1;
61005  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
61006    {
61007      long int i = longval ();
61008      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
61009	return 1;
61010      fprintf (f, "%ld", i);
61011    }
61012  else
61013    {
61014      unsigned long int i = ulongval ();
61015      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
61016	return 1;
61017      fprintf (f, "%lu", i);
61018    }
61019  /* Do not output a trailing newline, as this causes \r\n confusion
61020     on some platforms.  */
61021  return ferror (f) || fclose (f) != 0;
61022
61023  ;
61024  return 0;
61025}
61026_ACEOF
61027rm -f conftest$ac_exeext
61028if { (ac_try="$ac_link"
61029case "(($ac_try" in
61030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61031  *) ac_try_echo=$ac_try;;
61032esac
61033eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61034$as_echo "$ac_try_echo") >&5
61035  (eval "$ac_link") 2>&5
61036  ac_status=$?
61037  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61038  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
61039  { (case "(($ac_try" in
61040  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61041  *) ac_try_echo=$ac_try;;
61042esac
61043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61044$as_echo "$ac_try_echo") >&5
61045  (eval "$ac_try") 2>&5
61046  ac_status=$?
61047  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61048  (exit $ac_status); }; }; then
61049  fits_in_uint=`cat conftest.val`
61050else
61051  $as_echo "$as_me: program exited with status $ac_status" >&5
61052$as_echo "$as_me: failed program was:" >&5
61053sed 's/^/| /' conftest.$ac_ext >&5
61054
61055( exit $ac_status )
61056fits_in_uint=
61057fi
61058rm -rf conftest.dSYM
61059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
61060fi
61061rm -f conftest.val
61062      if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
61063        if test $fits_in_uint = 1; then
61064                              cat >conftest.$ac_ext <<_ACEOF
61065/* confdefs.h.  */
61066_ACEOF
61067cat confdefs.h >>conftest.$ac_ext
61068cat >>conftest.$ac_ext <<_ACEOF
61069/* end confdefs.h.  */
61070#include <stddef.h>
61071            extern size_t foo;
61072            extern unsigned long foo;
61073
61074int
61075main ()
61076{
61077
61078  ;
61079  return 0;
61080}
61081_ACEOF
61082rm -f conftest.$ac_objext
61083if { (ac_try="$ac_compile"
61084case "(($ac_try" in
61085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61086  *) ac_try_echo=$ac_try;;
61087esac
61088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61089$as_echo "$ac_try_echo") >&5
61090  (eval "$ac_compile") 2>conftest.er1
61091  ac_status=$?
61092  grep -v '^ *+' conftest.er1 >conftest.err
61093  rm -f conftest.er1
61094  cat conftest.err >&5
61095  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61096  (exit $ac_status); } && {
61097	 test -z "$ac_c_werror_flag" ||
61098	 test ! -s conftest.err
61099       } && test -s conftest.$ac_objext; then
61100  fits_in_uint=0
61101else
61102  $as_echo "$as_me: failed program was:" >&5
61103sed 's/^/| /' conftest.$ac_ext >&5
61104
61105
61106fi
61107
61108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61109        fi
61110                                if test $fits_in_uint = 1; then
61111          gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
61112        else
61113          gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
61114        fi
61115      else
61116                gl_cv_size_max='((size_t)~(size_t)0)'
61117      fi
61118    fi
61119
61120fi
61121
61122  { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
61123$as_echo "$gl_cv_size_max" >&6; }
61124  if test "$gl_cv_size_max" != yes; then
61125
61126cat >>confdefs.h <<_ACEOF
61127#define SIZE_MAX $gl_cv_size_max
61128_ACEOF
61129
61130  fi
61131
61132
61133  { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
61134$as_echo_n "checking for va_copy... " >&6; }
61135  if test "${gl_cv_func_va_copy+set}" = set; then
61136  $as_echo_n "(cached) " >&6
61137else
61138
61139    cat >conftest.$ac_ext <<_ACEOF
61140/* confdefs.h.  */
61141_ACEOF
61142cat confdefs.h >>conftest.$ac_ext
61143cat >>conftest.$ac_ext <<_ACEOF
61144/* end confdefs.h.  */
61145#include <stdarg.h>
61146int
61147main ()
61148{
61149
61150#ifndef va_copy
61151void (*func) (va_list, va_list) = va_copy;
61152#endif
61153
61154  ;
61155  return 0;
61156}
61157_ACEOF
61158rm -f conftest.$ac_objext
61159if { (ac_try="$ac_compile"
61160case "(($ac_try" in
61161  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61162  *) ac_try_echo=$ac_try;;
61163esac
61164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61165$as_echo "$ac_try_echo") >&5
61166  (eval "$ac_compile") 2>conftest.er1
61167  ac_status=$?
61168  grep -v '^ *+' conftest.er1 >conftest.err
61169  rm -f conftest.er1
61170  cat conftest.err >&5
61171  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61172  (exit $ac_status); } && {
61173	 test -z "$ac_c_werror_flag" ||
61174	 test ! -s conftest.err
61175       } && test -s conftest.$ac_objext; then
61176  gl_cv_func_va_copy=yes
61177else
61178  $as_echo "$as_me: failed program was:" >&5
61179sed 's/^/| /' conftest.$ac_ext >&5
61180
61181	gl_cv_func_va_copy=no
61182fi
61183
61184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61185fi
61186
61187  { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
61188$as_echo "$gl_cv_func_va_copy" >&6; }
61189  if test $gl_cv_func_va_copy = no; then
61190    # Provide a substitute, either __va_copy or as a simple assignment.
61191    if test "${gl_cv_func___va_copy+set}" = set; then
61192  $as_echo_n "(cached) " >&6
61193else
61194
61195      cat >conftest.$ac_ext <<_ACEOF
61196/* confdefs.h.  */
61197_ACEOF
61198cat confdefs.h >>conftest.$ac_ext
61199cat >>conftest.$ac_ext <<_ACEOF
61200/* end confdefs.h.  */
61201#include <stdarg.h>
61202int
61203main ()
61204{
61205
61206#ifndef __va_copy
61207error, bail out
61208#endif
61209
61210  ;
61211  return 0;
61212}
61213_ACEOF
61214rm -f conftest.$ac_objext
61215if { (ac_try="$ac_compile"
61216case "(($ac_try" in
61217  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61218  *) ac_try_echo=$ac_try;;
61219esac
61220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61221$as_echo "$ac_try_echo") >&5
61222  (eval "$ac_compile") 2>conftest.er1
61223  ac_status=$?
61224  grep -v '^ *+' conftest.er1 >conftest.err
61225  rm -f conftest.er1
61226  cat conftest.err >&5
61227  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61228  (exit $ac_status); } && {
61229	 test -z "$ac_c_werror_flag" ||
61230	 test ! -s conftest.err
61231       } && test -s conftest.$ac_objext; then
61232  gl_cv_func___va_copy=yes
61233else
61234  $as_echo "$as_me: failed program was:" >&5
61235sed 's/^/| /' conftest.$ac_ext >&5
61236
61237	gl_cv_func___va_copy=no
61238fi
61239
61240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61241fi
61242
61243    if test $gl_cv_func___va_copy = yes; then
61244
61245cat >>confdefs.h <<\_ACEOF
61246#define va_copy __va_copy
61247_ACEOF
61248
61249    else
61250
61251
61252
61253cat >>confdefs.h <<\_ACEOF
61254#define va_copy gl_va_copy
61255_ACEOF
61256
61257    fi
61258  fi
61259
61260
61261
61262
61263  # Define two additional variables used in the Makefile substitution.
61264
61265  if test "$ac_cv_header_stdbool_h" = yes; then
61266    STDBOOL_H=''
61267  else
61268    STDBOOL_H='stdbool.h'
61269  fi
61270
61271
61272  if test "$ac_cv_type__Bool" = yes; then
61273    HAVE__BOOL=1
61274  else
61275    HAVE__BOOL=0
61276  fi
61277
61278
61279
61280
61281
61282  if test $ac_cv_type_long_long_int = yes; then
61283    HAVE_LONG_LONG_INT=1
61284  else
61285    HAVE_LONG_LONG_INT=0
61286  fi
61287
61288
61289  if test $ac_cv_type_unsigned_long_long_int = yes; then
61290    HAVE_UNSIGNED_LONG_LONG_INT=1
61291  else
61292    HAVE_UNSIGNED_LONG_LONG_INT=0
61293  fi
61294
61295
61296      if test $ac_cv_header_inttypes_h = yes; then
61297    HAVE_INTTYPES_H=1
61298  else
61299    HAVE_INTTYPES_H=0
61300  fi
61301
61302
61303      if test $ac_cv_header_sys_types_h = yes; then
61304    HAVE_SYS_TYPES_H=1
61305  else
61306    HAVE_SYS_TYPES_H=0
61307  fi
61308
61309
61310
61311
61312
61313  :
61314
61315
61316
61317
61318
61319
61320
61321     if test $gl_cv_have_include_next = yes; then
61322       gl_cv_next_stdint_h='<'stdint.h'>'
61323     else
61324       { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
61325$as_echo_n "checking absolute name of <stdint.h>... " >&6; }
61326if test "${gl_cv_next_stdint_h+set}" = set; then
61327  $as_echo_n "(cached) " >&6
61328else
61329
61330	  if test $ac_cv_header_stdint_h = yes; then
61331	    cat >conftest.$ac_ext <<_ACEOF
61332/* confdefs.h.  */
61333_ACEOF
61334cat confdefs.h >>conftest.$ac_ext
61335cat >>conftest.$ac_ext <<_ACEOF
61336/* end confdefs.h.  */
61337#include <stdint.h>
61338
61339_ACEOF
61340	    	    	    	    gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
61341	       sed -n '\#/stdint.h#{
61342		 s#.*"\(.*/stdint.h\)".*#\1#
61343		 s#^/[^/]#//&#
61344		 p
61345		 q
61346	       }'`'"'
61347	  else
61348	    gl_cv_next_stdint_h='<'stdint.h'>'
61349	  fi
61350
61351fi
61352{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
61353$as_echo "$gl_cv_next_stdint_h" >&6; }
61354     fi
61355     NEXT_STDINT_H=$gl_cv_next_stdint_h
61356
61357
61358
61359  if test $ac_cv_header_stdint_h = yes; then
61360    HAVE_STDINT_H=1
61361  else
61362    HAVE_STDINT_H=0
61363  fi
61364
61365
61366    if test $ac_cv_header_stdint_h = yes; then
61367    { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
61368$as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
61369if test "${gl_cv_header_working_stdint_h+set}" = set; then
61370  $as_echo_n "(cached) " >&6
61371else
61372  gl_cv_header_working_stdint_h=no
61373       cat >conftest.$ac_ext <<_ACEOF
61374
61375         /* confdefs.h.  */
61376_ACEOF
61377cat confdefs.h >>conftest.$ac_ext
61378cat >>conftest.$ac_ext <<_ACEOF
61379/* end confdefs.h.  */
61380
61381#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
61382#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
61383#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
61384#include <stdint.h>
61385/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
61386#if !(defined WCHAR_MIN && defined WCHAR_MAX)
61387#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
61388#endif
61389
61390
61391  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61392     included before <wchar.h>.  */
61393  #include <stddef.h>
61394  #include <signal.h>
61395  #if HAVE_WCHAR_H
61396  # include <stdio.h>
61397  # include <time.h>
61398  # include <wchar.h>
61399  #endif
61400
61401
61402#ifdef INT8_MAX
61403int8_t a1 = INT8_MAX;
61404int8_t a1min = INT8_MIN;
61405#endif
61406#ifdef INT16_MAX
61407int16_t a2 = INT16_MAX;
61408int16_t a2min = INT16_MIN;
61409#endif
61410#ifdef INT32_MAX
61411int32_t a3 = INT32_MAX;
61412int32_t a3min = INT32_MIN;
61413#endif
61414#ifdef INT64_MAX
61415int64_t a4 = INT64_MAX;
61416int64_t a4min = INT64_MIN;
61417#endif
61418#ifdef UINT8_MAX
61419uint8_t b1 = UINT8_MAX;
61420#else
61421typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
61422#endif
61423#ifdef UINT16_MAX
61424uint16_t b2 = UINT16_MAX;
61425#endif
61426#ifdef UINT32_MAX
61427uint32_t b3 = UINT32_MAX;
61428#endif
61429#ifdef UINT64_MAX
61430uint64_t b4 = UINT64_MAX;
61431#endif
61432int_least8_t c1 = INT8_C (0x7f);
61433int_least8_t c1max = INT_LEAST8_MAX;
61434int_least8_t c1min = INT_LEAST8_MIN;
61435int_least16_t c2 = INT16_C (0x7fff);
61436int_least16_t c2max = INT_LEAST16_MAX;
61437int_least16_t c2min = INT_LEAST16_MIN;
61438int_least32_t c3 = INT32_C (0x7fffffff);
61439int_least32_t c3max = INT_LEAST32_MAX;
61440int_least32_t c3min = INT_LEAST32_MIN;
61441int_least64_t c4 = INT64_C (0x7fffffffffffffff);
61442int_least64_t c4max = INT_LEAST64_MAX;
61443int_least64_t c4min = INT_LEAST64_MIN;
61444uint_least8_t d1 = UINT8_C (0xff);
61445uint_least8_t d1max = UINT_LEAST8_MAX;
61446uint_least16_t d2 = UINT16_C (0xffff);
61447uint_least16_t d2max = UINT_LEAST16_MAX;
61448uint_least32_t d3 = UINT32_C (0xffffffff);
61449uint_least32_t d3max = UINT_LEAST32_MAX;
61450uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
61451uint_least64_t d4max = UINT_LEAST64_MAX;
61452int_fast8_t e1 = INT_FAST8_MAX;
61453int_fast8_t e1min = INT_FAST8_MIN;
61454int_fast16_t e2 = INT_FAST16_MAX;
61455int_fast16_t e2min = INT_FAST16_MIN;
61456int_fast32_t e3 = INT_FAST32_MAX;
61457int_fast32_t e3min = INT_FAST32_MIN;
61458int_fast64_t e4 = INT_FAST64_MAX;
61459int_fast64_t e4min = INT_FAST64_MIN;
61460uint_fast8_t f1 = UINT_FAST8_MAX;
61461uint_fast16_t f2 = UINT_FAST16_MAX;
61462uint_fast32_t f3 = UINT_FAST32_MAX;
61463uint_fast64_t f4 = UINT_FAST64_MAX;
61464#ifdef INTPTR_MAX
61465intptr_t g = INTPTR_MAX;
61466intptr_t gmin = INTPTR_MIN;
61467#endif
61468#ifdef UINTPTR_MAX
61469uintptr_t h = UINTPTR_MAX;
61470#endif
61471intmax_t i = INTMAX_MAX;
61472uintmax_t j = UINTMAX_MAX;
61473
61474#include <limits.h> /* for CHAR_BIT */
61475#define TYPE_MINIMUM(t) \
61476  ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
61477#define TYPE_MAXIMUM(t) \
61478  ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
61479struct s {
61480  int check_PTRDIFF:
61481      PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
61482      && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
61483      ? 1 : -1;
61484  /* Detect bug in FreeBSD 6.0 / ia64.  */
61485  int check_SIG_ATOMIC:
61486      SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
61487      && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
61488      ? 1 : -1;
61489  int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
61490  int check_WCHAR:
61491      WCHAR_MIN == TYPE_MINIMUM (wchar_t)
61492      && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
61493      ? 1 : -1;
61494  /* Detect bug in mingw.  */
61495  int check_WINT:
61496      WINT_MIN == TYPE_MINIMUM (wint_t)
61497      && WINT_MAX == TYPE_MAXIMUM (wint_t)
61498      ? 1 : -1;
61499
61500  /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
61501  int check_UINT8_C:
61502        (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
61503  int check_UINT16_C:
61504        (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
61505
61506  /* Detect bugs in OpenBSD 3.9 stdint.h.  */
61507#ifdef UINT8_MAX
61508  int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
61509#endif
61510#ifdef UINT16_MAX
61511  int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
61512#endif
61513#ifdef UINT32_MAX
61514  int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
61515#endif
61516#ifdef UINT64_MAX
61517  int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
61518#endif
61519  int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
61520  int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
61521  int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
61522  int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
61523  int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
61524  int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
61525  int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
61526  int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
61527  int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
61528  int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
61529  int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
61530};
61531
61532int
61533main ()
61534{
61535
61536  ;
61537  return 0;
61538}
61539_ACEOF
61540rm -f conftest.$ac_objext
61541if { (ac_try="$ac_compile"
61542case "(($ac_try" in
61543  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61544  *) ac_try_echo=$ac_try;;
61545esac
61546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61547$as_echo "$ac_try_echo") >&5
61548  (eval "$ac_compile") 2>conftest.er1
61549  ac_status=$?
61550  grep -v '^ *+' conftest.er1 >conftest.err
61551  rm -f conftest.er1
61552  cat conftest.err >&5
61553  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61554  (exit $ac_status); } && {
61555	 test -z "$ac_c_werror_flag" ||
61556	 test ! -s conftest.err
61557       } && test -s conftest.$ac_objext; then
61558  gl_cv_header_working_stdint_h=yes
61559else
61560  $as_echo "$as_me: failed program was:" >&5
61561sed 's/^/| /' conftest.$ac_ext >&5
61562
61563
61564fi
61565
61566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61567fi
61568{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
61569$as_echo "$gl_cv_header_working_stdint_h" >&6; }
61570  fi
61571  if test "$gl_cv_header_working_stdint_h" = yes; then
61572    STDINT_H=
61573  else
61574
61575
61576for ac_header in sys/inttypes.h sys/bitypes.h
61577do
61578as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
61579if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
61580  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
61581$as_echo_n "checking for $ac_header... " >&6; }
61582if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
61583  $as_echo_n "(cached) " >&6
61584fi
61585ac_res=`eval 'as_val=${'$as_ac_Header'}
61586		 $as_echo "$as_val"'`
61587	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61588$as_echo "$ac_res" >&6; }
61589else
61590  # Is the header compilable?
61591{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
61592$as_echo_n "checking $ac_header usability... " >&6; }
61593cat >conftest.$ac_ext <<_ACEOF
61594/* confdefs.h.  */
61595_ACEOF
61596cat confdefs.h >>conftest.$ac_ext
61597cat >>conftest.$ac_ext <<_ACEOF
61598/* end confdefs.h.  */
61599$ac_includes_default
61600#include <$ac_header>
61601_ACEOF
61602rm -f conftest.$ac_objext
61603if { (ac_try="$ac_compile"
61604case "(($ac_try" in
61605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61606  *) ac_try_echo=$ac_try;;
61607esac
61608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61609$as_echo "$ac_try_echo") >&5
61610  (eval "$ac_compile") 2>conftest.er1
61611  ac_status=$?
61612  grep -v '^ *+' conftest.er1 >conftest.err
61613  rm -f conftest.er1
61614  cat conftest.err >&5
61615  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61616  (exit $ac_status); } && {
61617	 test -z "$ac_c_werror_flag" ||
61618	 test ! -s conftest.err
61619       } && test -s conftest.$ac_objext; then
61620  ac_header_compiler=yes
61621else
61622  $as_echo "$as_me: failed program was:" >&5
61623sed 's/^/| /' conftest.$ac_ext >&5
61624
61625	ac_header_compiler=no
61626fi
61627
61628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61629{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
61630$as_echo "$ac_header_compiler" >&6; }
61631
61632# Is the header present?
61633{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
61634$as_echo_n "checking $ac_header presence... " >&6; }
61635cat >conftest.$ac_ext <<_ACEOF
61636/* confdefs.h.  */
61637_ACEOF
61638cat confdefs.h >>conftest.$ac_ext
61639cat >>conftest.$ac_ext <<_ACEOF
61640/* end confdefs.h.  */
61641#include <$ac_header>
61642_ACEOF
61643if { (ac_try="$ac_cpp conftest.$ac_ext"
61644case "(($ac_try" in
61645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61646  *) ac_try_echo=$ac_try;;
61647esac
61648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61649$as_echo "$ac_try_echo") >&5
61650  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
61651  ac_status=$?
61652  grep -v '^ *+' conftest.er1 >conftest.err
61653  rm -f conftest.er1
61654  cat conftest.err >&5
61655  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61656  (exit $ac_status); } >/dev/null && {
61657	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
61658	 test ! -s conftest.err
61659       }; then
61660  ac_header_preproc=yes
61661else
61662  $as_echo "$as_me: failed program was:" >&5
61663sed 's/^/| /' conftest.$ac_ext >&5
61664
61665  ac_header_preproc=no
61666fi
61667
61668rm -f conftest.err conftest.$ac_ext
61669{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
61670$as_echo "$ac_header_preproc" >&6; }
61671
61672# So?  What about this header?
61673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
61674  yes:no: )
61675    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
61676$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
61677    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
61678$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
61679    ac_header_preproc=yes
61680    ;;
61681  no:yes:* )
61682    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
61683$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
61684    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
61685$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
61686    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
61687$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
61688    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
61689$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
61690    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
61691$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
61692    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
61693$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
61694
61695    ;;
61696esac
61697{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
61698$as_echo_n "checking for $ac_header... " >&6; }
61699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
61700  $as_echo_n "(cached) " >&6
61701else
61702  eval "$as_ac_Header=\$ac_header_preproc"
61703fi
61704ac_res=`eval 'as_val=${'$as_ac_Header'}
61705		 $as_echo "$as_val"'`
61706	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
61707$as_echo "$ac_res" >&6; }
61708
61709fi
61710as_val=`eval 'as_val=${'$as_ac_Header'}
61711		 $as_echo "$as_val"'`
61712   if test "x$as_val" = x""yes; then
61713  cat >>confdefs.h <<_ACEOF
61714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
61715_ACEOF
61716
61717fi
61718
61719done
61720
61721    if test $ac_cv_header_sys_inttypes_h = yes; then
61722      HAVE_SYS_INTTYPES_H=1
61723    else
61724      HAVE_SYS_INTTYPES_H=0
61725    fi
61726
61727    if test $ac_cv_header_sys_bitypes_h = yes; then
61728      HAVE_SYS_BITYPES_H=1
61729    else
61730      HAVE_SYS_BITYPES_H=0
61731    fi
61732
61733
61734
61735  :
61736
61737
61738
61739
61740
61741
61742
61743
61744
61745
61746
61747
61748
61749
61750  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
61751    { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
61752$as_echo_n "checking for bit size of $gltype... " >&6; }
61753if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
61754  $as_echo_n "(cached) " >&6
61755else
61756  if test "$cross_compiling" = yes; then
61757  # Depending upon the size, compute the lo and hi bounds.
61758cat >conftest.$ac_ext <<_ACEOF
61759/* confdefs.h.  */
61760_ACEOF
61761cat confdefs.h >>conftest.$ac_ext
61762cat >>conftest.$ac_ext <<_ACEOF
61763/* end confdefs.h.  */
61764
61765  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61766     included before <wchar.h>.  */
61767  #include <stddef.h>
61768  #include <signal.h>
61769  #if HAVE_WCHAR_H
61770  # include <stdio.h>
61771  # include <time.h>
61772  # include <wchar.h>
61773  #endif
61774
61775#include <limits.h>
61776int
61777main ()
61778{
61779static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
61780test_array [0] = 0
61781
61782  ;
61783  return 0;
61784}
61785_ACEOF
61786rm -f conftest.$ac_objext
61787if { (ac_try="$ac_compile"
61788case "(($ac_try" in
61789  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61790  *) ac_try_echo=$ac_try;;
61791esac
61792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61793$as_echo "$ac_try_echo") >&5
61794  (eval "$ac_compile") 2>conftest.er1
61795  ac_status=$?
61796  grep -v '^ *+' conftest.er1 >conftest.err
61797  rm -f conftest.er1
61798  cat conftest.err >&5
61799  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61800  (exit $ac_status); } && {
61801	 test -z "$ac_c_werror_flag" ||
61802	 test ! -s conftest.err
61803       } && test -s conftest.$ac_objext; then
61804  ac_lo=0 ac_mid=0
61805  while :; do
61806    cat >conftest.$ac_ext <<_ACEOF
61807/* confdefs.h.  */
61808_ACEOF
61809cat confdefs.h >>conftest.$ac_ext
61810cat >>conftest.$ac_ext <<_ACEOF
61811/* end confdefs.h.  */
61812
61813  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61814     included before <wchar.h>.  */
61815  #include <stddef.h>
61816  #include <signal.h>
61817  #if HAVE_WCHAR_H
61818  # include <stdio.h>
61819  # include <time.h>
61820  # include <wchar.h>
61821  #endif
61822
61823#include <limits.h>
61824int
61825main ()
61826{
61827static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
61828test_array [0] = 0
61829
61830  ;
61831  return 0;
61832}
61833_ACEOF
61834rm -f conftest.$ac_objext
61835if { (ac_try="$ac_compile"
61836case "(($ac_try" in
61837  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61838  *) ac_try_echo=$ac_try;;
61839esac
61840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61841$as_echo "$ac_try_echo") >&5
61842  (eval "$ac_compile") 2>conftest.er1
61843  ac_status=$?
61844  grep -v '^ *+' conftest.er1 >conftest.err
61845  rm -f conftest.er1
61846  cat conftest.err >&5
61847  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61848  (exit $ac_status); } && {
61849	 test -z "$ac_c_werror_flag" ||
61850	 test ! -s conftest.err
61851       } && test -s conftest.$ac_objext; then
61852  ac_hi=$ac_mid; break
61853else
61854  $as_echo "$as_me: failed program was:" >&5
61855sed 's/^/| /' conftest.$ac_ext >&5
61856
61857	ac_lo=`expr $ac_mid + 1`
61858			if test $ac_lo -le $ac_mid; then
61859			  ac_lo= ac_hi=
61860			  break
61861			fi
61862			ac_mid=`expr 2 '*' $ac_mid + 1`
61863fi
61864
61865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61866  done
61867else
61868  $as_echo "$as_me: failed program was:" >&5
61869sed 's/^/| /' conftest.$ac_ext >&5
61870
61871	cat >conftest.$ac_ext <<_ACEOF
61872/* confdefs.h.  */
61873_ACEOF
61874cat confdefs.h >>conftest.$ac_ext
61875cat >>conftest.$ac_ext <<_ACEOF
61876/* end confdefs.h.  */
61877
61878  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61879     included before <wchar.h>.  */
61880  #include <stddef.h>
61881  #include <signal.h>
61882  #if HAVE_WCHAR_H
61883  # include <stdio.h>
61884  # include <time.h>
61885  # include <wchar.h>
61886  #endif
61887
61888#include <limits.h>
61889int
61890main ()
61891{
61892static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
61893test_array [0] = 0
61894
61895  ;
61896  return 0;
61897}
61898_ACEOF
61899rm -f conftest.$ac_objext
61900if { (ac_try="$ac_compile"
61901case "(($ac_try" in
61902  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61903  *) ac_try_echo=$ac_try;;
61904esac
61905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61906$as_echo "$ac_try_echo") >&5
61907  (eval "$ac_compile") 2>conftest.er1
61908  ac_status=$?
61909  grep -v '^ *+' conftest.er1 >conftest.err
61910  rm -f conftest.er1
61911  cat conftest.err >&5
61912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61913  (exit $ac_status); } && {
61914	 test -z "$ac_c_werror_flag" ||
61915	 test ! -s conftest.err
61916       } && test -s conftest.$ac_objext; then
61917  ac_hi=-1 ac_mid=-1
61918  while :; do
61919    cat >conftest.$ac_ext <<_ACEOF
61920/* confdefs.h.  */
61921_ACEOF
61922cat confdefs.h >>conftest.$ac_ext
61923cat >>conftest.$ac_ext <<_ACEOF
61924/* end confdefs.h.  */
61925
61926  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
61927     included before <wchar.h>.  */
61928  #include <stddef.h>
61929  #include <signal.h>
61930  #if HAVE_WCHAR_H
61931  # include <stdio.h>
61932  # include <time.h>
61933  # include <wchar.h>
61934  #endif
61935
61936#include <limits.h>
61937int
61938main ()
61939{
61940static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
61941test_array [0] = 0
61942
61943  ;
61944  return 0;
61945}
61946_ACEOF
61947rm -f conftest.$ac_objext
61948if { (ac_try="$ac_compile"
61949case "(($ac_try" in
61950  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
61951  *) ac_try_echo=$ac_try;;
61952esac
61953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
61954$as_echo "$ac_try_echo") >&5
61955  (eval "$ac_compile") 2>conftest.er1
61956  ac_status=$?
61957  grep -v '^ *+' conftest.er1 >conftest.err
61958  rm -f conftest.er1
61959  cat conftest.err >&5
61960  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
61961  (exit $ac_status); } && {
61962	 test -z "$ac_c_werror_flag" ||
61963	 test ! -s conftest.err
61964       } && test -s conftest.$ac_objext; then
61965  ac_lo=$ac_mid; break
61966else
61967  $as_echo "$as_me: failed program was:" >&5
61968sed 's/^/| /' conftest.$ac_ext >&5
61969
61970	ac_hi=`expr '(' $ac_mid ')' - 1`
61971			if test $ac_mid -le $ac_hi; then
61972			  ac_lo= ac_hi=
61973			  break
61974			fi
61975			ac_mid=`expr 2 '*' $ac_mid`
61976fi
61977
61978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61979  done
61980else
61981  $as_echo "$as_me: failed program was:" >&5
61982sed 's/^/| /' conftest.$ac_ext >&5
61983
61984	ac_lo= ac_hi=
61985fi
61986
61987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61988fi
61989
61990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
61991# Binary search between lo and hi bounds.
61992while test "x$ac_lo" != "x$ac_hi"; do
61993  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
61994  cat >conftest.$ac_ext <<_ACEOF
61995/* confdefs.h.  */
61996_ACEOF
61997cat confdefs.h >>conftest.$ac_ext
61998cat >>conftest.$ac_ext <<_ACEOF
61999/* end confdefs.h.  */
62000
62001  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62002     included before <wchar.h>.  */
62003  #include <stddef.h>
62004  #include <signal.h>
62005  #if HAVE_WCHAR_H
62006  # include <stdio.h>
62007  # include <time.h>
62008  # include <wchar.h>
62009  #endif
62010
62011#include <limits.h>
62012int
62013main ()
62014{
62015static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
62016test_array [0] = 0
62017
62018  ;
62019  return 0;
62020}
62021_ACEOF
62022rm -f conftest.$ac_objext
62023if { (ac_try="$ac_compile"
62024case "(($ac_try" in
62025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62026  *) ac_try_echo=$ac_try;;
62027esac
62028eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62029$as_echo "$ac_try_echo") >&5
62030  (eval "$ac_compile") 2>conftest.er1
62031  ac_status=$?
62032  grep -v '^ *+' conftest.er1 >conftest.err
62033  rm -f conftest.er1
62034  cat conftest.err >&5
62035  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62036  (exit $ac_status); } && {
62037	 test -z "$ac_c_werror_flag" ||
62038	 test ! -s conftest.err
62039       } && test -s conftest.$ac_objext; then
62040  ac_hi=$ac_mid
62041else
62042  $as_echo "$as_me: failed program was:" >&5
62043sed 's/^/| /' conftest.$ac_ext >&5
62044
62045	ac_lo=`expr '(' $ac_mid ')' + 1`
62046fi
62047
62048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62049done
62050case $ac_lo in
62051?*) result=$ac_lo;;
62052'') result=unknown ;;
62053esac
62054else
62055  cat >conftest.$ac_ext <<_ACEOF
62056/* confdefs.h.  */
62057_ACEOF
62058cat confdefs.h >>conftest.$ac_ext
62059cat >>conftest.$ac_ext <<_ACEOF
62060/* end confdefs.h.  */
62061
62062  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62063     included before <wchar.h>.  */
62064  #include <stddef.h>
62065  #include <signal.h>
62066  #if HAVE_WCHAR_H
62067  # include <stdio.h>
62068  # include <time.h>
62069  # include <wchar.h>
62070  #endif
62071
62072#include <limits.h>
62073static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
62074static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
62075#include <stdio.h>
62076#include <stdlib.h>
62077int
62078main ()
62079{
62080
62081  FILE *f = fopen ("conftest.val", "w");
62082  if (! f)
62083    return 1;
62084  if ((sizeof ($gltype) * CHAR_BIT) < 0)
62085    {
62086      long int i = longval ();
62087      if (i != (sizeof ($gltype) * CHAR_BIT))
62088	return 1;
62089      fprintf (f, "%ld", i);
62090    }
62091  else
62092    {
62093      unsigned long int i = ulongval ();
62094      if (i != (sizeof ($gltype) * CHAR_BIT))
62095	return 1;
62096      fprintf (f, "%lu", i);
62097    }
62098  /* Do not output a trailing newline, as this causes \r\n confusion
62099     on some platforms.  */
62100  return ferror (f) || fclose (f) != 0;
62101
62102  ;
62103  return 0;
62104}
62105_ACEOF
62106rm -f conftest$ac_exeext
62107if { (ac_try="$ac_link"
62108case "(($ac_try" in
62109  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62110  *) ac_try_echo=$ac_try;;
62111esac
62112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62113$as_echo "$ac_try_echo") >&5
62114  (eval "$ac_link") 2>&5
62115  ac_status=$?
62116  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62117  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62118  { (case "(($ac_try" in
62119  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62120  *) ac_try_echo=$ac_try;;
62121esac
62122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62123$as_echo "$ac_try_echo") >&5
62124  (eval "$ac_try") 2>&5
62125  ac_status=$?
62126  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62127  (exit $ac_status); }; }; then
62128  result=`cat conftest.val`
62129else
62130  $as_echo "$as_me: program exited with status $ac_status" >&5
62131$as_echo "$as_me: failed program was:" >&5
62132sed 's/^/| /' conftest.$ac_ext >&5
62133
62134( exit $ac_status )
62135result=unknown
62136fi
62137rm -rf conftest.dSYM
62138rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62139fi
62140rm -f conftest.val
62141       eval gl_cv_bitsizeof_${gltype}=\$result
62142
62143fi
62144ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
62145		 $as_echo "$as_val"'`
62146	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62147$as_echo "$ac_res" >&6; }
62148    eval result=\$gl_cv_bitsizeof_${gltype}
62149    if test $result = unknown; then
62150                                                result=0
62151    fi
62152    GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
62153    cat >>confdefs.h <<_ACEOF
62154#define BITSIZEOF_${GLTYPE} $result
62155_ACEOF
62156
62157    eval BITSIZEOF_${GLTYPE}=\$result
62158  done
62159
62160
62161
62162
62163
62164
62165
62166  for gltype in sig_atomic_t wchar_t wint_t ; do
62167    { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
62168$as_echo_n "checking whether $gltype is signed... " >&6; }
62169if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
62170  $as_echo_n "(cached) " >&6
62171else
62172  cat >conftest.$ac_ext <<_ACEOF
62173/* confdefs.h.  */
62174_ACEOF
62175cat confdefs.h >>conftest.$ac_ext
62176cat >>conftest.$ac_ext <<_ACEOF
62177/* end confdefs.h.  */
62178
62179  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62180     included before <wchar.h>.  */
62181  #include <stddef.h>
62182  #include <signal.h>
62183  #if HAVE_WCHAR_H
62184  # include <stdio.h>
62185  # include <time.h>
62186  # include <wchar.h>
62187  #endif
62188
62189            int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
62190int
62191main ()
62192{
62193
62194  ;
62195  return 0;
62196}
62197_ACEOF
62198rm -f conftest.$ac_objext
62199if { (ac_try="$ac_compile"
62200case "(($ac_try" in
62201  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62202  *) ac_try_echo=$ac_try;;
62203esac
62204eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62205$as_echo "$ac_try_echo") >&5
62206  (eval "$ac_compile") 2>conftest.er1
62207  ac_status=$?
62208  grep -v '^ *+' conftest.er1 >conftest.err
62209  rm -f conftest.er1
62210  cat conftest.err >&5
62211  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62212  (exit $ac_status); } && {
62213	 test -z "$ac_c_werror_flag" ||
62214	 test ! -s conftest.err
62215       } && test -s conftest.$ac_objext; then
62216  result=yes
62217else
62218  $as_echo "$as_me: failed program was:" >&5
62219sed 's/^/| /' conftest.$ac_ext >&5
62220
62221	result=no
62222fi
62223
62224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62225       eval gl_cv_type_${gltype}_signed=\$result
62226
62227fi
62228ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
62229		 $as_echo "$as_val"'`
62230	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62231$as_echo "$ac_res" >&6; }
62232    eval result=\$gl_cv_type_${gltype}_signed
62233    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
62234    if test "$result" = yes; then
62235      cat >>confdefs.h <<_ACEOF
62236#define HAVE_SIGNED_${GLTYPE} 1
62237_ACEOF
62238
62239      eval HAVE_SIGNED_${GLTYPE}=1
62240    else
62241      eval HAVE_SIGNED_${GLTYPE}=0
62242    fi
62243  done
62244
62245
62246  gl_cv_type_ptrdiff_t_signed=yes
62247  gl_cv_type_size_t_signed=no
62248
62249
62250
62251
62252
62253
62254
62255  for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
62256    { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
62257$as_echo_n "checking for $gltype integer literal suffix... " >&6; }
62258if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
62259  $as_echo_n "(cached) " >&6
62260else
62261  eval gl_cv_type_${gltype}_suffix=no
62262       eval result=\$gl_cv_type_${gltype}_signed
62263       if test "$result" = yes; then
62264         glsufu=
62265       else
62266         glsufu=u
62267       fi
62268       for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
62269         case $glsuf in
62270           '')  gltype1='int';;
62271           l)	gltype1='long int';;
62272           ll)	gltype1='long long int';;
62273           i64)	gltype1='__int64';;
62274           u)	gltype1='unsigned int';;
62275           ul)	gltype1='unsigned long int';;
62276           ull)	gltype1='unsigned long long int';;
62277           ui64)gltype1='unsigned __int64';;
62278         esac
62279         cat >conftest.$ac_ext <<_ACEOF
62280/* confdefs.h.  */
62281_ACEOF
62282cat confdefs.h >>conftest.$ac_ext
62283cat >>conftest.$ac_ext <<_ACEOF
62284/* end confdefs.h.  */
62285
62286  /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
62287     included before <wchar.h>.  */
62288  #include <stddef.h>
62289  #include <signal.h>
62290  #if HAVE_WCHAR_H
62291  # include <stdio.h>
62292  # include <time.h>
62293  # include <wchar.h>
62294  #endif
62295
62296              extern $gltype foo;
62297              extern $gltype1 foo;
62298int
62299main ()
62300{
62301
62302  ;
62303  return 0;
62304}
62305_ACEOF
62306rm -f conftest.$ac_objext
62307if { (ac_try="$ac_compile"
62308case "(($ac_try" in
62309  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62310  *) ac_try_echo=$ac_try;;
62311esac
62312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62313$as_echo "$ac_try_echo") >&5
62314  (eval "$ac_compile") 2>conftest.er1
62315  ac_status=$?
62316  grep -v '^ *+' conftest.er1 >conftest.err
62317  rm -f conftest.er1
62318  cat conftest.err >&5
62319  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62320  (exit $ac_status); } && {
62321	 test -z "$ac_c_werror_flag" ||
62322	 test ! -s conftest.err
62323       } && test -s conftest.$ac_objext; then
62324  eval gl_cv_type_${gltype}_suffix=\$glsuf
62325else
62326  $as_echo "$as_me: failed program was:" >&5
62327sed 's/^/| /' conftest.$ac_ext >&5
62328
62329
62330fi
62331
62332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
62333         eval result=\$gl_cv_type_${gltype}_suffix
62334         test "$result" != no && break
62335       done
62336fi
62337ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
62338		 $as_echo "$as_val"'`
62339	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62340$as_echo "$ac_res" >&6; }
62341    GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
62342    eval result=\$gl_cv_type_${gltype}_suffix
62343    test "$result" = no && result=
62344    eval ${GLTYPE}_SUFFIX=\$result
62345    cat >>confdefs.h <<_ACEOF
62346#define ${GLTYPE}_SUFFIX $result
62347_ACEOF
62348
62349  done
62350
62351
62352
62353    STDINT_H=stdint.h
62354  fi
62355
62356
62357
62358
62359
62360
62361
62362  :
62363
62364
62365
62366
62367
62368
62369
62370     if test $gl_cv_have_include_next = yes; then
62371       gl_cv_next_stdio_h='<'stdio.h'>'
62372     else
62373       { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
62374$as_echo_n "checking absolute name of <stdio.h>... " >&6; }
62375if test "${gl_cv_next_stdio_h+set}" = set; then
62376  $as_echo_n "(cached) " >&6
62377else
62378
62379	  if test $ac_cv_header_stdio_h = yes; then
62380	    cat >conftest.$ac_ext <<_ACEOF
62381/* confdefs.h.  */
62382_ACEOF
62383cat confdefs.h >>conftest.$ac_ext
62384cat >>conftest.$ac_ext <<_ACEOF
62385/* end confdefs.h.  */
62386#include <stdio.h>
62387
62388_ACEOF
62389	    	    	    	    gl_cv_next_stdio_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62390	       sed -n '\#/stdio.h#{
62391		 s#.*"\(.*/stdio.h\)".*#\1#
62392		 s#^/[^/]#//&#
62393		 p
62394		 q
62395	       }'`'"'
62396	  else
62397	    gl_cv_next_stdio_h='<'stdio.h'>'
62398	  fi
62399
62400fi
62401{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
62402$as_echo "$gl_cv_next_stdio_h" >&6; }
62403     fi
62404     NEXT_STDIO_H=$gl_cv_next_stdio_h
62405
62406
62407
62408
62409
62410
62411
62412
62413
62414  :
62415
62416
62417
62418
62419
62420
62421
62422     if test $gl_cv_have_include_next = yes; then
62423       gl_cv_next_stdlib_h='<'stdlib.h'>'
62424     else
62425       { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
62426$as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
62427if test "${gl_cv_next_stdlib_h+set}" = set; then
62428  $as_echo_n "(cached) " >&6
62429else
62430
62431	  if test $ac_cv_header_stdlib_h = yes; then
62432	    cat >conftest.$ac_ext <<_ACEOF
62433/* confdefs.h.  */
62434_ACEOF
62435cat confdefs.h >>conftest.$ac_ext
62436cat >>conftest.$ac_ext <<_ACEOF
62437/* end confdefs.h.  */
62438#include <stdlib.h>
62439
62440_ACEOF
62441	    	    	    	    gl_cv_next_stdlib_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62442	       sed -n '\#/stdlib.h#{
62443		 s#.*"\(.*/stdlib.h\)".*#\1#
62444		 s#^/[^/]#//&#
62445		 p
62446		 q
62447	       }'`'"'
62448	  else
62449	    gl_cv_next_stdlib_h='<'stdlib.h'>'
62450	  fi
62451
62452fi
62453{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
62454$as_echo "$gl_cv_next_stdlib_h" >&6; }
62455     fi
62456     NEXT_STDLIB_H=$gl_cv_next_stdlib_h
62457
62458
62459
62460
62461
62462
62463
62464
62465
62466
62467
62468
62469
62470
62471
62472
62473
62474
62475for ac_func in stpcpy
62476do
62477as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62478{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62479$as_echo_n "checking for $ac_func... " >&6; }
62480if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62481  $as_echo_n "(cached) " >&6
62482else
62483  cat >conftest.$ac_ext <<_ACEOF
62484/* confdefs.h.  */
62485_ACEOF
62486cat confdefs.h >>conftest.$ac_ext
62487cat >>conftest.$ac_ext <<_ACEOF
62488/* end confdefs.h.  */
62489/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62490   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62491#define $ac_func innocuous_$ac_func
62492
62493/* System header to define __stub macros and hopefully few prototypes,
62494    which can conflict with char $ac_func (); below.
62495    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62496    <limits.h> exists even on freestanding compilers.  */
62497
62498#ifdef __STDC__
62499# include <limits.h>
62500#else
62501# include <assert.h>
62502#endif
62503
62504#undef $ac_func
62505
62506/* Override any GCC internal prototype to avoid an error.
62507   Use char because int might match the return type of a GCC
62508   builtin and then its argument prototype would still apply.  */
62509#ifdef __cplusplus
62510extern "C"
62511#endif
62512char $ac_func ();
62513/* The GNU C library defines this for functions which it implements
62514    to always fail with ENOSYS.  Some functions are actually named
62515    something starting with __ and the normal name is an alias.  */
62516#if defined __stub_$ac_func || defined __stub___$ac_func
62517choke me
62518#endif
62519
62520int
62521main ()
62522{
62523return $ac_func ();
62524  ;
62525  return 0;
62526}
62527_ACEOF
62528rm -f conftest.$ac_objext conftest$ac_exeext
62529if { (ac_try="$ac_link"
62530case "(($ac_try" in
62531  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62532  *) ac_try_echo=$ac_try;;
62533esac
62534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62535$as_echo "$ac_try_echo") >&5
62536  (eval "$ac_link") 2>conftest.er1
62537  ac_status=$?
62538  grep -v '^ *+' conftest.er1 >conftest.err
62539  rm -f conftest.er1
62540  cat conftest.err >&5
62541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62542  (exit $ac_status); } && {
62543	 test -z "$ac_c_werror_flag" ||
62544	 test ! -s conftest.err
62545       } && test -s conftest$ac_exeext && {
62546	 test "$cross_compiling" = yes ||
62547	 $as_test_x conftest$ac_exeext
62548       }; then
62549  eval "$as_ac_var=yes"
62550else
62551  $as_echo "$as_me: failed program was:" >&5
62552sed 's/^/| /' conftest.$ac_ext >&5
62553
62554	eval "$as_ac_var=no"
62555fi
62556
62557rm -rf conftest.dSYM
62558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62559      conftest$ac_exeext conftest.$ac_ext
62560fi
62561ac_res=`eval 'as_val=${'$as_ac_var'}
62562		 $as_echo "$as_val"'`
62563	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62564$as_echo "$ac_res" >&6; }
62565as_val=`eval 'as_val=${'$as_ac_var'}
62566		 $as_echo "$as_val"'`
62567   if test "x$as_val" = x""yes; then
62568  cat >>confdefs.h <<_ACEOF
62569#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62570_ACEOF
62571
62572else
62573
62574    gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext"
62575
62576fi
62577done
62578
62579
62580  if test $ac_cv_func_stpcpy = no; then
62581    HAVE_STPCPY=0
62582
62583  :
62584
62585  fi
62586
62587
62588
62589  GNULIB_STPCPY=1
62590
62591
62592
62593
62594
62595
62596
62597
62598
62599
62600
62601for ac_func in strdup
62602do
62603as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
62604{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
62605$as_echo_n "checking for $ac_func... " >&6; }
62606if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
62607  $as_echo_n "(cached) " >&6
62608else
62609  cat >conftest.$ac_ext <<_ACEOF
62610/* confdefs.h.  */
62611_ACEOF
62612cat confdefs.h >>conftest.$ac_ext
62613cat >>conftest.$ac_ext <<_ACEOF
62614/* end confdefs.h.  */
62615/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
62616   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
62617#define $ac_func innocuous_$ac_func
62618
62619/* System header to define __stub macros and hopefully few prototypes,
62620    which can conflict with char $ac_func (); below.
62621    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
62622    <limits.h> exists even on freestanding compilers.  */
62623
62624#ifdef __STDC__
62625# include <limits.h>
62626#else
62627# include <assert.h>
62628#endif
62629
62630#undef $ac_func
62631
62632/* Override any GCC internal prototype to avoid an error.
62633   Use char because int might match the return type of a GCC
62634   builtin and then its argument prototype would still apply.  */
62635#ifdef __cplusplus
62636extern "C"
62637#endif
62638char $ac_func ();
62639/* The GNU C library defines this for functions which it implements
62640    to always fail with ENOSYS.  Some functions are actually named
62641    something starting with __ and the normal name is an alias.  */
62642#if defined __stub_$ac_func || defined __stub___$ac_func
62643choke me
62644#endif
62645
62646int
62647main ()
62648{
62649return $ac_func ();
62650  ;
62651  return 0;
62652}
62653_ACEOF
62654rm -f conftest.$ac_objext conftest$ac_exeext
62655if { (ac_try="$ac_link"
62656case "(($ac_try" in
62657  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62658  *) ac_try_echo=$ac_try;;
62659esac
62660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62661$as_echo "$ac_try_echo") >&5
62662  (eval "$ac_link") 2>conftest.er1
62663  ac_status=$?
62664  grep -v '^ *+' conftest.er1 >conftest.err
62665  rm -f conftest.er1
62666  cat conftest.err >&5
62667  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62668  (exit $ac_status); } && {
62669	 test -z "$ac_c_werror_flag" ||
62670	 test ! -s conftest.err
62671       } && test -s conftest$ac_exeext && {
62672	 test "$cross_compiling" = yes ||
62673	 $as_test_x conftest$ac_exeext
62674       }; then
62675  eval "$as_ac_var=yes"
62676else
62677  $as_echo "$as_me: failed program was:" >&5
62678sed 's/^/| /' conftest.$ac_ext >&5
62679
62680	eval "$as_ac_var=no"
62681fi
62682
62683rm -rf conftest.dSYM
62684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
62685      conftest$ac_exeext conftest.$ac_ext
62686fi
62687ac_res=`eval 'as_val=${'$as_ac_var'}
62688		 $as_echo "$as_val"'`
62689	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
62690$as_echo "$ac_res" >&6; }
62691as_val=`eval 'as_val=${'$as_ac_var'}
62692		 $as_echo "$as_val"'`
62693   if test "x$as_val" = x""yes; then
62694  cat >>confdefs.h <<_ACEOF
62695#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
62696_ACEOF
62697
62698else
62699
62700    gtpo_LIBOBJS="$gtpo_LIBOBJS $ac_func.$ac_objext"
62701
62702fi
62703done
62704
62705
62706
62707  :
62708
62709
62710
62711
62712
62713  if test $ac_cv_have_decl_strdup = no; then
62714    HAVE_DECL_STRDUP=0
62715  fi
62716  :
62717
62718
62719
62720  GNULIB_STRDUP=1
62721
62722
62723
62724  if test $gl_cv_func_working_strerror = no; then
62725
62726
62727
62728
62729
62730
62731
62732  gtpo_LIBOBJS="$gtpo_LIBOBJS strerror.$ac_objext"
62733
62734
62735cat >>confdefs.h <<_ACEOF
62736#define REPLACE_STRERROR $REPLACE_STRERROR
62737_ACEOF
62738
62739  fi
62740
62741
62742
62743  GNULIB_STRERROR=1
62744
62745  if test $gl_cond_libtool = false; then
62746    gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
62747    gl_libdeps="$gl_libdeps $LIBICONV"
62748  fi
62749
62750
62751
62752
62753
62754
62755
62756
62757  :
62758
62759
62760
62761
62762
62763  if test $ac_cv_have_decl_strnlen = no; then
62764    HAVE_DECL_STRNLEN=0
62765  fi
62766
62767  { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
62768$as_echo_n "checking for working strnlen... " >&6; }
62769if test "${ac_cv_func_strnlen_working+set}" = set; then
62770  $as_echo_n "(cached) " >&6
62771else
62772  if test "$cross_compiling" = yes; then
62773  ac_cv_func_strnlen_working=no
62774else
62775  cat >conftest.$ac_ext <<_ACEOF
62776/* confdefs.h.  */
62777_ACEOF
62778cat confdefs.h >>conftest.$ac_ext
62779cat >>conftest.$ac_ext <<_ACEOF
62780/* end confdefs.h.  */
62781$ac_includes_default
62782int
62783main ()
62784{
62785
62786#define S "foobar"
62787#define S_LEN (sizeof S - 1)
62788
62789  /* At least one implementation is buggy: that of AIX 4.3 would
62790     give strnlen (S, 1) == 3.  */
62791
62792  int i;
62793  for (i = 0; i < S_LEN + 1; ++i)
62794    {
62795      int expected = i <= S_LEN ? i : S_LEN;
62796      if (strnlen (S, i) != expected)
62797	return 1;
62798    }
62799  return 0;
62800
62801  ;
62802  return 0;
62803}
62804_ACEOF
62805rm -f conftest$ac_exeext
62806if { (ac_try="$ac_link"
62807case "(($ac_try" in
62808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62809  *) ac_try_echo=$ac_try;;
62810esac
62811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62812$as_echo "$ac_try_echo") >&5
62813  (eval "$ac_link") 2>&5
62814  ac_status=$?
62815  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62816  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
62817  { (case "(($ac_try" in
62818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
62819  *) ac_try_echo=$ac_try;;
62820esac
62821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
62822$as_echo "$ac_try_echo") >&5
62823  (eval "$ac_try") 2>&5
62824  ac_status=$?
62825  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
62826  (exit $ac_status); }; }; then
62827  ac_cv_func_strnlen_working=yes
62828else
62829  $as_echo "$as_me: program exited with status $ac_status" >&5
62830$as_echo "$as_me: failed program was:" >&5
62831sed 's/^/| /' conftest.$ac_ext >&5
62832
62833( exit $ac_status )
62834ac_cv_func_strnlen_working=no
62835fi
62836rm -rf conftest.dSYM
62837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
62838fi
62839
62840
62841fi
62842{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
62843$as_echo "$ac_cv_func_strnlen_working" >&6; }
62844test $ac_cv_func_strnlen_working = no &&
62845
62846
62847
62848
62849
62850
62851  gtpo_LIBOBJS="$gtpo_LIBOBJS strnlen.$ac_objext"
62852
62853
62854  if test $ac_cv_func_strnlen_working = no; then
62855    # This is necessary because automake-1.6.1 doesn't understand
62856    # that the above use of AC_FUNC_STRNLEN means we may have to use
62857    # lib/strnlen.c.
62858    #AC_LIBOBJ(strnlen)
62859
62860cat >>confdefs.h <<\_ACEOF
62861#define strnlen rpl_strnlen
62862_ACEOF
62863
62864    :
62865  fi
62866
62867
62868
62869  GNULIB_STRNLEN=1
62870
62871
62872
62873
62874
62875
62876
62877
62878
62879
62880  :
62881
62882
62883
62884
62885
62886
62887
62888     if test $gl_cv_have_include_next = yes; then
62889       gl_cv_next_unistd_h='<'unistd.h'>'
62890     else
62891       { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
62892$as_echo_n "checking absolute name of <unistd.h>... " >&6; }
62893if test "${gl_cv_next_unistd_h+set}" = set; then
62894  $as_echo_n "(cached) " >&6
62895else
62896
62897	  if test $ac_cv_header_unistd_h = yes; then
62898	    cat >conftest.$ac_ext <<_ACEOF
62899/* confdefs.h.  */
62900_ACEOF
62901cat confdefs.h >>conftest.$ac_ext
62902cat >>conftest.$ac_ext <<_ACEOF
62903/* end confdefs.h.  */
62904#include <unistd.h>
62905
62906_ACEOF
62907	    	    	    	    gl_cv_next_unistd_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
62908	       sed -n '\#/unistd.h#{
62909		 s#.*"\(.*/unistd.h\)".*#\1#
62910		 s#^/[^/]#//&#
62911		 p
62912		 q
62913	       }'`'"'
62914	  else
62915	    gl_cv_next_unistd_h='<'unistd.h'>'
62916	  fi
62917
62918fi
62919{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
62920$as_echo "$gl_cv_next_unistd_h" >&6; }
62921     fi
62922     NEXT_UNISTD_H=$gl_cv_next_unistd_h
62923
62924
62925
62926
62927
62928  :
62929
62930
62931
62932
62933
62934  if test $ac_cv_header_unistd_h = yes; then
62935    HAVE_UNISTD_H=1
62936  else
62937    HAVE_UNISTD_H=0
62938  fi
62939
62940
62941
62942
62943cat >>confdefs.h <<\_ACEOF
62944#define GNULIB_UNISTR_U16_MBTOUC 1
62945_ACEOF
62946
62947
62948
62949
62950cat >>confdefs.h <<\_ACEOF
62951#define GNULIB_UNISTR_U16_MBTOUC_UNSAFE 1
62952_ACEOF
62953
62954
62955
62956
62957cat >>confdefs.h <<\_ACEOF
62958#define GNULIB_UNISTR_U8_MBTOUC 1
62959_ACEOF
62960
62961
62962
62963
62964cat >>confdefs.h <<\_ACEOF
62965#define GNULIB_UNISTR_U8_MBTOUC_UNSAFE 1
62966_ACEOF
62967
62968
62969
62970
62971cat >>confdefs.h <<\_ACEOF
62972#define GNULIB_UNISTR_U8_UCTOMB 1
62973_ACEOF
62974
62975
62976
62977
62978cat >>confdefs.h <<\_ACEOF
62979#define USE_UNLOCKED_IO 1
62980_ACEOF
62981
62982
62983
62984
62985
62986  :
62987
62988
62989
62990
62991
62992
62993  :
62994
62995
62996
62997
62998
62999
63000  :
63001
63002
63003
63004
63005
63006
63007  :
63008
63009
63010
63011
63012
63013
63014  :
63015
63016
63017
63018
63019
63020
63021  :
63022
63023
63024
63025
63026
63027
63028  :
63029
63030
63031
63032
63033
63034
63035  :
63036
63037
63038
63039
63040
63041
63042  :
63043
63044
63045
63046
63047
63048
63049  :
63050
63051
63052
63053
63054
63055
63056  :
63057
63058
63059
63060
63061
63062
63063  :
63064
63065
63066
63067
63068
63069
63070  :
63071
63072
63073
63074
63075
63076
63077
63078
63079for ac_func in vasprintf
63080do
63081as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
63082{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
63083$as_echo_n "checking for $ac_func... " >&6; }
63084if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
63085  $as_echo_n "(cached) " >&6
63086else
63087  cat >conftest.$ac_ext <<_ACEOF
63088/* confdefs.h.  */
63089_ACEOF
63090cat confdefs.h >>conftest.$ac_ext
63091cat >>conftest.$ac_ext <<_ACEOF
63092/* end confdefs.h.  */
63093/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
63094   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
63095#define $ac_func innocuous_$ac_func
63096
63097/* System header to define __stub macros and hopefully few prototypes,
63098    which can conflict with char $ac_func (); below.
63099    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
63100    <limits.h> exists even on freestanding compilers.  */
63101
63102#ifdef __STDC__
63103# include <limits.h>
63104#else
63105# include <assert.h>
63106#endif
63107
63108#undef $ac_func
63109
63110/* Override any GCC internal prototype to avoid an error.
63111   Use char because int might match the return type of a GCC
63112   builtin and then its argument prototype would still apply.  */
63113#ifdef __cplusplus
63114extern "C"
63115#endif
63116char $ac_func ();
63117/* The GNU C library defines this for functions which it implements
63118    to always fail with ENOSYS.  Some functions are actually named
63119    something starting with __ and the normal name is an alias.  */
63120#if defined __stub_$ac_func || defined __stub___$ac_func
63121choke me
63122#endif
63123
63124int
63125main ()
63126{
63127return $ac_func ();
63128  ;
63129  return 0;
63130}
63131_ACEOF
63132rm -f conftest.$ac_objext conftest$ac_exeext
63133if { (ac_try="$ac_link"
63134case "(($ac_try" in
63135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63136  *) ac_try_echo=$ac_try;;
63137esac
63138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63139$as_echo "$ac_try_echo") >&5
63140  (eval "$ac_link") 2>conftest.er1
63141  ac_status=$?
63142  grep -v '^ *+' conftest.er1 >conftest.err
63143  rm -f conftest.er1
63144  cat conftest.err >&5
63145  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63146  (exit $ac_status); } && {
63147	 test -z "$ac_c_werror_flag" ||
63148	 test ! -s conftest.err
63149       } && test -s conftest$ac_exeext && {
63150	 test "$cross_compiling" = yes ||
63151	 $as_test_x conftest$ac_exeext
63152       }; then
63153  eval "$as_ac_var=yes"
63154else
63155  $as_echo "$as_me: failed program was:" >&5
63156sed 's/^/| /' conftest.$ac_ext >&5
63157
63158	eval "$as_ac_var=no"
63159fi
63160
63161rm -rf conftest.dSYM
63162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
63163      conftest$ac_exeext conftest.$ac_ext
63164fi
63165ac_res=`eval 'as_val=${'$as_ac_var'}
63166		 $as_echo "$as_val"'`
63167	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63168$as_echo "$ac_res" >&6; }
63169as_val=`eval 'as_val=${'$as_ac_var'}
63170		 $as_echo "$as_val"'`
63171   if test "x$as_val" = x""yes; then
63172  cat >>confdefs.h <<_ACEOF
63173#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
63174_ACEOF
63175
63176fi
63177done
63178
63179  if test $ac_cv_func_vasprintf = no; then
63180
63181
63182
63183
63184
63185
63186
63187
63188  gtpo_LIBOBJS="$gtpo_LIBOBJS vasprintf.$ac_objext"
63189
63190
63191  if test $ac_cv_func_vasprintf = yes; then
63192    REPLACE_VASPRINTF=1
63193  else
63194    HAVE_VASPRINTF=0
63195  fi
63196
63197
63198
63199
63200  fi
63201
63202
63203
63204  GNULIB_VASPRINTF=1
63205
63206
63207
63208  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
63209
63210
63211
63212  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
63213
63214
63215
63216  { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
63217$as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
63218if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
63219  $as_echo_n "(cached) " >&6
63220else
63221  cat >conftest.$ac_ext <<_ACEOF
63222#include <wchar.h>
63223wchar_t w;
63224_ACEOF
63225rm -f conftest.$ac_objext
63226if { (ac_try="$ac_compile"
63227case "(($ac_try" in
63228  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63229  *) ac_try_echo=$ac_try;;
63230esac
63231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63232$as_echo "$ac_try_echo") >&5
63233  (eval "$ac_compile") 2>conftest.er1
63234  ac_status=$?
63235  grep -v '^ *+' conftest.er1 >conftest.err
63236  rm -f conftest.er1
63237  cat conftest.err >&5
63238  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63239  (exit $ac_status); } && {
63240	 test -z "$ac_c_werror_flag" ||
63241	 test ! -s conftest.err
63242       } && test -s conftest.$ac_objext; then
63243  gl_cv_header_wchar_h_standalone=yes
63244else
63245  $as_echo "$as_me: failed program was:" >&5
63246sed 's/^/| /' conftest.$ac_ext >&5
63247
63248	gl_cv_header_wchar_h_standalone=no
63249fi
63250
63251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63252fi
63253{ $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
63254$as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
63255  if test $gl_cv_header_wchar_h_standalone != yes; then
63256    WCHAR_H=wchar.h
63257  fi
63258
63259
63260  :
63261
63262
63263
63264
63265
63266  if test $ac_cv_header_wchar_h = yes; then
63267    HAVE_WCHAR_H=1
63268  else
63269    HAVE_WCHAR_H=0
63270  fi
63271
63272
63273
63274
63275  :
63276
63277
63278
63279
63280
63281
63282
63283     if test $gl_cv_have_include_next = yes; then
63284       gl_cv_next_wchar_h='<'wchar.h'>'
63285     else
63286       { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
63287$as_echo_n "checking absolute name of <wchar.h>... " >&6; }
63288if test "${gl_cv_next_wchar_h+set}" = set; then
63289  $as_echo_n "(cached) " >&6
63290else
63291
63292	  if test $ac_cv_header_wchar_h = yes; then
63293	    cat >conftest.$ac_ext <<_ACEOF
63294/* confdefs.h.  */
63295_ACEOF
63296cat confdefs.h >>conftest.$ac_ext
63297cat >>conftest.$ac_ext <<_ACEOF
63298/* end confdefs.h.  */
63299#include <wchar.h>
63300
63301_ACEOF
63302	    	    	    	    gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63303	       sed -n '\#/wchar.h#{
63304		 s#.*"\(.*/wchar.h\)".*#\1#
63305		 s#^/[^/]#//&#
63306		 p
63307		 q
63308	       }'`'"'
63309	  else
63310	    gl_cv_next_wchar_h='<'wchar.h'>'
63311	  fi
63312
63313fi
63314{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
63315$as_echo "$gl_cv_next_wchar_h" >&6; }
63316     fi
63317     NEXT_WCHAR_H=$gl_cv_next_wchar_h
63318
63319
63320
63321
63322
63323
63324  :
63325
63326
63327
63328
63329
63330  if test $ac_cv_func_iswcntrl = yes; then
63331    HAVE_ISWCNTRL=1
63332  else
63333    HAVE_ISWCNTRL=0
63334  fi
63335
63336
63337  :
63338
63339
63340
63341
63342
63343
63344
63345
63346  if test $gt_cv_c_wint_t = yes; then
63347    HAVE_WINT_T=1
63348  else
63349    HAVE_WINT_T=0
63350  fi
63351
63352
63353  WCTYPE_H=wctype.h
63354  if test $ac_cv_header_wctype_h = yes; then
63355    if test $ac_cv_func_iswcntrl = yes; then
63356      WCTYPE_H=
63357    fi
63358
63359
63360
63361  :
63362
63363
63364
63365
63366
63367
63368
63369     if test $gl_cv_have_include_next = yes; then
63370       gl_cv_next_wctype_h='<'wctype.h'>'
63371     else
63372       { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
63373$as_echo_n "checking absolute name of <wctype.h>... " >&6; }
63374if test "${gl_cv_next_wctype_h+set}" = set; then
63375  $as_echo_n "(cached) " >&6
63376else
63377
63378	  if test $ac_cv_header_wctype_h = yes; then
63379	    cat >conftest.$ac_ext <<_ACEOF
63380/* confdefs.h.  */
63381_ACEOF
63382cat confdefs.h >>conftest.$ac_ext
63383cat >>conftest.$ac_ext <<_ACEOF
63384/* end confdefs.h.  */
63385#include <wctype.h>
63386
63387_ACEOF
63388	    	    	    	    gl_cv_next_wctype_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
63389	       sed -n '\#/wctype.h#{
63390		 s#.*"\(.*/wctype.h\)".*#\1#
63391		 s#^/[^/]#//&#
63392		 p
63393		 q
63394	       }'`'"'
63395	  else
63396	    gl_cv_next_wctype_h='<'wctype.h'>'
63397	  fi
63398
63399fi
63400{ $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
63401$as_echo "$gl_cv_next_wctype_h" >&6; }
63402     fi
63403     NEXT_WCTYPE_H=$gl_cv_next_wctype_h
63404
63405
63406
63407    HAVE_WCTYPE_H=1
63408  else
63409    HAVE_WCTYPE_H=0
63410  fi
63411
63412
63413
63414
63415
63416
63417
63418
63419
63420
63421
63422
63423  :
63424
63425
63426
63427
63428
63429
63430  :
63431
63432
63433
63434
63435
63436
63437  { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
63438$as_echo_n "checking whether wcwidth is declared... " >&6; }
63439if test "${ac_cv_have_decl_wcwidth+set}" = set; then
63440  $as_echo_n "(cached) " >&6
63441else
63442  cat >conftest.$ac_ext <<_ACEOF
63443/* confdefs.h.  */
63444_ACEOF
63445cat confdefs.h >>conftest.$ac_ext
63446cat >>conftest.$ac_ext <<_ACEOF
63447/* end confdefs.h.  */
63448
63449/* AIX 3.2.5 declares wcwidth in <string.h>. */
63450#include <string.h>
63451/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63452   <wchar.h>.
63453   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
63454   before <wchar.h>.  */
63455#include <stddef.h>
63456#include <stdio.h>
63457#include <time.h>
63458#include <wchar.h>
63459
63460
63461int
63462main ()
63463{
63464#ifndef wcwidth
63465  (void) wcwidth;
63466#endif
63467
63468  ;
63469  return 0;
63470}
63471_ACEOF
63472rm -f conftest.$ac_objext
63473if { (ac_try="$ac_compile"
63474case "(($ac_try" in
63475  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63476  *) ac_try_echo=$ac_try;;
63477esac
63478eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63479$as_echo "$ac_try_echo") >&5
63480  (eval "$ac_compile") 2>conftest.er1
63481  ac_status=$?
63482  grep -v '^ *+' conftest.er1 >conftest.err
63483  rm -f conftest.er1
63484  cat conftest.err >&5
63485  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63486  (exit $ac_status); } && {
63487	 test -z "$ac_c_werror_flag" ||
63488	 test ! -s conftest.err
63489       } && test -s conftest.$ac_objext; then
63490  ac_cv_have_decl_wcwidth=yes
63491else
63492  $as_echo "$as_me: failed program was:" >&5
63493sed 's/^/| /' conftest.$ac_ext >&5
63494
63495	ac_cv_have_decl_wcwidth=no
63496fi
63497
63498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63499fi
63500{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
63501$as_echo "$ac_cv_have_decl_wcwidth" >&6; }
63502if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
63503
63504cat >>confdefs.h <<_ACEOF
63505#define HAVE_DECL_WCWIDTH 1
63506_ACEOF
63507
63508
63509else
63510  cat >>confdefs.h <<_ACEOF
63511#define HAVE_DECL_WCWIDTH 0
63512_ACEOF
63513
63514
63515fi
63516
63517
63518  if test $ac_cv_have_decl_wcwidth != yes; then
63519    HAVE_DECL_WCWIDTH=0
63520  fi
63521
63522  if test $ac_cv_func_wcwidth = no; then
63523    REPLACE_WCWIDTH=1
63524  else
63525                { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
63526$as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
63527if test "${gl_cv_func_wcwidth_works+set}" = set; then
63528  $as_echo_n "(cached) " >&6
63529else
63530
63531        if test "$cross_compiling" = yes; then
63532  gl_cv_func_wcwidth_works="guessing no"
63533else
63534  cat >conftest.$ac_ext <<_ACEOF
63535/* confdefs.h.  */
63536_ACEOF
63537cat confdefs.h >>conftest.$ac_ext
63538cat >>conftest.$ac_ext <<_ACEOF
63539/* end confdefs.h.  */
63540
63541#include <locale.h>
63542/* AIX 3.2.5 declares wcwidth in <string.h>. */
63543#include <string.h>
63544/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
63545   <wchar.h>.
63546   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
63547   before <wchar.h>.  */
63548#include <stddef.h>
63549#include <stdio.h>
63550#include <time.h>
63551#include <wchar.h>
63552#if !HAVE_DECL_WCWIDTH
63553extern
63554# ifdef __cplusplus
63555"C"
63556# endif
63557int wcwidth (int);
63558#endif
63559int main ()
63560{
63561  if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
63562    if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
63563      return 1;
63564  return 0;
63565}
63566_ACEOF
63567rm -f conftest$ac_exeext
63568if { (ac_try="$ac_link"
63569case "(($ac_try" in
63570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63571  *) ac_try_echo=$ac_try;;
63572esac
63573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63574$as_echo "$ac_try_echo") >&5
63575  (eval "$ac_link") 2>&5
63576  ac_status=$?
63577  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63578  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
63579  { (case "(($ac_try" in
63580  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63581  *) ac_try_echo=$ac_try;;
63582esac
63583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63584$as_echo "$ac_try_echo") >&5
63585  (eval "$ac_try") 2>&5
63586  ac_status=$?
63587  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63588  (exit $ac_status); }; }; then
63589  gl_cv_func_wcwidth_works=yes
63590else
63591  $as_echo "$as_me: program exited with status $ac_status" >&5
63592$as_echo "$as_me: failed program was:" >&5
63593sed 's/^/| /' conftest.$ac_ext >&5
63594
63595( exit $ac_status )
63596gl_cv_func_wcwidth_works=no
63597fi
63598rm -rf conftest.dSYM
63599rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63600fi
63601
63602
63603
63604fi
63605{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
63606$as_echo "$gl_cv_func_wcwidth_works" >&6; }
63607    case "$gl_cv_func_wcwidth_works" in
63608      *yes) ;;
63609      *no) REPLACE_WCWIDTH=1 ;;
63610    esac
63611  fi
63612  if test $REPLACE_WCWIDTH = 1; then
63613
63614
63615
63616
63617
63618
63619
63620  gtpo_LIBOBJS="$gtpo_LIBOBJS wcwidth.$ac_objext"
63621
63622  fi
63623
63624  if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
63625    WCHAR_H=wchar.h
63626  fi
63627
63628
63629
63630  GNULIB_WCWIDTH=1
63631
63632
63633
63634
63635
63636for ac_header in stdint.h
63637do
63638as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
63639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63640  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
63641$as_echo_n "checking for $ac_header... " >&6; }
63642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63643  $as_echo_n "(cached) " >&6
63644fi
63645ac_res=`eval 'as_val=${'$as_ac_Header'}
63646		 $as_echo "$as_val"'`
63647	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63648$as_echo "$ac_res" >&6; }
63649else
63650  # Is the header compilable?
63651{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
63652$as_echo_n "checking $ac_header usability... " >&6; }
63653cat >conftest.$ac_ext <<_ACEOF
63654/* confdefs.h.  */
63655_ACEOF
63656cat confdefs.h >>conftest.$ac_ext
63657cat >>conftest.$ac_ext <<_ACEOF
63658/* end confdefs.h.  */
63659$ac_includes_default
63660#include <$ac_header>
63661_ACEOF
63662rm -f conftest.$ac_objext
63663if { (ac_try="$ac_compile"
63664case "(($ac_try" in
63665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63666  *) ac_try_echo=$ac_try;;
63667esac
63668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63669$as_echo "$ac_try_echo") >&5
63670  (eval "$ac_compile") 2>conftest.er1
63671  ac_status=$?
63672  grep -v '^ *+' conftest.er1 >conftest.err
63673  rm -f conftest.er1
63674  cat conftest.err >&5
63675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63676  (exit $ac_status); } && {
63677	 test -z "$ac_c_werror_flag" ||
63678	 test ! -s conftest.err
63679       } && test -s conftest.$ac_objext; then
63680  ac_header_compiler=yes
63681else
63682  $as_echo "$as_me: failed program was:" >&5
63683sed 's/^/| /' conftest.$ac_ext >&5
63684
63685	ac_header_compiler=no
63686fi
63687
63688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63689{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63690$as_echo "$ac_header_compiler" >&6; }
63691
63692# Is the header present?
63693{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
63694$as_echo_n "checking $ac_header presence... " >&6; }
63695cat >conftest.$ac_ext <<_ACEOF
63696/* confdefs.h.  */
63697_ACEOF
63698cat confdefs.h >>conftest.$ac_ext
63699cat >>conftest.$ac_ext <<_ACEOF
63700/* end confdefs.h.  */
63701#include <$ac_header>
63702_ACEOF
63703if { (ac_try="$ac_cpp conftest.$ac_ext"
63704case "(($ac_try" in
63705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63706  *) ac_try_echo=$ac_try;;
63707esac
63708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63709$as_echo "$ac_try_echo") >&5
63710  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63711  ac_status=$?
63712  grep -v '^ *+' conftest.er1 >conftest.err
63713  rm -f conftest.er1
63714  cat conftest.err >&5
63715  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63716  (exit $ac_status); } >/dev/null && {
63717	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63718	 test ! -s conftest.err
63719       }; then
63720  ac_header_preproc=yes
63721else
63722  $as_echo "$as_me: failed program was:" >&5
63723sed 's/^/| /' conftest.$ac_ext >&5
63724
63725  ac_header_preproc=no
63726fi
63727
63728rm -f conftest.err conftest.$ac_ext
63729{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63730$as_echo "$ac_header_preproc" >&6; }
63731
63732# So?  What about this header?
63733case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63734  yes:no: )
63735    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63736$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63737    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63738$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63739    ac_header_preproc=yes
63740    ;;
63741  no:yes:* )
63742    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63743$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63744    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
63745$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
63746    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63747$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63748    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
63749$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
63750    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63751$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63752    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63753$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63754
63755    ;;
63756esac
63757{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
63758$as_echo_n "checking for $ac_header... " >&6; }
63759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63760  $as_echo_n "(cached) " >&6
63761else
63762  eval "$as_ac_Header=\$ac_header_preproc"
63763fi
63764ac_res=`eval 'as_val=${'$as_ac_Header'}
63765		 $as_echo "$as_val"'`
63766	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63767$as_echo "$ac_res" >&6; }
63768
63769fi
63770as_val=`eval 'as_val=${'$as_ac_Header'}
63771		 $as_echo "$as_val"'`
63772   if test "x$as_val" = x""yes; then
63773  cat >>confdefs.h <<_ACEOF
63774#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
63775_ACEOF
63776
63777fi
63778
63779done
63780
63781
63782
63783
63784
63785
63786
63787  XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
63788
63789
63790
63791
63792
63793
63794
63795
63796for ac_header in pwd.h
63797do
63798as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
63799if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63800  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
63801$as_echo_n "checking for $ac_header... " >&6; }
63802if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63803  $as_echo_n "(cached) " >&6
63804fi
63805ac_res=`eval 'as_val=${'$as_ac_Header'}
63806		 $as_echo "$as_val"'`
63807	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63808$as_echo "$ac_res" >&6; }
63809else
63810  # Is the header compilable?
63811{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
63812$as_echo_n "checking $ac_header usability... " >&6; }
63813cat >conftest.$ac_ext <<_ACEOF
63814/* confdefs.h.  */
63815_ACEOF
63816cat confdefs.h >>conftest.$ac_ext
63817cat >>conftest.$ac_ext <<_ACEOF
63818/* end confdefs.h.  */
63819$ac_includes_default
63820#include <$ac_header>
63821_ACEOF
63822rm -f conftest.$ac_objext
63823if { (ac_try="$ac_compile"
63824case "(($ac_try" in
63825  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63826  *) ac_try_echo=$ac_try;;
63827esac
63828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63829$as_echo "$ac_try_echo") >&5
63830  (eval "$ac_compile") 2>conftest.er1
63831  ac_status=$?
63832  grep -v '^ *+' conftest.er1 >conftest.err
63833  rm -f conftest.er1
63834  cat conftest.err >&5
63835  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63836  (exit $ac_status); } && {
63837	 test -z "$ac_c_werror_flag" ||
63838	 test ! -s conftest.err
63839       } && test -s conftest.$ac_objext; then
63840  ac_header_compiler=yes
63841else
63842  $as_echo "$as_me: failed program was:" >&5
63843sed 's/^/| /' conftest.$ac_ext >&5
63844
63845	ac_header_compiler=no
63846fi
63847
63848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63849{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
63850$as_echo "$ac_header_compiler" >&6; }
63851
63852# Is the header present?
63853{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
63854$as_echo_n "checking $ac_header presence... " >&6; }
63855cat >conftest.$ac_ext <<_ACEOF
63856/* confdefs.h.  */
63857_ACEOF
63858cat confdefs.h >>conftest.$ac_ext
63859cat >>conftest.$ac_ext <<_ACEOF
63860/* end confdefs.h.  */
63861#include <$ac_header>
63862_ACEOF
63863if { (ac_try="$ac_cpp conftest.$ac_ext"
63864case "(($ac_try" in
63865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63866  *) ac_try_echo=$ac_try;;
63867esac
63868eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63869$as_echo "$ac_try_echo") >&5
63870  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
63871  ac_status=$?
63872  grep -v '^ *+' conftest.er1 >conftest.err
63873  rm -f conftest.er1
63874  cat conftest.err >&5
63875  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63876  (exit $ac_status); } >/dev/null && {
63877	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
63878	 test ! -s conftest.err
63879       }; then
63880  ac_header_preproc=yes
63881else
63882  $as_echo "$as_me: failed program was:" >&5
63883sed 's/^/| /' conftest.$ac_ext >&5
63884
63885  ac_header_preproc=no
63886fi
63887
63888rm -f conftest.err conftest.$ac_ext
63889{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
63890$as_echo "$ac_header_preproc" >&6; }
63891
63892# So?  What about this header?
63893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
63894  yes:no: )
63895    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
63896$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
63897    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
63898$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
63899    ac_header_preproc=yes
63900    ;;
63901  no:yes:* )
63902    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
63903$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
63904    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
63905$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
63906    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
63907$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
63908    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
63909$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
63910    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
63911$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
63912    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
63913$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
63914
63915    ;;
63916esac
63917{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
63918$as_echo_n "checking for $ac_header... " >&6; }
63919if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
63920  $as_echo_n "(cached) " >&6
63921else
63922  eval "$as_ac_Header=\$ac_header_preproc"
63923fi
63924ac_res=`eval 'as_val=${'$as_ac_Header'}
63925		 $as_echo "$as_val"'`
63926	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
63927$as_echo "$ac_res" >&6; }
63928
63929fi
63930as_val=`eval 'as_val=${'$as_ac_Header'}
63931		 $as_echo "$as_val"'`
63932   if test "x$as_val" = x""yes; then
63933  cat >>confdefs.h <<_ACEOF
63934#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
63935_ACEOF
63936
63937fi
63938
63939done
63940
63941
63942{ $as_echo "$as_me:$LINENO: checking for inline" >&5
63943$as_echo_n "checking for inline... " >&6; }
63944if test "${ac_cv_c_inline+set}" = set; then
63945  $as_echo_n "(cached) " >&6
63946else
63947  ac_cv_c_inline=no
63948for ac_kw in inline __inline__ __inline; do
63949  cat >conftest.$ac_ext <<_ACEOF
63950/* confdefs.h.  */
63951_ACEOF
63952cat confdefs.h >>conftest.$ac_ext
63953cat >>conftest.$ac_ext <<_ACEOF
63954/* end confdefs.h.  */
63955#ifndef __cplusplus
63956typedef int foo_t;
63957static $ac_kw foo_t static_foo () {return 0; }
63958$ac_kw foo_t foo () {return 0; }
63959#endif
63960
63961_ACEOF
63962rm -f conftest.$ac_objext
63963if { (ac_try="$ac_compile"
63964case "(($ac_try" in
63965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
63966  *) ac_try_echo=$ac_try;;
63967esac
63968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
63969$as_echo "$ac_try_echo") >&5
63970  (eval "$ac_compile") 2>conftest.er1
63971  ac_status=$?
63972  grep -v '^ *+' conftest.er1 >conftest.err
63973  rm -f conftest.er1
63974  cat conftest.err >&5
63975  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
63976  (exit $ac_status); } && {
63977	 test -z "$ac_c_werror_flag" ||
63978	 test ! -s conftest.err
63979       } && test -s conftest.$ac_objext; then
63980  ac_cv_c_inline=$ac_kw
63981else
63982  $as_echo "$as_me: failed program was:" >&5
63983sed 's/^/| /' conftest.$ac_ext >&5
63984
63985
63986fi
63987
63988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
63989  test "$ac_cv_c_inline" != no && break
63990done
63991
63992fi
63993{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
63994$as_echo "$ac_cv_c_inline" >&6; }
63995
63996
63997case $ac_cv_c_inline in
63998  inline | yes) ;;
63999  *)
64000    case $ac_cv_c_inline in
64001      no) ac_val=;;
64002      *) ac_val=$ac_cv_c_inline;;
64003    esac
64004    cat >>confdefs.h <<_ACEOF
64005#ifndef __cplusplus
64006#define inline $ac_val
64007#endif
64008_ACEOF
64009    ;;
64010esac
64011
64012
64013
64014  ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int
64015  if test $ac_cv_type_unsigned_long_long = yes; then
64016
64017cat >>confdefs.h <<\_ACEOF
64018#define HAVE_UNSIGNED_LONG_LONG 1
64019_ACEOF
64020
64021  fi
64022
64023{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
64024$as_echo_n "checking for size_t... " >&6; }
64025if test "${ac_cv_type_size_t+set}" = set; then
64026  $as_echo_n "(cached) " >&6
64027else
64028  ac_cv_type_size_t=no
64029cat >conftest.$ac_ext <<_ACEOF
64030/* confdefs.h.  */
64031_ACEOF
64032cat confdefs.h >>conftest.$ac_ext
64033cat >>conftest.$ac_ext <<_ACEOF
64034/* end confdefs.h.  */
64035$ac_includes_default
64036int
64037main ()
64038{
64039if (sizeof (size_t))
64040       return 0;
64041  ;
64042  return 0;
64043}
64044_ACEOF
64045rm -f conftest.$ac_objext
64046if { (ac_try="$ac_compile"
64047case "(($ac_try" in
64048  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64049  *) ac_try_echo=$ac_try;;
64050esac
64051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64052$as_echo "$ac_try_echo") >&5
64053  (eval "$ac_compile") 2>conftest.er1
64054  ac_status=$?
64055  grep -v '^ *+' conftest.er1 >conftest.err
64056  rm -f conftest.er1
64057  cat conftest.err >&5
64058  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64059  (exit $ac_status); } && {
64060	 test -z "$ac_c_werror_flag" ||
64061	 test ! -s conftest.err
64062       } && test -s conftest.$ac_objext; then
64063  cat >conftest.$ac_ext <<_ACEOF
64064/* confdefs.h.  */
64065_ACEOF
64066cat confdefs.h >>conftest.$ac_ext
64067cat >>conftest.$ac_ext <<_ACEOF
64068/* end confdefs.h.  */
64069$ac_includes_default
64070int
64071main ()
64072{
64073if (sizeof ((size_t)))
64074	  return 0;
64075  ;
64076  return 0;
64077}
64078_ACEOF
64079rm -f conftest.$ac_objext
64080if { (ac_try="$ac_compile"
64081case "(($ac_try" in
64082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64083  *) ac_try_echo=$ac_try;;
64084esac
64085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64086$as_echo "$ac_try_echo") >&5
64087  (eval "$ac_compile") 2>conftest.er1
64088  ac_status=$?
64089  grep -v '^ *+' conftest.er1 >conftest.err
64090  rm -f conftest.er1
64091  cat conftest.err >&5
64092  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64093  (exit $ac_status); } && {
64094	 test -z "$ac_c_werror_flag" ||
64095	 test ! -s conftest.err
64096       } && test -s conftest.$ac_objext; then
64097  :
64098else
64099  $as_echo "$as_me: failed program was:" >&5
64100sed 's/^/| /' conftest.$ac_ext >&5
64101
64102	ac_cv_type_size_t=yes
64103fi
64104
64105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64106else
64107  $as_echo "$as_me: failed program was:" >&5
64108sed 's/^/| /' conftest.$ac_ext >&5
64109
64110
64111fi
64112
64113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64114fi
64115{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
64116$as_echo "$ac_cv_type_size_t" >&6; }
64117if test "x$ac_cv_type_size_t" = x""yes; then
64118  :
64119else
64120
64121cat >>confdefs.h <<_ACEOF
64122#define size_t unsigned int
64123_ACEOF
64124
64125fi
64126
64127{ $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
64128$as_echo_n "checking for ptrdiff_t... " >&6; }
64129if test "${ac_cv_type_ptrdiff_t+set}" = set; then
64130  $as_echo_n "(cached) " >&6
64131else
64132  ac_cv_type_ptrdiff_t=no
64133cat >conftest.$ac_ext <<_ACEOF
64134/* confdefs.h.  */
64135_ACEOF
64136cat confdefs.h >>conftest.$ac_ext
64137cat >>conftest.$ac_ext <<_ACEOF
64138/* end confdefs.h.  */
64139$ac_includes_default
64140int
64141main ()
64142{
64143if (sizeof (ptrdiff_t))
64144       return 0;
64145  ;
64146  return 0;
64147}
64148_ACEOF
64149rm -f conftest.$ac_objext
64150if { (ac_try="$ac_compile"
64151case "(($ac_try" in
64152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64153  *) ac_try_echo=$ac_try;;
64154esac
64155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64156$as_echo "$ac_try_echo") >&5
64157  (eval "$ac_compile") 2>conftest.er1
64158  ac_status=$?
64159  grep -v '^ *+' conftest.er1 >conftest.err
64160  rm -f conftest.er1
64161  cat conftest.err >&5
64162  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64163  (exit $ac_status); } && {
64164	 test -z "$ac_c_werror_flag" ||
64165	 test ! -s conftest.err
64166       } && test -s conftest.$ac_objext; then
64167  cat >conftest.$ac_ext <<_ACEOF
64168/* confdefs.h.  */
64169_ACEOF
64170cat confdefs.h >>conftest.$ac_ext
64171cat >>conftest.$ac_ext <<_ACEOF
64172/* end confdefs.h.  */
64173$ac_includes_default
64174int
64175main ()
64176{
64177if (sizeof ((ptrdiff_t)))
64178	  return 0;
64179  ;
64180  return 0;
64181}
64182_ACEOF
64183rm -f conftest.$ac_objext
64184if { (ac_try="$ac_compile"
64185case "(($ac_try" in
64186  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64187  *) ac_try_echo=$ac_try;;
64188esac
64189eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64190$as_echo "$ac_try_echo") >&5
64191  (eval "$ac_compile") 2>conftest.er1
64192  ac_status=$?
64193  grep -v '^ *+' conftest.er1 >conftest.err
64194  rm -f conftest.er1
64195  cat conftest.err >&5
64196  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64197  (exit $ac_status); } && {
64198	 test -z "$ac_c_werror_flag" ||
64199	 test ! -s conftest.err
64200       } && test -s conftest.$ac_objext; then
64201  :
64202else
64203  $as_echo "$as_me: failed program was:" >&5
64204sed 's/^/| /' conftest.$ac_ext >&5
64205
64206	ac_cv_type_ptrdiff_t=yes
64207fi
64208
64209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64210else
64211  $as_echo "$as_me: failed program was:" >&5
64212sed 's/^/| /' conftest.$ac_ext >&5
64213
64214
64215fi
64216
64217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64218fi
64219{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
64220$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
64221if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
64222
64223cat >>confdefs.h <<_ACEOF
64224#define HAVE_PTRDIFF_T 1
64225_ACEOF
64226
64227
64228fi
64229
64230
64231  { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
64232$as_echo_n "checking for ssize_t... " >&6; }
64233if test "${gt_cv_ssize_t+set}" = set; then
64234  $as_echo_n "(cached) " >&6
64235else
64236  cat >conftest.$ac_ext <<_ACEOF
64237/* confdefs.h.  */
64238_ACEOF
64239cat confdefs.h >>conftest.$ac_ext
64240cat >>conftest.$ac_ext <<_ACEOF
64241/* end confdefs.h.  */
64242#include <sys/types.h>
64243int
64244main ()
64245{
64246int x = sizeof (ssize_t *) + sizeof (ssize_t);
64247        return !x;
64248  ;
64249  return 0;
64250}
64251_ACEOF
64252rm -f conftest.$ac_objext
64253if { (ac_try="$ac_compile"
64254case "(($ac_try" in
64255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64256  *) ac_try_echo=$ac_try;;
64257esac
64258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64259$as_echo "$ac_try_echo") >&5
64260  (eval "$ac_compile") 2>conftest.er1
64261  ac_status=$?
64262  grep -v '^ *+' conftest.er1 >conftest.err
64263  rm -f conftest.er1
64264  cat conftest.err >&5
64265  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64266  (exit $ac_status); } && {
64267	 test -z "$ac_c_werror_flag" ||
64268	 test ! -s conftest.err
64269       } && test -s conftest.$ac_objext; then
64270  gt_cv_ssize_t=yes
64271else
64272  $as_echo "$as_me: failed program was:" >&5
64273sed 's/^/| /' conftest.$ac_ext >&5
64274
64275	gt_cv_ssize_t=no
64276fi
64277
64278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64279fi
64280{ $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
64281$as_echo "$gt_cv_ssize_t" >&6; }
64282  if test $gt_cv_ssize_t = no; then
64283
64284cat >>confdefs.h <<\_ACEOF
64285#define ssize_t int
64286_ACEOF
64287
64288  fi
64289
64290{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
64291$as_echo_n "checking for pid_t... " >&6; }
64292if test "${ac_cv_type_pid_t+set}" = set; then
64293  $as_echo_n "(cached) " >&6
64294else
64295  ac_cv_type_pid_t=no
64296cat >conftest.$ac_ext <<_ACEOF
64297/* confdefs.h.  */
64298_ACEOF
64299cat confdefs.h >>conftest.$ac_ext
64300cat >>conftest.$ac_ext <<_ACEOF
64301/* end confdefs.h.  */
64302$ac_includes_default
64303int
64304main ()
64305{
64306if (sizeof (pid_t))
64307       return 0;
64308  ;
64309  return 0;
64310}
64311_ACEOF
64312rm -f conftest.$ac_objext
64313if { (ac_try="$ac_compile"
64314case "(($ac_try" in
64315  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64316  *) ac_try_echo=$ac_try;;
64317esac
64318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64319$as_echo "$ac_try_echo") >&5
64320  (eval "$ac_compile") 2>conftest.er1
64321  ac_status=$?
64322  grep -v '^ *+' conftest.er1 >conftest.err
64323  rm -f conftest.er1
64324  cat conftest.err >&5
64325  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64326  (exit $ac_status); } && {
64327	 test -z "$ac_c_werror_flag" ||
64328	 test ! -s conftest.err
64329       } && test -s conftest.$ac_objext; then
64330  cat >conftest.$ac_ext <<_ACEOF
64331/* confdefs.h.  */
64332_ACEOF
64333cat confdefs.h >>conftest.$ac_ext
64334cat >>conftest.$ac_ext <<_ACEOF
64335/* end confdefs.h.  */
64336$ac_includes_default
64337int
64338main ()
64339{
64340if (sizeof ((pid_t)))
64341	  return 0;
64342  ;
64343  return 0;
64344}
64345_ACEOF
64346rm -f conftest.$ac_objext
64347if { (ac_try="$ac_compile"
64348case "(($ac_try" in
64349  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64350  *) ac_try_echo=$ac_try;;
64351esac
64352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64353$as_echo "$ac_try_echo") >&5
64354  (eval "$ac_compile") 2>conftest.er1
64355  ac_status=$?
64356  grep -v '^ *+' conftest.er1 >conftest.err
64357  rm -f conftest.er1
64358  cat conftest.err >&5
64359  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64360  (exit $ac_status); } && {
64361	 test -z "$ac_c_werror_flag" ||
64362	 test ! -s conftest.err
64363       } && test -s conftest.$ac_objext; then
64364  :
64365else
64366  $as_echo "$as_me: failed program was:" >&5
64367sed 's/^/| /' conftest.$ac_ext >&5
64368
64369	ac_cv_type_pid_t=yes
64370fi
64371
64372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64373else
64374  $as_echo "$as_me: failed program was:" >&5
64375sed 's/^/| /' conftest.$ac_ext >&5
64376
64377
64378fi
64379
64380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64381fi
64382{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
64383$as_echo "$ac_cv_type_pid_t" >&6; }
64384if test "x$ac_cv_type_pid_t" = x""yes; then
64385  :
64386else
64387
64388cat >>confdefs.h <<_ACEOF
64389#define pid_t int
64390_ACEOF
64391
64392fi
64393
64394
64395    { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
64396$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
64397if test "${ac_cv_gnu_library_2_1+set}" = set; then
64398  $as_echo_n "(cached) " >&6
64399else
64400  cat >conftest.$ac_ext <<_ACEOF
64401/* confdefs.h.  */
64402_ACEOF
64403cat confdefs.h >>conftest.$ac_ext
64404cat >>conftest.$ac_ext <<_ACEOF
64405/* end confdefs.h.  */
64406
64407#include <features.h>
64408#ifdef __GNU_LIBRARY__
64409 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
64410  Lucky GNU user
64411 #endif
64412#endif
64413
64414_ACEOF
64415if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
64416  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
64417  ac_cv_gnu_library_2_1=yes
64418else
64419  ac_cv_gnu_library_2_1=no
64420fi
64421rm -f conftest*
64422
64423
64424
64425fi
64426{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
64427$as_echo "$ac_cv_gnu_library_2_1" >&6; }
64428
64429    GLIBC21="$ac_cv_gnu_library_2_1"
64430
64431
64432if test $GLIBC21 = yes; then
64433  { $as_echo "$as_me:$LINENO: checking for struct __locale_struct.__names" >&5
64434$as_echo_n "checking for struct __locale_struct.__names... " >&6; }
64435if test "${ac_cv_member_struct___locale_struct___names+set}" = set; then
64436  $as_echo_n "(cached) " >&6
64437else
64438  cat >conftest.$ac_ext <<_ACEOF
64439/* confdefs.h.  */
64440_ACEOF
64441cat confdefs.h >>conftest.$ac_ext
64442cat >>conftest.$ac_ext <<_ACEOF
64443/* end confdefs.h.  */
64444#include <xlocale.h>
64445
64446int
64447main ()
64448{
64449static struct __locale_struct ac_aggr;
64450if (ac_aggr.__names)
64451return 0;
64452  ;
64453  return 0;
64454}
64455_ACEOF
64456rm -f conftest.$ac_objext
64457if { (ac_try="$ac_compile"
64458case "(($ac_try" in
64459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64460  *) ac_try_echo=$ac_try;;
64461esac
64462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64463$as_echo "$ac_try_echo") >&5
64464  (eval "$ac_compile") 2>conftest.er1
64465  ac_status=$?
64466  grep -v '^ *+' conftest.er1 >conftest.err
64467  rm -f conftest.er1
64468  cat conftest.err >&5
64469  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64470  (exit $ac_status); } && {
64471	 test -z "$ac_c_werror_flag" ||
64472	 test ! -s conftest.err
64473       } && test -s conftest.$ac_objext; then
64474  ac_cv_member_struct___locale_struct___names=yes
64475else
64476  $as_echo "$as_me: failed program was:" >&5
64477sed 's/^/| /' conftest.$ac_ext >&5
64478
64479	cat >conftest.$ac_ext <<_ACEOF
64480/* confdefs.h.  */
64481_ACEOF
64482cat confdefs.h >>conftest.$ac_ext
64483cat >>conftest.$ac_ext <<_ACEOF
64484/* end confdefs.h.  */
64485#include <xlocale.h>
64486
64487int
64488main ()
64489{
64490static struct __locale_struct ac_aggr;
64491if (sizeof ac_aggr.__names)
64492return 0;
64493  ;
64494  return 0;
64495}
64496_ACEOF
64497rm -f conftest.$ac_objext
64498if { (ac_try="$ac_compile"
64499case "(($ac_try" in
64500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64501  *) ac_try_echo=$ac_try;;
64502esac
64503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64504$as_echo "$ac_try_echo") >&5
64505  (eval "$ac_compile") 2>conftest.er1
64506  ac_status=$?
64507  grep -v '^ *+' conftest.er1 >conftest.err
64508  rm -f conftest.er1
64509  cat conftest.err >&5
64510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64511  (exit $ac_status); } && {
64512	 test -z "$ac_c_werror_flag" ||
64513	 test ! -s conftest.err
64514       } && test -s conftest.$ac_objext; then
64515  ac_cv_member_struct___locale_struct___names=yes
64516else
64517  $as_echo "$as_me: failed program was:" >&5
64518sed 's/^/| /' conftest.$ac_ext >&5
64519
64520	ac_cv_member_struct___locale_struct___names=no
64521fi
64522
64523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64524fi
64525
64526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64527fi
64528{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct___locale_struct___names" >&5
64529$as_echo "$ac_cv_member_struct___locale_struct___names" >&6; }
64530if test "x$ac_cv_member_struct___locale_struct___names" = x""yes; then
64531
64532cat >>confdefs.h <<_ACEOF
64533#define HAVE_STRUCT___LOCALE_STRUCT___NAMES 1
64534_ACEOF
64535
64536
64537fi
64538
64539fi
64540
64541
64542for ac_func in select
64543do
64544as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64545{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64546$as_echo_n "checking for $ac_func... " >&6; }
64547if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64548  $as_echo_n "(cached) " >&6
64549else
64550  cat >conftest.$ac_ext <<_ACEOF
64551/* confdefs.h.  */
64552_ACEOF
64553cat confdefs.h >>conftest.$ac_ext
64554cat >>conftest.$ac_ext <<_ACEOF
64555/* end confdefs.h.  */
64556/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64557   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64558#define $ac_func innocuous_$ac_func
64559
64560/* System header to define __stub macros and hopefully few prototypes,
64561    which can conflict with char $ac_func (); below.
64562    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64563    <limits.h> exists even on freestanding compilers.  */
64564
64565#ifdef __STDC__
64566# include <limits.h>
64567#else
64568# include <assert.h>
64569#endif
64570
64571#undef $ac_func
64572
64573/* Override any GCC internal prototype to avoid an error.
64574   Use char because int might match the return type of a GCC
64575   builtin and then its argument prototype would still apply.  */
64576#ifdef __cplusplus
64577extern "C"
64578#endif
64579char $ac_func ();
64580/* The GNU C library defines this for functions which it implements
64581    to always fail with ENOSYS.  Some functions are actually named
64582    something starting with __ and the normal name is an alias.  */
64583#if defined __stub_$ac_func || defined __stub___$ac_func
64584choke me
64585#endif
64586
64587int
64588main ()
64589{
64590return $ac_func ();
64591  ;
64592  return 0;
64593}
64594_ACEOF
64595rm -f conftest.$ac_objext conftest$ac_exeext
64596if { (ac_try="$ac_link"
64597case "(($ac_try" in
64598  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64599  *) ac_try_echo=$ac_try;;
64600esac
64601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64602$as_echo "$ac_try_echo") >&5
64603  (eval "$ac_link") 2>conftest.er1
64604  ac_status=$?
64605  grep -v '^ *+' conftest.er1 >conftest.err
64606  rm -f conftest.er1
64607  cat conftest.err >&5
64608  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64609  (exit $ac_status); } && {
64610	 test -z "$ac_c_werror_flag" ||
64611	 test ! -s conftest.err
64612       } && test -s conftest$ac_exeext && {
64613	 test "$cross_compiling" = yes ||
64614	 $as_test_x conftest$ac_exeext
64615       }; then
64616  eval "$as_ac_var=yes"
64617else
64618  $as_echo "$as_me: failed program was:" >&5
64619sed 's/^/| /' conftest.$ac_ext >&5
64620
64621	eval "$as_ac_var=no"
64622fi
64623
64624rm -rf conftest.dSYM
64625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64626      conftest$ac_exeext conftest.$ac_ext
64627fi
64628ac_res=`eval 'as_val=${'$as_ac_var'}
64629		 $as_echo "$as_val"'`
64630	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64631$as_echo "$ac_res" >&6; }
64632as_val=`eval 'as_val=${'$as_ac_var'}
64633		 $as_echo "$as_val"'`
64634   if test "x$as_val" = x""yes; then
64635  cat >>confdefs.h <<_ACEOF
64636#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64637_ACEOF
64638
64639fi
64640done
64641
64642
64643for ac_header in vfork.h
64644do
64645as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
64646if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64647  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
64648$as_echo_n "checking for $ac_header... " >&6; }
64649if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64650  $as_echo_n "(cached) " >&6
64651fi
64652ac_res=`eval 'as_val=${'$as_ac_Header'}
64653		 $as_echo "$as_val"'`
64654	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64655$as_echo "$ac_res" >&6; }
64656else
64657  # Is the header compilable?
64658{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
64659$as_echo_n "checking $ac_header usability... " >&6; }
64660cat >conftest.$ac_ext <<_ACEOF
64661/* confdefs.h.  */
64662_ACEOF
64663cat confdefs.h >>conftest.$ac_ext
64664cat >>conftest.$ac_ext <<_ACEOF
64665/* end confdefs.h.  */
64666$ac_includes_default
64667#include <$ac_header>
64668_ACEOF
64669rm -f conftest.$ac_objext
64670if { (ac_try="$ac_compile"
64671case "(($ac_try" in
64672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64673  *) ac_try_echo=$ac_try;;
64674esac
64675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64676$as_echo "$ac_try_echo") >&5
64677  (eval "$ac_compile") 2>conftest.er1
64678  ac_status=$?
64679  grep -v '^ *+' conftest.er1 >conftest.err
64680  rm -f conftest.er1
64681  cat conftest.err >&5
64682  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64683  (exit $ac_status); } && {
64684	 test -z "$ac_c_werror_flag" ||
64685	 test ! -s conftest.err
64686       } && test -s conftest.$ac_objext; then
64687  ac_header_compiler=yes
64688else
64689  $as_echo "$as_me: failed program was:" >&5
64690sed 's/^/| /' conftest.$ac_ext >&5
64691
64692	ac_header_compiler=no
64693fi
64694
64695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
64696{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
64697$as_echo "$ac_header_compiler" >&6; }
64698
64699# Is the header present?
64700{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
64701$as_echo_n "checking $ac_header presence... " >&6; }
64702cat >conftest.$ac_ext <<_ACEOF
64703/* confdefs.h.  */
64704_ACEOF
64705cat confdefs.h >>conftest.$ac_ext
64706cat >>conftest.$ac_ext <<_ACEOF
64707/* end confdefs.h.  */
64708#include <$ac_header>
64709_ACEOF
64710if { (ac_try="$ac_cpp conftest.$ac_ext"
64711case "(($ac_try" in
64712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64713  *) ac_try_echo=$ac_try;;
64714esac
64715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64716$as_echo "$ac_try_echo") >&5
64717  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
64718  ac_status=$?
64719  grep -v '^ *+' conftest.er1 >conftest.err
64720  rm -f conftest.er1
64721  cat conftest.err >&5
64722  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64723  (exit $ac_status); } >/dev/null && {
64724	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
64725	 test ! -s conftest.err
64726       }; then
64727  ac_header_preproc=yes
64728else
64729  $as_echo "$as_me: failed program was:" >&5
64730sed 's/^/| /' conftest.$ac_ext >&5
64731
64732  ac_header_preproc=no
64733fi
64734
64735rm -f conftest.err conftest.$ac_ext
64736{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
64737$as_echo "$ac_header_preproc" >&6; }
64738
64739# So?  What about this header?
64740case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
64741  yes:no: )
64742    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
64743$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
64744    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
64745$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
64746    ac_header_preproc=yes
64747    ;;
64748  no:yes:* )
64749    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
64750$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
64751    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
64752$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
64753    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
64754$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
64755    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
64756$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
64757    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
64758$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
64759    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
64760$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
64761
64762    ;;
64763esac
64764{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
64765$as_echo_n "checking for $ac_header... " >&6; }
64766if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
64767  $as_echo_n "(cached) " >&6
64768else
64769  eval "$as_ac_Header=\$ac_header_preproc"
64770fi
64771ac_res=`eval 'as_val=${'$as_ac_Header'}
64772		 $as_echo "$as_val"'`
64773	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64774$as_echo "$ac_res" >&6; }
64775
64776fi
64777as_val=`eval 'as_val=${'$as_ac_Header'}
64778		 $as_echo "$as_val"'`
64779   if test "x$as_val" = x""yes; then
64780  cat >>confdefs.h <<_ACEOF
64781#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
64782_ACEOF
64783
64784fi
64785
64786done
64787
64788
64789
64790for ac_func in fork vfork
64791do
64792as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
64793{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
64794$as_echo_n "checking for $ac_func... " >&6; }
64795if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
64796  $as_echo_n "(cached) " >&6
64797else
64798  cat >conftest.$ac_ext <<_ACEOF
64799/* confdefs.h.  */
64800_ACEOF
64801cat confdefs.h >>conftest.$ac_ext
64802cat >>conftest.$ac_ext <<_ACEOF
64803/* end confdefs.h.  */
64804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
64805   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
64806#define $ac_func innocuous_$ac_func
64807
64808/* System header to define __stub macros and hopefully few prototypes,
64809    which can conflict with char $ac_func (); below.
64810    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
64811    <limits.h> exists even on freestanding compilers.  */
64812
64813#ifdef __STDC__
64814# include <limits.h>
64815#else
64816# include <assert.h>
64817#endif
64818
64819#undef $ac_func
64820
64821/* Override any GCC internal prototype to avoid an error.
64822   Use char because int might match the return type of a GCC
64823   builtin and then its argument prototype would still apply.  */
64824#ifdef __cplusplus
64825extern "C"
64826#endif
64827char $ac_func ();
64828/* The GNU C library defines this for functions which it implements
64829    to always fail with ENOSYS.  Some functions are actually named
64830    something starting with __ and the normal name is an alias.  */
64831#if defined __stub_$ac_func || defined __stub___$ac_func
64832choke me
64833#endif
64834
64835int
64836main ()
64837{
64838return $ac_func ();
64839  ;
64840  return 0;
64841}
64842_ACEOF
64843rm -f conftest.$ac_objext conftest$ac_exeext
64844if { (ac_try="$ac_link"
64845case "(($ac_try" in
64846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64847  *) ac_try_echo=$ac_try;;
64848esac
64849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64850$as_echo "$ac_try_echo") >&5
64851  (eval "$ac_link") 2>conftest.er1
64852  ac_status=$?
64853  grep -v '^ *+' conftest.er1 >conftest.err
64854  rm -f conftest.er1
64855  cat conftest.err >&5
64856  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64857  (exit $ac_status); } && {
64858	 test -z "$ac_c_werror_flag" ||
64859	 test ! -s conftest.err
64860       } && test -s conftest$ac_exeext && {
64861	 test "$cross_compiling" = yes ||
64862	 $as_test_x conftest$ac_exeext
64863       }; then
64864  eval "$as_ac_var=yes"
64865else
64866  $as_echo "$as_me: failed program was:" >&5
64867sed 's/^/| /' conftest.$ac_ext >&5
64868
64869	eval "$as_ac_var=no"
64870fi
64871
64872rm -rf conftest.dSYM
64873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
64874      conftest$ac_exeext conftest.$ac_ext
64875fi
64876ac_res=`eval 'as_val=${'$as_ac_var'}
64877		 $as_echo "$as_val"'`
64878	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
64879$as_echo "$ac_res" >&6; }
64880as_val=`eval 'as_val=${'$as_ac_var'}
64881		 $as_echo "$as_val"'`
64882   if test "x$as_val" = x""yes; then
64883  cat >>confdefs.h <<_ACEOF
64884#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
64885_ACEOF
64886
64887fi
64888done
64889
64890if test "x$ac_cv_func_fork" = xyes; then
64891  { $as_echo "$as_me:$LINENO: checking for working fork" >&5
64892$as_echo_n "checking for working fork... " >&6; }
64893if test "${ac_cv_func_fork_works+set}" = set; then
64894  $as_echo_n "(cached) " >&6
64895else
64896  if test "$cross_compiling" = yes; then
64897  ac_cv_func_fork_works=cross
64898else
64899  cat >conftest.$ac_ext <<_ACEOF
64900/* confdefs.h.  */
64901_ACEOF
64902cat confdefs.h >>conftest.$ac_ext
64903cat >>conftest.$ac_ext <<_ACEOF
64904/* end confdefs.h.  */
64905$ac_includes_default
64906int
64907main ()
64908{
64909
64910	  /* By Ruediger Kuhlmann. */
64911	  return fork () < 0;
64912
64913  ;
64914  return 0;
64915}
64916_ACEOF
64917rm -f conftest$ac_exeext
64918if { (ac_try="$ac_link"
64919case "(($ac_try" in
64920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64921  *) ac_try_echo=$ac_try;;
64922esac
64923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64924$as_echo "$ac_try_echo") >&5
64925  (eval "$ac_link") 2>&5
64926  ac_status=$?
64927  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64928  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
64929  { (case "(($ac_try" in
64930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
64931  *) ac_try_echo=$ac_try;;
64932esac
64933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
64934$as_echo "$ac_try_echo") >&5
64935  (eval "$ac_try") 2>&5
64936  ac_status=$?
64937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
64938  (exit $ac_status); }; }; then
64939  ac_cv_func_fork_works=yes
64940else
64941  $as_echo "$as_me: program exited with status $ac_status" >&5
64942$as_echo "$as_me: failed program was:" >&5
64943sed 's/^/| /' conftest.$ac_ext >&5
64944
64945( exit $ac_status )
64946ac_cv_func_fork_works=no
64947fi
64948rm -rf conftest.dSYM
64949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
64950fi
64951
64952
64953fi
64954{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
64955$as_echo "$ac_cv_func_fork_works" >&6; }
64956
64957else
64958  ac_cv_func_fork_works=$ac_cv_func_fork
64959fi
64960if test "x$ac_cv_func_fork_works" = xcross; then
64961  case $host in
64962    *-*-amigaos* | *-*-msdosdjgpp*)
64963      # Override, as these systems have only a dummy fork() stub
64964      ac_cv_func_fork_works=no
64965      ;;
64966    *)
64967      ac_cv_func_fork_works=yes
64968      ;;
64969  esac
64970  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
64971$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
64972fi
64973ac_cv_func_vfork_works=$ac_cv_func_vfork
64974if test "x$ac_cv_func_vfork" = xyes; then
64975  { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
64976$as_echo_n "checking for working vfork... " >&6; }
64977if test "${ac_cv_func_vfork_works+set}" = set; then
64978  $as_echo_n "(cached) " >&6
64979else
64980  if test "$cross_compiling" = yes; then
64981  ac_cv_func_vfork_works=cross
64982else
64983  cat >conftest.$ac_ext <<_ACEOF
64984/* confdefs.h.  */
64985_ACEOF
64986cat confdefs.h >>conftest.$ac_ext
64987cat >>conftest.$ac_ext <<_ACEOF
64988/* end confdefs.h.  */
64989/* Thanks to Paul Eggert for this test.  */
64990$ac_includes_default
64991#include <sys/wait.h>
64992#ifdef HAVE_VFORK_H
64993# include <vfork.h>
64994#endif
64995/* On some sparc systems, changes by the child to local and incoming
64996   argument registers are propagated back to the parent.  The compiler
64997   is told about this with #include <vfork.h>, but some compilers
64998   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
64999   static variable whose address is put into a register that is
65000   clobbered by the vfork.  */
65001static void
65002#ifdef __cplusplus
65003sparc_address_test (int arg)
65004# else
65005sparc_address_test (arg) int arg;
65006#endif
65007{
65008  static pid_t child;
65009  if (!child) {
65010    child = vfork ();
65011    if (child < 0) {
65012      perror ("vfork");
65013      _exit(2);
65014    }
65015    if (!child) {
65016      arg = getpid();
65017      write(-1, "", 0);
65018      _exit (arg);
65019    }
65020  }
65021}
65022
65023int
65024main ()
65025{
65026  pid_t parent = getpid ();
65027  pid_t child;
65028
65029  sparc_address_test (0);
65030
65031  child = vfork ();
65032
65033  if (child == 0) {
65034    /* Here is another test for sparc vfork register problems.  This
65035       test uses lots of local variables, at least as many local
65036       variables as main has allocated so far including compiler
65037       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
65038       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
65039       reuse the register of parent for one of the local variables,
65040       since it will think that parent can't possibly be used any more
65041       in this routine.  Assigning to the local variable will thus
65042       munge parent in the parent process.  */
65043    pid_t
65044      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
65045      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
65046    /* Convince the compiler that p..p7 are live; otherwise, it might
65047       use the same hardware register for all 8 local variables.  */
65048    if (p != p1 || p != p2 || p != p3 || p != p4
65049	|| p != p5 || p != p6 || p != p7)
65050      _exit(1);
65051
65052    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
65053       from child file descriptors.  If the child closes a descriptor
65054       before it execs or exits, this munges the parent's descriptor
65055       as well.  Test for this by closing stdout in the child.  */
65056    _exit(close(fileno(stdout)) != 0);
65057  } else {
65058    int status;
65059    struct stat st;
65060
65061    while (wait(&status) != child)
65062      ;
65063    return (
65064	 /* Was there some problem with vforking?  */
65065	 child < 0
65066
65067	 /* Did the child fail?  (This shouldn't happen.)  */
65068	 || status
65069
65070	 /* Did the vfork/compiler bug occur?  */
65071	 || parent != getpid()
65072
65073	 /* Did the file descriptor bug occur?  */
65074	 || fstat(fileno(stdout), &st) != 0
65075	 );
65076  }
65077}
65078_ACEOF
65079rm -f conftest$ac_exeext
65080if { (ac_try="$ac_link"
65081case "(($ac_try" in
65082  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65083  *) ac_try_echo=$ac_try;;
65084esac
65085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65086$as_echo "$ac_try_echo") >&5
65087  (eval "$ac_link") 2>&5
65088  ac_status=$?
65089  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65090  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65091  { (case "(($ac_try" in
65092  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65093  *) ac_try_echo=$ac_try;;
65094esac
65095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65096$as_echo "$ac_try_echo") >&5
65097  (eval "$ac_try") 2>&5
65098  ac_status=$?
65099  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65100  (exit $ac_status); }; }; then
65101  ac_cv_func_vfork_works=yes
65102else
65103  $as_echo "$as_me: program exited with status $ac_status" >&5
65104$as_echo "$as_me: failed program was:" >&5
65105sed 's/^/| /' conftest.$ac_ext >&5
65106
65107( exit $ac_status )
65108ac_cv_func_vfork_works=no
65109fi
65110rm -rf conftest.dSYM
65111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65112fi
65113
65114
65115fi
65116{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
65117$as_echo "$ac_cv_func_vfork_works" >&6; }
65118
65119fi;
65120if test "x$ac_cv_func_fork_works" = xcross; then
65121  ac_cv_func_vfork_works=$ac_cv_func_vfork
65122  { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
65123$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
65124fi
65125
65126if test "x$ac_cv_func_vfork_works" = xyes; then
65127
65128cat >>confdefs.h <<\_ACEOF
65129#define HAVE_WORKING_VFORK 1
65130_ACEOF
65131
65132else
65133
65134cat >>confdefs.h <<\_ACEOF
65135#define vfork fork
65136_ACEOF
65137
65138fi
65139if test "x$ac_cv_func_fork_works" = xyes; then
65140
65141cat >>confdefs.h <<\_ACEOF
65142#define HAVE_WORKING_FORK 1
65143_ACEOF
65144
65145fi
65146
65147
65148  { $as_echo "$as_me:$LINENO: checking for signal handlers with siginfo_t" >&5
65149$as_echo_n "checking for signal handlers with siginfo_t... " >&6; }
65150if test "${gt_cv_siginfo_t+set}" = set; then
65151  $as_echo_n "(cached) " >&6
65152else
65153  cat >conftest.$ac_ext <<_ACEOF
65154/* confdefs.h.  */
65155_ACEOF
65156cat confdefs.h >>conftest.$ac_ext
65157cat >>conftest.$ac_ext <<_ACEOF
65158/* end confdefs.h.  */
65159
65160#include <signal.h>
65161int
65162main ()
65163{
65164
65165struct sigaction action;
65166siginfo_t info;
65167action.sa_flags = SA_SIGINFO;
65168action.sa_sigaction = (void *) 0;
65169
65170  ;
65171  return 0;
65172}
65173_ACEOF
65174rm -f conftest.$ac_objext
65175if { (ac_try="$ac_compile"
65176case "(($ac_try" in
65177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65178  *) ac_try_echo=$ac_try;;
65179esac
65180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65181$as_echo "$ac_try_echo") >&5
65182  (eval "$ac_compile") 2>conftest.er1
65183  ac_status=$?
65184  grep -v '^ *+' conftest.er1 >conftest.err
65185  rm -f conftest.er1
65186  cat conftest.err >&5
65187  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65188  (exit $ac_status); } && {
65189	 test -z "$ac_c_werror_flag" ||
65190	 test ! -s conftest.err
65191       } && test -s conftest.$ac_objext; then
65192  gt_cv_siginfo_t=yes
65193else
65194  $as_echo "$as_me: failed program was:" >&5
65195sed 's/^/| /' conftest.$ac_ext >&5
65196
65197	gt_cv_siginfo_t=no
65198fi
65199
65200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65201fi
65202{ $as_echo "$as_me:$LINENO: result: $gt_cv_siginfo_t" >&5
65203$as_echo "$gt_cv_siginfo_t" >&6; }
65204  if test $gt_cv_siginfo_t = yes; then
65205
65206cat >>confdefs.h <<\_ACEOF
65207#define HAVE_SIGINFO 1
65208_ACEOF
65209
65210  fi
65211
65212
65213{ $as_echo "$as_me:$LINENO: checking for setlocale declaration" >&5
65214$as_echo_n "checking for setlocale declaration... " >&6; }
65215if test "${gt_cv_proto_setlocale+set}" = set; then
65216  $as_echo_n "(cached) " >&6
65217else
65218
65219cat >conftest.$ac_ext <<_ACEOF
65220/* confdefs.h.  */
65221_ACEOF
65222cat confdefs.h >>conftest.$ac_ext
65223cat >>conftest.$ac_ext <<_ACEOF
65224/* end confdefs.h.  */
65225
65226#include <stdlib.h>
65227#include <locale.h>
65228extern
65229#ifdef __cplusplus
65230"C"
65231#endif
65232#if defined(__STDC__) || defined(__cplusplus)
65233char *setlocale (int category, char *locale);
65234#else
65235char *setlocale();
65236#endif
65237
65238int
65239main ()
65240{
65241
65242  ;
65243  return 0;
65244}
65245_ACEOF
65246rm -f conftest.$ac_objext
65247if { (ac_try="$ac_compile"
65248case "(($ac_try" in
65249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65250  *) ac_try_echo=$ac_try;;
65251esac
65252eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65253$as_echo "$ac_try_echo") >&5
65254  (eval "$ac_compile") 2>conftest.er1
65255  ac_status=$?
65256  grep -v '^ *+' conftest.er1 >conftest.err
65257  rm -f conftest.er1
65258  cat conftest.err >&5
65259  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65260  (exit $ac_status); } && {
65261	 test -z "$ac_c_werror_flag" ||
65262	 test ! -s conftest.err
65263       } && test -s conftest.$ac_objext; then
65264  gt_cv_proto_setlocale_arg1=""
65265else
65266  $as_echo "$as_me: failed program was:" >&5
65267sed 's/^/| /' conftest.$ac_ext >&5
65268
65269	gt_cv_proto_setlocale_arg1="const"
65270fi
65271
65272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65273gt_cv_proto_setlocale="extern char *setlocale (int category, $gt_cv_proto_setlocale_arg1 char *locale);"
65274fi
65275
65276gt_cv_proto_setlocale=`echo "$gt_cv_proto_setlocale" | tr -s ' ' | sed -e 's/( /(/'`
65277{ $as_echo "$as_me:$LINENO: result: ${ac_t:-
65278         }$gt_cv_proto_setlocale" >&5
65279$as_echo "${ac_t:-
65280         }$gt_cv_proto_setlocale" >&6; }
65281
65282cat >>confdefs.h <<_ACEOF
65283#define SETLOCALE_CONST $gt_cv_proto_setlocale_arg1
65284_ACEOF
65285
65286
65287
65288
65289
65290  { $as_echo "$as_me:$LINENO: checking for wcscoll" >&5
65291$as_echo_n "checking for wcscoll... " >&6; }
65292if test "${ac_cv_func_wcscoll+set}" = set; then
65293  $as_echo_n "(cached) " >&6
65294else
65295  cat >conftest.$ac_ext <<_ACEOF
65296/* confdefs.h.  */
65297_ACEOF
65298cat confdefs.h >>conftest.$ac_ext
65299cat >>conftest.$ac_ext <<_ACEOF
65300/* end confdefs.h.  */
65301/* Define wcscoll to an innocuous variant, in case <limits.h> declares wcscoll.
65302   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65303#define wcscoll innocuous_wcscoll
65304
65305/* System header to define __stub macros and hopefully few prototypes,
65306    which can conflict with char wcscoll (); below.
65307    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65308    <limits.h> exists even on freestanding compilers.  */
65309
65310#ifdef __STDC__
65311# include <limits.h>
65312#else
65313# include <assert.h>
65314#endif
65315
65316#undef wcscoll
65317
65318/* Override any GCC internal prototype to avoid an error.
65319   Use char because int might match the return type of a GCC
65320   builtin and then its argument prototype would still apply.  */
65321#ifdef __cplusplus
65322extern "C"
65323#endif
65324char wcscoll ();
65325/* The GNU C library defines this for functions which it implements
65326    to always fail with ENOSYS.  Some functions are actually named
65327    something starting with __ and the normal name is an alias.  */
65328#if defined __stub_wcscoll || defined __stub___wcscoll
65329choke me
65330#endif
65331
65332int
65333main ()
65334{
65335return wcscoll ();
65336  ;
65337  return 0;
65338}
65339_ACEOF
65340rm -f conftest.$ac_objext conftest$ac_exeext
65341if { (ac_try="$ac_link"
65342case "(($ac_try" in
65343  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65344  *) ac_try_echo=$ac_try;;
65345esac
65346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65347$as_echo "$ac_try_echo") >&5
65348  (eval "$ac_link") 2>conftest.er1
65349  ac_status=$?
65350  grep -v '^ *+' conftest.er1 >conftest.err
65351  rm -f conftest.er1
65352  cat conftest.err >&5
65353  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65354  (exit $ac_status); } && {
65355	 test -z "$ac_c_werror_flag" ||
65356	 test ! -s conftest.err
65357       } && test -s conftest$ac_exeext && {
65358	 test "$cross_compiling" = yes ||
65359	 $as_test_x conftest$ac_exeext
65360       }; then
65361  ac_cv_func_wcscoll=yes
65362else
65363  $as_echo "$as_me: failed program was:" >&5
65364sed 's/^/| /' conftest.$ac_ext >&5
65365
65366	ac_cv_func_wcscoll=no
65367fi
65368
65369rm -rf conftest.dSYM
65370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65371      conftest$ac_exeext conftest.$ac_ext
65372fi
65373{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_wcscoll" >&5
65374$as_echo "$ac_cv_func_wcscoll" >&6; }
65375if test "x$ac_cv_func_wcscoll" = x""yes; then
65376  :
65377else
65378
65379cat >>confdefs.h <<\_ACEOF
65380#define wcscoll wcscmp
65381_ACEOF
65382
65383fi
65384
65385
65386
65387  :
65388
65389
65390for ac_func in memchr
65391do
65392as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65393{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65394$as_echo_n "checking for $ac_func... " >&6; }
65395if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65396  $as_echo_n "(cached) " >&6
65397else
65398  cat >conftest.$ac_ext <<_ACEOF
65399/* confdefs.h.  */
65400_ACEOF
65401cat confdefs.h >>conftest.$ac_ext
65402cat >>conftest.$ac_ext <<_ACEOF
65403/* end confdefs.h.  */
65404/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65405   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65406#define $ac_func innocuous_$ac_func
65407
65408/* System header to define __stub macros and hopefully few prototypes,
65409    which can conflict with char $ac_func (); below.
65410    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65411    <limits.h> exists even on freestanding compilers.  */
65412
65413#ifdef __STDC__
65414# include <limits.h>
65415#else
65416# include <assert.h>
65417#endif
65418
65419#undef $ac_func
65420
65421/* Override any GCC internal prototype to avoid an error.
65422   Use char because int might match the return type of a GCC
65423   builtin and then its argument prototype would still apply.  */
65424#ifdef __cplusplus
65425extern "C"
65426#endif
65427char $ac_func ();
65428/* The GNU C library defines this for functions which it implements
65429    to always fail with ENOSYS.  Some functions are actually named
65430    something starting with __ and the normal name is an alias.  */
65431#if defined __stub_$ac_func || defined __stub___$ac_func
65432choke me
65433#endif
65434
65435int
65436main ()
65437{
65438return $ac_func ();
65439  ;
65440  return 0;
65441}
65442_ACEOF
65443rm -f conftest.$ac_objext conftest$ac_exeext
65444if { (ac_try="$ac_link"
65445case "(($ac_try" in
65446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65447  *) ac_try_echo=$ac_try;;
65448esac
65449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65450$as_echo "$ac_try_echo") >&5
65451  (eval "$ac_link") 2>conftest.er1
65452  ac_status=$?
65453  grep -v '^ *+' conftest.er1 >conftest.err
65454  rm -f conftest.er1
65455  cat conftest.err >&5
65456  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65457  (exit $ac_status); } && {
65458	 test -z "$ac_c_werror_flag" ||
65459	 test ! -s conftest.err
65460       } && test -s conftest$ac_exeext && {
65461	 test "$cross_compiling" = yes ||
65462	 $as_test_x conftest$ac_exeext
65463       }; then
65464  eval "$as_ac_var=yes"
65465else
65466  $as_echo "$as_me: failed program was:" >&5
65467sed 's/^/| /' conftest.$ac_ext >&5
65468
65469	eval "$as_ac_var=no"
65470fi
65471
65472rm -rf conftest.dSYM
65473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65474      conftest$ac_exeext conftest.$ac_ext
65475fi
65476ac_res=`eval 'as_val=${'$as_ac_var'}
65477		 $as_echo "$as_val"'`
65478	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65479$as_echo "$ac_res" >&6; }
65480as_val=`eval 'as_val=${'$as_ac_var'}
65481		 $as_echo "$as_val"'`
65482   if test "x$as_val" = x""yes; then
65483  cat >>confdefs.h <<_ACEOF
65484#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65485_ACEOF
65486
65487else
65488  LIBGREPOBJS="$LIBGREPOBJS $ac_func.$ac_objext"
65489fi
65490done
65491
65492  if test $ac_cv_func_memchr = no; then
65493
65494
65495for ac_header in bp-sym.h
65496do
65497as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
65498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65499  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
65500$as_echo_n "checking for $ac_header... " >&6; }
65501if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65502  $as_echo_n "(cached) " >&6
65503fi
65504ac_res=`eval 'as_val=${'$as_ac_Header'}
65505		 $as_echo "$as_val"'`
65506	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65507$as_echo "$ac_res" >&6; }
65508else
65509  # Is the header compilable?
65510{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
65511$as_echo_n "checking $ac_header usability... " >&6; }
65512cat >conftest.$ac_ext <<_ACEOF
65513/* confdefs.h.  */
65514_ACEOF
65515cat confdefs.h >>conftest.$ac_ext
65516cat >>conftest.$ac_ext <<_ACEOF
65517/* end confdefs.h.  */
65518$ac_includes_default
65519#include <$ac_header>
65520_ACEOF
65521rm -f conftest.$ac_objext
65522if { (ac_try="$ac_compile"
65523case "(($ac_try" in
65524  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65525  *) ac_try_echo=$ac_try;;
65526esac
65527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65528$as_echo "$ac_try_echo") >&5
65529  (eval "$ac_compile") 2>conftest.er1
65530  ac_status=$?
65531  grep -v '^ *+' conftest.er1 >conftest.err
65532  rm -f conftest.er1
65533  cat conftest.err >&5
65534  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65535  (exit $ac_status); } && {
65536	 test -z "$ac_c_werror_flag" ||
65537	 test ! -s conftest.err
65538       } && test -s conftest.$ac_objext; then
65539  ac_header_compiler=yes
65540else
65541  $as_echo "$as_me: failed program was:" >&5
65542sed 's/^/| /' conftest.$ac_ext >&5
65543
65544	ac_header_compiler=no
65545fi
65546
65547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
65548{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
65549$as_echo "$ac_header_compiler" >&6; }
65550
65551# Is the header present?
65552{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
65553$as_echo_n "checking $ac_header presence... " >&6; }
65554cat >conftest.$ac_ext <<_ACEOF
65555/* confdefs.h.  */
65556_ACEOF
65557cat confdefs.h >>conftest.$ac_ext
65558cat >>conftest.$ac_ext <<_ACEOF
65559/* end confdefs.h.  */
65560#include <$ac_header>
65561_ACEOF
65562if { (ac_try="$ac_cpp conftest.$ac_ext"
65563case "(($ac_try" in
65564  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65565  *) ac_try_echo=$ac_try;;
65566esac
65567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65568$as_echo "$ac_try_echo") >&5
65569  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
65570  ac_status=$?
65571  grep -v '^ *+' conftest.er1 >conftest.err
65572  rm -f conftest.er1
65573  cat conftest.err >&5
65574  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65575  (exit $ac_status); } >/dev/null && {
65576	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
65577	 test ! -s conftest.err
65578       }; then
65579  ac_header_preproc=yes
65580else
65581  $as_echo "$as_me: failed program was:" >&5
65582sed 's/^/| /' conftest.$ac_ext >&5
65583
65584  ac_header_preproc=no
65585fi
65586
65587rm -f conftest.err conftest.$ac_ext
65588{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
65589$as_echo "$ac_header_preproc" >&6; }
65590
65591# So?  What about this header?
65592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
65593  yes:no: )
65594    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
65595$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
65596    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
65597$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
65598    ac_header_preproc=yes
65599    ;;
65600  no:yes:* )
65601    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
65602$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
65603    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
65604$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
65605    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
65606$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
65607    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
65608$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
65609    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
65610$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
65611    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
65612$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
65613
65614    ;;
65615esac
65616{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
65617$as_echo_n "checking for $ac_header... " >&6; }
65618if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
65619  $as_echo_n "(cached) " >&6
65620else
65621  eval "$as_ac_Header=\$ac_header_preproc"
65622fi
65623ac_res=`eval 'as_val=${'$as_ac_Header'}
65624		 $as_echo "$as_val"'`
65625	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65626$as_echo "$ac_res" >&6; }
65627
65628fi
65629as_val=`eval 'as_val=${'$as_ac_Header'}
65630		 $as_echo "$as_val"'`
65631   if test "x$as_val" = x""yes; then
65632  cat >>confdefs.h <<_ACEOF
65633#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
65634_ACEOF
65635
65636fi
65637
65638done
65639
65640
65641  fi
65642
65643
65644
65645
65646for ac_func in strdup
65647do
65648as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65649{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65650$as_echo_n "checking for $ac_func... " >&6; }
65651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65652  $as_echo_n "(cached) " >&6
65653else
65654  cat >conftest.$ac_ext <<_ACEOF
65655/* confdefs.h.  */
65656_ACEOF
65657cat confdefs.h >>conftest.$ac_ext
65658cat >>conftest.$ac_ext <<_ACEOF
65659/* end confdefs.h.  */
65660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65661   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65662#define $ac_func innocuous_$ac_func
65663
65664/* System header to define __stub macros and hopefully few prototypes,
65665    which can conflict with char $ac_func (); below.
65666    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65667    <limits.h> exists even on freestanding compilers.  */
65668
65669#ifdef __STDC__
65670# include <limits.h>
65671#else
65672# include <assert.h>
65673#endif
65674
65675#undef $ac_func
65676
65677/* Override any GCC internal prototype to avoid an error.
65678   Use char because int might match the return type of a GCC
65679   builtin and then its argument prototype would still apply.  */
65680#ifdef __cplusplus
65681extern "C"
65682#endif
65683char $ac_func ();
65684/* The GNU C library defines this for functions which it implements
65685    to always fail with ENOSYS.  Some functions are actually named
65686    something starting with __ and the normal name is an alias.  */
65687#if defined __stub_$ac_func || defined __stub___$ac_func
65688choke me
65689#endif
65690
65691int
65692main ()
65693{
65694return $ac_func ();
65695  ;
65696  return 0;
65697}
65698_ACEOF
65699rm -f conftest.$ac_objext conftest$ac_exeext
65700if { (ac_try="$ac_link"
65701case "(($ac_try" in
65702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65703  *) ac_try_echo=$ac_try;;
65704esac
65705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65706$as_echo "$ac_try_echo") >&5
65707  (eval "$ac_link") 2>conftest.er1
65708  ac_status=$?
65709  grep -v '^ *+' conftest.er1 >conftest.err
65710  rm -f conftest.er1
65711  cat conftest.err >&5
65712  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65713  (exit $ac_status); } && {
65714	 test -z "$ac_c_werror_flag" ||
65715	 test ! -s conftest.err
65716       } && test -s conftest$ac_exeext && {
65717	 test "$cross_compiling" = yes ||
65718	 $as_test_x conftest$ac_exeext
65719       }; then
65720  eval "$as_ac_var=yes"
65721else
65722  $as_echo "$as_me: failed program was:" >&5
65723sed 's/^/| /' conftest.$ac_ext >&5
65724
65725	eval "$as_ac_var=no"
65726fi
65727
65728rm -rf conftest.dSYM
65729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
65730      conftest$ac_exeext conftest.$ac_ext
65731fi
65732ac_res=`eval 'as_val=${'$as_ac_var'}
65733		 $as_echo "$as_val"'`
65734	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
65735$as_echo "$ac_res" >&6; }
65736as_val=`eval 'as_val=${'$as_ac_var'}
65737		 $as_echo "$as_val"'`
65738   if test "x$as_val" = x""yes; then
65739  cat >>confdefs.h <<_ACEOF
65740#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
65741_ACEOF
65742
65743else
65744  LIBGREPOBJS="$LIBGREPOBJS $ac_func.$ac_objext"
65745fi
65746done
65747
65748
65749  :
65750
65751
65752
65753
65754
65755  if test $ac_cv_have_decl_strdup = no; then
65756    HAVE_DECL_STRDUP=0
65757  fi
65758  :
65759
65760
65761
65762    # Assume we'll default to using the included regex.c.
65763    ac_use_included_regex=yes
65764
65765    # However, if the system regex support is good enough that it passes the
65766    # the following run test, then default to *not* using the included regex.c.
65767    # If cross compiling, assume the test would fail and use the included
65768    # regex.c.  The first failing regular expression is from `Spencer ere
65769    # test #75' in grep-2.3.
65770    { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
65771$as_echo_n "checking for working re_compile_pattern... " >&6; }
65772if test "${jm_cv_func_working_re_compile_pattern+set}" = set; then
65773  $as_echo_n "(cached) " >&6
65774else
65775  if test "$cross_compiling" = yes; then
65776  	       jm_cv_func_working_re_compile_pattern=no
65777else
65778  cat >conftest.$ac_ext <<_ACEOF
65779/* confdefs.h.  */
65780_ACEOF
65781cat confdefs.h >>conftest.$ac_ext
65782cat >>conftest.$ac_ext <<_ACEOF
65783/* end confdefs.h.  */
65784#include <stdio.h>
65785#include <stdlib.h>
65786#include <string.h>
65787#include <regex.h>
65788	  int
65789	  main ()
65790	  {
65791	    static struct re_pattern_buffer regex;
65792	    const char *s;
65793	    struct re_registers regs;
65794	    re_set_syntax (RE_SYNTAX_POSIX_EGREP);
65795	    memset (&regex, 0, sizeof (regex));
65796	    [s = re_compile_pattern ("a[[:]:]]b\n", 9, &regex);]
65797	    /* This should fail with _Invalid character class name_ error.  */
65798	    if (!s)
65799	      exit (1);
65800
65801	    /* This should succeed, but doesn't for e.g. glibc-2.1.3.  */
65802	    memset (&regex, 0, sizeof (regex));
65803	    s = re_compile_pattern ("{1", 2, &regex);
65804
65805	    if (s)
65806	      exit (1);
65807
65808	    /* The following example is derived from a problem report
65809               against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
65810	    memset (&regex, 0, sizeof (regex));
65811	    s = re_compile_pattern ("[[an\371]]*n", 7, &regex);
65812	    if (s)
65813	      exit (1);
65814
65815	    /* This should match, but doesn't for e.g. glibc-2.2.1.  */
65816	    if (re_match (&regex, "an", 2, 0, &regs) != 2)
65817	      exit (1);
65818
65819	    memset (&regex, 0, sizeof (regex));
65820	    s = re_compile_pattern ("x", 1, &regex);
65821	    if (s)
65822	      exit (1);
65823
65824	    /* The version of regex.c in e.g. GNU libc-2.2.93 didn't
65825	       work with a negative RANGE argument.  */
65826	    if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
65827	      exit (1);
65828
65829	    exit (0);
65830	  }
65831
65832_ACEOF
65833rm -f conftest$ac_exeext
65834if { (ac_try="$ac_link"
65835case "(($ac_try" in
65836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65837  *) ac_try_echo=$ac_try;;
65838esac
65839eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65840$as_echo "$ac_try_echo") >&5
65841  (eval "$ac_link") 2>&5
65842  ac_status=$?
65843  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65844  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
65845  { (case "(($ac_try" in
65846  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65847  *) ac_try_echo=$ac_try;;
65848esac
65849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65850$as_echo "$ac_try_echo") >&5
65851  (eval "$ac_try") 2>&5
65852  ac_status=$?
65853  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65854  (exit $ac_status); }; }; then
65855  jm_cv_func_working_re_compile_pattern=yes
65856else
65857  $as_echo "$as_me: program exited with status $ac_status" >&5
65858$as_echo "$as_me: failed program was:" >&5
65859sed 's/^/| /' conftest.$ac_ext >&5
65860
65861( exit $ac_status )
65862jm_cv_func_working_re_compile_pattern=no
65863fi
65864rm -rf conftest.dSYM
65865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
65866fi
65867
65868
65869fi
65870{ $as_echo "$as_me:$LINENO: result: $jm_cv_func_working_re_compile_pattern" >&5
65871$as_echo "$jm_cv_func_working_re_compile_pattern" >&6; }
65872    if test $jm_cv_func_working_re_compile_pattern = yes; then
65873      ac_use_included_regex=no
65874    fi
65875
65876    test -n "libgrep/regex.c" || { { $as_echo "$as_me:$LINENO: error: missing argument" >&5
65877$as_echo "$as_me: error: missing argument" >&2;}
65878   { (exit 1); exit 1; }; }
65879
65880
65881
65882# Check whether --with-included-regex was given.
65883if test "${with_included_regex+set}" = set; then
65884  withval=$with_included_regex; jm_with_regex=$withval
65885else
65886  jm_with_regex=$ac_use_included_regex
65887fi
65888
65889	if test "$jm_with_regex" = yes; then
65890	  LIBGREPOBJS="$LIBGREPOBJS regex.$ac_objext"
65891
65892
65893
65894
65895
65896
65897
65898
65899  :
65900
65901
65902
65903
65904
65905
65906
65907
65908
65909  :
65910
65911
65912
65913
65914
65915
65916
65917
65918
65919for ac_func in btowc
65920do
65921as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
65922{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
65923$as_echo_n "checking for $ac_func... " >&6; }
65924if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
65925  $as_echo_n "(cached) " >&6
65926else
65927  cat >conftest.$ac_ext <<_ACEOF
65928/* confdefs.h.  */
65929_ACEOF
65930cat confdefs.h >>conftest.$ac_ext
65931cat >>conftest.$ac_ext <<_ACEOF
65932/* end confdefs.h.  */
65933/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
65934   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
65935#define $ac_func innocuous_$ac_func
65936
65937/* System header to define __stub macros and hopefully few prototypes,
65938    which can conflict with char $ac_func (); below.
65939    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
65940    <limits.h> exists even on freestanding compilers.  */
65941
65942#ifdef __STDC__
65943# include <limits.h>
65944#else
65945# include <assert.h>
65946#endif
65947
65948#undef $ac_func
65949
65950/* Override any GCC internal prototype to avoid an error.
65951   Use char because int might match the return type of a GCC
65952   builtin and then its argument prototype would still apply.  */
65953#ifdef __cplusplus
65954extern "C"
65955#endif
65956char $ac_func ();
65957/* The GNU C library defines this for functions which it implements
65958    to always fail with ENOSYS.  Some functions are actually named
65959    something starting with __ and the normal name is an alias.  */
65960#if defined __stub_$ac_func || defined __stub___$ac_func
65961choke me
65962#endif
65963
65964int
65965main ()
65966{
65967return $ac_func ();
65968  ;
65969  return 0;
65970}
65971_ACEOF
65972rm -f conftest.$ac_objext conftest$ac_exeext
65973if { (ac_try="$ac_link"
65974case "(($ac_try" in
65975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
65976  *) ac_try_echo=$ac_try;;
65977esac
65978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
65979$as_echo "$ac_try_echo") >&5
65980  (eval "$ac_link") 2>conftest.er1
65981  ac_status=$?
65982  grep -v '^ *+' conftest.er1 >conftest.err
65983  rm -f conftest.er1
65984  cat conftest.err >&5
65985  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
65986  (exit $ac_status); } && {
65987	 test -z "$ac_c_werror_flag" ||
65988	 test ! -s conftest.err
65989       } && test -s conftest$ac_exeext && {
65990	 test "$cross_compiling" = yes ||
65991	 $as_test_x conftest$ac_exeext
65992       }; then
65993  eval "$as_ac_var=yes"
65994else
65995  $as_echo "$as_me: failed program was:" >&5
65996sed 's/^/| /' conftest.$ac_ext >&5
65997
65998	eval "$as_ac_var=no"
65999fi
66000
66001rm -rf conftest.dSYM
66002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66003      conftest$ac_exeext conftest.$ac_ext
66004fi
66005ac_res=`eval 'as_val=${'$as_ac_var'}
66006		 $as_echo "$as_val"'`
66007	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66008$as_echo "$ac_res" >&6; }
66009as_val=`eval 'as_val=${'$as_ac_var'}
66010		 $as_echo "$as_val"'`
66011   if test "x$as_val" = x""yes; then
66012  cat >>confdefs.h <<_ACEOF
66013#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66014_ACEOF
66015
66016fi
66017done
66018
66019
66020	fi
66021
66022
66023
66024
66025
66026
66027
66028
66029 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
66030$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
66031if test "${ac_cv_c_bigendian+set}" = set; then
66032  $as_echo_n "(cached) " >&6
66033else
66034  ac_cv_c_bigendian=unknown
66035    # See if we're dealing with a universal compiler.
66036    cat >conftest.$ac_ext <<_ACEOF
66037/* confdefs.h.  */
66038_ACEOF
66039cat confdefs.h >>conftest.$ac_ext
66040cat >>conftest.$ac_ext <<_ACEOF
66041/* end confdefs.h.  */
66042#ifndef __APPLE_CC__
66043	       not a universal capable compiler
66044	     #endif
66045	     typedef int dummy;
66046
66047_ACEOF
66048rm -f conftest.$ac_objext
66049if { (ac_try="$ac_compile"
66050case "(($ac_try" in
66051  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66052  *) ac_try_echo=$ac_try;;
66053esac
66054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66055$as_echo "$ac_try_echo") >&5
66056  (eval "$ac_compile") 2>conftest.er1
66057  ac_status=$?
66058  grep -v '^ *+' conftest.er1 >conftest.err
66059  rm -f conftest.er1
66060  cat conftest.err >&5
66061  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66062  (exit $ac_status); } && {
66063	 test -z "$ac_c_werror_flag" ||
66064	 test ! -s conftest.err
66065       } && test -s conftest.$ac_objext; then
66066
66067	# Check for potential -arch flags.  It is not universal unless
66068	# there are some -arch flags.  Note that *ppc* also matches
66069	# ppc64.  This check is also rather less than ideal.
66070	case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
66071	  *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
66072	esac
66073else
66074  $as_echo "$as_me: failed program was:" >&5
66075sed 's/^/| /' conftest.$ac_ext >&5
66076
66077
66078fi
66079
66080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66081    if test $ac_cv_c_bigendian = unknown; then
66082      # See if sys/param.h defines the BYTE_ORDER macro.
66083      cat >conftest.$ac_ext <<_ACEOF
66084/* confdefs.h.  */
66085_ACEOF
66086cat confdefs.h >>conftest.$ac_ext
66087cat >>conftest.$ac_ext <<_ACEOF
66088/* end confdefs.h.  */
66089#include <sys/types.h>
66090	     #include <sys/param.h>
66091
66092int
66093main ()
66094{
66095#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
66096		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
66097		     && LITTLE_ENDIAN)
66098	      bogus endian macros
66099	     #endif
66100
66101  ;
66102  return 0;
66103}
66104_ACEOF
66105rm -f conftest.$ac_objext
66106if { (ac_try="$ac_compile"
66107case "(($ac_try" in
66108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66109  *) ac_try_echo=$ac_try;;
66110esac
66111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66112$as_echo "$ac_try_echo") >&5
66113  (eval "$ac_compile") 2>conftest.er1
66114  ac_status=$?
66115  grep -v '^ *+' conftest.er1 >conftest.err
66116  rm -f conftest.er1
66117  cat conftest.err >&5
66118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66119  (exit $ac_status); } && {
66120	 test -z "$ac_c_werror_flag" ||
66121	 test ! -s conftest.err
66122       } && test -s conftest.$ac_objext; then
66123  # It does; now see whether it defined to BIG_ENDIAN or not.
66124	 cat >conftest.$ac_ext <<_ACEOF
66125/* confdefs.h.  */
66126_ACEOF
66127cat confdefs.h >>conftest.$ac_ext
66128cat >>conftest.$ac_ext <<_ACEOF
66129/* end confdefs.h.  */
66130#include <sys/types.h>
66131		#include <sys/param.h>
66132
66133int
66134main ()
66135{
66136#if BYTE_ORDER != BIG_ENDIAN
66137		 not big endian
66138		#endif
66139
66140  ;
66141  return 0;
66142}
66143_ACEOF
66144rm -f conftest.$ac_objext
66145if { (ac_try="$ac_compile"
66146case "(($ac_try" in
66147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66148  *) ac_try_echo=$ac_try;;
66149esac
66150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66151$as_echo "$ac_try_echo") >&5
66152  (eval "$ac_compile") 2>conftest.er1
66153  ac_status=$?
66154  grep -v '^ *+' conftest.er1 >conftest.err
66155  rm -f conftest.er1
66156  cat conftest.err >&5
66157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66158  (exit $ac_status); } && {
66159	 test -z "$ac_c_werror_flag" ||
66160	 test ! -s conftest.err
66161       } && test -s conftest.$ac_objext; then
66162  ac_cv_c_bigendian=yes
66163else
66164  $as_echo "$as_me: failed program was:" >&5
66165sed 's/^/| /' conftest.$ac_ext >&5
66166
66167	ac_cv_c_bigendian=no
66168fi
66169
66170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66171else
66172  $as_echo "$as_me: failed program was:" >&5
66173sed 's/^/| /' conftest.$ac_ext >&5
66174
66175
66176fi
66177
66178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66179    fi
66180    if test $ac_cv_c_bigendian = unknown; then
66181      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
66182      cat >conftest.$ac_ext <<_ACEOF
66183/* confdefs.h.  */
66184_ACEOF
66185cat confdefs.h >>conftest.$ac_ext
66186cat >>conftest.$ac_ext <<_ACEOF
66187/* end confdefs.h.  */
66188#include <limits.h>
66189
66190int
66191main ()
66192{
66193#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
66194	      bogus endian macros
66195	     #endif
66196
66197  ;
66198  return 0;
66199}
66200_ACEOF
66201rm -f conftest.$ac_objext
66202if { (ac_try="$ac_compile"
66203case "(($ac_try" in
66204  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66205  *) ac_try_echo=$ac_try;;
66206esac
66207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66208$as_echo "$ac_try_echo") >&5
66209  (eval "$ac_compile") 2>conftest.er1
66210  ac_status=$?
66211  grep -v '^ *+' conftest.er1 >conftest.err
66212  rm -f conftest.er1
66213  cat conftest.err >&5
66214  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66215  (exit $ac_status); } && {
66216	 test -z "$ac_c_werror_flag" ||
66217	 test ! -s conftest.err
66218       } && test -s conftest.$ac_objext; then
66219  # It does; now see whether it defined to _BIG_ENDIAN or not.
66220	 cat >conftest.$ac_ext <<_ACEOF
66221/* confdefs.h.  */
66222_ACEOF
66223cat confdefs.h >>conftest.$ac_ext
66224cat >>conftest.$ac_ext <<_ACEOF
66225/* end confdefs.h.  */
66226#include <limits.h>
66227
66228int
66229main ()
66230{
66231#ifndef _BIG_ENDIAN
66232		 not big endian
66233		#endif
66234
66235  ;
66236  return 0;
66237}
66238_ACEOF
66239rm -f conftest.$ac_objext
66240if { (ac_try="$ac_compile"
66241case "(($ac_try" in
66242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66243  *) ac_try_echo=$ac_try;;
66244esac
66245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66246$as_echo "$ac_try_echo") >&5
66247  (eval "$ac_compile") 2>conftest.er1
66248  ac_status=$?
66249  grep -v '^ *+' conftest.er1 >conftest.err
66250  rm -f conftest.er1
66251  cat conftest.err >&5
66252  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66253  (exit $ac_status); } && {
66254	 test -z "$ac_c_werror_flag" ||
66255	 test ! -s conftest.err
66256       } && test -s conftest.$ac_objext; then
66257  ac_cv_c_bigendian=yes
66258else
66259  $as_echo "$as_me: failed program was:" >&5
66260sed 's/^/| /' conftest.$ac_ext >&5
66261
66262	ac_cv_c_bigendian=no
66263fi
66264
66265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66266else
66267  $as_echo "$as_me: failed program was:" >&5
66268sed 's/^/| /' conftest.$ac_ext >&5
66269
66270
66271fi
66272
66273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66274    fi
66275    if test $ac_cv_c_bigendian = unknown; then
66276      # Compile a test program.
66277      if test "$cross_compiling" = yes; then
66278  # Try to guess by grepping values from an object file.
66279	 cat >conftest.$ac_ext <<_ACEOF
66280/* confdefs.h.  */
66281_ACEOF
66282cat confdefs.h >>conftest.$ac_ext
66283cat >>conftest.$ac_ext <<_ACEOF
66284/* end confdefs.h.  */
66285short int ascii_mm[] =
66286		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
66287		short int ascii_ii[] =
66288		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
66289		int use_ascii (int i) {
66290		  return ascii_mm[i] + ascii_ii[i];
66291		}
66292		short int ebcdic_ii[] =
66293		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
66294		short int ebcdic_mm[] =
66295		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
66296		int use_ebcdic (int i) {
66297		  return ebcdic_mm[i] + ebcdic_ii[i];
66298		}
66299		extern int foo;
66300
66301int
66302main ()
66303{
66304return use_ascii (foo) == use_ebcdic (foo);
66305  ;
66306  return 0;
66307}
66308_ACEOF
66309rm -f conftest.$ac_objext
66310if { (ac_try="$ac_compile"
66311case "(($ac_try" in
66312  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66313  *) ac_try_echo=$ac_try;;
66314esac
66315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66316$as_echo "$ac_try_echo") >&5
66317  (eval "$ac_compile") 2>conftest.er1
66318  ac_status=$?
66319  grep -v '^ *+' conftest.er1 >conftest.err
66320  rm -f conftest.er1
66321  cat conftest.err >&5
66322  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66323  (exit $ac_status); } && {
66324	 test -z "$ac_c_werror_flag" ||
66325	 test ! -s conftest.err
66326       } && test -s conftest.$ac_objext; then
66327  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
66328	      ac_cv_c_bigendian=yes
66329	    fi
66330	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
66331	      if test "$ac_cv_c_bigendian" = unknown; then
66332		ac_cv_c_bigendian=no
66333	      else
66334		# finding both strings is unlikely to happen, but who knows?
66335		ac_cv_c_bigendian=unknown
66336	      fi
66337	    fi
66338else
66339  $as_echo "$as_me: failed program was:" >&5
66340sed 's/^/| /' conftest.$ac_ext >&5
66341
66342
66343fi
66344
66345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66346else
66347  cat >conftest.$ac_ext <<_ACEOF
66348/* confdefs.h.  */
66349_ACEOF
66350cat confdefs.h >>conftest.$ac_ext
66351cat >>conftest.$ac_ext <<_ACEOF
66352/* end confdefs.h.  */
66353$ac_includes_default
66354int
66355main ()
66356{
66357
66358	     /* Are we little or big endian?  From Harbison&Steele.  */
66359	     union
66360	     {
66361	       long int l;
66362	       char c[sizeof (long int)];
66363	     } u;
66364	     u.l = 1;
66365	     return u.c[sizeof (long int) - 1] == 1;
66366
66367  ;
66368  return 0;
66369}
66370_ACEOF
66371rm -f conftest$ac_exeext
66372if { (ac_try="$ac_link"
66373case "(($ac_try" in
66374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66375  *) ac_try_echo=$ac_try;;
66376esac
66377eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66378$as_echo "$ac_try_echo") >&5
66379  (eval "$ac_link") 2>&5
66380  ac_status=$?
66381  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66382  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
66383  { (case "(($ac_try" in
66384  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66385  *) ac_try_echo=$ac_try;;
66386esac
66387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66388$as_echo "$ac_try_echo") >&5
66389  (eval "$ac_try") 2>&5
66390  ac_status=$?
66391  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66392  (exit $ac_status); }; }; then
66393  ac_cv_c_bigendian=no
66394else
66395  $as_echo "$as_me: program exited with status $ac_status" >&5
66396$as_echo "$as_me: failed program was:" >&5
66397sed 's/^/| /' conftest.$ac_ext >&5
66398
66399( exit $ac_status )
66400ac_cv_c_bigendian=yes
66401fi
66402rm -rf conftest.dSYM
66403rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
66404fi
66405
66406
66407    fi
66408fi
66409{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
66410$as_echo "$ac_cv_c_bigendian" >&6; }
66411 case $ac_cv_c_bigendian in #(
66412   yes)
66413     endianness=1;; #(
66414   no)
66415     endianness=0 ;; #(
66416   universal)
66417
66418cat >>confdefs.h <<\_ACEOF
66419#define AC_APPLE_UNIVERSAL_BUILD 1
66420_ACEOF
66421
66422     ;; #(
66423   *)
66424     echo "AC-C-BIGENDIAN fails to work on your system." | sed -e 's,-,_,g' 1>&2
66425   echo "Please report this as a bug to bug-autoconf@gnu.org" 1>&2
66426   exit 1 ;;
66427 esac
66428
66429
66430cat >>confdefs.h <<_ACEOF
66431#define ENDIANNESS $endianness
66432_ACEOF
66433
66434
66435
66436
66437for ac_header in arpa/inet.h
66438do
66439as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
66440if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66441  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66442$as_echo_n "checking for $ac_header... " >&6; }
66443if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66444  $as_echo_n "(cached) " >&6
66445fi
66446ac_res=`eval 'as_val=${'$as_ac_Header'}
66447		 $as_echo "$as_val"'`
66448	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66449$as_echo "$ac_res" >&6; }
66450else
66451  # Is the header compilable?
66452{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
66453$as_echo_n "checking $ac_header usability... " >&6; }
66454cat >conftest.$ac_ext <<_ACEOF
66455/* confdefs.h.  */
66456_ACEOF
66457cat confdefs.h >>conftest.$ac_ext
66458cat >>conftest.$ac_ext <<_ACEOF
66459/* end confdefs.h.  */
66460$ac_includes_default
66461#include <$ac_header>
66462_ACEOF
66463rm -f conftest.$ac_objext
66464if { (ac_try="$ac_compile"
66465case "(($ac_try" in
66466  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66467  *) ac_try_echo=$ac_try;;
66468esac
66469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66470$as_echo "$ac_try_echo") >&5
66471  (eval "$ac_compile") 2>conftest.er1
66472  ac_status=$?
66473  grep -v '^ *+' conftest.er1 >conftest.err
66474  rm -f conftest.er1
66475  cat conftest.err >&5
66476  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66477  (exit $ac_status); } && {
66478	 test -z "$ac_c_werror_flag" ||
66479	 test ! -s conftest.err
66480       } && test -s conftest.$ac_objext; then
66481  ac_header_compiler=yes
66482else
66483  $as_echo "$as_me: failed program was:" >&5
66484sed 's/^/| /' conftest.$ac_ext >&5
66485
66486	ac_header_compiler=no
66487fi
66488
66489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66490{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
66491$as_echo "$ac_header_compiler" >&6; }
66492
66493# Is the header present?
66494{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
66495$as_echo_n "checking $ac_header presence... " >&6; }
66496cat >conftest.$ac_ext <<_ACEOF
66497/* confdefs.h.  */
66498_ACEOF
66499cat confdefs.h >>conftest.$ac_ext
66500cat >>conftest.$ac_ext <<_ACEOF
66501/* end confdefs.h.  */
66502#include <$ac_header>
66503_ACEOF
66504if { (ac_try="$ac_cpp conftest.$ac_ext"
66505case "(($ac_try" in
66506  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66507  *) ac_try_echo=$ac_try;;
66508esac
66509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66510$as_echo "$ac_try_echo") >&5
66511  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
66512  ac_status=$?
66513  grep -v '^ *+' conftest.er1 >conftest.err
66514  rm -f conftest.er1
66515  cat conftest.err >&5
66516  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66517  (exit $ac_status); } >/dev/null && {
66518	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
66519	 test ! -s conftest.err
66520       }; then
66521  ac_header_preproc=yes
66522else
66523  $as_echo "$as_me: failed program was:" >&5
66524sed 's/^/| /' conftest.$ac_ext >&5
66525
66526  ac_header_preproc=no
66527fi
66528
66529rm -f conftest.err conftest.$ac_ext
66530{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
66531$as_echo "$ac_header_preproc" >&6; }
66532
66533# So?  What about this header?
66534case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
66535  yes:no: )
66536    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
66537$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
66538    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
66539$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
66540    ac_header_preproc=yes
66541    ;;
66542  no:yes:* )
66543    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
66544$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
66545    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
66546$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
66547    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
66548$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
66549    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
66550$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
66551    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
66552$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
66553    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
66554$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
66555
66556    ;;
66557esac
66558{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
66559$as_echo_n "checking for $ac_header... " >&6; }
66560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
66561  $as_echo_n "(cached) " >&6
66562else
66563  eval "$as_ac_Header=\$ac_header_preproc"
66564fi
66565ac_res=`eval 'as_val=${'$as_ac_Header'}
66566		 $as_echo "$as_val"'`
66567	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66568$as_echo "$ac_res" >&6; }
66569
66570fi
66571as_val=`eval 'as_val=${'$as_ac_Header'}
66572		 $as_echo "$as_val"'`
66573   if test "x$as_val" = x""yes; then
66574  cat >>confdefs.h <<_ACEOF
66575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
66576_ACEOF
66577
66578fi
66579
66580done
66581
66582
66583
66584
66585for ac_func in gethostname gethostbyname inet_ntop
66586do
66587as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
66588{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
66589$as_echo_n "checking for $ac_func... " >&6; }
66590if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
66591  $as_echo_n "(cached) " >&6
66592else
66593  cat >conftest.$ac_ext <<_ACEOF
66594/* confdefs.h.  */
66595_ACEOF
66596cat confdefs.h >>conftest.$ac_ext
66597cat >>conftest.$ac_ext <<_ACEOF
66598/* end confdefs.h.  */
66599/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
66600   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
66601#define $ac_func innocuous_$ac_func
66602
66603/* System header to define __stub macros and hopefully few prototypes,
66604    which can conflict with char $ac_func (); below.
66605    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
66606    <limits.h> exists even on freestanding compilers.  */
66607
66608#ifdef __STDC__
66609# include <limits.h>
66610#else
66611# include <assert.h>
66612#endif
66613
66614#undef $ac_func
66615
66616/* Override any GCC internal prototype to avoid an error.
66617   Use char because int might match the return type of a GCC
66618   builtin and then its argument prototype would still apply.  */
66619#ifdef __cplusplus
66620extern "C"
66621#endif
66622char $ac_func ();
66623/* The GNU C library defines this for functions which it implements
66624    to always fail with ENOSYS.  Some functions are actually named
66625    something starting with __ and the normal name is an alias.  */
66626#if defined __stub_$ac_func || defined __stub___$ac_func
66627choke me
66628#endif
66629
66630int
66631main ()
66632{
66633return $ac_func ();
66634  ;
66635  return 0;
66636}
66637_ACEOF
66638rm -f conftest.$ac_objext conftest$ac_exeext
66639if { (ac_try="$ac_link"
66640case "(($ac_try" in
66641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66642  *) ac_try_echo=$ac_try;;
66643esac
66644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66645$as_echo "$ac_try_echo") >&5
66646  (eval "$ac_link") 2>conftest.er1
66647  ac_status=$?
66648  grep -v '^ *+' conftest.er1 >conftest.err
66649  rm -f conftest.er1
66650  cat conftest.err >&5
66651  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66652  (exit $ac_status); } && {
66653	 test -z "$ac_c_werror_flag" ||
66654	 test ! -s conftest.err
66655       } && test -s conftest$ac_exeext && {
66656	 test "$cross_compiling" = yes ||
66657	 $as_test_x conftest$ac_exeext
66658       }; then
66659  eval "$as_ac_var=yes"
66660else
66661  $as_echo "$as_me: failed program was:" >&5
66662sed 's/^/| /' conftest.$ac_ext >&5
66663
66664	eval "$as_ac_var=no"
66665fi
66666
66667rm -rf conftest.dSYM
66668rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
66669      conftest$ac_exeext conftest.$ac_ext
66670fi
66671ac_res=`eval 'as_val=${'$as_ac_var'}
66672		 $as_echo "$as_val"'`
66673	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
66674$as_echo "$ac_res" >&6; }
66675as_val=`eval 'as_val=${'$as_ac_var'}
66676		 $as_echo "$as_val"'`
66677   if test "x$as_val" = x""yes; then
66678  cat >>confdefs.h <<_ACEOF
66679#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
66680_ACEOF
66681
66682fi
66683done
66684
66685
66686  { $as_echo "$as_me:$LINENO: checking for IPv6 sockets" >&5
66687$as_echo_n "checking for IPv6 sockets... " >&6; }
66688  if test "${gt_cv_socket_ipv6+set}" = set; then
66689  $as_echo_n "(cached) " >&6
66690else
66691
66692    cat >conftest.$ac_ext <<_ACEOF
66693/* confdefs.h.  */
66694_ACEOF
66695cat confdefs.h >>conftest.$ac_ext
66696cat >>conftest.$ac_ext <<_ACEOF
66697/* end confdefs.h.  */
66698
66699#include <sys/types.h>
66700#include <sys/socket.h>
66701#include <netinet/in.h>
66702int
66703main ()
66704{
66705int x = AF_INET6; struct in6_addr y; struct sockaddr_in6 z;
66706  ;
66707  return 0;
66708}
66709_ACEOF
66710rm -f conftest.$ac_objext
66711if { (ac_try="$ac_compile"
66712case "(($ac_try" in
66713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
66714  *) ac_try_echo=$ac_try;;
66715esac
66716eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
66717$as_echo "$ac_try_echo") >&5
66718  (eval "$ac_compile") 2>conftest.er1
66719  ac_status=$?
66720  grep -v '^ *+' conftest.er1 >conftest.err
66721  rm -f conftest.er1
66722  cat conftest.err >&5
66723  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
66724  (exit $ac_status); } && {
66725	 test -z "$ac_c_werror_flag" ||
66726	 test ! -s conftest.err
66727       } && test -s conftest.$ac_objext; then
66728  gt_cv_socket_ipv6=yes
66729else
66730  $as_echo "$as_me: failed program was:" >&5
66731sed 's/^/| /' conftest.$ac_ext >&5
66732
66733	gt_cv_socket_ipv6=no
66734fi
66735
66736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
66737
66738fi
66739
66740  { $as_echo "$as_me:$LINENO: result: $gt_cv_socket_ipv6" >&5
66741$as_echo "$gt_cv_socket_ipv6" >&6; }
66742  if test $gt_cv_socket_ipv6 = yes; then
66743
66744cat >>confdefs.h <<\_ACEOF
66745#define HAVE_IPV6 1
66746_ACEOF
66747
66748  fi
66749
66750
66751if test "$enable_shared" = yes; then
66752  case "$host_os" in
66753    mingw* | cygwin*) is_woe32dll=yes ;;
66754    *) is_woe32dll=no ;;
66755  esac
66756else
66757  is_woe32dll=no
66758fi
66759 if test $is_woe32dll = yes; then
66760  WOE32DLL_TRUE=
66761  WOE32DLL_FALSE='#'
66762else
66763  WOE32DLL_TRUE='#'
66764  WOE32DLL_FALSE=
66765fi
66766
66767if test $is_woe32dll = yes; then
66768
66769cat >>confdefs.h <<\_ACEOF
66770#define WOE32DLL 1
66771_ACEOF
66772
66773fi
66774
66775
66776
66777
66778
66779
66780case "$host_os" in
66781  linux*)
66782
66783cat >>confdefs.h <<\_ACEOF
66784#define DYNLOAD_LIBEXPAT 1
66785_ACEOF
66786
66787    LIBEXPAT="-ldl"
66788    LTLIBEXPAT="-ldl"
66789
66790
66791    ;;
66792  *)
66793
66794
66795
66796
66797
66798
66799
66800
66801
66802
66803    use_additional=yes
66804
66805  acl_save_prefix="$prefix"
66806  prefix="$acl_final_prefix"
66807  acl_save_exec_prefix="$exec_prefix"
66808  exec_prefix="$acl_final_exec_prefix"
66809
66810    eval additional_includedir=\"$includedir\"
66811    eval additional_libdir=\"$libdir\"
66812
66813  exec_prefix="$acl_save_exec_prefix"
66814  prefix="$acl_save_prefix"
66815
66816
66817# Check whether --with-libexpat-prefix was given.
66818if test "${with_libexpat_prefix+set}" = set; then
66819  withval=$with_libexpat_prefix;
66820    if test "X$withval" = "Xno"; then
66821      use_additional=no
66822    else
66823      if test "X$withval" = "X"; then
66824
66825  acl_save_prefix="$prefix"
66826  prefix="$acl_final_prefix"
66827  acl_save_exec_prefix="$exec_prefix"
66828  exec_prefix="$acl_final_exec_prefix"
66829
66830          eval additional_includedir=\"$includedir\"
66831          eval additional_libdir=\"$libdir\"
66832
66833  exec_prefix="$acl_save_exec_prefix"
66834  prefix="$acl_save_prefix"
66835
66836      else
66837        additional_includedir="$withval/include"
66838        additional_libdir="$withval/$acl_libdirstem"
66839      fi
66840    fi
66841
66842fi
66843
66844      LIBEXPAT=
66845  LTLIBEXPAT=
66846  INCEXPAT=
66847  LIBEXPAT_PREFIX=
66848  rpathdirs=
66849  ltrpathdirs=
66850  names_already_handled=
66851  names_next_round='expat '
66852  while test -n "$names_next_round"; do
66853    names_this_round="$names_next_round"
66854    names_next_round=
66855    for name in $names_this_round; do
66856      already_handled=
66857      for n in $names_already_handled; do
66858        if test "$n" = "$name"; then
66859          already_handled=yes
66860          break
66861        fi
66862      done
66863      if test -z "$already_handled"; then
66864        names_already_handled="$names_already_handled $name"
66865                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
66866        eval value=\"\$HAVE_LIB$uppername\"
66867        if test -n "$value"; then
66868          if test "$value" = yes; then
66869            eval value=\"\$LIB$uppername\"
66870            test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
66871            eval value=\"\$LTLIB$uppername\"
66872            test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
66873          else
66874                                    :
66875          fi
66876        else
66877                              found_dir=
66878          found_la=
66879          found_so=
66880          found_a=
66881          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
66882          if test -n "$acl_shlibext"; then
66883            shrext=".$acl_shlibext"             # typically: shrext=.so
66884          else
66885            shrext=
66886          fi
66887          if test $use_additional = yes; then
66888            dir="$additional_libdir"
66889                                    if test -n "$acl_shlibext"; then
66890              if test -f "$dir/$libname$shrext"; then
66891                found_dir="$dir"
66892                found_so="$dir/$libname$shrext"
66893              else
66894                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
66895                  ver=`(cd "$dir" && \
66896                        for f in "$libname$shrext".*; do echo "$f"; done \
66897                        | sed -e "s,^$libname$shrext\\\\.,," \
66898                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
66899                        | sed 1q ) 2>/dev/null`
66900                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
66901                    found_dir="$dir"
66902                    found_so="$dir/$libname$shrext.$ver"
66903                  fi
66904                else
66905                  eval library_names=\"$acl_library_names_spec\"
66906                  for f in $library_names; do
66907                    if test -f "$dir/$f"; then
66908                      found_dir="$dir"
66909                      found_so="$dir/$f"
66910                      break
66911                    fi
66912                  done
66913                fi
66914              fi
66915            fi
66916                        if test "X$found_dir" = "X"; then
66917              if test -f "$dir/$libname.$acl_libext"; then
66918                found_dir="$dir"
66919                found_a="$dir/$libname.$acl_libext"
66920              fi
66921            fi
66922            if test "X$found_dir" != "X"; then
66923              if test -f "$dir/$libname.la"; then
66924                found_la="$dir/$libname.la"
66925              fi
66926            fi
66927          fi
66928          if test "X$found_dir" = "X"; then
66929            for x in $LDFLAGS $LTLIBEXPAT; do
66930
66931  acl_save_prefix="$prefix"
66932  prefix="$acl_final_prefix"
66933  acl_save_exec_prefix="$exec_prefix"
66934  exec_prefix="$acl_final_exec_prefix"
66935  eval x=\"$x\"
66936  exec_prefix="$acl_save_exec_prefix"
66937  prefix="$acl_save_prefix"
66938
66939              case "$x" in
66940                -L*)
66941                  dir=`echo "X$x" | sed -e 's/^X-L//'`
66942                                    if test -n "$acl_shlibext"; then
66943                    if test -f "$dir/$libname$shrext"; then
66944                      found_dir="$dir"
66945                      found_so="$dir/$libname$shrext"
66946                    else
66947                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
66948                        ver=`(cd "$dir" && \
66949                              for f in "$libname$shrext".*; do echo "$f"; done \
66950                              | sed -e "s,^$libname$shrext\\\\.,," \
66951                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
66952                              | sed 1q ) 2>/dev/null`
66953                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
66954                          found_dir="$dir"
66955                          found_so="$dir/$libname$shrext.$ver"
66956                        fi
66957                      else
66958                        eval library_names=\"$acl_library_names_spec\"
66959                        for f in $library_names; do
66960                          if test -f "$dir/$f"; then
66961                            found_dir="$dir"
66962                            found_so="$dir/$f"
66963                            break
66964                          fi
66965                        done
66966                      fi
66967                    fi
66968                  fi
66969                                    if test "X$found_dir" = "X"; then
66970                    if test -f "$dir/$libname.$acl_libext"; then
66971                      found_dir="$dir"
66972                      found_a="$dir/$libname.$acl_libext"
66973                    fi
66974                  fi
66975                  if test "X$found_dir" != "X"; then
66976                    if test -f "$dir/$libname.la"; then
66977                      found_la="$dir/$libname.la"
66978                    fi
66979                  fi
66980                  ;;
66981              esac
66982              if test "X$found_dir" != "X"; then
66983                break
66984              fi
66985            done
66986          fi
66987          if test "X$found_dir" != "X"; then
66988                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
66989            if test "X$found_so" != "X"; then
66990                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
66991                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
66992              else
66993                                                                                haveit=
66994                for x in $ltrpathdirs; do
66995                  if test "X$x" = "X$found_dir"; then
66996                    haveit=yes
66997                    break
66998                  fi
66999                done
67000                if test -z "$haveit"; then
67001                  ltrpathdirs="$ltrpathdirs $found_dir"
67002                fi
67003                                if test "$acl_hardcode_direct" = yes; then
67004                                                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
67005                else
67006                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
67007                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
67008                                                            haveit=
67009                    for x in $rpathdirs; do
67010                      if test "X$x" = "X$found_dir"; then
67011                        haveit=yes
67012                        break
67013                      fi
67014                    done
67015                    if test -z "$haveit"; then
67016                      rpathdirs="$rpathdirs $found_dir"
67017                    fi
67018                  else
67019                                                                                haveit=
67020                    for x in $LDFLAGS $LIBEXPAT; do
67021
67022  acl_save_prefix="$prefix"
67023  prefix="$acl_final_prefix"
67024  acl_save_exec_prefix="$exec_prefix"
67025  exec_prefix="$acl_final_exec_prefix"
67026  eval x=\"$x\"
67027  exec_prefix="$acl_save_exec_prefix"
67028  prefix="$acl_save_prefix"
67029
67030                      if test "X$x" = "X-L$found_dir"; then
67031                        haveit=yes
67032                        break
67033                      fi
67034                    done
67035                    if test -z "$haveit"; then
67036                      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
67037                    fi
67038                    if test "$acl_hardcode_minus_L" != no; then
67039                                                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
67040                    else
67041                                                                                                                                                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
67042                    fi
67043                  fi
67044                fi
67045              fi
67046            else
67047              if test "X$found_a" != "X"; then
67048                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
67049              else
67050                                                LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
67051              fi
67052            fi
67053                        additional_includedir=
67054            case "$found_dir" in
67055              */$acl_libdirstem | */$acl_libdirstem/)
67056                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
67057                LIBEXPAT_PREFIX="$basedir"
67058                additional_includedir="$basedir/include"
67059                ;;
67060            esac
67061            if test "X$additional_includedir" != "X"; then
67062                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
67063                haveit=
67064                if test "X$additional_includedir" = "X/usr/local/include"; then
67065                  if test -n "$GCC"; then
67066                    case $host_os in
67067                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
67068                    esac
67069                  fi
67070                fi
67071                if test -z "$haveit"; then
67072                  for x in $CPPFLAGS $INCEXPAT; do
67073
67074  acl_save_prefix="$prefix"
67075  prefix="$acl_final_prefix"
67076  acl_save_exec_prefix="$exec_prefix"
67077  exec_prefix="$acl_final_exec_prefix"
67078  eval x=\"$x\"
67079  exec_prefix="$acl_save_exec_prefix"
67080  prefix="$acl_save_prefix"
67081
67082                    if test "X$x" = "X-I$additional_includedir"; then
67083                      haveit=yes
67084                      break
67085                    fi
67086                  done
67087                  if test -z "$haveit"; then
67088                    if test -d "$additional_includedir"; then
67089                                            INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
67090                    fi
67091                  fi
67092                fi
67093              fi
67094            fi
67095                        if test -n "$found_la"; then
67096                                                        save_libdir="$libdir"
67097              case "$found_la" in
67098                */* | *\\*) . "$found_la" ;;
67099                *) . "./$found_la" ;;
67100              esac
67101              libdir="$save_libdir"
67102                            for dep in $dependency_libs; do
67103                case "$dep" in
67104                  -L*)
67105                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
67106                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
67107                      haveit=
67108                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
67109                        if test -n "$GCC"; then
67110                          case $host_os in
67111                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
67112                          esac
67113                        fi
67114                      fi
67115                      if test -z "$haveit"; then
67116                        haveit=
67117                        for x in $LDFLAGS $LIBEXPAT; do
67118
67119  acl_save_prefix="$prefix"
67120  prefix="$acl_final_prefix"
67121  acl_save_exec_prefix="$exec_prefix"
67122  exec_prefix="$acl_final_exec_prefix"
67123  eval x=\"$x\"
67124  exec_prefix="$acl_save_exec_prefix"
67125  prefix="$acl_save_prefix"
67126
67127                          if test "X$x" = "X-L$additional_libdir"; then
67128                            haveit=yes
67129                            break
67130                          fi
67131                        done
67132                        if test -z "$haveit"; then
67133                          if test -d "$additional_libdir"; then
67134                                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
67135                          fi
67136                        fi
67137                        haveit=
67138                        for x in $LDFLAGS $LTLIBEXPAT; do
67139
67140  acl_save_prefix="$prefix"
67141  prefix="$acl_final_prefix"
67142  acl_save_exec_prefix="$exec_prefix"
67143  exec_prefix="$acl_final_exec_prefix"
67144  eval x=\"$x\"
67145  exec_prefix="$acl_save_exec_prefix"
67146  prefix="$acl_save_prefix"
67147
67148                          if test "X$x" = "X-L$additional_libdir"; then
67149                            haveit=yes
67150                            break
67151                          fi
67152                        done
67153                        if test -z "$haveit"; then
67154                          if test -d "$additional_libdir"; then
67155                                                        LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
67156                          fi
67157                        fi
67158                      fi
67159                    fi
67160                    ;;
67161                  -R*)
67162                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
67163                    if test "$enable_rpath" != no; then
67164                                                                  haveit=
67165                      for x in $rpathdirs; do
67166                        if test "X$x" = "X$dir"; then
67167                          haveit=yes
67168                          break
67169                        fi
67170                      done
67171                      if test -z "$haveit"; then
67172                        rpathdirs="$rpathdirs $dir"
67173                      fi
67174                                                                  haveit=
67175                      for x in $ltrpathdirs; do
67176                        if test "X$x" = "X$dir"; then
67177                          haveit=yes
67178                          break
67179                        fi
67180                      done
67181                      if test -z "$haveit"; then
67182                        ltrpathdirs="$ltrpathdirs $dir"
67183                      fi
67184                    fi
67185                    ;;
67186                  -l*)
67187                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
67188                    ;;
67189                  *.la)
67190                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
67191                    ;;
67192                  *)
67193                                        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
67194                    LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
67195                    ;;
67196                esac
67197              done
67198            fi
67199          else
67200                                                            LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
67201            LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
67202          fi
67203        fi
67204      fi
67205    done
67206  done
67207  if test "X$rpathdirs" != "X"; then
67208    if test -n "$acl_hardcode_libdir_separator"; then
67209                        alldirs=
67210      for found_dir in $rpathdirs; do
67211        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
67212      done
67213            acl_save_libdir="$libdir"
67214      libdir="$alldirs"
67215      eval flag=\"$acl_hardcode_libdir_flag_spec\"
67216      libdir="$acl_save_libdir"
67217      LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
67218    else
67219            for found_dir in $rpathdirs; do
67220        acl_save_libdir="$libdir"
67221        libdir="$found_dir"
67222        eval flag=\"$acl_hardcode_libdir_flag_spec\"
67223        libdir="$acl_save_libdir"
67224        LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
67225      done
67226    fi
67227  fi
67228  if test "X$ltrpathdirs" != "X"; then
67229            for found_dir in $ltrpathdirs; do
67230      LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
67231    done
67232  fi
67233
67234
67235        ac_save_CPPFLAGS="$CPPFLAGS"
67236
67237  for element in $INCEXPAT; do
67238    haveit=
67239    for x in $CPPFLAGS; do
67240
67241  acl_save_prefix="$prefix"
67242  prefix="$acl_final_prefix"
67243  acl_save_exec_prefix="$exec_prefix"
67244  exec_prefix="$acl_final_exec_prefix"
67245  eval x=\"$x\"
67246  exec_prefix="$acl_save_exec_prefix"
67247  prefix="$acl_save_prefix"
67248
67249      if test "X$x" = "X$element"; then
67250        haveit=yes
67251        break
67252      fi
67253    done
67254    if test -z "$haveit"; then
67255      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
67256    fi
67257  done
67258
67259
67260  { $as_echo "$as_me:$LINENO: checking for libexpat" >&5
67261$as_echo_n "checking for libexpat... " >&6; }
67262if test "${ac_cv_libexpat+set}" = set; then
67263  $as_echo_n "(cached) " >&6
67264else
67265
67266    ac_save_LIBS="$LIBS"
67267    LIBS="$LIBS $LIBEXPAT"
67268    cat >conftest.$ac_ext <<_ACEOF
67269/* confdefs.h.  */
67270_ACEOF
67271cat confdefs.h >>conftest.$ac_ext
67272cat >>conftest.$ac_ext <<_ACEOF
67273/* end confdefs.h.  */
67274#include <expat.h>
67275int
67276main ()
67277{
67278XML_ExpatVersion();
67279  ;
67280  return 0;
67281}
67282_ACEOF
67283rm -f conftest.$ac_objext conftest$ac_exeext
67284if { (ac_try="$ac_link"
67285case "(($ac_try" in
67286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
67287  *) ac_try_echo=$ac_try;;
67288esac
67289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
67290$as_echo "$ac_try_echo") >&5
67291  (eval "$ac_link") 2>conftest.er1
67292  ac_status=$?
67293  grep -v '^ *+' conftest.er1 >conftest.err
67294  rm -f conftest.er1
67295  cat conftest.err >&5
67296  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67297  (exit $ac_status); } && {
67298	 test -z "$ac_c_werror_flag" ||
67299	 test ! -s conftest.err
67300       } && test -s conftest$ac_exeext && {
67301	 test "$cross_compiling" = yes ||
67302	 $as_test_x conftest$ac_exeext
67303       }; then
67304  ac_cv_libexpat=yes
67305else
67306  $as_echo "$as_me: failed program was:" >&5
67307sed 's/^/| /' conftest.$ac_ext >&5
67308
67309	ac_cv_libexpat=no
67310fi
67311
67312rm -rf conftest.dSYM
67313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
67314      conftest$ac_exeext conftest.$ac_ext
67315    LIBS="$ac_save_LIBS"
67316
67317fi
67318{ $as_echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
67319$as_echo "$ac_cv_libexpat" >&6; }
67320  if test "$ac_cv_libexpat" = yes; then
67321    HAVE_LIBEXPAT=yes
67322
67323cat >>confdefs.h <<\_ACEOF
67324#define HAVE_LIBEXPAT 1
67325_ACEOF
67326
67327    { $as_echo "$as_me:$LINENO: checking how to link with libexpat" >&5
67328$as_echo_n "checking how to link with libexpat... " >&6; }
67329    { $as_echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
67330$as_echo "$LIBEXPAT" >&6; }
67331  else
67332    HAVE_LIBEXPAT=no
67333            CPPFLAGS="$ac_save_CPPFLAGS"
67334    LIBEXPAT=
67335    LTLIBEXPAT=
67336    LIBEXPAT_PREFIX=
67337  fi
67338
67339
67340
67341
67342
67343
67344
67345    ;;
67346esac
67347
67348
67349
67350
67351     GLOBAL_SYMBOL_PIPE=$lt_cv_sys_global_symbol_pipe
67352
67353  if test -n "$GLOBAL_SYMBOL_PIPE"; then
67354    HAVE_GLOBAL_SYMBOL_PIPE=1
67355  else
67356    HAVE_GLOBAL_SYMBOL_PIPE=
67357  fi
67358
67359
67360
67361 # If set to t, that means we are running in a shell under Emacs.
67362 # If you have an Emacs named "t", then use the full path.
67363 test x"$EMACS" = xt && EMACS=
67364 for ac_prog in emacs xemacs
67365do
67366  # Extract the first word of "$ac_prog", so it can be a program name with args.
67367set dummy $ac_prog; ac_word=$2
67368{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
67369$as_echo_n "checking for $ac_word... " >&6; }
67370if test "${ac_cv_prog_EMACS+set}" = set; then
67371  $as_echo_n "(cached) " >&6
67372else
67373  if test -n "$EMACS"; then
67374  ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
67375else
67376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
67377for as_dir in $PATH
67378do
67379  IFS=$as_save_IFS
67380  test -z "$as_dir" && as_dir=.
67381  for ac_exec_ext in '' $ac_executable_extensions; do
67382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
67383    ac_cv_prog_EMACS="$ac_prog"
67384    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
67385    break 2
67386  fi
67387done
67388done
67389IFS=$as_save_IFS
67390
67391fi
67392fi
67393EMACS=$ac_cv_prog_EMACS
67394if test -n "$EMACS"; then
67395  { $as_echo "$as_me:$LINENO: result: $EMACS" >&5
67396$as_echo "$EMACS" >&6; }
67397else
67398  { $as_echo "$as_me:$LINENO: result: no" >&5
67399$as_echo "no" >&6; }
67400fi
67401
67402
67403  test -n "$EMACS" && break
67404done
67405test -n "$EMACS" || EMACS="no"
67406
67407
67408
67409
67410# Check whether --with-lispdir was given.
67411if test "${with_lispdir+set}" = set; then
67412  withval=$with_lispdir;  lispdir="$withval"
67413   { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
67414$as_echo_n "checking where .elc files should go... " >&6; }
67415   { $as_echo "$as_me:$LINENO: result: $lispdir" >&5
67416$as_echo "$lispdir" >&6; }
67417else
67418
67419 { $as_echo "$as_me:$LINENO: checking where .elc files should go" >&5
67420$as_echo_n "checking where .elc files should go... " >&6; }
67421if test "${am_cv_lispdir+set}" = set; then
67422  $as_echo_n "(cached) " >&6
67423else
67424
67425   if test $EMACS != "no"; then
67426     if test x${lispdir+set} != xset; then
67427  # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
67428  # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
67429  #  which is non-obvious for non-emacs users.
67430  # Redirecting /dev/null should help a bit; pity we can't detect "broken"
67431  #  emacsen earlier and avoid running this altogether.
67432  { ($as_echo "$as_me:$LINENO: \$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out") >&5
67433  ($EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
67434  ac_status=$?
67435  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67436  (exit $ac_status); }
67437	am_cv_lispdir=`sed -n \
67438       -e 's,/$,,' \
67439       -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
67440       -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
67441       conftest.out`
67442       rm conftest.out
67443     fi
67444   fi
67445   test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
67446
67447fi
67448{ $as_echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
67449$as_echo "$am_cv_lispdir" >&6; }
67450  lispdir="$am_cv_lispdir"
67451
67452fi
67453
67454
67455
67456
67457# Check whether --with-emacs was given.
67458if test "${with_emacs+set}" = set; then
67459  withval=$with_emacs; gt_use_emacs=$withval
67460else
67461  gt_use_emacs=yes
67462fi
67463
67464if test "$EMACS" != no; then
67465  { $as_echo "$as_me:$LINENO: checking whether Emacs support is requested" >&5
67466$as_echo_n "checking whether Emacs support is requested... " >&6; }
67467  { $as_echo "$as_me:$LINENO: result: $gt_use_emacs" >&5
67468$as_echo "$gt_use_emacs" >&6; }
67469  if test "$gt_use_emacs" = no; then
67470    EMACS=no
67471  fi
67472fi
67473
67474aclocaldir='${datadir}/aclocal'
67475
67476
67477ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
67478# Extract the first word of "dvips", so it can be a program name with args.
67479set dummy dvips; ac_word=$2
67480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
67481$as_echo_n "checking for $ac_word... " >&6; }
67482if test "${ac_cv_path_DVIPS+set}" = set; then
67483  $as_echo_n "(cached) " >&6
67484else
67485  case $DVIPS in
67486  [\\/]* | ?:[\\/]*)
67487  ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
67488  ;;
67489  *)
67490  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
67491for as_dir in $PATH
67492do
67493  IFS=$as_save_IFS
67494  test -z "$as_dir" && as_dir=.
67495  for ac_exec_ext in '' $ac_executable_extensions; do
67496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
67497    ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
67498    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
67499    break 2
67500  fi
67501done
67502done
67503IFS=$as_save_IFS
67504
67505  test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS="$ac_aux_dir_abs/missing dvips"
67506  ;;
67507esac
67508fi
67509DVIPS=$ac_cv_path_DVIPS
67510if test -n "$DVIPS"; then
67511  { $as_echo "$as_me:$LINENO: result: $DVIPS" >&5
67512$as_echo "$DVIPS" >&6; }
67513else
67514  { $as_echo "$as_me:$LINENO: result: no" >&5
67515$as_echo "no" >&6; }
67516fi
67517
67518
67519# Extract the first word of "texi2pdf", so it can be a program name with args.
67520set dummy texi2pdf; ac_word=$2
67521{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
67522$as_echo_n "checking for $ac_word... " >&6; }
67523if test "${ac_cv_path_TEXI2PDF+set}" = set; then
67524  $as_echo_n "(cached) " >&6
67525else
67526  case $TEXI2PDF in
67527  [\\/]* | ?:[\\/]*)
67528  ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
67529  ;;
67530  *)
67531  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
67532for as_dir in $PATH
67533do
67534  IFS=$as_save_IFS
67535  test -z "$as_dir" && as_dir=.
67536  for ac_exec_ext in '' $ac_executable_extensions; do
67537  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
67538    ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
67539    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
67540    break 2
67541  fi
67542done
67543done
67544IFS=$as_save_IFS
67545
67546  test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF="$ac_aux_dir_abs/missing texi2pdf"
67547  ;;
67548esac
67549fi
67550TEXI2PDF=$ac_cv_path_TEXI2PDF
67551if test -n "$TEXI2PDF"; then
67552  { $as_echo "$as_me:$LINENO: result: $TEXI2PDF" >&5
67553$as_echo "$TEXI2PDF" >&6; }
67554else
67555  { $as_echo "$as_me:$LINENO: result: no" >&5
67556$as_echo "no" >&6; }
67557fi
67558
67559
67560# Extract the first word of "perl", so it can be a program name with args.
67561set dummy perl; ac_word=$2
67562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
67563$as_echo_n "checking for $ac_word... " >&6; }
67564if test "${ac_cv_path_PERL+set}" = set; then
67565  $as_echo_n "(cached) " >&6
67566else
67567  case $PERL in
67568  [\\/]* | ?:[\\/]*)
67569  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
67570  ;;
67571  *)
67572  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
67573for as_dir in $PATH
67574do
67575  IFS=$as_save_IFS
67576  test -z "$as_dir" && as_dir=.
67577  for ac_exec_ext in '' $ac_executable_extensions; do
67578  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
67579    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
67580    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
67581    break 2
67582  fi
67583done
67584done
67585IFS=$as_save_IFS
67586
67587  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="$ac_aux_dir_abs/missing perl"
67588  ;;
67589esac
67590fi
67591PERL=$ac_cv_path_PERL
67592if test -n "$PERL"; then
67593  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
67594$as_echo "$PERL" >&6; }
67595else
67596  { $as_echo "$as_me:$LINENO: result: no" >&5
67597$as_echo "no" >&6; }
67598fi
67599
67600
67601
67602CROSS_COMPILING=$cross_compiling
67603
67604
67605
67606for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
67607do
67608  # Extract the first word of "$ac_prog", so it can be a program name with args.
67609set dummy $ac_prog; ac_word=$2
67610{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
67611$as_echo_n "checking for $ac_word... " >&6; }
67612if test "${ac_cv_prog_CXX+set}" = set; then
67613  $as_echo_n "(cached) " >&6
67614else
67615  if test -n "$CXX"; then
67616  ac_cv_prog_CXX="$CXX" # Let the user override the test.
67617else
67618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
67619for as_dir in $PATH
67620do
67621  IFS=$as_save_IFS
67622  test -z "$as_dir" && as_dir=.
67623  for ac_exec_ext in '' $ac_executable_extensions; do
67624  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
67625    ac_cv_prog_CXX="$ac_prog"
67626    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
67627    break 2
67628  fi
67629done
67630done
67631IFS=$as_save_IFS
67632
67633fi
67634fi
67635CXX=$ac_cv_prog_CXX
67636if test -n "$CXX"; then
67637  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
67638$as_echo "$CXX" >&6; }
67639else
67640  { $as_echo "$as_me:$LINENO: result: no" >&5
67641$as_echo "no" >&6; }
67642fi
67643
67644
67645  test -n "$CXX" && break
67646done
67647test -n "$CXX" || CXX=":"
67648
67649if test "$CXX" != ":"; then
67650      { $as_echo "$as_me:$LINENO: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
67651$as_echo_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works... " >&6; }
67652  ac_ext=cpp
67653ac_cpp='$CXXCPP $CPPFLAGS'
67654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
67655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
67656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
67657
67658
67659
67660  echo 'int main () { return 0; }' > conftest.$ac_ext
67661  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67662  (eval $ac_link) 2>&5
67663  ac_status=$?
67664  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67665  (exit $ac_status); } && test -s conftest$ac_exeext; then
67666    ac_cv_prog_cxx_works=yes
67667    if (./conftest; exit) 2>/dev/null; then
67668      ac_cv_prog_cxx_cross=no
67669    else
67670      ac_cv_prog_cxx_cross=yes
67671    fi
67672  else
67673    ac_cv_prog_cxx_works=no
67674  fi
67675  rm -fr conftest*
67676  ac_ext=c
67677ac_cpp='$CPP $CPPFLAGS'
67678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
67679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
67680ac_compiler_gnu=$ac_cv_c_compiler_gnu
67681
67682  { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_works" >&5
67683$as_echo "$ac_cv_prog_cxx_works" >&6; }
67684  if test $ac_cv_prog_cxx_works = no; then
67685    CXX=:
67686  else
67687            { $as_echo "$as_me:$LINENO: checking whether the C++ compiler supports namespaces" >&5
67688$as_echo_n "checking whether the C++ compiler supports namespaces... " >&6; }
67689    ac_ext=cpp
67690ac_cpp='$CXXCPP $CPPFLAGS'
67691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
67692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
67693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
67694
67695    cat <<EOF > conftest.$ac_ext
67696#include <iostream>
67697namespace test { using namespace std; }
67698std::ostream* ptr;
67699int main () { return 0; }
67700EOF
67701    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67702  (eval $ac_link) 2>&5
67703  ac_status=$?
67704  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67705  (exit $ac_status); } && test -s conftest$ac_exeext; then
67706      gt_cv_prog_cxx_namespaces=yes
67707    else
67708      gt_cv_prog_cxx_namespaces=no
67709    fi
67710    rm -fr conftest*
67711    ac_ext=c
67712ac_cpp='$CPP $CPPFLAGS'
67713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
67714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
67715ac_compiler_gnu=$ac_cv_c_compiler_gnu
67716
67717    { $as_echo "$as_me:$LINENO: result: $gt_cv_prog_cxx_namespaces" >&5
67718$as_echo "$gt_cv_prog_cxx_namespaces" >&6; }
67719    if test $gt_cv_prog_cxx_namespaces = no; then
67720      CXX=:
67721    fi
67722  fi
67723fi
67724
67725
67726
67727
67728  { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
67729$as_echo_n "checking for a traditional french locale... " >&6; }
67730if test "${gt_cv_locale_fr+set}" = set; then
67731  $as_echo_n "(cached) " >&6
67732else
67733
67734    macosx=
67735    case "$host_os" in
67736      darwin[56]*) ;;
67737      darwin*) macosx=yes;;
67738    esac
67739    if test -n "$macosx"; then
67740      # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8
67741      # encodings, but the kernel does not support them. The documentation
67742      # says:
67743      #   "... all code that calls BSD system routines should ensure
67744      #    that the const *char parameters of these routines are in UTF-8
67745      #    encoding. All BSD system functions expect their string
67746      #    parameters to be in UTF-8 encoding and nothing else."
67747      # See the comments in config.charset. Therefore we bypass the test.
67748      gt_cv_locale_fr=none
67749    else
67750      cat >conftest.$ac_ext <<_ACEOF
67751/* confdefs.h.  */
67752_ACEOF
67753cat confdefs.h >>conftest.$ac_ext
67754cat >>conftest.$ac_ext <<_ACEOF
67755/* end confdefs.h.  */
67756
67757#include <locale.h>
67758#include <time.h>
67759#if HAVE_LANGINFO_CODESET
67760# include <langinfo.h>
67761#endif
67762#include <stdlib.h>
67763#include <string.h>
67764struct tm t;
67765char buf[16];
67766int main () {
67767  /* Check whether the given locale name is recognized by the system.  */
67768  if (setlocale (LC_ALL, "") == NULL) return 1;
67769  /* Check whether nl_langinfo(CODESET) is nonempty.
67770     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
67771     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
67772#if HAVE_LANGINFO_CODESET
67773  if (nl_langinfo (CODESET) [0] == '\0') return 1;
67774#endif
67775#ifdef __CYGWIN__
67776  /* On Cygwin, avoid locale names without encoding suffix, because the
67777     locale_charset() function relies on the encoding suffix.  Note that
67778     LC_ALL is set on the command line.  */
67779  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
67780#endif
67781  /* Check whether in the abbreviation of the second month, the second
67782     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
67783     one byte long. This excludes the UTF-8 encoding.  */
67784  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
67785  if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
67786  /* Check whether the decimal separator is a comma.
67787     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
67788     are nl_langinfo(RADIXCHAR) are both ".".  */
67789  if (localeconv () ->decimal_point[0] != ',') return 1;
67790  return 0;
67791}
67792
67793_ACEOF
67794      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67795  (eval $ac_link) 2>&5
67796  ac_status=$?
67797  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67798  (exit $ac_status); } && test -s conftest$ac_exeext; then
67799        # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
67800        # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
67801        # configure script would override the LC_ALL setting. Likewise for
67802        # LC_CTYPE, which is also set at the beginning of the configure script.
67803        # Test for the usual locale name.
67804        if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
67805          gt_cv_locale_fr=fr_FR
67806        else
67807          # Test for the locale name with explicit encoding suffix.
67808          if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
67809            gt_cv_locale_fr=fr_FR.ISO-8859-1
67810          else
67811            # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
67812            if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
67813              gt_cv_locale_fr=fr_FR.ISO8859-1
67814            else
67815              # Test for the HP-UX locale name.
67816              if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
67817                gt_cv_locale_fr=fr_FR.iso88591
67818              else
67819                # Test for the Solaris 7 locale name.
67820                if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
67821                  gt_cv_locale_fr=fr
67822                else
67823                  # None found.
67824                  gt_cv_locale_fr=none
67825                fi
67826              fi
67827            fi
67828          fi
67829        fi
67830      fi
67831      rm -fr conftest*
67832    fi
67833
67834fi
67835{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
67836$as_echo "$gt_cv_locale_fr" >&6; }
67837  LOCALE_FR=$gt_cv_locale_fr
67838
67839
67840
67841
67842  { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
67843$as_echo_n "checking for a french Unicode locale... " >&6; }
67844if test "${gt_cv_locale_fr_utf8+set}" = set; then
67845  $as_echo_n "(cached) " >&6
67846else
67847
67848    cat >conftest.$ac_ext <<_ACEOF
67849/* confdefs.h.  */
67850_ACEOF
67851cat confdefs.h >>conftest.$ac_ext
67852cat >>conftest.$ac_ext <<_ACEOF
67853/* end confdefs.h.  */
67854
67855#include <locale.h>
67856#include <time.h>
67857#if HAVE_LANGINFO_CODESET
67858# include <langinfo.h>
67859#endif
67860#include <stdlib.h>
67861#include <string.h>
67862struct tm t;
67863char buf[16];
67864int main () {
67865  /* On BeOS, locales are not implemented in libc.  Rather, libintl
67866     imitates locale dependent behaviour by looking at the environment
67867     variables, and all locales use the UTF-8 encoding.  */
67868#if !defined(__BEOS__)
67869  /* Check whether the given locale name is recognized by the system.  */
67870  if (setlocale (LC_ALL, "") == NULL) return 1;
67871  /* Check whether nl_langinfo(CODESET) is nonempty.
67872     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
67873     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
67874# if HAVE_LANGINFO_CODESET
67875  if (nl_langinfo (CODESET) [0] == '\0') return 1;
67876# endif
67877# ifdef __CYGWIN__
67878  /* On Cygwin, avoid locale names without encoding suffix, because the
67879     locale_charset() function relies on the encoding suffix.  Note that
67880     LC_ALL is set on the command line.  */
67881  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
67882# endif
67883  /* Check whether in the abbreviation of the second month, the second
67884     character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
67885     two bytes long, with UTF-8 encoding.  */
67886  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
67887  if (strftime (buf, sizeof (buf), "%b", &t) < 4
67888      || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
67889    return 1;
67890#endif
67891  /* Check whether the decimal separator is a comma.
67892     On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
67893     are nl_langinfo(RADIXCHAR) are both ".".  */
67894  if (localeconv () ->decimal_point[0] != ',') return 1;
67895  return 0;
67896}
67897
67898_ACEOF
67899    if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
67900  (eval $ac_link) 2>&5
67901  ac_status=$?
67902  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
67903  (exit $ac_status); } && test -s conftest$ac_exeext; then
67904      # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
67905      # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
67906      # configure script would override the LC_ALL setting. Likewise for
67907      # LC_CTYPE, which is also set at the beginning of the configure script.
67908      # Test for the usual locale name.
67909      if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
67910        gt_cv_locale_fr_utf8=fr_FR
67911      else
67912        # Test for the locale name with explicit encoding suffix.
67913        if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
67914          gt_cv_locale_fr_utf8=fr_FR.UTF-8
67915        else
67916          # Test for the Solaris 7 locale name.
67917          if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
67918            gt_cv_locale_fr_utf8=fr.UTF-8
67919          else
67920            # None found.
67921            gt_cv_locale_fr_utf8=none
67922          fi
67923        fi
67924      fi
67925    fi
67926    rm -fr conftest*
67927
67928fi
67929{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
67930$as_echo "$gt_cv_locale_fr_utf8" >&6; }
67931  LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
67932
67933
67934
67935
67936
67937  { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
67938$as_echo_n "checking for a traditional japanese locale... " >&6; }
67939if test "${gt_cv_locale_ja+set}" = set; then
67940  $as_echo_n "(cached) " >&6
67941else
67942
67943    macosx=
67944    case "$host_os" in
67945      darwin[56]*) ;;
67946      darwin*) macosx=yes;;
67947    esac
67948    if test -n "$macosx"; then
67949      # On Darwin 7 (MacOS X), the libc supports some locales in non-UTF-8
67950      # encodings, but the kernel does not support them. The documentation
67951      # says:
67952      #   "... all code that calls BSD system routines should ensure
67953      #    that the const *char parameters of these routines are in UTF-8
67954      #    encoding. All BSD system functions expect their string
67955      #    parameters to be in UTF-8 encoding and nothing else."
67956      # See the comments in config.charset. Therefore we bypass the test.
67957      gt_cv_locale_ja=none
67958    else
67959      cat >conftest.$ac_ext <<_ACEOF
67960/* confdefs.h.  */
67961_ACEOF
67962cat confdefs.h >>conftest.$ac_ext
67963cat >>conftest.$ac_ext <<_ACEOF
67964/* end confdefs.h.  */
67965
67966#include <locale.h>
67967#include <time.h>
67968#if HAVE_LANGINFO_CODESET
67969# include <langinfo.h>
67970#endif
67971#include <stdlib.h>
67972#include <string.h>
67973struct tm t;
67974char buf[16];
67975int main ()
67976{
67977  const char *p;
67978  /* Check whether the given locale name is recognized by the system.  */
67979  if (setlocale (LC_ALL, "") == NULL) return 1;
67980  /* Check whether nl_langinfo(CODESET) is nonempty.
67981     On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
67982     is empty, and the behaviour of Tcl 8.4 in this locale is not useful.  */
67983#if HAVE_LANGINFO_CODESET
67984  if (nl_langinfo (CODESET) [0] == '\0') return 1;
67985#endif
67986#ifdef __CYGWIN__
67987  /* On Cygwin, avoid locale names without encoding suffix, because the
67988     locale_charset() function relies on the encoding suffix.  Note that
67989     LC_ALL is set on the command line.  */
67990  if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
67991#endif
67992  /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
67993     This excludes the UTF-8 encoding.  */
67994  t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
67995  if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
67996  for (p = buf; *p != '\0'; p++)
67997    if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
67998      return 1;
67999  return 0;
68000}
68001
68002_ACEOF
68003      if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
68004  (eval $ac_link) 2>&5
68005  ac_status=$?
68006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
68007  (exit $ac_status); } && test -s conftest$ac_exeext; then
68008        # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
68009        # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
68010        # configure script would override the LC_ALL setting. Likewise for
68011        # LC_CTYPE, which is also set at the beginning of the configure script.
68012        # Test for the AIX locale name.
68013        if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
68014          gt_cv_locale_ja=ja_JP
68015        else
68016          # Test for the locale name with explicit encoding suffix.
68017          if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
68018            gt_cv_locale_ja=ja_JP.EUC-JP
68019          else
68020            # Test for the HP-UX, OSF/1, NetBSD locale name.
68021            if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
68022              gt_cv_locale_ja=ja_JP.eucJP
68023            else
68024              # Test for the IRIX, FreeBSD locale name.
68025              if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
68026                gt_cv_locale_ja=ja_JP.EUC
68027              else
68028                # Test for the Solaris 7 locale name.
68029                if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
68030                  gt_cv_locale_ja=ja
68031                else
68032                  # Special test for NetBSD 1.6.
68033                  if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
68034                    gt_cv_locale_ja=ja_JP.eucJP
68035                  else
68036                    # None found.
68037                    gt_cv_locale_ja=none
68038                  fi
68039                fi
68040              fi
68041            fi
68042          fi
68043        fi
68044      fi
68045      rm -fr conftest*
68046    fi
68047
68048fi
68049{ $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
68050$as_echo "$gt_cv_locale_ja" >&6; }
68051  LOCALE_JA=$gt_cv_locale_ja
68052
68053
68054
68055if test "${enable_libasprintf+set}" = set; then
68056  if test "$enable_libasprintf" != no; then
68057    TESTLIBASPRINTF=yes
68058  else
68059    TESTLIBASPRINTF=no
68060  fi
68061else
68062  TESTLIBASPRINTF=yes
68063fi
68064if test "$CXX" = ":"; then
68065  TESTLIBASPRINTF=no
68066fi
68067
68068
68069test -d intl || mkdir intl
68070echo "GNU gettext library from gettext-$VERSION" > intl/VERSION
68071cat > intl/ChangeLog.inst <<EOF
68072$RELEASE_DATE  GNU  <bug-gnu-gettext@gnu.org>
68073
68074	* Version $VERSION released.
68075
68076EOF
68077
68078
68079
68080subdirs="$subdirs examples"
68081
68082
68083ac_config_files="$ac_config_files Makefile"
68084
68085
68086ac_config_files="$ac_config_files doc/Makefile"
68087
68088
68089ac_config_files="$ac_config_files intl/Makefile:../gettext-runtime/intl/Makefile.in"
68090
68091
68092ac_config_files="$ac_config_files gnulib-lib/Makefile"
68093
68094
68095ac_config_files="$ac_config_files libgrep/Makefile"
68096
68097
68098ac_config_files="$ac_config_files src/Makefile"
68099
68100ac_config_files="$ac_config_files src/user-email:src/user-email.sh.in"
68101
68102
68103ac_config_files="$ac_config_files libgettextpo/Makefile"
68104
68105ac_config_files="$ac_config_files libgettextpo/exported.sh"
68106
68107
68108ac_config_files="$ac_config_files po/Makefile.in"
68109
68110
68111ac_config_files="$ac_config_files projects/Makefile"
68112
68113
68114ac_config_files="$ac_config_files styles/Makefile"
68115
68116
68117ac_config_files="$ac_config_files misc/Makefile"
68118
68119ac_config_files="$ac_config_files misc/gettextize"
68120
68121ac_config_files="$ac_config_files misc/autopoint"
68122
68123
68124ac_config_files="$ac_config_files man/Makefile"
68125
68126ac_config_files="$ac_config_files man/x-to-1"
68127
68128
68129ac_config_files="$ac_config_files m4/Makefile"
68130
68131
68132ac_config_files="$ac_config_files tests/Makefile"
68133
68134
68135ac_config_files="$ac_config_files gnulib-tests/Makefile"
68136
68137
68138cat >confcache <<\_ACEOF
68139# This file is a shell script that caches the results of configure
68140# tests run on this system so they can be shared between configure
68141# scripts and configure runs, see configure's option --config-cache.
68142# It is not useful on other systems.  If it contains results you don't
68143# want to keep, you may remove or edit it.
68144#
68145# config.status only pays attention to the cache file if you give it
68146# the --recheck option to rerun configure.
68147#
68148# `ac_cv_env_foo' variables (set or unset) will be overridden when
68149# loading this file, other *unset* `ac_cv_foo' will be assigned the
68150# following values.
68151
68152_ACEOF
68153
68154# The following way of writing the cache mishandles newlines in values,
68155# but we know of no workaround that is simple, portable, and efficient.
68156# So, we kill variables containing newlines.
68157# Ultrix sh set writes to stderr and can't be redirected directly,
68158# and sets the high bit in the cache file unless we assign to the vars.
68159(
68160  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
68161    eval ac_val=\$$ac_var
68162    case $ac_val in #(
68163    *${as_nl}*)
68164      case $ac_var in #(
68165      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
68166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
68167      esac
68168      case $ac_var in #(
68169      _ | IFS | as_nl) ;; #(
68170      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
68171      *) $as_unset $ac_var ;;
68172      esac ;;
68173    esac
68174  done
68175
68176  (set) 2>&1 |
68177    case $as_nl`(ac_space=' '; set) 2>&1` in #(
68178    *${as_nl}ac_space=\ *)
68179      # `set' does not quote correctly, so add quotes (double-quote
68180      # substitution turns \\\\ into \\, and sed turns \\ into \).
68181      sed -n \
68182	"s/'/'\\\\''/g;
68183	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
68184      ;; #(
68185    *)
68186      # `set' quotes correctly as required by POSIX, so do not add quotes.
68187      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
68188      ;;
68189    esac |
68190    sort
68191) |
68192  sed '
68193     /^ac_cv_env_/b end
68194     t clear
68195     :clear
68196     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
68197     t end
68198     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
68199     :end' >>confcache
68200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
68201  if test -w "$cache_file"; then
68202    test "x$cache_file" != "x/dev/null" &&
68203      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
68204$as_echo "$as_me: updating cache $cache_file" >&6;}
68205    cat confcache >$cache_file
68206  else
68207    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
68208$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
68209  fi
68210fi
68211rm -f confcache
68212
68213test "x$prefix" = xNONE && prefix=$ac_default_prefix
68214# Let make expand exec_prefix.
68215test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
68216
68217DEFS=-DHAVE_CONFIG_H
68218
68219ac_libobjs=
68220ac_ltlibobjs=
68221for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
68222  # 1. Remove the extension, and $U if already installed.
68223  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
68224  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
68225  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
68226  #    will be set to the directory where LIBOBJS objects are built.
68227  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
68228  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
68229done
68230LIBOBJS=$ac_libobjs
68231
68232LTLIBOBJS=$ac_ltlibobjs
68233
68234
68235if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
68236  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
68237Usually this means the macro was only invoked conditionally." >&5
68238$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
68239Usually this means the macro was only invoked conditionally." >&2;}
68240   { (exit 1); exit 1; }; }
68241fi
68242if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
68243  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
68244Usually this means the macro was only invoked conditionally." >&5
68245$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
68246Usually this means the macro was only invoked conditionally." >&2;}
68247   { (exit 1); exit 1; }; }
68248fi
68249if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
68250  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
68251Usually this means the macro was only invoked conditionally." >&5
68252$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
68253Usually this means the macro was only invoked conditionally." >&2;}
68254   { (exit 1); exit 1; }; }
68255fi
68256if test -z "${WOE32_TRUE}" && test -z "${WOE32_FALSE}"; then
68257  { { $as_echo "$as_me:$LINENO: error: conditional \"WOE32\" was never defined.
68258Usually this means the macro was only invoked conditionally." >&5
68259$as_echo "$as_me: error: conditional \"WOE32\" was never defined.
68260Usually this means the macro was only invoked conditionally." >&2;}
68261   { (exit 1); exit 1; }; }
68262fi
68263if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
68264  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68265Usually this means the macro was only invoked conditionally." >&5
68266$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68267Usually this means the macro was only invoked conditionally." >&2;}
68268   { (exit 1); exit 1; }; }
68269fi
68270if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
68271  { { $as_echo "$as_me:$LINENO: error: conditional \"INCLUDED_LIBGLIB\" was never defined.
68272Usually this means the macro was only invoked conditionally." >&5
68273$as_echo "$as_me: error: conditional \"INCLUDED_LIBGLIB\" was never defined.
68274Usually this means the macro was only invoked conditionally." >&2;}
68275   { (exit 1); exit 1; }; }
68276fi
68277if test -z "${INCLUDED_LIBCROCO_TRUE}" && test -z "${INCLUDED_LIBCROCO_FALSE}"; then
68278  { { $as_echo "$as_me:$LINENO: error: conditional \"INCLUDED_LIBCROCO\" was never defined.
68279Usually this means the macro was only invoked conditionally." >&5
68280$as_echo "$as_me: error: conditional \"INCLUDED_LIBCROCO\" was never defined.
68281Usually this means the macro was only invoked conditionally." >&2;}
68282   { (exit 1); exit 1; }; }
68283fi
68284if test -z "${INCLUDED_LIBGLIB_TRUE}" && test -z "${INCLUDED_LIBGLIB_FALSE}"; then
68285  { { $as_echo "$as_me:$LINENO: error: conditional \"INCLUDED_LIBGLIB\" was never defined.
68286Usually this means the macro was only invoked conditionally." >&5
68287$as_echo "$as_me: error: conditional \"INCLUDED_LIBGLIB\" was never defined.
68288Usually this means the macro was only invoked conditionally." >&2;}
68289   { (exit 1); exit 1; }; }
68290fi
68291if test -z "${INCLUDED_LIBXML_TRUE}" && test -z "${INCLUDED_LIBXML_FALSE}"; then
68292  { { $as_echo "$as_me:$LINENO: error: conditional \"INCLUDED_LIBXML\" was never defined.
68293Usually this means the macro was only invoked conditionally." >&5
68294$as_echo "$as_me: error: conditional \"INCLUDED_LIBXML\" was never defined.
68295Usually this means the macro was only invoked conditionally." >&2;}
68296   { (exit 1); exit 1; }; }
68297fi
68298if test -z "${RELOCATABLE_VIA_LD_TRUE}" && test -z "${RELOCATABLE_VIA_LD_FALSE}"; then
68299  { { $as_echo "$as_me:$LINENO: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
68300Usually this means the macro was only invoked conditionally." >&5
68301$as_echo "$as_me: error: conditional \"RELOCATABLE_VIA_LD\" was never defined.
68302Usually this means the macro was only invoked conditionally." >&2;}
68303   { (exit 1); exit 1; }; }
68304fi
68305
68306    gl_libobjs=
68307    gl_ltlibobjs=
68308    if test -n "$gl_LIBOBJS"; then
68309      # Remove the extension.
68310      sed_drop_objext='s/\.o$//;s/\.obj$//'
68311      for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
68312        gl_libobjs="$gl_libobjs $i.$ac_objext"
68313        gl_ltlibobjs="$gl_ltlibobjs $i.lo"
68314      done
68315    fi
68316    gl_LIBOBJS=$gl_libobjs
68317
68318    gl_LTLIBOBJS=$gl_ltlibobjs
68319
68320
68321if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
68322  { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68323Usually this means the macro was only invoked conditionally." >&5
68324$as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
68325Usually this means the macro was only invoked conditionally." >&2;}
68326   { (exit 1); exit 1; }; }
68327fi
68328
68329    gtpo_libobjs=
68330    gtpo_ltlibobjs=
68331    if test -n "$gtpo_LIBOBJS"; then
68332      # Remove the extension.
68333      sed_drop_objext='s/\.o$//;s/\.obj$//'
68334      for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
68335        gtpo_libobjs="$gtpo_libobjs $i.$ac_objext"
68336        gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo"
68337      done
68338    fi
68339    gtpo_LIBOBJS=$gtpo_libobjs
68340
68341    gtpo_LTLIBOBJS=$gtpo_ltlibobjs
68342
68343
68344
68345if test -z "${WOE32DLL_TRUE}" && test -z "${WOE32DLL_FALSE}"; then
68346  { { $as_echo "$as_me:$LINENO: error: conditional \"WOE32DLL\" was never defined.
68347Usually this means the macro was only invoked conditionally." >&5
68348$as_echo "$as_me: error: conditional \"WOE32DLL\" was never defined.
68349Usually this means the macro was only invoked conditionally." >&2;}
68350   { (exit 1); exit 1; }; }
68351fi
68352
68353: ${CONFIG_STATUS=./config.status}
68354ac_write_fail=0
68355ac_clean_files_save=$ac_clean_files
68356ac_clean_files="$ac_clean_files $CONFIG_STATUS"
68357{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
68358$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
68359cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
68360#! $SHELL
68361# Generated by $as_me.
68362# Run this file to recreate the current configuration.
68363# Compiler output produced by configure, useful for debugging
68364# configure, is in config.log if it exists.
68365
68366debug=false
68367ac_cs_recheck=false
68368ac_cs_silent=false
68369SHELL=\${CONFIG_SHELL-$SHELL}
68370_ACEOF
68371
68372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
68373## --------------------- ##
68374## M4sh Initialization.  ##
68375## --------------------- ##
68376
68377# Be more Bourne compatible
68378DUALCASE=1; export DUALCASE # for MKS sh
68379if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
68380  emulate sh
68381  NULLCMD=:
68382  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
68383  # is contrary to our usage.  Disable this feature.
68384  alias -g '${1+"$@"}'='"$@"'
68385  setopt NO_GLOB_SUBST
68386else
68387  case `(set -o) 2>/dev/null` in
68388  *posix*) set -o posix ;;
68389esac
68390
68391fi
68392
68393
68394
68395
68396# PATH needs CR
68397# Avoid depending upon Character Ranges.
68398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
68399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
68400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
68401as_cr_digits='0123456789'
68402as_cr_alnum=$as_cr_Letters$as_cr_digits
68403
68404as_nl='
68405'
68406export as_nl
68407# Printing a long string crashes Solaris 7 /usr/bin/printf.
68408as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
68409as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
68410as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
68411if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
68412  as_echo='printf %s\n'
68413  as_echo_n='printf %s'
68414else
68415  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
68416    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
68417    as_echo_n='/usr/ucb/echo -n'
68418  else
68419    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
68420    as_echo_n_body='eval
68421      arg=$1;
68422      case $arg in
68423      *"$as_nl"*)
68424	expr "X$arg" : "X\\(.*\\)$as_nl";
68425	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68426      esac;
68427      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68428    '
68429    export as_echo_n_body
68430    as_echo_n='sh -c $as_echo_n_body as_echo'
68431  fi
68432  export as_echo_body
68433  as_echo='sh -c $as_echo_body as_echo'
68434fi
68435
68436# The user is always right.
68437if test "${PATH_SEPARATOR+set}" != set; then
68438  PATH_SEPARATOR=:
68439  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
68440    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
68441      PATH_SEPARATOR=';'
68442  }
68443fi
68444
68445# Support unset when possible.
68446if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
68447  as_unset=unset
68448else
68449  as_unset=false
68450fi
68451
68452
68453# IFS
68454# We need space, tab and new line, in precisely that order.  Quoting is
68455# there to prevent editors from complaining about space-tab.
68456# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68457# splitting by setting IFS to empty value.)
68458IFS=" ""	$as_nl"
68459
68460# Find who we are.  Look in the path if we contain no directory separator.
68461case $0 in
68462  *[\\/]* ) as_myself=$0 ;;
68463  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
68464for as_dir in $PATH
68465do
68466  IFS=$as_save_IFS
68467  test -z "$as_dir" && as_dir=.
68468  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
68469done
68470IFS=$as_save_IFS
68471
68472     ;;
68473esac
68474# We did not find ourselves, most probably we were run as `sh COMMAND'
68475# in which case we are not to be found in the path.
68476if test "x$as_myself" = x; then
68477  as_myself=$0
68478fi
68479if test ! -f "$as_myself"; then
68480  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
68481  { (exit 1); exit 1; }
68482fi
68483
68484# Work around bugs in pre-3.0 UWIN ksh.
68485for as_var in ENV MAIL MAILPATH
68486do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
68487done
68488PS1='$ '
68489PS2='> '
68490PS4='+ '
68491
68492# NLS nuisances.
68493LC_ALL=C
68494export LC_ALL
68495LANGUAGE=C
68496export LANGUAGE
68497
68498# Required to use basename.
68499if expr a : '\(a\)' >/dev/null 2>&1 &&
68500   test "X`expr 00001 : '.*\(...\)'`" = X001; then
68501  as_expr=expr
68502else
68503  as_expr=false
68504fi
68505
68506if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
68507  as_basename=basename
68508else
68509  as_basename=false
68510fi
68511
68512
68513# Name of the executable.
68514as_me=`$as_basename -- "$0" ||
68515$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68516	 X"$0" : 'X\(//\)$' \| \
68517	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
68518$as_echo X/"$0" |
68519    sed '/^.*\/\([^/][^/]*\)\/*$/{
68520	    s//\1/
68521	    q
68522	  }
68523	  /^X\/\(\/\/\)$/{
68524	    s//\1/
68525	    q
68526	  }
68527	  /^X\/\(\/\).*/{
68528	    s//\1/
68529	    q
68530	  }
68531	  s/.*/./; q'`
68532
68533# CDPATH.
68534$as_unset CDPATH
68535
68536
68537
68538  as_lineno_1=$LINENO
68539  as_lineno_2=$LINENO
68540  test "x$as_lineno_1" != "x$as_lineno_2" &&
68541  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
68542
68543  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
68544  # uniformly replaced by the line number.  The first 'sed' inserts a
68545  # line-number line after each line using $LINENO; the second 'sed'
68546  # does the real work.  The second script uses 'N' to pair each
68547  # line-number line with the line containing $LINENO, and appends
68548  # trailing '-' during substitution so that $LINENO is not a special
68549  # case at line end.
68550  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
68551  # scripts with optimization help from Paolo Bonzini.  Blame Lee
68552  # E. McMahon (1931-1989) for sed's syntax.  :-)
68553  sed -n '
68554    p
68555    /[$]LINENO/=
68556  ' <$as_myself |
68557    sed '
68558      s/[$]LINENO.*/&-/
68559      t lineno
68560      b
68561      :lineno
68562      N
68563      :loop
68564      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
68565      t loop
68566      s/-\n.*//
68567    ' >$as_me.lineno &&
68568  chmod +x "$as_me.lineno" ||
68569    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
68570   { (exit 1); exit 1; }; }
68571
68572  # Don't try to exec as it changes $[0], causing all sort of problems
68573  # (the dirname of $[0] is not the place where we might find the
68574  # original and so on.  Autoconf is especially sensitive to this).
68575  . "./$as_me.lineno"
68576  # Exit status is that of the last command.
68577  exit
68578}
68579
68580
68581if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
68582  as_dirname=dirname
68583else
68584  as_dirname=false
68585fi
68586
68587ECHO_C= ECHO_N= ECHO_T=
68588case `echo -n x` in
68589-n*)
68590  case `echo 'x\c'` in
68591  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
68592  *)   ECHO_C='\c';;
68593  esac;;
68594*)
68595  ECHO_N='-n';;
68596esac
68597if expr a : '\(a\)' >/dev/null 2>&1 &&
68598   test "X`expr 00001 : '.*\(...\)'`" = X001; then
68599  as_expr=expr
68600else
68601  as_expr=false
68602fi
68603
68604rm -f conf$$ conf$$.exe conf$$.file
68605if test -d conf$$.dir; then
68606  rm -f conf$$.dir/conf$$.file
68607else
68608  rm -f conf$$.dir
68609  mkdir conf$$.dir 2>/dev/null
68610fi
68611if (echo >conf$$.file) 2>/dev/null; then
68612  if ln -s conf$$.file conf$$ 2>/dev/null; then
68613    as_ln_s='ln -s'
68614    # ... but there are two gotchas:
68615    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
68616    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
68617    # In both cases, we have to default to `cp -p'.
68618    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
68619      as_ln_s='cp -p'
68620  elif ln conf$$.file conf$$ 2>/dev/null; then
68621    as_ln_s=ln
68622  else
68623    as_ln_s='cp -p'
68624  fi
68625else
68626  as_ln_s='cp -p'
68627fi
68628rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
68629rmdir conf$$.dir 2>/dev/null
68630
68631if mkdir -p . 2>/dev/null; then
68632  as_mkdir_p=:
68633else
68634  test -d ./-p && rmdir ./-p
68635  as_mkdir_p=false
68636fi
68637
68638if test -x / >/dev/null 2>&1; then
68639  as_test_x='test -x'
68640else
68641  if ls -dL / >/dev/null 2>&1; then
68642    as_ls_L_option=L
68643  else
68644    as_ls_L_option=
68645  fi
68646  as_test_x='
68647    eval sh -c '\''
68648      if test -d "$1"; then
68649	test -d "$1/.";
68650      else
68651	case $1 in
68652	-*)set "./$1";;
68653	esac;
68654	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
68655	???[sx]*):;;*)false;;esac;fi
68656    '\'' sh
68657  '
68658fi
68659as_executable_p=$as_test_x
68660
68661# Sed expression to map a string onto a valid CPP name.
68662as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
68663
68664# Sed expression to map a string onto a valid variable name.
68665as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
68666
68667
68668exec 6>&1
68669
68670# Save the log message, to keep $[0] and so on meaningful, and to
68671# report actual input values of CONFIG_FILES etc. instead of their
68672# values after options handling.
68673ac_log="
68674This file was extended by $as_me, which was
68675generated by GNU Autoconf 2.63.  Invocation command line was
68676
68677  CONFIG_FILES    = $CONFIG_FILES
68678  CONFIG_HEADERS  = $CONFIG_HEADERS
68679  CONFIG_LINKS    = $CONFIG_LINKS
68680  CONFIG_COMMANDS = $CONFIG_COMMANDS
68681  $ $0 $@
68682
68683on `(hostname || uname -n) 2>/dev/null | sed 1q`
68684"
68685
68686_ACEOF
68687
68688case $ac_config_files in *"
68689"*) set x $ac_config_files; shift; ac_config_files=$*;;
68690esac
68691
68692case $ac_config_headers in *"
68693"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
68694esac
68695
68696
68697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
68698# Files that config.status was made for.
68699config_files="$ac_config_files"
68700config_headers="$ac_config_headers"
68701config_commands="$ac_config_commands"
68702
68703_ACEOF
68704
68705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
68706ac_cs_usage="\
68707\`$as_me' instantiates files from templates according to the
68708current configuration.
68709
68710Usage: $0 [OPTION]... [FILE]...
68711
68712  -h, --help       print this help, then exit
68713  -V, --version    print version number and configuration settings, then exit
68714  -q, --quiet, --silent
68715                   do not print progress messages
68716  -d, --debug      don't remove temporary files
68717      --recheck    update $as_me by reconfiguring in the same conditions
68718      --file=FILE[:TEMPLATE]
68719                   instantiate the configuration file FILE
68720      --header=FILE[:TEMPLATE]
68721                   instantiate the configuration header FILE
68722
68723Configuration files:
68724$config_files
68725
68726Configuration headers:
68727$config_headers
68728
68729Configuration commands:
68730$config_commands
68731
68732Report bugs to <bug-autoconf@gnu.org>."
68733
68734_ACEOF
68735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
68736ac_cs_version="\\
68737config.status
68738configured by $0, generated by GNU Autoconf 2.63,
68739  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
68740
68741Copyright (C) 2008 Free Software Foundation, Inc.
68742This config.status script is free software; the Free Software Foundation
68743gives unlimited permission to copy, distribute and modify it."
68744
68745ac_pwd='$ac_pwd'
68746srcdir='$srcdir'
68747INSTALL='$INSTALL'
68748MKDIR_P='$MKDIR_P'
68749AWK='$AWK'
68750test -n "\$AWK" || AWK=awk
68751_ACEOF
68752
68753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
68754# The default lists apply if the user does not specify any file.
68755ac_need_defaults=:
68756while test $# != 0
68757do
68758  case $1 in
68759  --*=*)
68760    ac_option=`expr "X$1" : 'X\([^=]*\)='`
68761    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
68762    ac_shift=:
68763    ;;
68764  *)
68765    ac_option=$1
68766    ac_optarg=$2
68767    ac_shift=shift
68768    ;;
68769  esac
68770
68771  case $ac_option in
68772  # Handling of the options.
68773  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
68774    ac_cs_recheck=: ;;
68775  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
68776    $as_echo "$ac_cs_version"; exit ;;
68777  --debug | --debu | --deb | --de | --d | -d )
68778    debug=: ;;
68779  --file | --fil | --fi | --f )
68780    $ac_shift
68781    case $ac_optarg in
68782    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
68783    esac
68784    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
68785    ac_need_defaults=false;;
68786  --header | --heade | --head | --hea )
68787    $ac_shift
68788    case $ac_optarg in
68789    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
68790    esac
68791    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
68792    ac_need_defaults=false;;
68793  --he | --h)
68794    # Conflict between --help and --header
68795    { $as_echo "$as_me: error: ambiguous option: $1
68796Try \`$0 --help' for more information." >&2
68797   { (exit 1); exit 1; }; };;
68798  --help | --hel | -h )
68799    $as_echo "$ac_cs_usage"; exit ;;
68800  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
68801  | -silent | --silent | --silen | --sile | --sil | --si | --s)
68802    ac_cs_silent=: ;;
68803
68804  # This is an error.
68805  -*) { $as_echo "$as_me: error: unrecognized option: $1
68806Try \`$0 --help' for more information." >&2
68807   { (exit 1); exit 1; }; } ;;
68808
68809  *) ac_config_targets="$ac_config_targets $1"
68810     ac_need_defaults=false ;;
68811
68812  esac
68813  shift
68814done
68815
68816ac_configure_extra_args=
68817
68818if $ac_cs_silent; then
68819  exec 6>/dev/null
68820  ac_configure_extra_args="$ac_configure_extra_args --silent"
68821fi
68822
68823_ACEOF
68824cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
68825if \$ac_cs_recheck; then
68826  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
68827  shift
68828  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
68829  CONFIG_SHELL='$SHELL'
68830  export CONFIG_SHELL
68831  exec "\$@"
68832fi
68833
68834_ACEOF
68835cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
68836exec 5>>config.log
68837{
68838  echo
68839  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
68840## Running $as_me. ##
68841_ASBOX
68842  $as_echo "$ac_log"
68843} >&5
68844
68845_ACEOF
68846cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
68847#
68848# INIT-COMMANDS
68849#
68850AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
68851# Capture the value of obsolete ALL_LINGUAS because we need it to compute
68852    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
68853    # from automake < 1.5.
68854    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
68855    # Capture the value of LINGUAS because we need it to compute CATALOGS.
68856    LINGUAS="${LINGUAS-%UNSET%}"
68857
68858
68859_ACEOF
68860
68861cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
68862
68863# Handling of arguments.
68864for ac_config_target in $ac_config_targets
68865do
68866  case $ac_config_target in
68867    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
68868    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
68869    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
68870    "csharpcomp.sh") CONFIG_FILES="$CONFIG_FILES csharpcomp.sh:../build-aux/csharpcomp.sh.in" ;;
68871    "csharpexec.sh") CONFIG_FILES="$CONFIG_FILES csharpexec.sh:../build-aux/csharpexec.sh.in" ;;
68872    "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:../build-aux/javacomp.sh.in" ;;
68873    "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:../build-aux/javaexec.sh.in" ;;
68874    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
68875    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
68876    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile:../gettext-runtime/intl/Makefile.in" ;;
68877    "gnulib-lib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-lib/Makefile" ;;
68878    "libgrep/Makefile") CONFIG_FILES="$CONFIG_FILES libgrep/Makefile" ;;
68879    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
68880    "src/user-email") CONFIG_FILES="$CONFIG_FILES src/user-email:src/user-email.sh.in" ;;
68881    "libgettextpo/Makefile") CONFIG_FILES="$CONFIG_FILES libgettextpo/Makefile" ;;
68882    "libgettextpo/exported.sh") CONFIG_FILES="$CONFIG_FILES libgettextpo/exported.sh" ;;
68883    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
68884    "projects/Makefile") CONFIG_FILES="$CONFIG_FILES projects/Makefile" ;;
68885    "styles/Makefile") CONFIG_FILES="$CONFIG_FILES styles/Makefile" ;;
68886    "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
68887    "misc/gettextize") CONFIG_FILES="$CONFIG_FILES misc/gettextize" ;;
68888    "misc/autopoint") CONFIG_FILES="$CONFIG_FILES misc/autopoint" ;;
68889    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
68890    "man/x-to-1") CONFIG_FILES="$CONFIG_FILES man/x-to-1" ;;
68891    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
68892    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
68893    "gnulib-tests/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib-tests/Makefile" ;;
68894
68895  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
68896$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
68897   { (exit 1); exit 1; }; };;
68898  esac
68899done
68900
68901
68902# If the user did not use the arguments to specify the items to instantiate,
68903# then the envvar interface is used.  Set only those that are not.
68904# We use the long form for the default assignment because of an extremely
68905# bizarre bug on SunOS 4.1.3.
68906if $ac_need_defaults; then
68907  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
68908  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
68909  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
68910fi
68911
68912# Have a temporary directory for convenience.  Make it in the build tree
68913# simply because there is no reason against having it here, and in addition,
68914# creating and moving files from /tmp can sometimes cause problems.
68915# Hook for its removal unless debugging.
68916# Note that there is a small window in which the directory will not be cleaned:
68917# after its creation but before its name has been assigned to `$tmp'.
68918$debug ||
68919{
68920  tmp=
68921  trap 'exit_status=$?
68922  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
68923' 0
68924  trap '{ (exit 1); exit 1; }' 1 2 13 15
68925}
68926# Create a (secure) tmp directory for tmp files.
68927
68928{
68929  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
68930  test -n "$tmp" && test -d "$tmp"
68931}  ||
68932{
68933  tmp=./conf$$-$RANDOM
68934  (umask 077 && mkdir "$tmp")
68935} ||
68936{
68937   $as_echo "$as_me: cannot create a temporary directory in ." >&2
68938   { (exit 1); exit 1; }
68939}
68940
68941# Set up the scripts for CONFIG_FILES section.
68942# No need to generate them if there are no CONFIG_FILES.
68943# This happens for instance with `./config.status config.h'.
68944if test -n "$CONFIG_FILES"; then
68945
68946if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
68947  ac_cs_awk_getline=:
68948  ac_cs_awk_pipe_init=
68949  ac_cs_awk_read_file='
68950      while ((getline aline < (F[key])) > 0)
68951	print(aline)
68952      close(F[key])'
68953  ac_cs_awk_pipe_fini=
68954else
68955  ac_cs_awk_getline=false
68956  ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
68957  ac_cs_awk_read_file='
68958      print "|#_!!_#|"
68959      print "cat " F[key] " &&"
68960      '$ac_cs_awk_pipe_init
68961  # The final `:' finishes the AND list.
68962  ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
68963fi
68964ac_cr='
68965'
68966ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
68967if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
68968  ac_cs_awk_cr='\\r'
68969else
68970  ac_cs_awk_cr=$ac_cr
68971fi
68972
68973echo 'BEGIN {' >"$tmp/subs1.awk" &&
68974_ACEOF
68975
68976# Create commands to substitute file output variables.
68977{
68978  echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
68979  echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
68980  echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
68981  echo "_ACAWK" &&
68982  echo "_ACEOF"
68983} >conf$$files.sh &&
68984. ./conf$$files.sh ||
68985  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
68986$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
68987   { (exit 1); exit 1; }; }
68988rm -f conf$$files.sh
68989
68990{
68991  echo "cat >conf$$subs.awk <<_ACEOF" &&
68992  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
68993  echo "_ACEOF"
68994} >conf$$subs.sh ||
68995  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
68996$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
68997   { (exit 1); exit 1; }; }
68998ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
68999ac_delim='%!_!# '
69000for ac_last_try in false false false false false :; do
69001  . ./conf$$subs.sh ||
69002    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69003$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69004   { (exit 1); exit 1; }; }
69005
69006  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
69007  if test $ac_delim_n = $ac_delim_num; then
69008    break
69009  elif $ac_last_try; then
69010    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
69011$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
69012   { (exit 1); exit 1; }; }
69013  else
69014    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69015  fi
69016done
69017rm -f conf$$subs.sh
69018
69019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69020cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
69021_ACEOF
69022sed -n '
69023h
69024s/^/S["/; s/!.*/"]=/
69025p
69026g
69027s/^[^!]*!//
69028:repl
69029t repl
69030s/'"$ac_delim"'$//
69031t delim
69032:nl
69033h
69034s/\(.\{148\}\).*/\1/
69035t more1
69036s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
69037p
69038n
69039b repl
69040:more1
69041s/["\\]/\\&/g; s/^/"/; s/$/"\\/
69042p
69043g
69044s/.\{148\}//
69045t nl
69046:delim
69047h
69048s/\(.\{148\}\).*/\1/
69049t more2
69050s/["\\]/\\&/g; s/^/"/; s/$/"/
69051p
69052b
69053:more2
69054s/["\\]/\\&/g; s/^/"/; s/$/"\\/
69055p
69056g
69057s/.\{148\}//
69058t delim
69059' <conf$$subs.awk | sed '
69060/^[^""]/{
69061  N
69062  s/\n//
69063}
69064' >>$CONFIG_STATUS || ac_write_fail=1
69065rm -f conf$$subs.awk
69066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69067_ACAWK
69068cat >>"\$tmp/subs1.awk" <<_ACAWK &&
69069  for (key in S) S_is_set[key] = 1
69070  FS = ""
69071  \$ac_cs_awk_pipe_init
69072}
69073{
69074  line = $ 0
69075  nfields = split(line, field, "@")
69076  substed = 0
69077  len = length(field[1])
69078  for (i = 2; i < nfields; i++) {
69079    key = field[i]
69080    keylen = length(key)
69081    if (S_is_set[key]) {
69082      value = S[key]
69083      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
69084      len += length(value) + length(field[++i])
69085      substed = 1
69086    } else
69087      len += 1 + keylen
69088  }
69089  if (nfields == 3 && !substed) {
69090    key = field[2]
69091    if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
69092      \$ac_cs_awk_read_file
69093      next
69094    }
69095  }
69096  print line
69097}
69098\$ac_cs_awk_pipe_fini
69099_ACAWK
69100_ACEOF
69101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69102if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
69103  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
69104else
69105  cat
69106fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
69107  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
69108$as_echo "$as_me: error: could not setup config files machinery" >&2;}
69109   { (exit 1); exit 1; }; }
69110_ACEOF
69111
69112# VPATH may cause trouble with some makes, so we remove $(srcdir),
69113# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
69114# trailing colons and then remove the whole line if VPATH becomes empty
69115# (actually we leave an empty line to preserve line numbers).
69116if test "x$srcdir" = x.; then
69117  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
69118s/:*\$(srcdir):*/:/
69119s/:*\${srcdir}:*/:/
69120s/:*@srcdir@:*/:/
69121s/^\([^=]*=[	 ]*\):*/\1/
69122s/:*$//
69123s/^[^=]*=[	 ]*$//
69124}'
69125fi
69126
69127cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69128fi # test -n "$CONFIG_FILES"
69129
69130# Set up the scripts for CONFIG_HEADERS section.
69131# No need to generate them if there are no CONFIG_HEADERS.
69132# This happens for instance with `./config.status Makefile'.
69133if test -n "$CONFIG_HEADERS"; then
69134cat >"$tmp/defines.awk" <<\_ACAWK ||
69135BEGIN {
69136_ACEOF
69137
69138# Transform confdefs.h into an awk script `defines.awk', embedded as
69139# here-document in config.status, that substitutes the proper values into
69140# config.h.in to produce config.h.
69141
69142# Create a delimiter string that does not exist in confdefs.h, to ease
69143# handling of long lines.
69144ac_delim='%!_!# '
69145for ac_last_try in false false :; do
69146  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
69147  if test -z "$ac_t"; then
69148    break
69149  elif $ac_last_try; then
69150    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
69151$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
69152   { (exit 1); exit 1; }; }
69153  else
69154    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
69155  fi
69156done
69157
69158# For the awk script, D is an array of macro values keyed by name,
69159# likewise P contains macro parameters if any.  Preserve backslash
69160# newline sequences.
69161
69162ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
69163sed -n '
69164s/.\{148\}/&'"$ac_delim"'/g
69165t rset
69166:rset
69167s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
69168t def
69169d
69170:def
69171s/\\$//
69172t bsnl
69173s/["\\]/\\&/g
69174s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
69175D["\1"]=" \3"/p
69176s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
69177d
69178:bsnl
69179s/["\\]/\\&/g
69180s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
69181D["\1"]=" \3\\\\\\n"\\/p
69182t cont
69183s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
69184t cont
69185d
69186:cont
69187n
69188s/.\{148\}/&'"$ac_delim"'/g
69189t clear
69190:clear
69191s/\\$//
69192t bsnlc
69193s/["\\]/\\&/g; s/^/"/; s/$/"/p
69194d
69195:bsnlc
69196s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
69197b cont
69198' <confdefs.h | sed '
69199s/'"$ac_delim"'/"\\\
69200"/g' >>$CONFIG_STATUS || ac_write_fail=1
69201
69202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69203  for (key in D) D_is_set[key] = 1
69204  FS = ""
69205}
69206/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
69207  line = \$ 0
69208  split(line, arg, " ")
69209  if (arg[1] == "#") {
69210    defundef = arg[2]
69211    mac1 = arg[3]
69212  } else {
69213    defundef = substr(arg[1], 2)
69214    mac1 = arg[2]
69215  }
69216  split(mac1, mac2, "(") #)
69217  macro = mac2[1]
69218  prefix = substr(line, 1, index(line, defundef) - 1)
69219  if (D_is_set[macro]) {
69220    # Preserve the white space surrounding the "#".
69221    print prefix "define", macro P[macro] D[macro]
69222    next
69223  } else {
69224    # Replace #undef with comments.  This is necessary, for example,
69225    # in the case of _POSIX_SOURCE, which is predefined and required
69226    # on some systems where configure will not decide to define it.
69227    if (defundef == "undef") {
69228      print "/*", prefix defundef, macro, "*/"
69229      next
69230    }
69231  }
69232}
69233{ print }
69234_ACAWK
69235_ACEOF
69236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69237  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
69238$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
69239   { (exit 1); exit 1; }; }
69240fi # test -n "$CONFIG_HEADERS"
69241
69242
69243eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
69244shift
69245for ac_tag
69246do
69247  case $ac_tag in
69248  :[FHLC]) ac_mode=$ac_tag; continue;;
69249  esac
69250  case $ac_mode$ac_tag in
69251  :[FHL]*:*);;
69252  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
69253$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
69254   { (exit 1); exit 1; }; };;
69255  :[FH]-) ac_tag=-:-;;
69256  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
69257  esac
69258  ac_save_IFS=$IFS
69259  IFS=:
69260  set x $ac_tag
69261  IFS=$ac_save_IFS
69262  shift
69263  ac_file=$1
69264  shift
69265
69266  case $ac_mode in
69267  :L) ac_source=$1;;
69268  :[FH])
69269    ac_file_inputs=
69270    for ac_f
69271    do
69272      case $ac_f in
69273      -) ac_f="$tmp/stdin";;
69274      *) # Look for the file first in the build tree, then in the source tree
69275	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
69276	 # because $ac_f cannot contain `:'.
69277	 test -f "$ac_f" ||
69278	   case $ac_f in
69279	   [\\/$]*) false;;
69280	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
69281	   esac ||
69282	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
69283$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
69284   { (exit 1); exit 1; }; };;
69285      esac
69286      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
69287      ac_file_inputs="$ac_file_inputs '$ac_f'"
69288    done
69289
69290    # Let's still pretend it is `configure' which instantiates (i.e., don't
69291    # use $as_me), people would be surprised to read:
69292    #    /* config.h.  Generated by config.status.  */
69293    configure_input='Generated from '`
69294	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
69295	`' by configure.'
69296    if test x"$ac_file" != x-; then
69297      configure_input="$ac_file.  $configure_input"
69298      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
69299$as_echo "$as_me: creating $ac_file" >&6;}
69300    fi
69301    # Neutralize special characters interpreted by sed in replacement strings.
69302    case $configure_input in #(
69303    *\&* | *\|* | *\\* )
69304       ac_sed_conf_input=`$as_echo "$configure_input" |
69305       sed 's/[\\\\&|]/\\\\&/g'`;; #(
69306    *) ac_sed_conf_input=$configure_input;;
69307    esac
69308
69309    case $ac_tag in
69310    *:-:* | *:-) cat >"$tmp/stdin" \
69311      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
69312$as_echo "$as_me: error: could not create $ac_file" >&2;}
69313   { (exit 1); exit 1; }; } ;;
69314    esac
69315    ;;
69316  esac
69317
69318  ac_dir=`$as_dirname -- "$ac_file" ||
69319$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69320	 X"$ac_file" : 'X\(//\)[^/]' \| \
69321	 X"$ac_file" : 'X\(//\)$' \| \
69322	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
69323$as_echo X"$ac_file" |
69324    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69325	    s//\1/
69326	    q
69327	  }
69328	  /^X\(\/\/\)[^/].*/{
69329	    s//\1/
69330	    q
69331	  }
69332	  /^X\(\/\/\)$/{
69333	    s//\1/
69334	    q
69335	  }
69336	  /^X\(\/\).*/{
69337	    s//\1/
69338	    q
69339	  }
69340	  s/.*/./; q'`
69341  { as_dir="$ac_dir"
69342  case $as_dir in #(
69343  -*) as_dir=./$as_dir;;
69344  esac
69345  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
69346    as_dirs=
69347    while :; do
69348      case $as_dir in #(
69349      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
69350      *) as_qdir=$as_dir;;
69351      esac
69352      as_dirs="'$as_qdir' $as_dirs"
69353      as_dir=`$as_dirname -- "$as_dir" ||
69354$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69355	 X"$as_dir" : 'X\(//\)[^/]' \| \
69356	 X"$as_dir" : 'X\(//\)$' \| \
69357	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
69358$as_echo X"$as_dir" |
69359    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69360	    s//\1/
69361	    q
69362	  }
69363	  /^X\(\/\/\)[^/].*/{
69364	    s//\1/
69365	    q
69366	  }
69367	  /^X\(\/\/\)$/{
69368	    s//\1/
69369	    q
69370	  }
69371	  /^X\(\/\).*/{
69372	    s//\1/
69373	    q
69374	  }
69375	  s/.*/./; q'`
69376      test -d "$as_dir" && break
69377    done
69378    test -z "$as_dirs" || eval "mkdir $as_dirs"
69379  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
69380$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
69381   { (exit 1); exit 1; }; }; }
69382  ac_builddir=.
69383
69384case "$ac_dir" in
69385.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
69386*)
69387  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
69388  # A ".." for each directory in $ac_dir_suffix.
69389  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
69390  case $ac_top_builddir_sub in
69391  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
69392  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
69393  esac ;;
69394esac
69395ac_abs_top_builddir=$ac_pwd
69396ac_abs_builddir=$ac_pwd$ac_dir_suffix
69397# for backward compatibility:
69398ac_top_builddir=$ac_top_build_prefix
69399
69400case $srcdir in
69401  .)  # We are building in place.
69402    ac_srcdir=.
69403    ac_top_srcdir=$ac_top_builddir_sub
69404    ac_abs_top_srcdir=$ac_pwd ;;
69405  [\\/]* | ?:[\\/]* )  # Absolute name.
69406    ac_srcdir=$srcdir$ac_dir_suffix;
69407    ac_top_srcdir=$srcdir
69408    ac_abs_top_srcdir=$srcdir ;;
69409  *) # Relative name.
69410    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
69411    ac_top_srcdir=$ac_top_build_prefix$srcdir
69412    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
69413esac
69414ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
69415
69416
69417  case $ac_mode in
69418  :F)
69419  #
69420  # CONFIG_FILE
69421  #
69422
69423  case $INSTALL in
69424  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
69425  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
69426  esac
69427  ac_MKDIR_P=$MKDIR_P
69428  case $MKDIR_P in
69429  [\\/$]* | ?:[\\/]* ) ;;
69430  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
69431  esac
69432_ACEOF
69433
69434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69435# If the template does not know about datarootdir, expand it.
69436# FIXME: This hack should be removed a few years after 2.60.
69437ac_datarootdir_hack=; ac_datarootdir_seen=
69438
69439ac_sed_dataroot='
69440/datarootdir/ {
69441  p
69442  q
69443}
69444/@datadir@/p
69445/@docdir@/p
69446/@infodir@/p
69447/@localedir@/p
69448/@mandir@/p
69449'
69450case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
69451*datarootdir*) ac_datarootdir_seen=yes;;
69452*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
69453  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
69454$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
69455_ACEOF
69456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69457  ac_datarootdir_hack='
69458  s&@datadir@&$datadir&g
69459  s&@docdir@&$docdir&g
69460  s&@infodir@&$infodir&g
69461  s&@localedir@&$localedir&g
69462  s&@mandir@&$mandir&g
69463    s&\\\${datarootdir}&$datarootdir&g' ;;
69464esac
69465_ACEOF
69466
69467# Neutralize VPATH when `$srcdir' = `.'.
69468# Shell code in configure.ac might set extrasub.
69469# FIXME: do we really want to maintain this feature?
69470cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
69471ac_sed_extra="$ac_vpsub
69472$extrasub
69473_ACEOF
69474cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
69475:t
69476/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
69477s|@configure_input@|$ac_sed_conf_input|;t t
69478s&@top_builddir@&$ac_top_builddir_sub&;t t
69479s&@top_build_prefix@&$ac_top_build_prefix&;t t
69480s&@srcdir@&$ac_srcdir&;t t
69481s&@abs_srcdir@&$ac_abs_srcdir&;t t
69482s&@top_srcdir@&$ac_top_srcdir&;t t
69483s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
69484s&@builddir@&$ac_builddir&;t t
69485s&@abs_builddir@&$ac_abs_builddir&;t t
69486s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
69487s&@INSTALL@&$ac_INSTALL&;t t
69488s&@MKDIR_P@&$ac_MKDIR_P&;t t
69489$ac_datarootdir_hack
69490"
69491eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
69492if $ac_cs_awk_getline; then
69493  $AWK -f "$tmp/subs.awk"
69494else
69495  $AWK -f "$tmp/subs.awk" | $SHELL
69496fi >$tmp/out \
69497  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
69498$as_echo "$as_me: error: could not create $ac_file" >&2;}
69499   { (exit 1); exit 1; }; }
69500
69501test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
69502  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
69503  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
69504  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
69505which seems to be undefined.  Please make sure it is defined." >&5
69506$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
69507which seems to be undefined.  Please make sure it is defined." >&2;}
69508
69509  rm -f "$tmp/stdin"
69510  case $ac_file in
69511  -) cat "$tmp/out" && rm -f "$tmp/out";;
69512  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
69513  esac \
69514  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
69515$as_echo "$as_me: error: could not create $ac_file" >&2;}
69516   { (exit 1); exit 1; }; }
69517 ;;
69518  :H)
69519  #
69520  # CONFIG_HEADER
69521  #
69522  if test x"$ac_file" != x-; then
69523    {
69524      $as_echo "/* $configure_input  */" \
69525      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
69526    } >"$tmp/config.h" \
69527      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
69528$as_echo "$as_me: error: could not create $ac_file" >&2;}
69529   { (exit 1); exit 1; }; }
69530    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
69531      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
69532$as_echo "$as_me: $ac_file is unchanged" >&6;}
69533    else
69534      rm -f "$ac_file"
69535      mv "$tmp/config.h" "$ac_file" \
69536	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
69537$as_echo "$as_me: error: could not create $ac_file" >&2;}
69538   { (exit 1); exit 1; }; }
69539    fi
69540  else
69541    $as_echo "/* $configure_input  */" \
69542      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
69543      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
69544$as_echo "$as_me: error: could not create -" >&2;}
69545   { (exit 1); exit 1; }; }
69546  fi
69547# Compute "$ac_file"'s index in $config_headers.
69548_am_stamp_count=1
69549for _am_header in $config_headers :; do
69550  case $_am_header in
69551    "$ac_file" | "$ac_file":* )
69552      break ;;
69553    * )
69554      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
69555  esac
69556done
69557echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
69558$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69559	 X"$ac_file" : 'X\(//\)[^/]' \| \
69560	 X"$ac_file" : 'X\(//\)$' \| \
69561	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
69562$as_echo X"$ac_file" |
69563    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69564	    s//\1/
69565	    q
69566	  }
69567	  /^X\(\/\/\)[^/].*/{
69568	    s//\1/
69569	    q
69570	  }
69571	  /^X\(\/\/\)$/{
69572	    s//\1/
69573	    q
69574	  }
69575	  /^X\(\/\).*/{
69576	    s//\1/
69577	    q
69578	  }
69579	  s/.*/./; q'`/stamp-h$_am_stamp_count
69580 ;;
69581
69582  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
69583$as_echo "$as_me: executing $ac_file commands" >&6;}
69584 ;;
69585  esac
69586
69587
69588  case $ac_file$ac_mode in
69589    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
69590  # Strip MF so we end up with the name of the file.
69591  mf=`echo "$mf" | sed -e 's/:.*$//'`
69592  # Check whether this is an Automake generated Makefile or not.
69593  # We used to match only the files named `Makefile.in', but
69594  # some people rename them; so instead we look at the file content.
69595  # Grep'ing the first line is not enough: some people post-process
69596  # each Makefile.in and add a new line on top of each file to say so.
69597  # Grep'ing the whole file is not good either: AIX grep has a line
69598  # limit of 2048, but all sed's we know have understand at least 4000.
69599  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
69600    dirpart=`$as_dirname -- "$mf" ||
69601$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69602	 X"$mf" : 'X\(//\)[^/]' \| \
69603	 X"$mf" : 'X\(//\)$' \| \
69604	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
69605$as_echo X"$mf" |
69606    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69607	    s//\1/
69608	    q
69609	  }
69610	  /^X\(\/\/\)[^/].*/{
69611	    s//\1/
69612	    q
69613	  }
69614	  /^X\(\/\/\)$/{
69615	    s//\1/
69616	    q
69617	  }
69618	  /^X\(\/\).*/{
69619	    s//\1/
69620	    q
69621	  }
69622	  s/.*/./; q'`
69623  else
69624    continue
69625  fi
69626  # Extract the definition of DEPDIR, am__include, and am__quote
69627  # from the Makefile without running `make'.
69628  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
69629  test -z "$DEPDIR" && continue
69630  am__include=`sed -n 's/^am__include = //p' < "$mf"`
69631  test -z "am__include" && continue
69632  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
69633  # When using ansi2knr, U may be empty or an underscore; expand it
69634  U=`sed -n 's/^U = //p' < "$mf"`
69635  # Find all dependency output files, they are included files with
69636  # $(DEPDIR) in their names.  We invoke sed twice because it is the
69637  # simplest approach to changing $(DEPDIR) to its actual value in the
69638  # expansion.
69639  for file in `sed -n "
69640    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
69641       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
69642    # Make sure the directory exists.
69643    test -f "$dirpart/$file" && continue
69644    fdir=`$as_dirname -- "$file" ||
69645$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69646	 X"$file" : 'X\(//\)[^/]' \| \
69647	 X"$file" : 'X\(//\)$' \| \
69648	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
69649$as_echo X"$file" |
69650    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69651	    s//\1/
69652	    q
69653	  }
69654	  /^X\(\/\/\)[^/].*/{
69655	    s//\1/
69656	    q
69657	  }
69658	  /^X\(\/\/\)$/{
69659	    s//\1/
69660	    q
69661	  }
69662	  /^X\(\/\).*/{
69663	    s//\1/
69664	    q
69665	  }
69666	  s/.*/./; q'`
69667    { as_dir=$dirpart/$fdir
69668  case $as_dir in #(
69669  -*) as_dir=./$as_dir;;
69670  esac
69671  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
69672    as_dirs=
69673    while :; do
69674      case $as_dir in #(
69675      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
69676      *) as_qdir=$as_dir;;
69677      esac
69678      as_dirs="'$as_qdir' $as_dirs"
69679      as_dir=`$as_dirname -- "$as_dir" ||
69680$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69681	 X"$as_dir" : 'X\(//\)[^/]' \| \
69682	 X"$as_dir" : 'X\(//\)$' \| \
69683	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
69684$as_echo X"$as_dir" |
69685    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
69686	    s//\1/
69687	    q
69688	  }
69689	  /^X\(\/\/\)[^/].*/{
69690	    s//\1/
69691	    q
69692	  }
69693	  /^X\(\/\/\)$/{
69694	    s//\1/
69695	    q
69696	  }
69697	  /^X\(\/\).*/{
69698	    s//\1/
69699	    q
69700	  }
69701	  s/.*/./; q'`
69702      test -d "$as_dir" && break
69703    done
69704    test -z "$as_dirs" || eval "mkdir $as_dirs"
69705  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
69706$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
69707   { (exit 1); exit 1; }; }; }
69708    # echo "creating $dirpart/$file"
69709    echo '# dummy' > "$dirpart/$file"
69710  done
69711done
69712 ;;
69713    "po-directories":C)
69714    for ac_file in $CONFIG_FILES; do
69715      # Support "outfile[:infile[:infile...]]"
69716      case "$ac_file" in
69717        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
69718      esac
69719      # PO directories have a Makefile.in generated from Makefile.in.in.
69720      case "$ac_file" in */Makefile.in)
69721        # Adjust a relative srcdir.
69722        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
69723        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
69724        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
69725        # In autoconf-2.13 it is called $ac_given_srcdir.
69726        # In autoconf-2.50 it is called $srcdir.
69727        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
69728        case "$ac_given_srcdir" in
69729          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
69730          /*) top_srcdir="$ac_given_srcdir" ;;
69731          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
69732        esac
69733        # Treat a directory as a PO directory if and only if it has a
69734        # POTFILES.in file. This allows packages to have multiple PO
69735        # directories under different names or in different locations.
69736        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
69737          rm -f "$ac_dir/POTFILES"
69738          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
69739          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
69740          POMAKEFILEDEPS="POTFILES.in"
69741          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
69742          # on $ac_dir but don't depend on user-specified configuration
69743          # parameters.
69744          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
69745            # The LINGUAS file contains the set of available languages.
69746            if test -n "$OBSOLETE_ALL_LINGUAS"; then
69747              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
69748            fi
69749            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
69750            # Hide the ALL_LINGUAS assigment from automake < 1.5.
69751            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
69752            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
69753          else
69754            # The set of available languages was given in configure.in.
69755            # Hide the ALL_LINGUAS assigment from automake < 1.5.
69756            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
69757          fi
69758          # Compute POFILES
69759          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
69760          # Compute UPDATEPOFILES
69761          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
69762          # Compute DUMMYPOFILES
69763          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
69764          # Compute GMOFILES
69765          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
69766          case "$ac_given_srcdir" in
69767            .) srcdirpre= ;;
69768            *) srcdirpre='$(srcdir)/' ;;
69769          esac
69770          POFILES=
69771          UPDATEPOFILES=
69772          DUMMYPOFILES=
69773          GMOFILES=
69774          for lang in $ALL_LINGUAS; do
69775            POFILES="$POFILES $srcdirpre$lang.po"
69776            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
69777            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
69778            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
69779          done
69780          # CATALOGS depends on both $ac_dir and the user's LINGUAS
69781          # environment variable.
69782          INST_LINGUAS=
69783          if test -n "$ALL_LINGUAS"; then
69784            for presentlang in $ALL_LINGUAS; do
69785              useit=no
69786              if test "%UNSET%" != "$LINGUAS"; then
69787                desiredlanguages="$LINGUAS"
69788              else
69789                desiredlanguages="$ALL_LINGUAS"
69790              fi
69791              for desiredlang in $desiredlanguages; do
69792                # Use the presentlang catalog if desiredlang is
69793                #   a. equal to presentlang, or
69794                #   b. a variant of presentlang (because in this case,
69795                #      presentlang can be used as a fallback for messages
69796                #      which are not translated in the desiredlang catalog).
69797                case "$desiredlang" in
69798                  "$presentlang"*) useit=yes;;
69799                esac
69800              done
69801              if test $useit = yes; then
69802                INST_LINGUAS="$INST_LINGUAS $presentlang"
69803              fi
69804            done
69805          fi
69806          CATALOGS=
69807          if test -n "$INST_LINGUAS"; then
69808            for lang in $INST_LINGUAS; do
69809              CATALOGS="$CATALOGS $lang.gmo"
69810            done
69811          fi
69812          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
69813          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"
69814          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
69815            if test -f "$f"; then
69816              case "$f" in
69817                *.orig | *.bak | *~) ;;
69818                *) cat "$f" >> "$ac_dir/Makefile" ;;
69819              esac
69820            fi
69821          done
69822        fi
69823        ;;
69824      esac
69825    done ;;
69826    "doc/Makefile":F)
69827  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
69828  mv $ac_file.tmp $ac_file
69829
69830
69831  sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
69832  mv $ac_file.tmp $ac_file
69833
69834
69835  sed -e '/@rm -f \$''@/d' < $ac_file > $ac_file.tmp
69836  mv $ac_file.tmp $ac_file
69837 ;;
69838    "intl/Makefile":F)
69839  # Change srcdir variable so that it points to ../gettext-runtime/intl.
69840  sed -e 's|^srcdir =.*$|srcdir = $(top_srcdir)/../gettext-runtime/intl|' \
69841      -e 's|^VPATH =.*$||' \
69842    < intl/Makefile > intl/Makefile.tmp
69843  mv intl/Makefile.tmp intl/Makefile
69844   ;;
69845    "gnulib-lib/Makefile":F)
69846  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
69847  mv $ac_file.tmp $ac_file
69848 ;;
69849    "libgrep/Makefile":F)
69850  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
69851  mv $ac_file.tmp $ac_file
69852 ;;
69853    "src/Makefile":F)
69854  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
69855  mv $ac_file.tmp $ac_file
69856 ;;
69857    "libgettextpo/Makefile":F)
69858  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
69859  mv $ac_file.tmp $ac_file
69860 ;;
69861    "misc/gettextize":F) chmod a+x misc/gettextize ;;
69862    "misc/autopoint":F) chmod a+x misc/autopoint ;;
69863    "man/Makefile":F)
69864  sed -e 's,^#distdir:,distdir:,' < $ac_file > $ac_file.tmp
69865  mv $ac_file.tmp $ac_file
69866 ;;
69867    "tests/Makefile":F)
69868  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
69869  mv $ac_file.tmp $ac_file
69870 ;;
69871    "gnulib-tests/Makefile":F)
69872  sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," -e "s,\`test -f '\\\$<' || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $ac_file > $ac_file.tmp
69873  mv $ac_file.tmp $ac_file
69874 ;;
69875
69876  esac
69877done # for ac_tag
69878
69879
69880{ (exit 0); exit 0; }
69881_ACEOF
69882chmod +x $CONFIG_STATUS
69883ac_clean_files=$ac_clean_files_save
69884
69885test $ac_write_fail = 0 ||
69886  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
69887$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
69888   { (exit 1); exit 1; }; }
69889
69890
69891# configure is writing to config.log, and then calls config.status.
69892# config.status does its own redirection, appending to config.log.
69893# Unfortunately, on DOS this fails, as config.log is still kept open
69894# by configure, so config.status won't be able to write to it; its
69895# output is simply discarded.  So we exec the FD to /dev/null,
69896# effectively closing config.log, so it can be properly (re)opened and
69897# appended to by config.status.  When coming back to configure, we
69898# need to make the FD available again.
69899if test "$no_create" != yes; then
69900  ac_cs_success=:
69901  ac_config_status_args=
69902  test "$silent" = yes &&
69903    ac_config_status_args="$ac_config_status_args --quiet"
69904  exec 5>/dev/null
69905  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
69906  exec 5>>config.log
69907  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
69908  # would make configure fail if this is the last instruction.
69909  $ac_cs_success || { (exit 1); exit 1; }
69910fi
69911
69912#
69913# CONFIG_SUBDIRS section.
69914#
69915if test "$no_recursion" != yes; then
69916
69917  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
69918  # so they do not pile up.
69919  ac_sub_configure_args=
69920  ac_prev=
69921  eval "set x $ac_configure_args"
69922  shift
69923  for ac_arg
69924  do
69925    if test -n "$ac_prev"; then
69926      ac_prev=
69927      continue
69928    fi
69929    case $ac_arg in
69930    -cache-file | --cache-file | --cache-fil | --cache-fi \
69931    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
69932      ac_prev=cache_file ;;
69933    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
69934    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
69935    | --c=*)
69936      ;;
69937    --config-cache | -C)
69938      ;;
69939    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
69940      ac_prev=srcdir ;;
69941    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
69942      ;;
69943    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
69944      ac_prev=prefix ;;
69945    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
69946      ;;
69947    --disable-option-checking)
69948      ;;
69949    *)
69950      case $ac_arg in
69951      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
69952      esac
69953      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
69954    esac
69955  done
69956
69957  # Always prepend --prefix to ensure using the same prefix
69958  # in subdir configurations.
69959  ac_arg="--prefix=$prefix"
69960  case $ac_arg in
69961  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
69962  esac
69963  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
69964
69965  # Pass --silent
69966  if test "$silent" = yes; then
69967    ac_sub_configure_args="--silent $ac_sub_configure_args"
69968  fi
69969
69970  # Always prepend --disable-option-checking to silence warnings, since
69971  # different subdirs can have different --enable and --with options.
69972  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
69973
69974  ac_popdir=`pwd`
69975  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
69976
69977    # Do not complain, so a configure script can configure whichever
69978    # parts of a large source tree are present.
69979    test -d "$srcdir/$ac_dir" || continue
69980
69981    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
69982    $as_echo "$as_me:$LINENO: $ac_msg" >&5
69983    $as_echo "$ac_msg" >&6
69984    { as_dir="$ac_dir"
69985  case $as_dir in #(
69986  -*) as_dir=./$as_dir;;
69987  esac
69988  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
69989    as_dirs=
69990    while :; do
69991      case $as_dir in #(
69992      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
69993      *) as_qdir=$as_dir;;
69994      esac
69995      as_dirs="'$as_qdir' $as_dirs"
69996      as_dir=`$as_dirname -- "$as_dir" ||
69997$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
69998	 X"$as_dir" : 'X\(//\)[^/]' \| \
69999	 X"$as_dir" : 'X\(//\)$' \| \
70000	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
70001$as_echo X"$as_dir" |
70002    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70003	    s//\1/
70004	    q
70005	  }
70006	  /^X\(\/\/\)[^/].*/{
70007	    s//\1/
70008	    q
70009	  }
70010	  /^X\(\/\/\)$/{
70011	    s//\1/
70012	    q
70013	  }
70014	  /^X\(\/\).*/{
70015	    s//\1/
70016	    q
70017	  }
70018	  s/.*/./; q'`
70019      test -d "$as_dir" && break
70020    done
70021    test -z "$as_dirs" || eval "mkdir $as_dirs"
70022  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
70023$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
70024   { (exit 1); exit 1; }; }; }
70025    ac_builddir=.
70026
70027case "$ac_dir" in
70028.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
70029*)
70030  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
70031  # A ".." for each directory in $ac_dir_suffix.
70032  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
70033  case $ac_top_builddir_sub in
70034  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
70035  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
70036  esac ;;
70037esac
70038ac_abs_top_builddir=$ac_pwd
70039ac_abs_builddir=$ac_pwd$ac_dir_suffix
70040# for backward compatibility:
70041ac_top_builddir=$ac_top_build_prefix
70042
70043case $srcdir in
70044  .)  # We are building in place.
70045    ac_srcdir=.
70046    ac_top_srcdir=$ac_top_builddir_sub
70047    ac_abs_top_srcdir=$ac_pwd ;;
70048  [\\/]* | ?:[\\/]* )  # Absolute name.
70049    ac_srcdir=$srcdir$ac_dir_suffix;
70050    ac_top_srcdir=$srcdir
70051    ac_abs_top_srcdir=$srcdir ;;
70052  *) # Relative name.
70053    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
70054    ac_top_srcdir=$ac_top_build_prefix$srcdir
70055    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
70056esac
70057ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
70058
70059
70060    cd "$ac_dir"
70061
70062    # Check for guested configure; otherwise get Cygnus style configure.
70063    if test -f "$ac_srcdir/configure.gnu"; then
70064      ac_sub_configure=$ac_srcdir/configure.gnu
70065    elif test -f "$ac_srcdir/configure"; then
70066      ac_sub_configure=$ac_srcdir/configure
70067    elif test -f "$ac_srcdir/configure.in"; then
70068      # This should be Cygnus configure.
70069      ac_sub_configure=$ac_aux_dir/configure
70070    else
70071      { $as_echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
70072$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
70073      ac_sub_configure=
70074    fi
70075
70076    # The recursion is here.
70077    if test -n "$ac_sub_configure"; then
70078      # Make the cache file name correct relative to the subdirectory.
70079      case $cache_file in
70080      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
70081      *) # Relative name.
70082	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
70083      esac
70084
70085      { $as_echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
70086$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
70087      # The eval makes quoting arguments work.
70088      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
70089	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
70090	{ { $as_echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
70091$as_echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
70092   { (exit 1); exit 1; }; }
70093    fi
70094
70095    cd "$ac_popdir"
70096  done
70097fi
70098if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
70099  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
70100$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
70101fi
70102
70103